@vue/devtools-applet 7.4.1 → 7.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { openBlock as p, createElementBlock as h, createStaticVNode as en, toValue as mt, ref as I, computed as
|
|
2
|
-
import { rpc as A, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as
|
|
1
|
+
import { openBlock as p, createElementBlock as h, createStaticVNode as en, toValue as mt, ref as I, computed as E, defineComponent as B, h as tn, provide as _e, inject as ve, createElementVNode as r, createVNode as x, unref as c, createTextVNode as ne, Fragment as te, renderList as ae, normalizeClass as ie, toDisplayString as le, renderSlot as et, createCommentVNode as U, isRef as Ke, 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 $e, withModifiers as fe, withCtx as M, watchEffect as nt, normalizeStyle as ke, pushScopeId as ot, popScopeId as lt, mergeModels as Ze, useModel as st, onUnmounted as ye, vShow as sn } from "vue";
|
|
2
|
+
import { rpc as A, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as an } from "@vue/devtools-core";
|
|
3
3
|
import { Splitpanes as Ae, Pane as ue } from "splitpanes";
|
|
4
|
-
import { getRaw as Rt, toSubmit as ze, formatInspectorStateValue as
|
|
5
|
-
import { VueButton as de, VueIcon as
|
|
6
|
-
import { isArray as bt, isObject as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { RecycleScroller as
|
|
9
|
-
import { flatten as wn, groupBy as
|
|
4
|
+
import { getRaw as Rt, toSubmit as ze, formatInspectorStateValue as rn, getInspectorStateValueType as Ct, toEdit as un, isPlainObject as cn, UNDEFINED as dn, NAN as pn, INFINITY as fn, NEGATIVE_INFINITY as vn, parse as Y } from "@vue/devtools-kit";
|
|
5
|
+
import { VueButton as de, VueIcon as oe, vTooltip as Q, VueDropdown as hn, VueDropdownButton as xt, VueInput as Fe, VueSwitch as mn, VueSelect as _n, VueCodeBlock as gn, VueDialog as Cn, VueIcIcon as yt } from "@vue/devtools-ui";
|
|
6
|
+
import { isArray as bt, isObject as wt, sortByKey as At, isInSeparateWindow as xn, isInChromePanel as $t } from "@vue/devtools-shared";
|
|
7
|
+
import { debounce as yn } from "perfect-debounce";
|
|
8
|
+
import { RecycleScroller as bn } from "vue-virtual-scroller";
|
|
9
|
+
import { flatten as wn, groupBy as $n } from "lodash-es";
|
|
10
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
|
+
}, kn = {}, In = {
|
|
16
16
|
viewBox: "0 0 566 154",
|
|
17
17
|
fill: "none",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg"
|
|
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
|
-
|
|
19
|
+
}, Sn = /* @__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), Tn = [
|
|
20
|
+
Sn
|
|
21
21
|
];
|
|
22
|
-
function
|
|
23
|
-
return p(), h("svg",
|
|
22
|
+
function En(t, e) {
|
|
23
|
+
return p(), h("svg", In, Tn);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const Vn = /* @__PURE__ */ be(kn, [["render", En]]), at = Symbol("VirtualRouteKey"), Dt = Symbol("VirtualRoutesKey");
|
|
26
26
|
function it(t, e) {
|
|
27
27
|
const n = (e == null ? void 0 : e.defaultRoutePath) ?? mt(t)[0].path, o = I({
|
|
28
28
|
path: n
|
|
29
|
-
}), s =
|
|
29
|
+
}), s = E(() => mt(t)), l = E(() => o.value.path), i = B({
|
|
30
30
|
setup() {
|
|
31
31
|
return () => {
|
|
32
|
-
const d = s.value.find((
|
|
32
|
+
const d = s.value.find((m) => m.path === l.value);
|
|
33
33
|
return d ? tn(d.component) : null;
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ function it(t, e) {
|
|
|
37
37
|
function u() {
|
|
38
38
|
o.value.path = n;
|
|
39
39
|
}
|
|
40
|
-
return _e(at, o), _e(Dt, s), { VirtualRouterView:
|
|
40
|
+
return _e(at, o), _e(Dt, s), { VirtualRouterView: i, restoreRouter: u };
|
|
41
41
|
}
|
|
42
42
|
function De() {
|
|
43
43
|
const t = ve(at);
|
|
@@ -47,58 +47,58 @@ function De() {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nn() {
|
|
51
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 Rn = {
|
|
58
58
|
"h-full": "",
|
|
59
59
|
"w-full": "",
|
|
60
60
|
flex: "",
|
|
61
61
|
"items-center": ""
|
|
62
|
-
},
|
|
62
|
+
}, An = {
|
|
63
63
|
flex: "~ col gap2",
|
|
64
64
|
ma: "",
|
|
65
65
|
"px-5": ""
|
|
66
|
-
},
|
|
66
|
+
}, Dn = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), Pn = {
|
|
67
67
|
flex: "~ col",
|
|
68
68
|
"mt-20": "",
|
|
69
69
|
"items-center": ""
|
|
70
|
-
},
|
|
70
|
+
}, Mn = {
|
|
71
71
|
flex: "~",
|
|
72
72
|
"mt--10": "",
|
|
73
73
|
"items-center": "",
|
|
74
74
|
"justify-center": ""
|
|
75
|
-
},
|
|
75
|
+
}, Hn = /* @__PURE__ */ r("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__ */ r("span", { op40: "" }, " Pinia DevTools ")
|
|
83
|
+
], -1), Ln = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), On = { flex: "~ gap2 wrap" }, jn = /* @__PURE__ */ r("div", {
|
|
84
84
|
"i-carbon-tree-view-alt": "",
|
|
85
85
|
"text-3xl": ""
|
|
86
|
-
}, null, -1),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
],
|
|
86
|
+
}, null, -1), Un = /* @__PURE__ */ r("code", null, "Store", -1), zn = [
|
|
87
|
+
jn,
|
|
88
|
+
Un
|
|
89
|
+
], Bn = /* @__PURE__ */ r("div", {
|
|
90
90
|
"i-mdi:timeline-clock-outline": "",
|
|
91
91
|
"text-3xl": ""
|
|
92
|
-
}, null, -1),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
],
|
|
92
|
+
}, null, -1), Zn = /* @__PURE__ */ r("div", null, "Timeline", -1), Fn = [
|
|
93
|
+
Bn,
|
|
94
|
+
Zn
|
|
95
|
+
], Gn = /* @__PURE__ */ r("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__ */ r("a", {
|
|
102
102
|
href: "https://github.com/vuejs/pinia",
|
|
103
103
|
target: "_blank",
|
|
104
104
|
flex: "~ gap1",
|
|
@@ -107,10 +107,10 @@ const An = {
|
|
|
107
107
|
hover: "op100 text-blue",
|
|
108
108
|
transition: ""
|
|
109
109
|
}, [
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ r("div", { "i-carbon-star": "" }),
|
|
111
111
|
/* @__PURE__ */ ne(" Star on GitHub ")
|
|
112
112
|
]),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ r("a", {
|
|
114
114
|
href: "https://pinia.vuejs.org/",
|
|
115
115
|
target: "_blank",
|
|
116
116
|
flex: "~ gap1",
|
|
@@ -119,64 +119,64 @@ const An = {
|
|
|
119
119
|
hover: "op100 text-yellow",
|
|
120
120
|
transition: ""
|
|
121
121
|
}, [
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ r("div", { "i-carbon-document": "" }),
|
|
123
123
|
/* @__PURE__ */ ne(" View Documentation ")
|
|
124
124
|
])
|
|
125
|
-
], -1),
|
|
125
|
+
], -1), Kn = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), Wn = /* @__PURE__ */ B({
|
|
126
126
|
__name: "About",
|
|
127
127
|
setup(t) {
|
|
128
128
|
const e = De();
|
|
129
|
-
return (n, o) => (p(), h("div",
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
x(
|
|
129
|
+
return (n, o) => (p(), h("div", Rn, [
|
|
130
|
+
r("div", An, [
|
|
131
|
+
Dn,
|
|
132
|
+
r("div", Pn, [
|
|
133
|
+
r("div", Mn, [
|
|
134
|
+
x(Vn, { "h-18": "" })
|
|
135
135
|
]),
|
|
136
|
-
|
|
136
|
+
Hn
|
|
137
137
|
]),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
Ln,
|
|
139
|
+
r("div", On, [
|
|
140
|
+
r("div", {
|
|
141
141
|
flex: "~ col auto",
|
|
142
142
|
"min-w-40": "",
|
|
143
143
|
p4: "",
|
|
144
144
|
"theme-card-lime": "",
|
|
145
145
|
onClick: o[0] || (o[0] = (s) => c(e).push("/store"))
|
|
146
|
-
},
|
|
147
|
-
|
|
146
|
+
}, zn),
|
|
147
|
+
r("div", {
|
|
148
148
|
flex: "~ col auto",
|
|
149
149
|
"min-w-40": "",
|
|
150
150
|
p4: "",
|
|
151
151
|
"theme-card-lime": "",
|
|
152
152
|
onClick: o[1] || (o[1] = (s) => c(e).push("/timeline"))
|
|
153
|
-
},
|
|
153
|
+
}, Fn)
|
|
154
154
|
]),
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
Gn,
|
|
156
|
+
Kn
|
|
157
157
|
])
|
|
158
158
|
]));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), qn = { class: "flex gap3" }, Jn = ["onClick"], Ie = /* @__PURE__ */ B({
|
|
161
161
|
__name: "Navbar",
|
|
162
162
|
setup(t) {
|
|
163
|
-
const { routes: e, currentRoute: n } =
|
|
164
|
-
return (s, l) => (p(), h("ul",
|
|
165
|
-
(p(!0), h(te, null, ae(c(e), (
|
|
163
|
+
const { routes: e, currentRoute: n } = Nn(), o = De();
|
|
164
|
+
return (s, l) => (p(), h("ul", qn, [
|
|
165
|
+
(p(!0), h(te, null, ae(c(e), (i, u) => (p(), h("li", {
|
|
166
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 ===
|
|
168
|
-
onClick: (d) => c(o).push(
|
|
169
|
-
},
|
|
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 === i.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
|
|
168
|
+
onClick: (d) => c(o).push(i.path)
|
|
169
|
+
}, le(i.name), 11, Jn))), 128))
|
|
170
170
|
]));
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), Yn = {
|
|
173
173
|
border: "b base",
|
|
174
174
|
class: "flex items-center justify-between px3"
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
],
|
|
178
|
-
|
|
179
|
-
],
|
|
175
|
+
}, Xn = ["href"], Qn = /* @__PURE__ */ r("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1), eo = [
|
|
176
|
+
Qn
|
|
177
|
+
], to = ["href"], no = /* @__PURE__ */ r("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1), oo = [
|
|
178
|
+
no
|
|
179
|
+
], Se = /* @__PURE__ */ B({
|
|
180
180
|
__name: "DevToolsHeader",
|
|
181
181
|
props: {
|
|
182
182
|
githubRepoLink: {},
|
|
@@ -184,41 +184,41 @@ const An = {
|
|
|
184
184
|
},
|
|
185
185
|
setup(t) {
|
|
186
186
|
const e = De();
|
|
187
|
-
return (n, o) => (p(), h("div",
|
|
188
|
-
|
|
187
|
+
return (n, o) => (p(), h("div", Yn, [
|
|
188
|
+
r("div", null, [
|
|
189
189
|
et(n.$slots, "default", {}, () => [
|
|
190
|
-
|
|
190
|
+
r("i", {
|
|
191
191
|
class: "i-ep:back cursor-pointer op70 text-base hover:op100",
|
|
192
192
|
onClick: o[0] || (o[0] = (s) => c(e).push("/"))
|
|
193
193
|
})
|
|
194
194
|
])
|
|
195
195
|
]),
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
r("div", null, [
|
|
197
|
+
r("a", {
|
|
198
198
|
class: "pr2",
|
|
199
199
|
href: n.docLink,
|
|
200
200
|
target: "_blank",
|
|
201
201
|
title: "View Documentation"
|
|
202
|
-
},
|
|
202
|
+
}, eo, 8, Xn),
|
|
203
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
|
+
}, oo, 8, to)) : U("", !0)
|
|
209
209
|
])
|
|
210
210
|
]));
|
|
211
211
|
}
|
|
212
|
-
}),
|
|
213
|
-
function
|
|
214
|
-
return p(), h("div",
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
}), lo = {}, so = { class: "h-full flex flex-col items-center justify-center op50" }, ao = /* @__PURE__ */ r("i", { class: "i-lets-icons:blank-light" }, null, -1);
|
|
213
|
+
function io(t, e) {
|
|
214
|
+
return p(), h("div", so, [
|
|
215
|
+
ao,
|
|
216
|
+
r("span", null, [
|
|
217
217
|
et(t.$slots, "default")
|
|
218
218
|
])
|
|
219
219
|
]);
|
|
220
220
|
}
|
|
221
|
-
const Ne = /* @__PURE__ */ be(
|
|
221
|
+
const Ne = /* @__PURE__ */ be(lo, [["render", io]]);
|
|
222
222
|
function rt(t) {
|
|
223
223
|
return on() ? (ln(t), !0) : !1;
|
|
224
224
|
}
|
|
@@ -227,9 +227,9 @@ function ee(t) {
|
|
|
227
227
|
}
|
|
228
228
|
const ut = typeof window < "u" && typeof document < "u";
|
|
229
229
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
230
|
-
const
|
|
230
|
+
const ro = (t) => typeof t < "u", uo = Object.prototype.toString, co = (t) => uo.call(t) === "[object Object]", Ge = () => {
|
|
231
231
|
};
|
|
232
|
-
function
|
|
232
|
+
function po(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,18 +237,18 @@ function fo(t, e) {
|
|
|
237
237
|
}
|
|
238
238
|
return n;
|
|
239
239
|
}
|
|
240
|
-
const
|
|
241
|
-
function
|
|
242
|
-
let n, o, s =
|
|
240
|
+
const fo = (t) => t();
|
|
241
|
+
function vo(t, e = {}) {
|
|
242
|
+
let n, o, s = Ge;
|
|
243
243
|
const l = (u) => {
|
|
244
|
-
clearTimeout(u), s(), s =
|
|
244
|
+
clearTimeout(u), s(), s = Ge;
|
|
245
245
|
};
|
|
246
246
|
return (u) => {
|
|
247
|
-
const d = ee(t),
|
|
248
|
-
return n && l(n), d <= 0 ||
|
|
249
|
-
s = e.rejectOnCancel ? a : v,
|
|
247
|
+
const d = ee(t), m = ee(e.maxWait);
|
|
248
|
+
return n && l(n), d <= 0 || m !== void 0 && m <= 0 ? (o && (l(o), o = null), Promise.resolve(u())) : new Promise((v, a) => {
|
|
249
|
+
s = e.rejectOnCancel ? a : v, m && !o && (o = setTimeout(() => {
|
|
250
250
|
n && l(n), o = null, v(u());
|
|
251
|
-
},
|
|
251
|
+
}, m)), n = setTimeout(() => {
|
|
252
252
|
o && l(o), o = null, v(u());
|
|
253
253
|
}, d);
|
|
254
254
|
});
|
|
@@ -259,7 +259,7 @@ function kt(t, e = !1, n = "Timeout") {
|
|
|
259
259
|
setTimeout(e ? () => s(n) : o, t);
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function ho(t) {
|
|
263
263
|
let e;
|
|
264
264
|
function n() {
|
|
265
265
|
return e || (e = t()), e;
|
|
@@ -269,66 +269,66 @@ function mo(t) {
|
|
|
269
269
|
e = void 0, o && await o;
|
|
270
270
|
}, n;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function mo(t) {
|
|
273
273
|
return tt();
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function _o(t, e, n = {}) {
|
|
276
276
|
const {
|
|
277
|
-
eventFilter: o =
|
|
277
|
+
eventFilter: o = fo,
|
|
278
278
|
...s
|
|
279
279
|
} = n;
|
|
280
280
|
return X(
|
|
281
281
|
t,
|
|
282
|
-
|
|
282
|
+
po(
|
|
283
283
|
o,
|
|
284
284
|
e
|
|
285
285
|
),
|
|
286
286
|
s
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
289
|
+
function go(t, e = !0, n) {
|
|
290
|
+
mo() ? Vt(t, n) : e ? t() : Be(t);
|
|
291
291
|
}
|
|
292
292
|
function Qe(t, e = !1) {
|
|
293
|
-
function n(a, { flush: f = "sync", deep:
|
|
293
|
+
function n(a, { flush: f = "sync", deep: _ = !1, timeout: y, throwOnTimeout: g } = {}) {
|
|
294
294
|
let k = null;
|
|
295
|
-
const
|
|
295
|
+
const O = [new Promise((N) => {
|
|
296
296
|
k = X(
|
|
297
297
|
t,
|
|
298
|
-
(
|
|
299
|
-
a(
|
|
298
|
+
(w) => {
|
|
299
|
+
a(w) !== e && (k ? k() : Be(() => k == null ? void 0 : k()), N(w));
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
flush: f,
|
|
303
|
-
deep:
|
|
303
|
+
deep: _,
|
|
304
304
|
immediate: !0
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
307
|
})];
|
|
308
|
-
return y != null &&
|
|
309
|
-
kt(y,
|
|
310
|
-
), Promise.race(
|
|
308
|
+
return y != null && O.push(
|
|
309
|
+
kt(y, g).then(() => ee(t)).finally(() => k == null ? void 0 : k())
|
|
310
|
+
), Promise.race(O);
|
|
311
311
|
}
|
|
312
312
|
function o(a, f) {
|
|
313
|
-
if (!
|
|
314
|
-
return n((
|
|
315
|
-
const { flush:
|
|
316
|
-
let
|
|
317
|
-
const N = [new Promise((
|
|
318
|
-
|
|
313
|
+
if (!Ke(a))
|
|
314
|
+
return n((w) => w === a, f);
|
|
315
|
+
const { flush: _ = "sync", deep: y = !1, timeout: g, throwOnTimeout: k } = f ?? {};
|
|
316
|
+
let j = null;
|
|
317
|
+
const N = [new Promise((w) => {
|
|
318
|
+
j = X(
|
|
319
319
|
[t, a],
|
|
320
320
|
([R, H]) => {
|
|
321
|
-
e !== (R === H) && (
|
|
321
|
+
e !== (R === H) && (j ? j() : Be(() => j == null ? void 0 : j()), w(R));
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
|
-
flush:
|
|
324
|
+
flush: _,
|
|
325
325
|
deep: y,
|
|
326
326
|
immediate: !0
|
|
327
327
|
}
|
|
328
328
|
);
|
|
329
329
|
})];
|
|
330
|
-
return
|
|
331
|
-
kt(
|
|
330
|
+
return g != null && N.push(
|
|
331
|
+
kt(g, k).then(() => ee(t)).finally(() => (j == null || j(), ee(t)))
|
|
332
332
|
), Promise.race(N);
|
|
333
333
|
}
|
|
334
334
|
function s(a) {
|
|
@@ -337,29 +337,29 @@ function Qe(t, e = !1) {
|
|
|
337
337
|
function l(a) {
|
|
338
338
|
return o(null, a);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function i(a) {
|
|
341
341
|
return o(void 0, a);
|
|
342
342
|
}
|
|
343
343
|
function u(a) {
|
|
344
344
|
return n(Number.isNaN, a);
|
|
345
345
|
}
|
|
346
346
|
function d(a, f) {
|
|
347
|
-
return n((
|
|
348
|
-
const y = Array.from(
|
|
347
|
+
return n((_) => {
|
|
348
|
+
const y = Array.from(_);
|
|
349
349
|
return y.includes(a) || y.includes(ee(a));
|
|
350
350
|
}, f);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function m(a) {
|
|
353
353
|
return v(1, a);
|
|
354
354
|
}
|
|
355
355
|
function v(a = 1, f) {
|
|
356
|
-
let
|
|
357
|
-
return n(() => (
|
|
356
|
+
let _ = -1;
|
|
357
|
+
return n(() => (_ += 1, _ >= a), f);
|
|
358
358
|
}
|
|
359
359
|
return Array.isArray(ee(t)) ? {
|
|
360
360
|
toMatch: n,
|
|
361
361
|
toContains: d,
|
|
362
|
-
changed:
|
|
362
|
+
changed: m,
|
|
363
363
|
changedTimes: v,
|
|
364
364
|
get not() {
|
|
365
365
|
return Qe(t, !e);
|
|
@@ -370,8 +370,8 @@ function Qe(t, e = !1) {
|
|
|
370
370
|
toBeTruthy: s,
|
|
371
371
|
toBeNull: l,
|
|
372
372
|
toBeNaN: u,
|
|
373
|
-
toBeUndefined:
|
|
374
|
-
changed:
|
|
373
|
+
toBeUndefined: i,
|
|
374
|
+
changed: m,
|
|
375
375
|
changedTimes: v,
|
|
376
376
|
get not() {
|
|
377
377
|
return Qe(t, !e);
|
|
@@ -381,20 +381,20 @@ function Qe(t, e = !1) {
|
|
|
381
381
|
function Pt(t) {
|
|
382
382
|
return Qe(t);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Co(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 i() {
|
|
390
390
|
l && (clearTimeout(l), l = null);
|
|
391
391
|
}
|
|
392
392
|
function u() {
|
|
393
|
-
s.value = !1,
|
|
393
|
+
s.value = !1, i();
|
|
394
394
|
}
|
|
395
|
-
function d(...
|
|
396
|
-
|
|
397
|
-
s.value = !1, l = null, t(...
|
|
395
|
+
function d(...m) {
|
|
396
|
+
i(), s.value = !0, l = setTimeout(() => {
|
|
397
|
+
s.value = !1, l = null, t(...m);
|
|
398
398
|
}, ee(e));
|
|
399
399
|
}
|
|
400
400
|
return o && (s.value = !0, ut && d()), rt(u), {
|
|
@@ -403,12 +403,12 @@ function xo(t, e, n = {}) {
|
|
|
403
403
|
stop: u
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function xo(t = !1, e = {}) {
|
|
407
407
|
const {
|
|
408
408
|
truthyValue: n = !0,
|
|
409
409
|
falsyValue: o = !1
|
|
410
|
-
} = e, s =
|
|
411
|
-
function
|
|
410
|
+
} = e, s = Ke(t), l = I(t);
|
|
411
|
+
function i(u) {
|
|
412
412
|
if (arguments.length)
|
|
413
413
|
return l.value = u, l.value;
|
|
414
414
|
{
|
|
@@ -416,20 +416,20 @@ function yo(t = !1, e = {}) {
|
|
|
416
416
|
return l.value = l.value === d ? ee(o) : d, l.value;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
return s ?
|
|
419
|
+
return s ? i : [l, i];
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function yo(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 _o(
|
|
428
428
|
t,
|
|
429
429
|
e,
|
|
430
430
|
{
|
|
431
431
|
...l,
|
|
432
|
-
eventFilter:
|
|
432
|
+
eventFilter: vo(o, { maxWait: s })
|
|
433
433
|
}
|
|
434
434
|
);
|
|
435
435
|
}
|
|
@@ -438,54 +438,54 @@ function xe(t) {
|
|
|
438
438
|
const n = ee(t);
|
|
439
439
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const We = ut ? window : void 0, Mt = ut ? window.navigator : void 0;
|
|
442
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 = We) : [e, n, o, s] = t, !e)
|
|
445
|
+
return Ge;
|
|
446
446
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
447
|
-
const l = [],
|
|
447
|
+
const l = [], i = () => {
|
|
448
448
|
l.forEach((v) => v()), l.length = 0;
|
|
449
|
-
}, u = (v, a, f,
|
|
449
|
+
}, u = (v, a, f, _) => (v.addEventListener(a, f, _), () => v.removeEventListener(a, f, _)), d = X(
|
|
450
450
|
() => [xe(e), ee(s)],
|
|
451
451
|
([v, a]) => {
|
|
452
|
-
if (
|
|
452
|
+
if (i(), !v)
|
|
453
453
|
return;
|
|
454
|
-
const f =
|
|
454
|
+
const f = co(a) ? { ...a } : a;
|
|
455
455
|
l.push(
|
|
456
|
-
...n.flatMap((
|
|
456
|
+
...n.flatMap((_) => o.map((y) => u(v, _, y, f)))
|
|
457
457
|
);
|
|
458
458
|
},
|
|
459
459
|
{ immediate: !0, flush: "post" }
|
|
460
|
-
),
|
|
461
|
-
d(),
|
|
460
|
+
), m = () => {
|
|
461
|
+
d(), i();
|
|
462
462
|
};
|
|
463
|
-
return rt(
|
|
463
|
+
return rt(m), m;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function bo() {
|
|
466
466
|
const t = I(!1), e = tt();
|
|
467
467
|
return e && Vt(() => {
|
|
468
468
|
t.value = !0;
|
|
469
469
|
}, e), t;
|
|
470
470
|
}
|
|
471
471
|
function ct(t) {
|
|
472
|
-
const e =
|
|
473
|
-
return
|
|
472
|
+
const e = bo();
|
|
473
|
+
return E(() => (e.value, !!t()));
|
|
474
474
|
}
|
|
475
475
|
function It(t, e = {}) {
|
|
476
476
|
const {
|
|
477
477
|
controls: n = !1,
|
|
478
478
|
navigator: o = Mt
|
|
479
|
-
} = e, s = ct(() => o && "permissions" in o), l = gt(),
|
|
479
|
+
} = e, s = ct(() => o && "permissions" in o), l = gt(), i = typeof t == "string" ? { name: t } : t, u = gt(), d = () => {
|
|
480
480
|
var v, a;
|
|
481
481
|
u.value = (a = (v = l.value) == null ? void 0 : v.state) != null ? a : "prompt";
|
|
482
482
|
};
|
|
483
483
|
me(l, "change", d);
|
|
484
|
-
const
|
|
484
|
+
const m = ho(async () => {
|
|
485
485
|
if (s.value) {
|
|
486
486
|
if (!l.value)
|
|
487
487
|
try {
|
|
488
|
-
l.value = await o.permissions.query(
|
|
488
|
+
l.value = await o.permissions.query(i);
|
|
489
489
|
} catch {
|
|
490
490
|
l.value = void 0;
|
|
491
491
|
} finally {
|
|
@@ -495,10 +495,10 @@ function It(t, e = {}) {
|
|
|
495
495
|
return Nt(l.value);
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
|
-
return
|
|
498
|
+
return m(), n ? {
|
|
499
499
|
state: u,
|
|
500
500
|
isSupported: s,
|
|
501
|
-
query:
|
|
501
|
+
query: m
|
|
502
502
|
} : u;
|
|
503
503
|
}
|
|
504
504
|
function wo(t = {}) {
|
|
@@ -508,49 +508,49 @@ function wo(t = {}) {
|
|
|
508
508
|
source: o,
|
|
509
509
|
copiedDuring: s = 1500,
|
|
510
510
|
legacy: l = !1
|
|
511
|
-
} = t,
|
|
512
|
-
function
|
|
513
|
-
|
|
514
|
-
v.value =
|
|
511
|
+
} = t, i = ct(() => e && "clipboard" in e), u = It("clipboard-read"), d = It("clipboard-write"), m = E(() => i.value || l), v = I(""), a = I(!1), f = Co(() => a.value = !1, s);
|
|
512
|
+
function _() {
|
|
513
|
+
i.value && j(u.value) ? e.clipboard.readText().then((O) => {
|
|
514
|
+
v.value = O;
|
|
515
515
|
}) : v.value = k();
|
|
516
516
|
}
|
|
517
|
-
|
|
518
|
-
async function y(
|
|
519
|
-
|
|
517
|
+
m.value && n && me(["copy", "cut"], _);
|
|
518
|
+
async function y(O = ee(o)) {
|
|
519
|
+
m.value && O != null && (i.value && j(d.value) ? await e.clipboard.writeText(O) : g(O), v.value = O, a.value = !0, f.start());
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function g(O) {
|
|
522
522
|
const N = document.createElement("textarea");
|
|
523
|
-
N.value =
|
|
523
|
+
N.value = O ?? "", N.style.position = "absolute", N.style.opacity = "0", document.body.appendChild(N), N.select(), document.execCommand("copy"), N.remove();
|
|
524
524
|
}
|
|
525
525
|
function k() {
|
|
526
|
-
var
|
|
527
|
-
return (
|
|
526
|
+
var O, N, w;
|
|
527
|
+
return (w = (N = (O = document == null ? void 0 : document.getSelection) == null ? void 0 : O.call(document)) == null ? void 0 : N.toString()) != null ? w : "";
|
|
528
528
|
}
|
|
529
|
-
function O
|
|
530
|
-
return
|
|
529
|
+
function j(O) {
|
|
530
|
+
return O === "granted" || O === "prompt";
|
|
531
531
|
}
|
|
532
532
|
return {
|
|
533
|
-
isSupported:
|
|
533
|
+
isSupported: m,
|
|
534
534
|
text: v,
|
|
535
535
|
copied: a,
|
|
536
536
|
copy: y
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function $o(t) {
|
|
540
540
|
return JSON.parse(JSON.stringify(t));
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
const { window: o =
|
|
542
|
+
function ko(t, e, n = {}) {
|
|
543
|
+
const { window: o = We, ...s } = n;
|
|
544
544
|
let l;
|
|
545
|
-
const
|
|
545
|
+
const i = ct(() => o && "ResizeObserver" in o), u = () => {
|
|
546
546
|
l && (l.disconnect(), l = void 0);
|
|
547
|
-
}, d =
|
|
547
|
+
}, d = E(() => {
|
|
548
548
|
const a = ee(t);
|
|
549
549
|
return Array.isArray(a) ? a.map((f) => xe(f)) : [xe(a)];
|
|
550
|
-
}),
|
|
550
|
+
}), m = X(
|
|
551
551
|
d,
|
|
552
552
|
(a) => {
|
|
553
|
-
if (u(),
|
|
553
|
+
if (u(), i.value && o) {
|
|
554
554
|
l = new ResizeObserver(e);
|
|
555
555
|
for (const f of a)
|
|
556
556
|
f && l.observe(f, s);
|
|
@@ -558,55 +558,55 @@ function Io(t, e, n = {}) {
|
|
|
558
558
|
},
|
|
559
559
|
{ immediate: !0, flush: "post" }
|
|
560
560
|
), v = () => {
|
|
561
|
-
u(),
|
|
561
|
+
u(), m();
|
|
562
562
|
};
|
|
563
563
|
return rt(v), {
|
|
564
|
-
isSupported:
|
|
564
|
+
isSupported: i,
|
|
565
565
|
stop: v
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
const { window: o =
|
|
568
|
+
function Io(t, e = { width: 0, height: 0 }, n = {}) {
|
|
569
|
+
const { window: o = We, box: s = "content-box" } = n, l = E(() => {
|
|
570
570
|
var a, f;
|
|
571
571
|
return (f = (a = xe(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
572
|
-
}),
|
|
572
|
+
}), i = I(e.width), u = I(e.height), { stop: d } = ko(
|
|
573
573
|
t,
|
|
574
574
|
([a]) => {
|
|
575
575
|
const f = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
576
576
|
if (o && l.value) {
|
|
577
|
-
const
|
|
578
|
-
if (
|
|
579
|
-
const y =
|
|
580
|
-
|
|
577
|
+
const _ = xe(t);
|
|
578
|
+
if (_) {
|
|
579
|
+
const y = _.getBoundingClientRect();
|
|
580
|
+
i.value = y.width, u.value = y.height;
|
|
581
581
|
}
|
|
582
582
|
} else if (f) {
|
|
583
|
-
const
|
|
584
|
-
|
|
583
|
+
const _ = Array.isArray(f) ? f : [f];
|
|
584
|
+
i.value = _.reduce((y, { inlineSize: g }) => y + g, 0), u.value = _.reduce((y, { blockSize: g }) => y + g, 0);
|
|
585
585
|
} else
|
|
586
|
-
|
|
586
|
+
i.value = a.contentRect.width, u.value = a.contentRect.height;
|
|
587
587
|
},
|
|
588
588
|
n
|
|
589
589
|
);
|
|
590
|
-
|
|
590
|
+
go(() => {
|
|
591
591
|
const a = xe(t);
|
|
592
|
-
a && (
|
|
592
|
+
a && (i.value = "offsetWidth" in a ? a.offsetWidth : e.width, u.value = "offsetHeight" in a ? a.offsetHeight : e.height);
|
|
593
593
|
});
|
|
594
|
-
const
|
|
594
|
+
const m = X(
|
|
595
595
|
() => xe(t),
|
|
596
596
|
(a) => {
|
|
597
|
-
|
|
597
|
+
i.value = a ? e.width : 0, u.value = a ? e.height : 0;
|
|
598
598
|
}
|
|
599
599
|
);
|
|
600
600
|
function v() {
|
|
601
|
-
d(),
|
|
601
|
+
d(), m();
|
|
602
602
|
}
|
|
603
603
|
return {
|
|
604
|
-
width:
|
|
604
|
+
width: i,
|
|
605
605
|
height: u,
|
|
606
606
|
stop: v
|
|
607
607
|
};
|
|
608
608
|
}
|
|
609
|
-
const
|
|
609
|
+
const So = {
|
|
610
610
|
ctrl: "control",
|
|
611
611
|
command: "meta",
|
|
612
612
|
cmd: "meta",
|
|
@@ -616,99 +616,99 @@ const To = {
|
|
|
616
616
|
left: "arrowleft",
|
|
617
617
|
right: "arrowright"
|
|
618
618
|
};
|
|
619
|
-
function
|
|
619
|
+
function To(t = {}) {
|
|
620
620
|
const {
|
|
621
621
|
reactive: e = !1,
|
|
622
|
-
target: n =
|
|
623
|
-
aliasMap: o =
|
|
622
|
+
target: n = We,
|
|
623
|
+
aliasMap: o = So,
|
|
624
624
|
passive: s = !0,
|
|
625
|
-
onEventFired: l =
|
|
626
|
-
} = t,
|
|
625
|
+
onEventFired: l = Ge
|
|
626
|
+
} = t, i = _t(/* @__PURE__ */ new Set()), u = {
|
|
627
627
|
toJSON() {
|
|
628
628
|
return {};
|
|
629
629
|
},
|
|
630
|
-
current:
|
|
631
|
-
}, d = e ? _t(u) : u,
|
|
632
|
-
function a(
|
|
633
|
-
|
|
630
|
+
current: i
|
|
631
|
+
}, d = e ? _t(u) : u, m = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
|
|
632
|
+
function a(g, k) {
|
|
633
|
+
g in d && (e ? d[g] = k : d[g].value = k);
|
|
634
634
|
}
|
|
635
635
|
function f() {
|
|
636
|
-
|
|
637
|
-
for (const
|
|
638
|
-
a(
|
|
636
|
+
i.clear();
|
|
637
|
+
for (const g of v)
|
|
638
|
+
a(g, !1);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
var
|
|
642
|
-
const N = (
|
|
643
|
-
N && (k ?
|
|
640
|
+
function _(g, k) {
|
|
641
|
+
var j, O;
|
|
642
|
+
const N = (j = g.key) == null ? void 0 : j.toLowerCase(), R = [(O = g.code) == null ? void 0 : O.toLowerCase(), N].filter(Boolean);
|
|
643
|
+
N && (k ? i.add(N) : i.delete(N));
|
|
644
644
|
for (const H of R)
|
|
645
645
|
v.add(H), a(H, k);
|
|
646
|
-
N === "meta" && !k ? (
|
|
647
|
-
|
|
648
|
-
}),
|
|
646
|
+
N === "meta" && !k ? (m.forEach((H) => {
|
|
647
|
+
i.delete(H), a(H, !1);
|
|
648
|
+
}), m.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && k && [...i, ...R].forEach((H) => m.add(H));
|
|
649
649
|
}
|
|
650
|
-
me(n, "keydown", (
|
|
650
|
+
me(n, "keydown", (g) => (_(g, !0), l(g)), { passive: s }), me(n, "keyup", (g) => (_(g, !1), l(g)), { passive: s }), me("blur", f, { passive: !0 }), me("focus", f, { passive: !0 });
|
|
651
651
|
const y = new Proxy(
|
|
652
652
|
d,
|
|
653
653
|
{
|
|
654
|
-
get(
|
|
654
|
+
get(g, k, j) {
|
|
655
655
|
if (typeof k != "string")
|
|
656
|
-
return Reflect.get(
|
|
656
|
+
return Reflect.get(g, k, j);
|
|
657
657
|
if (k = k.toLowerCase(), k in o && (k = o[k]), !(k in d))
|
|
658
658
|
if (/[+_-]/.test(k)) {
|
|
659
|
-
const N = k.split(/[+_-]/g).map((
|
|
660
|
-
d[k] =
|
|
659
|
+
const N = k.split(/[+_-]/g).map((w) => w.trim());
|
|
660
|
+
d[k] = E(() => N.every((w) => ee(y[w])));
|
|
661
661
|
} else
|
|
662
662
|
d[k] = I(!1);
|
|
663
|
-
const
|
|
664
|
-
return e ? ee(
|
|
663
|
+
const O = Reflect.get(g, k, j);
|
|
664
|
+
return e ? ee(O) : O;
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
);
|
|
668
668
|
return y;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
var s, l,
|
|
670
|
+
function Eo(t, e, n, o = {}) {
|
|
671
|
+
var s, l, i;
|
|
672
672
|
const {
|
|
673
673
|
clone: u = !1,
|
|
674
674
|
passive: d = !1,
|
|
675
|
-
eventName:
|
|
675
|
+
eventName: m,
|
|
676
676
|
deep: v = !1,
|
|
677
677
|
defaultValue: a,
|
|
678
678
|
shouldEmit: f
|
|
679
|
-
} = o,
|
|
680
|
-
let
|
|
681
|
-
|
|
682
|
-
const k = (N) => u ? typeof u == "function" ? u(N) :
|
|
683
|
-
f ? f(N) && y(
|
|
679
|
+
} = o, _ = tt(), y = n || (_ == null ? void 0 : _.emit) || ((s = _ == null ? void 0 : _.$emit) == null ? void 0 : s.bind(_)) || ((i = (l = _ == null ? void 0 : _.proxy) == null ? void 0 : l.$emit) == null ? void 0 : i.bind(_ == null ? void 0 : _.proxy));
|
|
680
|
+
let g = m;
|
|
681
|
+
g = g || `update:${e.toString()}`;
|
|
682
|
+
const k = (N) => u ? typeof u == "function" ? u(N) : $o(N) : N, j = () => ro(t[e]) ? k(t[e]) : a, O = (N) => {
|
|
683
|
+
f ? f(N) && y(g, N) : y(g, N);
|
|
684
684
|
};
|
|
685
685
|
if (d) {
|
|
686
|
-
const N =
|
|
686
|
+
const N = j(), w = I(N);
|
|
687
687
|
let R = !1;
|
|
688
688
|
return X(
|
|
689
689
|
() => t[e],
|
|
690
690
|
(H) => {
|
|
691
|
-
R || (R = !0,
|
|
691
|
+
R || (R = !0, w.value = k(H), Be(() => R = !1));
|
|
692
692
|
}
|
|
693
693
|
), X(
|
|
694
|
-
|
|
694
|
+
w,
|
|
695
695
|
(H) => {
|
|
696
|
-
!R && (H !== t[e] || v) &&
|
|
696
|
+
!R && (H !== t[e] || v) && O(H);
|
|
697
697
|
},
|
|
698
698
|
{ deep: v }
|
|
699
|
-
),
|
|
699
|
+
), w;
|
|
700
700
|
} else
|
|
701
|
-
return
|
|
701
|
+
return E({
|
|
702
702
|
get() {
|
|
703
|
-
return
|
|
703
|
+
return j();
|
|
704
704
|
},
|
|
705
705
|
set(N) {
|
|
706
|
-
|
|
706
|
+
O(N);
|
|
707
707
|
}
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
const Ht = Symbol("StateEditorSymbol");
|
|
711
|
-
function
|
|
711
|
+
function Vo(t) {
|
|
712
712
|
const e = I(t);
|
|
713
713
|
return _e(Ht, e), {
|
|
714
714
|
context: e
|
|
@@ -717,7 +717,7 @@ function No(t) {
|
|
|
717
717
|
function dt() {
|
|
718
718
|
return ve(Ht);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function No() {
|
|
721
721
|
const t = I(""), e = I("string"), n = I(!1), o = dt();
|
|
722
722
|
return {
|
|
723
723
|
editingText: t,
|
|
@@ -726,10 +726,10 @@ function Ro() {
|
|
|
726
726
|
s && (e.value = s), n.value = !n.value;
|
|
727
727
|
},
|
|
728
728
|
editingType: e,
|
|
729
|
-
nodeId:
|
|
729
|
+
nodeId: E(() => o.value.nodeId)
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function Ro(t, e) {
|
|
733
733
|
if (t === "array")
|
|
734
734
|
return e.length;
|
|
735
735
|
const n = "newProp";
|
|
@@ -741,14 +741,14 @@ function Ao(t, e) {
|
|
|
741
741
|
o++;
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ao() {
|
|
745
745
|
const t = I({
|
|
746
746
|
enable: !1,
|
|
747
747
|
key: "",
|
|
748
748
|
value: "undefined"
|
|
749
749
|
});
|
|
750
750
|
function e(o, s) {
|
|
751
|
-
const l =
|
|
751
|
+
const l = Ro(o, s);
|
|
752
752
|
t.value = {
|
|
753
753
|
enable: !0,
|
|
754
754
|
key: l.toString(),
|
|
@@ -768,7 +768,7 @@ function Do() {
|
|
|
768
768
|
draftingNewProp: t
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
|
-
const
|
|
771
|
+
const Do = { class: "flex pl5px" }, Po = { class: "w160px py5px" }, Mo = /* @__PURE__ */ B({
|
|
772
772
|
__name: "StateFieldEditor",
|
|
773
773
|
props: {
|
|
774
774
|
data: {},
|
|
@@ -779,13 +779,13 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
779
779
|
},
|
|
780
780
|
emits: ["enableEditInput", "addNewProp"],
|
|
781
781
|
setup(t) {
|
|
782
|
-
const e = t, n = dt(), { copy: o, isSupported: s } = wo(), l = I(!1),
|
|
782
|
+
const e = t, n = dt(), { copy: o, isSupported: s } = wo(), l = I(!1), i = E(() => Rt(e.data.value)), u = E(() => i.value.value), d = E(() => i.value.customType), m = E(() => u.value === null ? "null" : typeof u.value), v = {
|
|
783
783
|
flat: !0,
|
|
784
784
|
size: "mini"
|
|
785
|
-
}, a =
|
|
785
|
+
}, a = E(() => ({
|
|
786
786
|
"opacity-0": !e.hovering
|
|
787
787
|
}));
|
|
788
|
-
async function f(y,
|
|
788
|
+
async function f(y, g = !1) {
|
|
789
789
|
await A.value.editInspectorState({
|
|
790
790
|
path: e.data.path || [e.data.key],
|
|
791
791
|
inspectorId: n.value.inspectorId,
|
|
@@ -794,24 +794,24 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
794
794
|
state: {
|
|
795
795
|
newKey: null,
|
|
796
796
|
value: Nt(y),
|
|
797
|
-
type:
|
|
798
|
-
remove:
|
|
797
|
+
type: m.value,
|
|
798
|
+
remove: g
|
|
799
799
|
}
|
|
800
800
|
}), await A.value.sendInspectorState(n.value.inspectorId);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
const k = typeof y == "number" ? y +
|
|
802
|
+
function _(y, g) {
|
|
803
|
+
const k = typeof y == "number" ? y + g : BigInt(y) + BigInt(g);
|
|
804
804
|
f(k);
|
|
805
805
|
}
|
|
806
|
-
return (y,
|
|
806
|
+
return (y, g) => (p(), h("div", Do, [
|
|
807
807
|
!e.disableEdit && y.data.editable ? (p(), h(te, { key: 0 }, [
|
|
808
|
-
|
|
809
|
-
J((p(), z(c(de),
|
|
808
|
+
m.value === "string" || m.value === "number" || m.value === "object" || m.value === "null" ? (p(), h(te, { key: 0 }, [
|
|
809
|
+
J((p(), z(c(de), $e(v, {
|
|
810
810
|
class: a.value,
|
|
811
|
-
onClick:
|
|
811
|
+
onClick: g[0] || (g[0] = fe((k) => y.$emit("enableEditInput", m.value), ["stop"]))
|
|
812
812
|
}), {
|
|
813
813
|
icon: M(() => [
|
|
814
|
-
x(c(
|
|
814
|
+
x(c(oe), { icon: "i-material-symbols-edit-rounded" })
|
|
815
815
|
]),
|
|
816
816
|
_: 1
|
|
817
817
|
}, 16, ["class"])), [
|
|
@@ -819,12 +819,12 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
819
819
|
content: "Edit value"
|
|
820
820
|
}]
|
|
821
821
|
]),
|
|
822
|
-
|
|
822
|
+
m.value === "object" && y.showAddIfNeeded ? J((p(), z(c(de), $e({ key: 0 }, v, {
|
|
823
823
|
class: a.value,
|
|
824
|
-
onClick:
|
|
824
|
+
onClick: g[1] || (g[1] = fe((k) => y.$emit("addNewProp", Array.isArray(u.value) ? "array" : "object"), ["stop"]))
|
|
825
825
|
}), {
|
|
826
826
|
icon: M(() => [
|
|
827
|
-
x(c(
|
|
827
|
+
x(c(oe), { icon: "i-material-symbols-add-circle-rounded" })
|
|
828
828
|
]),
|
|
829
829
|
_: 1
|
|
830
830
|
}, 16, ["class"])), [
|
|
@@ -833,47 +833,47 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
833
833
|
}]
|
|
834
834
|
]) : U("", !0)
|
|
835
835
|
], 64)) : U("", !0),
|
|
836
|
-
|
|
836
|
+
m.value === "boolean" ? (p(), z(c(de), $e({ key: 1 }, v, {
|
|
837
837
|
class: a.value,
|
|
838
|
-
onClick:
|
|
838
|
+
onClick: g[2] || (g[2] = (k) => f(!u.value))
|
|
839
839
|
}), {
|
|
840
840
|
icon: M(() => [
|
|
841
|
-
x(c(
|
|
841
|
+
x(c(oe), {
|
|
842
842
|
icon: u.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
|
|
843
843
|
}, null, 8, ["icon"])
|
|
844
844
|
]),
|
|
845
845
|
_: 1
|
|
846
|
-
}, 16, ["class"])) :
|
|
847
|
-
x(c(de),
|
|
846
|
+
}, 16, ["class"])) : m.value === "number" || d.value === "bigint" ? (p(), h(te, { key: 2 }, [
|
|
847
|
+
x(c(de), $e(v, {
|
|
848
848
|
class: a.value,
|
|
849
|
-
onClick:
|
|
849
|
+
onClick: g[3] || (g[3] = fe((k) => _(u.value, 1), ["stop"]))
|
|
850
850
|
}), {
|
|
851
851
|
icon: M(() => [
|
|
852
|
-
x(c(
|
|
852
|
+
x(c(oe), { icon: "i-carbon-add" })
|
|
853
853
|
]),
|
|
854
854
|
_: 1
|
|
855
855
|
}, 16, ["class"]),
|
|
856
|
-
x(c(de),
|
|
856
|
+
x(c(de), $e(v, {
|
|
857
857
|
class: a.value,
|
|
858
|
-
onClick:
|
|
858
|
+
onClick: g[4] || (g[4] = fe((k) => _(u.value, -1), ["stop"]))
|
|
859
859
|
}), {
|
|
860
860
|
icon: M(() => [
|
|
861
|
-
x(c(
|
|
861
|
+
x(c(oe), { icon: "i-carbon-subtract" })
|
|
862
862
|
]),
|
|
863
863
|
_: 1
|
|
864
864
|
}, 16, ["class"])
|
|
865
865
|
], 64)) : U("", !0)
|
|
866
866
|
], 64)) : U("", !0),
|
|
867
|
-
!e.disableEdit && y.depth > 0 && y.data.editable ? (p(), z(c(de),
|
|
867
|
+
!e.disableEdit && y.depth > 0 && y.data.editable ? (p(), z(c(de), $e({ key: 1 }, v, {
|
|
868
868
|
class: a.value,
|
|
869
|
-
onClick:
|
|
869
|
+
onClick: g[5] || (g[5] = fe((k) => f(u.value, !0), ["stop"]))
|
|
870
870
|
}), {
|
|
871
871
|
icon: M(() => [
|
|
872
|
-
x(c(
|
|
872
|
+
x(c(oe), { icon: "i-material-symbols-delete-rounded" })
|
|
873
873
|
]),
|
|
874
874
|
_: 1
|
|
875
875
|
}, 16, ["class"])) : U("", !0),
|
|
876
|
-
x(c(
|
|
876
|
+
x(c(hn), {
|
|
877
877
|
class: ie({
|
|
878
878
|
"opacity-0": !y.hovering && !l.value
|
|
879
879
|
}),
|
|
@@ -882,15 +882,15 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
882
882
|
size: "mini"
|
|
883
883
|
},
|
|
884
884
|
disabled: !c(s),
|
|
885
|
-
"onUpdate:visible":
|
|
885
|
+
"onUpdate:visible": g[8] || (g[8] = (k) => l.value = k)
|
|
886
886
|
}, {
|
|
887
887
|
popper: M(() => [
|
|
888
|
-
|
|
888
|
+
r("div", Po, [
|
|
889
889
|
x(c(xt), {
|
|
890
|
-
onClick:
|
|
890
|
+
onClick: g[6] || (g[6] = (k) => c(o)(typeof u.value == "object" ? JSON.stringify(u.value) : u.value.toString()))
|
|
891
891
|
}, {
|
|
892
892
|
icon: M(() => [
|
|
893
|
-
x(c(
|
|
893
|
+
x(c(oe), {
|
|
894
894
|
icon: "i-material-symbols-copy-all-rounded",
|
|
895
895
|
class: "mt4px"
|
|
896
896
|
}),
|
|
@@ -899,12 +899,12 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
899
899
|
_: 1
|
|
900
900
|
}),
|
|
901
901
|
x(c(xt), {
|
|
902
|
-
onClick:
|
|
902
|
+
onClick: g[7] || (g[7] = () => {
|
|
903
903
|
c(o)(y.data.key);
|
|
904
904
|
})
|
|
905
905
|
}, {
|
|
906
906
|
icon: M(() => [
|
|
907
|
-
x(c(
|
|
907
|
+
x(c(oe), {
|
|
908
908
|
icon: "i-material-symbols-copy-all-rounded",
|
|
909
909
|
class: "mt4px"
|
|
910
910
|
}),
|
|
@@ -915,13 +915,13 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
915
915
|
])
|
|
916
916
|
]),
|
|
917
917
|
"button-icon": M(() => [
|
|
918
|
-
x(c(
|
|
918
|
+
x(c(oe), { icon: "i-material-symbols:more-vert" })
|
|
919
919
|
]),
|
|
920
920
|
_: 1
|
|
921
921
|
}, 8, ["class", "disabled"])
|
|
922
922
|
]));
|
|
923
923
|
}
|
|
924
|
-
}),
|
|
924
|
+
}), Ho = { class: "flex-inline items-center gap4px" }, Xe = /* @__PURE__ */ B({
|
|
925
925
|
__name: "StateFieldInputEditor",
|
|
926
926
|
props: {
|
|
927
927
|
modelValue: {},
|
|
@@ -931,11 +931,11 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
931
931
|
},
|
|
932
932
|
emits: ["cancel", "submit", "update:modelValue"],
|
|
933
933
|
setup(t, { emit: e }) {
|
|
934
|
-
const n = t, o = e, s =
|
|
934
|
+
const n = t, o = e, s = E(() => n.customType === "date" ? "datetime-local" : ""), { escape: l, enter: i } = To();
|
|
935
935
|
nt(() => {
|
|
936
|
-
l.value ? o("cancel") :
|
|
936
|
+
l.value ? o("cancel") : i.value && o("submit");
|
|
937
937
|
});
|
|
938
|
-
const u =
|
|
938
|
+
const u = Eo(n, "modelValue", o);
|
|
939
939
|
function d(a) {
|
|
940
940
|
try {
|
|
941
941
|
return ze(a, n.customType), !0;
|
|
@@ -943,15 +943,15 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
943
943
|
return !1;
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
|
-
const
|
|
947
|
-
return X(u,
|
|
948
|
-
|
|
949
|
-
}, 300)), (a, f) => (p(), h("span",
|
|
950
|
-
x(c(
|
|
946
|
+
const m = I(!1);
|
|
947
|
+
return X(u, yn(() => {
|
|
948
|
+
m.value = !d(u.value);
|
|
949
|
+
}, 300)), (a, f) => (p(), h("span", Ho, [
|
|
950
|
+
x(c(Fe), {
|
|
951
951
|
modelValue: c(u),
|
|
952
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
952
|
+
"onUpdate:modelValue": f[0] || (f[0] = (_) => Ke(u) ? u.value = _ : null),
|
|
953
953
|
type: s.value,
|
|
954
|
-
variant:
|
|
954
|
+
variant: m.value ? "warning" : "normal",
|
|
955
955
|
class: ie(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
|
|
956
956
|
"auto-focus": a.autoFocus,
|
|
957
957
|
onClick: f[1] || (f[1] = fe(() => {
|
|
@@ -962,10 +962,10 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
962
962
|
size: "mini",
|
|
963
963
|
flat: "",
|
|
964
964
|
class: "p2px!",
|
|
965
|
-
onClick: f[2] || (f[2] = fe((
|
|
965
|
+
onClick: f[2] || (f[2] = fe((_) => a.$emit("cancel"), ["stop"]))
|
|
966
966
|
}, {
|
|
967
967
|
icon: M(() => [
|
|
968
|
-
x(c(
|
|
968
|
+
x(c(oe), { icon: "i-material-symbols-cancel" })
|
|
969
969
|
]),
|
|
970
970
|
_: 1
|
|
971
971
|
})), [
|
|
@@ -973,7 +973,7 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
973
973
|
content: "Esc to cancel"
|
|
974
974
|
}]
|
|
975
975
|
]),
|
|
976
|
-
|
|
976
|
+
m.value ? J((p(), z(c(oe), {
|
|
977
977
|
key: 1,
|
|
978
978
|
icon: "i-material-symbols-warning",
|
|
979
979
|
class: "color-warning-500 dark:color-warning-300"
|
|
@@ -986,10 +986,10 @@ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__P
|
|
|
986
986
|
size: "mini",
|
|
987
987
|
flat: "",
|
|
988
988
|
class: "p2px!",
|
|
989
|
-
onClick: f[3] || (f[3] = fe((
|
|
989
|
+
onClick: f[3] || (f[3] = fe((_) => a.$emit("submit"), ["stop"]))
|
|
990
990
|
}, {
|
|
991
991
|
icon: M(() => [
|
|
992
|
-
x(c(
|
|
992
|
+
x(c(oe), { icon: "i-material-symbols-save" })
|
|
993
993
|
]),
|
|
994
994
|
_: 1
|
|
995
995
|
})), [
|
|
@@ -1030,7 +1030,7 @@ function ft(t = "") {
|
|
|
1030
1030
|
toggleExpanded: n
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Lo(t, e = {}) {
|
|
1034
1034
|
const {
|
|
1035
1035
|
enter: n = () => {
|
|
1036
1036
|
},
|
|
@@ -1046,18 +1046,18 @@ function jo(t, e = {}) {
|
|
|
1046
1046
|
isHovering: l
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const Ot = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
1050
1050
|
key: 1,
|
|
1051
1051
|
pl5: ""
|
|
1052
|
-
},
|
|
1052
|
+
}, jo = {
|
|
1053
1053
|
op70: "",
|
|
1054
1054
|
class: "whitespace-nowrap"
|
|
1055
|
-
},
|
|
1055
|
+
}, Uo = /* @__PURE__ */ Ot(() => /* @__PURE__ */ r("span", { mx1: "" }, ":", -1)), zo = ["innerHTML"], Bo = { key: 0 }, Zo = {
|
|
1056
1056
|
"overflow-hidden": "",
|
|
1057
1057
|
"text-ellipsis": "",
|
|
1058
1058
|
"whitespace-nowrap": "",
|
|
1059
1059
|
"state-key": ""
|
|
1060
|
-
},
|
|
1060
|
+
}, Fo = /* @__PURE__ */ Ot(() => /* @__PURE__ */ r("span", { "mx-1": "" }, ":", -1)), St = 30, Go = /* @__PURE__ */ B({
|
|
1061
1061
|
__name: "StateFieldViewer",
|
|
1062
1062
|
props: {
|
|
1063
1063
|
data: {},
|
|
@@ -1066,78 +1066,78 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1066
1066
|
expandedStateId: {}
|
|
1067
1067
|
},
|
|
1068
1068
|
setup(t) {
|
|
1069
|
-
const e = t, n = I(St), o =
|
|
1069
|
+
const e = t, n = I(St), o = E(() => rn(e.data.value, !1, {
|
|
1070
1070
|
customClass: {
|
|
1071
1071
|
string: "max-w-120 truncate"
|
|
1072
1072
|
}
|
|
1073
|
-
})), s =
|
|
1074
|
-
var
|
|
1075
|
-
return s.value === "custom" ? `${((
|
|
1076
|
-
}),
|
|
1077
|
-
const { value:
|
|
1078
|
-
return bt(
|
|
1079
|
-
}), v =
|
|
1073
|
+
})), s = E(() => Ct(e.data.value)), l = E(() => Rt(e.data.value)), { expanded: i, toggleExpanded: u } = ft(e.expandedStateId ?? ""), d = E(() => {
|
|
1074
|
+
var C;
|
|
1075
|
+
return s.value === "custom" ? `${((C = e.data.value._custom) == null ? void 0 : C.type) ?? "string"}-custom-state` : "";
|
|
1076
|
+
}), m = E(() => {
|
|
1077
|
+
const { value: C } = l.value;
|
|
1078
|
+
return bt(C) ? C.length : wt(C) ? Object.keys(C).length : 0;
|
|
1079
|
+
}), v = E(() => e.data.path || [e.data.key]), a = E(() => v.value[v.value.length - 1]), f = E(() => {
|
|
1080
1080
|
var F, se, re, ce, ge, Ce, Le;
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1081
|
+
const C = ["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 (C.includes(D))
|
|
1083
1083
|
return D;
|
|
1084
1084
|
if ((ge = (ce = e.data.value) == null ? void 0 : ce.fields) != null && ge.abstract)
|
|
1085
1085
|
return "";
|
|
1086
1086
|
{
|
|
1087
|
-
const
|
|
1087
|
+
const Oe = (Le = (Ce = e.data.value) == null ? void 0 : Ce._custom) == null ? void 0 : Le.type, je = s.value === "custom" && !Oe ? `"${o.value}"` : o.value === "" ? '""' : o.value, Ue = s.value === "custom" && Oe === "ref" ? Ct(je) : s.value, qe = s.value === "string" ? "select-text" : "", Ee = `<span class="${Ue}-state-type flex whitespace-nowrap ${qe}">${je}</span>`;
|
|
1088
1088
|
return D ? `${Ee} <span class="text-gray-500">(${D})</span>` : Ee;
|
|
1089
1089
|
}
|
|
1090
|
-
}),
|
|
1091
|
-
const { value:
|
|
1090
|
+
}), _ = E(() => {
|
|
1091
|
+
const { value: C, inherit: D, customType: F } = l.value, se = F === "set";
|
|
1092
1092
|
let re = [];
|
|
1093
|
-
return bt(
|
|
1093
|
+
return bt(C) ? C.slice(0, n.value).map((ge, Ce) => ({
|
|
1094
1094
|
key: Ce.toString(),
|
|
1095
1095
|
path: [...v.value, Ce.toString()],
|
|
1096
1096
|
value: ge,
|
|
1097
1097
|
...D,
|
|
1098
1098
|
editable: e.data.editable && !se,
|
|
1099
1099
|
creating: !1
|
|
1100
|
-
})) : (
|
|
1100
|
+
})) : (wt(C) && (re = Object.keys(C).slice(0, n.value).map((ce) => ({
|
|
1101
1101
|
key: ce,
|
|
1102
1102
|
path: [...v.value, ce],
|
|
1103
|
-
value:
|
|
1103
|
+
value: C[ce],
|
|
1104
1104
|
...D,
|
|
1105
1105
|
editable: e.data.editable && !se,
|
|
1106
1106
|
creating: !1
|
|
1107
1107
|
})), s.value !== "custom" && (re = At(re))), re === e.data.value ? [] : re);
|
|
1108
|
-
}), y =
|
|
1109
|
-
X(() => N.value, (
|
|
1110
|
-
if (
|
|
1108
|
+
}), y = E(() => _.value.length > 0), g = I(), k = dt(), { isHovering: j } = Lo(() => g.value), { editingType: O, editing: N, editingText: w, toggleEditing: R, nodeId: H } = No();
|
|
1109
|
+
X(() => N.value, (C) => {
|
|
1110
|
+
if (C) {
|
|
1111
1111
|
const { value: D } = l.value;
|
|
1112
|
-
|
|
1112
|
+
w.value = un(D, l.value.customType);
|
|
1113
1113
|
} else
|
|
1114
|
-
|
|
1114
|
+
w.value = "";
|
|
1115
1115
|
});
|
|
1116
1116
|
async function K() {
|
|
1117
|
-
const
|
|
1117
|
+
const C = e.data;
|
|
1118
1118
|
await A.value.editInspectorState({
|
|
1119
1119
|
path: v.value,
|
|
1120
1120
|
inspectorId: k.value.inspectorId,
|
|
1121
|
-
type:
|
|
1121
|
+
type: C.stateType,
|
|
1122
1122
|
nodeId: H.value,
|
|
1123
1123
|
state: {
|
|
1124
1124
|
newKey: null,
|
|
1125
|
-
type:
|
|
1126
|
-
value: ze(
|
|
1125
|
+
type: O.value,
|
|
1126
|
+
value: ze(w.value, l.value.customType)
|
|
1127
1127
|
}
|
|
1128
1128
|
}), await A.value.sendInspectorState(k.value.inspectorId), R();
|
|
1129
1129
|
}
|
|
1130
|
-
const { addNewProp: Z, draftingNewProp: T, resetDrafting: P } =
|
|
1131
|
-
function b(
|
|
1130
|
+
const { addNewProp: Z, draftingNewProp: T, resetDrafting: P } = Ao();
|
|
1131
|
+
function b(C) {
|
|
1132
1132
|
const D = `${e.depth}-${e.index}`;
|
|
1133
|
-
|
|
1133
|
+
i.value.includes(D) || u(D), Z(C, l.value.value);
|
|
1134
1134
|
}
|
|
1135
1135
|
async function S() {
|
|
1136
|
-
const
|
|
1136
|
+
const C = e.data;
|
|
1137
1137
|
await A.value.editInspectorState({
|
|
1138
1138
|
path: [...v.value, T.value.key],
|
|
1139
1139
|
inspectorId: k.value.inspectorId,
|
|
1140
|
-
type:
|
|
1140
|
+
type: C.stateType,
|
|
1141
1141
|
nodeId: H.value,
|
|
1142
1142
|
state: {
|
|
1143
1143
|
newKey: T.value.key,
|
|
@@ -1146,53 +1146,53 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
}), await A.value.sendInspectorState(k.value.inspectorId), P();
|
|
1148
1148
|
}
|
|
1149
|
-
return (
|
|
1150
|
-
|
|
1149
|
+
return (C, D) => (p(), h("div", null, [
|
|
1150
|
+
r("div", {
|
|
1151
1151
|
ref_key: "containerRef",
|
|
1152
|
-
ref:
|
|
1152
|
+
ref: g,
|
|
1153
1153
|
class: ie(["font-state-field flex items-center text-3.5", [y.value && "cursor-pointer hover:bg-active"]]),
|
|
1154
|
-
style:
|
|
1155
|
-
onClick: D[1] || (D[1] = (F) => c(u)(`${
|
|
1154
|
+
style: ke({ paddingLeft: `${C.depth * 15 + 4}px` }),
|
|
1155
|
+
onClick: D[1] || (D[1] = (F) => c(u)(`${C.depth}-${C.index}`))
|
|
1156
1156
|
}, [
|
|
1157
1157
|
y.value ? (p(), z(pt, {
|
|
1158
1158
|
key: 0,
|
|
1159
|
-
value: c(
|
|
1159
|
+
value: c(i).includes(`${C.depth}-${C.index}`)
|
|
1160
1160
|
}, null, 8, ["value"])) : (p(), h("span", Oo)),
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
c(N) ? (p(), z(
|
|
1161
|
+
r("span", jo, le(a.value), 1),
|
|
1162
|
+
Uo,
|
|
1163
|
+
c(N) ? (p(), z(Xe, {
|
|
1164
1164
|
key: 2,
|
|
1165
|
-
modelValue: c(
|
|
1166
|
-
"onUpdate:modelValue": D[0] || (D[0] = (F) =>
|
|
1165
|
+
modelValue: c(w),
|
|
1166
|
+
"onUpdate:modelValue": D[0] || (D[0] = (F) => Ke(w) ? w.value = F : null),
|
|
1167
1167
|
class: "mr-1",
|
|
1168
1168
|
"custom-type": l.value.customType,
|
|
1169
1169
|
onCancel: c(R),
|
|
1170
1170
|
onSubmit: K
|
|
1171
1171
|
}, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
|
|
1172
|
-
|
|
1172
|
+
r("span", {
|
|
1173
1173
|
class: ie([d.value, "flex whitespace-nowrap"])
|
|
1174
1174
|
}, [
|
|
1175
|
-
|
|
1175
|
+
r("span", {
|
|
1176
1176
|
class: "flex",
|
|
1177
1177
|
innerHTML: f.value
|
|
1178
|
-
}, null, 8,
|
|
1178
|
+
}, null, 8, zo)
|
|
1179
1179
|
], 2),
|
|
1180
|
-
x(
|
|
1181
|
-
hovering: c(
|
|
1180
|
+
x(Mo, {
|
|
1181
|
+
hovering: c(j),
|
|
1182
1182
|
"disable-edit": c(k).disableEdit || c(N),
|
|
1183
|
-
data:
|
|
1184
|
-
depth:
|
|
1183
|
+
data: C.data,
|
|
1184
|
+
depth: C.depth,
|
|
1185
1185
|
onEnableEditInput: c(R),
|
|
1186
1186
|
onAddNewProp: b
|
|
1187
1187
|
}, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
|
|
1188
1188
|
], 6),
|
|
1189
|
-
y.value && c(
|
|
1190
|
-
x(
|
|
1191
|
-
data:
|
|
1192
|
-
depth:
|
|
1193
|
-
index:
|
|
1189
|
+
y.value && c(i).includes(`${C.depth}-${C.index}`) ? (p(), h("div", Bo, [
|
|
1190
|
+
x(jt, {
|
|
1191
|
+
data: _.value,
|
|
1192
|
+
depth: C.depth,
|
|
1193
|
+
index: C.index
|
|
1194
1194
|
}, null, 8, ["data", "depth", "index"]),
|
|
1195
|
-
|
|
1195
|
+
m.value > n.value ? J((p(), z(c(de), {
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
flat: "",
|
|
1198
1198
|
size: "mini",
|
|
@@ -1200,7 +1200,7 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1200
1200
|
onClick: D[2] || (D[2] = (F) => n.value += St)
|
|
1201
1201
|
}, {
|
|
1202
1202
|
icon: M(() => [
|
|
1203
|
-
x(c(
|
|
1203
|
+
x(c(oe), { icon: "i-material-symbols-more-horiz" })
|
|
1204
1204
|
]),
|
|
1205
1205
|
_: 1
|
|
1206
1206
|
})), [
|
|
@@ -1208,17 +1208,17 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1208
1208
|
]) : U("", !0),
|
|
1209
1209
|
c(T).enable ? (p(), h("div", {
|
|
1210
1210
|
key: 1,
|
|
1211
|
-
style:
|
|
1211
|
+
style: ke({ paddingLeft: `${(C.depth + 1) * 15 + 4}px` })
|
|
1212
1212
|
}, [
|
|
1213
|
-
|
|
1214
|
-
x(
|
|
1213
|
+
r("span", Zo, [
|
|
1214
|
+
x(Xe, {
|
|
1215
1215
|
modelValue: c(T).key,
|
|
1216
1216
|
"onUpdate:modelValue": D[3] || (D[3] = (F) => c(T).key = F),
|
|
1217
1217
|
"show-actions": !1
|
|
1218
1218
|
}, null, 8, ["modelValue"])
|
|
1219
1219
|
]),
|
|
1220
|
-
|
|
1221
|
-
x(
|
|
1220
|
+
Fo,
|
|
1221
|
+
x(Xe, {
|
|
1222
1222
|
modelValue: c(T).value,
|
|
1223
1223
|
"onUpdate:modelValue": D[4] || (D[4] = (F) => c(T).value = F),
|
|
1224
1224
|
"auto-focus": !1,
|
|
@@ -1229,7 +1229,7 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1229
1229
|
])) : U("", !0)
|
|
1230
1230
|
]));
|
|
1231
1231
|
}
|
|
1232
|
-
}),
|
|
1232
|
+
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-e1338684"]]), jt = /* @__PURE__ */ B({
|
|
1233
1233
|
__name: "ChildStateViewer",
|
|
1234
1234
|
props: {
|
|
1235
1235
|
data: {},
|
|
@@ -1240,7 +1240,7 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1240
1240
|
setup(t) {
|
|
1241
1241
|
return (e, n) => (p(), h("div", null, [
|
|
1242
1242
|
(p(!0), h(te, null, ae(e.data, (o, s) => (p(), h("div", { key: s }, [
|
|
1243
|
-
x(
|
|
1243
|
+
x(Ko, {
|
|
1244
1244
|
data: o,
|
|
1245
1245
|
depth: e.depth + 1,
|
|
1246
1246
|
index: `${e.index}-${s}`,
|
|
@@ -1249,13 +1249,13 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1249
1249
|
]))), 128))
|
|
1250
1250
|
]));
|
|
1251
1251
|
}
|
|
1252
|
-
}),
|
|
1252
|
+
}), Wo = ["onClick"], qo = {
|
|
1253
1253
|
key: 1,
|
|
1254
1254
|
pl5: ""
|
|
1255
|
-
},
|
|
1255
|
+
}, Jo = {
|
|
1256
1256
|
"font-state-field": "",
|
|
1257
1257
|
"text-3.5": ""
|
|
1258
|
-
},
|
|
1258
|
+
}, Yo = { key: 0 }, Pe = /* @__PURE__ */ B({
|
|
1259
1259
|
__name: "RootStateViewer",
|
|
1260
1260
|
props: {
|
|
1261
1261
|
data: {},
|
|
@@ -1273,39 +1273,39 @@ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
|
|
|
1273
1273
|
disableEdit: e.disableEdit
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
|
-
const { context: o } =
|
|
1276
|
+
const { context: o } = Vo(n());
|
|
1277
1277
|
nt(() => {
|
|
1278
1278
|
o.value = n();
|
|
1279
1279
|
});
|
|
1280
1280
|
const { expanded: s, toggleExpanded: l } = ft(e.expandedStateId);
|
|
1281
|
-
return (
|
|
1282
|
-
(p(!0), h(te, null, ae(
|
|
1283
|
-
|
|
1281
|
+
return (i, u) => (p(), h("div", null, [
|
|
1282
|
+
(p(!0), h(te, null, ae(i.data, (d, m, v) => (p(), h("div", { key: v }, [
|
|
1283
|
+
r("div", {
|
|
1284
1284
|
class: ie(["flex items-center", [(d == null ? void 0 : d.length) && "cursor-pointer hover:bg-active"]]),
|
|
1285
1285
|
onClick: (a) => c(l)(`${v}`)
|
|
1286
1286
|
}, [
|
|
1287
1287
|
d != null && d.length ? (p(), z(pt, {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
value: c(s).includes(`${v}`)
|
|
1290
|
-
}, null, 8, ["value"])) : (p(), h("span",
|
|
1291
|
-
|
|
1292
|
-
], 10,
|
|
1293
|
-
d != null && d.length && c(s).includes(`${v}`) ? (p(), h("div",
|
|
1294
|
-
x(
|
|
1290
|
+
}, null, 8, ["value"])) : (p(), h("span", qo)),
|
|
1291
|
+
r("span", Jo, le(m), 1)
|
|
1292
|
+
], 10, Wo),
|
|
1293
|
+
d != null && d.length && c(s).includes(`${v}`) ? (p(), h("div", Yo, [
|
|
1294
|
+
x(jt, {
|
|
1295
1295
|
data: d,
|
|
1296
1296
|
index: `${v}`,
|
|
1297
|
-
"expanded-state-id":
|
|
1297
|
+
"expanded-state-id": i.expandedStateId
|
|
1298
1298
|
}, null, 8, ["data", "index", "expanded-state-id"])
|
|
1299
1299
|
])) : U("", !0)
|
|
1300
1300
|
]))), 128))
|
|
1301
1301
|
]));
|
|
1302
1302
|
}
|
|
1303
1303
|
});
|
|
1304
|
-
function
|
|
1304
|
+
function Xo(t, e) {
|
|
1305
1305
|
const n = new Date(t);
|
|
1306
1306
|
return `${n.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(n.getMilliseconds()).padStart(3, "0")}` : ""}`;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Qo(t, e) {
|
|
1309
1309
|
const n = /* @__PURE__ */ new Map(), o = zt(t, e.toLowerCase(), n, 0);
|
|
1310
1310
|
return n.clear(), o;
|
|
1311
1311
|
}
|
|
@@ -1315,26 +1315,26 @@ function zt(t, e, n, o) {
|
|
|
1315
1315
|
return !1;
|
|
1316
1316
|
let s = !1;
|
|
1317
1317
|
const l = Object.keys(t);
|
|
1318
|
-
let
|
|
1319
|
-
for (let d = 0; d < l.length && (
|
|
1318
|
+
let i, u;
|
|
1319
|
+
for (let d = 0; d < l.length && (i = l[d], u = t[i], s = Bt(e, i, u, n, o + 1), !s); d++)
|
|
1320
1320
|
;
|
|
1321
1321
|
return s;
|
|
1322
1322
|
}
|
|
1323
1323
|
function Bt(t, e, n, o, s) {
|
|
1324
|
-
let l = !1,
|
|
1325
|
-
return e === "_custom" && (e = n.display, n = n.value), (
|
|
1324
|
+
let l = !1, i;
|
|
1325
|
+
return e === "_custom" && (e = n.display, n = n.value), (i = e1(n)) && (n = i), 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 = t1(n, t, o, s), o.set(n, l)) : cn(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;
|
|
1326
1326
|
}
|
|
1327
1327
|
function Tt(t, e) {
|
|
1328
1328
|
return `${t}`.toLowerCase().includes(e);
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return t === null ? "null" : t ===
|
|
1330
|
+
function e1(t) {
|
|
1331
|
+
return t === null ? "null" : t === dn ? "undefined" : t === pn ? "NaN" : t === fn ? "Infinity" : t === vn ? "-Infinity" : !1;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function t1(t, e, n, o) {
|
|
1334
1334
|
if (o > Ut)
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
let s = !1, l;
|
|
1337
|
-
for (let
|
|
1337
|
+
for (let i = 0; i < t.length && (l = t[i], s = Bt(e, null, l, n, o + 1), !s); i++)
|
|
1338
1338
|
;
|
|
1339
1339
|
return s;
|
|
1340
1340
|
}
|
|
@@ -1348,13 +1348,13 @@ const Zt = /* @__PURE__ */ B({
|
|
|
1348
1348
|
},
|
|
1349
1349
|
setup(t) {
|
|
1350
1350
|
return (e, n) => J((p(), h("span", {
|
|
1351
|
-
style:
|
|
1351
|
+
style: ke({
|
|
1352
1352
|
color: `#${c(Et)(e.tag.textColor)}`,
|
|
1353
1353
|
backgroundColor: `#${c(Et)(e.tag.backgroundColor)}`
|
|
1354
1354
|
}),
|
|
1355
1355
|
class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
|
|
1356
1356
|
}, [
|
|
1357
|
-
ne(
|
|
1357
|
+
ne(le(e.tag.label), 1)
|
|
1358
1358
|
], 4)), [
|
|
1359
1359
|
[c(Q), {
|
|
1360
1360
|
content: e.tag.tooltip,
|
|
@@ -1363,13 +1363,13 @@ const Zt = /* @__PURE__ */ B({
|
|
|
1363
1363
|
]);
|
|
1364
1364
|
}
|
|
1365
1365
|
}), Ft = Symbol("SelectedSymbolKey");
|
|
1366
|
-
function
|
|
1366
|
+
function n1() {
|
|
1367
1367
|
const t = I("");
|
|
1368
1368
|
return _e(Ft, t), {
|
|
1369
1369
|
selected: t
|
|
1370
1370
|
};
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function o1() {
|
|
1373
1373
|
const t = ve(Ft, I(""));
|
|
1374
1374
|
function e(n) {
|
|
1375
1375
|
t.value = n;
|
|
@@ -1379,22 +1379,22 @@ function l1() {
|
|
|
1379
1379
|
select: e
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
|
-
const
|
|
1382
|
+
const l1 = ["onClick", "onDblclick"], s1 = {
|
|
1383
1383
|
key: 1,
|
|
1384
1384
|
pl5: ""
|
|
1385
|
-
},
|
|
1385
|
+
}, a1 = {
|
|
1386
1386
|
"font-state-field": "",
|
|
1387
1387
|
"text-3.5": ""
|
|
1388
|
-
},
|
|
1388
|
+
}, i1 = {
|
|
1389
1389
|
key: 0,
|
|
1390
1390
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1391
|
-
},
|
|
1391
|
+
}, r1 = {
|
|
1392
1392
|
"group-hover:text-white": "",
|
|
1393
1393
|
class: "ws-nowrap [.active_&]:text-white"
|
|
1394
|
-
},
|
|
1394
|
+
}, u1 = {
|
|
1395
1395
|
key: 1,
|
|
1396
1396
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1397
|
-
},
|
|
1397
|
+
}, c1 = { key: 0 }, Me = /* @__PURE__ */ B({
|
|
1398
1398
|
__name: "TreeViewer",
|
|
1399
1399
|
props: /* @__PURE__ */ Ze({
|
|
1400
1400
|
data: {},
|
|
@@ -1407,24 +1407,24 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1407
1407
|
emits: ["update:modelValue"],
|
|
1408
1408
|
setup(t) {
|
|
1409
1409
|
const e = st(t, "modelValue"), { expanded: n, toggleExpanded: o } = ft();
|
|
1410
|
-
|
|
1411
|
-
function s(
|
|
1412
|
-
return "name" in
|
|
1410
|
+
o1();
|
|
1411
|
+
function s(i) {
|
|
1412
|
+
return "name" in i && (i == null ? void 0 : i.name) || "label" in i && i.label;
|
|
1413
1413
|
}
|
|
1414
|
-
function l(
|
|
1415
|
-
e.value =
|
|
1414
|
+
function l(i) {
|
|
1415
|
+
e.value = i;
|
|
1416
1416
|
}
|
|
1417
|
-
return (
|
|
1417
|
+
return (i, u) => (p(!0), h(te, null, ae(i.data, (d, m) => {
|
|
1418
1418
|
var v, a;
|
|
1419
1419
|
return p(), h("div", {
|
|
1420
|
-
key:
|
|
1420
|
+
key: m,
|
|
1421
1421
|
class: ie({
|
|
1422
|
-
"min-w-max":
|
|
1422
|
+
"min-w-max": i.depth === 0
|
|
1423
1423
|
})
|
|
1424
1424
|
}, [
|
|
1425
|
-
|
|
1425
|
+
r("div", {
|
|
1426
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:
|
|
1427
|
+
style: ke({ paddingLeft: `${15 * i.depth + 4}px` }),
|
|
1428
1428
|
onClick: (f) => l(d.id),
|
|
1429
1429
|
onDblclick: (f) => c(o)(d.id)
|
|
1430
1430
|
}, [
|
|
@@ -1433,54 +1433,54 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1433
1433
|
value: c(n).includes(d.id),
|
|
1434
1434
|
class: "[.active_&]:op20 group-hover:op20",
|
|
1435
1435
|
onClick: fe((f) => c(o)(d.id), ["stop"])
|
|
1436
|
-
}, null, 8, ["value", "onClick"])) : (p(), h("span",
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1436
|
+
}, null, 8, ["value", "onClick"])) : (p(), h("span", s1)),
|
|
1437
|
+
r("span", a1, [
|
|
1438
|
+
i.withTag ? (p(), h("span", i1, "<")) : U("", !0),
|
|
1439
|
+
r("span", r1, le(s(d)), 1),
|
|
1440
|
+
i.withTag ? (p(), h("span", u1, ">")) : U("", !0)
|
|
1441
1441
|
]),
|
|
1442
|
-
(p(!0), h(te, null, ae(d.tags, (f,
|
|
1443
|
-
key:
|
|
1442
|
+
(p(!0), h(te, null, ae(d.tags, (f, _) => (p(), z(Zt, {
|
|
1443
|
+
key: _,
|
|
1444
1444
|
tag: f
|
|
1445
1445
|
}, null, 8, ["tag"]))), 128))
|
|
1446
|
-
], 46,
|
|
1447
|
-
(a = d == null ? void 0 : d.children) != null && a.length && c(n).includes(d.id) ? (p(), h("div",
|
|
1446
|
+
], 46, l1),
|
|
1447
|
+
(a = d == null ? void 0 : d.children) != null && a.length && c(n).includes(d.id) ? (p(), h("div", c1, [
|
|
1448
1448
|
x(Me, {
|
|
1449
1449
|
modelValue: e.value,
|
|
1450
1450
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value = f),
|
|
1451
1451
|
data: d == null ? void 0 : d.children,
|
|
1452
|
-
depth:
|
|
1453
|
-
"with-tag":
|
|
1452
|
+
depth: i.depth + 1,
|
|
1453
|
+
"with-tag": i.withTag
|
|
1454
1454
|
}, null, 8, ["modelValue", "data", "depth", "with-tag"])
|
|
1455
1455
|
])) : U("", !0)
|
|
1456
1456
|
], 2);
|
|
1457
1457
|
}), 128));
|
|
1458
1458
|
}
|
|
1459
|
-
}),
|
|
1459
|
+
}), d1 = { class: "h-full flex flex-col" }, p1 = { class: "h-full flex flex-col p2" }, f1 = {
|
|
1460
1460
|
key: 0,
|
|
1461
1461
|
class: "mb-1 flex justify-end pb-1",
|
|
1462
1462
|
border: "b dashed base"
|
|
1463
|
-
},
|
|
1463
|
+
}, v1 = { class: "flex items-center gap-2 px-1" }, h1 = ["onClick"], m1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, _1 = { class: "h-full flex flex-col p2" }, g1 = {
|
|
1464
1464
|
key: 0,
|
|
1465
1465
|
class: "mb-1 flex justify-end pb-1",
|
|
1466
1466
|
border: "b dashed base"
|
|
1467
|
-
},
|
|
1467
|
+
}, C1 = { class: "flex items-center gap-2 px-1" }, x1 = ["onClick"], pe = "pinia", y1 = /* @__PURE__ */ B({
|
|
1468
1468
|
__name: "Index",
|
|
1469
1469
|
setup(t) {
|
|
1470
|
-
const { expanded: e } = he(), { expanded: n } = he("pinia-store-state"), o = I([]), s = I([]), l = I(""),
|
|
1470
|
+
const { expanded: e } = he(), { expanded: n } = he("pinia-store-state"), o = I([]), s = I([]), l = I(""), i = I([]), u = E(() => {
|
|
1471
1471
|
var T, P;
|
|
1472
|
-
return (T =
|
|
1473
|
-
}), d =
|
|
1472
|
+
return (T = i.value) != null && T.length ? f((P = i.value) == null ? void 0 : P[0]) : [];
|
|
1473
|
+
}), d = E(() => y(i.value)), m = E(() => d.value.map((T) => T.id)), v = I({}), a = E(() => {
|
|
1474
1474
|
var T, P;
|
|
1475
1475
|
return !((T = v.value.state) != null && T.length) && !((P = v.value.getters) != null && P.length);
|
|
1476
1476
|
});
|
|
1477
1477
|
function f(T, P = [], b = []) {
|
|
1478
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((
|
|
1480
|
-
f(
|
|
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((C) => {
|
|
1480
|
+
f(C, P, b);
|
|
1481
1481
|
}), P.pop(), b;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function _(T, P) {
|
|
1484
1484
|
const b = [];
|
|
1485
1485
|
return T == null || T.forEach((S) => {
|
|
1486
1486
|
b.push(...S.slice(0, P + 1));
|
|
@@ -1488,14 +1488,14 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
function y(T) {
|
|
1490
1490
|
const P = [], b = (S) => {
|
|
1491
|
-
S == null || S.forEach((
|
|
1491
|
+
S == null || S.forEach((C) => {
|
|
1492
1492
|
var D;
|
|
1493
|
-
P.push(
|
|
1493
|
+
P.push(C), (D = C.children) != null && D.length && b(C.children);
|
|
1494
1494
|
});
|
|
1495
1495
|
};
|
|
1496
1496
|
return b(T), P;
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function g() {
|
|
1499
1499
|
A.value.getInspectorNodeActions(pe).then((T) => {
|
|
1500
1500
|
o.value = T;
|
|
1501
1501
|
});
|
|
@@ -1505,11 +1505,11 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1505
1505
|
s.value = T;
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
|
-
|
|
1509
|
-
function
|
|
1508
|
+
g(), k();
|
|
1509
|
+
function j(T) {
|
|
1510
1510
|
A.value.callInspectorNodeAction(pe, T, l.value);
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function O(T) {
|
|
1513
1513
|
A.value.callInspectorAction(pe, T);
|
|
1514
1514
|
}
|
|
1515
1515
|
function N(T) {
|
|
@@ -1518,26 +1518,26 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1518
1518
|
(P = T[b]) != null && P.length || delete T[b];
|
|
1519
1519
|
return T;
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function w(T) {
|
|
1522
1522
|
A.value.getInspectorState({ inspectorId: pe, nodeId: T }).then((P) => {
|
|
1523
1523
|
const b = Y(P);
|
|
1524
|
-
b && (v.value = N(b), n.value = Array.from({ length: Object.keys(v.value).length }, (S,
|
|
1524
|
+
b && (v.value = N(b), n.value = Array.from({ length: Object.keys(v.value).length }, (S, C) => `${C}`));
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
1527
|
function R() {
|
|
1528
1528
|
v.value = {};
|
|
1529
1529
|
}
|
|
1530
1530
|
X(l, () => {
|
|
1531
|
-
R(),
|
|
1531
|
+
R(), w(l.value);
|
|
1532
1532
|
}), (() => {
|
|
1533
1533
|
A.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((T) => {
|
|
1534
1534
|
const P = Y(T);
|
|
1535
|
-
|
|
1535
|
+
i.value = P, !l.value && P.length && (l.value = P[0].id, w(P[0].id), e.value = _(u.value, 1));
|
|
1536
1536
|
});
|
|
1537
1537
|
})();
|
|
1538
1538
|
function K(T) {
|
|
1539
1539
|
const P = Y(T);
|
|
1540
|
-
P.inspectorId !== pe || !P.rootNodes.length || (
|
|
1540
|
+
P.inspectorId !== pe || !P.rootNodes.length || (i.value = P.rootNodes, m.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = _(u.value, 1), w(P.rootNodes[0].id)));
|
|
1541
1541
|
}
|
|
1542
1542
|
function Z(T) {
|
|
1543
1543
|
const P = Y(T);
|
|
@@ -1551,13 +1551,13 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
return A.functions.on(W.INSPECTOR_TREE_UPDATED, K), A.functions.on(W.INSPECTOR_STATE_UPDATED, Z), ye(() => {
|
|
1553
1553
|
A.functions.off(W.INSPECTOR_TREE_UPDATED, K), A.functions.off(W.INSPECTOR_STATE_UPDATED, Z);
|
|
1554
|
-
}), (T, P) => (p(), h("div",
|
|
1555
|
-
x(
|
|
1554
|
+
}), (T, P) => (p(), h("div", d1, [
|
|
1555
|
+
x(Se, {
|
|
1556
1556
|
"doc-link": "https://pinia.vuejs.org/",
|
|
1557
1557
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
1558
1558
|
}, {
|
|
1559
1559
|
default: M(() => [
|
|
1560
|
-
x(
|
|
1560
|
+
x(Ie)
|
|
1561
1561
|
]),
|
|
1562
1562
|
_: 1
|
|
1563
1563
|
}),
|
|
@@ -1571,22 +1571,22 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1571
1571
|
default: M(() => {
|
|
1572
1572
|
var b;
|
|
1573
1573
|
return [
|
|
1574
|
-
|
|
1575
|
-
(b = s.value) != null && b.length ? (p(), h("div",
|
|
1576
|
-
|
|
1577
|
-
(p(!0), h(te, null, ae(s.value, (S,
|
|
1578
|
-
key:
|
|
1574
|
+
r("div", p1, [
|
|
1575
|
+
(b = s.value) != null && b.length ? (p(), h("div", f1, [
|
|
1576
|
+
r("div", v1, [
|
|
1577
|
+
(p(!0), h(te, null, ae(s.value, (S, C) => J((p(), h("div", {
|
|
1578
|
+
key: C,
|
|
1579
1579
|
class: "flex items-center gap1",
|
|
1580
|
-
onClick: (D) =>
|
|
1580
|
+
onClick: (D) => O(C)
|
|
1581
1581
|
}, [
|
|
1582
|
-
|
|
1582
|
+
r("i", {
|
|
1583
1583
|
class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
|
|
1584
1584
|
"cursor-pointer": "",
|
|
1585
1585
|
op70: "",
|
|
1586
1586
|
"text-base": "",
|
|
1587
1587
|
"hover:op100": ""
|
|
1588
1588
|
}, null, 2)
|
|
1589
|
-
], 8,
|
|
1589
|
+
], 8, h1)), [
|
|
1590
1590
|
[
|
|
1591
1591
|
c(Q),
|
|
1592
1592
|
{ content: S.tooltip },
|
|
@@ -1596,11 +1596,11 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1596
1596
|
])), 128))
|
|
1597
1597
|
])
|
|
1598
1598
|
])) : U("", !0),
|
|
1599
|
-
|
|
1599
|
+
r("div", m1, [
|
|
1600
1600
|
x(Me, {
|
|
1601
1601
|
modelValue: l.value,
|
|
1602
1602
|
"onUpdate:modelValue": P[0] || (P[0] = (S) => l.value = S),
|
|
1603
|
-
data:
|
|
1603
|
+
data: i.value
|
|
1604
1604
|
}, null, 8, ["modelValue", "data"])
|
|
1605
1605
|
])
|
|
1606
1606
|
])
|
|
@@ -1612,22 +1612,22 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1612
1612
|
default: M(() => {
|
|
1613
1613
|
var b;
|
|
1614
1614
|
return [
|
|
1615
|
-
|
|
1616
|
-
(b = o.value) != null && b.length ? (p(), h("div",
|
|
1617
|
-
|
|
1618
|
-
(p(!0), h(te, null, ae(o.value, (S,
|
|
1619
|
-
key:
|
|
1615
|
+
r("div", _1, [
|
|
1616
|
+
(b = o.value) != null && b.length ? (p(), h("div", g1, [
|
|
1617
|
+
r("div", C1, [
|
|
1618
|
+
(p(!0), h(te, null, ae(o.value, (S, C) => J((p(), h("div", {
|
|
1619
|
+
key: C,
|
|
1620
1620
|
class: "flex items-center gap1",
|
|
1621
|
-
onClick: (D) =>
|
|
1621
|
+
onClick: (D) => j(C)
|
|
1622
1622
|
}, [
|
|
1623
|
-
|
|
1623
|
+
r("i", {
|
|
1624
1624
|
class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
|
|
1625
1625
|
"cursor-pointer": "",
|
|
1626
1626
|
op70: "",
|
|
1627
1627
|
"text-base": "",
|
|
1628
1628
|
"hover:op100": ""
|
|
1629
1629
|
}, null, 2)
|
|
1630
|
-
], 8,
|
|
1630
|
+
], 8, x1)), [
|
|
1631
1631
|
[
|
|
1632
1632
|
c(Q),
|
|
1633
1633
|
{ content: S.tooltip },
|
|
@@ -1660,20 +1660,20 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1660
1660
|
})
|
|
1661
1661
|
]));
|
|
1662
1662
|
}
|
|
1663
|
-
}),
|
|
1663
|
+
}), b1 = { class: "p3" }, w1 = ["onClick"], $1 = {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "absolute left-5px top-4.5 h10 w0 border-l-2",
|
|
1666
1666
|
border: "solid gray2"
|
|
1667
|
-
},
|
|
1667
|
+
}, k1 = { class: "h-full flex items-center truncate pl5" }, I1 = {
|
|
1668
1668
|
absolute: "",
|
|
1669
1669
|
"top-5": "",
|
|
1670
1670
|
pr2: "",
|
|
1671
1671
|
"text-3": "",
|
|
1672
1672
|
op40: ""
|
|
1673
|
-
},
|
|
1673
|
+
}, S1 = {
|
|
1674
1674
|
pl2: "",
|
|
1675
1675
|
op30: ""
|
|
1676
|
-
},
|
|
1676
|
+
}, T1 = /* @__PURE__ */ B({
|
|
1677
1677
|
__name: "EventList",
|
|
1678
1678
|
props: /* @__PURE__ */ Ze({
|
|
1679
1679
|
data: {}
|
|
@@ -1683,17 +1683,17 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1683
1683
|
}),
|
|
1684
1684
|
emits: ["update:modelValue"],
|
|
1685
1685
|
setup(t) {
|
|
1686
|
-
const e = t, n = st(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l =
|
|
1687
|
-
let
|
|
1688
|
-
return e.data.forEach((d,
|
|
1689
|
-
(d.groupId !== u ||
|
|
1686
|
+
const e = t, n = st(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l = E(() => {
|
|
1687
|
+
let i = -1, u = 0;
|
|
1688
|
+
return e.data.forEach((d, m) => {
|
|
1689
|
+
(d.groupId !== u || i === -1) && (i = (i + 1) % o.length), u = d.groupId ?? u, d.id = m, d.color = o[i];
|
|
1690
1690
|
}), e.data;
|
|
1691
1691
|
});
|
|
1692
|
-
return X(() => l.value.length, (
|
|
1692
|
+
return X(() => l.value.length, (i) => {
|
|
1693
1693
|
var u;
|
|
1694
|
-
(u = s.value) == null || u.scrollToItem(
|
|
1695
|
-
}, { flush: "post" }), (
|
|
1696
|
-
x(c(
|
|
1694
|
+
(u = s.value) == null || u.scrollToItem(i - 1);
|
|
1695
|
+
}, { flush: "post" }), (i, u) => (p(), h("div", b1, [
|
|
1696
|
+
x(c(bn), {
|
|
1697
1697
|
ref_key: "scrollerRef",
|
|
1698
1698
|
ref: s,
|
|
1699
1699
|
items: l.value,
|
|
@@ -1705,20 +1705,20 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1705
1705
|
buffer: 20
|
|
1706
1706
|
}, {
|
|
1707
1707
|
default: M(({ item: d }) => [
|
|
1708
|
-
|
|
1708
|
+
r("div", {
|
|
1709
1709
|
class: "relative mb7 h6 cursor-pointer",
|
|
1710
|
-
style:
|
|
1711
|
-
onClick: (
|
|
1710
|
+
style: ke({ color: n.value === d.id ? d.color : "" }),
|
|
1711
|
+
onClick: (m) => n.value = d.id
|
|
1712
1712
|
}, [
|
|
1713
|
-
|
|
1713
|
+
r("span", {
|
|
1714
1714
|
class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
|
|
1715
|
-
style:
|
|
1715
|
+
style: ke({ border: `3px solid ${d.color}` })
|
|
1716
1716
|
}, null, 4),
|
|
1717
|
-
d.id <
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
ne(" " +
|
|
1721
|
-
|
|
1717
|
+
d.id < i.data.length - 1 ? (p(), h("span", $1)) : U("", !0),
|
|
1718
|
+
r("p", k1, [
|
|
1719
|
+
r("span", I1, "[" + le(c(Xo)(d.time)) + "]", 1),
|
|
1720
|
+
ne(" " + le(d.title) + " ", 1),
|
|
1721
|
+
r("span", S1, le(d.subtitle), 1)
|
|
1722
1722
|
])
|
|
1723
1723
|
], 12, w1)
|
|
1724
1724
|
]),
|
|
@@ -1726,15 +1726,15 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1726
1726
|
}, 8, ["items"])
|
|
1727
1727
|
]));
|
|
1728
1728
|
}
|
|
1729
|
-
}),
|
|
1729
|
+
}), E1 = { class: "h-full flex flex-col" }, V1 = {
|
|
1730
1730
|
key: 0,
|
|
1731
1731
|
class: "flex-1 overflow-hidden"
|
|
1732
|
-
},
|
|
1732
|
+
}, N1 = {
|
|
1733
1733
|
"h-full": "",
|
|
1734
1734
|
"select-none": "",
|
|
1735
1735
|
"overflow-scroll": "",
|
|
1736
1736
|
class: "no-scrollbar"
|
|
1737
|
-
},
|
|
1737
|
+
}, R1 = {
|
|
1738
1738
|
"h-full": "",
|
|
1739
1739
|
"select-none": "",
|
|
1740
1740
|
"overflow-scroll": "",
|
|
@@ -1749,60 +1749,60 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1749
1749
|
setup(t) {
|
|
1750
1750
|
const e = t, { expanded: n } = he("timeline-state");
|
|
1751
1751
|
n.value = ["0", "1"];
|
|
1752
|
-
const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0),
|
|
1753
|
-
var
|
|
1752
|
+
const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0), i = E(() => o.value[l.value] ?? null), u = E(() => {
|
|
1753
|
+
var _;
|
|
1754
1754
|
const f = [];
|
|
1755
|
-
for (const y in (
|
|
1755
|
+
for (const y in (_ = i.value) == null ? void 0 : _.data)
|
|
1756
1756
|
f.push({
|
|
1757
1757
|
key: y,
|
|
1758
1758
|
type: y,
|
|
1759
1759
|
editable: !1,
|
|
1760
|
-
value:
|
|
1760
|
+
value: i.value.data[y]
|
|
1761
1761
|
});
|
|
1762
1762
|
return f;
|
|
1763
|
-
}), d =
|
|
1764
|
-
var y,
|
|
1765
|
-
const f = (y =
|
|
1766
|
-
if (
|
|
1767
|
-
const
|
|
1763
|
+
}), d = E(() => {
|
|
1764
|
+
var y, g, k;
|
|
1765
|
+
const f = (y = i.value) == null ? void 0 : y.groupId, _ = s.value.get(f);
|
|
1766
|
+
if (_) {
|
|
1767
|
+
const j = ((g = _[_.length - 1]) == null ? void 0 : g.time) - (((k = _[0]) == null ? void 0 : k.time) ?? 0);
|
|
1768
1768
|
return [{
|
|
1769
1769
|
key: "events",
|
|
1770
1770
|
type: "events",
|
|
1771
1771
|
editable: !1,
|
|
1772
|
-
value:
|
|
1773
|
-
},
|
|
1772
|
+
value: _.length
|
|
1773
|
+
}, j && {
|
|
1774
1774
|
key: "duration",
|
|
1775
1775
|
type: "duration",
|
|
1776
1776
|
editable: !1,
|
|
1777
|
-
value: `${
|
|
1777
|
+
value: `${j}ms`
|
|
1778
1778
|
}].filter(Boolean);
|
|
1779
1779
|
}
|
|
1780
|
-
}),
|
|
1780
|
+
}), m = E(() => ({ "Event Info": u.value, ...d.value && { "Group Info": d.value } }));
|
|
1781
1781
|
function v(f) {
|
|
1782
1782
|
var y;
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1783
|
+
const _ = f.groupId;
|
|
1784
|
+
_ !== void 0 && (s.value.set(_, s.value.get(_) ?? []), (y = s.value.get(_)) == null || y.push(f));
|
|
1785
1785
|
}
|
|
1786
1786
|
function a(f) {
|
|
1787
|
-
const
|
|
1788
|
-
if (!
|
|
1787
|
+
const _ = Y(f);
|
|
1788
|
+
if (!_)
|
|
1789
1789
|
return;
|
|
1790
|
-
const { layerId: y, event:
|
|
1791
|
-
e.layerIds.includes(y) && (o.value.push(
|
|
1790
|
+
const { layerId: y, event: g } = _;
|
|
1791
|
+
e.layerIds.includes(y) && (o.value.push(g), v(g));
|
|
1792
1792
|
}
|
|
1793
1793
|
return A.functions.on(W.TIMELINE_EVENT_UPDATED, a), ye(() => {
|
|
1794
1794
|
A.functions.off(W.TIMELINE_EVENT_UPDATED, a);
|
|
1795
|
-
}), (f,
|
|
1796
|
-
x(
|
|
1795
|
+
}), (f, _) => (p(), h("div", E1, [
|
|
1796
|
+
x(Se, {
|
|
1797
1797
|
"doc-link": f.docLink,
|
|
1798
1798
|
"github-repo-link": f.githubRepoLink
|
|
1799
1799
|
}, {
|
|
1800
1800
|
default: M(() => [
|
|
1801
|
-
x(
|
|
1801
|
+
x(Ie)
|
|
1802
1802
|
]),
|
|
1803
1803
|
_: 1
|
|
1804
1804
|
}, 8, ["doc-link", "github-repo-link"]),
|
|
1805
|
-
o.value.length ? (p(), h("div",
|
|
1805
|
+
o.value.length ? (p(), h("div", V1, [
|
|
1806
1806
|
x(c(Ae), { class: "h-full" }, {
|
|
1807
1807
|
default: M(() => [
|
|
1808
1808
|
x(c(ue), {
|
|
@@ -1811,10 +1811,10 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1811
1811
|
"h-full": ""
|
|
1812
1812
|
}, {
|
|
1813
1813
|
default: M(() => [
|
|
1814
|
-
|
|
1815
|
-
x(
|
|
1814
|
+
r("div", N1, [
|
|
1815
|
+
x(T1, {
|
|
1816
1816
|
modelValue: l.value,
|
|
1817
|
-
"onUpdate:modelValue":
|
|
1817
|
+
"onUpdate:modelValue": _[0] || (_[0] = (y) => l.value = y),
|
|
1818
1818
|
data: o.value
|
|
1819
1819
|
}, null, 8, ["modelValue", "data"])
|
|
1820
1820
|
])
|
|
@@ -1823,10 +1823,10 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1823
1823
|
}),
|
|
1824
1824
|
x(c(ue), { size: "60" }, {
|
|
1825
1825
|
default: M(() => [
|
|
1826
|
-
|
|
1826
|
+
r("div", R1, [
|
|
1827
1827
|
x(Pe, {
|
|
1828
1828
|
class: "p3",
|
|
1829
|
-
data:
|
|
1829
|
+
data: m.value,
|
|
1830
1830
|
"node-id": "",
|
|
1831
1831
|
"inspector-id": "",
|
|
1832
1832
|
"disable-edit": !0,
|
|
@@ -1850,7 +1850,7 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1850
1850
|
}))
|
|
1851
1851
|
]));
|
|
1852
1852
|
}
|
|
1853
|
-
}),
|
|
1853
|
+
}), A1 = /* @__PURE__ */ B({
|
|
1854
1854
|
__name: "Index",
|
|
1855
1855
|
setup(t) {
|
|
1856
1856
|
const e = ["pinia:mutations"];
|
|
@@ -1860,32 +1860,10 @@ const s1 = ["onClick", "onDblclick"], a1 = {
|
|
|
1860
1860
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
1861
1861
|
}));
|
|
1862
1862
|
}
|
|
1863
|
-
}),
|
|
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 = {
|
|
1863
|
+
}), D1 = { class: "flex-1 overflow-y-auto p2" }, P1 = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, M1 = { class: "w-4/5" }, H1 = {
|
|
1878
1864
|
key: 0,
|
|
1879
1865
|
class: "flex justify-start"
|
|
1880
|
-
},
|
|
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({
|
|
1866
|
+
}, L1 = { key: 1 }, Gt = /* @__PURE__ */ B({
|
|
1889
1867
|
__name: "Settings",
|
|
1890
1868
|
props: {
|
|
1891
1869
|
pluginId: {},
|
|
@@ -1894,110 +1872,98 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
1894
1872
|
},
|
|
1895
1873
|
emits: ["update"],
|
|
1896
1874
|
setup(t, { emit: e }) {
|
|
1897
|
-
const n = t, o = e;
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
A.value.updatePluginSettings(n.pluginId, u, d), A.value.getPluginSettings(n.pluginId).then((C) => {
|
|
1902
|
-
o("update", C);
|
|
1875
|
+
const n = t, o = e, s = E(() => n.options), l = E(() => n.values);
|
|
1876
|
+
function i(u, d) {
|
|
1877
|
+
A.value.updatePluginSettings(n.pluginId, u, d), A.value.getPluginSettings(n.pluginId).then((m) => {
|
|
1878
|
+
o("update", m);
|
|
1903
1879
|
});
|
|
1904
1880
|
}
|
|
1905
|
-
return (u, d) =>
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
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
|
-
};
|
|
1881
|
+
return (u, d) => (p(), h("div", D1, [
|
|
1882
|
+
r("ul", null, [
|
|
1883
|
+
(p(!0), h(te, null, ae(s.value, (m, v) => (p(), h("li", {
|
|
1884
|
+
key: v,
|
|
1885
|
+
class: "flex items-center py-2"
|
|
1886
|
+
}, [
|
|
1887
|
+
r("div", P1, le(m.label), 1),
|
|
1888
|
+
r("div", M1, [
|
|
1889
|
+
m.type === "boolean" ? (p(), h("div", H1, [
|
|
1890
|
+
x(c(mn), {
|
|
1891
|
+
"model-value": l.value[v],
|
|
1892
|
+
class: "row-reverse flex hover:bg-active py1 pl2 pr1",
|
|
1893
|
+
"onUpdate:modelValue": (a) => i(v, a)
|
|
1894
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
1895
|
+
])) : m.type === "choice" ? (p(), h("div", L1, [
|
|
1896
|
+
x(c(_n), {
|
|
1897
|
+
"model-value": l.value[v],
|
|
1898
|
+
options: m.options,
|
|
1899
|
+
"onUpdate:modelValue": (a) => i(v, a)
|
|
1900
|
+
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
1901
|
+
])) : m.type === "text" ? (p(), z(c(Fe), {
|
|
1902
|
+
key: 2,
|
|
1903
|
+
"model-value": l.value[v],
|
|
1904
|
+
"onUpdate:modelValue": (a) => i(v, a)
|
|
1905
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
|
|
1906
|
+
])
|
|
1907
|
+
]))), 128))
|
|
1908
|
+
])
|
|
1909
|
+
]));
|
|
1944
1910
|
}
|
|
1945
|
-
}),
|
|
1911
|
+
}), O1 = { class: "h-full flex flex-col" }, j1 = "pinia", U1 = /* @__PURE__ */ B({
|
|
1946
1912
|
__name: "Settings",
|
|
1947
1913
|
setup(t) {
|
|
1948
|
-
const e = ve("pluginSettings"), n =
|
|
1914
|
+
const e = ve("pluginSettings"), n = E(() => e.value.options), o = E(() => e.value.values);
|
|
1949
1915
|
function s(l) {
|
|
1950
1916
|
e.value = l;
|
|
1951
1917
|
}
|
|
1952
|
-
return (l,
|
|
1953
|
-
x(
|
|
1918
|
+
return (l, i) => (p(), h("div", O1, [
|
|
1919
|
+
x(Se, {
|
|
1954
1920
|
"doc-link": "https://pinia.vuejs.org/",
|
|
1955
1921
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
1956
1922
|
}, {
|
|
1957
1923
|
default: M(() => [
|
|
1958
|
-
x(
|
|
1924
|
+
x(Ie)
|
|
1959
1925
|
]),
|
|
1960
1926
|
_: 1
|
|
1961
1927
|
}),
|
|
1962
|
-
x(
|
|
1963
|
-
"plugin-id":
|
|
1928
|
+
x(Gt, {
|
|
1929
|
+
"plugin-id": j1,
|
|
1964
1930
|
options: n.value,
|
|
1965
1931
|
values: o.value,
|
|
1966
1932
|
onUpdate: s
|
|
1967
1933
|
}, null, 8, ["options", "values"])
|
|
1968
1934
|
]));
|
|
1969
1935
|
}
|
|
1970
|
-
}),
|
|
1936
|
+
}), z1 = {
|
|
1971
1937
|
"h-full": "",
|
|
1972
1938
|
"w-full": ""
|
|
1973
|
-
},
|
|
1939
|
+
}, ta = /* @__PURE__ */ B({
|
|
1974
1940
|
__name: "index",
|
|
1975
1941
|
setup(t) {
|
|
1976
1942
|
const e = I(null);
|
|
1977
1943
|
_e("pluginSettings", e);
|
|
1978
|
-
const n =
|
|
1944
|
+
const n = E(() => [
|
|
1979
1945
|
{
|
|
1980
1946
|
path: "/store",
|
|
1981
1947
|
name: "Store",
|
|
1982
|
-
component:
|
|
1948
|
+
component: y1,
|
|
1983
1949
|
icon: "i-carbon-tree-view-alt"
|
|
1984
1950
|
},
|
|
1985
1951
|
{
|
|
1986
1952
|
path: "/timeline",
|
|
1987
1953
|
name: "Timeline",
|
|
1988
|
-
component:
|
|
1954
|
+
component: A1,
|
|
1989
1955
|
icon: "i-mdi:timeline-clock-outline"
|
|
1990
1956
|
},
|
|
1991
1957
|
{
|
|
1992
1958
|
path: "/",
|
|
1993
1959
|
name: "About",
|
|
1994
|
-
component:
|
|
1960
|
+
component: Wn,
|
|
1995
1961
|
icon: "i-logos-pinia"
|
|
1996
1962
|
},
|
|
1997
1963
|
e.value && {
|
|
1998
1964
|
path: "/settings",
|
|
1999
1965
|
name: "Settings",
|
|
2000
|
-
component:
|
|
1966
|
+
component: U1,
|
|
2001
1967
|
icon: "i-mdi:cog-outline"
|
|
2002
1968
|
}
|
|
2003
1969
|
].filter(Boolean)), { VirtualRouterView: o, restoreRouter: s } = it(n, {
|
|
@@ -2007,11 +1973,11 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2007
1973
|
A.value.getPluginSettings("pinia").then((l) => {
|
|
2008
1974
|
l.options ? e.value = l : e.value = null;
|
|
2009
1975
|
});
|
|
2010
|
-
}), (l,
|
|
1976
|
+
}), (l, i) => (p(), h("div", z1, [
|
|
2011
1977
|
x(c(o))
|
|
2012
1978
|
]));
|
|
2013
1979
|
}
|
|
2014
|
-
}),
|
|
1980
|
+
}), B1 = { 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]" }, Z1 = /* @__PURE__ */ r("span", { class: "font-500" }, "Render Code", -1), F1 = { class: "flex-1 overflow-scroll text-3.5" }, G1 = /* @__PURE__ */ B({
|
|
2015
1981
|
__name: "RenderCode",
|
|
2016
1982
|
props: {
|
|
2017
1983
|
code: {}
|
|
@@ -2022,23 +1988,23 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2022
1988
|
function o() {
|
|
2023
1989
|
n("close");
|
|
2024
1990
|
}
|
|
2025
|
-
return (s, l) => (p(), h("div",
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
1991
|
+
return (s, l) => (p(), h("div", B1, [
|
|
1992
|
+
r("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
|
|
1993
|
+
Z1,
|
|
1994
|
+
r("i", {
|
|
2029
1995
|
class: "i-carbon-close cursor-pointer hover:op80",
|
|
2030
1996
|
onClick: o
|
|
2031
1997
|
})
|
|
2032
1998
|
]),
|
|
2033
|
-
|
|
2034
|
-
x(c(
|
|
1999
|
+
r("div", F1, [
|
|
2000
|
+
x(c(gn), {
|
|
2035
2001
|
code: s.code,
|
|
2036
2002
|
lang: "javascript"
|
|
2037
2003
|
}, null, 8, ["code"])
|
|
2038
2004
|
])
|
|
2039
2005
|
]));
|
|
2040
2006
|
}
|
|
2041
|
-
}),
|
|
2007
|
+
}), K1 = { class: "p2" }, W1 = ["onClick"], q1 = /* @__PURE__ */ B({
|
|
2042
2008
|
__name: "SelectiveList",
|
|
2043
2009
|
props: /* @__PURE__ */ Ze({
|
|
2044
2010
|
data: {}
|
|
@@ -2052,113 +2018,113 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2052
2018
|
function s(l) {
|
|
2053
2019
|
o.value = l, n("select", l);
|
|
2054
2020
|
}
|
|
2055
|
-
return (l,
|
|
2021
|
+
return (l, i) => (p(), h("ul", K1, [
|
|
2056
2022
|
(p(!0), h(te, null, ae(l.data, (u) => (p(), h("li", {
|
|
2057
2023
|
key: u.id,
|
|
2058
2024
|
class: ie(["selectable-item", { active: u.id === o.value }]),
|
|
2059
2025
|
onClick: (d) => s(u.id)
|
|
2060
2026
|
}, [
|
|
2061
|
-
ne(
|
|
2062
|
-
(p(!0), h(te, null, ae(u.tags, (d,
|
|
2063
|
-
key:
|
|
2027
|
+
ne(le(u.label) + " ", 1),
|
|
2028
|
+
(p(!0), h(te, null, ae(u.tags, (d, m) => (p(), z(Zt, {
|
|
2029
|
+
key: m,
|
|
2064
2030
|
tag: d
|
|
2065
2031
|
}, null, 8, ["tag"]))), 128))
|
|
2066
|
-
], 10,
|
|
2032
|
+
], 10, W1))), 128))
|
|
2067
2033
|
]));
|
|
2068
2034
|
}
|
|
2069
|
-
}), He = (t) => (ot("data-v-092d4be1"), t = t(), lt(), t),
|
|
2035
|
+
}), He = (t) => (ot("data-v-092d4be1"), t = t(), lt(), t), J1 = { class: "h-full w-full" }, Y1 = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, X1 = {
|
|
2070
2036
|
key: 0,
|
|
2071
2037
|
class: "h-full flex flex-col p2"
|
|
2072
|
-
},
|
|
2038
|
+
}, Q1 = { class: "flex py2" }, el = {
|
|
2073
2039
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2074
2040
|
style: { height: "1.1em", width: "1.1em" },
|
|
2075
2041
|
class: "op-80 hover:op-100",
|
|
2076
2042
|
viewBox: "0 0 24 24"
|
|
2077
|
-
},
|
|
2043
|
+
}, tl = /* @__PURE__ */ He(() => /* @__PURE__ */ r("path", {
|
|
2078
2044
|
fill: "currentColor",
|
|
2079
2045
|
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"
|
|
2080
|
-
}, null, -1)),
|
|
2081
|
-
|
|
2082
|
-
],
|
|
2046
|
+
}, null, -1)), nl = [
|
|
2047
|
+
tl
|
|
2048
|
+
], ol = { class: "h-full flex flex-col p2" }, ll = { class: "flex py2" }, sl = {
|
|
2083
2049
|
key: 0,
|
|
2084
2050
|
class: "font-state-field flex items-center px-1 text-3.5"
|
|
2085
|
-
},
|
|
2051
|
+
}, al = /* @__PURE__ */ He(() => /* @__PURE__ */ r("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), il = {
|
|
2086
2052
|
"group-hover:text-white": "",
|
|
2087
2053
|
class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
|
|
2088
|
-
},
|
|
2054
|
+
}, rl = /* @__PURE__ */ He(() => /* @__PURE__ */ r("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), ul = { class: "flex items-center gap-2 px-1" }, cl = { class: "h-full flex flex-col items-center justify-center gap-2" }, dl = { class: "block" }, pl = {
|
|
2089
2055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2090
2056
|
style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
|
|
2091
2057
|
class: "animate-fade",
|
|
2092
2058
|
viewBox: "0 0 24 24"
|
|
2093
|
-
},
|
|
2059
|
+
}, fl = /* @__PURE__ */ He(() => /* @__PURE__ */ r("g", {
|
|
2094
2060
|
fill: "none",
|
|
2095
2061
|
stroke: "currentColor",
|
|
2096
2062
|
"stroke-linecap": "round",
|
|
2097
2063
|
"stroke-linejoin": "round",
|
|
2098
2064
|
"stroke-width": "2"
|
|
2099
2065
|
}, [
|
|
2100
|
-
/* @__PURE__ */
|
|
2066
|
+
/* @__PURE__ */ r("circle", {
|
|
2101
2067
|
cx: "12",
|
|
2102
2068
|
cy: "12",
|
|
2103
2069
|
r: ".5",
|
|
2104
2070
|
fill: "currentColor"
|
|
2105
2071
|
}),
|
|
2106
|
-
/* @__PURE__ */
|
|
2107
|
-
], -1)),
|
|
2108
|
-
|
|
2109
|
-
],
|
|
2072
|
+
/* @__PURE__ */ r("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
|
|
2073
|
+
], -1)), vl = [
|
|
2074
|
+
fl
|
|
2075
|
+
], hl = /* @__PURE__ */ He(() => /* @__PURE__ */ r("p", null, " Click on a component on the page to select it ", -1)), ml = { class: "flex items-center justify-center" }, Ve = "components", _l = /* @__PURE__ */ B({
|
|
2110
2076
|
__name: "index",
|
|
2111
2077
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
2112
2078
|
setup(t, { emit: e }) {
|
|
2113
|
-
const n = e, o = I(), s = I(!1), { width: l } =
|
|
2114
|
-
function
|
|
2079
|
+
const n = e, o = I(), s = I(!1), { width: l } = Io(o), i = E(() => s.value ? l.value < 700 : !1), u = I(""), d = I(""), [m, v] = xo(!0), a = I(!1), f = I(!1), _ = I(""), y = I(!1);
|
|
2080
|
+
function g($, V = [], L = []) {
|
|
2115
2081
|
var G;
|
|
2116
|
-
return
|
|
2117
|
-
|
|
2118
|
-
}),
|
|
2082
|
+
return V.push($.id), ((G = $.children) == null ? void 0 : G.length) === 0 && L.push([...V]), Array.isArray($.children) && $.children.forEach((q) => {
|
|
2083
|
+
g(q, V, L);
|
|
2084
|
+
}), V.pop(), L;
|
|
2119
2085
|
}
|
|
2120
|
-
function k(
|
|
2121
|
-
const
|
|
2086
|
+
function k($) {
|
|
2087
|
+
const V = [], L = (G) => {
|
|
2122
2088
|
G == null || G.forEach((q) => {
|
|
2123
2089
|
var we;
|
|
2124
|
-
|
|
2090
|
+
V.push(q), (we = q.children) != null && we.length && L(q.children);
|
|
2125
2091
|
});
|
|
2126
2092
|
};
|
|
2127
|
-
return L(
|
|
2093
|
+
return L($), V;
|
|
2128
2094
|
}
|
|
2129
|
-
function
|
|
2095
|
+
function j($, V) {
|
|
2130
2096
|
const L = [];
|
|
2131
|
-
return
|
|
2132
|
-
L.push(...G.slice(0,
|
|
2097
|
+
return $ == null || $.forEach((G) => {
|
|
2098
|
+
L.push(...G.slice(0, V + 1));
|
|
2133
2099
|
}), [...new Set(L)];
|
|
2134
2100
|
}
|
|
2135
|
-
function
|
|
2101
|
+
function O($, V) {
|
|
2136
2102
|
const L = [];
|
|
2137
|
-
return
|
|
2138
|
-
const q = G.indexOf(
|
|
2103
|
+
return $.forEach((G) => {
|
|
2104
|
+
const q = G.indexOf(V);
|
|
2139
2105
|
q !== -1 && L.push(...G.slice(0, q + 1));
|
|
2140
2106
|
}), [...new Set(L)];
|
|
2141
2107
|
}
|
|
2142
|
-
const N = I([]),
|
|
2143
|
-
var
|
|
2144
|
-
return (
|
|
2145
|
-
}), R =
|
|
2146
|
-
const
|
|
2108
|
+
const N = I([]), w = E(() => {
|
|
2109
|
+
var $, V;
|
|
2110
|
+
return ($ = N.value) != null && $.length ? g((V = N.value) == null ? void 0 : V[0]) : [];
|
|
2111
|
+
}), R = E(() => k(N.value)), H = E(() => R.value.map(($) => $.id)), K = I({}), Z = I(""), T = E(() => {
|
|
2112
|
+
const $ = [], V = (L) => {
|
|
2147
2113
|
L.forEach((G) => {
|
|
2148
2114
|
var q;
|
|
2149
|
-
G.id === Z.value &&
|
|
2115
|
+
G.id === Z.value && $.push(G), (q = G.children) != null && q.length && V(G.children);
|
|
2150
2116
|
});
|
|
2151
2117
|
};
|
|
2152
|
-
return
|
|
2153
|
-
}), P =
|
|
2154
|
-
var
|
|
2155
|
-
return ((
|
|
2156
|
-
}), b =
|
|
2157
|
-
const
|
|
2158
|
-
for (const
|
|
2159
|
-
const G = K.value[
|
|
2118
|
+
return V(N.value), $[0];
|
|
2119
|
+
}), P = E(() => {
|
|
2120
|
+
var $;
|
|
2121
|
+
return (($ = T.value) == null ? void 0 : $.file) ?? "";
|
|
2122
|
+
}), b = E(() => {
|
|
2123
|
+
const $ = {};
|
|
2124
|
+
for (const V in K.value) {
|
|
2125
|
+
const G = K.value[V].filter((we) => {
|
|
2160
2126
|
try {
|
|
2161
|
-
return
|
|
2127
|
+
return Qo({
|
|
2162
2128
|
[we.key]: we.value
|
|
2163
2129
|
}, d.value);
|
|
2164
2130
|
} catch (Qt) {
|
|
@@ -2166,62 +2132,62 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2166
2132
|
[we.key]: Qt
|
|
2167
2133
|
};
|
|
2168
2134
|
}
|
|
2169
|
-
}), q = wn(Object.values(
|
|
2170
|
-
G.length && (
|
|
2135
|
+
}), q = wn(Object.values($n(At(G), "stateType")));
|
|
2136
|
+
G.length && ($[V] = q);
|
|
2171
2137
|
}
|
|
2172
|
-
return
|
|
2173
|
-
}), { expanded: S } = he(), { expanded:
|
|
2174
|
-
|
|
2175
|
-
async function D(
|
|
2176
|
-
return A.value.getInspectorTree({ inspectorId: Ve, filter:
|
|
2138
|
+
return $;
|
|
2139
|
+
}), { expanded: S } = he(), { expanded: C } = he("component-state");
|
|
2140
|
+
n1();
|
|
2141
|
+
async function D($ = "") {
|
|
2142
|
+
return A.value.getInspectorTree({ inspectorId: Ve, filter: $ }).then((V) => {
|
|
2177
2143
|
var G, q;
|
|
2178
|
-
const L = Y(
|
|
2179
|
-
N.value = L, Z.value = (q = (G = N.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, S.value =
|
|
2144
|
+
const L = Y(V);
|
|
2145
|
+
N.value = L, Z.value = (q = (G = N.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, S.value = j(w.value, 1), a.value = !0;
|
|
2180
2146
|
});
|
|
2181
2147
|
}
|
|
2182
|
-
function F(
|
|
2183
|
-
if (
|
|
2148
|
+
function F($) {
|
|
2149
|
+
if (!$ || !($ != null && $.state))
|
|
2184
2150
|
return {};
|
|
2185
|
-
const
|
|
2186
|
-
return
|
|
2187
|
-
|
|
2188
|
-
}),
|
|
2189
|
-
}
|
|
2190
|
-
function se(
|
|
2191
|
-
A.value.getInspectorState({ inspectorId: Ve, nodeId:
|
|
2192
|
-
const L = Y(
|
|
2193
|
-
L && (K.value = F(L),
|
|
2151
|
+
const V = {};
|
|
2152
|
+
return $.state.forEach((L) => {
|
|
2153
|
+
V[L.type] || (V[L.type] = []), V[L.type].push(L);
|
|
2154
|
+
}), V;
|
|
2155
|
+
}
|
|
2156
|
+
function se($) {
|
|
2157
|
+
A.value.getInspectorState({ inspectorId: Ve, nodeId: $ }).then((V) => {
|
|
2158
|
+
const L = Y(V);
|
|
2159
|
+
L && (K.value = F(L), C.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
|
|
2194
2160
|
});
|
|
2195
2161
|
}
|
|
2196
|
-
X(Z, (
|
|
2197
|
-
se(
|
|
2162
|
+
X(Z, ($) => {
|
|
2163
|
+
se($), y.value && Ue();
|
|
2198
2164
|
});
|
|
2199
|
-
function re(
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2165
|
+
function re($) {
|
|
2166
|
+
const V = Y($);
|
|
2167
|
+
V.inspectorId !== Ve || V.nodeId !== Z.value || (K.value = F({ state: V.state.state }));
|
|
2202
2168
|
}
|
|
2203
2169
|
A.functions.on(W.INSPECTOR_STATE_UPDATED, re), D();
|
|
2204
|
-
function ce(
|
|
2205
|
-
const
|
|
2206
|
-
v(), D(
|
|
2170
|
+
function ce($) {
|
|
2171
|
+
const V = $.trim().toLowerCase();
|
|
2172
|
+
v(), D(V).then(() => {
|
|
2207
2173
|
v();
|
|
2208
2174
|
});
|
|
2209
2175
|
}
|
|
2210
|
-
|
|
2211
|
-
ce(
|
|
2176
|
+
yo(u, ($) => {
|
|
2177
|
+
ce($);
|
|
2212
2178
|
}, { debounce: 300 });
|
|
2213
|
-
function ge(
|
|
2179
|
+
function ge($) {
|
|
2214
2180
|
var L, G;
|
|
2215
|
-
const
|
|
2216
|
-
|
|
2181
|
+
const V = Y($);
|
|
2182
|
+
V.inspectorId === Ve && (u.value ? ce(u.value) : N.value = V.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (L = N.value) == null ? void 0 : L[0]) == null ? void 0 : G.id, S.value = j(w.value, 1)));
|
|
2217
2183
|
}
|
|
2218
2184
|
A.functions.on(W.INSPECTOR_TREE_UPDATED, ge), ye(() => {
|
|
2219
2185
|
A.functions.off(W.INSPECTOR_STATE_UPDATED, re), A.functions.off(W.INSPECTOR_TREE_UPDATED, ge);
|
|
2220
2186
|
});
|
|
2221
2187
|
function Ce() {
|
|
2222
|
-
f.value = !0, n("onInspectComponentStart"), A.value.inspectComponentInspector().then((
|
|
2223
|
-
const
|
|
2224
|
-
Z.value =
|
|
2188
|
+
f.value = !0, n("onInspectComponentStart"), A.value.inspectComponentInspector().then(($) => {
|
|
2189
|
+
const V = JSON.parse($);
|
|
2190
|
+
Z.value = V.id, S.value.includes(V.id) || S.value.push(V.id), S.value = [.../* @__PURE__ */ new Set([...S.value, ...O(w.value, V.id)])], qt();
|
|
2225
2191
|
}).finally(() => {
|
|
2226
2192
|
f.value = !1, n("onInspectComponentEnd");
|
|
2227
2193
|
});
|
|
@@ -2229,55 +2195,55 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2229
2195
|
function Le() {
|
|
2230
2196
|
f.value = !1, A.value.cancelInspectComponentInspector();
|
|
2231
2197
|
}
|
|
2232
|
-
function
|
|
2198
|
+
function Oe() {
|
|
2233
2199
|
A.value.scrollToComponent(Z.value);
|
|
2234
2200
|
}
|
|
2235
|
-
function
|
|
2201
|
+
function je() {
|
|
2236
2202
|
A.value.inspectDOM(Z.value).then(() => {
|
|
2237
2203
|
chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
|
|
2238
2204
|
});
|
|
2239
2205
|
}
|
|
2240
2206
|
function Ue() {
|
|
2241
|
-
A.value.getComponentRenderCode(Z.value).then((
|
|
2242
|
-
|
|
2207
|
+
A.value.getComponentRenderCode(Z.value).then(($) => {
|
|
2208
|
+
_.value = $, y.value = !0;
|
|
2243
2209
|
});
|
|
2244
2210
|
}
|
|
2245
|
-
function
|
|
2211
|
+
function qe() {
|
|
2246
2212
|
n("openInEditor", P.value);
|
|
2247
2213
|
}
|
|
2248
2214
|
const Ee = I();
|
|
2249
2215
|
function qt() {
|
|
2250
2216
|
setTimeout(() => {
|
|
2251
|
-
var
|
|
2252
|
-
const
|
|
2253
|
-
|
|
2217
|
+
var V;
|
|
2218
|
+
const $ = (V = Ee.value) == null ? void 0 : V.querySelector(".active");
|
|
2219
|
+
$ == null || $.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2254
2220
|
}, 300);
|
|
2255
2221
|
}
|
|
2256
2222
|
function Jt() {
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2259
|
-
const
|
|
2260
|
-
label:
|
|
2261
|
-
value:
|
|
2262
|
-
}))), Yt =
|
|
2263
|
-
label:
|
|
2264
|
-
id:
|
|
2265
|
-
}))),
|
|
2223
|
+
_.value = "", y.value = !1;
|
|
2224
|
+
}
|
|
2225
|
+
const Je = an(), ht = E(() => Je.appRecords.value.map(($) => ({
|
|
2226
|
+
label: $.name + ($.version ? ` (${$.version})` : ""),
|
|
2227
|
+
value: $.id
|
|
2228
|
+
}))), Yt = E(() => ht.value.map(($) => ({
|
|
2229
|
+
label: $.label,
|
|
2230
|
+
id: $.value
|
|
2231
|
+
}))), Ye = I(Je.activeAppRecordId.value);
|
|
2266
2232
|
nt(() => {
|
|
2267
|
-
|
|
2233
|
+
Ye.value = Je.activeAppRecordId.value;
|
|
2268
2234
|
});
|
|
2269
|
-
function Xt(
|
|
2270
|
-
A.value.toggleApp(
|
|
2235
|
+
function Xt($) {
|
|
2236
|
+
A.value.toggleApp($).then(() => {
|
|
2271
2237
|
Z.value = "", D();
|
|
2272
2238
|
});
|
|
2273
2239
|
}
|
|
2274
|
-
return (
|
|
2240
|
+
return ($, V) => (p(), h("div", J1, [
|
|
2275
2241
|
x(c(Ae), {
|
|
2276
2242
|
ref_key: "splitpanesRef",
|
|
2277
2243
|
ref: o,
|
|
2278
2244
|
class: "flex-1 overflow-auto",
|
|
2279
|
-
horizontal:
|
|
2280
|
-
onReady:
|
|
2245
|
+
horizontal: i.value,
|
|
2246
|
+
onReady: V[4] || (V[4] = (L) => s.value = !0)
|
|
2281
2247
|
}, {
|
|
2282
2248
|
default: M(() => [
|
|
2283
2249
|
ht.value.length > 1 ? (p(), z(c(ue), {
|
|
@@ -2286,10 +2252,10 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2286
2252
|
size: "20"
|
|
2287
2253
|
}, {
|
|
2288
2254
|
default: M(() => [
|
|
2289
|
-
|
|
2290
|
-
x(
|
|
2291
|
-
modelValue:
|
|
2292
|
-
"onUpdate:modelValue":
|
|
2255
|
+
r("div", Y1, [
|
|
2256
|
+
x(q1, {
|
|
2257
|
+
modelValue: Ye.value,
|
|
2258
|
+
"onUpdate:modelValue": V[0] || (V[0] = (L) => Ye.value = L),
|
|
2293
2259
|
data: Yt.value,
|
|
2294
2260
|
class: "w-full",
|
|
2295
2261
|
onSelect: Xt
|
|
@@ -2303,23 +2269,23 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2303
2269
|
"h-full": ""
|
|
2304
2270
|
}, {
|
|
2305
2271
|
default: M(() => [
|
|
2306
|
-
a.value ? (p(), h("div",
|
|
2307
|
-
|
|
2308
|
-
x(c(
|
|
2272
|
+
a.value ? (p(), h("div", X1, [
|
|
2273
|
+
r("div", Q1, [
|
|
2274
|
+
x(c(Fe), {
|
|
2309
2275
|
modelValue: u.value,
|
|
2310
|
-
"onUpdate:modelValue":
|
|
2276
|
+
"onUpdate:modelValue": V[1] || (V[1] = (L) => u.value = L),
|
|
2311
2277
|
"loading-debounce-time": 250,
|
|
2312
|
-
loading: !c(
|
|
2278
|
+
loading: !c(m),
|
|
2313
2279
|
placeholder: "Find components...",
|
|
2314
2280
|
class: "flex-1 text-3.5"
|
|
2315
2281
|
}, null, 8, ["modelValue", "loading"]),
|
|
2316
|
-
c(
|
|
2282
|
+
c(xn) ? U("", !0) : J((p(), h("button", {
|
|
2317
2283
|
key: 0,
|
|
2318
2284
|
"px-1": "",
|
|
2319
2285
|
class: "hover:color-#00dc82",
|
|
2320
2286
|
onClick: Ce
|
|
2321
2287
|
}, [
|
|
2322
|
-
(p(), h("svg",
|
|
2288
|
+
(p(), h("svg", el, nl))
|
|
2323
2289
|
])), [
|
|
2324
2290
|
[
|
|
2325
2291
|
c(Q),
|
|
@@ -2329,14 +2295,14 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2329
2295
|
]
|
|
2330
2296
|
])
|
|
2331
2297
|
]),
|
|
2332
|
-
|
|
2298
|
+
r("div", {
|
|
2333
2299
|
ref_key: "componentTreeContainer",
|
|
2334
2300
|
ref: Ee,
|
|
2335
2301
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2336
2302
|
}, [
|
|
2337
2303
|
x(Me, {
|
|
2338
2304
|
modelValue: Z.value,
|
|
2339
|
-
"onUpdate:modelValue":
|
|
2305
|
+
"onUpdate:modelValue": V[2] || (V[2] = (L) => Z.value = L),
|
|
2340
2306
|
data: N.value,
|
|
2341
2307
|
"with-tag": !0
|
|
2342
2308
|
}, null, 8, ["modelValue", "data"])
|
|
@@ -2352,24 +2318,24 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2352
2318
|
default: M(() => {
|
|
2353
2319
|
var L;
|
|
2354
2320
|
return [
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
(L = T.value) != null && L.name ? (p(), h("span",
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2321
|
+
r("div", ol, [
|
|
2322
|
+
r("div", ll, [
|
|
2323
|
+
(L = T.value) != null && L.name ? (p(), h("span", sl, [
|
|
2324
|
+
al,
|
|
2325
|
+
r("span", il, le(T.value.name), 1),
|
|
2326
|
+
rl
|
|
2361
2327
|
])) : U("", !0),
|
|
2362
|
-
x(c(
|
|
2328
|
+
x(c(Fe), {
|
|
2363
2329
|
modelValue: d.value,
|
|
2364
|
-
"onUpdate:modelValue":
|
|
2330
|
+
"onUpdate:modelValue": V[3] || (V[3] = (G) => d.value = G),
|
|
2365
2331
|
"loading-debounce-time": 250,
|
|
2366
2332
|
placeholder: "Filter State...",
|
|
2367
2333
|
class: "flex-1 text-3.5"
|
|
2368
2334
|
}, null, 8, ["modelValue"]),
|
|
2369
|
-
|
|
2370
|
-
J(
|
|
2335
|
+
r("div", ul, [
|
|
2336
|
+
J(r("i", {
|
|
2371
2337
|
class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
|
|
2372
|
-
onClick:
|
|
2338
|
+
onClick: Oe
|
|
2373
2339
|
}, null, 512), [
|
|
2374
2340
|
[
|
|
2375
2341
|
c(Q),
|
|
@@ -2378,7 +2344,7 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2378
2344
|
{ bottom: !0 }
|
|
2379
2345
|
]
|
|
2380
2346
|
]),
|
|
2381
|
-
J(
|
|
2347
|
+
J(r("i", {
|
|
2382
2348
|
class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
|
|
2383
2349
|
onClick: Ue
|
|
2384
2350
|
}, null, 512), [
|
|
@@ -2389,10 +2355,10 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2389
2355
|
{ bottom: !0 }
|
|
2390
2356
|
]
|
|
2391
2357
|
]),
|
|
2392
|
-
c(
|
|
2358
|
+
c($t) ? J((p(), h("i", {
|
|
2393
2359
|
key: 0,
|
|
2394
2360
|
class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
|
|
2395
|
-
onClick:
|
|
2361
|
+
onClick: je
|
|
2396
2362
|
}, null, 512)), [
|
|
2397
2363
|
[
|
|
2398
2364
|
c(Q),
|
|
@@ -2404,7 +2370,7 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2404
2370
|
P.value ? J((p(), h("i", {
|
|
2405
2371
|
key: 1,
|
|
2406
2372
|
class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
|
|
2407
|
-
onClick:
|
|
2373
|
+
onClick: qe
|
|
2408
2374
|
}, null, 512)), [
|
|
2409
2375
|
[
|
|
2410
2376
|
c(Q),
|
|
@@ -2423,9 +2389,9 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2423
2389
|
"expanded-state-id": "component-state"
|
|
2424
2390
|
}, null, 8, ["data", "node-id"])
|
|
2425
2391
|
]),
|
|
2426
|
-
y.value &&
|
|
2392
|
+
y.value && _.value ? (p(), z(G1, {
|
|
2427
2393
|
key: 0,
|
|
2428
|
-
code:
|
|
2394
|
+
code: _.value,
|
|
2429
2395
|
onClose: Jt
|
|
2430
2396
|
}, null, 8, ["code"])) : U("", !0)
|
|
2431
2397
|
];
|
|
@@ -2435,16 +2401,16 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2435
2401
|
]),
|
|
2436
2402
|
_: 1
|
|
2437
2403
|
}, 8, ["horizontal"]),
|
|
2438
|
-
c(
|
|
2404
|
+
c($t) ? (p(), z(c(Cn), {
|
|
2439
2405
|
key: 0,
|
|
2440
2406
|
modelValue: f.value,
|
|
2441
|
-
"onUpdate:modelValue":
|
|
2407
|
+
"onUpdate:modelValue": V[5] || (V[5] = (L) => f.value = L),
|
|
2442
2408
|
title: "",
|
|
2443
2409
|
height: "12rem",
|
|
2444
2410
|
closable: !1
|
|
2445
2411
|
}, {
|
|
2446
2412
|
footer: M(() => [
|
|
2447
|
-
|
|
2413
|
+
r("div", ml, [
|
|
2448
2414
|
x(c(de), { onClick: Le }, {
|
|
2449
2415
|
default: M(() => [
|
|
2450
2416
|
ne(" Cancel ")
|
|
@@ -2454,86 +2420,86 @@ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px]
|
|
|
2454
2420
|
])
|
|
2455
2421
|
]),
|
|
2456
2422
|
default: M(() => [
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
(p(), h("svg",
|
|
2423
|
+
r("div", cl, [
|
|
2424
|
+
r("span", dl, [
|
|
2425
|
+
(p(), h("svg", pl, vl))
|
|
2460
2426
|
]),
|
|
2461
|
-
|
|
2427
|
+
hl
|
|
2462
2428
|
])
|
|
2463
2429
|
]),
|
|
2464
2430
|
_: 1
|
|
2465
2431
|
}, 8, ["modelValue"])) : U("", !0)
|
|
2466
2432
|
]));
|
|
2467
2433
|
}
|
|
2468
|
-
}),
|
|
2434
|
+
}), na = /* @__PURE__ */ be(_l, [["__scopeId", "data-v-092d4be1"]]), gl = {}, Cl = {
|
|
2469
2435
|
viewBox: "0 0 566 154",
|
|
2470
2436
|
fill: "none",
|
|
2471
2437
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2472
|
-
},
|
|
2438
|
+
}, xl = /* @__PURE__ */ r("svg", {
|
|
2473
2439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2474
2440
|
width: "8em",
|
|
2475
2441
|
height: "8em",
|
|
2476
2442
|
viewBox: "0 -4 24 24"
|
|
2477
2443
|
}, [
|
|
2478
|
-
/* @__PURE__ */
|
|
2444
|
+
/* @__PURE__ */ r("path", {
|
|
2479
2445
|
fill: "#3dd68c",
|
|
2480
2446
|
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"
|
|
2481
2447
|
})
|
|
2482
|
-
], -1),
|
|
2448
|
+
], -1), yl = /* @__PURE__ */ r("path", {
|
|
2483
2449
|
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",
|
|
2484
2450
|
fill: "currentColor"
|
|
2485
|
-
}, null, -1),
|
|
2486
|
-
|
|
2487
|
-
|
|
2451
|
+
}, null, -1), bl = [
|
|
2452
|
+
xl,
|
|
2453
|
+
yl
|
|
2488
2454
|
];
|
|
2489
|
-
function
|
|
2490
|
-
return p(), h("svg",
|
|
2455
|
+
function wl(t, e) {
|
|
2456
|
+
return p(), h("svg", Cl, bl);
|
|
2491
2457
|
}
|
|
2492
|
-
const
|
|
2458
|
+
const $l = /* @__PURE__ */ be(gl, [["render", wl]]), kl = {
|
|
2493
2459
|
"h-full": "",
|
|
2494
2460
|
"w-full": "",
|
|
2495
2461
|
flex: "",
|
|
2496
2462
|
"items-center": ""
|
|
2497
|
-
},
|
|
2463
|
+
}, Il = {
|
|
2498
2464
|
flex: "~ col gap2",
|
|
2499
2465
|
ma: "",
|
|
2500
2466
|
"px-5": ""
|
|
2501
|
-
},
|
|
2467
|
+
}, Sl = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), Tl = {
|
|
2502
2468
|
flex: "~ col",
|
|
2503
2469
|
"mt-20": "",
|
|
2504
2470
|
"items-center": ""
|
|
2505
|
-
},
|
|
2471
|
+
}, El = {
|
|
2506
2472
|
flex: "~",
|
|
2507
2473
|
"mt--10": "",
|
|
2508
2474
|
"items-center": "",
|
|
2509
2475
|
"justify-center": ""
|
|
2510
|
-
},
|
|
2476
|
+
}, Vl = /* @__PURE__ */ r("div", {
|
|
2511
2477
|
mb6: "",
|
|
2512
2478
|
"mt--1": "",
|
|
2513
2479
|
"text-center": "",
|
|
2514
2480
|
"text-sm": "",
|
|
2515
2481
|
flex: "~ gap-1"
|
|
2516
2482
|
}, [
|
|
2517
|
-
/* @__PURE__ */
|
|
2518
|
-
], -1),
|
|
2483
|
+
/* @__PURE__ */ r("span", { op40: "" }, " Router DevTools ")
|
|
2484
|
+
], -1), Nl = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), Rl = { flex: "~ gap2 wrap" }, Al = /* @__PURE__ */ r("div", {
|
|
2519
2485
|
"i-carbon-tree-view-alt": "",
|
|
2520
2486
|
"text-3xl": ""
|
|
2521
|
-
}, null, -1),
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
],
|
|
2487
|
+
}, null, -1), Dl = /* @__PURE__ */ r("code", null, "Routes", -1), Pl = [
|
|
2488
|
+
Al,
|
|
2489
|
+
Dl
|
|
2490
|
+
], Ml = /* @__PURE__ */ r("div", {
|
|
2525
2491
|
"i-mdi:timeline-clock-outline": "",
|
|
2526
2492
|
"text-3xl": ""
|
|
2527
|
-
}, null, -1),
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
],
|
|
2493
|
+
}, null, -1), Hl = /* @__PURE__ */ r("div", null, "Timeline", -1), Ll = [
|
|
2494
|
+
Ml,
|
|
2495
|
+
Hl
|
|
2496
|
+
], Ol = /* @__PURE__ */ r("div", {
|
|
2531
2497
|
flex: "~ gap-6 wrap",
|
|
2532
2498
|
"mt-5": "",
|
|
2533
2499
|
"items-center": "",
|
|
2534
2500
|
"justify-center": ""
|
|
2535
2501
|
}, [
|
|
2536
|
-
/* @__PURE__ */
|
|
2502
|
+
/* @__PURE__ */ r("a", {
|
|
2537
2503
|
href: "https://github.com/vuejs/router",
|
|
2538
2504
|
target: "_blank",
|
|
2539
2505
|
flex: "~ gap1",
|
|
@@ -2542,10 +2508,10 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2542
2508
|
hover: "op100 text-blue",
|
|
2543
2509
|
transition: ""
|
|
2544
2510
|
}, [
|
|
2545
|
-
/* @__PURE__ */
|
|
2511
|
+
/* @__PURE__ */ r("div", { "i-carbon-star": "" }),
|
|
2546
2512
|
/* @__PURE__ */ ne(" Star on GitHub ")
|
|
2547
2513
|
]),
|
|
2548
|
-
/* @__PURE__ */
|
|
2514
|
+
/* @__PURE__ */ r("a", {
|
|
2549
2515
|
href: "https://router.vuejs.org/",
|
|
2550
2516
|
target: "_blank",
|
|
2551
2517
|
flex: "~ gap1",
|
|
@@ -2554,91 +2520,105 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2554
2520
|
hover: "op100 text-yellow",
|
|
2555
2521
|
transition: ""
|
|
2556
2522
|
}, [
|
|
2557
|
-
/* @__PURE__ */
|
|
2523
|
+
/* @__PURE__ */ r("div", { "i-carbon-document": "" }),
|
|
2558
2524
|
/* @__PURE__ */ ne(" View Documentation ")
|
|
2559
2525
|
])
|
|
2560
|
-
], -1),
|
|
2526
|
+
], -1), jl = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), Ul = /* @__PURE__ */ B({
|
|
2561
2527
|
__name: "About",
|
|
2562
2528
|
setup(t) {
|
|
2563
2529
|
const e = De();
|
|
2564
|
-
return (n, o) => (p(), h("div",
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
x(
|
|
2530
|
+
return (n, o) => (p(), h("div", kl, [
|
|
2531
|
+
r("div", Il, [
|
|
2532
|
+
Sl,
|
|
2533
|
+
r("div", Tl, [
|
|
2534
|
+
r("div", El, [
|
|
2535
|
+
x($l, { "h-18": "" })
|
|
2570
2536
|
]),
|
|
2571
|
-
|
|
2537
|
+
Vl
|
|
2572
2538
|
]),
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2539
|
+
Nl,
|
|
2540
|
+
r("div", Rl, [
|
|
2541
|
+
r("div", {
|
|
2576
2542
|
flex: "~ col auto",
|
|
2577
2543
|
"min-w-40": "",
|
|
2578
2544
|
p4: "",
|
|
2579
2545
|
"theme-card-lime": "",
|
|
2580
2546
|
onClick: o[0] || (o[0] = (s) => c(e).push("/routes"))
|
|
2581
|
-
},
|
|
2582
|
-
|
|
2547
|
+
}, Pl),
|
|
2548
|
+
r("div", {
|
|
2583
2549
|
flex: "~ col auto",
|
|
2584
2550
|
"min-w-40": "",
|
|
2585
2551
|
p4: "",
|
|
2586
2552
|
"theme-card-lime": "",
|
|
2587
2553
|
onClick: o[1] || (o[1] = (s) => c(e).push("/timeline"))
|
|
2588
|
-
},
|
|
2554
|
+
}, Ll)
|
|
2589
2555
|
]),
|
|
2590
|
-
|
|
2591
|
-
|
|
2556
|
+
Ol,
|
|
2557
|
+
jl
|
|
2592
2558
|
])
|
|
2593
2559
|
]));
|
|
2594
2560
|
}
|
|
2595
|
-
}),
|
|
2561
|
+
}), Kt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
|
|
2562
|
+
function Te() {
|
|
2563
|
+
return ve(Kt);
|
|
2564
|
+
}
|
|
2565
|
+
function Wt() {
|
|
2566
|
+
const t = I({
|
|
2567
|
+
homepage: "",
|
|
2568
|
+
id: "",
|
|
2569
|
+
label: "",
|
|
2570
|
+
logo: "",
|
|
2571
|
+
timelineLayerIds: []
|
|
2572
|
+
});
|
|
2573
|
+
return _e(Kt, t), t;
|
|
2574
|
+
}
|
|
2575
|
+
const zl = { class: "h-full flex flex-col" }, Bl = {
|
|
2596
2576
|
"h-full": "",
|
|
2597
2577
|
"select-none": "",
|
|
2598
2578
|
"overflow-scroll": "",
|
|
2599
2579
|
p2: "",
|
|
2600
2580
|
class: "no-scrollbar"
|
|
2601
|
-
},
|
|
2581
|
+
}, Zl = {
|
|
2602
2582
|
"h-full": "",
|
|
2603
2583
|
"select-none": "",
|
|
2604
2584
|
"overflow-scroll": "",
|
|
2605
2585
|
class: "no-scrollbar"
|
|
2606
|
-
},
|
|
2586
|
+
}, Fl = /* @__PURE__ */ B({
|
|
2607
2587
|
__name: "Index",
|
|
2608
2588
|
setup(t) {
|
|
2609
|
-
const { expanded: e } = he(), { expanded: n } = he("routes-state"), o =
|
|
2610
|
-
var
|
|
2611
|
-
return (
|
|
2612
|
-
}), d =
|
|
2613
|
-
function a(
|
|
2589
|
+
const { expanded: e } = he(), { expanded: n } = he("routes-state"), o = Te(), s = E(() => o.value.id), l = I(""), i = I([]), u = E(() => {
|
|
2590
|
+
var w, R;
|
|
2591
|
+
return (w = i.value) != null && w.length ? a((R = i.value) == null ? void 0 : R[0]) : [];
|
|
2592
|
+
}), d = E(() => _(i.value)), m = E(() => d.value.map((w) => w.id)), v = I({});
|
|
2593
|
+
function a(w, R = [], H = []) {
|
|
2614
2594
|
var K;
|
|
2615
|
-
return R.push(
|
|
2595
|
+
return R.push(w.id), ((K = w.children) == null ? void 0 : K.length) === 0 && H.push([...R]), Array.isArray(w.children) && w.children.forEach((Z) => {
|
|
2616
2596
|
a(Z, R, H);
|
|
2617
2597
|
}), R.pop(), H;
|
|
2618
2598
|
}
|
|
2619
|
-
function f(
|
|
2599
|
+
function f(w, R) {
|
|
2620
2600
|
const H = [];
|
|
2621
|
-
return
|
|
2601
|
+
return w == null || w.forEach((K) => {
|
|
2622
2602
|
H.push(...K.slice(0, R + 1));
|
|
2623
2603
|
}), [...new Set(H)];
|
|
2624
2604
|
}
|
|
2625
|
-
function
|
|
2605
|
+
function _(w) {
|
|
2626
2606
|
const R = [], H = (K) => {
|
|
2627
2607
|
K == null || K.forEach((Z) => {
|
|
2628
2608
|
var T;
|
|
2629
2609
|
R.push(Z), (T = Z.children) != null && T.length && H(Z.children);
|
|
2630
2610
|
});
|
|
2631
2611
|
};
|
|
2632
|
-
return H(
|
|
2612
|
+
return H(w), R;
|
|
2633
2613
|
}
|
|
2634
|
-
function y(
|
|
2614
|
+
function y(w) {
|
|
2635
2615
|
var R;
|
|
2636
|
-
for (const H in
|
|
2637
|
-
(R =
|
|
2638
|
-
return
|
|
2616
|
+
for (const H in w)
|
|
2617
|
+
(R = w[H]) != null && R.length || delete w[H];
|
|
2618
|
+
return w;
|
|
2639
2619
|
}
|
|
2640
|
-
function
|
|
2641
|
-
A.value.getInspectorState({ inspectorId: s.value, nodeId:
|
|
2620
|
+
function g(w) {
|
|
2621
|
+
A.value.getInspectorState({ inspectorId: s.value, nodeId: w }).then((R) => {
|
|
2642
2622
|
const H = Y(R);
|
|
2643
2623
|
H && (v.value = y(H), n.value = Array.from({ length: Object.keys(v.value).length }, (K, Z) => `${Z}`));
|
|
2644
2624
|
});
|
|
@@ -2647,35 +2627,35 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2647
2627
|
v.value = {};
|
|
2648
2628
|
}
|
|
2649
2629
|
X(l, () => {
|
|
2650
|
-
k(),
|
|
2630
|
+
k(), g(l.value);
|
|
2651
2631
|
});
|
|
2652
|
-
const
|
|
2653
|
-
A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((
|
|
2654
|
-
const R = Y(
|
|
2655
|
-
|
|
2632
|
+
const j = () => {
|
|
2633
|
+
A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((w) => {
|
|
2634
|
+
const R = Y(w);
|
|
2635
|
+
i.value = R, !l.value && R.length && (l.value = R[0].id, g(R[0].id), e.value = f(u.value, 1));
|
|
2656
2636
|
});
|
|
2657
2637
|
};
|
|
2658
|
-
Pt(s).toBeTruthy().then(
|
|
2659
|
-
function
|
|
2660
|
-
const R = Y(
|
|
2661
|
-
R.inspectorId !== s.value || !R.rootNodes.length || (
|
|
2638
|
+
Pt(s).toBeTruthy().then(j);
|
|
2639
|
+
function O(w) {
|
|
2640
|
+
const R = Y(w);
|
|
2641
|
+
R.inspectorId !== s.value || !R.rootNodes.length || (i.value = R.rootNodes, m.value.includes(l.value) || (l.value = R.rootNodes[0].id, e.value = f(u.value, 1), g(R.rootNodes[0].id)));
|
|
2662
2642
|
}
|
|
2663
|
-
function N(
|
|
2664
|
-
const R = Y(
|
|
2643
|
+
function N(w) {
|
|
2644
|
+
const R = Y(w);
|
|
2665
2645
|
if (R.inspectorId !== s.value)
|
|
2666
2646
|
return;
|
|
2667
2647
|
const H = R.state;
|
|
2668
2648
|
v.value = y(H);
|
|
2669
2649
|
}
|
|
2670
|
-
return A.functions.on(W.INSPECTOR_TREE_UPDATED,
|
|
2671
|
-
A.functions.off(W.INSPECTOR_TREE_UPDATED,
|
|
2672
|
-
}), (
|
|
2673
|
-
x(
|
|
2650
|
+
return A.functions.on(W.INSPECTOR_TREE_UPDATED, O), A.functions.on(W.INSPECTOR_STATE_UPDATED, N), ye(() => {
|
|
2651
|
+
A.functions.off(W.INSPECTOR_TREE_UPDATED, O), A.functions.off(W.INSPECTOR_STATE_UPDATED, N);
|
|
2652
|
+
}), (w, R) => (p(), h("div", zl, [
|
|
2653
|
+
x(Se, {
|
|
2674
2654
|
"doc-link": "https://router.vuejs.org/",
|
|
2675
2655
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
2676
2656
|
}, {
|
|
2677
2657
|
default: M(() => [
|
|
2678
|
-
x(
|
|
2658
|
+
x(Ie)
|
|
2679
2659
|
]),
|
|
2680
2660
|
_: 1
|
|
2681
2661
|
}),
|
|
@@ -2687,11 +2667,11 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2687
2667
|
"h-full": ""
|
|
2688
2668
|
}, {
|
|
2689
2669
|
default: M(() => [
|
|
2690
|
-
|
|
2670
|
+
r("div", Bl, [
|
|
2691
2671
|
x(Me, {
|
|
2692
2672
|
modelValue: l.value,
|
|
2693
2673
|
"onUpdate:modelValue": R[0] || (R[0] = (H) => l.value = H),
|
|
2694
|
-
data:
|
|
2674
|
+
data: i.value
|
|
2695
2675
|
}, null, 8, ["modelValue", "data"])
|
|
2696
2676
|
])
|
|
2697
2677
|
]),
|
|
@@ -2699,7 +2679,7 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2699
2679
|
}),
|
|
2700
2680
|
x(c(ue), { size: "60" }, {
|
|
2701
2681
|
default: M(() => [
|
|
2702
|
-
|
|
2682
|
+
r("div", Zl, [
|
|
2703
2683
|
l.value ? (p(), z(Pe, {
|
|
2704
2684
|
key: 0,
|
|
2705
2685
|
class: "p3",
|
|
@@ -2722,48 +2702,48 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2722
2702
|
})
|
|
2723
2703
|
]));
|
|
2724
2704
|
}
|
|
2725
|
-
}),
|
|
2705
|
+
}), Gl = /* @__PURE__ */ B({
|
|
2726
2706
|
__name: "Index",
|
|
2727
2707
|
setup(t) {
|
|
2728
|
-
const e =
|
|
2708
|
+
const e = Te();
|
|
2729
2709
|
return (n, o) => (p(), z(vt, {
|
|
2730
2710
|
"layer-ids": c(e).timelineLayerIds,
|
|
2731
2711
|
"doc-link": "https://router.vuejs.org/",
|
|
2732
2712
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
2733
2713
|
}, null, 8, ["layer-ids"]));
|
|
2734
2714
|
}
|
|
2735
|
-
}),
|
|
2715
|
+
}), Kl = {
|
|
2736
2716
|
"h-full": "",
|
|
2737
2717
|
"w-full": ""
|
|
2738
|
-
},
|
|
2718
|
+
}, oa = /* @__PURE__ */ B({
|
|
2739
2719
|
__name: "index",
|
|
2740
2720
|
props: {
|
|
2741
2721
|
id: {}
|
|
2742
2722
|
},
|
|
2743
2723
|
setup(t) {
|
|
2744
|
-
const e = t, n =
|
|
2724
|
+
const e = t, n = Wt(), o = I(!1), { VirtualRouterView: s, restoreRouter: l } = it([
|
|
2745
2725
|
{
|
|
2746
2726
|
path: "/routes",
|
|
2747
2727
|
name: "Routes",
|
|
2748
|
-
component:
|
|
2728
|
+
component: Fl,
|
|
2749
2729
|
icon: "i-carbon-tree-view-alt"
|
|
2750
2730
|
},
|
|
2751
2731
|
{
|
|
2752
2732
|
path: "/timeline",
|
|
2753
2733
|
name: "Timeline",
|
|
2754
|
-
component:
|
|
2734
|
+
component: Gl,
|
|
2755
2735
|
icon: "i-mdi:timeline-clock-outline"
|
|
2756
2736
|
},
|
|
2757
2737
|
{
|
|
2758
2738
|
path: "/about",
|
|
2759
2739
|
name: "About",
|
|
2760
|
-
component:
|
|
2740
|
+
component: Ul,
|
|
2761
2741
|
icon: "i-ri-route-line"
|
|
2762
2742
|
}
|
|
2763
2743
|
], {
|
|
2764
2744
|
defaultRoutePath: "/routes"
|
|
2765
2745
|
});
|
|
2766
|
-
function
|
|
2746
|
+
function i() {
|
|
2767
2747
|
o.value = !0, Re(() => {
|
|
2768
2748
|
A.value.getInspectorInfo(e.id).then((u) => {
|
|
2769
2749
|
if (!u)
|
|
@@ -2773,138 +2753,138 @@ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
|
|
|
2773
2753
|
id: u == null ? void 0 : u.id,
|
|
2774
2754
|
label: u == null ? void 0 : u.label,
|
|
2775
2755
|
logo: u == null ? void 0 : u.logo,
|
|
2776
|
-
timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((
|
|
2756
|
+
timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((m) => m.id)
|
|
2777
2757
|
};
|
|
2778
2758
|
n.value = d, l(), o.value = !1;
|
|
2779
2759
|
});
|
|
2780
2760
|
});
|
|
2781
2761
|
}
|
|
2782
2762
|
return X(() => e.id, (u) => {
|
|
2783
|
-
u &&
|
|
2784
|
-
}), (u, d) => (p(), h("div",
|
|
2763
|
+
u && i();
|
|
2764
|
+
}), (u, d) => (p(), h("div", Kl, [
|
|
2785
2765
|
x(c(s))
|
|
2786
2766
|
]));
|
|
2787
2767
|
}
|
|
2788
|
-
}),
|
|
2768
|
+
}), Wl = {}, ql = {
|
|
2789
2769
|
width: "175",
|
|
2790
2770
|
height: "34",
|
|
2791
2771
|
viewBox: "0 0 175 34",
|
|
2792
2772
|
fill: "none",
|
|
2793
2773
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2794
|
-
},
|
|
2774
|
+
}, Jl = /* @__PURE__ */ r("path", {
|
|
2795
2775
|
fill: "currentColor",
|
|
2796
2776
|
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"
|
|
2797
|
-
}, null, -1),
|
|
2798
|
-
|
|
2777
|
+
}, null, -1), Yl = [
|
|
2778
|
+
Jl
|
|
2799
2779
|
];
|
|
2800
|
-
function
|
|
2801
|
-
return p(), h("svg",
|
|
2780
|
+
function Xl(t, e) {
|
|
2781
|
+
return p(), h("svg", ql, Yl);
|
|
2802
2782
|
}
|
|
2803
|
-
const
|
|
2783
|
+
const Ql = /* @__PURE__ */ be(Wl, [["render", Xl]]), es = {
|
|
2804
2784
|
"h-full": "",
|
|
2805
2785
|
"w-full": "",
|
|
2806
2786
|
flex: "",
|
|
2807
2787
|
"items-center": ""
|
|
2808
|
-
},
|
|
2788
|
+
}, ts = {
|
|
2809
2789
|
flex: "~ col gap2",
|
|
2810
2790
|
ma: "",
|
|
2811
2791
|
"px-5": ""
|
|
2812
|
-
},
|
|
2792
|
+
}, ns = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), os = {
|
|
2813
2793
|
flex: "~ col",
|
|
2814
2794
|
"mt-20": "",
|
|
2815
2795
|
"items-center": ""
|
|
2816
|
-
},
|
|
2796
|
+
}, ls = {
|
|
2817
2797
|
flex: "~",
|
|
2818
2798
|
"mt--10": "",
|
|
2819
2799
|
"items-center": "",
|
|
2820
2800
|
"justify-center": ""
|
|
2821
|
-
},
|
|
2801
|
+
}, ss = { class: "mr-1" }, as = {
|
|
2822
2802
|
key: 0,
|
|
2823
2803
|
class: "inline-block w20"
|
|
2824
|
-
},
|
|
2804
|
+
}, is = ["src", "alt"], rs = {
|
|
2825
2805
|
key: 1,
|
|
2826
2806
|
class: "mr2 inline-block min-w-20 text-center text-10 font-600"
|
|
2827
|
-
},
|
|
2807
|
+
}, us = {
|
|
2828
2808
|
mb6: "",
|
|
2829
2809
|
"mt--1": "",
|
|
2830
2810
|
"text-center": "",
|
|
2831
2811
|
"text-sm": "",
|
|
2832
2812
|
flex: "~ gap-1"
|
|
2833
|
-
},
|
|
2813
|
+
}, cs = { op40: "" }, ds = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), ps = { flex: "~ gap2 wrap" }, fs = /* @__PURE__ */ r("div", {
|
|
2834
2814
|
"i-carbon-tree-view-alt": "",
|
|
2835
2815
|
"text-3xl": ""
|
|
2836
|
-
}, null, -1),
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
],
|
|
2816
|
+
}, null, -1), vs = /* @__PURE__ */ r("code", null, "State", -1), hs = [
|
|
2817
|
+
fs,
|
|
2818
|
+
vs
|
|
2819
|
+
], ms = /* @__PURE__ */ r("div", {
|
|
2840
2820
|
"i-mdi:timeline-clock-outline": "",
|
|
2841
2821
|
"text-3xl": ""
|
|
2842
|
-
}, null, -1),
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
],
|
|
2822
|
+
}, null, -1), _s = /* @__PURE__ */ r("div", null, "Timeline", -1), gs = [
|
|
2823
|
+
ms,
|
|
2824
|
+
_s
|
|
2825
|
+
], Cs = {
|
|
2846
2826
|
flex: "~ gap-6 wrap",
|
|
2847
2827
|
"mt-5": "",
|
|
2848
2828
|
"items-center": "",
|
|
2849
2829
|
"justify-center": ""
|
|
2850
|
-
},
|
|
2830
|
+
}, xs = ["href"], ys = /* @__PURE__ */ r("div", { "i-carbon-document": "" }, null, -1), bs = /* @__PURE__ */ r("div", { "flex-auto": "" }, null, -1), ws = /* @__PURE__ */ B({
|
|
2851
2831
|
__name: "About",
|
|
2852
2832
|
setup(t) {
|
|
2853
|
-
const e = De(), n =
|
|
2833
|
+
const e = De(), n = Te(), o = I(!1), s = I(!1);
|
|
2854
2834
|
function l() {
|
|
2855
2835
|
o.value = !0;
|
|
2856
2836
|
}
|
|
2857
|
-
function
|
|
2837
|
+
function i() {
|
|
2858
2838
|
o.value = !0, s.value = !0;
|
|
2859
2839
|
}
|
|
2860
2840
|
return (u, d) => {
|
|
2861
|
-
var
|
|
2862
|
-
return p(), h("div",
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
o.value ? U("", !0) : (p(), h("span",
|
|
2869
|
-
J(
|
|
2841
|
+
var m;
|
|
2842
|
+
return p(), h("div", es, [
|
|
2843
|
+
r("div", ts, [
|
|
2844
|
+
ns,
|
|
2845
|
+
r("div", os, [
|
|
2846
|
+
r("div", ls, [
|
|
2847
|
+
r("span", ss, [
|
|
2848
|
+
o.value ? U("", !0) : (p(), h("span", as)),
|
|
2849
|
+
J(r("img", {
|
|
2870
2850
|
src: c(n).logo,
|
|
2871
2851
|
alt: `${c(n).label} Logo`,
|
|
2872
2852
|
class: "inline-block h16",
|
|
2873
|
-
onError:
|
|
2853
|
+
onError: i,
|
|
2874
2854
|
onLoad: l
|
|
2875
|
-
}, null, 40,
|
|
2876
|
-
[
|
|
2855
|
+
}, null, 40, is), [
|
|
2856
|
+
[sn, o.value && !s.value]
|
|
2877
2857
|
]),
|
|
2878
|
-
s.value ? (p(), h("span",
|
|
2858
|
+
s.value ? (p(), h("span", rs, le(c(n).label), 1)) : U("", !0)
|
|
2879
2859
|
]),
|
|
2880
|
-
|
|
2881
|
-
x(
|
|
2860
|
+
r("span", null, [
|
|
2861
|
+
x(Ql, { "h-18": "" })
|
|
2882
2862
|
])
|
|
2883
2863
|
]),
|
|
2884
|
-
|
|
2885
|
-
|
|
2864
|
+
r("div", us, [
|
|
2865
|
+
r("span", cs, le(c(n).label) + " DevTools ", 1)
|
|
2886
2866
|
])
|
|
2887
2867
|
]),
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2868
|
+
ds,
|
|
2869
|
+
r("div", ps, [
|
|
2870
|
+
r("div", {
|
|
2891
2871
|
flex: "~ col auto",
|
|
2892
2872
|
"min-w-40": "",
|
|
2893
2873
|
p4: "",
|
|
2894
2874
|
"theme-card-lime": "",
|
|
2895
2875
|
onClick: d[0] || (d[0] = (v) => c(e).push("/state"))
|
|
2896
|
-
},
|
|
2897
|
-
(
|
|
2876
|
+
}, hs),
|
|
2877
|
+
(m = c(n).timelineLayerIds) != null && m.length ? (p(), h("div", {
|
|
2898
2878
|
key: 0,
|
|
2899
2879
|
flex: "~ col auto",
|
|
2900
2880
|
"min-w-40": "",
|
|
2901
2881
|
p4: "",
|
|
2902
2882
|
"theme-card-lime": "",
|
|
2903
2883
|
onClick: d[1] || (d[1] = (v) => c(e).push("/timeline"))
|
|
2904
|
-
},
|
|
2884
|
+
}, gs)) : U("", !0)
|
|
2905
2885
|
]),
|
|
2906
|
-
|
|
2907
|
-
|
|
2886
|
+
r("div", Cs, [
|
|
2887
|
+
r("a", {
|
|
2908
2888
|
href: c(n).homepage,
|
|
2909
2889
|
target: "_blank",
|
|
2910
2890
|
flex: "~ gap1",
|
|
@@ -2913,32 +2893,32 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
2913
2893
|
hover: "op100 text-yellow",
|
|
2914
2894
|
transition: ""
|
|
2915
2895
|
}, [
|
|
2916
|
-
|
|
2896
|
+
ys,
|
|
2917
2897
|
ne(" View Documentation ")
|
|
2918
|
-
], 8,
|
|
2898
|
+
], 8, xs)
|
|
2919
2899
|
]),
|
|
2920
|
-
|
|
2900
|
+
bs
|
|
2921
2901
|
])
|
|
2922
2902
|
]);
|
|
2923
2903
|
};
|
|
2924
2904
|
}
|
|
2925
|
-
}),
|
|
2905
|
+
}), $s = { class: "h-full flex flex-col" }, ks = /* @__PURE__ */ B({
|
|
2926
2906
|
__name: "Settings",
|
|
2927
2907
|
setup(t) {
|
|
2928
|
-
const e = ve("pluginSettings"), n =
|
|
2929
|
-
function l(
|
|
2930
|
-
e.value =
|
|
2908
|
+
const e = ve("pluginSettings"), n = Te(), o = E(() => e.value.options), s = E(() => e.value.values);
|
|
2909
|
+
function l(i) {
|
|
2910
|
+
e.value = i;
|
|
2931
2911
|
}
|
|
2932
|
-
return (
|
|
2933
|
-
x(
|
|
2912
|
+
return (i, u) => (p(), h("div", $s, [
|
|
2913
|
+
x(Se, {
|
|
2934
2914
|
"doc-link": c(n).homepage
|
|
2935
2915
|
}, {
|
|
2936
2916
|
default: M(() => [
|
|
2937
|
-
x(
|
|
2917
|
+
x(Ie)
|
|
2938
2918
|
]),
|
|
2939
2919
|
_: 1
|
|
2940
2920
|
}, 8, ["doc-link"]),
|
|
2941
|
-
x(
|
|
2921
|
+
x(Gt, {
|
|
2942
2922
|
"plugin-id": c(n).id,
|
|
2943
2923
|
options: o.value,
|
|
2944
2924
|
values: s.value,
|
|
@@ -2946,69 +2926,69 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
2946
2926
|
}, null, 8, ["plugin-id", "options", "values"])
|
|
2947
2927
|
]));
|
|
2948
2928
|
}
|
|
2949
|
-
}),
|
|
2929
|
+
}), Is = { class: "h-full flex flex-col" }, Ss = { class: "h-full flex flex-col p2" }, Ts = {
|
|
2950
2930
|
key: 0,
|
|
2951
2931
|
class: "mb-1 flex justify-end pb-1",
|
|
2952
2932
|
border: "b dashed base"
|
|
2953
|
-
},
|
|
2933
|
+
}, Es = { class: "flex items-center gap-2 px-1" }, Vs = ["onClick"], Ns = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Rs = { class: "h-full flex flex-col p2" }, As = {
|
|
2954
2934
|
key: 0,
|
|
2955
2935
|
class: "mb-1 flex justify-end pb-1",
|
|
2956
2936
|
border: "b dashed base"
|
|
2957
|
-
},
|
|
2937
|
+
}, Ds = { class: "flex items-center gap-2 px-1" }, Ps = ["onClick"], Ms = /* @__PURE__ */ B({
|
|
2958
2938
|
__name: "Index",
|
|
2959
2939
|
setup(t) {
|
|
2960
|
-
const { expanded: e } = he(), { expanded: n } = he("custom-inspector-state"), o =
|
|
2940
|
+
const { expanded: e } = he(), { expanded: n } = he("custom-inspector-state"), o = Te(), s = E(() => o.value.id), l = I([]), i = I([]), u = I([]), d = E(() => {
|
|
2961
2941
|
var b, S;
|
|
2962
2942
|
return (b = u.value) != null && b.length ? y((S = u.value) == null ? void 0 : S[0]) : [];
|
|
2963
|
-
}),
|
|
2964
|
-
function y(b, S = [],
|
|
2943
|
+
}), m = E(() => k(u.value)), v = E(() => m.value.map((b) => b.id)), a = I(""), f = I({}), _ = E(() => !Object.keys(f.value).length);
|
|
2944
|
+
function y(b, S = [], C = []) {
|
|
2965
2945
|
var D;
|
|
2966
|
-
return S.push(b.id), ((D = b.children) == null ? void 0 : D.length) === 0 &&
|
|
2967
|
-
y(F, S,
|
|
2968
|
-
}), S.pop(),
|
|
2946
|
+
return S.push(b.id), ((D = b.children) == null ? void 0 : D.length) === 0 && C.push([...S]), Array.isArray(b.children) && b.children.forEach((F) => {
|
|
2947
|
+
y(F, S, C);
|
|
2948
|
+
}), S.pop(), C;
|
|
2969
2949
|
}
|
|
2970
|
-
function
|
|
2971
|
-
const
|
|
2950
|
+
function g(b, S) {
|
|
2951
|
+
const C = [];
|
|
2972
2952
|
return b == null || b.forEach((D) => {
|
|
2973
|
-
|
|
2974
|
-
}), [...new Set(
|
|
2953
|
+
C.push(...D.slice(0, S + 1));
|
|
2954
|
+
}), [...new Set(C)];
|
|
2975
2955
|
}
|
|
2976
2956
|
function k(b) {
|
|
2977
|
-
const S = [],
|
|
2957
|
+
const S = [], C = (D) => {
|
|
2978
2958
|
D == null || D.forEach((F) => {
|
|
2979
2959
|
var se;
|
|
2980
|
-
S.push(F), (se = F.children) != null && se.length &&
|
|
2960
|
+
S.push(F), (se = F.children) != null && se.length && C(F.children);
|
|
2981
2961
|
});
|
|
2982
2962
|
};
|
|
2983
|
-
return
|
|
2963
|
+
return C(b), S;
|
|
2984
2964
|
}
|
|
2985
|
-
function
|
|
2965
|
+
function j() {
|
|
2986
2966
|
A.value.getInspectorNodeActions(s.value).then((b) => {
|
|
2987
2967
|
l.value = b;
|
|
2988
2968
|
});
|
|
2989
2969
|
}
|
|
2990
|
-
function
|
|
2970
|
+
function O() {
|
|
2991
2971
|
A.value.getInspectorActions(s.value).then((b) => {
|
|
2992
|
-
|
|
2972
|
+
i.value = b;
|
|
2993
2973
|
});
|
|
2994
2974
|
}
|
|
2995
|
-
|
|
2975
|
+
j(), O();
|
|
2996
2976
|
function N(b) {
|
|
2997
2977
|
A.value.callInspectorNodeAction(s.value, b, a.value);
|
|
2998
2978
|
}
|
|
2999
|
-
function
|
|
2979
|
+
function w(b) {
|
|
3000
2980
|
A.value.callInspectorAction(s.value, b);
|
|
3001
2981
|
}
|
|
3002
2982
|
function R(b) {
|
|
3003
2983
|
var S;
|
|
3004
|
-
for (const
|
|
3005
|
-
(S = b[
|
|
2984
|
+
for (const C in b)
|
|
2985
|
+
(S = b[C]) != null && S.length || delete b[C];
|
|
3006
2986
|
return b;
|
|
3007
2987
|
}
|
|
3008
2988
|
function H(b) {
|
|
3009
2989
|
A.value.getInspectorState({ inspectorId: s.value, nodeId: b }).then((S) => {
|
|
3010
|
-
const
|
|
3011
|
-
|
|
2990
|
+
const C = Y(S);
|
|
2991
|
+
C && (f.value = R(C), n.value = Array.from({ length: Object.keys(f.value).length }, (D, F) => `${F}`));
|
|
3012
2992
|
});
|
|
3013
2993
|
}
|
|
3014
2994
|
function K() {
|
|
@@ -3020,32 +3000,32 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3020
3000
|
const Z = () => {
|
|
3021
3001
|
A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((b) => {
|
|
3022
3002
|
const S = Y(b);
|
|
3023
|
-
u.value = S, !a.value && S.length && (a.value = S[0].id, e.value =
|
|
3003
|
+
u.value = S, !a.value && S.length && (a.value = S[0].id, e.value = g(d.value, 1), H(S[0].id));
|
|
3024
3004
|
});
|
|
3025
3005
|
};
|
|
3026
3006
|
Pt(s).toBeTruthy().then(Z);
|
|
3027
3007
|
function T(b) {
|
|
3028
|
-
var
|
|
3008
|
+
var C, D;
|
|
3029
3009
|
const S = Y(b);
|
|
3030
|
-
!S.rootNodes.length || S.inspectorId !== s.value || (u.value = S.rootNodes, v.value.includes(a.value) || (a.value = (D = (
|
|
3010
|
+
!S.rootNodes.length || S.inspectorId !== s.value || (u.value = S.rootNodes, v.value.includes(a.value) || (a.value = (D = (C = u.value) == null ? void 0 : C[0]) == null ? void 0 : D.id, e.value = g(d.value, 1)));
|
|
3031
3011
|
}
|
|
3032
3012
|
function P(b) {
|
|
3033
3013
|
const S = Y(b);
|
|
3034
3014
|
if (S.inspectorId !== s.value || !S.state || S.nodeId !== a.value)
|
|
3035
3015
|
return;
|
|
3036
|
-
const { inspectorId:
|
|
3016
|
+
const { inspectorId: C, ...D } = S.state;
|
|
3037
3017
|
f.value = R(D);
|
|
3038
3018
|
}
|
|
3039
3019
|
return Re(() => {
|
|
3040
3020
|
A.functions.on(W.INSPECTOR_TREE_UPDATED, T), A.functions.on(W.INSPECTOR_STATE_UPDATED, P);
|
|
3041
3021
|
}), ye(() => {
|
|
3042
3022
|
A.functions.off(W.INSPECTOR_TREE_UPDATED, T), A.functions.off(W.INSPECTOR_STATE_UPDATED, P);
|
|
3043
|
-
}), (b, S) => (p(), h("div",
|
|
3044
|
-
x(
|
|
3023
|
+
}), (b, S) => (p(), h("div", Is, [
|
|
3024
|
+
x(Se, {
|
|
3045
3025
|
"doc-link": c(o).homepage
|
|
3046
3026
|
}, {
|
|
3047
3027
|
default: M(() => [
|
|
3048
|
-
x(
|
|
3028
|
+
x(Ie)
|
|
3049
3029
|
]),
|
|
3050
3030
|
_: 1
|
|
3051
3031
|
}, 8, ["doc-link"]),
|
|
@@ -3060,15 +3040,15 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3060
3040
|
"h-full": ""
|
|
3061
3041
|
}, {
|
|
3062
3042
|
default: M(() => {
|
|
3063
|
-
var
|
|
3043
|
+
var C;
|
|
3064
3044
|
return [
|
|
3065
|
-
|
|
3066
|
-
(
|
|
3067
|
-
|
|
3068
|
-
(p(!0), h(te, null, ae(
|
|
3045
|
+
r("div", Ss, [
|
|
3046
|
+
(C = i.value) != null && C.length ? (p(), h("div", Ts, [
|
|
3047
|
+
r("div", Es, [
|
|
3048
|
+
(p(!0), h(te, null, ae(i.value, (D, F) => J((p(), h("div", {
|
|
3069
3049
|
key: F,
|
|
3070
3050
|
class: "flex items-center gap1",
|
|
3071
|
-
onClick: (se) =>
|
|
3051
|
+
onClick: (se) => w(F)
|
|
3072
3052
|
}, [
|
|
3073
3053
|
x(c(yt), {
|
|
3074
3054
|
name: `baseline-${D.icon.replace(/\_/g, "-")}`,
|
|
@@ -3077,7 +3057,7 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3077
3057
|
"text-base": "",
|
|
3078
3058
|
"hover:op100": ""
|
|
3079
3059
|
}, null, 8, ["name"])
|
|
3080
|
-
], 8,
|
|
3060
|
+
], 8, Vs)), [
|
|
3081
3061
|
[
|
|
3082
3062
|
c(Q),
|
|
3083
3063
|
{ content: D.tooltip },
|
|
@@ -3087,7 +3067,7 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3087
3067
|
])), 128))
|
|
3088
3068
|
])
|
|
3089
3069
|
])) : U("", !0),
|
|
3090
|
-
|
|
3070
|
+
r("div", Ns, [
|
|
3091
3071
|
x(Me, {
|
|
3092
3072
|
modelValue: a.value,
|
|
3093
3073
|
"onUpdate:modelValue": S[0] || (S[0] = (D) => a.value = D),
|
|
@@ -3101,11 +3081,11 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3101
3081
|
}),
|
|
3102
3082
|
x(c(ue), { size: "60" }, {
|
|
3103
3083
|
default: M(() => {
|
|
3104
|
-
var
|
|
3084
|
+
var C;
|
|
3105
3085
|
return [
|
|
3106
|
-
|
|
3107
|
-
(
|
|
3108
|
-
|
|
3086
|
+
r("div", Rs, [
|
|
3087
|
+
(C = l.value) != null && C.length ? (p(), h("div", As, [
|
|
3088
|
+
r("div", Ds, [
|
|
3109
3089
|
(p(!0), h(te, null, ae(l.value, (D, F) => J((p(), h("div", {
|
|
3110
3090
|
key: F,
|
|
3111
3091
|
class: "flex items-center gap1",
|
|
@@ -3118,7 +3098,7 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3118
3098
|
"text-base": "",
|
|
3119
3099
|
"hover:op100": ""
|
|
3120
3100
|
}, null, 8, ["name"])
|
|
3121
|
-
], 8,
|
|
3101
|
+
], 8, Ps)), [
|
|
3122
3102
|
[
|
|
3123
3103
|
c(Q),
|
|
3124
3104
|
{ content: D.tooltip },
|
|
@@ -3128,7 +3108,7 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3128
3108
|
])), 128))
|
|
3129
3109
|
])
|
|
3130
3110
|
])) : U("", !0),
|
|
3131
|
-
a.value && !
|
|
3111
|
+
a.value && !_.value ? (p(), z(Pe, {
|
|
3132
3112
|
key: 1,
|
|
3133
3113
|
data: f.value,
|
|
3134
3114
|
"node-id": a.value,
|
|
@@ -3156,69 +3136,69 @@ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
|
|
|
3156
3136
|
}))
|
|
3157
3137
|
]));
|
|
3158
3138
|
}
|
|
3159
|
-
}),
|
|
3139
|
+
}), Hs = /* @__PURE__ */ B({
|
|
3160
3140
|
__name: "Index",
|
|
3161
3141
|
setup(t) {
|
|
3162
|
-
const e =
|
|
3142
|
+
const e = Te();
|
|
3163
3143
|
return (n, o) => (p(), z(vt, {
|
|
3164
3144
|
"layer-ids": c(e).timelineLayerIds,
|
|
3165
3145
|
"doc-link": c(e).homepage
|
|
3166
3146
|
}, null, 8, ["layer-ids", "doc-link"]));
|
|
3167
3147
|
}
|
|
3168
|
-
}),
|
|
3169
|
-
/* @__PURE__ */
|
|
3170
|
-
/* @__PURE__ */
|
|
3148
|
+
}), Ls = {}, Os = (t) => (ot("data-v-b8018f07"), t = t(), lt(), t), js = { class: "h-screen w-screen $ui-fcc flex-col" }, Us = /* @__PURE__ */ Os(() => /* @__PURE__ */ r("div", { class: "outer" }, [
|
|
3149
|
+
/* @__PURE__ */ r("div", { class: "inner" }, [
|
|
3150
|
+
/* @__PURE__ */ r("i", {
|
|
3171
3151
|
class: "i-logos-vue inline-block h8! w8!",
|
|
3172
3152
|
alt: "Vue logo"
|
|
3173
3153
|
})
|
|
3174
3154
|
])
|
|
3175
3155
|
], -1));
|
|
3176
|
-
function
|
|
3177
|
-
return p(), h("div",
|
|
3178
|
-
|
|
3156
|
+
function zs(t, e) {
|
|
3157
|
+
return p(), h("div", js, [
|
|
3158
|
+
Us,
|
|
3179
3159
|
et(t.$slots, "default", {}, void 0, !0)
|
|
3180
3160
|
]);
|
|
3181
3161
|
}
|
|
3182
|
-
const
|
|
3162
|
+
const Bs = /* @__PURE__ */ be(Ls, [["render", zs], ["__scopeId", "data-v-b8018f07"]]), Zs = {
|
|
3183
3163
|
"h-full": "",
|
|
3184
3164
|
"w-full": ""
|
|
3185
|
-
},
|
|
3165
|
+
}, Fs = { key: 0 }, la = /* @__PURE__ */ B({
|
|
3186
3166
|
__name: "index",
|
|
3187
3167
|
props: {
|
|
3188
3168
|
id: {}
|
|
3189
3169
|
},
|
|
3190
3170
|
emits: ["loadError"],
|
|
3191
3171
|
setup(t, { emit: e }) {
|
|
3192
|
-
const n = t, o = e, s =
|
|
3193
|
-
_e("pluginSettings",
|
|
3194
|
-
const u =
|
|
3172
|
+
const n = t, o = e, s = Wt(), l = I(!1), i = I(null);
|
|
3173
|
+
_e("pluginSettings", i);
|
|
3174
|
+
const u = E(() => {
|
|
3195
3175
|
var a;
|
|
3196
3176
|
return [
|
|
3197
3177
|
{
|
|
3198
3178
|
path: "/state",
|
|
3199
3179
|
name: "State",
|
|
3200
|
-
component:
|
|
3180
|
+
component: Ms,
|
|
3201
3181
|
icon: "i-carbon-tree-view-alt"
|
|
3202
3182
|
},
|
|
3203
3183
|
((a = s.value.timelineLayerIds) == null ? void 0 : a.length) && {
|
|
3204
3184
|
path: "/timeline",
|
|
3205
3185
|
name: "Timeline",
|
|
3206
|
-
component:
|
|
3186
|
+
component: Hs,
|
|
3207
3187
|
icon: "i-mdi:timeline-clock-outline"
|
|
3208
3188
|
},
|
|
3209
3189
|
{
|
|
3210
3190
|
path: "/about",
|
|
3211
3191
|
name: "About",
|
|
3212
|
-
component:
|
|
3192
|
+
component: ws
|
|
3213
3193
|
},
|
|
3214
|
-
|
|
3194
|
+
i.value && {
|
|
3215
3195
|
path: "/settings",
|
|
3216
3196
|
name: "Settings",
|
|
3217
|
-
component:
|
|
3197
|
+
component: ks,
|
|
3218
3198
|
icon: "i-mdi:cog-outline"
|
|
3219
3199
|
}
|
|
3220
3200
|
].filter(Boolean);
|
|
3221
|
-
}), { VirtualRouterView: d, restoreRouter:
|
|
3201
|
+
}), { VirtualRouterView: d, restoreRouter: m } = it(u, {
|
|
3222
3202
|
defaultRoutePath: "/state"
|
|
3223
3203
|
});
|
|
3224
3204
|
function v() {
|
|
@@ -3233,11 +3213,11 @@ const Gs = /* @__PURE__ */ be(Us, [["render", Fs], ["__scopeId", "data-v-b8018f0
|
|
|
3233
3213
|
id: a == null ? void 0 : a.id,
|
|
3234
3214
|
label: a == null ? void 0 : a.label,
|
|
3235
3215
|
logo: a == null ? void 0 : a.logo,
|
|
3236
|
-
timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((
|
|
3216
|
+
timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((_) => _.id)
|
|
3237
3217
|
};
|
|
3238
|
-
s.value = f,
|
|
3218
|
+
s.value = f, m(), l.value = !1;
|
|
3239
3219
|
}), A.value.getPluginSettings(n.id).then((a) => {
|
|
3240
|
-
a.options ?
|
|
3220
|
+
a.options ? i.value = a : i.value = null;
|
|
3241
3221
|
});
|
|
3242
3222
|
});
|
|
3243
3223
|
}
|
|
@@ -3247,14 +3227,14 @@ const Gs = /* @__PURE__ */ be(Us, [["render", Fs], ["__scopeId", "data-v-b8018f0
|
|
|
3247
3227
|
immediate: !0
|
|
3248
3228
|
}), ye(() => {
|
|
3249
3229
|
A.value.unhighlight();
|
|
3250
|
-
}), (a, f) => (p(), h("div",
|
|
3251
|
-
l.value ? (p(), h("div",
|
|
3252
|
-
x(
|
|
3230
|
+
}), (a, f) => (p(), h("div", Zs, [
|
|
3231
|
+
l.value ? (p(), h("div", Fs, [
|
|
3232
|
+
x(Bs)
|
|
3253
3233
|
])) : (p(), z(c(d), { key: 1 }))
|
|
3254
3234
|
]));
|
|
3255
3235
|
}
|
|
3256
3236
|
});
|
|
3257
|
-
function
|
|
3237
|
+
function sa() {
|
|
3258
3238
|
const t = I([]), e = I([]);
|
|
3259
3239
|
function n(s) {
|
|
3260
3240
|
e.value = s, s.length < t.value.length && (t.value = []), e.value.forEach((l) => {
|
|
@@ -3279,9 +3259,9 @@ function ra() {
|
|
|
3279
3259
|
};
|
|
3280
3260
|
}
|
|
3281
3261
|
export {
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3262
|
+
na as Components,
|
|
3263
|
+
la as CustomInspector,
|
|
3264
|
+
ta as Pinia,
|
|
3265
|
+
oa as Router,
|
|
3266
|
+
sa as useCustomInspector
|
|
3287
3267
|
};
|