@vue/devtools-applet 7.3.9 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/settings/Settings.vue.d.ts +23 -0
- package/dist/components/state/StateFieldInputEditor.vue.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1607 -1461
- package/dist/modules/custom-inspector/components/Settings.vue.d.ts +2 -0
- package/dist/modules/pinia/components/Settings.vue.d.ts +2 -0
- package/package.json +12 -7
package/dist/index.js
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { openBlock as p, createElementBlock as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { getRaw as
|
|
5
|
-
import { VueButton as de, VueIcon as
|
|
6
|
-
import { isArray as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { RecycleScroller as
|
|
9
|
-
import { flatten as
|
|
10
|
-
const
|
|
1
|
+
import { openBlock as p, createElementBlock as h, createStaticVNode as en, toValue as mt, ref as I, computed as V, defineComponent as B, h as tn, provide as _e, inject as ve, createElementVNode as i, createVNode as x, unref as c, createTextVNode as ne, Fragment as te, renderList as ae, normalizeClass as ie, toDisplayString as oe, renderSlot as et, createCommentVNode as U, isRef as Ge, watch as X, onMounted as Vt, nextTick as Be, readonly as nn, getCurrentScope as on, onScopeDispose as ln, getCurrentInstance as tt, reactive as _t, shallowRef as gt, toRaw as Nt, withDirectives as J, createBlock as z, mergeProps as ke, withModifiers as fe, withCtx as M, watchEffect as nt, normalizeStyle as Ie, pushScopeId as ot, popScopeId as lt, mergeModels as Ze, useModel as st, onUnmounted as ye, resolveComponent as sn, vShow as an } from "vue";
|
|
2
|
+
import { rpc as A, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as rn } from "@vue/devtools-core";
|
|
3
|
+
import { Splitpanes as Ae, Pane as ue } from "splitpanes";
|
|
4
|
+
import { getRaw as Rt, toSubmit as ze, formatInspectorStateValue as un, getInspectorStateValueType as Ct, toEdit as cn, isPlainObject as dn, UNDEFINED as pn, NAN as fn, INFINITY as vn, NEGATIVE_INFINITY as hn, parse as Y } from "@vue/devtools-kit";
|
|
5
|
+
import { VueButton as de, VueIcon as le, vTooltip as Q, VueDropdown as mn, VueDropdownButton as xt, VueInput as Xe, VueSwitch as _n, VueSelect as gn, VueCodeBlock as Cn, VueDialog as xn, VueIcIcon as yt } from "@vue/devtools-ui";
|
|
6
|
+
import { isArray as bt, isObject as $t, sortByKey as At, isInSeparateWindow as yn, isInChromePanel as wt } from "@vue/devtools-shared";
|
|
7
|
+
import { debounce as bn } from "perfect-debounce";
|
|
8
|
+
import { RecycleScroller as $n } from "vue-virtual-scroller";
|
|
9
|
+
import { flatten as wn, groupBy as kn } from "lodash-es";
|
|
10
|
+
const be = (t, e) => {
|
|
11
11
|
const n = t.__vccOpts || t;
|
|
12
12
|
for (const [o, s] of e)
|
|
13
13
|
n[o] = s;
|
|
14
14
|
return n;
|
|
15
|
-
},
|
|
15
|
+
}, In = {}, Sn = {
|
|
16
16
|
viewBox: "0 0 566 154",
|
|
17
17
|
fill: "none",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, wn = /* @__PURE__ */ Yt('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2), $n = [
|
|
20
|
-
|
|
19
|
+
}, Tn = /* @__PURE__ */ en('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2), En = [
|
|
20
|
+
Tn
|
|
21
21
|
];
|
|
22
|
-
function
|
|
23
|
-
return p(),
|
|
22
|
+
function Vn(t, e) {
|
|
23
|
+
return p(), h("svg", Sn, En);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
function
|
|
27
|
-
const n = (e == null ? void 0 : e.defaultRoutePath) ??
|
|
25
|
+
const Nn = /* @__PURE__ */ be(In, [["render", Vn]]), at = Symbol("VirtualRouteKey"), Dt = Symbol("VirtualRoutesKey");
|
|
26
|
+
function it(t, e) {
|
|
27
|
+
const n = (e == null ? void 0 : e.defaultRoutePath) ?? mt(t)[0].path, o = I({
|
|
28
28
|
path: n
|
|
29
|
-
}), s =
|
|
29
|
+
}), s = V(() => mt(t)), l = V(() => o.value.path), r = B({
|
|
30
30
|
setup() {
|
|
31
31
|
return () => {
|
|
32
|
-
const
|
|
33
|
-
return
|
|
32
|
+
const d = s.value.find((C) => C.path === l.value);
|
|
33
|
+
return d ? tn(d.component) : null;
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
function
|
|
37
|
+
function u() {
|
|
38
38
|
o.value.path = n;
|
|
39
39
|
}
|
|
40
|
-
return
|
|
40
|
+
return _e(at, o), _e(Dt, s), { VirtualRouterView: r, restoreRouter: u };
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const t =
|
|
42
|
+
function De() {
|
|
43
|
+
const t = ve(at);
|
|
44
44
|
return {
|
|
45
45
|
push(e) {
|
|
46
46
|
t.value.path = e;
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const t =
|
|
50
|
+
function Rn() {
|
|
51
|
+
const t = ve(Dt), e = ve(at);
|
|
52
52
|
return {
|
|
53
53
|
routes: t,
|
|
54
54
|
currentRoute: e
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const An = {
|
|
58
58
|
"h-full": "",
|
|
59
59
|
"w-full": "",
|
|
60
60
|
flex: "",
|
|
61
61
|
"items-center": ""
|
|
62
|
-
},
|
|
62
|
+
}, Dn = {
|
|
63
63
|
flex: "~ col gap2",
|
|
64
64
|
ma: "",
|
|
65
65
|
"px-5": ""
|
|
66
|
-
},
|
|
66
|
+
}, Pn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Mn = {
|
|
67
67
|
flex: "~ col",
|
|
68
68
|
"mt-20": "",
|
|
69
69
|
"items-center": ""
|
|
70
|
-
},
|
|
70
|
+
}, Hn = {
|
|
71
71
|
flex: "~",
|
|
72
72
|
"mt--10": "",
|
|
73
73
|
"items-center": "",
|
|
74
74
|
"justify-center": ""
|
|
75
|
-
},
|
|
75
|
+
}, Ln = /* @__PURE__ */ i("div", {
|
|
76
76
|
mb6: "",
|
|
77
77
|
"mt--1": "",
|
|
78
78
|
"text-center": "",
|
|
79
79
|
"text-sm": "",
|
|
80
80
|
flex: "~ gap-1"
|
|
81
81
|
}, [
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
], -1),
|
|
82
|
+
/* @__PURE__ */ i("span", { op40: "" }, " Pinia DevTools ")
|
|
83
|
+
], -1), jn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), On = { flex: "~ gap2 wrap" }, Un = /* @__PURE__ */ i("div", {
|
|
84
84
|
"i-carbon-tree-view-alt": "",
|
|
85
85
|
"text-3xl": ""
|
|
86
|
-
}, null, -1),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
],
|
|
86
|
+
}, null, -1), zn = /* @__PURE__ */ i("code", null, "Store", -1), Bn = [
|
|
87
|
+
Un,
|
|
88
|
+
zn
|
|
89
|
+
], Zn = /* @__PURE__ */ i("div", {
|
|
90
90
|
"i-mdi:timeline-clock-outline": "",
|
|
91
91
|
"text-3xl": ""
|
|
92
|
-
}, null, -1),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
],
|
|
92
|
+
}, null, -1), Fn = /* @__PURE__ */ i("div", null, "Timeline", -1), Gn = [
|
|
93
|
+
Zn,
|
|
94
|
+
Fn
|
|
95
|
+
], Kn = /* @__PURE__ */ i("div", {
|
|
96
96
|
flex: "~ gap-6 wrap",
|
|
97
97
|
"mt-5": "",
|
|
98
98
|
"items-center": "",
|
|
99
99
|
"justify-center": ""
|
|
100
100
|
}, [
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ i("a", {
|
|
102
102
|
href: "https://github.com/vuejs/pinia",
|
|
103
103
|
target: "_blank",
|
|
104
104
|
flex: "~ gap1",
|
|
@@ -107,10 +107,10 @@ const Sn = {
|
|
|
107
107
|
hover: "op100 text-blue",
|
|
108
108
|
transition: ""
|
|
109
109
|
}, [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ i("div", { "i-carbon-star": "" }),
|
|
111
|
+
/* @__PURE__ */ ne(" Star on GitHub ")
|
|
112
112
|
]),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ i("a", {
|
|
114
114
|
href: "https://pinia.vuejs.org/",
|
|
115
115
|
target: "_blank",
|
|
116
116
|
flex: "~ gap1",
|
|
@@ -119,117 +119,117 @@ const Sn = {
|
|
|
119
119
|
hover: "op100 text-yellow",
|
|
120
120
|
transition: ""
|
|
121
121
|
}, [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ i("div", { "i-carbon-document": "" }),
|
|
123
|
+
/* @__PURE__ */ ne(" View Documentation ")
|
|
124
124
|
])
|
|
125
|
-
], -1),
|
|
125
|
+
], -1), Wn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), qn = /* @__PURE__ */ B({
|
|
126
126
|
__name: "About",
|
|
127
127
|
setup(t) {
|
|
128
|
-
const e =
|
|
129
|
-
return (n, o) => (p(),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
const e = De();
|
|
129
|
+
return (n, o) => (p(), h("div", An, [
|
|
130
|
+
i("div", Dn, [
|
|
131
|
+
Pn,
|
|
132
|
+
i("div", Mn, [
|
|
133
|
+
i("div", Hn, [
|
|
134
|
+
x(Nn, { "h-18": "" })
|
|
135
135
|
]),
|
|
136
|
-
|
|
136
|
+
Ln
|
|
137
137
|
]),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
jn,
|
|
139
|
+
i("div", On, [
|
|
140
|
+
i("div", {
|
|
141
141
|
flex: "~ col auto",
|
|
142
142
|
"min-w-40": "",
|
|
143
143
|
p4: "",
|
|
144
144
|
"theme-card-lime": "",
|
|
145
|
-
onClick: o[0] || (o[0] = (s) =>
|
|
146
|
-
},
|
|
147
|
-
|
|
145
|
+
onClick: o[0] || (o[0] = (s) => c(e).push("/store"))
|
|
146
|
+
}, Bn),
|
|
147
|
+
i("div", {
|
|
148
148
|
flex: "~ col auto",
|
|
149
149
|
"min-w-40": "",
|
|
150
150
|
p4: "",
|
|
151
151
|
"theme-card-lime": "",
|
|
152
|
-
onClick: o[1] || (o[1] = (s) =>
|
|
153
|
-
},
|
|
152
|
+
onClick: o[1] || (o[1] = (s) => c(e).push("/timeline"))
|
|
153
|
+
}, Gn)
|
|
154
154
|
]),
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
Kn,
|
|
156
|
+
Wn
|
|
157
157
|
])
|
|
158
158
|
]));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), Jn = { class: "flex gap3" }, Yn = ["onClick"], Se = /* @__PURE__ */ B({
|
|
161
161
|
__name: "Navbar",
|
|
162
162
|
setup(t) {
|
|
163
|
-
const { routes: e, currentRoute: n } =
|
|
164
|
-
return (s, l) => (p(),
|
|
165
|
-
(p(!0),
|
|
166
|
-
key:
|
|
167
|
-
class:
|
|
168
|
-
onClick: (
|
|
169
|
-
},
|
|
163
|
+
const { routes: e, currentRoute: n } = Rn(), o = De();
|
|
164
|
+
return (s, l) => (p(), h("ul", Jn, [
|
|
165
|
+
(p(!0), h(te, null, ae(c(e), (r, u) => (p(), h("li", {
|
|
166
|
+
key: u,
|
|
167
|
+
class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", c(n).path === r.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
|
|
168
|
+
onClick: (d) => c(o).push(r.path)
|
|
169
|
+
}, oe(r.name), 11, Yn))), 128))
|
|
170
170
|
]));
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), Xn = {
|
|
173
173
|
border: "b base",
|
|
174
174
|
class: "flex items-center justify-between px3"
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
],
|
|
178
|
-
|
|
179
|
-
],
|
|
175
|
+
}, Qn = ["href"], eo = /* @__PURE__ */ i("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1), to = [
|
|
176
|
+
eo
|
|
177
|
+
], no = ["href"], oo = /* @__PURE__ */ i("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1), lo = [
|
|
178
|
+
oo
|
|
179
|
+
], Te = /* @__PURE__ */ B({
|
|
180
180
|
__name: "DevToolsHeader",
|
|
181
181
|
props: {
|
|
182
182
|
githubRepoLink: {},
|
|
183
183
|
docLink: {}
|
|
184
184
|
},
|
|
185
185
|
setup(t) {
|
|
186
|
-
const e =
|
|
187
|
-
return (n, o) => (p(),
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
const e = De();
|
|
187
|
+
return (n, o) => (p(), h("div", Xn, [
|
|
188
|
+
i("div", null, [
|
|
189
|
+
et(n.$slots, "default", {}, () => [
|
|
190
|
+
i("i", {
|
|
191
191
|
class: "i-ep:back cursor-pointer op70 text-base hover:op100",
|
|
192
|
-
onClick: o[0] || (o[0] = (s) =>
|
|
192
|
+
onClick: o[0] || (o[0] = (s) => c(e).push("/"))
|
|
193
193
|
})
|
|
194
194
|
])
|
|
195
195
|
]),
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
i("div", null, [
|
|
197
|
+
i("a", {
|
|
198
198
|
class: "pr2",
|
|
199
199
|
href: n.docLink,
|
|
200
200
|
target: "_blank",
|
|
201
201
|
title: "View Documentation"
|
|
202
|
-
},
|
|
203
|
-
n.githubRepoLink ? (p(),
|
|
202
|
+
}, to, 8, Qn),
|
|
203
|
+
n.githubRepoLink ? (p(), h("a", {
|
|
204
204
|
key: 0,
|
|
205
205
|
href: n.githubRepoLink,
|
|
206
206
|
target: "_blank",
|
|
207
207
|
title: "Star on GitHub"
|
|
208
|
-
},
|
|
208
|
+
}, lo, 8, no)) : U("", !0)
|
|
209
209
|
])
|
|
210
210
|
]));
|
|
211
211
|
}
|
|
212
|
-
}),
|
|
213
|
-
function
|
|
214
|
-
return p(),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
}), so = {}, ao = { class: "h-full flex flex-col items-center justify-center op50" }, io = /* @__PURE__ */ i("i", { class: "i-lets-icons:blank-light" }, null, -1);
|
|
213
|
+
function ro(t, e) {
|
|
214
|
+
return p(), h("div", ao, [
|
|
215
|
+
io,
|
|
216
|
+
i("span", null, [
|
|
217
|
+
et(t.$slots, "default")
|
|
218
218
|
])
|
|
219
219
|
]);
|
|
220
220
|
}
|
|
221
|
-
const
|
|
222
|
-
function
|
|
223
|
-
return
|
|
221
|
+
const Ne = /* @__PURE__ */ be(so, [["render", ro]]);
|
|
222
|
+
function rt(t) {
|
|
223
|
+
return on() ? (ln(t), !0) : !1;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
return typeof t == "function" ? t() :
|
|
225
|
+
function ee(t) {
|
|
226
|
+
return typeof t == "function" ? t() : c(t);
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const ut = typeof window < "u" && typeof document < "u";
|
|
229
229
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
230
|
-
const
|
|
230
|
+
const uo = (t) => typeof t < "u", co = Object.prototype.toString, po = (t) => co.call(t) === "[object Object]", Fe = () => {
|
|
231
231
|
};
|
|
232
|
-
function
|
|
232
|
+
function fo(t, e) {
|
|
233
233
|
function n(...o) {
|
|
234
234
|
return new Promise((s, l) => {
|
|
235
235
|
Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(s).catch(l);
|
|
@@ -237,29 +237,29 @@ function io(t, e) {
|
|
|
237
237
|
}
|
|
238
238
|
return n;
|
|
239
239
|
}
|
|
240
|
-
const
|
|
241
|
-
function
|
|
242
|
-
let n, o, s =
|
|
243
|
-
const l = (
|
|
244
|
-
clearTimeout(
|
|
240
|
+
const vo = (t) => t();
|
|
241
|
+
function ho(t, e = {}) {
|
|
242
|
+
let n, o, s = Fe;
|
|
243
|
+
const l = (u) => {
|
|
244
|
+
clearTimeout(u), s(), s = Fe;
|
|
245
245
|
};
|
|
246
|
-
return (
|
|
247
|
-
const
|
|
248
|
-
return n && l(n),
|
|
249
|
-
s = e.rejectOnCancel ?
|
|
250
|
-
n && l(n), o = null,
|
|
246
|
+
return (u) => {
|
|
247
|
+
const d = ee(t), C = ee(e.maxWait);
|
|
248
|
+
return n && l(n), d <= 0 || C !== void 0 && C <= 0 ? (o && (l(o), o = null), Promise.resolve(u())) : new Promise((v, a) => {
|
|
249
|
+
s = e.rejectOnCancel ? a : v, C && !o && (o = setTimeout(() => {
|
|
250
|
+
n && l(n), o = null, v(u());
|
|
251
251
|
}, C)), n = setTimeout(() => {
|
|
252
|
-
o && l(o), o = null,
|
|
253
|
-
},
|
|
252
|
+
o && l(o), o = null, v(u());
|
|
253
|
+
}, d);
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function kt(t, e = !1, n = "Timeout") {
|
|
258
258
|
return new Promise((o, s) => {
|
|
259
259
|
setTimeout(e ? () => s(n) : o, t);
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function mo(t) {
|
|
263
263
|
let e;
|
|
264
264
|
function n() {
|
|
265
265
|
return e || (e = t()), e;
|
|
@@ -269,337 +269,344 @@ function co(t) {
|
|
|
269
269
|
e = void 0, o && await o;
|
|
270
270
|
}, n;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
return
|
|
272
|
+
function _o(t) {
|
|
273
|
+
return tt();
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function go(t, e, n = {}) {
|
|
276
276
|
const {
|
|
277
|
-
eventFilter: o =
|
|
277
|
+
eventFilter: o = vo,
|
|
278
278
|
...s
|
|
279
279
|
} = n;
|
|
280
280
|
return X(
|
|
281
281
|
t,
|
|
282
|
-
|
|
282
|
+
fo(
|
|
283
283
|
o,
|
|
284
284
|
e
|
|
285
285
|
),
|
|
286
286
|
s
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
289
|
+
function Co(t, e = !0, n) {
|
|
290
|
+
_o() ? Vt(t, n) : e ? t() : Be(t);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
function n(
|
|
292
|
+
function Qe(t, e = !1) {
|
|
293
|
+
function n(a, { flush: f = "sync", deep: m = !1, timeout: y, throwOnTimeout: _ } = {}) {
|
|
294
294
|
let k = null;
|
|
295
|
-
const
|
|
295
|
+
const j = [new Promise((N) => {
|
|
296
296
|
k = X(
|
|
297
297
|
t,
|
|
298
|
-
(
|
|
299
|
-
|
|
298
|
+
($) => {
|
|
299
|
+
a($) !== e && (k ? k() : Be(() => k == null ? void 0 : k()), N($));
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
|
-
flush:
|
|
303
|
-
deep:
|
|
302
|
+
flush: f,
|
|
303
|
+
deep: m,
|
|
304
304
|
immediate: !0
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
307
|
})];
|
|
308
|
-
return
|
|
309
|
-
|
|
310
|
-
), Promise.race(
|
|
308
|
+
return y != null && j.push(
|
|
309
|
+
kt(y, _).then(() => ee(t)).finally(() => k == null ? void 0 : k())
|
|
310
|
+
), Promise.race(j);
|
|
311
311
|
}
|
|
312
|
-
function o(
|
|
313
|
-
if (!
|
|
314
|
-
return n((
|
|
315
|
-
const { flush:
|
|
316
|
-
let
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
[t,
|
|
320
|
-
([
|
|
321
|
-
e !== (
|
|
312
|
+
function o(a, f) {
|
|
313
|
+
if (!Ge(a))
|
|
314
|
+
return n(($) => $ === a, f);
|
|
315
|
+
const { flush: m = "sync", deep: y = !1, timeout: _, throwOnTimeout: k } = f ?? {};
|
|
316
|
+
let O = null;
|
|
317
|
+
const N = [new Promise(($) => {
|
|
318
|
+
O = X(
|
|
319
|
+
[t, a],
|
|
320
|
+
([R, H]) => {
|
|
321
|
+
e !== (R === H) && (O ? O() : Be(() => O == null ? void 0 : O()), $(R));
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
|
-
flush:
|
|
325
|
-
deep:
|
|
324
|
+
flush: m,
|
|
325
|
+
deep: y,
|
|
326
326
|
immediate: !0
|
|
327
327
|
}
|
|
328
328
|
);
|
|
329
329
|
})];
|
|
330
|
-
return
|
|
331
|
-
|
|
332
|
-
), Promise.race(
|
|
330
|
+
return _ != null && N.push(
|
|
331
|
+
kt(_, k).then(() => ee(t)).finally(() => (O == null || O(), ee(t)))
|
|
332
|
+
), Promise.race(N);
|
|
333
333
|
}
|
|
334
|
-
function s(
|
|
335
|
-
return n((
|
|
334
|
+
function s(a) {
|
|
335
|
+
return n((f) => !!f, a);
|
|
336
336
|
}
|
|
337
|
-
function l(
|
|
338
|
-
return o(null,
|
|
337
|
+
function l(a) {
|
|
338
|
+
return o(null, a);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
return o(void 0,
|
|
340
|
+
function r(a) {
|
|
341
|
+
return o(void 0, a);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
return n(Number.isNaN,
|
|
343
|
+
function u(a) {
|
|
344
|
+
return n(Number.isNaN, a);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
return n((
|
|
348
|
-
const
|
|
349
|
-
return
|
|
350
|
-
},
|
|
346
|
+
function d(a, f) {
|
|
347
|
+
return n((m) => {
|
|
348
|
+
const y = Array.from(m);
|
|
349
|
+
return y.includes(a) || y.includes(ee(a));
|
|
350
|
+
}, f);
|
|
351
351
|
}
|
|
352
|
-
function C(
|
|
353
|
-
return
|
|
352
|
+
function C(a) {
|
|
353
|
+
return v(1, a);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
let
|
|
357
|
-
return n(() => (
|
|
355
|
+
function v(a = 1, f) {
|
|
356
|
+
let m = -1;
|
|
357
|
+
return n(() => (m += 1, m >= a), f);
|
|
358
358
|
}
|
|
359
|
-
return Array.isArray(
|
|
359
|
+
return Array.isArray(ee(t)) ? {
|
|
360
360
|
toMatch: n,
|
|
361
|
-
toContains:
|
|
361
|
+
toContains: d,
|
|
362
362
|
changed: C,
|
|
363
|
-
changedTimes:
|
|
363
|
+
changedTimes: v,
|
|
364
364
|
get not() {
|
|
365
|
-
return
|
|
365
|
+
return Qe(t, !e);
|
|
366
366
|
}
|
|
367
367
|
} : {
|
|
368
368
|
toMatch: n,
|
|
369
369
|
toBe: o,
|
|
370
370
|
toBeTruthy: s,
|
|
371
371
|
toBeNull: l,
|
|
372
|
-
toBeNaN:
|
|
373
|
-
toBeUndefined:
|
|
372
|
+
toBeNaN: u,
|
|
373
|
+
toBeUndefined: r,
|
|
374
374
|
changed: C,
|
|
375
|
-
changedTimes:
|
|
375
|
+
changedTimes: v,
|
|
376
376
|
get not() {
|
|
377
|
-
return
|
|
377
|
+
return Qe(t, !e);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
return
|
|
381
|
+
function Pt(t) {
|
|
382
|
+
return Qe(t);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function xo(t, e, n = {}) {
|
|
385
385
|
const {
|
|
386
386
|
immediate: o = !0
|
|
387
387
|
} = n, s = I(!1);
|
|
388
388
|
let l = null;
|
|
389
|
-
function
|
|
389
|
+
function r() {
|
|
390
390
|
l && (clearTimeout(l), l = null);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
s.value = !1,
|
|
392
|
+
function u() {
|
|
393
|
+
s.value = !1, r();
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
395
|
+
function d(...C) {
|
|
396
|
+
r(), s.value = !0, l = setTimeout(() => {
|
|
397
397
|
s.value = !1, l = null, t(...C);
|
|
398
|
-
},
|
|
398
|
+
}, ee(e));
|
|
399
399
|
}
|
|
400
|
-
return o && (s.value = !0,
|
|
401
|
-
isPending:
|
|
402
|
-
start:
|
|
403
|
-
stop:
|
|
400
|
+
return o && (s.value = !0, ut && d()), rt(u), {
|
|
401
|
+
isPending: nn(s),
|
|
402
|
+
start: d,
|
|
403
|
+
stop: u
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function yo(t = !1, e = {}) {
|
|
407
407
|
const {
|
|
408
408
|
truthyValue: n = !0,
|
|
409
409
|
falsyValue: o = !1
|
|
410
|
-
} = e, s =
|
|
411
|
-
function u
|
|
410
|
+
} = e, s = Ge(t), l = I(t);
|
|
411
|
+
function r(u) {
|
|
412
412
|
if (arguments.length)
|
|
413
|
-
return l.value =
|
|
413
|
+
return l.value = u, l.value;
|
|
414
414
|
{
|
|
415
|
-
const
|
|
416
|
-
return l.value = l.value ===
|
|
415
|
+
const d = ee(n);
|
|
416
|
+
return l.value = l.value === d ? ee(o) : d, l.value;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
return s ?
|
|
419
|
+
return s ? r : [l, r];
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function bo(t, e, n = {}) {
|
|
422
422
|
const {
|
|
423
423
|
debounce: o = 0,
|
|
424
424
|
maxWait: s = void 0,
|
|
425
425
|
...l
|
|
426
426
|
} = n;
|
|
427
|
-
return
|
|
427
|
+
return go(
|
|
428
428
|
t,
|
|
429
429
|
e,
|
|
430
430
|
{
|
|
431
431
|
...l,
|
|
432
|
-
eventFilter:
|
|
432
|
+
eventFilter: ho(o, { maxWait: s })
|
|
433
433
|
}
|
|
434
434
|
);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function xe(t) {
|
|
437
437
|
var e;
|
|
438
|
-
const n =
|
|
438
|
+
const n = ee(t);
|
|
439
439
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
function
|
|
441
|
+
const Ke = ut ? window : void 0, Mt = ut ? window.navigator : void 0;
|
|
442
|
+
function me(...t) {
|
|
443
443
|
let e, n, o, s;
|
|
444
|
-
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, o, s] = t, e =
|
|
445
|
-
return
|
|
444
|
+
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, o, s] = t, e = Ke) : [e, n, o, s] = t, !e)
|
|
445
|
+
return Fe;
|
|
446
446
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
447
|
-
const l = [],
|
|
448
|
-
l.forEach((
|
|
449
|
-
},
|
|
450
|
-
() => [
|
|
451
|
-
([
|
|
452
|
-
if (
|
|
447
|
+
const l = [], r = () => {
|
|
448
|
+
l.forEach((v) => v()), l.length = 0;
|
|
449
|
+
}, u = (v, a, f, m) => (v.addEventListener(a, f, m), () => v.removeEventListener(a, f, m)), d = X(
|
|
450
|
+
() => [xe(e), ee(s)],
|
|
451
|
+
([v, a]) => {
|
|
452
|
+
if (r(), !v)
|
|
453
453
|
return;
|
|
454
|
-
const
|
|
454
|
+
const f = po(a) ? { ...a } : a;
|
|
455
455
|
l.push(
|
|
456
|
-
...n.flatMap((
|
|
456
|
+
...n.flatMap((m) => o.map((y) => u(v, m, y, f)))
|
|
457
457
|
);
|
|
458
458
|
},
|
|
459
459
|
{ immediate: !0, flush: "post" }
|
|
460
460
|
), C = () => {
|
|
461
|
-
|
|
461
|
+
d(), r();
|
|
462
462
|
};
|
|
463
|
-
return
|
|
463
|
+
return rt(C), C;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
const t = I(!1), e =
|
|
467
|
-
return e &&
|
|
465
|
+
function $o() {
|
|
466
|
+
const t = I(!1), e = tt();
|
|
467
|
+
return e && Vt(() => {
|
|
468
468
|
t.value = !0;
|
|
469
469
|
}, e), t;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
const e =
|
|
473
|
-
return
|
|
471
|
+
function ct(t) {
|
|
472
|
+
const e = $o();
|
|
473
|
+
return V(() => (e.value, !!t()));
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function It(t, e = {}) {
|
|
476
476
|
const {
|
|
477
477
|
controls: n = !1,
|
|
478
|
-
navigator: o =
|
|
479
|
-
} = e, s =
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
478
|
+
navigator: o = Mt
|
|
479
|
+
} = e, s = ct(() => o && "permissions" in o), l = gt(), r = typeof t == "string" ? { name: t } : t, u = gt(), d = () => {
|
|
480
|
+
var v, a;
|
|
481
|
+
u.value = (a = (v = l.value) == null ? void 0 : v.state) != null ? a : "prompt";
|
|
482
|
+
};
|
|
483
|
+
me(l, "change", d);
|
|
484
|
+
const C = mo(async () => {
|
|
484
485
|
if (s.value) {
|
|
485
|
-
if (!l)
|
|
486
|
+
if (!l.value)
|
|
486
487
|
try {
|
|
487
|
-
l = await o.permissions.query(
|
|
488
|
+
l.value = await o.permissions.query(r);
|
|
488
489
|
} catch {
|
|
489
|
-
|
|
490
|
+
l.value = void 0;
|
|
491
|
+
} finally {
|
|
492
|
+
d();
|
|
490
493
|
}
|
|
491
|
-
|
|
494
|
+
if (n)
|
|
495
|
+
return Nt(l.value);
|
|
492
496
|
}
|
|
493
497
|
});
|
|
494
498
|
return C(), n ? {
|
|
495
|
-
state:
|
|
499
|
+
state: u,
|
|
496
500
|
isSupported: s,
|
|
497
501
|
query: C
|
|
498
|
-
} :
|
|
502
|
+
} : u;
|
|
499
503
|
}
|
|
500
|
-
function
|
|
504
|
+
function wo(t = {}) {
|
|
501
505
|
const {
|
|
502
|
-
navigator: e =
|
|
506
|
+
navigator: e = Mt,
|
|
503
507
|
read: n = !1,
|
|
504
508
|
source: o,
|
|
505
509
|
copiedDuring: s = 1500,
|
|
506
510
|
legacy: l = !1
|
|
507
|
-
} = t,
|
|
508
|
-
function
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}) :
|
|
511
|
+
} = t, r = ct(() => e && "clipboard" in e), u = It("clipboard-read"), d = It("clipboard-write"), C = V(() => r.value || l), v = I(""), a = I(!1), f = xo(() => a.value = !1, s);
|
|
512
|
+
function m() {
|
|
513
|
+
r.value && O(u.value) ? e.clipboard.readText().then((j) => {
|
|
514
|
+
v.value = j;
|
|
515
|
+
}) : v.value = k();
|
|
512
516
|
}
|
|
513
|
-
C.value && n &&
|
|
514
|
-
async function
|
|
515
|
-
C.value &&
|
|
517
|
+
C.value && n && me(["copy", "cut"], m);
|
|
518
|
+
async function y(j = ee(o)) {
|
|
519
|
+
C.value && j != null && (r.value && O(d.value) ? await e.clipboard.writeText(j) : _(j), v.value = j, a.value = !0, f.start());
|
|
516
520
|
}
|
|
517
|
-
function
|
|
518
|
-
const
|
|
519
|
-
|
|
521
|
+
function _(j) {
|
|
522
|
+
const N = document.createElement("textarea");
|
|
523
|
+
N.value = j ?? "", N.style.position = "absolute", N.style.opacity = "0", document.body.appendChild(N), N.select(), document.execCommand("copy"), N.remove();
|
|
520
524
|
}
|
|
521
525
|
function k() {
|
|
522
|
-
var
|
|
523
|
-
return (
|
|
526
|
+
var j, N, $;
|
|
527
|
+
return ($ = (N = (j = document == null ? void 0 : document.getSelection) == null ? void 0 : j.call(document)) == null ? void 0 : N.toString()) != null ? $ : "";
|
|
524
528
|
}
|
|
525
|
-
function j
|
|
526
|
-
return
|
|
529
|
+
function O(j) {
|
|
530
|
+
return j === "granted" || j === "prompt";
|
|
527
531
|
}
|
|
528
532
|
return {
|
|
529
533
|
isSupported: C,
|
|
530
|
-
text:
|
|
531
|
-
copied:
|
|
532
|
-
copy:
|
|
534
|
+
text: v,
|
|
535
|
+
copied: a,
|
|
536
|
+
copy: y
|
|
533
537
|
};
|
|
534
538
|
}
|
|
535
|
-
function
|
|
539
|
+
function ko(t) {
|
|
536
540
|
return JSON.parse(JSON.stringify(t));
|
|
537
541
|
}
|
|
538
|
-
function
|
|
539
|
-
const { window: o =
|
|
542
|
+
function Io(t, e, n = {}) {
|
|
543
|
+
const { window: o = Ke, ...s } = n;
|
|
540
544
|
let l;
|
|
541
|
-
const
|
|
545
|
+
const r = ct(() => o && "ResizeObserver" in o), u = () => {
|
|
542
546
|
l && (l.disconnect(), l = void 0);
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
(
|
|
546
|
-
|
|
547
|
+
}, d = V(() => {
|
|
548
|
+
const a = ee(t);
|
|
549
|
+
return Array.isArray(a) ? a.map((f) => xe(f)) : [xe(a)];
|
|
550
|
+
}), C = X(
|
|
551
|
+
d,
|
|
552
|
+
(a) => {
|
|
553
|
+
if (u(), r.value && o) {
|
|
547
554
|
l = new ResizeObserver(e);
|
|
548
|
-
for (const
|
|
549
|
-
|
|
555
|
+
for (const f of a)
|
|
556
|
+
f && l.observe(f, s);
|
|
550
557
|
}
|
|
551
558
|
},
|
|
552
559
|
{ immediate: !0, flush: "post" }
|
|
553
|
-
),
|
|
554
|
-
|
|
560
|
+
), v = () => {
|
|
561
|
+
u(), C();
|
|
555
562
|
};
|
|
556
|
-
return
|
|
557
|
-
isSupported:
|
|
558
|
-
stop:
|
|
563
|
+
return rt(v), {
|
|
564
|
+
isSupported: r,
|
|
565
|
+
stop: v
|
|
559
566
|
};
|
|
560
567
|
}
|
|
561
|
-
function
|
|
562
|
-
const { window: o =
|
|
563
|
-
var
|
|
564
|
-
return (
|
|
565
|
-
}),
|
|
568
|
+
function So(t, e = { width: 0, height: 0 }, n = {}) {
|
|
569
|
+
const { window: o = Ke, box: s = "content-box" } = n, l = V(() => {
|
|
570
|
+
var a, f;
|
|
571
|
+
return (f = (a = xe(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
572
|
+
}), r = I(e.width), u = I(e.height), { stop: d } = Io(
|
|
566
573
|
t,
|
|
567
|
-
([
|
|
568
|
-
const
|
|
574
|
+
([a]) => {
|
|
575
|
+
const f = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
569
576
|
if (o && l.value) {
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
const
|
|
573
|
-
|
|
577
|
+
const m = xe(t);
|
|
578
|
+
if (m) {
|
|
579
|
+
const y = m.getBoundingClientRect();
|
|
580
|
+
r.value = y.width, u.value = y.height;
|
|
574
581
|
}
|
|
575
|
-
} else if (
|
|
576
|
-
const
|
|
577
|
-
|
|
582
|
+
} else if (f) {
|
|
583
|
+
const m = Array.isArray(f) ? f : [f];
|
|
584
|
+
r.value = m.reduce((y, { inlineSize: _ }) => y + _, 0), u.value = m.reduce((y, { blockSize: _ }) => y + _, 0);
|
|
578
585
|
} else
|
|
579
|
-
|
|
586
|
+
r.value = a.contentRect.width, u.value = a.contentRect.height;
|
|
580
587
|
},
|
|
581
588
|
n
|
|
582
589
|
);
|
|
583
|
-
|
|
584
|
-
const
|
|
585
|
-
|
|
590
|
+
Co(() => {
|
|
591
|
+
const a = xe(t);
|
|
592
|
+
a && (r.value = "offsetWidth" in a ? a.offsetWidth : e.width, u.value = "offsetHeight" in a ? a.offsetHeight : e.height);
|
|
586
593
|
});
|
|
587
594
|
const C = X(
|
|
588
|
-
() =>
|
|
589
|
-
(
|
|
590
|
-
|
|
595
|
+
() => xe(t),
|
|
596
|
+
(a) => {
|
|
597
|
+
r.value = a ? e.width : 0, u.value = a ? e.height : 0;
|
|
591
598
|
}
|
|
592
599
|
);
|
|
593
|
-
function
|
|
594
|
-
|
|
600
|
+
function v() {
|
|
601
|
+
d(), C();
|
|
595
602
|
}
|
|
596
603
|
return {
|
|
597
|
-
width:
|
|
598
|
-
height:
|
|
599
|
-
stop:
|
|
604
|
+
width: r,
|
|
605
|
+
height: u,
|
|
606
|
+
stop: v
|
|
600
607
|
};
|
|
601
608
|
}
|
|
602
|
-
const
|
|
609
|
+
const To = {
|
|
603
610
|
ctrl: "control",
|
|
604
611
|
command: "meta",
|
|
605
612
|
cmd: "meta",
|
|
@@ -609,109 +616,109 @@ const wo = {
|
|
|
609
616
|
left: "arrowleft",
|
|
610
617
|
right: "arrowright"
|
|
611
618
|
};
|
|
612
|
-
function
|
|
619
|
+
function Eo(t = {}) {
|
|
613
620
|
const {
|
|
614
621
|
reactive: e = !1,
|
|
615
|
-
target: n =
|
|
616
|
-
aliasMap: o =
|
|
622
|
+
target: n = Ke,
|
|
623
|
+
aliasMap: o = To,
|
|
617
624
|
passive: s = !0,
|
|
618
|
-
onEventFired: l =
|
|
619
|
-
} = t,
|
|
625
|
+
onEventFired: l = Fe
|
|
626
|
+
} = t, r = _t(/* @__PURE__ */ new Set()), u = {
|
|
620
627
|
toJSON() {
|
|
621
628
|
return {};
|
|
622
629
|
},
|
|
623
|
-
current:
|
|
624
|
-
},
|
|
625
|
-
function
|
|
626
|
-
|
|
630
|
+
current: r
|
|
631
|
+
}, d = e ? _t(u) : u, C = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
|
|
632
|
+
function a(_, k) {
|
|
633
|
+
_ in d && (e ? d[_] = k : d[_].value = k);
|
|
627
634
|
}
|
|
628
|
-
function
|
|
629
|
-
|
|
630
|
-
for (const
|
|
631
|
-
|
|
635
|
+
function f() {
|
|
636
|
+
r.clear();
|
|
637
|
+
for (const _ of v)
|
|
638
|
+
a(_, !1);
|
|
632
639
|
}
|
|
633
|
-
function _
|
|
634
|
-
var
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
for (const
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}), C.clear()) : typeof
|
|
640
|
+
function m(_, k) {
|
|
641
|
+
var O, j;
|
|
642
|
+
const N = (O = _.key) == null ? void 0 : O.toLowerCase(), R = [(j = _.code) == null ? void 0 : j.toLowerCase(), N].filter(Boolean);
|
|
643
|
+
N && (k ? r.add(N) : r.delete(N));
|
|
644
|
+
for (const H of R)
|
|
645
|
+
v.add(H), a(H, k);
|
|
646
|
+
N === "meta" && !k ? (C.forEach((H) => {
|
|
647
|
+
r.delete(H), a(H, !1);
|
|
648
|
+
}), C.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && k && [...r, ...R].forEach((H) => C.add(H));
|
|
642
649
|
}
|
|
643
|
-
|
|
644
|
-
const
|
|
645
|
-
|
|
650
|
+
me(n, "keydown", (_) => (m(_, !0), l(_)), { passive: s }), me(n, "keyup", (_) => (m(_, !1), l(_)), { passive: s }), me("blur", f, { passive: !0 }), me("focus", f, { passive: !0 });
|
|
651
|
+
const y = new Proxy(
|
|
652
|
+
d,
|
|
646
653
|
{
|
|
647
|
-
get(
|
|
654
|
+
get(_, k, O) {
|
|
648
655
|
if (typeof k != "string")
|
|
649
|
-
return Reflect.get(
|
|
650
|
-
if (k = k.toLowerCase(), k in o && (k = o[k]), !(k in
|
|
656
|
+
return Reflect.get(_, k, O);
|
|
657
|
+
if (k = k.toLowerCase(), k in o && (k = o[k]), !(k in d))
|
|
651
658
|
if (/[+_-]/.test(k)) {
|
|
652
|
-
const
|
|
653
|
-
|
|
659
|
+
const N = k.split(/[+_-]/g).map(($) => $.trim());
|
|
660
|
+
d[k] = V(() => N.every(($) => ee(y[$])));
|
|
654
661
|
} else
|
|
655
|
-
|
|
656
|
-
const
|
|
657
|
-
return e ?
|
|
662
|
+
d[k] = I(!1);
|
|
663
|
+
const j = Reflect.get(_, k, O);
|
|
664
|
+
return e ? ee(j) : j;
|
|
658
665
|
}
|
|
659
666
|
}
|
|
660
667
|
);
|
|
661
|
-
return
|
|
668
|
+
return y;
|
|
662
669
|
}
|
|
663
|
-
function
|
|
664
|
-
var s, l,
|
|
670
|
+
function Vo(t, e, n, o = {}) {
|
|
671
|
+
var s, l, r;
|
|
665
672
|
const {
|
|
666
|
-
clone:
|
|
667
|
-
passive:
|
|
673
|
+
clone: u = !1,
|
|
674
|
+
passive: d = !1,
|
|
668
675
|
eventName: C,
|
|
669
|
-
deep:
|
|
670
|
-
defaultValue:
|
|
671
|
-
shouldEmit:
|
|
672
|
-
} = o,
|
|
673
|
-
let
|
|
674
|
-
|
|
675
|
-
const k = (
|
|
676
|
-
|
|
676
|
+
deep: v = !1,
|
|
677
|
+
defaultValue: a,
|
|
678
|
+
shouldEmit: f
|
|
679
|
+
} = o, m = tt(), y = n || (m == null ? void 0 : m.emit) || ((s = m == null ? void 0 : m.$emit) == null ? void 0 : s.bind(m)) || ((r = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : r.bind(m == null ? void 0 : m.proxy));
|
|
680
|
+
let _ = C;
|
|
681
|
+
_ = _ || `update:${e.toString()}`;
|
|
682
|
+
const k = (N) => u ? typeof u == "function" ? u(N) : ko(N) : N, O = () => uo(t[e]) ? k(t[e]) : a, j = (N) => {
|
|
683
|
+
f ? f(N) && y(_, N) : y(_, N);
|
|
677
684
|
};
|
|
678
|
-
if (
|
|
679
|
-
const
|
|
680
|
-
let
|
|
685
|
+
if (d) {
|
|
686
|
+
const N = O(), $ = I(N);
|
|
687
|
+
let R = !1;
|
|
681
688
|
return X(
|
|
682
689
|
() => t[e],
|
|
683
|
-
(
|
|
684
|
-
|
|
690
|
+
(H) => {
|
|
691
|
+
R || (R = !0, $.value = k(H), Be(() => R = !1));
|
|
685
692
|
}
|
|
686
693
|
), X(
|
|
687
|
-
|
|
688
|
-
(
|
|
689
|
-
!
|
|
694
|
+
$,
|
|
695
|
+
(H) => {
|
|
696
|
+
!R && (H !== t[e] || v) && j(H);
|
|
690
697
|
},
|
|
691
|
-
{ deep:
|
|
692
|
-
),
|
|
698
|
+
{ deep: v }
|
|
699
|
+
), $;
|
|
693
700
|
} else
|
|
694
|
-
return
|
|
701
|
+
return V({
|
|
695
702
|
get() {
|
|
696
|
-
return
|
|
703
|
+
return O();
|
|
697
704
|
},
|
|
698
|
-
set(
|
|
699
|
-
|
|
705
|
+
set(N) {
|
|
706
|
+
j(N);
|
|
700
707
|
}
|
|
701
708
|
});
|
|
702
709
|
}
|
|
703
|
-
const
|
|
704
|
-
function
|
|
710
|
+
const Ht = Symbol("StateEditorSymbol");
|
|
711
|
+
function No(t) {
|
|
705
712
|
const e = I(t);
|
|
706
|
-
return
|
|
713
|
+
return _e(Ht, e), {
|
|
707
714
|
context: e
|
|
708
715
|
};
|
|
709
716
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
717
|
+
function dt() {
|
|
718
|
+
return ve(Ht);
|
|
712
719
|
}
|
|
713
|
-
function
|
|
714
|
-
const t = I(""), e = I("string"), n = I(!1), o =
|
|
720
|
+
function Ro() {
|
|
721
|
+
const t = I(""), e = I("string"), n = I(!1), o = dt();
|
|
715
722
|
return {
|
|
716
723
|
editingText: t,
|
|
717
724
|
editing: n,
|
|
@@ -719,10 +726,10 @@ function To() {
|
|
|
719
726
|
s && (e.value = s), n.value = !n.value;
|
|
720
727
|
},
|
|
721
728
|
editingType: e,
|
|
722
|
-
nodeId:
|
|
729
|
+
nodeId: V(() => o.value.nodeId)
|
|
723
730
|
};
|
|
724
731
|
}
|
|
725
|
-
function
|
|
732
|
+
function Ao(t, e) {
|
|
726
733
|
if (t === "array")
|
|
727
734
|
return e.length;
|
|
728
735
|
const n = "newProp";
|
|
@@ -734,14 +741,14 @@ function So(t, e) {
|
|
|
734
741
|
o++;
|
|
735
742
|
}
|
|
736
743
|
}
|
|
737
|
-
function
|
|
744
|
+
function Do() {
|
|
738
745
|
const t = I({
|
|
739
746
|
enable: !1,
|
|
740
747
|
key: "",
|
|
741
748
|
value: "undefined"
|
|
742
749
|
});
|
|
743
750
|
function e(o, s) {
|
|
744
|
-
const l =
|
|
751
|
+
const l = Ao(o, s);
|
|
745
752
|
t.value = {
|
|
746
753
|
enable: !0,
|
|
747
754
|
key: l.toString(),
|
|
@@ -761,7 +768,7 @@ function Eo() {
|
|
|
761
768
|
draftingNewProp: t
|
|
762
769
|
};
|
|
763
770
|
}
|
|
764
|
-
const
|
|
771
|
+
const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__PURE__ */ B({
|
|
765
772
|
__name: "StateFieldEditor",
|
|
766
773
|
props: {
|
|
767
774
|
data: {},
|
|
@@ -772,149 +779,149 @@ const Vo = { class: "flex pl5px" }, No = { class: "w160px py5px" }, Ao = /* @__P
|
|
|
772
779
|
},
|
|
773
780
|
emits: ["enableEditInput", "addNewProp"],
|
|
774
781
|
setup(t) {
|
|
775
|
-
const e = t, n =
|
|
782
|
+
const e = t, n = dt(), { copy: o, isSupported: s } = wo(), l = I(!1), r = V(() => Rt(e.data.value)), u = V(() => r.value.value), d = V(() => r.value.customType), C = V(() => u.value === null ? "null" : typeof u.value), v = {
|
|
776
783
|
flat: !0,
|
|
777
784
|
size: "mini"
|
|
778
|
-
},
|
|
785
|
+
}, a = V(() => ({
|
|
779
786
|
"opacity-0": !e.hovering
|
|
780
787
|
}));
|
|
781
|
-
async function
|
|
782
|
-
await
|
|
788
|
+
async function f(y, _ = !1) {
|
|
789
|
+
await A.value.editInspectorState({
|
|
783
790
|
path: e.data.path || [e.data.key],
|
|
784
791
|
inspectorId: n.value.inspectorId,
|
|
785
792
|
type: e.data.stateType,
|
|
786
793
|
nodeId: n.value.nodeId,
|
|
787
794
|
state: {
|
|
788
795
|
newKey: null,
|
|
789
|
-
value:
|
|
796
|
+
value: Nt(y),
|
|
790
797
|
type: C.value,
|
|
791
|
-
remove:
|
|
798
|
+
remove: _
|
|
792
799
|
}
|
|
793
|
-
}), await
|
|
794
|
-
}
|
|
795
|
-
function
|
|
796
|
-
const k = typeof
|
|
797
|
-
|
|
798
|
-
}
|
|
799
|
-
return (
|
|
800
|
-
!e.disableEdit &&
|
|
801
|
-
C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(),
|
|
802
|
-
|
|
803
|
-
class:
|
|
804
|
-
onClick:
|
|
800
|
+
}), await A.value.sendInspectorState(n.value.inspectorId);
|
|
801
|
+
}
|
|
802
|
+
function m(y, _) {
|
|
803
|
+
const k = typeof y == "number" ? y + _ : BigInt(y) + BigInt(_);
|
|
804
|
+
f(k);
|
|
805
|
+
}
|
|
806
|
+
return (y, _) => (p(), h("div", Po, [
|
|
807
|
+
!e.disableEdit && y.data.editable ? (p(), h(te, { key: 0 }, [
|
|
808
|
+
C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(), h(te, { key: 0 }, [
|
|
809
|
+
J((p(), z(c(de), ke(v, {
|
|
810
|
+
class: a.value,
|
|
811
|
+
onClick: _[0] || (_[0] = fe((k) => y.$emit("enableEditInput", C.value), ["stop"]))
|
|
805
812
|
}), {
|
|
806
|
-
icon:
|
|
807
|
-
|
|
813
|
+
icon: M(() => [
|
|
814
|
+
x(c(le), { icon: "i-material-symbols-edit-rounded" })
|
|
808
815
|
]),
|
|
809
816
|
_: 1
|
|
810
817
|
}, 16, ["class"])), [
|
|
811
|
-
[
|
|
818
|
+
[c(Q), {
|
|
812
819
|
content: "Edit value"
|
|
813
820
|
}]
|
|
814
821
|
]),
|
|
815
|
-
C.value === "object" &&
|
|
816
|
-
class:
|
|
817
|
-
onClick:
|
|
822
|
+
C.value === "object" && y.showAddIfNeeded ? J((p(), z(c(de), ke({ key: 0 }, v, {
|
|
823
|
+
class: a.value,
|
|
824
|
+
onClick: _[1] || (_[1] = fe((k) => y.$emit("addNewProp", Array.isArray(u.value) ? "array" : "object"), ["stop"]))
|
|
818
825
|
}), {
|
|
819
|
-
icon:
|
|
820
|
-
|
|
826
|
+
icon: M(() => [
|
|
827
|
+
x(c(le), { icon: "i-material-symbols-add-circle-rounded" })
|
|
821
828
|
]),
|
|
822
829
|
_: 1
|
|
823
830
|
}, 16, ["class"])), [
|
|
824
|
-
[
|
|
831
|
+
[c(Q), {
|
|
825
832
|
content: "Add new value"
|
|
826
833
|
}]
|
|
827
|
-
]) :
|
|
828
|
-
], 64)) :
|
|
829
|
-
C.value === "boolean" ? (p(),
|
|
830
|
-
class:
|
|
831
|
-
onClick:
|
|
834
|
+
]) : U("", !0)
|
|
835
|
+
], 64)) : U("", !0),
|
|
836
|
+
C.value === "boolean" ? (p(), z(c(de), ke({ key: 1 }, v, {
|
|
837
|
+
class: a.value,
|
|
838
|
+
onClick: _[2] || (_[2] = (k) => f(!u.value))
|
|
832
839
|
}), {
|
|
833
|
-
icon:
|
|
834
|
-
|
|
835
|
-
icon:
|
|
840
|
+
icon: M(() => [
|
|
841
|
+
x(c(le), {
|
|
842
|
+
icon: u.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
|
|
836
843
|
}, null, 8, ["icon"])
|
|
837
844
|
]),
|
|
838
845
|
_: 1
|
|
839
|
-
}, 16, ["class"])) : C.value === "number" ||
|
|
840
|
-
|
|
841
|
-
class:
|
|
842
|
-
onClick:
|
|
846
|
+
}, 16, ["class"])) : C.value === "number" || d.value === "bigint" ? (p(), h(te, { key: 2 }, [
|
|
847
|
+
x(c(de), ke(v, {
|
|
848
|
+
class: a.value,
|
|
849
|
+
onClick: _[3] || (_[3] = fe((k) => m(u.value, 1), ["stop"]))
|
|
843
850
|
}), {
|
|
844
|
-
icon:
|
|
845
|
-
|
|
851
|
+
icon: M(() => [
|
|
852
|
+
x(c(le), { icon: "i-carbon-add" })
|
|
846
853
|
]),
|
|
847
854
|
_: 1
|
|
848
855
|
}, 16, ["class"]),
|
|
849
|
-
|
|
850
|
-
class:
|
|
851
|
-
onClick:
|
|
856
|
+
x(c(de), ke(v, {
|
|
857
|
+
class: a.value,
|
|
858
|
+
onClick: _[4] || (_[4] = fe((k) => m(u.value, -1), ["stop"]))
|
|
852
859
|
}), {
|
|
853
|
-
icon:
|
|
854
|
-
|
|
860
|
+
icon: M(() => [
|
|
861
|
+
x(c(le), { icon: "i-carbon-subtract" })
|
|
855
862
|
]),
|
|
856
863
|
_: 1
|
|
857
864
|
}, 16, ["class"])
|
|
858
|
-
], 64)) :
|
|
859
|
-
], 64)) :
|
|
860
|
-
!e.disableEdit &&
|
|
861
|
-
class:
|
|
862
|
-
onClick:
|
|
865
|
+
], 64)) : U("", !0)
|
|
866
|
+
], 64)) : U("", !0),
|
|
867
|
+
!e.disableEdit && y.depth > 0 && y.data.editable ? (p(), z(c(de), ke({ key: 1 }, v, {
|
|
868
|
+
class: a.value,
|
|
869
|
+
onClick: _[5] || (_[5] = fe((k) => f(u.value, !0), ["stop"]))
|
|
863
870
|
}), {
|
|
864
|
-
icon:
|
|
865
|
-
|
|
871
|
+
icon: M(() => [
|
|
872
|
+
x(c(le), { icon: "i-material-symbols-delete-rounded" })
|
|
866
873
|
]),
|
|
867
874
|
_: 1
|
|
868
|
-
}, 16, ["class"])) :
|
|
869
|
-
|
|
870
|
-
class:
|
|
871
|
-
"opacity-0": !
|
|
875
|
+
}, 16, ["class"])) : U("", !0),
|
|
876
|
+
x(c(mn), {
|
|
877
|
+
class: ie({
|
|
878
|
+
"opacity-0": !y.hovering && !l.value
|
|
872
879
|
}),
|
|
873
880
|
"button-props": {
|
|
874
881
|
flat: !0,
|
|
875
882
|
size: "mini"
|
|
876
883
|
},
|
|
877
|
-
disabled: !
|
|
878
|
-
"onUpdate:visible":
|
|
884
|
+
disabled: !c(s),
|
|
885
|
+
"onUpdate:visible": _[8] || (_[8] = (k) => l.value = k)
|
|
879
886
|
}, {
|
|
880
|
-
popper:
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
onClick:
|
|
887
|
+
popper: M(() => [
|
|
888
|
+
i("div", Mo, [
|
|
889
|
+
x(c(xt), {
|
|
890
|
+
onClick: _[6] || (_[6] = (k) => c(o)(typeof u.value == "object" ? JSON.stringify(u.value) : u.value.toString()))
|
|
884
891
|
}, {
|
|
885
|
-
icon:
|
|
886
|
-
|
|
892
|
+
icon: M(() => [
|
|
893
|
+
x(c(le), {
|
|
887
894
|
icon: "i-material-symbols-copy-all-rounded",
|
|
888
895
|
class: "mt4px"
|
|
889
896
|
}),
|
|
890
|
-
|
|
897
|
+
ne(" Copy Value ")
|
|
891
898
|
]),
|
|
892
899
|
_: 1
|
|
893
900
|
}),
|
|
894
|
-
|
|
895
|
-
onClick:
|
|
896
|
-
|
|
901
|
+
x(c(xt), {
|
|
902
|
+
onClick: _[7] || (_[7] = () => {
|
|
903
|
+
c(o)(y.data.key);
|
|
897
904
|
})
|
|
898
905
|
}, {
|
|
899
|
-
icon:
|
|
900
|
-
|
|
906
|
+
icon: M(() => [
|
|
907
|
+
x(c(le), {
|
|
901
908
|
icon: "i-material-symbols-copy-all-rounded",
|
|
902
909
|
class: "mt4px"
|
|
903
910
|
}),
|
|
904
|
-
|
|
911
|
+
ne(" Copy Path ")
|
|
905
912
|
]),
|
|
906
913
|
_: 1
|
|
907
914
|
})
|
|
908
915
|
])
|
|
909
916
|
]),
|
|
910
|
-
"button-icon":
|
|
911
|
-
|
|
917
|
+
"button-icon": M(() => [
|
|
918
|
+
x(c(le), { icon: "i-material-symbols:more-vert" })
|
|
912
919
|
]),
|
|
913
920
|
_: 1
|
|
914
921
|
}, 8, ["class", "disabled"])
|
|
915
922
|
]));
|
|
916
923
|
}
|
|
917
|
-
}),
|
|
924
|
+
}), Lo = { class: "flex-inline items-center gap4px" }, Ye = /* @__PURE__ */ B({
|
|
918
925
|
__name: "StateFieldInputEditor",
|
|
919
926
|
props: {
|
|
920
927
|
modelValue: {},
|
|
@@ -924,96 +931,96 @@ const Vo = { class: "flex pl5px" }, No = { class: "w160px py5px" }, Ao = /* @__P
|
|
|
924
931
|
},
|
|
925
932
|
emits: ["cancel", "submit", "update:modelValue"],
|
|
926
933
|
setup(t, { emit: e }) {
|
|
927
|
-
const n = t, o = e, s =
|
|
928
|
-
|
|
929
|
-
l.value ? o("cancel") :
|
|
934
|
+
const n = t, o = e, s = V(() => n.customType === "date" ? "datetime-local" : ""), { escape: l, enter: r } = Eo();
|
|
935
|
+
nt(() => {
|
|
936
|
+
l.value ? o("cancel") : r.value && o("submit");
|
|
930
937
|
});
|
|
931
|
-
const
|
|
932
|
-
function
|
|
938
|
+
const u = Vo(n, "modelValue", o);
|
|
939
|
+
function d(a) {
|
|
933
940
|
try {
|
|
934
|
-
return
|
|
941
|
+
return ze(a, n.customType), !0;
|
|
935
942
|
} catch {
|
|
936
943
|
return !1;
|
|
937
944
|
}
|
|
938
945
|
}
|
|
939
946
|
const C = I(!1);
|
|
940
|
-
return X(
|
|
941
|
-
C.value = !
|
|
942
|
-
}, 300)), (
|
|
943
|
-
|
|
944
|
-
modelValue:
|
|
945
|
-
"onUpdate:modelValue":
|
|
947
|
+
return X(u, bn(() => {
|
|
948
|
+
C.value = !d(u.value);
|
|
949
|
+
}, 300)), (a, f) => (p(), h("span", Lo, [
|
|
950
|
+
x(c(Xe), {
|
|
951
|
+
modelValue: c(u),
|
|
952
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => Ge(u) ? u.value = m : null),
|
|
946
953
|
type: s.value,
|
|
947
954
|
variant: C.value ? "warning" : "normal",
|
|
948
|
-
class:
|
|
949
|
-
"auto-focus":
|
|
950
|
-
onClick:
|
|
955
|
+
class: ie(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
|
|
956
|
+
"auto-focus": a.autoFocus,
|
|
957
|
+
onClick: f[1] || (f[1] = fe(() => {
|
|
951
958
|
}, ["stop"]))
|
|
952
959
|
}, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
|
|
953
|
-
|
|
954
|
-
|
|
960
|
+
a.showActions ? (p(), h(te, { key: 0 }, [
|
|
961
|
+
J((p(), z(c(de), {
|
|
955
962
|
size: "mini",
|
|
956
963
|
flat: "",
|
|
957
964
|
class: "p2px!",
|
|
958
|
-
onClick:
|
|
965
|
+
onClick: f[2] || (f[2] = fe((m) => a.$emit("cancel"), ["stop"]))
|
|
959
966
|
}, {
|
|
960
|
-
icon:
|
|
961
|
-
|
|
967
|
+
icon: M(() => [
|
|
968
|
+
x(c(le), { icon: "i-material-symbols-cancel" })
|
|
962
969
|
]),
|
|
963
970
|
_: 1
|
|
964
971
|
})), [
|
|
965
|
-
[
|
|
972
|
+
[c(Q), {
|
|
966
973
|
content: "Esc to cancel"
|
|
967
974
|
}]
|
|
968
975
|
]),
|
|
969
|
-
C.value ?
|
|
976
|
+
C.value ? J((p(), z(c(le), {
|
|
970
977
|
key: 1,
|
|
971
978
|
icon: "i-material-symbols-warning",
|
|
972
979
|
class: "color-warning-500 dark:color-warning-300"
|
|
973
980
|
}, null, 512)), [
|
|
974
|
-
[
|
|
981
|
+
[c(Q), {
|
|
975
982
|
content: "Invalid value"
|
|
976
983
|
}]
|
|
977
|
-
]) :
|
|
984
|
+
]) : J((p(), z(c(de), {
|
|
978
985
|
key: 0,
|
|
979
986
|
size: "mini",
|
|
980
987
|
flat: "",
|
|
981
988
|
class: "p2px!",
|
|
982
|
-
onClick:
|
|
989
|
+
onClick: f[3] || (f[3] = fe((m) => a.$emit("submit"), ["stop"]))
|
|
983
990
|
}, {
|
|
984
|
-
icon:
|
|
985
|
-
|
|
991
|
+
icon: M(() => [
|
|
992
|
+
x(c(le), { icon: "i-material-symbols-save" })
|
|
986
993
|
]),
|
|
987
994
|
_: 1
|
|
988
995
|
})), [
|
|
989
|
-
[
|
|
996
|
+
[c(Q), {
|
|
990
997
|
content: "Enter to submit change"
|
|
991
998
|
}]
|
|
992
999
|
])
|
|
993
|
-
], 64)) :
|
|
1000
|
+
], 64)) : U("", !0)
|
|
994
1001
|
]));
|
|
995
1002
|
}
|
|
996
|
-
}),
|
|
1003
|
+
}), pt = /* @__PURE__ */ B({
|
|
997
1004
|
__name: "ToggleExpanded",
|
|
998
1005
|
props: {
|
|
999
1006
|
value: { type: Boolean }
|
|
1000
1007
|
},
|
|
1001
1008
|
setup(t) {
|
|
1002
|
-
return (e, n) => (p(),
|
|
1003
|
-
class:
|
|
1009
|
+
return (e, n) => (p(), h("i", {
|
|
1010
|
+
class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
|
|
1004
1011
|
"transform rotate-90": e.value
|
|
1005
1012
|
}])
|
|
1006
1013
|
}, null, 2));
|
|
1007
1014
|
}
|
|
1008
|
-
}),
|
|
1009
|
-
function
|
|
1015
|
+
}), Lt = "expanded-state";
|
|
1016
|
+
function he(t = "") {
|
|
1010
1017
|
const e = I([]);
|
|
1011
|
-
return
|
|
1018
|
+
return _e(`${Lt}-${t}`, e), {
|
|
1012
1019
|
expanded: e
|
|
1013
1020
|
};
|
|
1014
1021
|
}
|
|
1015
|
-
function
|
|
1016
|
-
const e =
|
|
1022
|
+
function ft(t = "") {
|
|
1023
|
+
const e = ve(`${Lt}-${t}`, I([]));
|
|
1017
1024
|
function n(o) {
|
|
1018
1025
|
const s = e.value.indexOf(o);
|
|
1019
1026
|
s === -1 ? e.value.push(o) : e.value.splice(s, 1);
|
|
@@ -1023,7 +1030,7 @@ function pt(t = "") {
|
|
|
1023
1030
|
toggleExpanded: n
|
|
1024
1031
|
};
|
|
1025
1032
|
}
|
|
1026
|
-
function
|
|
1033
|
+
function jo(t, e = {}) {
|
|
1027
1034
|
const {
|
|
1028
1035
|
enter: n = () => {
|
|
1029
1036
|
},
|
|
@@ -1031,26 +1038,26 @@ function Do(t, e = {}) {
|
|
|
1031
1038
|
},
|
|
1032
1039
|
initial: s = !1
|
|
1033
1040
|
} = e, l = I(s);
|
|
1034
|
-
return
|
|
1041
|
+
return me(t, "mouseenter", () => {
|
|
1035
1042
|
l.value = !0, n();
|
|
1036
|
-
}),
|
|
1043
|
+
}), me(t, "mouseleave", () => {
|
|
1037
1044
|
l.value = !1, o();
|
|
1038
1045
|
}), {
|
|
1039
1046
|
isHovering: l
|
|
1040
1047
|
};
|
|
1041
1048
|
}
|
|
1042
|
-
const
|
|
1049
|
+
const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
1043
1050
|
key: 1,
|
|
1044
1051
|
pl5: ""
|
|
1045
|
-
},
|
|
1052
|
+
}, Uo = {
|
|
1046
1053
|
op70: "",
|
|
1047
1054
|
class: "whitespace-nowrap"
|
|
1048
|
-
},
|
|
1055
|
+
}, zo = /* @__PURE__ */ jt(() => /* @__PURE__ */ i("span", { mx1: "" }, ":", -1)), Bo = ["innerHTML"], Zo = { key: 0 }, Fo = {
|
|
1049
1056
|
"overflow-hidden": "",
|
|
1050
1057
|
"text-ellipsis": "",
|
|
1051
1058
|
"whitespace-nowrap": "",
|
|
1052
1059
|
"state-key": ""
|
|
1053
|
-
},
|
|
1060
|
+
}, Go = /* @__PURE__ */ jt(() => /* @__PURE__ */ i("span", { "mx-1": "" }, ":", -1)), St = 30, Ko = /* @__PURE__ */ B({
|
|
1054
1061
|
__name: "StateFieldViewer",
|
|
1055
1062
|
props: {
|
|
1056
1063
|
data: {},
|
|
@@ -1059,170 +1066,170 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
|
|
|
1059
1066
|
expandedStateId: {}
|
|
1060
1067
|
},
|
|
1061
1068
|
setup(t) {
|
|
1062
|
-
const e = t, n = I(
|
|
1069
|
+
const e = t, n = I(St), o = V(() => un(e.data.value, !1, {
|
|
1063
1070
|
customClass: {
|
|
1064
1071
|
string: "max-w-120 truncate"
|
|
1065
1072
|
}
|
|
1066
|
-
})), s =
|
|
1073
|
+
})), s = V(() => Ct(e.data.value)), l = V(() => Rt(e.data.value)), { expanded: r, toggleExpanded: u } = ft(e.expandedStateId ?? ""), d = V(() => {
|
|
1067
1074
|
var g;
|
|
1068
1075
|
return s.value === "custom" ? `${((g = e.data.value._custom) == null ? void 0 : g.type) ?? "string"}-custom-state` : "";
|
|
1069
|
-
}), C =
|
|
1076
|
+
}), C = V(() => {
|
|
1070
1077
|
const { value: g } = l.value;
|
|
1071
|
-
return
|
|
1072
|
-
}),
|
|
1073
|
-
var
|
|
1074
|
-
const g = ["Reactive"],
|
|
1075
|
-
if (g.includes(
|
|
1076
|
-
return
|
|
1077
|
-
if ((
|
|
1078
|
+
return bt(g) ? g.length : $t(g) ? Object.keys(g).length : 0;
|
|
1079
|
+
}), v = V(() => e.data.path || [e.data.key]), a = V(() => v.value[v.value.length - 1]), f = V(() => {
|
|
1080
|
+
var F, se, re, ce, ge, Ce, Le;
|
|
1081
|
+
const g = ["Reactive"], D = ((se = (F = e.data) == null ? void 0 : F._custom) == null ? void 0 : se.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
|
|
1082
|
+
if (g.includes(D))
|
|
1083
|
+
return D;
|
|
1084
|
+
if ((ge = (ce = e.data.value) == null ? void 0 : ce.fields) != null && ge.abstract)
|
|
1078
1085
|
return "";
|
|
1079
1086
|
{
|
|
1080
|
-
const
|
|
1081
|
-
return
|
|
1087
|
+
const je = (Le = (Ce = e.data.value) == null ? void 0 : Ce._custom) == null ? void 0 : Le.type, Oe = s.value === "custom" && !je ? `"${o.value}"` : o.value === "" ? '""' : o.value, Ue = s.value === "custom" && je === "ref" ? Ct(Oe) : s.value, We = s.value === "string" ? "select-text" : "", Ee = `<span class="${Ue}-state-type flex whitespace-nowrap ${We}">${Oe}</span>`;
|
|
1088
|
+
return D ? `${Ee} <span class="text-gray-500">(${D})</span>` : Ee;
|
|
1082
1089
|
}
|
|
1083
|
-
}),
|
|
1084
|
-
const { value: g, inherit:
|
|
1085
|
-
let
|
|
1086
|
-
return
|
|
1087
|
-
key:
|
|
1088
|
-
path: [...
|
|
1089
|
-
value:
|
|
1090
|
-
...
|
|
1090
|
+
}), m = V(() => {
|
|
1091
|
+
const { value: g, inherit: D, customType: F } = l.value, se = F === "set";
|
|
1092
|
+
let re = [];
|
|
1093
|
+
return bt(g) ? g.slice(0, n.value).map((ge, Ce) => ({
|
|
1094
|
+
key: Ce.toString(),
|
|
1095
|
+
path: [...v.value, Ce.toString()],
|
|
1096
|
+
value: ge,
|
|
1097
|
+
...D,
|
|
1091
1098
|
editable: e.data.editable && !se,
|
|
1092
1099
|
creating: !1
|
|
1093
|
-
})) : (
|
|
1100
|
+
})) : ($t(g) && (re = Object.keys(g).slice(0, n.value).map((ce) => ({
|
|
1094
1101
|
key: ce,
|
|
1095
|
-
path: [...
|
|
1102
|
+
path: [...v.value, ce],
|
|
1096
1103
|
value: g[ce],
|
|
1097
|
-
...
|
|
1104
|
+
...D,
|
|
1098
1105
|
editable: e.data.editable && !se,
|
|
1099
1106
|
creating: !1
|
|
1100
|
-
})), s.value !== "custom" && (
|
|
1101
|
-
}),
|
|
1102
|
-
X(() =>
|
|
1107
|
+
})), s.value !== "custom" && (re = At(re))), re === e.data.value ? [] : re);
|
|
1108
|
+
}), y = V(() => m.value.length > 0), _ = I(), k = dt(), { isHovering: O } = jo(() => _.value), { editingType: j, editing: N, editingText: $, toggleEditing: R, nodeId: H } = Ro();
|
|
1109
|
+
X(() => N.value, (g) => {
|
|
1103
1110
|
if (g) {
|
|
1104
|
-
const { value:
|
|
1105
|
-
|
|
1111
|
+
const { value: D } = l.value;
|
|
1112
|
+
$.value = cn(D, l.value.customType);
|
|
1106
1113
|
} else
|
|
1107
|
-
|
|
1114
|
+
$.value = "";
|
|
1108
1115
|
});
|
|
1109
1116
|
async function K() {
|
|
1110
1117
|
const g = e.data;
|
|
1111
|
-
await
|
|
1112
|
-
path:
|
|
1118
|
+
await A.value.editInspectorState({
|
|
1119
|
+
path: v.value,
|
|
1113
1120
|
inspectorId: k.value.inspectorId,
|
|
1114
1121
|
type: g.stateType,
|
|
1115
|
-
nodeId:
|
|
1122
|
+
nodeId: H.value,
|
|
1116
1123
|
state: {
|
|
1117
1124
|
newKey: null,
|
|
1118
|
-
type:
|
|
1119
|
-
value:
|
|
1125
|
+
type: j.value,
|
|
1126
|
+
value: ze($.value, l.value.customType)
|
|
1120
1127
|
}
|
|
1121
|
-
}), await
|
|
1128
|
+
}), await A.value.sendInspectorState(k.value.inspectorId), R();
|
|
1122
1129
|
}
|
|
1123
|
-
const { addNewProp:
|
|
1130
|
+
const { addNewProp: Z, draftingNewProp: T, resetDrafting: P } = Do();
|
|
1124
1131
|
function b(g) {
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1132
|
+
const D = `${e.depth}-${e.index}`;
|
|
1133
|
+
r.value.includes(D) || u(D), Z(g, l.value.value);
|
|
1127
1134
|
}
|
|
1128
|
-
async function
|
|
1135
|
+
async function S() {
|
|
1129
1136
|
const g = e.data;
|
|
1130
|
-
await
|
|
1131
|
-
path: [...
|
|
1137
|
+
await A.value.editInspectorState({
|
|
1138
|
+
path: [...v.value, T.value.key],
|
|
1132
1139
|
inspectorId: k.value.inspectorId,
|
|
1133
1140
|
type: g.stateType,
|
|
1134
|
-
nodeId:
|
|
1141
|
+
nodeId: H.value,
|
|
1135
1142
|
state: {
|
|
1136
|
-
newKey:
|
|
1137
|
-
type: typeof
|
|
1138
|
-
value:
|
|
1143
|
+
newKey: T.value.key,
|
|
1144
|
+
type: typeof ze(T.value.value),
|
|
1145
|
+
value: ze(T.value.value)
|
|
1139
1146
|
}
|
|
1140
|
-
}), await
|
|
1147
|
+
}), await A.value.sendInspectorState(k.value.inspectorId), P();
|
|
1141
1148
|
}
|
|
1142
|
-
return (g,
|
|
1143
|
-
|
|
1149
|
+
return (g, D) => (p(), h("div", null, [
|
|
1150
|
+
i("div", {
|
|
1144
1151
|
ref_key: "containerRef",
|
|
1145
|
-
ref:
|
|
1146
|
-
class:
|
|
1147
|
-
style:
|
|
1148
|
-
onClick:
|
|
1152
|
+
ref: _,
|
|
1153
|
+
class: ie(["font-state-field flex items-center text-3.5", [y.value && "cursor-pointer hover:bg-active"]]),
|
|
1154
|
+
style: Ie({ paddingLeft: `${g.depth * 15 + 4}px` }),
|
|
1155
|
+
onClick: D[1] || (D[1] = (F) => c(u)(`${g.depth}-${g.index}`))
|
|
1149
1156
|
}, [
|
|
1150
|
-
|
|
1157
|
+
y.value ? (p(), z(pt, {
|
|
1151
1158
|
key: 0,
|
|
1152
|
-
value: r
|
|
1153
|
-
}, null, 8, ["value"])) : (p(),
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1159
|
+
value: c(r).includes(`${g.depth}-${g.index}`)
|
|
1160
|
+
}, null, 8, ["value"])) : (p(), h("span", Oo)),
|
|
1161
|
+
i("span", Uo, oe(a.value), 1),
|
|
1162
|
+
zo,
|
|
1163
|
+
c(N) ? (p(), z(Ye, {
|
|
1157
1164
|
key: 2,
|
|
1158
|
-
modelValue:
|
|
1159
|
-
"onUpdate:modelValue":
|
|
1165
|
+
modelValue: c($),
|
|
1166
|
+
"onUpdate:modelValue": D[0] || (D[0] = (F) => Ge($) ? $.value = F : null),
|
|
1160
1167
|
class: "mr-1",
|
|
1161
1168
|
"custom-type": l.value.customType,
|
|
1162
|
-
onCancel:
|
|
1169
|
+
onCancel: c(R),
|
|
1163
1170
|
onSubmit: K
|
|
1164
|
-
}, null, 8, ["modelValue", "custom-type", "onCancel"])) :
|
|
1165
|
-
|
|
1166
|
-
class:
|
|
1171
|
+
}, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
|
|
1172
|
+
i("span", {
|
|
1173
|
+
class: ie([d.value, "flex whitespace-nowrap"])
|
|
1167
1174
|
}, [
|
|
1168
|
-
|
|
1175
|
+
i("span", {
|
|
1169
1176
|
class: "flex",
|
|
1170
|
-
innerHTML:
|
|
1171
|
-
}, null, 8,
|
|
1177
|
+
innerHTML: f.value
|
|
1178
|
+
}, null, 8, Bo)
|
|
1172
1179
|
], 2),
|
|
1173
|
-
|
|
1174
|
-
hovering:
|
|
1175
|
-
"disable-edit":
|
|
1180
|
+
x(Ho, {
|
|
1181
|
+
hovering: c(O),
|
|
1182
|
+
"disable-edit": c(k).disableEdit || c(N),
|
|
1176
1183
|
data: g.data,
|
|
1177
1184
|
depth: g.depth,
|
|
1178
|
-
onEnableEditInput:
|
|
1185
|
+
onEnableEditInput: c(R),
|
|
1179
1186
|
onAddNewProp: b
|
|
1180
1187
|
}, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
|
|
1181
1188
|
], 6),
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
data:
|
|
1189
|
+
y.value && c(r).includes(`${g.depth}-${g.index}`) ? (p(), h("div", Zo, [
|
|
1190
|
+
x(Ot, {
|
|
1191
|
+
data: m.value,
|
|
1185
1192
|
depth: g.depth,
|
|
1186
1193
|
index: g.index
|
|
1187
1194
|
}, null, 8, ["data", "depth", "index"]),
|
|
1188
|
-
C.value > n.value ?
|
|
1195
|
+
C.value > n.value ? J((p(), z(c(de), {
|
|
1189
1196
|
key: 0,
|
|
1190
1197
|
flat: "",
|
|
1191
1198
|
size: "mini",
|
|
1192
1199
|
class: "ml-4",
|
|
1193
|
-
onClick:
|
|
1200
|
+
onClick: D[2] || (D[2] = (F) => n.value += St)
|
|
1194
1201
|
}, {
|
|
1195
|
-
icon:
|
|
1196
|
-
|
|
1202
|
+
icon: M(() => [
|
|
1203
|
+
x(c(le), { icon: "i-material-symbols-more-horiz" })
|
|
1197
1204
|
]),
|
|
1198
1205
|
_: 1
|
|
1199
1206
|
})), [
|
|
1200
|
-
[
|
|
1201
|
-
]) :
|
|
1202
|
-
|
|
1207
|
+
[c(Q), "Show more"]
|
|
1208
|
+
]) : U("", !0),
|
|
1209
|
+
c(T).enable ? (p(), h("div", {
|
|
1203
1210
|
key: 1,
|
|
1204
|
-
style:
|
|
1211
|
+
style: Ie({ paddingLeft: `${(g.depth + 1) * 15 + 4}px` })
|
|
1205
1212
|
}, [
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
modelValue:
|
|
1209
|
-
"onUpdate:modelValue":
|
|
1213
|
+
i("span", Fo, [
|
|
1214
|
+
x(Ye, {
|
|
1215
|
+
modelValue: c(T).key,
|
|
1216
|
+
"onUpdate:modelValue": D[3] || (D[3] = (F) => c(T).key = F),
|
|
1210
1217
|
"show-actions": !1
|
|
1211
1218
|
}, null, 8, ["modelValue"])
|
|
1212
1219
|
]),
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
modelValue:
|
|
1216
|
-
"onUpdate:modelValue":
|
|
1220
|
+
Go,
|
|
1221
|
+
x(Ye, {
|
|
1222
|
+
modelValue: c(T).value,
|
|
1223
|
+
"onUpdate:modelValue": D[4] || (D[4] = (F) => c(T).value = F),
|
|
1217
1224
|
"auto-focus": !1,
|
|
1218
|
-
onCancel:
|
|
1219
|
-
onSubmit:
|
|
1225
|
+
onCancel: c(P),
|
|
1226
|
+
onSubmit: S
|
|
1220
1227
|
}, null, 8, ["modelValue", "onCancel"])
|
|
1221
|
-
], 4)) :
|
|
1222
|
-
])) :
|
|
1228
|
+
], 4)) : U("", !0)
|
|
1229
|
+
])) : U("", !0)
|
|
1223
1230
|
]));
|
|
1224
1231
|
}
|
|
1225
|
-
}),
|
|
1232
|
+
}), Wo = /* @__PURE__ */ be(Ko, [["__scopeId", "data-v-e1338684"]]), Ot = /* @__PURE__ */ B({
|
|
1226
1233
|
__name: "ChildStateViewer",
|
|
1227
1234
|
props: {
|
|
1228
1235
|
data: {},
|
|
@@ -1231,9 +1238,9 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
|
|
|
1231
1238
|
expandedStateId: { default: "" }
|
|
1232
1239
|
},
|
|
1233
1240
|
setup(t) {
|
|
1234
|
-
return (e, n) => (p(),
|
|
1235
|
-
(p(!0),
|
|
1236
|
-
|
|
1241
|
+
return (e, n) => (p(), h("div", null, [
|
|
1242
|
+
(p(!0), h(te, null, ae(e.data, (o, s) => (p(), h("div", { key: s }, [
|
|
1243
|
+
x(Wo, {
|
|
1237
1244
|
data: o,
|
|
1238
1245
|
depth: e.depth + 1,
|
|
1239
1246
|
index: `${e.index}-${s}`,
|
|
@@ -1242,13 +1249,13 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
|
|
|
1242
1249
|
]))), 128))
|
|
1243
1250
|
]));
|
|
1244
1251
|
}
|
|
1245
|
-
}),
|
|
1252
|
+
}), qo = ["onClick"], Jo = {
|
|
1246
1253
|
key: 1,
|
|
1247
1254
|
pl5: ""
|
|
1248
|
-
},
|
|
1255
|
+
}, Yo = {
|
|
1249
1256
|
"font-state-field": "",
|
|
1250
1257
|
"text-3.5": ""
|
|
1251
|
-
},
|
|
1258
|
+
}, Xo = { key: 0 }, Pe = /* @__PURE__ */ B({
|
|
1252
1259
|
__name: "RootStateViewer",
|
|
1253
1260
|
props: {
|
|
1254
1261
|
data: {},
|
|
@@ -1266,104 +1273,104 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
|
|
|
1266
1273
|
disableEdit: e.disableEdit
|
|
1267
1274
|
};
|
|
1268
1275
|
}
|
|
1269
|
-
const { context: o } =
|
|
1270
|
-
|
|
1276
|
+
const { context: o } = No(n());
|
|
1277
|
+
nt(() => {
|
|
1271
1278
|
o.value = n();
|
|
1272
1279
|
});
|
|
1273
|
-
const { expanded: s, toggleExpanded: l } =
|
|
1274
|
-
return (
|
|
1275
|
-
(p(!0),
|
|
1276
|
-
|
|
1277
|
-
class:
|
|
1278
|
-
onClick: (
|
|
1280
|
+
const { expanded: s, toggleExpanded: l } = ft(e.expandedStateId);
|
|
1281
|
+
return (r, u) => (p(), h("div", null, [
|
|
1282
|
+
(p(!0), h(te, null, ae(r.data, (d, C, v) => (p(), h("div", { key: v }, [
|
|
1283
|
+
i("div", {
|
|
1284
|
+
class: ie(["flex items-center", [(d == null ? void 0 : d.length) && "cursor-pointer hover:bg-active"]]),
|
|
1285
|
+
onClick: (a) => c(l)(`${v}`)
|
|
1279
1286
|
}, [
|
|
1280
|
-
|
|
1287
|
+
d != null && d.length ? (p(), z(pt, {
|
|
1281
1288
|
key: 0,
|
|
1282
|
-
value:
|
|
1283
|
-
}, null, 8, ["value"])) : (p(),
|
|
1284
|
-
|
|
1285
|
-
], 10,
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
data:
|
|
1289
|
-
index: `${
|
|
1290
|
-
"expanded-state-id":
|
|
1289
|
+
value: c(s).includes(`${v}`)
|
|
1290
|
+
}, null, 8, ["value"])) : (p(), h("span", Jo)),
|
|
1291
|
+
i("span", Yo, oe(C), 1)
|
|
1292
|
+
], 10, qo),
|
|
1293
|
+
d != null && d.length && c(s).includes(`${v}`) ? (p(), h("div", Xo, [
|
|
1294
|
+
x(Ot, {
|
|
1295
|
+
data: d,
|
|
1296
|
+
index: `${v}`,
|
|
1297
|
+
"expanded-state-id": r.expandedStateId
|
|
1291
1298
|
}, null, 8, ["data", "index", "expanded-state-id"])
|
|
1292
|
-
])) :
|
|
1299
|
+
])) : U("", !0)
|
|
1293
1300
|
]))), 128))
|
|
1294
1301
|
]));
|
|
1295
1302
|
}
|
|
1296
1303
|
});
|
|
1297
|
-
function
|
|
1304
|
+
function Qo(t, e) {
|
|
1298
1305
|
const n = new Date(t);
|
|
1299
1306
|
return `${n.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(n.getMilliseconds()).padStart(3, "0")}` : ""}`;
|
|
1300
1307
|
}
|
|
1301
|
-
function
|
|
1302
|
-
const n = /* @__PURE__ */ new Map(), o =
|
|
1308
|
+
function e1(t, e) {
|
|
1309
|
+
const n = /* @__PURE__ */ new Map(), o = zt(t, e.toLowerCase(), n, 0);
|
|
1303
1310
|
return n.clear(), o;
|
|
1304
1311
|
}
|
|
1305
|
-
const
|
|
1306
|
-
function
|
|
1307
|
-
if (o >
|
|
1312
|
+
const Ut = 10;
|
|
1313
|
+
function zt(t, e, n, o) {
|
|
1314
|
+
if (o > Ut)
|
|
1308
1315
|
return !1;
|
|
1309
1316
|
let s = !1;
|
|
1310
1317
|
const l = Object.keys(t);
|
|
1311
|
-
let
|
|
1312
|
-
for (let
|
|
1318
|
+
let r, u;
|
|
1319
|
+
for (let d = 0; d < l.length && (r = l[d], u = t[r], s = Bt(e, r, u, n, o + 1), !s); d++)
|
|
1313
1320
|
;
|
|
1314
1321
|
return s;
|
|
1315
1322
|
}
|
|
1316
|
-
function
|
|
1317
|
-
let l = !1,
|
|
1318
|
-
return e === "_custom" && (e = n.display, n = n.value), (
|
|
1323
|
+
function Bt(t, e, n, o, s) {
|
|
1324
|
+
let l = !1, r;
|
|
1325
|
+
return e === "_custom" && (e = n.display, n = n.value), (r = t1(n)) && (n = r), e && Tt(e, t) ? (l = !0, o.set(n, !0)) : o.has(n) ? l = o.get(n) : Array.isArray(n) ? (o.set(n, null), l = n1(n, t, o, s), o.set(n, l)) : dn(n) ? (o.set(n, null), l = zt(n, t, o, s), o.set(n, l)) : Tt(n, t) && (l = !0, o.set(n, !0)), l;
|
|
1319
1326
|
}
|
|
1320
|
-
function
|
|
1327
|
+
function Tt(t, e) {
|
|
1321
1328
|
return `${t}`.toLowerCase().includes(e);
|
|
1322
1329
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return t === null ? "null" : t ===
|
|
1330
|
+
function t1(t) {
|
|
1331
|
+
return t === null ? "null" : t === pn ? "undefined" : t === fn ? "NaN" : t === vn ? "Infinity" : t === hn ? "-Infinity" : !1;
|
|
1325
1332
|
}
|
|
1326
|
-
function
|
|
1327
|
-
if (o >
|
|
1333
|
+
function n1(t, e, n, o) {
|
|
1334
|
+
if (o > Ut)
|
|
1328
1335
|
return !1;
|
|
1329
1336
|
let s = !1, l;
|
|
1330
|
-
for (let
|
|
1337
|
+
for (let r = 0; r < t.length && (l = t[r], s = Bt(e, null, l, n, o + 1), !s); r++)
|
|
1331
1338
|
;
|
|
1332
1339
|
return s;
|
|
1333
1340
|
}
|
|
1334
|
-
function
|
|
1341
|
+
function Et(t) {
|
|
1335
1342
|
return t.toString(16).padStart(6, "0");
|
|
1336
1343
|
}
|
|
1337
|
-
const
|
|
1344
|
+
const Zt = /* @__PURE__ */ B({
|
|
1338
1345
|
__name: "NodeTag",
|
|
1339
1346
|
props: {
|
|
1340
1347
|
tag: {}
|
|
1341
1348
|
},
|
|
1342
1349
|
setup(t) {
|
|
1343
|
-
return (e, n) =>
|
|
1344
|
-
style:
|
|
1345
|
-
color: `#${
|
|
1346
|
-
backgroundColor: `#${
|
|
1350
|
+
return (e, n) => J((p(), h("span", {
|
|
1351
|
+
style: Ie({
|
|
1352
|
+
color: `#${c(Et)(e.tag.textColor)}`,
|
|
1353
|
+
backgroundColor: `#${c(Et)(e.tag.backgroundColor)}`
|
|
1347
1354
|
}),
|
|
1348
1355
|
class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
|
|
1349
1356
|
}, [
|
|
1350
|
-
|
|
1357
|
+
ne(oe(e.tag.label), 1)
|
|
1351
1358
|
], 4)), [
|
|
1352
|
-
[
|
|
1359
|
+
[c(Q), {
|
|
1353
1360
|
content: e.tag.tooltip,
|
|
1354
1361
|
html: !0
|
|
1355
1362
|
}]
|
|
1356
1363
|
]);
|
|
1357
1364
|
}
|
|
1358
|
-
}),
|
|
1359
|
-
function
|
|
1365
|
+
}), Ft = Symbol("SelectedSymbolKey");
|
|
1366
|
+
function o1() {
|
|
1360
1367
|
const t = I("");
|
|
1361
|
-
return
|
|
1368
|
+
return _e(Ft, t), {
|
|
1362
1369
|
selected: t
|
|
1363
1370
|
};
|
|
1364
1371
|
}
|
|
1365
|
-
function
|
|
1366
|
-
const t =
|
|
1372
|
+
function l1() {
|
|
1373
|
+
const t = ve(Ft, I(""));
|
|
1367
1374
|
function e(n) {
|
|
1368
1375
|
t.value = n;
|
|
1369
1376
|
}
|
|
@@ -1372,24 +1379,24 @@ function Qo() {
|
|
|
1372
1379
|
select: e
|
|
1373
1380
|
};
|
|
1374
1381
|
}
|
|
1375
|
-
const
|
|
1382
|
+
const s1 = ["onClick", "onDblclick"], a1 = {
|
|
1376
1383
|
key: 1,
|
|
1377
1384
|
pl5: ""
|
|
1378
|
-
},
|
|
1385
|
+
}, i1 = {
|
|
1379
1386
|
"font-state-field": "",
|
|
1380
1387
|
"text-3.5": ""
|
|
1381
|
-
},
|
|
1388
|
+
}, r1 = {
|
|
1382
1389
|
key: 0,
|
|
1383
1390
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1384
|
-
},
|
|
1391
|
+
}, u1 = {
|
|
1385
1392
|
"group-hover:text-white": "",
|
|
1386
1393
|
class: "ws-nowrap [.active_&]:text-white"
|
|
1387
|
-
},
|
|
1394
|
+
}, c1 = {
|
|
1388
1395
|
key: 1,
|
|
1389
1396
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1390
|
-
},
|
|
1397
|
+
}, d1 = { key: 0 }, Me = /* @__PURE__ */ B({
|
|
1391
1398
|
__name: "TreeViewer",
|
|
1392
|
-
props: /* @__PURE__ */
|
|
1399
|
+
props: /* @__PURE__ */ Ze({
|
|
1393
1400
|
data: {},
|
|
1394
1401
|
depth: { default: 0 },
|
|
1395
1402
|
withTag: { type: Boolean, default: !1 }
|
|
@@ -1399,201 +1406,201 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1399
1406
|
}),
|
|
1400
1407
|
emits: ["update:modelValue"],
|
|
1401
1408
|
setup(t) {
|
|
1402
|
-
const e = st(t, "modelValue"), { expanded: n, toggleExpanded: o } =
|
|
1403
|
-
|
|
1404
|
-
function s(
|
|
1405
|
-
return "name" in
|
|
1409
|
+
const e = st(t, "modelValue"), { expanded: n, toggleExpanded: o } = ft();
|
|
1410
|
+
l1();
|
|
1411
|
+
function s(r) {
|
|
1412
|
+
return "name" in r && (r == null ? void 0 : r.name) || "label" in r && r.label;
|
|
1406
1413
|
}
|
|
1407
|
-
function l(
|
|
1408
|
-
e.value =
|
|
1414
|
+
function l(r) {
|
|
1415
|
+
e.value = r;
|
|
1409
1416
|
}
|
|
1410
|
-
return (
|
|
1411
|
-
var
|
|
1412
|
-
return p(),
|
|
1417
|
+
return (r, u) => (p(!0), h(te, null, ae(r.data, (d, C) => {
|
|
1418
|
+
var v, a;
|
|
1419
|
+
return p(), h("div", {
|
|
1413
1420
|
key: C,
|
|
1414
|
-
class:
|
|
1415
|
-
"min-w-max":
|
|
1421
|
+
class: ie({
|
|
1422
|
+
"min-w-max": r.depth === 0
|
|
1416
1423
|
})
|
|
1417
1424
|
}, [
|
|
1418
|
-
|
|
1419
|
-
class:
|
|
1420
|
-
style:
|
|
1421
|
-
onClick: (
|
|
1422
|
-
onDblclick: (
|
|
1425
|
+
i("div", {
|
|
1426
|
+
class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === d.id }]),
|
|
1427
|
+
style: Ie({ paddingLeft: `${15 * r.depth + 4}px` }),
|
|
1428
|
+
onClick: (f) => l(d.id),
|
|
1429
|
+
onDblclick: (f) => c(o)(d.id)
|
|
1423
1430
|
}, [
|
|
1424
|
-
(
|
|
1431
|
+
(v = d == null ? void 0 : d.children) != null && v.length ? (p(), z(pt, {
|
|
1425
1432
|
key: 0,
|
|
1426
|
-
value:
|
|
1433
|
+
value: c(n).includes(d.id),
|
|
1427
1434
|
class: "[.active_&]:op20 group-hover:op20",
|
|
1428
|
-
onClick: fe((
|
|
1429
|
-
}, null, 8, ["value", "onClick"])) : (p(),
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1435
|
+
onClick: fe((f) => c(o)(d.id), ["stop"])
|
|
1436
|
+
}, null, 8, ["value", "onClick"])) : (p(), h("span", a1)),
|
|
1437
|
+
i("span", i1, [
|
|
1438
|
+
r.withTag ? (p(), h("span", r1, "<")) : U("", !0),
|
|
1439
|
+
i("span", u1, oe(s(d)), 1),
|
|
1440
|
+
r.withTag ? (p(), h("span", c1, ">")) : U("", !0)
|
|
1434
1441
|
]),
|
|
1435
|
-
(p(!0),
|
|
1436
|
-
key:
|
|
1437
|
-
tag:
|
|
1442
|
+
(p(!0), h(te, null, ae(d.tags, (f, m) => (p(), z(Zt, {
|
|
1443
|
+
key: m,
|
|
1444
|
+
tag: f
|
|
1438
1445
|
}, null, 8, ["tag"]))), 128))
|
|
1439
|
-
], 46,
|
|
1440
|
-
(
|
|
1441
|
-
|
|
1446
|
+
], 46, s1),
|
|
1447
|
+
(a = d == null ? void 0 : d.children) != null && a.length && c(n).includes(d.id) ? (p(), h("div", d1, [
|
|
1448
|
+
x(Me, {
|
|
1442
1449
|
modelValue: e.value,
|
|
1443
|
-
"onUpdate:modelValue":
|
|
1444
|
-
data:
|
|
1445
|
-
depth:
|
|
1446
|
-
"with-tag":
|
|
1450
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value = f),
|
|
1451
|
+
data: d == null ? void 0 : d.children,
|
|
1452
|
+
depth: r.depth + 1,
|
|
1453
|
+
"with-tag": r.withTag
|
|
1447
1454
|
}, null, 8, ["modelValue", "data", "depth", "with-tag"])
|
|
1448
|
-
])) :
|
|
1455
|
+
])) : U("", !0)
|
|
1449
1456
|
], 2);
|
|
1450
1457
|
}), 128));
|
|
1451
1458
|
}
|
|
1452
|
-
}),
|
|
1459
|
+
}), p1 = { class: "h-full flex flex-col" }, f1 = { class: "h-full flex flex-col p2" }, v1 = {
|
|
1453
1460
|
key: 0,
|
|
1454
1461
|
class: "mb-1 flex justify-end pb-1",
|
|
1455
1462
|
border: "b dashed base"
|
|
1456
|
-
},
|
|
1463
|
+
}, h1 = { class: "flex items-center gap-2 px-1" }, m1 = ["onClick"], _1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, g1 = { class: "h-full flex flex-col p2" }, C1 = {
|
|
1457
1464
|
key: 0,
|
|
1458
1465
|
class: "mb-1 flex justify-end pb-1",
|
|
1459
1466
|
border: "b dashed base"
|
|
1460
|
-
},
|
|
1467
|
+
}, x1 = { class: "flex items-center gap-2 px-1" }, y1 = ["onClick"], pe = "pinia", b1 = /* @__PURE__ */ B({
|
|
1461
1468
|
__name: "Index",
|
|
1462
1469
|
setup(t) {
|
|
1463
|
-
const { expanded: e } =
|
|
1464
|
-
var
|
|
1465
|
-
return (
|
|
1466
|
-
}),
|
|
1467
|
-
var
|
|
1468
|
-
return !((
|
|
1470
|
+
const { expanded: e } = he(), { expanded: n } = he("pinia-store-state"), o = I([]), s = I([]), l = I(""), r = I([]), u = V(() => {
|
|
1471
|
+
var T, P;
|
|
1472
|
+
return (T = r.value) != null && T.length ? f((P = r.value) == null ? void 0 : P[0]) : [];
|
|
1473
|
+
}), d = V(() => y(r.value)), C = V(() => d.value.map((T) => T.id)), v = I({}), a = V(() => {
|
|
1474
|
+
var T, P;
|
|
1475
|
+
return !((T = v.value.state) != null && T.length) && !((P = v.value.getters) != null && P.length);
|
|
1469
1476
|
});
|
|
1470
|
-
function
|
|
1471
|
-
var
|
|
1472
|
-
return P.push(
|
|
1473
|
-
|
|
1477
|
+
function f(T, P = [], b = []) {
|
|
1478
|
+
var S;
|
|
1479
|
+
return P.push(T.id), ((S = T.children) == null ? void 0 : S.length) === 0 && b.push([...P]), Array.isArray(T.children) && T.children.forEach((g) => {
|
|
1480
|
+
f(g, P, b);
|
|
1474
1481
|
}), P.pop(), b;
|
|
1475
1482
|
}
|
|
1476
|
-
function
|
|
1483
|
+
function m(T, P) {
|
|
1477
1484
|
const b = [];
|
|
1478
|
-
return
|
|
1479
|
-
b.push(...
|
|
1485
|
+
return T == null || T.forEach((S) => {
|
|
1486
|
+
b.push(...S.slice(0, P + 1));
|
|
1480
1487
|
}), [...new Set(b)];
|
|
1481
1488
|
}
|
|
1482
|
-
function
|
|
1483
|
-
const P = [], b = (
|
|
1484
|
-
|
|
1485
|
-
var
|
|
1486
|
-
P.push(g), (
|
|
1489
|
+
function y(T) {
|
|
1490
|
+
const P = [], b = (S) => {
|
|
1491
|
+
S == null || S.forEach((g) => {
|
|
1492
|
+
var D;
|
|
1493
|
+
P.push(g), (D = g.children) != null && D.length && b(g.children);
|
|
1487
1494
|
});
|
|
1488
1495
|
};
|
|
1489
|
-
return b(
|
|
1496
|
+
return b(T), P;
|
|
1490
1497
|
}
|
|
1491
|
-
function
|
|
1492
|
-
|
|
1493
|
-
o.value =
|
|
1498
|
+
function _() {
|
|
1499
|
+
A.value.getInspectorNodeActions(pe).then((T) => {
|
|
1500
|
+
o.value = T;
|
|
1494
1501
|
});
|
|
1495
1502
|
}
|
|
1496
1503
|
function k() {
|
|
1497
|
-
|
|
1498
|
-
s.value =
|
|
1504
|
+
A.value.getInspectorActions(pe).then((T) => {
|
|
1505
|
+
s.value = T;
|
|
1499
1506
|
});
|
|
1500
1507
|
}
|
|
1501
|
-
|
|
1502
|
-
function
|
|
1503
|
-
|
|
1508
|
+
_(), k();
|
|
1509
|
+
function O(T) {
|
|
1510
|
+
A.value.callInspectorNodeAction(pe, T, l.value);
|
|
1504
1511
|
}
|
|
1505
|
-
function
|
|
1506
|
-
|
|
1512
|
+
function j(T) {
|
|
1513
|
+
A.value.callInspectorAction(pe, T);
|
|
1507
1514
|
}
|
|
1508
|
-
function
|
|
1515
|
+
function N(T) {
|
|
1509
1516
|
var P;
|
|
1510
|
-
for (const b in
|
|
1511
|
-
(P =
|
|
1512
|
-
return
|
|
1517
|
+
for (const b in T)
|
|
1518
|
+
(P = T[b]) != null && P.length || delete T[b];
|
|
1519
|
+
return T;
|
|
1513
1520
|
}
|
|
1514
|
-
function
|
|
1515
|
-
|
|
1521
|
+
function $(T) {
|
|
1522
|
+
A.value.getInspectorState({ inspectorId: pe, nodeId: T }).then((P) => {
|
|
1516
1523
|
const b = Y(P);
|
|
1517
|
-
b && (
|
|
1524
|
+
b && (v.value = N(b), n.value = Array.from({ length: Object.keys(v.value).length }, (S, g) => `${g}`));
|
|
1518
1525
|
});
|
|
1519
1526
|
}
|
|
1520
|
-
function
|
|
1521
|
-
|
|
1527
|
+
function R() {
|
|
1528
|
+
v.value = {};
|
|
1522
1529
|
}
|
|
1523
1530
|
X(l, () => {
|
|
1524
|
-
|
|
1531
|
+
R(), $(l.value);
|
|
1525
1532
|
}), (() => {
|
|
1526
|
-
|
|
1527
|
-
const P = Y(
|
|
1528
|
-
|
|
1533
|
+
A.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((T) => {
|
|
1534
|
+
const P = Y(T);
|
|
1535
|
+
r.value = P, !l.value && P.length && (l.value = P[0].id, $(P[0].id), e.value = m(u.value, 1));
|
|
1529
1536
|
});
|
|
1530
1537
|
})();
|
|
1531
|
-
function K(
|
|
1532
|
-
const P = Y(
|
|
1533
|
-
P.inspectorId !== pe || !P.rootNodes.length || (
|
|
1538
|
+
function K(T) {
|
|
1539
|
+
const P = Y(T);
|
|
1540
|
+
P.inspectorId !== pe || !P.rootNodes.length || (r.value = P.rootNodes, C.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = m(u.value, 1), $(P.rootNodes[0].id)));
|
|
1534
1541
|
}
|
|
1535
|
-
function
|
|
1536
|
-
const P = Y(
|
|
1542
|
+
function Z(T) {
|
|
1543
|
+
const P = Y(T);
|
|
1537
1544
|
if (P.inspectorId !== pe)
|
|
1538
1545
|
return;
|
|
1539
1546
|
const b = P.state;
|
|
1540
|
-
|
|
1547
|
+
v.value = N({
|
|
1541
1548
|
state: b.state,
|
|
1542
1549
|
getters: b.getters
|
|
1543
1550
|
});
|
|
1544
1551
|
}
|
|
1545
|
-
return
|
|
1546
|
-
|
|
1547
|
-
}), (
|
|
1548
|
-
|
|
1552
|
+
return A.functions.on(W.INSPECTOR_TREE_UPDATED, K), A.functions.on(W.INSPECTOR_STATE_UPDATED, Z), ye(() => {
|
|
1553
|
+
A.functions.off(W.INSPECTOR_TREE_UPDATED, K), A.functions.off(W.INSPECTOR_STATE_UPDATED, Z);
|
|
1554
|
+
}), (T, P) => (p(), h("div", p1, [
|
|
1555
|
+
x(Te, {
|
|
1549
1556
|
"doc-link": "https://pinia.vuejs.org/",
|
|
1550
1557
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
1551
1558
|
}, {
|
|
1552
|
-
default:
|
|
1553
|
-
|
|
1559
|
+
default: M(() => [
|
|
1560
|
+
x(Se)
|
|
1554
1561
|
]),
|
|
1555
1562
|
_: 1
|
|
1556
1563
|
}),
|
|
1557
|
-
|
|
1558
|
-
default:
|
|
1559
|
-
|
|
1564
|
+
x(c(Ae), { class: "flex-1 overflow-auto" }, {
|
|
1565
|
+
default: M(() => [
|
|
1566
|
+
x(c(ue), {
|
|
1560
1567
|
border: "r base",
|
|
1561
1568
|
size: "40",
|
|
1562
1569
|
"h-full": ""
|
|
1563
1570
|
}, {
|
|
1564
|
-
default:
|
|
1571
|
+
default: M(() => {
|
|
1565
1572
|
var b;
|
|
1566
1573
|
return [
|
|
1567
|
-
|
|
1568
|
-
(b = s.value) != null && b.length ? (p(),
|
|
1569
|
-
|
|
1570
|
-
(p(!0),
|
|
1574
|
+
i("div", f1, [
|
|
1575
|
+
(b = s.value) != null && b.length ? (p(), h("div", v1, [
|
|
1576
|
+
i("div", h1, [
|
|
1577
|
+
(p(!0), h(te, null, ae(s.value, (S, g) => J((p(), h("div", {
|
|
1571
1578
|
key: g,
|
|
1572
1579
|
class: "flex items-center gap1",
|
|
1573
|
-
onClick: (
|
|
1580
|
+
onClick: (D) => j(g)
|
|
1574
1581
|
}, [
|
|
1575
|
-
|
|
1576
|
-
class:
|
|
1582
|
+
i("i", {
|
|
1583
|
+
class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
|
|
1577
1584
|
"cursor-pointer": "",
|
|
1578
1585
|
op70: "",
|
|
1579
1586
|
"text-base": "",
|
|
1580
1587
|
"hover:op100": ""
|
|
1581
1588
|
}, null, 2)
|
|
1582
|
-
], 8,
|
|
1589
|
+
], 8, m1)), [
|
|
1583
1590
|
[
|
|
1584
|
-
|
|
1585
|
-
{ content:
|
|
1591
|
+
c(Q),
|
|
1592
|
+
{ content: S.tooltip },
|
|
1586
1593
|
void 0,
|
|
1587
1594
|
{ "bottom-end": !0 }
|
|
1588
1595
|
]
|
|
1589
1596
|
])), 128))
|
|
1590
1597
|
])
|
|
1591
|
-
])) :
|
|
1592
|
-
|
|
1593
|
-
|
|
1598
|
+
])) : U("", !0),
|
|
1599
|
+
i("div", _1, [
|
|
1600
|
+
x(Me, {
|
|
1594
1601
|
modelValue: l.value,
|
|
1595
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
1596
|
-
data:
|
|
1602
|
+
"onUpdate:modelValue": P[0] || (P[0] = (S) => l.value = S),
|
|
1603
|
+
data: r.value
|
|
1597
1604
|
}, null, 8, ["modelValue", "data"])
|
|
1598
1605
|
])
|
|
1599
1606
|
])
|
|
@@ -1601,45 +1608,45 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1601
1608
|
}),
|
|
1602
1609
|
_: 1
|
|
1603
1610
|
}),
|
|
1604
|
-
|
|
1605
|
-
default:
|
|
1611
|
+
x(c(ue), { size: "60" }, {
|
|
1612
|
+
default: M(() => {
|
|
1606
1613
|
var b;
|
|
1607
1614
|
return [
|
|
1608
|
-
|
|
1609
|
-
(b = o.value) != null && b.length ? (p(),
|
|
1610
|
-
|
|
1611
|
-
(p(!0),
|
|
1615
|
+
i("div", g1, [
|
|
1616
|
+
(b = o.value) != null && b.length ? (p(), h("div", C1, [
|
|
1617
|
+
i("div", x1, [
|
|
1618
|
+
(p(!0), h(te, null, ae(o.value, (S, g) => J((p(), h("div", {
|
|
1612
1619
|
key: g,
|
|
1613
1620
|
class: "flex items-center gap1",
|
|
1614
|
-
onClick: (
|
|
1621
|
+
onClick: (D) => O(g)
|
|
1615
1622
|
}, [
|
|
1616
|
-
|
|
1617
|
-
class:
|
|
1623
|
+
i("i", {
|
|
1624
|
+
class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
|
|
1618
1625
|
"cursor-pointer": "",
|
|
1619
1626
|
op70: "",
|
|
1620
1627
|
"text-base": "",
|
|
1621
1628
|
"hover:op100": ""
|
|
1622
1629
|
}, null, 2)
|
|
1623
|
-
], 8,
|
|
1630
|
+
], 8, y1)), [
|
|
1624
1631
|
[
|
|
1625
|
-
|
|
1626
|
-
{ content:
|
|
1632
|
+
c(Q),
|
|
1633
|
+
{ content: S.tooltip },
|
|
1627
1634
|
void 0,
|
|
1628
1635
|
{ "bottom-end": !0 }
|
|
1629
1636
|
]
|
|
1630
1637
|
])), 128))
|
|
1631
1638
|
])
|
|
1632
|
-
])) :
|
|
1633
|
-
l.value && !
|
|
1639
|
+
])) : U("", !0),
|
|
1640
|
+
l.value && !a.value ? (p(), z(Pe, {
|
|
1634
1641
|
key: 1,
|
|
1635
1642
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
1636
|
-
data:
|
|
1643
|
+
data: v.value,
|
|
1637
1644
|
"node-id": l.value,
|
|
1638
1645
|
"inspector-id": pe,
|
|
1639
1646
|
"expanded-state-id": "pinia-store-state"
|
|
1640
|
-
}, null, 8, ["data", "node-id"])) : (p(),
|
|
1641
|
-
default:
|
|
1642
|
-
|
|
1647
|
+
}, null, 8, ["data", "node-id"])) : (p(), z(Ne, { key: 2 }, {
|
|
1648
|
+
default: M(() => [
|
|
1649
|
+
ne(" No Data ")
|
|
1643
1650
|
]),
|
|
1644
1651
|
_: 1
|
|
1645
1652
|
}))
|
|
@@ -1653,22 +1660,22 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1653
1660
|
})
|
|
1654
1661
|
]));
|
|
1655
1662
|
}
|
|
1656
|
-
}),
|
|
1663
|
+
}), $1 = { class: "p3" }, w1 = ["onClick"], k1 = {
|
|
1657
1664
|
key: 0,
|
|
1658
1665
|
class: "absolute left-5px top-4.5 h10 w0 border-l-2",
|
|
1659
1666
|
border: "solid gray2"
|
|
1660
|
-
},
|
|
1667
|
+
}, I1 = { class: "h-full flex items-center truncate pl5" }, S1 = {
|
|
1661
1668
|
absolute: "",
|
|
1662
1669
|
"top-5": "",
|
|
1663
1670
|
pr2: "",
|
|
1664
1671
|
"text-3": "",
|
|
1665
1672
|
op40: ""
|
|
1666
|
-
},
|
|
1673
|
+
}, T1 = {
|
|
1667
1674
|
pl2: "",
|
|
1668
1675
|
op30: ""
|
|
1669
|
-
},
|
|
1676
|
+
}, E1 = /* @__PURE__ */ B({
|
|
1670
1677
|
__name: "EventList",
|
|
1671
|
-
props: /* @__PURE__ */
|
|
1678
|
+
props: /* @__PURE__ */ Ze({
|
|
1672
1679
|
data: {}
|
|
1673
1680
|
}, {
|
|
1674
1681
|
modelValue: {},
|
|
@@ -1676,17 +1683,17 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1676
1683
|
}),
|
|
1677
1684
|
emits: ["update:modelValue"],
|
|
1678
1685
|
setup(t) {
|
|
1679
|
-
const e = t, n = st(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l =
|
|
1680
|
-
let
|
|
1681
|
-
return e.data.forEach((
|
|
1682
|
-
(
|
|
1686
|
+
const e = t, n = st(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l = V(() => {
|
|
1687
|
+
let r = -1, u = 0;
|
|
1688
|
+
return e.data.forEach((d, C) => {
|
|
1689
|
+
(d.groupId !== u || r === -1) && (r = (r + 1) % o.length), u = d.groupId ?? u, d.id = C, d.color = o[r];
|
|
1683
1690
|
}), e.data;
|
|
1684
1691
|
});
|
|
1685
|
-
return X(() => l.value.length, (
|
|
1686
|
-
var
|
|
1687
|
-
(
|
|
1688
|
-
}, { flush: "post" }), (
|
|
1689
|
-
|
|
1692
|
+
return X(() => l.value.length, (r) => {
|
|
1693
|
+
var u;
|
|
1694
|
+
(u = s.value) == null || u.scrollToItem(r - 1);
|
|
1695
|
+
}, { flush: "post" }), (r, u) => (p(), h("div", $1, [
|
|
1696
|
+
x(c($n), {
|
|
1690
1697
|
ref_key: "scrollerRef",
|
|
1691
1698
|
ref: s,
|
|
1692
1699
|
items: l.value,
|
|
@@ -1697,42 +1704,42 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1697
1704
|
"list-tag": "ul",
|
|
1698
1705
|
buffer: 20
|
|
1699
1706
|
}, {
|
|
1700
|
-
default:
|
|
1701
|
-
|
|
1707
|
+
default: M(({ item: d }) => [
|
|
1708
|
+
i("div", {
|
|
1702
1709
|
class: "relative mb7 h6 cursor-pointer",
|
|
1703
|
-
style:
|
|
1704
|
-
onClick: (C) => n.value =
|
|
1710
|
+
style: Ie({ color: n.value === d.id ? d.color : "" }),
|
|
1711
|
+
onClick: (C) => n.value = d.id
|
|
1705
1712
|
}, [
|
|
1706
|
-
|
|
1713
|
+
i("span", {
|
|
1707
1714
|
class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
|
|
1708
|
-
style:
|
|
1715
|
+
style: Ie({ border: `3px solid ${d.color}` })
|
|
1709
1716
|
}, null, 4),
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1717
|
+
d.id < r.data.length - 1 ? (p(), h("span", k1)) : U("", !0),
|
|
1718
|
+
i("p", I1, [
|
|
1719
|
+
i("span", S1, "[" + oe(c(Qo)(d.time)) + "]", 1),
|
|
1720
|
+
ne(" " + oe(d.title) + " ", 1),
|
|
1721
|
+
i("span", T1, oe(d.subtitle), 1)
|
|
1715
1722
|
])
|
|
1716
|
-
], 12,
|
|
1723
|
+
], 12, w1)
|
|
1717
1724
|
]),
|
|
1718
1725
|
_: 1
|
|
1719
1726
|
}, 8, ["items"])
|
|
1720
1727
|
]));
|
|
1721
1728
|
}
|
|
1722
|
-
}),
|
|
1729
|
+
}), V1 = { class: "h-full flex flex-col" }, N1 = {
|
|
1723
1730
|
key: 0,
|
|
1724
1731
|
class: "flex-1 overflow-hidden"
|
|
1725
|
-
},
|
|
1732
|
+
}, R1 = {
|
|
1726
1733
|
"h-full": "",
|
|
1727
1734
|
"select-none": "",
|
|
1728
1735
|
"overflow-scroll": "",
|
|
1729
1736
|
class: "no-scrollbar"
|
|
1730
|
-
},
|
|
1737
|
+
}, A1 = {
|
|
1731
1738
|
"h-full": "",
|
|
1732
1739
|
"select-none": "",
|
|
1733
1740
|
"overflow-scroll": "",
|
|
1734
1741
|
class: "no-scrollbar"
|
|
1735
|
-
},
|
|
1742
|
+
}, vt = /* @__PURE__ */ B({
|
|
1736
1743
|
__name: "index",
|
|
1737
1744
|
props: {
|
|
1738
1745
|
layerIds: {},
|
|
@@ -1740,84 +1747,84 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1740
1747
|
githubRepoLink: {}
|
|
1741
1748
|
},
|
|
1742
1749
|
setup(t) {
|
|
1743
|
-
const e = t, { expanded: n } =
|
|
1750
|
+
const e = t, { expanded: n } = he("timeline-state");
|
|
1744
1751
|
n.value = ["0", "1"];
|
|
1745
|
-
const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0),
|
|
1746
|
-
var
|
|
1747
|
-
const
|
|
1748
|
-
for (const
|
|
1749
|
-
|
|
1750
|
-
key:
|
|
1751
|
-
type:
|
|
1752
|
+
const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0), r = V(() => o.value[l.value] ?? null), u = V(() => {
|
|
1753
|
+
var m;
|
|
1754
|
+
const f = [];
|
|
1755
|
+
for (const y in (m = r.value) == null ? void 0 : m.data)
|
|
1756
|
+
f.push({
|
|
1757
|
+
key: y,
|
|
1758
|
+
type: y,
|
|
1752
1759
|
editable: !1,
|
|
1753
|
-
value:
|
|
1760
|
+
value: r.value.data[y]
|
|
1754
1761
|
});
|
|
1755
|
-
return
|
|
1756
|
-
}),
|
|
1757
|
-
var
|
|
1758
|
-
const
|
|
1759
|
-
if (
|
|
1760
|
-
const
|
|
1762
|
+
return f;
|
|
1763
|
+
}), d = V(() => {
|
|
1764
|
+
var y, _, k;
|
|
1765
|
+
const f = (y = r.value) == null ? void 0 : y.groupId, m = s.value.get(f);
|
|
1766
|
+
if (m) {
|
|
1767
|
+
const O = ((_ = m[m.length - 1]) == null ? void 0 : _.time) - (((k = m[0]) == null ? void 0 : k.time) ?? 0);
|
|
1761
1768
|
return [{
|
|
1762
1769
|
key: "events",
|
|
1763
1770
|
type: "events",
|
|
1764
1771
|
editable: !1,
|
|
1765
|
-
value:
|
|
1766
|
-
},
|
|
1772
|
+
value: m.length
|
|
1773
|
+
}, O && {
|
|
1767
1774
|
key: "duration",
|
|
1768
1775
|
type: "duration",
|
|
1769
1776
|
editable: !1,
|
|
1770
|
-
value: `${
|
|
1777
|
+
value: `${O}ms`
|
|
1771
1778
|
}].filter(Boolean);
|
|
1772
1779
|
}
|
|
1773
|
-
}), C =
|
|
1774
|
-
function f
|
|
1775
|
-
var
|
|
1776
|
-
const
|
|
1777
|
-
|
|
1778
|
-
}
|
|
1779
|
-
function
|
|
1780
|
-
const
|
|
1781
|
-
if (!
|
|
1780
|
+
}), C = V(() => ({ "Event Info": u.value, ...d.value && { "Group Info": d.value } }));
|
|
1781
|
+
function v(f) {
|
|
1782
|
+
var y;
|
|
1783
|
+
const m = f.groupId;
|
|
1784
|
+
m !== void 0 && (s.value.set(m, s.value.get(m) ?? []), (y = s.value.get(m)) == null || y.push(f));
|
|
1785
|
+
}
|
|
1786
|
+
function a(f) {
|
|
1787
|
+
const m = Y(f);
|
|
1788
|
+
if (!m)
|
|
1782
1789
|
return;
|
|
1783
|
-
const { layerId:
|
|
1784
|
-
e.layerIds.includes(
|
|
1785
|
-
}
|
|
1786
|
-
return
|
|
1787
|
-
|
|
1788
|
-
}), (
|
|
1789
|
-
|
|
1790
|
-
"doc-link":
|
|
1791
|
-
"github-repo-link":
|
|
1790
|
+
const { layerId: y, event: _ } = m;
|
|
1791
|
+
e.layerIds.includes(y) && (o.value.push(_), v(_));
|
|
1792
|
+
}
|
|
1793
|
+
return A.functions.on(W.TIMELINE_EVENT_UPDATED, a), ye(() => {
|
|
1794
|
+
A.functions.off(W.TIMELINE_EVENT_UPDATED, a);
|
|
1795
|
+
}), (f, m) => (p(), h("div", V1, [
|
|
1796
|
+
x(Te, {
|
|
1797
|
+
"doc-link": f.docLink,
|
|
1798
|
+
"github-repo-link": f.githubRepoLink
|
|
1792
1799
|
}, {
|
|
1793
|
-
default:
|
|
1794
|
-
|
|
1800
|
+
default: M(() => [
|
|
1801
|
+
x(Se)
|
|
1795
1802
|
]),
|
|
1796
1803
|
_: 1
|
|
1797
1804
|
}, 8, ["doc-link", "github-repo-link"]),
|
|
1798
|
-
o.value.length ? (p(),
|
|
1799
|
-
|
|
1800
|
-
default:
|
|
1801
|
-
|
|
1805
|
+
o.value.length ? (p(), h("div", N1, [
|
|
1806
|
+
x(c(Ae), { class: "h-full" }, {
|
|
1807
|
+
default: M(() => [
|
|
1808
|
+
x(c(ue), {
|
|
1802
1809
|
border: "r base",
|
|
1803
1810
|
size: "40",
|
|
1804
1811
|
"h-full": ""
|
|
1805
1812
|
}, {
|
|
1806
|
-
default:
|
|
1807
|
-
|
|
1808
|
-
|
|
1813
|
+
default: M(() => [
|
|
1814
|
+
i("div", R1, [
|
|
1815
|
+
x(E1, {
|
|
1809
1816
|
modelValue: l.value,
|
|
1810
|
-
"onUpdate:modelValue":
|
|
1817
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => l.value = y),
|
|
1811
1818
|
data: o.value
|
|
1812
1819
|
}, null, 8, ["modelValue", "data"])
|
|
1813
1820
|
])
|
|
1814
1821
|
]),
|
|
1815
1822
|
_: 1
|
|
1816
1823
|
}),
|
|
1817
|
-
|
|
1818
|
-
default:
|
|
1819
|
-
|
|
1820
|
-
|
|
1824
|
+
x(c(ue), { size: "60" }, {
|
|
1825
|
+
default: M(() => [
|
|
1826
|
+
i("div", A1, [
|
|
1827
|
+
x(Pe, {
|
|
1821
1828
|
class: "p3",
|
|
1822
1829
|
data: C.value,
|
|
1823
1830
|
"node-id": "",
|
|
@@ -1832,60 +1839,179 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1832
1839
|
]),
|
|
1833
1840
|
_: 1
|
|
1834
1841
|
})
|
|
1835
|
-
])) : (p(),
|
|
1842
|
+
])) : (p(), z(Ne, {
|
|
1836
1843
|
key: 1,
|
|
1837
1844
|
class: "flex-1"
|
|
1838
1845
|
}, {
|
|
1839
|
-
default:
|
|
1840
|
-
|
|
1846
|
+
default: M(() => [
|
|
1847
|
+
ne(" No events ")
|
|
1841
1848
|
]),
|
|
1842
1849
|
_: 1
|
|
1843
1850
|
}))
|
|
1844
1851
|
]));
|
|
1845
1852
|
}
|
|
1846
|
-
}),
|
|
1853
|
+
}), D1 = /* @__PURE__ */ B({
|
|
1847
1854
|
__name: "Index",
|
|
1848
1855
|
setup(t) {
|
|
1849
1856
|
const e = ["pinia:mutations"];
|
|
1850
|
-
return (n, o) => (p(),
|
|
1857
|
+
return (n, o) => (p(), z(vt, {
|
|
1851
1858
|
"layer-ids": e,
|
|
1852
1859
|
"doc-link": "https://pinia.vuejs.org/",
|
|
1853
1860
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
1854
1861
|
}));
|
|
1855
1862
|
}
|
|
1856
|
-
}),
|
|
1863
|
+
}), Gt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
|
|
1864
|
+
function $e() {
|
|
1865
|
+
return ve(Gt);
|
|
1866
|
+
}
|
|
1867
|
+
function Kt() {
|
|
1868
|
+
const t = I({
|
|
1869
|
+
homepage: "",
|
|
1870
|
+
id: "",
|
|
1871
|
+
label: "",
|
|
1872
|
+
logo: "",
|
|
1873
|
+
timelineLayerIds: []
|
|
1874
|
+
});
|
|
1875
|
+
return _e(Gt, t), t;
|
|
1876
|
+
}
|
|
1877
|
+
const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, H1 = { class: "w-4/5" }, L1 = {
|
|
1878
|
+
key: 0,
|
|
1879
|
+
class: "flex justify-start"
|
|
1880
|
+
}, j1 = {
|
|
1881
|
+
flex: "~ gap-2",
|
|
1882
|
+
"flex-auto": "",
|
|
1883
|
+
"items-center": "",
|
|
1884
|
+
"justify-start": ""
|
|
1885
|
+
}, O1 = {
|
|
1886
|
+
capitalize: "",
|
|
1887
|
+
op75: ""
|
|
1888
|
+
}, U1 = { key: 1 }, Wt = /* @__PURE__ */ B({
|
|
1889
|
+
__name: "Settings",
|
|
1890
|
+
props: {
|
|
1891
|
+
pluginId: {},
|
|
1892
|
+
options: {},
|
|
1893
|
+
values: {}
|
|
1894
|
+
},
|
|
1895
|
+
emits: ["update"],
|
|
1896
|
+
setup(t, { emit: e }) {
|
|
1897
|
+
const n = t, o = e;
|
|
1898
|
+
$e();
|
|
1899
|
+
const s = computed(() => n.options), l = computed(() => n.values);
|
|
1900
|
+
function r(u, d) {
|
|
1901
|
+
A.value.updatePluginSettings(n.pluginId, u, d), A.value.getPluginSettings(n.pluginId).then((C) => {
|
|
1902
|
+
o("update", C);
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
return (u, d) => {
|
|
1906
|
+
const C = sn("VueInput");
|
|
1907
|
+
return p(), h("div", P1, [
|
|
1908
|
+
i("ul", null, [
|
|
1909
|
+
(p(!0), h(te, null, ae(c(s), (v, a) => (p(), h("li", {
|
|
1910
|
+
key: a,
|
|
1911
|
+
class: "flex items-center py-2"
|
|
1912
|
+
}, [
|
|
1913
|
+
i("div", M1, oe(v.label), 1),
|
|
1914
|
+
i("div", H1, [
|
|
1915
|
+
v.type === "boolean" ? (p(), h("div", L1, [
|
|
1916
|
+
x(c(_n), {
|
|
1917
|
+
"model-value": c(l)[a],
|
|
1918
|
+
class: "row-reverse flex hover:bg-active py1 pl2 pr1",
|
|
1919
|
+
"onUpdate:modelValue": (f) => r(a, f)
|
|
1920
|
+
}, {
|
|
1921
|
+
default: M(() => [
|
|
1922
|
+
i("div", j1, [
|
|
1923
|
+
i("span", O1, oe(u.name), 1)
|
|
1924
|
+
])
|
|
1925
|
+
]),
|
|
1926
|
+
_: 2
|
|
1927
|
+
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
1928
|
+
])) : v.type === "choice" ? (p(), h("div", U1, [
|
|
1929
|
+
x(c(gn), {
|
|
1930
|
+
"model-value": c(l)[a],
|
|
1931
|
+
options: v.options,
|
|
1932
|
+
"onUpdate:modelValue": (f) => r(a, f)
|
|
1933
|
+
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
1934
|
+
])) : v.type === "text" ? (p(), z(C, {
|
|
1935
|
+
key: 2,
|
|
1936
|
+
"model-value": c(l)[a],
|
|
1937
|
+
"onUpdate:modelValue": (f) => r(a, f)
|
|
1938
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
|
|
1939
|
+
])
|
|
1940
|
+
]))), 128))
|
|
1941
|
+
])
|
|
1942
|
+
]);
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
}), z1 = { class: "h-full flex flex-col" }, B1 = "pinia", Z1 = /* @__PURE__ */ B({
|
|
1946
|
+
__name: "Settings",
|
|
1947
|
+
setup(t) {
|
|
1948
|
+
const e = ve("pluginSettings"), n = V(() => e.value.options), o = V(() => e.value.values);
|
|
1949
|
+
function s(l) {
|
|
1950
|
+
e.value = l;
|
|
1951
|
+
}
|
|
1952
|
+
return (l, r) => (p(), h("div", z1, [
|
|
1953
|
+
x(Te, {
|
|
1954
|
+
"doc-link": "https://pinia.vuejs.org/",
|
|
1955
|
+
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
1956
|
+
}, {
|
|
1957
|
+
default: M(() => [
|
|
1958
|
+
x(Se)
|
|
1959
|
+
]),
|
|
1960
|
+
_: 1
|
|
1961
|
+
}),
|
|
1962
|
+
x(Wt, {
|
|
1963
|
+
"plugin-id": B1,
|
|
1964
|
+
options: n.value,
|
|
1965
|
+
values: o.value,
|
|
1966
|
+
onUpdate: s
|
|
1967
|
+
}, null, 8, ["options", "values"])
|
|
1968
|
+
]));
|
|
1969
|
+
}
|
|
1970
|
+
}), F1 = {
|
|
1857
1971
|
"h-full": "",
|
|
1858
1972
|
"w-full": ""
|
|
1859
|
-
},
|
|
1973
|
+
}, la = /* @__PURE__ */ B({
|
|
1860
1974
|
__name: "index",
|
|
1861
1975
|
setup(t) {
|
|
1862
|
-
const
|
|
1976
|
+
const e = I(null);
|
|
1977
|
+
_e("pluginSettings", e);
|
|
1978
|
+
const n = V(() => [
|
|
1863
1979
|
{
|
|
1864
1980
|
path: "/store",
|
|
1865
1981
|
name: "Store",
|
|
1866
|
-
component:
|
|
1982
|
+
component: b1,
|
|
1867
1983
|
icon: "i-carbon-tree-view-alt"
|
|
1868
1984
|
},
|
|
1869
1985
|
{
|
|
1870
1986
|
path: "/timeline",
|
|
1871
1987
|
name: "Timeline",
|
|
1872
|
-
component:
|
|
1988
|
+
component: D1,
|
|
1873
1989
|
icon: "i-mdi:timeline-clock-outline"
|
|
1874
1990
|
},
|
|
1875
1991
|
{
|
|
1876
1992
|
path: "/",
|
|
1877
1993
|
name: "About",
|
|
1878
|
-
component:
|
|
1994
|
+
component: qn,
|
|
1879
1995
|
icon: "i-logos-pinia"
|
|
1996
|
+
},
|
|
1997
|
+
e.value && {
|
|
1998
|
+
path: "/settings",
|
|
1999
|
+
name: "Settings",
|
|
2000
|
+
component: Z1,
|
|
2001
|
+
icon: "i-mdi:cog-outline"
|
|
1880
2002
|
}
|
|
1881
|
-
], {
|
|
2003
|
+
].filter(Boolean)), { VirtualRouterView: o, restoreRouter: s } = it(n, {
|
|
1882
2004
|
defaultRoutePath: "/store"
|
|
1883
2005
|
});
|
|
1884
|
-
return (
|
|
1885
|
-
|
|
2006
|
+
return Re(() => {
|
|
2007
|
+
A.value.getPluginSettings("pinia").then((l) => {
|
|
2008
|
+
l.options ? e.value = l : e.value = null;
|
|
2009
|
+
});
|
|
2010
|
+
}), (l, r) => (p(), h("div", F1, [
|
|
2011
|
+
x(c(o))
|
|
1886
2012
|
]));
|
|
1887
2013
|
}
|
|
1888
|
-
}),
|
|
2014
|
+
}), G1 = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, K1 = /* @__PURE__ */ i("span", { class: "font-500" }, "Render Code", -1), W1 = { class: "flex-1 overflow-scroll text-3.5" }, q1 = /* @__PURE__ */ B({
|
|
1889
2015
|
__name: "RenderCode",
|
|
1890
2016
|
props: {
|
|
1891
2017
|
code: {}
|
|
@@ -1896,412 +2022,412 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
1896
2022
|
function o() {
|
|
1897
2023
|
n("close");
|
|
1898
2024
|
}
|
|
1899
|
-
return (s, l) => (p(),
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2025
|
+
return (s, l) => (p(), h("div", G1, [
|
|
2026
|
+
i("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
|
|
2027
|
+
K1,
|
|
2028
|
+
i("i", {
|
|
1903
2029
|
class: "i-carbon-close cursor-pointer hover:op80",
|
|
1904
2030
|
onClick: o
|
|
1905
2031
|
})
|
|
1906
2032
|
]),
|
|
1907
|
-
|
|
1908
|
-
|
|
2033
|
+
i("div", W1, [
|
|
2034
|
+
x(c(Cn), {
|
|
1909
2035
|
code: s.code,
|
|
1910
2036
|
lang: "javascript"
|
|
1911
2037
|
}, null, 8, ["code"])
|
|
1912
2038
|
])
|
|
1913
2039
|
]));
|
|
1914
2040
|
}
|
|
1915
|
-
}),
|
|
2041
|
+
}), J1 = { class: "p2" }, Y1 = ["onClick"], X1 = /* @__PURE__ */ B({
|
|
1916
2042
|
__name: "SelectiveList",
|
|
1917
|
-
props: /* @__PURE__ */
|
|
2043
|
+
props: /* @__PURE__ */ Ze({
|
|
1918
2044
|
data: {}
|
|
1919
2045
|
}, {
|
|
1920
2046
|
modelValue: {},
|
|
1921
2047
|
modelModifiers: {}
|
|
1922
2048
|
}),
|
|
1923
|
-
emits: /* @__PURE__ */
|
|
2049
|
+
emits: /* @__PURE__ */ Ze(["select"], ["update:modelValue"]),
|
|
1924
2050
|
setup(t, { emit: e }) {
|
|
1925
2051
|
const n = e, o = st(t, "modelValue");
|
|
1926
2052
|
function s(l) {
|
|
1927
2053
|
o.value = l, n("select", l);
|
|
1928
2054
|
}
|
|
1929
|
-
return (l,
|
|
1930
|
-
(p(!0),
|
|
1931
|
-
key:
|
|
1932
|
-
class:
|
|
1933
|
-
onClick: (
|
|
2055
|
+
return (l, r) => (p(), h("ul", J1, [
|
|
2056
|
+
(p(!0), h(te, null, ae(l.data, (u) => (p(), h("li", {
|
|
2057
|
+
key: u.id,
|
|
2058
|
+
class: ie(["selectable-item", { active: u.id === o.value }]),
|
|
2059
|
+
onClick: (d) => s(u.id)
|
|
1934
2060
|
}, [
|
|
1935
|
-
|
|
1936
|
-
(p(!0),
|
|
2061
|
+
ne(oe(u.label) + " ", 1),
|
|
2062
|
+
(p(!0), h(te, null, ae(u.tags, (d, C) => (p(), z(Zt, {
|
|
1937
2063
|
key: C,
|
|
1938
|
-
tag:
|
|
2064
|
+
tag: d
|
|
1939
2065
|
}, null, 8, ["tag"]))), 128))
|
|
1940
|
-
], 10,
|
|
2066
|
+
], 10, Y1))), 128))
|
|
1941
2067
|
]));
|
|
1942
2068
|
}
|
|
1943
|
-
}),
|
|
2069
|
+
}), He = (t) => (ot("data-v-092d4be1"), t = t(), lt(), t), Q1 = { class: "h-full w-full" }, el = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, tl = {
|
|
1944
2070
|
key: 0,
|
|
1945
2071
|
class: "h-full flex flex-col p2"
|
|
1946
|
-
},
|
|
2072
|
+
}, nl = { class: "flex py2" }, ol = {
|
|
1947
2073
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1948
2074
|
style: { height: "1.1em", width: "1.1em" },
|
|
1949
2075
|
class: "op-80 hover:op-100",
|
|
1950
2076
|
viewBox: "0 0 24 24"
|
|
1951
|
-
},
|
|
2077
|
+
}, ll = /* @__PURE__ */ He(() => /* @__PURE__ */ i("path", {
|
|
1952
2078
|
fill: "currentColor",
|
|
1953
2079
|
d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
|
|
1954
|
-
}, null, -1)),
|
|
1955
|
-
|
|
1956
|
-
],
|
|
2080
|
+
}, null, -1)), sl = [
|
|
2081
|
+
ll
|
|
2082
|
+
], al = { class: "h-full flex flex-col p2" }, il = { class: "flex py2" }, rl = {
|
|
1957
2083
|
key: 0,
|
|
1958
2084
|
class: "font-state-field flex items-center px-1 text-3.5"
|
|
1959
|
-
},
|
|
2085
|
+
}, ul = /* @__PURE__ */ He(() => /* @__PURE__ */ i("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), cl = {
|
|
1960
2086
|
"group-hover:text-white": "",
|
|
1961
2087
|
class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
|
|
1962
|
-
},
|
|
2088
|
+
}, dl = /* @__PURE__ */ He(() => /* @__PURE__ */ i("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), pl = { class: "flex items-center gap-2 px-1" }, fl = { class: "h-full flex flex-col items-center justify-center gap-2" }, vl = { class: "block" }, hl = {
|
|
1963
2089
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1964
2090
|
style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
|
|
1965
2091
|
class: "animate-fade",
|
|
1966
2092
|
viewBox: "0 0 24 24"
|
|
1967
|
-
},
|
|
2093
|
+
}, ml = /* @__PURE__ */ He(() => /* @__PURE__ */ i("g", {
|
|
1968
2094
|
fill: "none",
|
|
1969
2095
|
stroke: "currentColor",
|
|
1970
2096
|
"stroke-linecap": "round",
|
|
1971
2097
|
"stroke-linejoin": "round",
|
|
1972
2098
|
"stroke-width": "2"
|
|
1973
2099
|
}, [
|
|
1974
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ i("circle", {
|
|
1975
2101
|
cx: "12",
|
|
1976
2102
|
cy: "12",
|
|
1977
2103
|
r: ".5",
|
|
1978
2104
|
fill: "currentColor"
|
|
1979
2105
|
}),
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
-
], -1)),
|
|
1982
|
-
|
|
1983
|
-
],
|
|
2106
|
+
/* @__PURE__ */ i("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
|
|
2107
|
+
], -1)), _l = [
|
|
2108
|
+
ml
|
|
2109
|
+
], gl = /* @__PURE__ */ He(() => /* @__PURE__ */ i("p", null, " Click on a component on the page to select it ", -1)), Cl = { class: "flex items-center justify-center" }, Ve = "components", xl = /* @__PURE__ */ B({
|
|
1984
2110
|
__name: "index",
|
|
1985
2111
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
1986
2112
|
setup(t, { emit: e }) {
|
|
1987
|
-
const n = e, o = I(), s = I(!1), { width: l } =
|
|
1988
|
-
function
|
|
1989
|
-
var
|
|
1990
|
-
return E.push(
|
|
1991
|
-
|
|
2113
|
+
const n = e, o = I(), s = I(!1), { width: l } = So(o), r = V(() => s.value ? l.value < 700 : !1), u = I(""), d = I(""), [C, v] = yo(!0), a = I(!1), f = I(!1), m = I(""), y = I(!1);
|
|
2114
|
+
function _(w, E = [], L = []) {
|
|
2115
|
+
var G;
|
|
2116
|
+
return E.push(w.id), ((G = w.children) == null ? void 0 : G.length) === 0 && L.push([...E]), Array.isArray(w.children) && w.children.forEach((q) => {
|
|
2117
|
+
_(q, E, L);
|
|
1992
2118
|
}), E.pop(), L;
|
|
1993
2119
|
}
|
|
1994
|
-
function k(
|
|
1995
|
-
const E = [], L = (
|
|
1996
|
-
|
|
1997
|
-
var
|
|
1998
|
-
E.push(
|
|
2120
|
+
function k(w) {
|
|
2121
|
+
const E = [], L = (G) => {
|
|
2122
|
+
G == null || G.forEach((q) => {
|
|
2123
|
+
var we;
|
|
2124
|
+
E.push(q), (we = q.children) != null && we.length && L(q.children);
|
|
1999
2125
|
});
|
|
2000
2126
|
};
|
|
2001
|
-
return L(
|
|
2127
|
+
return L(w), E;
|
|
2002
2128
|
}
|
|
2003
|
-
function
|
|
2129
|
+
function O(w, E) {
|
|
2004
2130
|
const L = [];
|
|
2005
|
-
return
|
|
2006
|
-
L.push(...
|
|
2131
|
+
return w == null || w.forEach((G) => {
|
|
2132
|
+
L.push(...G.slice(0, E + 1));
|
|
2007
2133
|
}), [...new Set(L)];
|
|
2008
2134
|
}
|
|
2009
|
-
function
|
|
2135
|
+
function j(w, E) {
|
|
2010
2136
|
const L = [];
|
|
2011
|
-
return
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2137
|
+
return w.forEach((G) => {
|
|
2138
|
+
const q = G.indexOf(E);
|
|
2139
|
+
q !== -1 && L.push(...G.slice(0, q + 1));
|
|
2014
2140
|
}), [...new Set(L)];
|
|
2015
2141
|
}
|
|
2016
|
-
const
|
|
2017
|
-
var
|
|
2018
|
-
return (
|
|
2019
|
-
}),
|
|
2020
|
-
const
|
|
2021
|
-
L.forEach((
|
|
2022
|
-
var
|
|
2023
|
-
|
|
2142
|
+
const N = I([]), $ = V(() => {
|
|
2143
|
+
var w, E;
|
|
2144
|
+
return (w = N.value) != null && w.length ? _((E = N.value) == null ? void 0 : E[0]) : [];
|
|
2145
|
+
}), R = V(() => k(N.value)), H = V(() => R.value.map((w) => w.id)), K = I({}), Z = I(""), T = V(() => {
|
|
2146
|
+
const w = [], E = (L) => {
|
|
2147
|
+
L.forEach((G) => {
|
|
2148
|
+
var q;
|
|
2149
|
+
G.id === Z.value && w.push(G), (q = G.children) != null && q.length && E(G.children);
|
|
2024
2150
|
});
|
|
2025
2151
|
};
|
|
2026
|
-
return E(
|
|
2027
|
-
}), P =
|
|
2028
|
-
var
|
|
2029
|
-
return ((
|
|
2030
|
-
}), b =
|
|
2031
|
-
const
|
|
2152
|
+
return E(N.value), w[0];
|
|
2153
|
+
}), P = V(() => {
|
|
2154
|
+
var w;
|
|
2155
|
+
return ((w = T.value) == null ? void 0 : w.file) ?? "";
|
|
2156
|
+
}), b = V(() => {
|
|
2157
|
+
const w = {};
|
|
2032
2158
|
for (const E in K.value) {
|
|
2033
|
-
const
|
|
2159
|
+
const G = K.value[E].filter((we) => {
|
|
2034
2160
|
try {
|
|
2035
|
-
return
|
|
2036
|
-
[
|
|
2037
|
-
},
|
|
2038
|
-
} catch (
|
|
2161
|
+
return e1({
|
|
2162
|
+
[we.key]: we.value
|
|
2163
|
+
}, d.value);
|
|
2164
|
+
} catch (Qt) {
|
|
2039
2165
|
return {
|
|
2040
|
-
[
|
|
2166
|
+
[we.key]: Qt
|
|
2041
2167
|
};
|
|
2042
2168
|
}
|
|
2043
|
-
}),
|
|
2044
|
-
|
|
2169
|
+
}), q = wn(Object.values(kn(At(G), "stateType")));
|
|
2170
|
+
G.length && (w[E] = q);
|
|
2045
2171
|
}
|
|
2046
|
-
return
|
|
2047
|
-
}), { expanded:
|
|
2048
|
-
|
|
2049
|
-
async function
|
|
2050
|
-
return
|
|
2051
|
-
var
|
|
2172
|
+
return w;
|
|
2173
|
+
}), { expanded: S } = he(), { expanded: g } = he("component-state");
|
|
2174
|
+
o1();
|
|
2175
|
+
async function D(w = "") {
|
|
2176
|
+
return A.value.getInspectorTree({ inspectorId: Ve, filter: w }).then((E) => {
|
|
2177
|
+
var G, q;
|
|
2052
2178
|
const L = Y(E);
|
|
2053
|
-
|
|
2179
|
+
N.value = L, Z.value = (q = (G = N.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, S.value = O($.value, 1), a.value = !0;
|
|
2054
2180
|
});
|
|
2055
2181
|
}
|
|
2056
|
-
function
|
|
2057
|
-
if (
|
|
2182
|
+
function F(w) {
|
|
2183
|
+
if (!w || !(w != null && w.state))
|
|
2058
2184
|
return {};
|
|
2059
2185
|
const E = {};
|
|
2060
|
-
return
|
|
2186
|
+
return w.state.forEach((L) => {
|
|
2061
2187
|
E[L.type] || (E[L.type] = []), E[L.type].push(L);
|
|
2062
2188
|
}), E;
|
|
2063
2189
|
}
|
|
2064
|
-
function se(
|
|
2065
|
-
|
|
2190
|
+
function se(w) {
|
|
2191
|
+
A.value.getInspectorState({ inspectorId: Ve, nodeId: w }).then((E) => {
|
|
2066
2192
|
const L = Y(E);
|
|
2067
|
-
L && (K.value =
|
|
2193
|
+
L && (K.value = F(L), g.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
|
|
2068
2194
|
});
|
|
2069
2195
|
}
|
|
2070
|
-
X(
|
|
2071
|
-
se(
|
|
2196
|
+
X(Z, (w) => {
|
|
2197
|
+
se(w), y.value && Ue();
|
|
2072
2198
|
});
|
|
2073
|
-
function
|
|
2074
|
-
const E = Y(
|
|
2075
|
-
E.inspectorId !==
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
function ce(
|
|
2079
|
-
const E =
|
|
2080
|
-
|
|
2081
|
-
|
|
2199
|
+
function re(w) {
|
|
2200
|
+
const E = Y(w);
|
|
2201
|
+
E.inspectorId !== Ve || E.nodeId !== Z.value || (K.value = F({ state: E.state.state }));
|
|
2202
|
+
}
|
|
2203
|
+
A.functions.on(W.INSPECTOR_STATE_UPDATED, re), D();
|
|
2204
|
+
function ce(w) {
|
|
2205
|
+
const E = w.trim().toLowerCase();
|
|
2206
|
+
v(), D(E).then(() => {
|
|
2207
|
+
v();
|
|
2082
2208
|
});
|
|
2083
2209
|
}
|
|
2084
|
-
|
|
2085
|
-
ce(
|
|
2210
|
+
bo(u, (w) => {
|
|
2211
|
+
ce(w);
|
|
2086
2212
|
}, { debounce: 300 });
|
|
2087
|
-
function
|
|
2088
|
-
var L,
|
|
2089
|
-
const E = Y(
|
|
2090
|
-
E.inspectorId ===
|
|
2213
|
+
function ge(w) {
|
|
2214
|
+
var L, G;
|
|
2215
|
+
const E = Y(w);
|
|
2216
|
+
E.inspectorId === Ve && (u.value ? ce(u.value) : N.value = E.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (L = N.value) == null ? void 0 : L[0]) == null ? void 0 : G.id, S.value = O($.value, 1)));
|
|
2091
2217
|
}
|
|
2092
|
-
|
|
2093
|
-
|
|
2218
|
+
A.functions.on(W.INSPECTOR_TREE_UPDATED, ge), ye(() => {
|
|
2219
|
+
A.functions.off(W.INSPECTOR_STATE_UPDATED, re), A.functions.off(W.INSPECTOR_TREE_UPDATED, ge);
|
|
2094
2220
|
});
|
|
2095
|
-
function
|
|
2096
|
-
|
|
2097
|
-
const E = JSON.parse(
|
|
2098
|
-
|
|
2221
|
+
function Ce() {
|
|
2222
|
+
f.value = !0, n("onInspectComponentStart"), A.value.inspectComponentInspector().then((w) => {
|
|
2223
|
+
const E = JSON.parse(w);
|
|
2224
|
+
Z.value = E.id, S.value.includes(E.id) || S.value.push(E.id), S.value = [.../* @__PURE__ */ new Set([...S.value, ...j($.value, E.id)])], qt();
|
|
2099
2225
|
}).finally(() => {
|
|
2100
|
-
|
|
2226
|
+
f.value = !1, n("onInspectComponentEnd");
|
|
2101
2227
|
});
|
|
2102
2228
|
}
|
|
2103
|
-
function
|
|
2104
|
-
|
|
2229
|
+
function Le() {
|
|
2230
|
+
f.value = !1, A.value.cancelInspectComponentInspector();
|
|
2105
2231
|
}
|
|
2106
|
-
function
|
|
2107
|
-
|
|
2232
|
+
function je() {
|
|
2233
|
+
A.value.scrollToComponent(Z.value);
|
|
2108
2234
|
}
|
|
2109
|
-
function
|
|
2110
|
-
|
|
2235
|
+
function Oe() {
|
|
2236
|
+
A.value.inspectDOM(Z.value).then(() => {
|
|
2111
2237
|
chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
|
|
2112
2238
|
});
|
|
2113
2239
|
}
|
|
2114
|
-
function
|
|
2115
|
-
|
|
2116
|
-
|
|
2240
|
+
function Ue() {
|
|
2241
|
+
A.value.getComponentRenderCode(Z.value).then((w) => {
|
|
2242
|
+
m.value = w, y.value = !0;
|
|
2117
2243
|
});
|
|
2118
2244
|
}
|
|
2119
|
-
function
|
|
2245
|
+
function We() {
|
|
2120
2246
|
n("openInEditor", P.value);
|
|
2121
2247
|
}
|
|
2122
|
-
const
|
|
2123
|
-
function
|
|
2248
|
+
const Ee = I();
|
|
2249
|
+
function qt() {
|
|
2124
2250
|
setTimeout(() => {
|
|
2125
2251
|
var E;
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2252
|
+
const w = (E = Ee.value) == null ? void 0 : E.querySelector(".active");
|
|
2253
|
+
w == null || w.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2128
2254
|
}, 300);
|
|
2129
2255
|
}
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2132
|
-
}
|
|
2133
|
-
const
|
|
2134
|
-
label:
|
|
2135
|
-
value:
|
|
2136
|
-
}))),
|
|
2137
|
-
label:
|
|
2138
|
-
id:
|
|
2139
|
-
}))), Je = I(
|
|
2140
|
-
|
|
2141
|
-
Je.value =
|
|
2256
|
+
function Jt() {
|
|
2257
|
+
m.value = "", y.value = !1;
|
|
2258
|
+
}
|
|
2259
|
+
const qe = rn(), ht = V(() => qe.appRecords.value.map((w) => ({
|
|
2260
|
+
label: w.name + (w.version ? ` (${w.version})` : ""),
|
|
2261
|
+
value: w.id
|
|
2262
|
+
}))), Yt = V(() => ht.value.map((w) => ({
|
|
2263
|
+
label: w.label,
|
|
2264
|
+
id: w.value
|
|
2265
|
+
}))), Je = I(qe.activeAppRecordId.value);
|
|
2266
|
+
nt(() => {
|
|
2267
|
+
Je.value = qe.activeAppRecordId.value;
|
|
2142
2268
|
});
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2145
|
-
|
|
2269
|
+
function Xt(w) {
|
|
2270
|
+
A.value.toggleApp(w).then(() => {
|
|
2271
|
+
Z.value = "", D();
|
|
2146
2272
|
});
|
|
2147
2273
|
}
|
|
2148
|
-
return (
|
|
2149
|
-
|
|
2274
|
+
return (w, E) => (p(), h("div", Q1, [
|
|
2275
|
+
x(c(Ae), {
|
|
2150
2276
|
ref_key: "splitpanesRef",
|
|
2151
2277
|
ref: o,
|
|
2152
2278
|
class: "flex-1 overflow-auto",
|
|
2153
|
-
horizontal:
|
|
2279
|
+
horizontal: r.value,
|
|
2154
2280
|
onReady: E[4] || (E[4] = (L) => s.value = !0)
|
|
2155
2281
|
}, {
|
|
2156
|
-
default:
|
|
2157
|
-
|
|
2282
|
+
default: M(() => [
|
|
2283
|
+
ht.value.length > 1 ? (p(), z(c(ue), {
|
|
2158
2284
|
key: 0,
|
|
2159
2285
|
border: "base h-full",
|
|
2160
2286
|
size: "20"
|
|
2161
2287
|
}, {
|
|
2162
|
-
default:
|
|
2163
|
-
|
|
2164
|
-
|
|
2288
|
+
default: M(() => [
|
|
2289
|
+
i("div", el, [
|
|
2290
|
+
x(X1, {
|
|
2165
2291
|
modelValue: Je.value,
|
|
2166
2292
|
"onUpdate:modelValue": E[0] || (E[0] = (L) => Je.value = L),
|
|
2167
|
-
data:
|
|
2293
|
+
data: Yt.value,
|
|
2168
2294
|
class: "w-full",
|
|
2169
|
-
onSelect:
|
|
2295
|
+
onSelect: Xt
|
|
2170
2296
|
}, null, 8, ["modelValue", "data"])
|
|
2171
2297
|
])
|
|
2172
2298
|
]),
|
|
2173
2299
|
_: 1
|
|
2174
|
-
})) :
|
|
2175
|
-
|
|
2300
|
+
})) : U("", !0),
|
|
2301
|
+
x(c(ue), {
|
|
2176
2302
|
border: "base",
|
|
2177
2303
|
"h-full": ""
|
|
2178
2304
|
}, {
|
|
2179
|
-
default:
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
modelValue:
|
|
2184
|
-
"onUpdate:modelValue": E[1] || (E[1] = (L) =>
|
|
2305
|
+
default: M(() => [
|
|
2306
|
+
a.value ? (p(), h("div", tl, [
|
|
2307
|
+
i("div", nl, [
|
|
2308
|
+
x(c(Xe), {
|
|
2309
|
+
modelValue: u.value,
|
|
2310
|
+
"onUpdate:modelValue": E[1] || (E[1] = (L) => u.value = L),
|
|
2185
2311
|
"loading-debounce-time": 250,
|
|
2186
|
-
loading: !
|
|
2312
|
+
loading: !c(C),
|
|
2187
2313
|
placeholder: "Find components...",
|
|
2188
2314
|
class: "flex-1 text-3.5"
|
|
2189
2315
|
}, null, 8, ["modelValue", "loading"]),
|
|
2190
|
-
|
|
2316
|
+
c(yn) ? U("", !0) : J((p(), h("button", {
|
|
2191
2317
|
key: 0,
|
|
2192
2318
|
"px-1": "",
|
|
2193
2319
|
class: "hover:color-#00dc82",
|
|
2194
|
-
onClick:
|
|
2320
|
+
onClick: Ce
|
|
2195
2321
|
}, [
|
|
2196
|
-
(p(),
|
|
2322
|
+
(p(), h("svg", ol, sl))
|
|
2197
2323
|
])), [
|
|
2198
2324
|
[
|
|
2199
|
-
|
|
2325
|
+
c(Q),
|
|
2200
2326
|
"Select component in the page",
|
|
2201
2327
|
void 0,
|
|
2202
2328
|
{ bottom: !0 }
|
|
2203
2329
|
]
|
|
2204
2330
|
])
|
|
2205
2331
|
]),
|
|
2206
|
-
|
|
2332
|
+
i("div", {
|
|
2207
2333
|
ref_key: "componentTreeContainer",
|
|
2208
|
-
ref:
|
|
2334
|
+
ref: Ee,
|
|
2209
2335
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2210
2336
|
}, [
|
|
2211
|
-
|
|
2212
|
-
modelValue:
|
|
2213
|
-
"onUpdate:modelValue": E[2] || (E[2] = (L) =>
|
|
2214
|
-
data:
|
|
2337
|
+
x(Me, {
|
|
2338
|
+
modelValue: Z.value,
|
|
2339
|
+
"onUpdate:modelValue": E[2] || (E[2] = (L) => Z.value = L),
|
|
2340
|
+
data: N.value,
|
|
2215
2341
|
"with-tag": !0
|
|
2216
2342
|
}, null, 8, ["modelValue", "data"])
|
|
2217
2343
|
], 512)
|
|
2218
|
-
])) :
|
|
2344
|
+
])) : U("", !0)
|
|
2219
2345
|
]),
|
|
2220
2346
|
_: 1
|
|
2221
2347
|
}),
|
|
2222
|
-
|
|
2348
|
+
x(c(ue), {
|
|
2223
2349
|
relative: "",
|
|
2224
2350
|
"h-full": ""
|
|
2225
2351
|
}, {
|
|
2226
|
-
default:
|
|
2352
|
+
default: M(() => {
|
|
2227
2353
|
var L;
|
|
2228
2354
|
return [
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
(L =
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
])) :
|
|
2236
|
-
|
|
2237
|
-
modelValue:
|
|
2238
|
-
"onUpdate:modelValue": E[3] || (E[3] = (
|
|
2355
|
+
i("div", al, [
|
|
2356
|
+
i("div", il, [
|
|
2357
|
+
(L = T.value) != null && L.name ? (p(), h("span", rl, [
|
|
2358
|
+
ul,
|
|
2359
|
+
i("span", cl, oe(T.value.name), 1),
|
|
2360
|
+
dl
|
|
2361
|
+
])) : U("", !0),
|
|
2362
|
+
x(c(Xe), {
|
|
2363
|
+
modelValue: d.value,
|
|
2364
|
+
"onUpdate:modelValue": E[3] || (E[3] = (G) => d.value = G),
|
|
2239
2365
|
"loading-debounce-time": 250,
|
|
2240
2366
|
placeholder: "Filter State...",
|
|
2241
2367
|
class: "flex-1 text-3.5"
|
|
2242
2368
|
}, null, 8, ["modelValue"]),
|
|
2243
|
-
|
|
2244
|
-
|
|
2369
|
+
i("div", pl, [
|
|
2370
|
+
J(i("i", {
|
|
2245
2371
|
class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
|
|
2246
|
-
onClick:
|
|
2372
|
+
onClick: je
|
|
2247
2373
|
}, null, 512), [
|
|
2248
2374
|
[
|
|
2249
|
-
|
|
2375
|
+
c(Q),
|
|
2250
2376
|
"Scroll to component",
|
|
2251
2377
|
void 0,
|
|
2252
2378
|
{ bottom: !0 }
|
|
2253
2379
|
]
|
|
2254
2380
|
]),
|
|
2255
|
-
|
|
2381
|
+
J(i("i", {
|
|
2256
2382
|
class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
|
|
2257
|
-
onClick:
|
|
2383
|
+
onClick: Ue
|
|
2258
2384
|
}, null, 512), [
|
|
2259
2385
|
[
|
|
2260
|
-
|
|
2386
|
+
c(Q),
|
|
2261
2387
|
"Show render code",
|
|
2262
2388
|
void 0,
|
|
2263
2389
|
{ bottom: !0 }
|
|
2264
2390
|
]
|
|
2265
2391
|
]),
|
|
2266
|
-
|
|
2392
|
+
c(wt) ? J((p(), h("i", {
|
|
2267
2393
|
key: 0,
|
|
2268
2394
|
class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
|
|
2269
|
-
onClick:
|
|
2395
|
+
onClick: Oe
|
|
2270
2396
|
}, null, 512)), [
|
|
2271
2397
|
[
|
|
2272
|
-
|
|
2398
|
+
c(Q),
|
|
2273
2399
|
"Inspect DOM",
|
|
2274
2400
|
void 0,
|
|
2275
2401
|
{ bottom: !0 }
|
|
2276
2402
|
]
|
|
2277
|
-
]) :
|
|
2278
|
-
P.value ?
|
|
2403
|
+
]) : U("", !0),
|
|
2404
|
+
P.value ? J((p(), h("i", {
|
|
2279
2405
|
key: 1,
|
|
2280
2406
|
class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
|
|
2281
|
-
onClick:
|
|
2407
|
+
onClick: We
|
|
2282
2408
|
}, null, 512)), [
|
|
2283
2409
|
[
|
|
2284
|
-
|
|
2410
|
+
c(Q),
|
|
2285
2411
|
"Open in Editor",
|
|
2286
2412
|
void 0,
|
|
2287
2413
|
{ bottom: !0 }
|
|
2288
2414
|
]
|
|
2289
|
-
]) :
|
|
2415
|
+
]) : U("", !0)
|
|
2290
2416
|
])
|
|
2291
2417
|
]),
|
|
2292
|
-
|
|
2418
|
+
x(Pe, {
|
|
2293
2419
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
2294
2420
|
data: b.value,
|
|
2295
|
-
"node-id":
|
|
2296
|
-
"inspector-id":
|
|
2421
|
+
"node-id": Z.value,
|
|
2422
|
+
"inspector-id": Ve,
|
|
2297
2423
|
"expanded-state-id": "component-state"
|
|
2298
2424
|
}, null, 8, ["data", "node-id"])
|
|
2299
2425
|
]),
|
|
2300
|
-
|
|
2426
|
+
y.value && m.value ? (p(), z(q1, {
|
|
2301
2427
|
key: 0,
|
|
2302
|
-
code:
|
|
2303
|
-
onClose:
|
|
2304
|
-
}, null, 8, ["code"])) :
|
|
2428
|
+
code: m.value,
|
|
2429
|
+
onClose: Jt
|
|
2430
|
+
}, null, 8, ["code"])) : U("", !0)
|
|
2305
2431
|
];
|
|
2306
2432
|
}),
|
|
2307
2433
|
_: 1
|
|
@@ -2309,105 +2435,105 @@ const e1 = ["onClick", "onDblclick"], t1 = {
|
|
|
2309
2435
|
]),
|
|
2310
2436
|
_: 1
|
|
2311
2437
|
}, 8, ["horizontal"]),
|
|
2312
|
-
|
|
2438
|
+
c(wt) ? (p(), z(c(xn), {
|
|
2313
2439
|
key: 0,
|
|
2314
|
-
modelValue:
|
|
2315
|
-
"onUpdate:modelValue": E[5] || (E[5] = (L) =>
|
|
2440
|
+
modelValue: f.value,
|
|
2441
|
+
"onUpdate:modelValue": E[5] || (E[5] = (L) => f.value = L),
|
|
2316
2442
|
title: "",
|
|
2317
2443
|
height: "12rem",
|
|
2318
2444
|
closable: !1
|
|
2319
2445
|
}, {
|
|
2320
|
-
footer:
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
default:
|
|
2324
|
-
|
|
2446
|
+
footer: M(() => [
|
|
2447
|
+
i("div", Cl, [
|
|
2448
|
+
x(c(de), { onClick: Le }, {
|
|
2449
|
+
default: M(() => [
|
|
2450
|
+
ne(" Cancel ")
|
|
2325
2451
|
]),
|
|
2326
2452
|
_: 1
|
|
2327
2453
|
})
|
|
2328
2454
|
])
|
|
2329
2455
|
]),
|
|
2330
|
-
default:
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
(p(),
|
|
2456
|
+
default: M(() => [
|
|
2457
|
+
i("div", fl, [
|
|
2458
|
+
i("span", vl, [
|
|
2459
|
+
(p(), h("svg", hl, _l))
|
|
2334
2460
|
]),
|
|
2335
|
-
|
|
2461
|
+
gl
|
|
2336
2462
|
])
|
|
2337
2463
|
]),
|
|
2338
2464
|
_: 1
|
|
2339
|
-
}, 8, ["modelValue"])) :
|
|
2465
|
+
}, 8, ["modelValue"])) : U("", !0)
|
|
2340
2466
|
]));
|
|
2341
2467
|
}
|
|
2342
|
-
}),
|
|
2468
|
+
}), sa = /* @__PURE__ */ be(xl, [["__scopeId", "data-v-092d4be1"]]), yl = {}, bl = {
|
|
2343
2469
|
viewBox: "0 0 566 154",
|
|
2344
2470
|
fill: "none",
|
|
2345
2471
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2346
|
-
},
|
|
2472
|
+
}, $l = /* @__PURE__ */ i("svg", {
|
|
2347
2473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2348
2474
|
width: "8em",
|
|
2349
2475
|
height: "8em",
|
|
2350
2476
|
viewBox: "0 -4 24 24"
|
|
2351
2477
|
}, [
|
|
2352
|
-
/* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ i("path", {
|
|
2353
2479
|
fill: "#3dd68c",
|
|
2354
2480
|
d: "M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"
|
|
2355
2481
|
})
|
|
2356
|
-
], -1),
|
|
2482
|
+
], -1), wl = /* @__PURE__ */ i("path", {
|
|
2357
2483
|
d: "M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",
|
|
2358
2484
|
fill: "currentColor"
|
|
2359
|
-
}, null, -1),
|
|
2360
|
-
|
|
2361
|
-
|
|
2485
|
+
}, null, -1), kl = [
|
|
2486
|
+
$l,
|
|
2487
|
+
wl
|
|
2362
2488
|
];
|
|
2363
|
-
function
|
|
2364
|
-
return p(),
|
|
2489
|
+
function Il(t, e) {
|
|
2490
|
+
return p(), h("svg", bl, kl);
|
|
2365
2491
|
}
|
|
2366
|
-
const
|
|
2492
|
+
const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
2367
2493
|
"h-full": "",
|
|
2368
2494
|
"w-full": "",
|
|
2369
2495
|
flex: "",
|
|
2370
2496
|
"items-center": ""
|
|
2371
|
-
},
|
|
2497
|
+
}, El = {
|
|
2372
2498
|
flex: "~ col gap2",
|
|
2373
2499
|
ma: "",
|
|
2374
2500
|
"px-5": ""
|
|
2375
|
-
},
|
|
2501
|
+
}, Vl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Nl = {
|
|
2376
2502
|
flex: "~ col",
|
|
2377
2503
|
"mt-20": "",
|
|
2378
2504
|
"items-center": ""
|
|
2379
|
-
},
|
|
2505
|
+
}, Rl = {
|
|
2380
2506
|
flex: "~",
|
|
2381
2507
|
"mt--10": "",
|
|
2382
2508
|
"items-center": "",
|
|
2383
2509
|
"justify-center": ""
|
|
2384
|
-
},
|
|
2510
|
+
}, Al = /* @__PURE__ */ i("div", {
|
|
2385
2511
|
mb6: "",
|
|
2386
2512
|
"mt--1": "",
|
|
2387
2513
|
"text-center": "",
|
|
2388
2514
|
"text-sm": "",
|
|
2389
2515
|
flex: "~ gap-1"
|
|
2390
2516
|
}, [
|
|
2391
|
-
/* @__PURE__ */
|
|
2392
|
-
], -1),
|
|
2517
|
+
/* @__PURE__ */ i("span", { op40: "" }, " Router DevTools ")
|
|
2518
|
+
], -1), Dl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Pl = { flex: "~ gap2 wrap" }, Ml = /* @__PURE__ */ i("div", {
|
|
2393
2519
|
"i-carbon-tree-view-alt": "",
|
|
2394
2520
|
"text-3xl": ""
|
|
2395
|
-
}, null, -1),
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
],
|
|
2521
|
+
}, null, -1), Hl = /* @__PURE__ */ i("code", null, "Routes", -1), Ll = [
|
|
2522
|
+
Ml,
|
|
2523
|
+
Hl
|
|
2524
|
+
], jl = /* @__PURE__ */ i("div", {
|
|
2399
2525
|
"i-mdi:timeline-clock-outline": "",
|
|
2400
2526
|
"text-3xl": ""
|
|
2401
|
-
}, null, -1),
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
],
|
|
2527
|
+
}, null, -1), Ol = /* @__PURE__ */ i("div", null, "Timeline", -1), Ul = [
|
|
2528
|
+
jl,
|
|
2529
|
+
Ol
|
|
2530
|
+
], zl = /* @__PURE__ */ i("div", {
|
|
2405
2531
|
flex: "~ gap-6 wrap",
|
|
2406
2532
|
"mt-5": "",
|
|
2407
2533
|
"items-center": "",
|
|
2408
2534
|
"justify-center": ""
|
|
2409
2535
|
}, [
|
|
2410
|
-
/* @__PURE__ */
|
|
2536
|
+
/* @__PURE__ */ i("a", {
|
|
2411
2537
|
href: "https://github.com/vuejs/router",
|
|
2412
2538
|
target: "_blank",
|
|
2413
2539
|
flex: "~ gap1",
|
|
@@ -2416,10 +2542,10 @@ const ps = /* @__PURE__ */ ye(as, [["render", ds]]), fs = {
|
|
|
2416
2542
|
hover: "op100 text-blue",
|
|
2417
2543
|
transition: ""
|
|
2418
2544
|
}, [
|
|
2419
|
-
/* @__PURE__ */
|
|
2420
|
-
/* @__PURE__ */
|
|
2545
|
+
/* @__PURE__ */ i("div", { "i-carbon-star": "" }),
|
|
2546
|
+
/* @__PURE__ */ ne(" Star on GitHub ")
|
|
2421
2547
|
]),
|
|
2422
|
-
/* @__PURE__ */
|
|
2548
|
+
/* @__PURE__ */ i("a", {
|
|
2423
2549
|
href: "https://router.vuejs.org/",
|
|
2424
2550
|
target: "_blank",
|
|
2425
2551
|
flex: "~ gap1",
|
|
@@ -2428,176 +2554,162 @@ const ps = /* @__PURE__ */ ye(as, [["render", ds]]), fs = {
|
|
|
2428
2554
|
hover: "op100 text-yellow",
|
|
2429
2555
|
transition: ""
|
|
2430
2556
|
}, [
|
|
2431
|
-
/* @__PURE__ */
|
|
2432
|
-
/* @__PURE__ */
|
|
2557
|
+
/* @__PURE__ */ i("div", { "i-carbon-document": "" }),
|
|
2558
|
+
/* @__PURE__ */ ne(" View Documentation ")
|
|
2433
2559
|
])
|
|
2434
|
-
], -1),
|
|
2560
|
+
], -1), Bl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Zl = /* @__PURE__ */ B({
|
|
2435
2561
|
__name: "About",
|
|
2436
2562
|
setup(t) {
|
|
2437
|
-
const e =
|
|
2438
|
-
return (n, o) => (p(),
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2563
|
+
const e = De();
|
|
2564
|
+
return (n, o) => (p(), h("div", Tl, [
|
|
2565
|
+
i("div", El, [
|
|
2566
|
+
Vl,
|
|
2567
|
+
i("div", Nl, [
|
|
2568
|
+
i("div", Rl, [
|
|
2569
|
+
x(Sl, { "h-18": "" })
|
|
2444
2570
|
]),
|
|
2445
|
-
|
|
2571
|
+
Al
|
|
2446
2572
|
]),
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2573
|
+
Dl,
|
|
2574
|
+
i("div", Pl, [
|
|
2575
|
+
i("div", {
|
|
2450
2576
|
flex: "~ col auto",
|
|
2451
2577
|
"min-w-40": "",
|
|
2452
2578
|
p4: "",
|
|
2453
2579
|
"theme-card-lime": "",
|
|
2454
|
-
onClick: o[0] || (o[0] = (s) =>
|
|
2455
|
-
},
|
|
2456
|
-
|
|
2580
|
+
onClick: o[0] || (o[0] = (s) => c(e).push("/routes"))
|
|
2581
|
+
}, Ll),
|
|
2582
|
+
i("div", {
|
|
2457
2583
|
flex: "~ col auto",
|
|
2458
2584
|
"min-w-40": "",
|
|
2459
2585
|
p4: "",
|
|
2460
2586
|
"theme-card-lime": "",
|
|
2461
|
-
onClick: o[1] || (o[1] = (s) =>
|
|
2462
|
-
},
|
|
2587
|
+
onClick: o[1] || (o[1] = (s) => c(e).push("/timeline"))
|
|
2588
|
+
}, Ul)
|
|
2463
2589
|
]),
|
|
2464
|
-
|
|
2465
|
-
|
|
2590
|
+
zl,
|
|
2591
|
+
Bl
|
|
2466
2592
|
])
|
|
2467
2593
|
]));
|
|
2468
2594
|
}
|
|
2469
|
-
}),
|
|
2470
|
-
function De() {
|
|
2471
|
-
return Ce(Zt);
|
|
2472
|
-
}
|
|
2473
|
-
function Ft() {
|
|
2474
|
-
const t = I({
|
|
2475
|
-
homepage: "",
|
|
2476
|
-
id: "",
|
|
2477
|
-
label: "",
|
|
2478
|
-
logo: "",
|
|
2479
|
-
timelineLayerIds: []
|
|
2480
|
-
});
|
|
2481
|
-
return $e(Zt, t), t;
|
|
2482
|
-
}
|
|
2483
|
-
const Vs = { class: "h-full flex flex-col" }, Ns = {
|
|
2595
|
+
}), Fl = { class: "h-full flex flex-col" }, Gl = {
|
|
2484
2596
|
"h-full": "",
|
|
2485
2597
|
"select-none": "",
|
|
2486
2598
|
"overflow-scroll": "",
|
|
2487
2599
|
p2: "",
|
|
2488
2600
|
class: "no-scrollbar"
|
|
2489
|
-
},
|
|
2601
|
+
}, Kl = {
|
|
2490
2602
|
"h-full": "",
|
|
2491
2603
|
"select-none": "",
|
|
2492
2604
|
"overflow-scroll": "",
|
|
2493
2605
|
class: "no-scrollbar"
|
|
2494
|
-
},
|
|
2606
|
+
}, Wl = /* @__PURE__ */ B({
|
|
2495
2607
|
__name: "Index",
|
|
2496
2608
|
setup(t) {
|
|
2497
|
-
const { expanded: e } =
|
|
2498
|
-
var
|
|
2499
|
-
return (
|
|
2500
|
-
}),
|
|
2501
|
-
function
|
|
2609
|
+
const { expanded: e } = he(), { expanded: n } = he("routes-state"), o = $e(), s = V(() => o.value.id), l = I(""), r = I([]), u = V(() => {
|
|
2610
|
+
var $, R;
|
|
2611
|
+
return ($ = r.value) != null && $.length ? a((R = r.value) == null ? void 0 : R[0]) : [];
|
|
2612
|
+
}), d = V(() => m(r.value)), C = V(() => d.value.map(($) => $.id)), v = I({});
|
|
2613
|
+
function a($, R = [], H = []) {
|
|
2502
2614
|
var K;
|
|
2503
|
-
return
|
|
2504
|
-
|
|
2505
|
-
}),
|
|
2506
|
-
}
|
|
2507
|
-
function
|
|
2508
|
-
const
|
|
2509
|
-
return
|
|
2510
|
-
|
|
2511
|
-
}), [...new Set(
|
|
2512
|
-
}
|
|
2513
|
-
function
|
|
2514
|
-
const
|
|
2515
|
-
K == null || K.forEach((
|
|
2516
|
-
var
|
|
2517
|
-
|
|
2615
|
+
return R.push($.id), ((K = $.children) == null ? void 0 : K.length) === 0 && H.push([...R]), Array.isArray($.children) && $.children.forEach((Z) => {
|
|
2616
|
+
a(Z, R, H);
|
|
2617
|
+
}), R.pop(), H;
|
|
2618
|
+
}
|
|
2619
|
+
function f($, R) {
|
|
2620
|
+
const H = [];
|
|
2621
|
+
return $ == null || $.forEach((K) => {
|
|
2622
|
+
H.push(...K.slice(0, R + 1));
|
|
2623
|
+
}), [...new Set(H)];
|
|
2624
|
+
}
|
|
2625
|
+
function m($) {
|
|
2626
|
+
const R = [], H = (K) => {
|
|
2627
|
+
K == null || K.forEach((Z) => {
|
|
2628
|
+
var T;
|
|
2629
|
+
R.push(Z), (T = Z.children) != null && T.length && H(Z.children);
|
|
2518
2630
|
});
|
|
2519
2631
|
};
|
|
2520
|
-
return
|
|
2632
|
+
return H($), R;
|
|
2521
2633
|
}
|
|
2522
|
-
function
|
|
2523
|
-
var
|
|
2524
|
-
for (const
|
|
2525
|
-
(
|
|
2526
|
-
return
|
|
2634
|
+
function y($) {
|
|
2635
|
+
var R;
|
|
2636
|
+
for (const H in $)
|
|
2637
|
+
(R = $[H]) != null && R.length || delete $[H];
|
|
2638
|
+
return $;
|
|
2527
2639
|
}
|
|
2528
|
-
function
|
|
2529
|
-
|
|
2530
|
-
const
|
|
2531
|
-
|
|
2640
|
+
function _($) {
|
|
2641
|
+
A.value.getInspectorState({ inspectorId: s.value, nodeId: $ }).then((R) => {
|
|
2642
|
+
const H = Y(R);
|
|
2643
|
+
H && (v.value = y(H), n.value = Array.from({ length: Object.keys(v.value).length }, (K, Z) => `${Z}`));
|
|
2532
2644
|
});
|
|
2533
2645
|
}
|
|
2534
2646
|
function k() {
|
|
2535
|
-
|
|
2647
|
+
v.value = {};
|
|
2536
2648
|
}
|
|
2537
2649
|
X(l, () => {
|
|
2538
|
-
k(),
|
|
2650
|
+
k(), _(l.value);
|
|
2539
2651
|
});
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2652
|
+
const O = () => {
|
|
2653
|
+
A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then(($) => {
|
|
2654
|
+
const R = Y($);
|
|
2655
|
+
r.value = R, !l.value && R.length && (l.value = R[0].id, _(R[0].id), e.value = f(u.value, 1));
|
|
2544
2656
|
});
|
|
2545
2657
|
};
|
|
2546
|
-
|
|
2547
|
-
function
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2550
|
-
}
|
|
2551
|
-
function
|
|
2552
|
-
const
|
|
2553
|
-
if (
|
|
2658
|
+
Pt(s).toBeTruthy().then(O);
|
|
2659
|
+
function j($) {
|
|
2660
|
+
const R = Y($);
|
|
2661
|
+
R.inspectorId !== s.value || !R.rootNodes.length || (r.value = R.rootNodes, C.value.includes(l.value) || (l.value = R.rootNodes[0].id, e.value = f(u.value, 1), _(R.rootNodes[0].id)));
|
|
2662
|
+
}
|
|
2663
|
+
function N($) {
|
|
2664
|
+
const R = Y($);
|
|
2665
|
+
if (R.inspectorId !== s.value)
|
|
2554
2666
|
return;
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2667
|
+
const H = R.state;
|
|
2668
|
+
v.value = y(H);
|
|
2557
2669
|
}
|
|
2558
|
-
return
|
|
2559
|
-
|
|
2560
|
-
}), (
|
|
2561
|
-
|
|
2670
|
+
return A.functions.on(W.INSPECTOR_TREE_UPDATED, j), A.functions.on(W.INSPECTOR_STATE_UPDATED, N), ye(() => {
|
|
2671
|
+
A.functions.off(W.INSPECTOR_TREE_UPDATED, j), A.functions.off(W.INSPECTOR_STATE_UPDATED, N);
|
|
2672
|
+
}), ($, R) => (p(), h("div", Fl, [
|
|
2673
|
+
x(Te, {
|
|
2562
2674
|
"doc-link": "https://router.vuejs.org/",
|
|
2563
2675
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
2564
2676
|
}, {
|
|
2565
|
-
default:
|
|
2566
|
-
|
|
2677
|
+
default: M(() => [
|
|
2678
|
+
x(Se)
|
|
2567
2679
|
]),
|
|
2568
2680
|
_: 1
|
|
2569
2681
|
}),
|
|
2570
|
-
|
|
2571
|
-
default:
|
|
2572
|
-
|
|
2682
|
+
x(c(Ae), { class: "flex-1 overflow-auto" }, {
|
|
2683
|
+
default: M(() => [
|
|
2684
|
+
x(c(ue), {
|
|
2573
2685
|
border: "r base",
|
|
2574
2686
|
size: "40",
|
|
2575
2687
|
"h-full": ""
|
|
2576
2688
|
}, {
|
|
2577
|
-
default:
|
|
2578
|
-
|
|
2579
|
-
|
|
2689
|
+
default: M(() => [
|
|
2690
|
+
i("div", Gl, [
|
|
2691
|
+
x(Me, {
|
|
2580
2692
|
modelValue: l.value,
|
|
2581
|
-
"onUpdate:modelValue":
|
|
2582
|
-
data:
|
|
2693
|
+
"onUpdate:modelValue": R[0] || (R[0] = (H) => l.value = H),
|
|
2694
|
+
data: r.value
|
|
2583
2695
|
}, null, 8, ["modelValue", "data"])
|
|
2584
2696
|
])
|
|
2585
2697
|
]),
|
|
2586
2698
|
_: 1
|
|
2587
2699
|
}),
|
|
2588
|
-
|
|
2589
|
-
default:
|
|
2590
|
-
|
|
2591
|
-
l.value ? (p(),
|
|
2700
|
+
x(c(ue), { size: "60" }, {
|
|
2701
|
+
default: M(() => [
|
|
2702
|
+
i("div", Kl, [
|
|
2703
|
+
l.value ? (p(), z(Pe, {
|
|
2592
2704
|
key: 0,
|
|
2593
2705
|
class: "p3",
|
|
2594
|
-
data:
|
|
2706
|
+
data: v.value,
|
|
2595
2707
|
"node-id": "",
|
|
2596
2708
|
"inspector-id": "router",
|
|
2597
2709
|
"expanded-state-id": "routes-state"
|
|
2598
|
-
}, null, 8, ["data"])) : (p(),
|
|
2599
|
-
default:
|
|
2600
|
-
|
|
2710
|
+
}, null, 8, ["data"])) : (p(), z(Ne, { key: 1 }, {
|
|
2711
|
+
default: M(() => [
|
|
2712
|
+
ne(" No Data ")
|
|
2601
2713
|
]),
|
|
2602
2714
|
_: 1
|
|
2603
2715
|
}))
|
|
@@ -2610,190 +2722,190 @@ const Vs = { class: "h-full flex flex-col" }, Ns = {
|
|
|
2610
2722
|
})
|
|
2611
2723
|
]));
|
|
2612
2724
|
}
|
|
2613
|
-
}),
|
|
2725
|
+
}), ql = /* @__PURE__ */ B({
|
|
2614
2726
|
__name: "Index",
|
|
2615
2727
|
setup(t) {
|
|
2616
|
-
const e =
|
|
2617
|
-
return (n, o) => (p(),
|
|
2618
|
-
"layer-ids":
|
|
2728
|
+
const e = $e();
|
|
2729
|
+
return (n, o) => (p(), z(vt, {
|
|
2730
|
+
"layer-ids": c(e).timelineLayerIds,
|
|
2619
2731
|
"doc-link": "https://router.vuejs.org/",
|
|
2620
2732
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
2621
2733
|
}, null, 8, ["layer-ids"]));
|
|
2622
2734
|
}
|
|
2623
|
-
}),
|
|
2735
|
+
}), Jl = {
|
|
2624
2736
|
"h-full": "",
|
|
2625
2737
|
"w-full": ""
|
|
2626
|
-
},
|
|
2738
|
+
}, aa = /* @__PURE__ */ B({
|
|
2627
2739
|
__name: "index",
|
|
2628
2740
|
props: {
|
|
2629
2741
|
id: {}
|
|
2630
2742
|
},
|
|
2631
2743
|
setup(t) {
|
|
2632
|
-
const e = t, n =
|
|
2744
|
+
const e = t, n = Kt(), o = I(!1), { VirtualRouterView: s, restoreRouter: l } = it([
|
|
2633
2745
|
{
|
|
2634
2746
|
path: "/routes",
|
|
2635
2747
|
name: "Routes",
|
|
2636
|
-
component:
|
|
2748
|
+
component: Wl,
|
|
2637
2749
|
icon: "i-carbon-tree-view-alt"
|
|
2638
2750
|
},
|
|
2639
2751
|
{
|
|
2640
2752
|
path: "/timeline",
|
|
2641
2753
|
name: "Timeline",
|
|
2642
|
-
component:
|
|
2754
|
+
component: ql,
|
|
2643
2755
|
icon: "i-mdi:timeline-clock-outline"
|
|
2644
2756
|
},
|
|
2645
2757
|
{
|
|
2646
2758
|
path: "/about",
|
|
2647
2759
|
name: "About",
|
|
2648
|
-
component:
|
|
2760
|
+
component: Zl,
|
|
2649
2761
|
icon: "i-ri-route-line"
|
|
2650
2762
|
}
|
|
2651
2763
|
], {
|
|
2652
2764
|
defaultRoutePath: "/routes"
|
|
2653
2765
|
});
|
|
2654
|
-
function
|
|
2655
|
-
o.value = !0,
|
|
2656
|
-
|
|
2657
|
-
if (!
|
|
2766
|
+
function r() {
|
|
2767
|
+
o.value = !0, Re(() => {
|
|
2768
|
+
A.value.getInspectorInfo(e.id).then((u) => {
|
|
2769
|
+
if (!u)
|
|
2658
2770
|
return;
|
|
2659
|
-
const
|
|
2660
|
-
homepage:
|
|
2661
|
-
id:
|
|
2662
|
-
label:
|
|
2663
|
-
logo:
|
|
2664
|
-
timelineLayerIds:
|
|
2771
|
+
const d = {
|
|
2772
|
+
homepage: u == null ? void 0 : u.homepage,
|
|
2773
|
+
id: u == null ? void 0 : u.id,
|
|
2774
|
+
label: u == null ? void 0 : u.label,
|
|
2775
|
+
logo: u == null ? void 0 : u.logo,
|
|
2776
|
+
timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((C) => C.id)
|
|
2665
2777
|
};
|
|
2666
|
-
n.value =
|
|
2778
|
+
n.value = d, l(), o.value = !1;
|
|
2667
2779
|
});
|
|
2668
2780
|
});
|
|
2669
2781
|
}
|
|
2670
|
-
return X(() => e.id, (
|
|
2671
|
-
|
|
2672
|
-
}), (
|
|
2673
|
-
|
|
2782
|
+
return X(() => e.id, (u) => {
|
|
2783
|
+
u && r();
|
|
2784
|
+
}), (u, d) => (p(), h("div", Jl, [
|
|
2785
|
+
x(c(s))
|
|
2674
2786
|
]));
|
|
2675
2787
|
}
|
|
2676
|
-
}),
|
|
2788
|
+
}), Yl = {}, Xl = {
|
|
2677
2789
|
width: "175",
|
|
2678
2790
|
height: "34",
|
|
2679
2791
|
viewBox: "0 0 175 34",
|
|
2680
2792
|
fill: "none",
|
|
2681
2793
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2682
|
-
},
|
|
2794
|
+
}, Ql = /* @__PURE__ */ i("path", {
|
|
2683
2795
|
fill: "currentColor",
|
|
2684
2796
|
d: "M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"
|
|
2685
|
-
}, null, -1),
|
|
2686
|
-
|
|
2797
|
+
}, null, -1), es = [
|
|
2798
|
+
Ql
|
|
2687
2799
|
];
|
|
2688
|
-
function
|
|
2689
|
-
return p(),
|
|
2800
|
+
function ts(t, e) {
|
|
2801
|
+
return p(), h("svg", Xl, es);
|
|
2690
2802
|
}
|
|
2691
|
-
const
|
|
2803
|
+
const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
2692
2804
|
"h-full": "",
|
|
2693
2805
|
"w-full": "",
|
|
2694
2806
|
flex: "",
|
|
2695
2807
|
"items-center": ""
|
|
2696
|
-
},
|
|
2808
|
+
}, ls = {
|
|
2697
2809
|
flex: "~ col gap2",
|
|
2698
2810
|
ma: "",
|
|
2699
2811
|
"px-5": ""
|
|
2700
|
-
},
|
|
2812
|
+
}, ss = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), as = {
|
|
2701
2813
|
flex: "~ col",
|
|
2702
2814
|
"mt-20": "",
|
|
2703
2815
|
"items-center": ""
|
|
2704
|
-
},
|
|
2816
|
+
}, is = {
|
|
2705
2817
|
flex: "~",
|
|
2706
2818
|
"mt--10": "",
|
|
2707
2819
|
"items-center": "",
|
|
2708
2820
|
"justify-center": ""
|
|
2709
|
-
},
|
|
2821
|
+
}, rs = { class: "mr-1" }, us = {
|
|
2710
2822
|
key: 0,
|
|
2711
2823
|
class: "inline-block w20"
|
|
2712
|
-
},
|
|
2824
|
+
}, cs = ["src", "alt"], ds = {
|
|
2713
2825
|
key: 1,
|
|
2714
2826
|
class: "mr2 inline-block min-w-20 text-center text-10 font-600"
|
|
2715
|
-
},
|
|
2827
|
+
}, ps = {
|
|
2716
2828
|
mb6: "",
|
|
2717
2829
|
"mt--1": "",
|
|
2718
2830
|
"text-center": "",
|
|
2719
2831
|
"text-sm": "",
|
|
2720
2832
|
flex: "~ gap-1"
|
|
2721
|
-
},
|
|
2833
|
+
}, fs = { op40: "" }, vs = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), hs = { flex: "~ gap2 wrap" }, ms = /* @__PURE__ */ i("div", {
|
|
2722
2834
|
"i-carbon-tree-view-alt": "",
|
|
2723
2835
|
"text-3xl": ""
|
|
2724
|
-
}, null, -1),
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
],
|
|
2836
|
+
}, null, -1), _s = /* @__PURE__ */ i("code", null, "State", -1), gs = [
|
|
2837
|
+
ms,
|
|
2838
|
+
_s
|
|
2839
|
+
], Cs = /* @__PURE__ */ i("div", {
|
|
2728
2840
|
"i-mdi:timeline-clock-outline": "",
|
|
2729
2841
|
"text-3xl": ""
|
|
2730
|
-
}, null, -1),
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
],
|
|
2842
|
+
}, null, -1), xs = /* @__PURE__ */ i("div", null, "Timeline", -1), ys = [
|
|
2843
|
+
Cs,
|
|
2844
|
+
xs
|
|
2845
|
+
], bs = {
|
|
2734
2846
|
flex: "~ gap-6 wrap",
|
|
2735
2847
|
"mt-5": "",
|
|
2736
2848
|
"items-center": "",
|
|
2737
2849
|
"justify-center": ""
|
|
2738
|
-
},
|
|
2850
|
+
}, $s = ["href"], ws = /* @__PURE__ */ i("div", { "i-carbon-document": "" }, null, -1), ks = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Is = /* @__PURE__ */ B({
|
|
2739
2851
|
__name: "About",
|
|
2740
2852
|
setup(t) {
|
|
2741
|
-
const e =
|
|
2853
|
+
const e = De(), n = $e(), o = I(!1), s = I(!1);
|
|
2742
2854
|
function l() {
|
|
2743
2855
|
o.value = !0;
|
|
2744
2856
|
}
|
|
2745
|
-
function
|
|
2857
|
+
function r() {
|
|
2746
2858
|
o.value = !0, s.value = !0;
|
|
2747
2859
|
}
|
|
2748
|
-
return (
|
|
2860
|
+
return (u, d) => {
|
|
2749
2861
|
var C;
|
|
2750
|
-
return p(),
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
o.value ?
|
|
2757
|
-
|
|
2758
|
-
src:
|
|
2759
|
-
alt: `${
|
|
2862
|
+
return p(), h("div", os, [
|
|
2863
|
+
i("div", ls, [
|
|
2864
|
+
ss,
|
|
2865
|
+
i("div", as, [
|
|
2866
|
+
i("div", is, [
|
|
2867
|
+
i("span", rs, [
|
|
2868
|
+
o.value ? U("", !0) : (p(), h("span", us)),
|
|
2869
|
+
J(i("img", {
|
|
2870
|
+
src: c(n).logo,
|
|
2871
|
+
alt: `${c(n).label} Logo`,
|
|
2760
2872
|
class: "inline-block h16",
|
|
2761
|
-
onError:
|
|
2873
|
+
onError: r,
|
|
2762
2874
|
onLoad: l
|
|
2763
|
-
}, null, 40,
|
|
2764
|
-
[
|
|
2875
|
+
}, null, 40, cs), [
|
|
2876
|
+
[an, o.value && !s.value]
|
|
2765
2877
|
]),
|
|
2766
|
-
s.value ? (p(),
|
|
2878
|
+
s.value ? (p(), h("span", ds, oe(c(n).label), 1)) : U("", !0)
|
|
2767
2879
|
]),
|
|
2768
|
-
|
|
2769
|
-
|
|
2880
|
+
i("span", null, [
|
|
2881
|
+
x(ns, { "h-18": "" })
|
|
2770
2882
|
])
|
|
2771
2883
|
]),
|
|
2772
|
-
|
|
2773
|
-
|
|
2884
|
+
i("div", ps, [
|
|
2885
|
+
i("span", fs, oe(c(n).label) + " DevTools ", 1)
|
|
2774
2886
|
])
|
|
2775
2887
|
]),
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2888
|
+
vs,
|
|
2889
|
+
i("div", hs, [
|
|
2890
|
+
i("div", {
|
|
2779
2891
|
flex: "~ col auto",
|
|
2780
2892
|
"min-w-40": "",
|
|
2781
2893
|
p4: "",
|
|
2782
2894
|
"theme-card-lime": "",
|
|
2783
|
-
onClick:
|
|
2784
|
-
},
|
|
2785
|
-
(C =
|
|
2895
|
+
onClick: d[0] || (d[0] = (v) => c(e).push("/state"))
|
|
2896
|
+
}, gs),
|
|
2897
|
+
(C = c(n).timelineLayerIds) != null && C.length ? (p(), h("div", {
|
|
2786
2898
|
key: 0,
|
|
2787
2899
|
flex: "~ col auto",
|
|
2788
2900
|
"min-w-40": "",
|
|
2789
2901
|
p4: "",
|
|
2790
2902
|
"theme-card-lime": "",
|
|
2791
|
-
onClick:
|
|
2792
|
-
},
|
|
2903
|
+
onClick: d[1] || (d[1] = (v) => c(e).push("/timeline"))
|
|
2904
|
+
}, ys)) : U("", !0)
|
|
2793
2905
|
]),
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
href:
|
|
2906
|
+
i("div", bs, [
|
|
2907
|
+
i("a", {
|
|
2908
|
+
href: c(n).homepage,
|
|
2797
2909
|
target: "_blank",
|
|
2798
2910
|
flex: "~ gap1",
|
|
2799
2911
|
"items-center": "",
|
|
@@ -2801,161 +2913,185 @@ const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
|
|
|
2801
2913
|
hover: "op100 text-yellow",
|
|
2802
2914
|
transition: ""
|
|
2803
2915
|
}, [
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
], 8,
|
|
2916
|
+
ws,
|
|
2917
|
+
ne(" View Documentation ")
|
|
2918
|
+
], 8, $s)
|
|
2807
2919
|
]),
|
|
2808
|
-
|
|
2920
|
+
ks
|
|
2809
2921
|
])
|
|
2810
2922
|
]);
|
|
2811
2923
|
};
|
|
2812
2924
|
}
|
|
2813
|
-
}),
|
|
2925
|
+
}), Ss = { class: "h-full flex flex-col" }, Ts = /* @__PURE__ */ B({
|
|
2926
|
+
__name: "Settings",
|
|
2927
|
+
setup(t) {
|
|
2928
|
+
const e = ve("pluginSettings"), n = $e(), o = V(() => e.value.options), s = V(() => e.value.values);
|
|
2929
|
+
function l(r) {
|
|
2930
|
+
e.value = r;
|
|
2931
|
+
}
|
|
2932
|
+
return (r, u) => (p(), h("div", Ss, [
|
|
2933
|
+
x(Te, {
|
|
2934
|
+
"doc-link": c(n).homepage
|
|
2935
|
+
}, {
|
|
2936
|
+
default: M(() => [
|
|
2937
|
+
x(Se)
|
|
2938
|
+
]),
|
|
2939
|
+
_: 1
|
|
2940
|
+
}, 8, ["doc-link"]),
|
|
2941
|
+
x(Wt, {
|
|
2942
|
+
"plugin-id": c(n).id,
|
|
2943
|
+
options: o.value,
|
|
2944
|
+
values: s.value,
|
|
2945
|
+
onUpdate: l
|
|
2946
|
+
}, null, 8, ["plugin-id", "options", "values"])
|
|
2947
|
+
]));
|
|
2948
|
+
}
|
|
2949
|
+
}), Es = { class: "h-full flex flex-col" }, Vs = { class: "h-full flex flex-col p2" }, Ns = {
|
|
2814
2950
|
key: 0,
|
|
2815
2951
|
class: "mb-1 flex justify-end pb-1",
|
|
2816
2952
|
border: "b dashed base"
|
|
2817
|
-
},
|
|
2953
|
+
}, Rs = { class: "flex items-center gap-2 px-1" }, As = ["onClick"], Ds = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Ps = { class: "h-full flex flex-col p2" }, Ms = {
|
|
2818
2954
|
key: 0,
|
|
2819
2955
|
class: "mb-1 flex justify-end pb-1",
|
|
2820
2956
|
border: "b dashed base"
|
|
2821
|
-
},
|
|
2957
|
+
}, Hs = { class: "flex items-center gap-2 px-1" }, Ls = ["onClick"], js = /* @__PURE__ */ B({
|
|
2822
2958
|
__name: "Index",
|
|
2823
2959
|
setup(t) {
|
|
2824
|
-
const { expanded: e } =
|
|
2825
|
-
var b,
|
|
2826
|
-
return (b =
|
|
2827
|
-
}), C =
|
|
2828
|
-
function
|
|
2829
|
-
var
|
|
2830
|
-
return
|
|
2831
|
-
|
|
2832
|
-
}),
|
|
2833
|
-
}
|
|
2834
|
-
function
|
|
2960
|
+
const { expanded: e } = he(), { expanded: n } = he("custom-inspector-state"), o = $e(), s = V(() => o.value.id), l = I([]), r = I([]), u = I([]), d = V(() => {
|
|
2961
|
+
var b, S;
|
|
2962
|
+
return (b = u.value) != null && b.length ? y((S = u.value) == null ? void 0 : S[0]) : [];
|
|
2963
|
+
}), C = V(() => k(u.value)), v = V(() => C.value.map((b) => b.id)), a = I(""), f = I({}), m = V(() => !Object.keys(f.value).length);
|
|
2964
|
+
function y(b, S = [], g = []) {
|
|
2965
|
+
var D;
|
|
2966
|
+
return S.push(b.id), ((D = b.children) == null ? void 0 : D.length) === 0 && g.push([...S]), Array.isArray(b.children) && b.children.forEach((F) => {
|
|
2967
|
+
y(F, S, g);
|
|
2968
|
+
}), S.pop(), g;
|
|
2969
|
+
}
|
|
2970
|
+
function _(b, S) {
|
|
2835
2971
|
const g = [];
|
|
2836
|
-
return b == null || b.forEach((
|
|
2837
|
-
g.push(...
|
|
2972
|
+
return b == null || b.forEach((D) => {
|
|
2973
|
+
g.push(...D.slice(0, S + 1));
|
|
2838
2974
|
}), [...new Set(g)];
|
|
2839
2975
|
}
|
|
2840
2976
|
function k(b) {
|
|
2841
|
-
const
|
|
2842
|
-
|
|
2977
|
+
const S = [], g = (D) => {
|
|
2978
|
+
D == null || D.forEach((F) => {
|
|
2843
2979
|
var se;
|
|
2844
|
-
|
|
2980
|
+
S.push(F), (se = F.children) != null && se.length && g(F.children);
|
|
2845
2981
|
});
|
|
2846
2982
|
};
|
|
2847
|
-
return g(b),
|
|
2983
|
+
return g(b), S;
|
|
2848
2984
|
}
|
|
2849
|
-
function
|
|
2850
|
-
|
|
2985
|
+
function O() {
|
|
2986
|
+
A.value.getInspectorNodeActions(s.value).then((b) => {
|
|
2851
2987
|
l.value = b;
|
|
2852
2988
|
});
|
|
2853
2989
|
}
|
|
2854
|
-
function
|
|
2855
|
-
|
|
2856
|
-
|
|
2990
|
+
function j() {
|
|
2991
|
+
A.value.getInspectorActions(s.value).then((b) => {
|
|
2992
|
+
r.value = b;
|
|
2857
2993
|
});
|
|
2858
2994
|
}
|
|
2859
|
-
|
|
2860
|
-
function
|
|
2861
|
-
|
|
2995
|
+
O(), j();
|
|
2996
|
+
function N(b) {
|
|
2997
|
+
A.value.callInspectorNodeAction(s.value, b, a.value);
|
|
2862
2998
|
}
|
|
2863
|
-
function
|
|
2864
|
-
|
|
2999
|
+
function $(b) {
|
|
3000
|
+
A.value.callInspectorAction(s.value, b);
|
|
2865
3001
|
}
|
|
2866
|
-
function
|
|
2867
|
-
var
|
|
3002
|
+
function R(b) {
|
|
3003
|
+
var S;
|
|
2868
3004
|
for (const g in b)
|
|
2869
|
-
(
|
|
3005
|
+
(S = b[g]) != null && S.length || delete b[g];
|
|
2870
3006
|
return b;
|
|
2871
3007
|
}
|
|
2872
|
-
function
|
|
2873
|
-
|
|
2874
|
-
const g = Y(
|
|
2875
|
-
g && (
|
|
3008
|
+
function H(b) {
|
|
3009
|
+
A.value.getInspectorState({ inspectorId: s.value, nodeId: b }).then((S) => {
|
|
3010
|
+
const g = Y(S);
|
|
3011
|
+
g && (f.value = R(g), n.value = Array.from({ length: Object.keys(f.value).length }, (D, F) => `${F}`));
|
|
2876
3012
|
});
|
|
2877
3013
|
}
|
|
2878
3014
|
function K() {
|
|
2879
|
-
|
|
3015
|
+
f.value = {};
|
|
2880
3016
|
}
|
|
2881
|
-
X(
|
|
2882
|
-
K(),
|
|
3017
|
+
X(a, () => {
|
|
3018
|
+
K(), H(a.value);
|
|
2883
3019
|
});
|
|
2884
|
-
const
|
|
2885
|
-
|
|
2886
|
-
const
|
|
2887
|
-
|
|
3020
|
+
const Z = () => {
|
|
3021
|
+
A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((b) => {
|
|
3022
|
+
const S = Y(b);
|
|
3023
|
+
u.value = S, !a.value && S.length && (a.value = S[0].id, e.value = _(d.value, 1), H(S[0].id));
|
|
2888
3024
|
});
|
|
2889
3025
|
};
|
|
2890
|
-
|
|
2891
|
-
function
|
|
2892
|
-
var g,
|
|
2893
|
-
const
|
|
2894
|
-
!
|
|
3026
|
+
Pt(s).toBeTruthy().then(Z);
|
|
3027
|
+
function T(b) {
|
|
3028
|
+
var g, D;
|
|
3029
|
+
const S = Y(b);
|
|
3030
|
+
!S.rootNodes.length || S.inspectorId !== s.value || (u.value = S.rootNodes, v.value.includes(a.value) || (a.value = (D = (g = u.value) == null ? void 0 : g[0]) == null ? void 0 : D.id, e.value = _(d.value, 1)));
|
|
2895
3031
|
}
|
|
2896
3032
|
function P(b) {
|
|
2897
|
-
const
|
|
2898
|
-
if (
|
|
3033
|
+
const S = Y(b);
|
|
3034
|
+
if (S.inspectorId !== s.value || !S.state || S.nodeId !== a.value)
|
|
2899
3035
|
return;
|
|
2900
|
-
const { inspectorId: g, ...
|
|
2901
|
-
|
|
2902
|
-
}
|
|
2903
|
-
return
|
|
2904
|
-
|
|
2905
|
-
}),
|
|
2906
|
-
|
|
2907
|
-
}), (b,
|
|
2908
|
-
|
|
2909
|
-
"doc-link":
|
|
3036
|
+
const { inspectorId: g, ...D } = S.state;
|
|
3037
|
+
f.value = R(D);
|
|
3038
|
+
}
|
|
3039
|
+
return Re(() => {
|
|
3040
|
+
A.functions.on(W.INSPECTOR_TREE_UPDATED, T), A.functions.on(W.INSPECTOR_STATE_UPDATED, P);
|
|
3041
|
+
}), ye(() => {
|
|
3042
|
+
A.functions.off(W.INSPECTOR_TREE_UPDATED, T), A.functions.off(W.INSPECTOR_STATE_UPDATED, P);
|
|
3043
|
+
}), (b, S) => (p(), h("div", Es, [
|
|
3044
|
+
x(Te, {
|
|
3045
|
+
"doc-link": c(o).homepage
|
|
2910
3046
|
}, {
|
|
2911
|
-
default:
|
|
2912
|
-
|
|
3047
|
+
default: M(() => [
|
|
3048
|
+
x(Se)
|
|
2913
3049
|
]),
|
|
2914
3050
|
_: 1
|
|
2915
3051
|
}, 8, ["doc-link"]),
|
|
2916
|
-
|
|
3052
|
+
u.value.length ? (p(), z(c(Ae), {
|
|
2917
3053
|
key: 0,
|
|
2918
3054
|
class: "flex-1 overflow-auto"
|
|
2919
3055
|
}, {
|
|
2920
|
-
default:
|
|
2921
|
-
|
|
3056
|
+
default: M(() => [
|
|
3057
|
+
x(c(ue), {
|
|
2922
3058
|
border: "r base",
|
|
2923
3059
|
size: "40",
|
|
2924
3060
|
"h-full": ""
|
|
2925
3061
|
}, {
|
|
2926
|
-
default:
|
|
3062
|
+
default: M(() => {
|
|
2927
3063
|
var g;
|
|
2928
3064
|
return [
|
|
2929
|
-
|
|
2930
|
-
(g =
|
|
2931
|
-
|
|
2932
|
-
(p(!0),
|
|
2933
|
-
key:
|
|
3065
|
+
i("div", Vs, [
|
|
3066
|
+
(g = r.value) != null && g.length ? (p(), h("div", Ns, [
|
|
3067
|
+
i("div", Rs, [
|
|
3068
|
+
(p(!0), h(te, null, ae(r.value, (D, F) => J((p(), h("div", {
|
|
3069
|
+
key: F,
|
|
2934
3070
|
class: "flex items-center gap1",
|
|
2935
|
-
onClick: (se) =>
|
|
3071
|
+
onClick: (se) => $(F)
|
|
2936
3072
|
}, [
|
|
2937
|
-
|
|
2938
|
-
name: `baseline-${
|
|
3073
|
+
x(c(yt), {
|
|
3074
|
+
name: `baseline-${D.icon.replace(/\_/g, "-")}`,
|
|
2939
3075
|
"cursor-pointer": "",
|
|
2940
3076
|
op70: "",
|
|
2941
3077
|
"text-base": "",
|
|
2942
3078
|
"hover:op100": ""
|
|
2943
3079
|
}, null, 8, ["name"])
|
|
2944
|
-
], 8,
|
|
3080
|
+
], 8, As)), [
|
|
2945
3081
|
[
|
|
2946
|
-
|
|
2947
|
-
{ content:
|
|
3082
|
+
c(Q),
|
|
3083
|
+
{ content: D.tooltip },
|
|
2948
3084
|
void 0,
|
|
2949
3085
|
{ "bottom-end": !0 }
|
|
2950
3086
|
]
|
|
2951
3087
|
])), 128))
|
|
2952
3088
|
])
|
|
2953
|
-
])) :
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
modelValue:
|
|
2957
|
-
"onUpdate:modelValue":
|
|
2958
|
-
data:
|
|
3089
|
+
])) : U("", !0),
|
|
3090
|
+
i("div", Ds, [
|
|
3091
|
+
x(Me, {
|
|
3092
|
+
modelValue: a.value,
|
|
3093
|
+
"onUpdate:modelValue": S[0] || (S[0] = (D) => a.value = D),
|
|
3094
|
+
data: u.value
|
|
2959
3095
|
}, null, 8, ["modelValue", "data"])
|
|
2960
3096
|
])
|
|
2961
3097
|
])
|
|
@@ -2963,45 +3099,45 @@ const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
|
|
|
2963
3099
|
}),
|
|
2964
3100
|
_: 1
|
|
2965
3101
|
}),
|
|
2966
|
-
|
|
2967
|
-
default:
|
|
3102
|
+
x(c(ue), { size: "60" }, {
|
|
3103
|
+
default: M(() => {
|
|
2968
3104
|
var g;
|
|
2969
3105
|
return [
|
|
2970
|
-
|
|
2971
|
-
(g = l.value) != null && g.length ? (p(),
|
|
2972
|
-
|
|
2973
|
-
(p(!0),
|
|
2974
|
-
key:
|
|
3106
|
+
i("div", Ps, [
|
|
3107
|
+
(g = l.value) != null && g.length ? (p(), h("div", Ms, [
|
|
3108
|
+
i("div", Hs, [
|
|
3109
|
+
(p(!0), h(te, null, ae(l.value, (D, F) => J((p(), h("div", {
|
|
3110
|
+
key: F,
|
|
2975
3111
|
class: "flex items-center gap1",
|
|
2976
|
-
onClick: (se) =>
|
|
3112
|
+
onClick: (se) => N(F)
|
|
2977
3113
|
}, [
|
|
2978
|
-
|
|
2979
|
-
name: `baseline-${
|
|
3114
|
+
x(c(yt), {
|
|
3115
|
+
name: `baseline-${D.icon.replace(/\_/g, "-")}`,
|
|
2980
3116
|
"cursor-pointer": "",
|
|
2981
3117
|
op70: "",
|
|
2982
3118
|
"text-base": "",
|
|
2983
3119
|
"hover:op100": ""
|
|
2984
3120
|
}, null, 8, ["name"])
|
|
2985
|
-
], 8,
|
|
3121
|
+
], 8, Ls)), [
|
|
2986
3122
|
[
|
|
2987
|
-
|
|
2988
|
-
{ content:
|
|
3123
|
+
c(Q),
|
|
3124
|
+
{ content: D.tooltip },
|
|
2989
3125
|
void 0,
|
|
2990
3126
|
{ "bottom-end": !0 }
|
|
2991
3127
|
]
|
|
2992
3128
|
])), 128))
|
|
2993
3129
|
])
|
|
2994
|
-
])) :
|
|
2995
|
-
|
|
3130
|
+
])) : U("", !0),
|
|
3131
|
+
a.value && !m.value ? (p(), z(Pe, {
|
|
2996
3132
|
key: 1,
|
|
2997
|
-
data:
|
|
2998
|
-
"node-id":
|
|
3133
|
+
data: f.value,
|
|
3134
|
+
"node-id": a.value,
|
|
2999
3135
|
"inspector-id": s.value,
|
|
3000
3136
|
"expanded-state-id": "custom-inspector-state",
|
|
3001
3137
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
3002
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (p(),
|
|
3003
|
-
default:
|
|
3004
|
-
|
|
3138
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ne, { key: 2 }, {
|
|
3139
|
+
default: M(() => [
|
|
3140
|
+
ne(" No Data ")
|
|
3005
3141
|
]),
|
|
3006
3142
|
_: 1
|
|
3007
3143
|
}))
|
|
@@ -3012,130 +3148,140 @@ const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
|
|
|
3012
3148
|
})
|
|
3013
3149
|
]),
|
|
3014
3150
|
_: 1
|
|
3015
|
-
})) : (p(),
|
|
3016
|
-
default:
|
|
3017
|
-
|
|
3151
|
+
})) : (p(), z(Ne, { key: 1 }, {
|
|
3152
|
+
default: M(() => [
|
|
3153
|
+
ne(" No Data ")
|
|
3018
3154
|
]),
|
|
3019
3155
|
_: 1
|
|
3020
3156
|
}))
|
|
3021
3157
|
]));
|
|
3022
3158
|
}
|
|
3023
|
-
}),
|
|
3159
|
+
}), Os = /* @__PURE__ */ B({
|
|
3024
3160
|
__name: "Index",
|
|
3025
3161
|
setup(t) {
|
|
3026
|
-
const e =
|
|
3027
|
-
return (n, o) => (p(),
|
|
3028
|
-
"layer-ids":
|
|
3029
|
-
"doc-link":
|
|
3162
|
+
const e = $e();
|
|
3163
|
+
return (n, o) => (p(), z(vt, {
|
|
3164
|
+
"layer-ids": c(e).timelineLayerIds,
|
|
3165
|
+
"doc-link": c(e).homepage
|
|
3030
3166
|
}, null, 8, ["layer-ids", "doc-link"]));
|
|
3031
3167
|
}
|
|
3032
|
-
}),
|
|
3033
|
-
/* @__PURE__ */
|
|
3034
|
-
/* @__PURE__ */
|
|
3168
|
+
}), Us = {}, zs = (t) => (ot("data-v-b8018f07"), t = t(), lt(), t), Bs = { class: "h-screen w-screen $ui-fcc flex-col" }, Zs = /* @__PURE__ */ zs(() => /* @__PURE__ */ i("div", { class: "outer" }, [
|
|
3169
|
+
/* @__PURE__ */ i("div", { class: "inner" }, [
|
|
3170
|
+
/* @__PURE__ */ i("i", {
|
|
3035
3171
|
class: "i-logos-vue inline-block h8! w8!",
|
|
3036
3172
|
alt: "Vue logo"
|
|
3037
3173
|
})
|
|
3038
3174
|
])
|
|
3039
3175
|
], -1));
|
|
3040
|
-
function
|
|
3041
|
-
return p(),
|
|
3042
|
-
|
|
3043
|
-
|
|
3176
|
+
function Fs(t, e) {
|
|
3177
|
+
return p(), h("div", Bs, [
|
|
3178
|
+
Zs,
|
|
3179
|
+
et(t.$slots, "default", {}, void 0, !0)
|
|
3044
3180
|
]);
|
|
3045
3181
|
}
|
|
3046
|
-
const
|
|
3182
|
+
const Gs = /* @__PURE__ */ be(Us, [["render", Fs], ["__scopeId", "data-v-b8018f07"]]), Ks = {
|
|
3047
3183
|
"h-full": "",
|
|
3048
3184
|
"w-full": ""
|
|
3049
|
-
},
|
|
3185
|
+
}, Ws = { key: 0 }, ia = /* @__PURE__ */ B({
|
|
3050
3186
|
__name: "index",
|
|
3051
3187
|
props: {
|
|
3052
3188
|
id: {}
|
|
3053
3189
|
},
|
|
3054
3190
|
emits: ["loadError"],
|
|
3055
3191
|
setup(t, { emit: e }) {
|
|
3056
|
-
const n = t, o = e, s =
|
|
3057
|
-
|
|
3192
|
+
const n = t, o = e, s = Kt(), l = I(!1), r = I(null);
|
|
3193
|
+
_e("pluginSettings", r);
|
|
3194
|
+
const u = V(() => {
|
|
3195
|
+
var a;
|
|
3058
3196
|
return [
|
|
3059
3197
|
{
|
|
3060
3198
|
path: "/state",
|
|
3061
3199
|
name: "State",
|
|
3062
|
-
component:
|
|
3200
|
+
component: js,
|
|
3063
3201
|
icon: "i-carbon-tree-view-alt"
|
|
3064
3202
|
},
|
|
3065
|
-
((
|
|
3203
|
+
((a = s.value.timelineLayerIds) == null ? void 0 : a.length) && {
|
|
3066
3204
|
path: "/timeline",
|
|
3067
3205
|
name: "Timeline",
|
|
3068
|
-
component:
|
|
3206
|
+
component: Os,
|
|
3069
3207
|
icon: "i-mdi:timeline-clock-outline"
|
|
3070
3208
|
},
|
|
3071
3209
|
{
|
|
3072
3210
|
path: "/about",
|
|
3073
3211
|
name: "About",
|
|
3074
|
-
component:
|
|
3212
|
+
component: Is
|
|
3213
|
+
},
|
|
3214
|
+
r.value && {
|
|
3215
|
+
path: "/settings",
|
|
3216
|
+
name: "Settings",
|
|
3217
|
+
component: Ts,
|
|
3218
|
+
icon: "i-mdi:cog-outline"
|
|
3075
3219
|
}
|
|
3076
3220
|
].filter(Boolean);
|
|
3077
|
-
}), { VirtualRouterView:
|
|
3221
|
+
}), { VirtualRouterView: d, restoreRouter: C } = it(u, {
|
|
3078
3222
|
defaultRoutePath: "/state"
|
|
3079
3223
|
});
|
|
3080
|
-
function
|
|
3081
|
-
l.value = !0,
|
|
3082
|
-
|
|
3083
|
-
if (!
|
|
3224
|
+
function v() {
|
|
3225
|
+
l.value = !0, Re(() => {
|
|
3226
|
+
A.value.getInspectorInfo(n.id).then((a) => {
|
|
3227
|
+
if (!a) {
|
|
3084
3228
|
o("loadError");
|
|
3085
3229
|
return;
|
|
3086
3230
|
}
|
|
3087
|
-
const
|
|
3088
|
-
homepage:
|
|
3089
|
-
id:
|
|
3090
|
-
label:
|
|
3091
|
-
logo:
|
|
3092
|
-
timelineLayerIds:
|
|
3231
|
+
const f = {
|
|
3232
|
+
homepage: a == null ? void 0 : a.homepage,
|
|
3233
|
+
id: a == null ? void 0 : a.id,
|
|
3234
|
+
label: a == null ? void 0 : a.label,
|
|
3235
|
+
logo: a == null ? void 0 : a.logo,
|
|
3236
|
+
timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((m) => m.id)
|
|
3093
3237
|
};
|
|
3094
|
-
s.value =
|
|
3238
|
+
s.value = f, C(), l.value = !1;
|
|
3239
|
+
}), A.value.getPluginSettings(n.id).then((a) => {
|
|
3240
|
+
a.options ? r.value = a : r.value = null;
|
|
3095
3241
|
});
|
|
3096
3242
|
});
|
|
3097
3243
|
}
|
|
3098
3244
|
return X(() => n.id, () => {
|
|
3099
|
-
|
|
3245
|
+
v();
|
|
3100
3246
|
}, {
|
|
3101
3247
|
immediate: !0
|
|
3102
|
-
}),
|
|
3103
|
-
|
|
3104
|
-
}), (
|
|
3105
|
-
l.value ? (p(),
|
|
3106
|
-
|
|
3107
|
-
])) : (p(),
|
|
3248
|
+
}), ye(() => {
|
|
3249
|
+
A.value.unhighlight();
|
|
3250
|
+
}), (a, f) => (p(), h("div", Ks, [
|
|
3251
|
+
l.value ? (p(), h("div", Ws, [
|
|
3252
|
+
x(Gs)
|
|
3253
|
+
])) : (p(), z(c(d), { key: 1 }))
|
|
3108
3254
|
]));
|
|
3109
3255
|
}
|
|
3110
3256
|
});
|
|
3111
|
-
function
|
|
3257
|
+
function ra() {
|
|
3112
3258
|
const t = I([]), e = I([]);
|
|
3113
3259
|
function n(s) {
|
|
3114
3260
|
e.value = s, s.length < t.value.length && (t.value = []), e.value.forEach((l) => {
|
|
3115
3261
|
o(l);
|
|
3116
3262
|
});
|
|
3117
3263
|
}
|
|
3118
|
-
|
|
3119
|
-
|
|
3264
|
+
Re(() => {
|
|
3265
|
+
A.value.getCustomInspector().then((s) => {
|
|
3120
3266
|
e.value = s, e.value.forEach((l) => {
|
|
3121
3267
|
o(l);
|
|
3122
3268
|
});
|
|
3123
|
-
}),
|
|
3269
|
+
}), A.functions.on(W.INSPECTOR_UPDATED, n);
|
|
3124
3270
|
});
|
|
3125
3271
|
function o(s) {
|
|
3126
3272
|
t.value.some((l) => l.id === s.id) || t.value.push(s);
|
|
3127
3273
|
}
|
|
3128
|
-
return
|
|
3129
|
-
|
|
3274
|
+
return ye(() => {
|
|
3275
|
+
A.functions.off(W.INSPECTOR_UPDATED, n);
|
|
3130
3276
|
}), {
|
|
3131
3277
|
registeredInspector: t,
|
|
3132
3278
|
register: o
|
|
3133
3279
|
};
|
|
3134
3280
|
}
|
|
3135
3281
|
export {
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3282
|
+
sa as Components,
|
|
3283
|
+
ia as CustomInspector,
|
|
3284
|
+
la as Pinia,
|
|
3285
|
+
aa as Router,
|
|
3286
|
+
ra as useCustomInspector
|
|
3141
3287
|
};
|