@nuxt/devtools-nightly 2.4.0-29091142.bbfd37e → 2.4.1-29150090.ad8f305
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/chunks/module-main.mjs +16 -54
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +23 -23
- package/dist/client/404.html +23 -23
- package/dist/client/_nuxt/__blank-mumgdw29.js +1 -0
- package/dist/client/_nuxt/analyze-build-f2qpp6jm.js +1 -0
- package/dist/client/_nuxt/assets-hnuh0mae.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/c48bebdc-b199-49c2-8188-dedb2e144aa9.json +1 -0
- package/dist/client/_nuxt/{client-jvnhv8ra.js → client-jlcyzfwz.js} +1 -1
- package/dist/client/_nuxt/code-diff.vue-b5lbtsap.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-b6zmibe7.js +1 -0
- package/dist/client/_nuxt/components-boqbn6wn.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-e5jvlwop.js +1 -0
- package/dist/client/_nuxt/{custom-_name_-o7dv9kij.js → custom-_name_-btzoigcx.js} +1 -1
- package/dist/client/_nuxt/data-schema-button.vue-l4lxzyij.js +1 -0
- package/dist/client/_nuxt/{data-schema-drawer-nra0hqyp.js → data-schema-drawer-hd9tzog6.js} +2 -2
- package/dist/client/_nuxt/debug-9fwp3ytg.js +1 -0
- package/dist/client/_nuxt/{default-iucf9a1s.js → default-b7912fqb.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-hy8s2ai6.js → duration-display.vue-l7hutejt.js} +1 -1
- package/dist/client/_nuxt/entry.css-gmgc8zz6.css +1 -0
- package/dist/client/_nuxt/{error-404-h1qekzux.js → error-404-j3kvqc8z.js} +1 -1
- package/dist/client/_nuxt/error-404.css-elh6uwdu.css +1 -0
- package/dist/client/_nuxt/{error-500-t2ub6siu.js → error-500-fpytr659.js} +1 -1
- package/dist/client/_nuxt/error-500.css-bxkdntg7.css +1 -0
- package/dist/client/_nuxt/{error-nc04qshe.js → error-h96ha3l5.js} +5 -5
- package/dist/client/_nuxt/{filepath-item.vue-ifezcc65.js → filepath-item.vue-pjacbi6e.js} +1 -1
- package/dist/client/_nuxt/full-ndf2cbnb.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-l40wc2st.js → help-fab.vue-gg941gpi.js} +1 -1
- package/dist/client/_nuxt/hooks-g9epqvqv.js +1 -0
- package/dist/client/_nuxt/{imports-ks2ns1wf.js → imports-o8fie52q.js} +1 -1
- package/dist/client/_nuxt/index-orgvtm8y.js +1 -0
- package/dist/client/_nuxt/kcxntt4c.js +15 -0
- package/dist/client/_nuxt/launch-page.vue-n602viwk.js +1 -0
- package/dist/client/_nuxt/modules-c754c74x.js +1 -0
- package/dist/client/_nuxt/nbadge-g97w4htj.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-e9xa2wmo.js +1 -0
- package/dist/client/_nuxt/{ncode-block.vue-8qivpy1q.js → ncode-block.vue-lge6rogf.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-milk9g16.js → ndrawer.vue-k1x9j44v.js} +1 -1
- package/dist/client/_nuxt/ndropdown.vue-eqr6jtxu.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-d27ih16g.js +1 -0
- package/dist/client/_nuxt/{nlink.vue-hz7xx99l.js → nlink.vue-gv0kxm0q.js} +1 -1
- package/dist/client/_nuxt/nmarkdown.vue-isat7p33.js +1 -0
- package/dist/client/_nuxt/{nnavbar.vue-fyzefa7j.js → nnavbar.vue-npkjfqtu.js} +1 -1
- package/dist/client/_nuxt/none-no6wpjfq.js +1 -0
- package/dist/client/_nuxt/nsection-block-h8ljvdgq.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-f7fjeew6.js +1 -0
- package/dist/client/_nuxt/{nselect.vue-cspgavw4.js → nselect.vue-eg36z7xq.js} +1 -1
- package/dist/client/_nuxt/{nswitch.vue-n63sh5rf.js → nswitch.vue-f07mzo8x.js} +1 -1
- package/dist/client/_nuxt/open-graph-s33h1caw.js +3 -0
- package/dist/client/_nuxt/overview-etc49gqj.js +1 -0
- package/dist/client/_nuxt/pages-n09nkqmg.js +1 -0
- package/dist/client/_nuxt/payload-c7whkfb0.js +1 -0
- package/dist/client/_nuxt/pinia-birzn67w.js +1 -0
- package/dist/client/_nuxt/plugins-kam33ffh.js +1 -0
- package/dist/client/_nuxt/render-tree-o0447cew.js +1 -0
- package/dist/client/_nuxt/{runtime-configs-ecl9pb0m.js → runtime-configs-f07iylm6.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-c7lnu84n.js → server-discovery-ekped2dy.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-byqawym7.js → server-route-inputs.vue-o9uv8sv5.js} +1 -1
- package/dist/client/_nuxt/{server-routes-jvxbktct.js → server-routes-ogw7poz3.js} +2 -2
- package/dist/client/_nuxt/server-tasks-o7f787bg.js +1 -0
- package/dist/client/_nuxt/settings-l57gc40v.js +1 -0
- package/dist/client/_nuxt/{stacktrace-list.vue-dsmfsr8d.js → stacktrace-list.vue-o9lrdclf.js} +1 -1
- package/dist/client/_nuxt/{state-components-dgy5t44w.js → state-components-lhda2i5c.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-f0gmtda7.js +1 -0
- package/dist/client/_nuxt/state-modules-ddtb2zpx.js +1 -0
- package/dist/client/_nuxt/storage-nfmfy7yx.js +1 -0
- package/dist/client/_nuxt/terminals-nz3pdt0w.js +1 -0
- package/dist/client/_nuxt/{timeline-n7qrr0h5.js → timeline-fntkjvvs.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime-kct8zzpi.js → unocss-runtime-n76zvjc0.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-pb6xqf2y.js +3857 -0
- package/dist/client/_nuxt/vendor/{quicktype-core-d6crrn92.js → quicktype-core-lhaz4hgj.js} +57 -57
- package/dist/client/_nuxt/vendor/shiki-hjqm7vcp.js +152 -0
- package/dist/client/_nuxt/vendor/unocss-k776m6tm.js +2 -0
- package/dist/client/_nuxt/vendor/{vis-fth2qiu5.js → vis-gqe7ml2e.js} +2 -2
- package/dist/client/_nuxt/{virtual-files-ej2c9mxq.js → virtual-files-bx330vdo.js} +1 -1
- package/dist/client/_nuxt/vue-devtools-f2t5s0pw.js +2 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-iodr444e.js → vue-virtual-scroller.esm-nuoya9vo.js} +2 -2
- package/dist/client/index.html +23 -23
- package/dist/module.d.mts +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/client.d.ts +2 -1
- package/dist/runtime/plugins/view/client.js +57 -28
- package/dist/runtime/plugins/view/state.d.ts +1 -3
- package/dist/runtime/plugins/view/state.js +0 -3
- package/dist/runtime/plugins/view/utils.d.ts +0 -28
- package/dist/runtime/plugins/view/utils.js +1 -125
- package/dist/runtime/shared/hooks.d.ts +1 -0
- package/dist/shared/{devtools-nightly.c069f83f.mjs → devtools-nightly.Dlu0WIXO.mjs} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/webcomponents/index.d.mts +20 -0
- package/dist/webcomponents/index.mjs +1543 -0
- package/package.json +46 -38
- package/types.d.ts +1 -1
- package/dist/client/_nuxt/__blank-catci4by.js +0 -1
- package/dist/client/_nuxt/analyze-build-jttd63ji.js +0 -1
- package/dist/client/_nuxt/assets-gglzn90t.js +0 -16
- package/dist/client/_nuxt/builds/meta/4a9bdca8-5c22-4fc7-8398-437f588e3c32.json +0 -1
- package/dist/client/_nuxt/code-diff.vue-k7idjz3p.js +0 -8
- package/dist/client/_nuxt/code-snippets.vue-g128u5r5.js +0 -1
- package/dist/client/_nuxt/components-kigyj3j5.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-h5elegyf.js +0 -1
- package/dist/client/_nuxt/data-schema-button.vue-nju1b5wx.js +0 -1
- package/dist/client/_nuxt/debug-kjznaoju.js +0 -1
- package/dist/client/_nuxt/entry.css-kd26hpr1.css +0 -1
- package/dist/client/_nuxt/error-404.css-itl1ee4a.css +0 -1
- package/dist/client/_nuxt/error-500.css-biq96mi6.css +0 -1
- package/dist/client/_nuxt/full-ezcyueqe.js +0 -1
- package/dist/client/_nuxt/h41qhlrg.js +0 -15
- package/dist/client/_nuxt/hooks-fg8blpj2.js +0 -1
- package/dist/client/_nuxt/index-naevprq0.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-es9mw8wq.js +0 -1
- package/dist/client/_nuxt/modules-n545sb0n.js +0 -1
- package/dist/client/_nuxt/nbadge-mvj0vtjl.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-pl5ui7lh.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-pboodvft.js +0 -1
- package/dist/client/_nuxt/nicon-title.vue-m2ftlsrz.js +0 -1
- package/dist/client/_nuxt/nmarkdown.vue-hrdikzmp.js +0 -1
- package/dist/client/_nuxt/none-f4uo5y2t.js +0 -1
- package/dist/client/_nuxt/nsection-block-bs869psm.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-nnsdw54y.js +0 -1
- package/dist/client/_nuxt/open-graph-l849l3tf.js +0 -3
- package/dist/client/_nuxt/overview-bnjjyc0t.js +0 -1
- package/dist/client/_nuxt/pages-i5hb56o1.js +0 -1
- package/dist/client/_nuxt/payload-bnkrkjeo.js +0 -1
- package/dist/client/_nuxt/pinia-mobxec2a.js +0 -1
- package/dist/client/_nuxt/plugins-l1mazldj.js +0 -1
- package/dist/client/_nuxt/render-tree-h4kavos7.js +0 -1
- package/dist/client/_nuxt/server-tasks-jf5t32u9.js +0 -1
- package/dist/client/_nuxt/settings-hnydc4hu.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-o6mvc5yx.js +0 -1
- package/dist/client/_nuxt/state-modules-mpfbsfka.js +0 -1
- package/dist/client/_nuxt/storage-chuzvi78.js +0 -1
- package/dist/client/_nuxt/terminals-7kdtt06d.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-exjsfanq.js +0 -3872
- package/dist/client/_nuxt/vendor/shiki-hjrnbayr.js +0 -289
- package/dist/client/_nuxt/vendor/unocss-n30bmhn8.js +0 -2
- package/dist/client/_nuxt/vue-devtools-c54ommx5.js +0 -2
- package/dist/dirs.d.ts +0 -7
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/runtime/plugins/view/FrameBox.vue +0 -167
- package/dist/runtime/plugins/view/Main.vue +0 -432
- package/dist/shared/devtools-nightly.427ec2e8.d.ts +0 -57
- package/dist/types.d.ts +0 -41
- /package/dist/shared/{devtools-nightly.427ec2e8.d.mts → devtools-nightly.C1a10l_c.d.mts} +0 -0
|
@@ -0,0 +1,1543 @@
|
|
|
1
|
+
import { isRef, toRefs as toRefs$1, customRef, toValue, watch, getCurrentScope, onScopeDispose, onMounted, nextTick, getCurrentInstance, shallowRef, computed, unref, ref, defineComponent, mergeModels, useModel, watchEffect, withDirectives, createElementBlock, openBlock, createCommentVNode, createElementVNode, withModifiers, vShow, reactive, normalizeClass, normalizeStyle, toDisplayString, Fragment, createVNode, defineCustomElement, useTemplateRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
const css = `*{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{--un-content:""}:after{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button{-webkit-appearance:button;background-color:transparent;background-image:none}[type=button]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=reset]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder{opacity:1;color:#9ca3af}textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--un-text-opacity:100%}@property --nuxt-devtools-inspect-border-angle{syntax:"<angle>";inherits:false;initial-value:90deg}.nuxt-devtools-inspect-running-border{filter:blur(10px);--nuxt-devtools-inspect-border-angle:0deg;background:conic-gradient(from var(--nuxt-devtools-inspect-border-angle),#00dc82,#00e6e8,#42e200,#0086e2,#00dc82)border-box;-webkit-mask:linear-gradient(#fff 0,#fff 0) padding-box,linear-gradient(#fff 0,#fff 0);-webkit-mask-composite:destination-out;transition:all .5s;animation:1s linear infinite color-rotate-background;mask-image:linear-gradient(#fff 0,#fff 0),linear-gradient(#fff 0,#fff 0);mask-position:0 0,0 0;mask-size:auto,auto;mask-repeat:repeat,repeat;mask-clip:padding-box,border-box;mask-origin:padding-box,border-box;mask-composite:exclude;mask-mode:match-source,match-source}.nuxt-devtools-inspect-neon{background-image:linear-gradient(90deg,#00dc82,#00e6e8,#42e200,#00dc82,#00e6e8,#42e200,#00dc82,#00e6e8,#42e200);background-position:0;background-size:400% 400%}.nuxt-devtools-inspect-neon.running{animation:3s linear infinite neon-background}@keyframes neon-background{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.nuxt-devtools-frame{z-index:2147483645;-webkit-font-smoothing:antialiased;width:100%;height:100%;position:fixed}.nuxt-devtools-frame iframe{background:var(--nuxt-devtools-widget-bg);border:1px solid rgba(125,125,125,.2);-webkit-border-radius:10px;border-radius:10px;outline:none;width:100%;height:100%}.nuxt-devtools-resize-handle-horizontal{cursor:ns-resize;-webkit-border-radius:5px;border-radius:5px;height:10px;margin:-5px 0;position:absolute;left:6px;right:6px}.nuxt-devtools-resize-handle-vertical{cursor:ew-resize;-webkit-border-radius:5px;border-radius:5px;width:10px;margin:0 -5px;position:absolute;top:6px;bottom:0}.nuxt-devtools-resize-handle-corner{-webkit-border-radius:6px;border-radius:6px;width:14px;height:14px;margin:-6px;position:absolute}.nuxt-devtools-resize-handle:hover{background:rgba(125,125,125,.1)}#nuxt-devtools-anchor{z-index:2147483645;transform-origin:50%;box-sizing:border-box;width:0;font-family:Arial,Helvetica,sans-serif;position:fixed;transform:translate(-50%,-50%)rotate(0);font-size:15px!important}#nuxt-devtools-anchor *{box-sizing:border-box}#nuxt-devtools-anchor button{cursor:pointer;color:inherit;background:0 0;border:none;outline:none;margin:0;padding:0}#nuxt-devtools-anchor .nuxt-devtools-label{align-items:center;justify-items:center;gap:3px;padding:0 7px 0 8px;font-size:.8em;line-height:1em;display:flex}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-main{opacity:.8}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-secondary{opacity:.5;font-size:.8em;line-height:.6em}#nuxt-devtools-anchor .nuxt-devtools-nuxt-button{flex:none}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-nuxt-button{transform:rotate(-90deg)}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-label{flex-direction:column;gap:2px;padding:0 10px;transform:rotate(-90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel{border:1px solid var(--nuxt-devtools-widget-border);background-color:var(--nuxt-devtools-widget-bg);backdrop-filter:blur(10px);height:30px;color:var(--nuxt-devtools-widget-fg);box-shadow:2px 2px 8px var(--nuxt-devtools-widget-shadow);user-select:none;touch-action:none;-webkit-border-radius:100px;border-radius:100px;justify-content:flex-start;align-items:center;gap:2px;max-width:150px;padding:2px 2px 2px 2.5px;transition:all .6s,max-width .6s,padding .5s,transform .4s,opacity .2s;display:flex;position:absolute;top:0;left:0;overflow:hidden;transform:translate(-50%,-50%)}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel{max-width:32px;padding:2px 0}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-panel{box-shadow:2px -2px 8px var(--nuxt-devtools-widget-shadow);transform:translate(-50%,-50%)rotate(90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel-content{transition:opacity .4s}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel-content{opacity:0}#nuxt-devtools-anchor .nuxt-devtools-icon-button{opacity:.8;border-width:0;-webkit-border-radius:100%;border-radius:100%;justify-content:center;align-items:center;width:30px;height:30px;transition:opacity .2s ease-in-out;display:flex}#nuxt-devtools-anchor .nuxt-devtools-icon-button:hover{opacity:1}#nuxt-devtools-anchor:hover .nuxt-devtools-glowing{opacity:.6}#nuxt-devtools-anchor .nuxt-devtools-glowing{opacity:0;pointer-events:none;z-index:-1;filter:blur(60px);background-image:linear-gradient(45deg,#00dc82,#00dc82,#00dc82);-webkit-border-radius:9999px;border-radius:9999px;width:160px;height:160px;transition:all 1s;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}@media print{#nuxt-devtools-anchor{display:none}}*{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-ph-arrow-bend-left-up-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M152 80H56l48-48Z' opacity='.2'/%3E%3Cpath d='M200 216a88.1 88.1 0 0 1-88-88V88h40a8 8 0 0 0 5.66-13.66l-48-48a8 8 0 0 0-11.32 0l-48 48A8 8 0 0 0 56 88h40v40a104.11 104.11 0 0 0 104 104a8 8 0 0 0 0-16M104 43.31L132.69 72H75.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-arrow-up-right-light{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M198 64v104a6 6 0 0 1-12 0V78.48L68.24 196.24a6 6 0 0 1-8.48-8.48L177.52 70H88a6 6 0 0 1 0-12h104a6 6 0 0 1 6 6'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-x{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.container{width:100%}.border-base{--un-border-opacity:.13;border-color:rgba(136,136,136,var(--un-border-opacity))}.bg-glass{--un-backdrop-blur:blur(5px);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);background-color:rgba(255,255,255,.75)}.color-base{--un-text-opacity:1;color:rgba(38,38,38,var(--un-text-opacity))}.ring-base{--un-ring-opacity:.13;--un-ring-color:rgba(136,136,136,var(--un-ring-opacity))}@media (prefers-color-scheme:dark){.bg-glass{background-color:rgba(17,17,17,.75)}.color-base{--un-text-opacity:1;color:rgba(229,229,229,var(--un-text-opacity))}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;bottom:0;left:0;right:0}.z-10{z-index:10}.z-9999999{z-index:9999999}.ms:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:1rem}.ms:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:1rem}.mt--2{margin-top:-.5rem}.w-400px{width:400px}.flex{display:flex}.flex-auto{flex:auto}.flex-none{flex:none}.flex-col{flex-direction:column}.transform{transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.resize{resize:both}.items-center{align-items:center}.gap-2{gap:.5rem}.of-hidden{overflow:hidden}.border{border-width:1px}.border-1\\.5{border-width:1.5px}.border-transparent{border-color:transparent}.rounded-lg{-webkit-border-radius:.5rem;border-radius:.5rem}.p2{padding:.5rem}.px{padding-left:1rem;padding-right:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.hover\\:text-green6:hover{--un-text-opacity:1;color:rgba(22,163,74,var(--un-text-opacity))}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.op0{opacity:0}.op100{opacity:1}.op50{opacity:.5}.hover\\:op100:hover{opacity:1}.shadow-lg{--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,rgba(0,0,0,.1)),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,rgba(0,0,0,.1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-1{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.backdrop-blur{--un-backdrop-blur:blur(8px);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.transition-none{transition:none}`;
|
|
4
|
+
|
|
5
|
+
function tryOnScopeDispose(fn) {
|
|
6
|
+
if (getCurrentScope()) {
|
|
7
|
+
onScopeDispose(fn);
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
14
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
15
|
+
const notNullish = (val) => val != null;
|
|
16
|
+
const toString = Object.prototype.toString;
|
|
17
|
+
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
18
|
+
const noop = () => {
|
|
19
|
+
};
|
|
20
|
+
const isIOS = /* @__PURE__ */ getIsIOS();
|
|
21
|
+
function getIsIOS() {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function createFilterWrapper(filter, fn) {
|
|
27
|
+
function wrapper(...args) {
|
|
28
|
+
return new Promise((resolve, reject) => {
|
|
29
|
+
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return wrapper;
|
|
33
|
+
}
|
|
34
|
+
function debounceFilter(ms, options = {}) {
|
|
35
|
+
let timer;
|
|
36
|
+
let maxTimer;
|
|
37
|
+
let lastRejector = noop;
|
|
38
|
+
const _clearTimeout = (timer2) => {
|
|
39
|
+
clearTimeout(timer2);
|
|
40
|
+
lastRejector();
|
|
41
|
+
lastRejector = noop;
|
|
42
|
+
};
|
|
43
|
+
let lastInvoker;
|
|
44
|
+
const filter = (invoke) => {
|
|
45
|
+
const duration = toValue(ms);
|
|
46
|
+
const maxDuration = toValue(options.maxWait);
|
|
47
|
+
if (timer)
|
|
48
|
+
_clearTimeout(timer);
|
|
49
|
+
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
50
|
+
if (maxTimer) {
|
|
51
|
+
_clearTimeout(maxTimer);
|
|
52
|
+
maxTimer = null;
|
|
53
|
+
}
|
|
54
|
+
return Promise.resolve(invoke());
|
|
55
|
+
}
|
|
56
|
+
return new Promise((resolve, reject) => {
|
|
57
|
+
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
58
|
+
lastInvoker = invoke;
|
|
59
|
+
if (maxDuration && !maxTimer) {
|
|
60
|
+
maxTimer = setTimeout(() => {
|
|
61
|
+
if (timer)
|
|
62
|
+
_clearTimeout(timer);
|
|
63
|
+
maxTimer = null;
|
|
64
|
+
resolve(lastInvoker());
|
|
65
|
+
}, maxDuration);
|
|
66
|
+
}
|
|
67
|
+
timer = setTimeout(() => {
|
|
68
|
+
if (maxTimer)
|
|
69
|
+
_clearTimeout(maxTimer);
|
|
70
|
+
maxTimer = null;
|
|
71
|
+
resolve(invoke());
|
|
72
|
+
}, duration);
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
return filter;
|
|
76
|
+
}
|
|
77
|
+
function toArray(value) {
|
|
78
|
+
return Array.isArray(value) ? value : [value];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function getLifeCycleTarget(target) {
|
|
82
|
+
return getCurrentInstance();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
86
|
+
return createFilterWrapper(
|
|
87
|
+
debounceFilter(ms, options),
|
|
88
|
+
fn
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function toRefs(objectRef, options = {}) {
|
|
93
|
+
if (!isRef(objectRef))
|
|
94
|
+
return toRefs$1(objectRef);
|
|
95
|
+
const result = Array.isArray(objectRef.value) ? Array.from({ length: objectRef.value.length }) : {};
|
|
96
|
+
for (const key in objectRef.value) {
|
|
97
|
+
result[key] = customRef(() => ({
|
|
98
|
+
get() {
|
|
99
|
+
return objectRef.value[key];
|
|
100
|
+
},
|
|
101
|
+
set(v) {
|
|
102
|
+
var _a;
|
|
103
|
+
const replaceRef = (_a = toValue(options.replaceRef)) != null ? _a : true;
|
|
104
|
+
if (replaceRef) {
|
|
105
|
+
if (Array.isArray(objectRef.value)) {
|
|
106
|
+
const copy = [...objectRef.value];
|
|
107
|
+
copy[key] = v;
|
|
108
|
+
objectRef.value = copy;
|
|
109
|
+
} else {
|
|
110
|
+
const newObject = { ...objectRef.value, [key]: v };
|
|
111
|
+
Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));
|
|
112
|
+
objectRef.value = newObject;
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
objectRef.value[key] = v;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function tryOnMounted(fn, sync = true, target) {
|
|
124
|
+
const instance = getLifeCycleTarget();
|
|
125
|
+
if (instance)
|
|
126
|
+
onMounted(fn, target);
|
|
127
|
+
else if (sync)
|
|
128
|
+
fn();
|
|
129
|
+
else
|
|
130
|
+
nextTick(fn);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function watchImmediate(source, cb, options) {
|
|
134
|
+
return watch(
|
|
135
|
+
source,
|
|
136
|
+
cb,
|
|
137
|
+
{
|
|
138
|
+
...options,
|
|
139
|
+
immediate: true
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const defaultWindow = isClient ? window : void 0;
|
|
145
|
+
|
|
146
|
+
function unrefElement(elRef) {
|
|
147
|
+
var _a;
|
|
148
|
+
const plain = toValue(elRef);
|
|
149
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function useEventListener(...args) {
|
|
153
|
+
const cleanups = [];
|
|
154
|
+
const cleanup = () => {
|
|
155
|
+
cleanups.forEach((fn) => fn());
|
|
156
|
+
cleanups.length = 0;
|
|
157
|
+
};
|
|
158
|
+
const register = (el, event, listener, options) => {
|
|
159
|
+
el.addEventListener(event, listener, options);
|
|
160
|
+
return () => el.removeEventListener(event, listener, options);
|
|
161
|
+
};
|
|
162
|
+
const firstParamTargets = computed(() => {
|
|
163
|
+
const test = toArray(toValue(args[0])).filter((e) => e != null);
|
|
164
|
+
return test.every((e) => typeof e !== "string") ? test : void 0;
|
|
165
|
+
});
|
|
166
|
+
const stopWatch = watchImmediate(
|
|
167
|
+
() => {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
return [
|
|
170
|
+
(_b = (_a = firstParamTargets.value) == null ? void 0 : _a.map((e) => unrefElement(e))) != null ? _b : [defaultWindow].filter((e) => e != null),
|
|
171
|
+
toArray(toValue(firstParamTargets.value ? args[1] : args[0])),
|
|
172
|
+
toArray(unref(firstParamTargets.value ? args[2] : args[1])),
|
|
173
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
174
|
+
toValue(firstParamTargets.value ? args[3] : args[2])
|
|
175
|
+
];
|
|
176
|
+
},
|
|
177
|
+
([raw_targets, raw_events, raw_listeners, raw_options]) => {
|
|
178
|
+
cleanup();
|
|
179
|
+
if (!(raw_targets == null ? void 0 : raw_targets.length) || !(raw_events == null ? void 0 : raw_events.length) || !(raw_listeners == null ? void 0 : raw_listeners.length))
|
|
180
|
+
return;
|
|
181
|
+
const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
|
|
182
|
+
cleanups.push(
|
|
183
|
+
...raw_targets.flatMap(
|
|
184
|
+
(el) => raw_events.flatMap(
|
|
185
|
+
(event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))
|
|
186
|
+
)
|
|
187
|
+
)
|
|
188
|
+
);
|
|
189
|
+
},
|
|
190
|
+
{ flush: "post" }
|
|
191
|
+
);
|
|
192
|
+
const stop = () => {
|
|
193
|
+
stopWatch();
|
|
194
|
+
cleanup();
|
|
195
|
+
};
|
|
196
|
+
tryOnScopeDispose(cleanup);
|
|
197
|
+
return stop;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
let _iOSWorkaround = false;
|
|
201
|
+
function onClickOutside(target, handler, options = {}) {
|
|
202
|
+
const { window = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
|
|
203
|
+
if (!window) {
|
|
204
|
+
return controls ? { stop: noop, cancel: noop, trigger: noop } : noop;
|
|
205
|
+
}
|
|
206
|
+
if (isIOS && !_iOSWorkaround) {
|
|
207
|
+
_iOSWorkaround = true;
|
|
208
|
+
const listenerOptions = { passive: true };
|
|
209
|
+
Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop, listenerOptions));
|
|
210
|
+
window.document.documentElement.addEventListener("click", noop, listenerOptions);
|
|
211
|
+
}
|
|
212
|
+
let shouldListen = true;
|
|
213
|
+
const shouldIgnore = (event) => {
|
|
214
|
+
return toValue(ignore).some((target2) => {
|
|
215
|
+
if (typeof target2 === "string") {
|
|
216
|
+
return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
|
|
217
|
+
} else {
|
|
218
|
+
const el = unrefElement(target2);
|
|
219
|
+
return el && (event.target === el || event.composedPath().includes(el));
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
function hasMultipleRoots(target2) {
|
|
224
|
+
const vm = toValue(target2);
|
|
225
|
+
return vm && vm.$.subTree.shapeFlag === 16;
|
|
226
|
+
}
|
|
227
|
+
function checkMultipleRoots(target2, event) {
|
|
228
|
+
const vm = toValue(target2);
|
|
229
|
+
const children = vm.$.subTree && vm.$.subTree.children;
|
|
230
|
+
if (children == null || !Array.isArray(children))
|
|
231
|
+
return false;
|
|
232
|
+
return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
|
|
233
|
+
}
|
|
234
|
+
const listener = (event) => {
|
|
235
|
+
const el = unrefElement(target);
|
|
236
|
+
if (event.target == null)
|
|
237
|
+
return;
|
|
238
|
+
if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event))
|
|
239
|
+
return;
|
|
240
|
+
if (!el || el === event.target || event.composedPath().includes(el))
|
|
241
|
+
return;
|
|
242
|
+
if ("detail" in event && event.detail === 0)
|
|
243
|
+
shouldListen = !shouldIgnore(event);
|
|
244
|
+
if (!shouldListen) {
|
|
245
|
+
shouldListen = true;
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
handler(event);
|
|
249
|
+
};
|
|
250
|
+
let isProcessingClick = false;
|
|
251
|
+
const cleanup = [
|
|
252
|
+
useEventListener(window, "click", (event) => {
|
|
253
|
+
if (!isProcessingClick) {
|
|
254
|
+
isProcessingClick = true;
|
|
255
|
+
setTimeout(() => {
|
|
256
|
+
isProcessingClick = false;
|
|
257
|
+
}, 0);
|
|
258
|
+
listener(event);
|
|
259
|
+
}
|
|
260
|
+
}, { passive: true, capture }),
|
|
261
|
+
useEventListener(window, "pointerdown", (e) => {
|
|
262
|
+
const el = unrefElement(target);
|
|
263
|
+
shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
|
|
264
|
+
}, { passive: true }),
|
|
265
|
+
detectIframe && useEventListener(window, "blur", (event) => {
|
|
266
|
+
setTimeout(() => {
|
|
267
|
+
var _a;
|
|
268
|
+
const el = unrefElement(target);
|
|
269
|
+
if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement))) {
|
|
270
|
+
handler(event);
|
|
271
|
+
}
|
|
272
|
+
}, 0);
|
|
273
|
+
}, { passive: true })
|
|
274
|
+
].filter(Boolean);
|
|
275
|
+
const stop = () => cleanup.forEach((fn) => fn());
|
|
276
|
+
if (controls) {
|
|
277
|
+
return {
|
|
278
|
+
stop,
|
|
279
|
+
cancel: () => {
|
|
280
|
+
shouldListen = false;
|
|
281
|
+
},
|
|
282
|
+
trigger: (event) => {
|
|
283
|
+
shouldListen = true;
|
|
284
|
+
listener(event);
|
|
285
|
+
shouldListen = false;
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
return stop;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
function useMounted() {
|
|
293
|
+
const isMounted = shallowRef(false);
|
|
294
|
+
const instance = getCurrentInstance();
|
|
295
|
+
if (instance) {
|
|
296
|
+
onMounted(() => {
|
|
297
|
+
isMounted.value = true;
|
|
298
|
+
}, instance);
|
|
299
|
+
}
|
|
300
|
+
return isMounted;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function useSupported(callback) {
|
|
304
|
+
const isMounted = useMounted();
|
|
305
|
+
return computed(() => {
|
|
306
|
+
isMounted.value;
|
|
307
|
+
return Boolean(callback());
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function useMutationObserver(target, callback, options = {}) {
|
|
312
|
+
const { window = defaultWindow, ...mutationOptions } = options;
|
|
313
|
+
let observer;
|
|
314
|
+
const isSupported = useSupported(() => window && "MutationObserver" in window);
|
|
315
|
+
const cleanup = () => {
|
|
316
|
+
if (observer) {
|
|
317
|
+
observer.disconnect();
|
|
318
|
+
observer = void 0;
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
const targets = computed(() => {
|
|
322
|
+
const value = toValue(target);
|
|
323
|
+
const items = toArray(value).map(unrefElement).filter(notNullish);
|
|
324
|
+
return new Set(items);
|
|
325
|
+
});
|
|
326
|
+
const stopWatch = watch(
|
|
327
|
+
() => targets.value,
|
|
328
|
+
(targets2) => {
|
|
329
|
+
cleanup();
|
|
330
|
+
if (isSupported.value && targets2.size) {
|
|
331
|
+
observer = new MutationObserver(callback);
|
|
332
|
+
targets2.forEach((el) => observer.observe(el, mutationOptions));
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{ immediate: true, flush: "post" }
|
|
336
|
+
);
|
|
337
|
+
const takeRecords = () => {
|
|
338
|
+
return observer == null ? void 0 : observer.takeRecords();
|
|
339
|
+
};
|
|
340
|
+
const stop = () => {
|
|
341
|
+
stopWatch();
|
|
342
|
+
cleanup();
|
|
343
|
+
};
|
|
344
|
+
tryOnScopeDispose(stop);
|
|
345
|
+
return {
|
|
346
|
+
isSupported,
|
|
347
|
+
stop,
|
|
348
|
+
takeRecords
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function useCssVar(prop, target, options = {}) {
|
|
353
|
+
const { window = defaultWindow, initialValue, observe = false } = options;
|
|
354
|
+
const variable = shallowRef(initialValue);
|
|
355
|
+
const elRef = computed(() => {
|
|
356
|
+
var _a;
|
|
357
|
+
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
358
|
+
});
|
|
359
|
+
function updateCssVar() {
|
|
360
|
+
var _a;
|
|
361
|
+
const key = toValue(prop);
|
|
362
|
+
const el = toValue(elRef);
|
|
363
|
+
if (el && window && key) {
|
|
364
|
+
const value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim();
|
|
365
|
+
variable.value = value || variable.value || initialValue;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (observe) {
|
|
369
|
+
useMutationObserver(elRef, updateCssVar, {
|
|
370
|
+
attributeFilter: ["style", "class"],
|
|
371
|
+
window
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
watch(
|
|
375
|
+
[elRef, () => toValue(prop)],
|
|
376
|
+
(_, old) => {
|
|
377
|
+
if (old[0] && old[1])
|
|
378
|
+
old[0].style.removeProperty(old[1]);
|
|
379
|
+
updateCssVar();
|
|
380
|
+
},
|
|
381
|
+
{ immediate: true }
|
|
382
|
+
);
|
|
383
|
+
watch(
|
|
384
|
+
[variable, elRef],
|
|
385
|
+
([val, el]) => {
|
|
386
|
+
const raw_prop = toValue(prop);
|
|
387
|
+
if ((el == null ? void 0 : el.style) && raw_prop) {
|
|
388
|
+
if (val == null)
|
|
389
|
+
el.style.removeProperty(raw_prop);
|
|
390
|
+
else
|
|
391
|
+
el.style.setProperty(raw_prop, val);
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{ immediate: true }
|
|
395
|
+
);
|
|
396
|
+
return variable;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function useDraggable(target, options = {}) {
|
|
400
|
+
var _a;
|
|
401
|
+
const {
|
|
402
|
+
pointerTypes,
|
|
403
|
+
preventDefault,
|
|
404
|
+
stopPropagation,
|
|
405
|
+
exact,
|
|
406
|
+
onMove,
|
|
407
|
+
onEnd,
|
|
408
|
+
onStart,
|
|
409
|
+
initialValue,
|
|
410
|
+
axis = "both",
|
|
411
|
+
draggingElement = defaultWindow,
|
|
412
|
+
containerElement,
|
|
413
|
+
handle: draggingHandle = target,
|
|
414
|
+
buttons = [0]
|
|
415
|
+
} = options;
|
|
416
|
+
const position = ref(
|
|
417
|
+
(_a = toValue(initialValue)) != null ? _a : { x: 0, y: 0 }
|
|
418
|
+
);
|
|
419
|
+
const pressedDelta = ref();
|
|
420
|
+
const filterEvent = (e) => {
|
|
421
|
+
if (pointerTypes)
|
|
422
|
+
return pointerTypes.includes(e.pointerType);
|
|
423
|
+
return true;
|
|
424
|
+
};
|
|
425
|
+
const handleEvent = (e) => {
|
|
426
|
+
if (toValue(preventDefault))
|
|
427
|
+
e.preventDefault();
|
|
428
|
+
if (toValue(stopPropagation))
|
|
429
|
+
e.stopPropagation();
|
|
430
|
+
};
|
|
431
|
+
const start = (e) => {
|
|
432
|
+
var _a2;
|
|
433
|
+
if (!toValue(buttons).includes(e.button))
|
|
434
|
+
return;
|
|
435
|
+
if (toValue(options.disabled) || !filterEvent(e))
|
|
436
|
+
return;
|
|
437
|
+
if (toValue(exact) && e.target !== toValue(target))
|
|
438
|
+
return;
|
|
439
|
+
const container = toValue(containerElement);
|
|
440
|
+
const containerRect = (_a2 = container == null ? void 0 : container.getBoundingClientRect) == null ? void 0 : _a2.call(container);
|
|
441
|
+
const targetRect = toValue(target).getBoundingClientRect();
|
|
442
|
+
const pos = {
|
|
443
|
+
x: e.clientX - (container ? targetRect.left - containerRect.left + container.scrollLeft : targetRect.left),
|
|
444
|
+
y: e.clientY - (container ? targetRect.top - containerRect.top + container.scrollTop : targetRect.top)
|
|
445
|
+
};
|
|
446
|
+
if ((onStart == null ? void 0 : onStart(pos, e)) === false)
|
|
447
|
+
return;
|
|
448
|
+
pressedDelta.value = pos;
|
|
449
|
+
handleEvent(e);
|
|
450
|
+
};
|
|
451
|
+
const move = (e) => {
|
|
452
|
+
if (toValue(options.disabled) || !filterEvent(e))
|
|
453
|
+
return;
|
|
454
|
+
if (!pressedDelta.value)
|
|
455
|
+
return;
|
|
456
|
+
const container = toValue(containerElement);
|
|
457
|
+
const targetRect = toValue(target).getBoundingClientRect();
|
|
458
|
+
let { x, y } = position.value;
|
|
459
|
+
if (axis === "x" || axis === "both") {
|
|
460
|
+
x = e.clientX - pressedDelta.value.x;
|
|
461
|
+
if (container)
|
|
462
|
+
x = Math.min(Math.max(0, x), container.scrollWidth - targetRect.width);
|
|
463
|
+
}
|
|
464
|
+
if (axis === "y" || axis === "both") {
|
|
465
|
+
y = e.clientY - pressedDelta.value.y;
|
|
466
|
+
if (container)
|
|
467
|
+
y = Math.min(Math.max(0, y), container.scrollHeight - targetRect.height);
|
|
468
|
+
}
|
|
469
|
+
position.value = {
|
|
470
|
+
x,
|
|
471
|
+
y
|
|
472
|
+
};
|
|
473
|
+
onMove == null ? void 0 : onMove(position.value, e);
|
|
474
|
+
handleEvent(e);
|
|
475
|
+
};
|
|
476
|
+
const end = (e) => {
|
|
477
|
+
if (toValue(options.disabled) || !filterEvent(e))
|
|
478
|
+
return;
|
|
479
|
+
if (!pressedDelta.value)
|
|
480
|
+
return;
|
|
481
|
+
pressedDelta.value = void 0;
|
|
482
|
+
onEnd == null ? void 0 : onEnd(position.value, e);
|
|
483
|
+
handleEvent(e);
|
|
484
|
+
};
|
|
485
|
+
if (isClient) {
|
|
486
|
+
const config = () => {
|
|
487
|
+
var _a2;
|
|
488
|
+
return {
|
|
489
|
+
capture: (_a2 = options.capture) != null ? _a2 : true,
|
|
490
|
+
passive: !toValue(preventDefault)
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
useEventListener(draggingHandle, "pointerdown", start, config);
|
|
494
|
+
useEventListener(draggingElement, "pointermove", move, config);
|
|
495
|
+
useEventListener(draggingElement, "pointerup", end, config);
|
|
496
|
+
}
|
|
497
|
+
return {
|
|
498
|
+
...toRefs(position),
|
|
499
|
+
position,
|
|
500
|
+
isDragging: computed(() => !!pressedDelta.value),
|
|
501
|
+
style: computed(
|
|
502
|
+
() => `left:${position.value.x}px;top:${position.value.y}px;`
|
|
503
|
+
)
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
function useResizeObserver(target, callback, options = {}) {
|
|
508
|
+
const { window = defaultWindow, ...observerOptions } = options;
|
|
509
|
+
let observer;
|
|
510
|
+
const isSupported = useSupported(() => window && "ResizeObserver" in window);
|
|
511
|
+
const cleanup = () => {
|
|
512
|
+
if (observer) {
|
|
513
|
+
observer.disconnect();
|
|
514
|
+
observer = void 0;
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
const targets = computed(() => {
|
|
518
|
+
const _targets = toValue(target);
|
|
519
|
+
return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];
|
|
520
|
+
});
|
|
521
|
+
const stopWatch = watch(
|
|
522
|
+
targets,
|
|
523
|
+
(els) => {
|
|
524
|
+
cleanup();
|
|
525
|
+
if (isSupported.value && window) {
|
|
526
|
+
observer = new ResizeObserver(callback);
|
|
527
|
+
for (const _el of els) {
|
|
528
|
+
if (_el)
|
|
529
|
+
observer.observe(_el, observerOptions);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{ immediate: true, flush: "post" }
|
|
534
|
+
);
|
|
535
|
+
const stop = () => {
|
|
536
|
+
cleanup();
|
|
537
|
+
stopWatch();
|
|
538
|
+
};
|
|
539
|
+
tryOnScopeDispose(stop);
|
|
540
|
+
return {
|
|
541
|
+
isSupported,
|
|
542
|
+
stop
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
function useElementBounding(target, options = {}) {
|
|
547
|
+
const {
|
|
548
|
+
reset = true,
|
|
549
|
+
windowResize = true,
|
|
550
|
+
windowScroll = true,
|
|
551
|
+
immediate = true,
|
|
552
|
+
updateTiming = "sync"
|
|
553
|
+
} = options;
|
|
554
|
+
const height = shallowRef(0);
|
|
555
|
+
const bottom = shallowRef(0);
|
|
556
|
+
const left = shallowRef(0);
|
|
557
|
+
const right = shallowRef(0);
|
|
558
|
+
const top = shallowRef(0);
|
|
559
|
+
const width = shallowRef(0);
|
|
560
|
+
const x = shallowRef(0);
|
|
561
|
+
const y = shallowRef(0);
|
|
562
|
+
function recalculate() {
|
|
563
|
+
const el = unrefElement(target);
|
|
564
|
+
if (!el) {
|
|
565
|
+
if (reset) {
|
|
566
|
+
height.value = 0;
|
|
567
|
+
bottom.value = 0;
|
|
568
|
+
left.value = 0;
|
|
569
|
+
right.value = 0;
|
|
570
|
+
top.value = 0;
|
|
571
|
+
width.value = 0;
|
|
572
|
+
x.value = 0;
|
|
573
|
+
y.value = 0;
|
|
574
|
+
}
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
const rect = el.getBoundingClientRect();
|
|
578
|
+
height.value = rect.height;
|
|
579
|
+
bottom.value = rect.bottom;
|
|
580
|
+
left.value = rect.left;
|
|
581
|
+
right.value = rect.right;
|
|
582
|
+
top.value = rect.top;
|
|
583
|
+
width.value = rect.width;
|
|
584
|
+
x.value = rect.x;
|
|
585
|
+
y.value = rect.y;
|
|
586
|
+
}
|
|
587
|
+
function update() {
|
|
588
|
+
if (updateTiming === "sync")
|
|
589
|
+
recalculate();
|
|
590
|
+
else if (updateTiming === "next-frame")
|
|
591
|
+
requestAnimationFrame(() => recalculate());
|
|
592
|
+
}
|
|
593
|
+
useResizeObserver(target, update);
|
|
594
|
+
watch(() => unrefElement(target), (ele) => !ele && update());
|
|
595
|
+
useMutationObserver(target, update, {
|
|
596
|
+
attributeFilter: ["style", "class"]
|
|
597
|
+
});
|
|
598
|
+
if (windowScroll)
|
|
599
|
+
useEventListener("scroll", update, { capture: true, passive: true });
|
|
600
|
+
if (windowResize)
|
|
601
|
+
useEventListener("resize", update, { passive: true });
|
|
602
|
+
tryOnMounted(() => {
|
|
603
|
+
if (immediate)
|
|
604
|
+
update();
|
|
605
|
+
});
|
|
606
|
+
return {
|
|
607
|
+
height,
|
|
608
|
+
bottom,
|
|
609
|
+
left,
|
|
610
|
+
right,
|
|
611
|
+
top,
|
|
612
|
+
width,
|
|
613
|
+
x,
|
|
614
|
+
y,
|
|
615
|
+
update
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
const topVarName = "--vueuse-safe-area-top";
|
|
620
|
+
const rightVarName = "--vueuse-safe-area-right";
|
|
621
|
+
const bottomVarName = "--vueuse-safe-area-bottom";
|
|
622
|
+
const leftVarName = "--vueuse-safe-area-left";
|
|
623
|
+
function useScreenSafeArea() {
|
|
624
|
+
const top = shallowRef("");
|
|
625
|
+
const right = shallowRef("");
|
|
626
|
+
const bottom = shallowRef("");
|
|
627
|
+
const left = shallowRef("");
|
|
628
|
+
if (isClient) {
|
|
629
|
+
const topCssVar = useCssVar(topVarName);
|
|
630
|
+
const rightCssVar = useCssVar(rightVarName);
|
|
631
|
+
const bottomCssVar = useCssVar(bottomVarName);
|
|
632
|
+
const leftCssVar = useCssVar(leftVarName);
|
|
633
|
+
topCssVar.value = "env(safe-area-inset-top, 0px)";
|
|
634
|
+
rightCssVar.value = "env(safe-area-inset-right, 0px)";
|
|
635
|
+
bottomCssVar.value = "env(safe-area-inset-bottom, 0px)";
|
|
636
|
+
leftCssVar.value = "env(safe-area-inset-left, 0px)";
|
|
637
|
+
update();
|
|
638
|
+
useEventListener("resize", useDebounceFn(update), { passive: true });
|
|
639
|
+
}
|
|
640
|
+
function update() {
|
|
641
|
+
top.value = getValue(topVarName);
|
|
642
|
+
right.value = getValue(rightVarName);
|
|
643
|
+
bottom.value = getValue(bottomVarName);
|
|
644
|
+
left.value = getValue(leftVarName);
|
|
645
|
+
}
|
|
646
|
+
return {
|
|
647
|
+
top,
|
|
648
|
+
right,
|
|
649
|
+
bottom,
|
|
650
|
+
left,
|
|
651
|
+
update
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
function getValue(position) {
|
|
655
|
+
return getComputedStyle(document.documentElement).getPropertyValue(position);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
const PANEL_MIN = 20;
|
|
659
|
+
const PANEL_MAX = 100;
|
|
660
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
661
|
+
__name: "NuxtDevtoolsFrameBox",
|
|
662
|
+
props: /* @__PURE__ */ mergeModels({
|
|
663
|
+
client: { type: Object, required: true },
|
|
664
|
+
isDragging: { type: Boolean, required: true },
|
|
665
|
+
state: { type: Object, required: true }
|
|
666
|
+
}, {
|
|
667
|
+
"popupWindow": { type: null },
|
|
668
|
+
"popupWindowModifiers": {}
|
|
669
|
+
}),
|
|
670
|
+
emits: ["update:popupWindow"],
|
|
671
|
+
setup(__props, { expose: __expose }) {
|
|
672
|
+
__expose();
|
|
673
|
+
const props = __props;
|
|
674
|
+
const popupWindow = useModel(__props, "popupWindow");
|
|
675
|
+
const {
|
|
676
|
+
state
|
|
677
|
+
} = toRefs(props);
|
|
678
|
+
const container = ref();
|
|
679
|
+
const isResizing = ref(false);
|
|
680
|
+
watchEffect(() => {
|
|
681
|
+
if (!container.value)
|
|
682
|
+
return;
|
|
683
|
+
if (state.value.open) {
|
|
684
|
+
const iframe = props.client.getIframe();
|
|
685
|
+
if (!iframe)
|
|
686
|
+
return;
|
|
687
|
+
iframe.style.pointerEvents = isResizing.value || props.isDragging || props.client.inspector?.isEnabled.value ? "none" : "auto";
|
|
688
|
+
if (!popupWindow.value) {
|
|
689
|
+
if (Array.from(container.value.children).every((el) => el !== iframe))
|
|
690
|
+
container.value.appendChild(iframe);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
useEventListener(window, "keydown", (e) => {
|
|
695
|
+
if (e.key === "Escape" && props.client.inspector?.isEnabled.value) {
|
|
696
|
+
e.preventDefault();
|
|
697
|
+
props.client.inspector?.disable();
|
|
698
|
+
props.client.devtools.close();
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
useEventListener(window, "mousedown", (e) => {
|
|
702
|
+
if (!state.value.closeOnOutsideClick)
|
|
703
|
+
return;
|
|
704
|
+
if (popupWindow.value)
|
|
705
|
+
return;
|
|
706
|
+
if (!state.value.open || isResizing.value || props.client.inspector?.isEnabled.value)
|
|
707
|
+
return;
|
|
708
|
+
const matched = e.composedPath().find((_el) => {
|
|
709
|
+
const el = _el;
|
|
710
|
+
return Array.from(el.classList || []).some((c) => c.startsWith("nuxt-devtools-")) || el.tagName?.toLowerCase() === "iframe";
|
|
711
|
+
});
|
|
712
|
+
if (!matched)
|
|
713
|
+
state.value.open = false;
|
|
714
|
+
});
|
|
715
|
+
function handleResize(e) {
|
|
716
|
+
if (!isResizing.value || !state.value.open)
|
|
717
|
+
return;
|
|
718
|
+
const iframe = props.client.getIframe();
|
|
719
|
+
if (!iframe)
|
|
720
|
+
return;
|
|
721
|
+
const box = iframe.getBoundingClientRect();
|
|
722
|
+
let widthPx, heightPx;
|
|
723
|
+
if (isResizing.value.right) {
|
|
724
|
+
widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : (e.touches[0]?.clientX || 0) - (box?.left || 0));
|
|
725
|
+
state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100));
|
|
726
|
+
} else if (isResizing.value.left) {
|
|
727
|
+
widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : e.touches[0]?.clientX || 0));
|
|
728
|
+
state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100));
|
|
729
|
+
}
|
|
730
|
+
if (isResizing.value.top) {
|
|
731
|
+
heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : e.touches[0]?.clientY || 0));
|
|
732
|
+
state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100));
|
|
733
|
+
} else if (isResizing.value.bottom) {
|
|
734
|
+
heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : (e.touches[0]?.clientY || 0) - (box?.top || 0));
|
|
735
|
+
state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100));
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
useEventListener(window, "mousemove", handleResize);
|
|
739
|
+
useEventListener(window, "touchmove", handleResize);
|
|
740
|
+
useEventListener(window, "mouseup", () => isResizing.value = false);
|
|
741
|
+
useEventListener(window, "touchend", () => isResizing.value = false);
|
|
742
|
+
useEventListener(window, "mouseleave", () => isResizing.value = false);
|
|
743
|
+
const __returned__ = { props, PANEL_MIN, PANEL_MAX, popupWindow, state, container, isResizing, handleResize };
|
|
744
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
745
|
+
return __returned__;
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
|
|
749
|
+
const _export_sfc = (sfc, props) => {
|
|
750
|
+
const target = sfc.__vccOpts || sfc;
|
|
751
|
+
for (const [key, val] of props) {
|
|
752
|
+
target[key] = val;
|
|
753
|
+
}
|
|
754
|
+
return target;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
const _hoisted_1$2 = {
|
|
758
|
+
ref: "container",
|
|
759
|
+
class: "nuxt-devtools-frame"
|
|
760
|
+
};
|
|
761
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
762
|
+
return withDirectives((openBlock(), createElementBlock(
|
|
763
|
+
"div",
|
|
764
|
+
_hoisted_1$2,
|
|
765
|
+
[
|
|
766
|
+
createCommentVNode(" Handlers "),
|
|
767
|
+
withDirectives(createElementVNode(
|
|
768
|
+
"div",
|
|
769
|
+
{
|
|
770
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal",
|
|
771
|
+
style: { top: 0 },
|
|
772
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(($event) => $setup.isResizing = { top: true }, ["prevent"])),
|
|
773
|
+
onTouchstartPassive: _cache[1] || (_cache[1] = () => $setup.isResizing = { top: true })
|
|
774
|
+
},
|
|
775
|
+
null,
|
|
776
|
+
544
|
|
777
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
778
|
+
), [
|
|
779
|
+
[vShow, $setup.state.position !== "top"]
|
|
780
|
+
]),
|
|
781
|
+
withDirectives(createElementVNode(
|
|
782
|
+
"div",
|
|
783
|
+
{
|
|
784
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal",
|
|
785
|
+
style: { bottom: 0 },
|
|
786
|
+
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => $setup.isResizing = { bottom: true }, ["prevent"])),
|
|
787
|
+
onTouchstartPassive: _cache[3] || (_cache[3] = () => $setup.isResizing = { bottom: true })
|
|
788
|
+
},
|
|
789
|
+
null,
|
|
790
|
+
544
|
|
791
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
792
|
+
), [
|
|
793
|
+
[vShow, $setup.state.position !== "bottom"]
|
|
794
|
+
]),
|
|
795
|
+
withDirectives(createElementVNode(
|
|
796
|
+
"div",
|
|
797
|
+
{
|
|
798
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical",
|
|
799
|
+
style: { left: 0 },
|
|
800
|
+
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => $setup.isResizing = { left: true }, ["prevent"])),
|
|
801
|
+
onTouchstartPassive: _cache[5] || (_cache[5] = () => $setup.isResizing = { left: true })
|
|
802
|
+
},
|
|
803
|
+
null,
|
|
804
|
+
544
|
|
805
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
806
|
+
), [
|
|
807
|
+
[vShow, $setup.state.position !== "left"]
|
|
808
|
+
]),
|
|
809
|
+
withDirectives(createElementVNode(
|
|
810
|
+
"div",
|
|
811
|
+
{
|
|
812
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical",
|
|
813
|
+
style: { right: 0 },
|
|
814
|
+
onMousedown: _cache[6] || (_cache[6] = withModifiers(() => $setup.isResizing = { right: true }, ["prevent"])),
|
|
815
|
+
onTouchstartPassive: _cache[7] || (_cache[7] = () => $setup.isResizing = { right: true })
|
|
816
|
+
},
|
|
817
|
+
null,
|
|
818
|
+
544
|
|
819
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
820
|
+
), [
|
|
821
|
+
[vShow, $setup.state.position !== "right"]
|
|
822
|
+
]),
|
|
823
|
+
withDirectives(createElementVNode(
|
|
824
|
+
"div",
|
|
825
|
+
{
|
|
826
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner",
|
|
827
|
+
style: { top: 0, left: 0, cursor: "nwse-resize" },
|
|
828
|
+
onMousedown: _cache[8] || (_cache[8] = withModifiers(() => $setup.isResizing = { top: true, left: true }, ["prevent"])),
|
|
829
|
+
onTouchstartPassive: _cache[9] || (_cache[9] = () => $setup.isResizing = { top: true, left: true })
|
|
830
|
+
},
|
|
831
|
+
null,
|
|
832
|
+
544
|
|
833
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
834
|
+
), [
|
|
835
|
+
[vShow, $setup.state.position !== "top" && $setup.state.position !== "left"]
|
|
836
|
+
]),
|
|
837
|
+
withDirectives(createElementVNode(
|
|
838
|
+
"div",
|
|
839
|
+
{
|
|
840
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner",
|
|
841
|
+
style: { top: 0, right: 0, cursor: "nesw-resize" },
|
|
842
|
+
onMousedown: _cache[10] || (_cache[10] = withModifiers(() => $setup.isResizing = { top: true, right: true }, ["prevent"])),
|
|
843
|
+
onTouchstartPassive: _cache[11] || (_cache[11] = () => $setup.isResizing = { top: true, right: true })
|
|
844
|
+
},
|
|
845
|
+
null,
|
|
846
|
+
544
|
|
847
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
848
|
+
), [
|
|
849
|
+
[vShow, $setup.state.position !== "top" && $setup.state.position !== "right"]
|
|
850
|
+
]),
|
|
851
|
+
withDirectives(createElementVNode(
|
|
852
|
+
"div",
|
|
853
|
+
{
|
|
854
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner",
|
|
855
|
+
style: { bottom: 0, left: 0, cursor: "nesw-resize" },
|
|
856
|
+
onMousedown: _cache[12] || (_cache[12] = withModifiers(() => $setup.isResizing = { bottom: true, left: true }, ["prevent"])),
|
|
857
|
+
onTouchstartPassive: _cache[13] || (_cache[13] = () => $setup.isResizing = { bottom: true, left: true })
|
|
858
|
+
},
|
|
859
|
+
null,
|
|
860
|
+
544
|
|
861
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
862
|
+
), [
|
|
863
|
+
[vShow, $setup.state.position !== "bottom" && $setup.state.position !== "left"]
|
|
864
|
+
]),
|
|
865
|
+
withDirectives(createElementVNode(
|
|
866
|
+
"div",
|
|
867
|
+
{
|
|
868
|
+
class: "nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner",
|
|
869
|
+
style: { bottom: 0, right: 0, cursor: "nwse-resize" },
|
|
870
|
+
onMousedown: _cache[14] || (_cache[14] = withModifiers(() => $setup.isResizing = { bottom: true, right: true }, ["prevent"])),
|
|
871
|
+
onTouchstartPassive: _cache[15] || (_cache[15] = () => $setup.isResizing = { bottom: true, right: true })
|
|
872
|
+
},
|
|
873
|
+
null,
|
|
874
|
+
544
|
|
875
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
876
|
+
), [
|
|
877
|
+
[vShow, $setup.state.position !== "bottom" && $setup.state.position !== "right"]
|
|
878
|
+
])
|
|
879
|
+
],
|
|
880
|
+
512
|
|
881
|
+
/* NEED_PATCH */
|
|
882
|
+
)), [
|
|
883
|
+
[vShow, $setup.state.open && !$props.client.inspector?.isEnabled.value && !$setup.popupWindow]
|
|
884
|
+
]);
|
|
885
|
+
}
|
|
886
|
+
const FrameBox = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsFrameBox.vue"]]);
|
|
887
|
+
|
|
888
|
+
const SNAP_THRESHOLD = 2;
|
|
889
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
890
|
+
__name: "NuxtDevtoolsFrame",
|
|
891
|
+
props: {
|
|
892
|
+
client: { type: Object, required: true },
|
|
893
|
+
settings: { type: Object, required: true },
|
|
894
|
+
state: { type: Object, required: true }
|
|
895
|
+
},
|
|
896
|
+
setup(__props, { expose: __expose }) {
|
|
897
|
+
__expose();
|
|
898
|
+
const props = __props;
|
|
899
|
+
const {
|
|
900
|
+
state,
|
|
901
|
+
settings
|
|
902
|
+
} = toRefs(props);
|
|
903
|
+
function millisecondToHumanreadable(ms) {
|
|
904
|
+
if (ms < 1e3)
|
|
905
|
+
return [+ms.toFixed(0), "ms"];
|
|
906
|
+
if (ms < 1e3 * 60)
|
|
907
|
+
return [+(ms / 1e3).toFixed(1), "s"];
|
|
908
|
+
if (ms < 1e3 * 60 * 60)
|
|
909
|
+
return [+(ms / 1e3 / 60).toFixed(1), "min"];
|
|
910
|
+
return [+(ms / 1e3 / 60 / 60).toFixed(1), "hour"];
|
|
911
|
+
}
|
|
912
|
+
const panelMargins = reactive({
|
|
913
|
+
left: 10,
|
|
914
|
+
top: 10,
|
|
915
|
+
right: 10,
|
|
916
|
+
bottom: 10
|
|
917
|
+
});
|
|
918
|
+
const safeArea = useScreenSafeArea();
|
|
919
|
+
const isSafari = navigator.userAgent.includes("Safari") && !navigator.userAgent.includes("Chrome");
|
|
920
|
+
watchEffect(() => {
|
|
921
|
+
panelMargins.left = +safeArea.left.value + 10;
|
|
922
|
+
panelMargins.top = +safeArea.top.value + 10;
|
|
923
|
+
panelMargins.right = +safeArea.right.value + 10;
|
|
924
|
+
panelMargins.bottom = +safeArea.bottom.value + 10;
|
|
925
|
+
});
|
|
926
|
+
const vars = computed(() => {
|
|
927
|
+
const dark = props.client.app.colorMode.value === "dark";
|
|
928
|
+
return {
|
|
929
|
+
"--nuxt-devtools-widget-bg": dark ? "#111" : "#ffffff",
|
|
930
|
+
"--nuxt-devtools-widget-fg": dark ? "#F5F5F5" : "#111",
|
|
931
|
+
"--nuxt-devtools-widget-border": dark ? "#3336" : "#efefef",
|
|
932
|
+
"--nuxt-devtools-widget-shadow": dark ? "rgba(0,0,0,0.3)" : "rgba(128,128,128,0.1)"
|
|
933
|
+
};
|
|
934
|
+
});
|
|
935
|
+
const frameBox = ref();
|
|
936
|
+
const panelEl = ref();
|
|
937
|
+
const anchorEl = ref();
|
|
938
|
+
const windowSize = reactive({ width: 0, height: 0 });
|
|
939
|
+
const isDragging = ref(false);
|
|
940
|
+
const draggingOffset = reactive({ x: 0, y: 0 });
|
|
941
|
+
const mousePosition = reactive({ x: 0, y: 0 });
|
|
942
|
+
function onPointerDown(e) {
|
|
943
|
+
if (!panelEl.value)
|
|
944
|
+
return;
|
|
945
|
+
isDragging.value = true;
|
|
946
|
+
const { left, top, width, height } = panelEl.value.getBoundingClientRect();
|
|
947
|
+
draggingOffset.x = e.clientX - left - width / 2;
|
|
948
|
+
draggingOffset.y = e.clientY - top - height / 2;
|
|
949
|
+
}
|
|
950
|
+
onMounted(() => {
|
|
951
|
+
windowSize.width = window.innerWidth;
|
|
952
|
+
windowSize.height = window.innerHeight;
|
|
953
|
+
useEventListener(window, "resize", () => {
|
|
954
|
+
windowSize.width = window.innerWidth;
|
|
955
|
+
windowSize.height = window.innerHeight;
|
|
956
|
+
});
|
|
957
|
+
useEventListener(window, "pointermove", (e) => {
|
|
958
|
+
if (!isDragging.value)
|
|
959
|
+
return;
|
|
960
|
+
const centerX = windowSize.width / 2;
|
|
961
|
+
const centerY = windowSize.height / 2;
|
|
962
|
+
const x = e.clientX - draggingOffset.x;
|
|
963
|
+
const y = e.clientY - draggingOffset.y;
|
|
964
|
+
mousePosition.x = x;
|
|
965
|
+
mousePosition.y = y;
|
|
966
|
+
const deg = Math.atan2(y - centerY, x - centerX);
|
|
967
|
+
const HORIZONTAL_MARGIN = 70;
|
|
968
|
+
const TL = Math.atan2(0 - centerY + HORIZONTAL_MARGIN, 0 - centerX);
|
|
969
|
+
const TR = Math.atan2(0 - centerY + HORIZONTAL_MARGIN, windowSize.width - centerX);
|
|
970
|
+
const BL = Math.atan2(windowSize.height - HORIZONTAL_MARGIN - centerY, 0 - centerX);
|
|
971
|
+
const BR = Math.atan2(windowSize.height - HORIZONTAL_MARGIN - centerY, windowSize.width - centerX);
|
|
972
|
+
state.value.position = deg >= TL && deg <= TR ? "top" : deg >= TR && deg <= BR ? "right" : deg >= BR && deg <= BL ? "bottom" : "left";
|
|
973
|
+
state.value.left = snapToPoints(x / windowSize.width * 100);
|
|
974
|
+
state.value.top = snapToPoints(y / windowSize.height * 100);
|
|
975
|
+
});
|
|
976
|
+
useEventListener(window, "pointerup", () => {
|
|
977
|
+
isDragging.value = false;
|
|
978
|
+
});
|
|
979
|
+
useEventListener(window, "pointerleave", () => {
|
|
980
|
+
isDragging.value = false;
|
|
981
|
+
});
|
|
982
|
+
});
|
|
983
|
+
function snapToPoints(value) {
|
|
984
|
+
if (value < 5)
|
|
985
|
+
return 0;
|
|
986
|
+
if (value > 95)
|
|
987
|
+
return 100;
|
|
988
|
+
if (Math.abs(value - 50) < SNAP_THRESHOLD)
|
|
989
|
+
return 50;
|
|
990
|
+
return value;
|
|
991
|
+
}
|
|
992
|
+
function clamp(value, min, max) {
|
|
993
|
+
return Math.min(Math.max(value, min), max);
|
|
994
|
+
}
|
|
995
|
+
const isHovering = ref(false);
|
|
996
|
+
const isVertical = computed(() => state.value.position === "left" || state.value.position === "right");
|
|
997
|
+
const anchorPos = computed(() => {
|
|
998
|
+
const halfWidth = (panelEl.value?.clientWidth || 0) / 2;
|
|
999
|
+
const halfHeight = (panelEl.value?.clientHeight || 0) / 2;
|
|
1000
|
+
const left = state.value.left * windowSize.width / 100;
|
|
1001
|
+
const top = state.value.top * windowSize.height / 100;
|
|
1002
|
+
switch (state.value.position) {
|
|
1003
|
+
case "top":
|
|
1004
|
+
return {
|
|
1005
|
+
left: clamp(left, halfWidth + panelMargins.left, windowSize.width - halfWidth - panelMargins.right),
|
|
1006
|
+
top: panelMargins.top + halfHeight
|
|
1007
|
+
};
|
|
1008
|
+
case "right":
|
|
1009
|
+
return {
|
|
1010
|
+
left: windowSize.width - panelMargins.right - halfHeight,
|
|
1011
|
+
top: clamp(top, halfWidth + panelMargins.top, windowSize.height - halfWidth - panelMargins.bottom)
|
|
1012
|
+
};
|
|
1013
|
+
case "left":
|
|
1014
|
+
return {
|
|
1015
|
+
left: panelMargins.left + halfHeight,
|
|
1016
|
+
top: clamp(top, halfWidth + panelMargins.top, windowSize.height - halfWidth - panelMargins.bottom)
|
|
1017
|
+
};
|
|
1018
|
+
case "bottom":
|
|
1019
|
+
default:
|
|
1020
|
+
return {
|
|
1021
|
+
left: clamp(left, halfWidth + panelMargins.left, windowSize.width - halfWidth - panelMargins.right),
|
|
1022
|
+
top: windowSize.height - panelMargins.bottom - halfHeight
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
let _timer = null;
|
|
1027
|
+
function bringUp() {
|
|
1028
|
+
isHovering.value = true;
|
|
1029
|
+
if (state.value.minimizePanelInactive < 0)
|
|
1030
|
+
return;
|
|
1031
|
+
if (_timer)
|
|
1032
|
+
clearTimeout(_timer);
|
|
1033
|
+
_timer = setTimeout(() => {
|
|
1034
|
+
isHovering.value = false;
|
|
1035
|
+
}, +state.value.minimizePanelInactive || 0);
|
|
1036
|
+
}
|
|
1037
|
+
const isHidden = computed(() => {
|
|
1038
|
+
if (state.value.open)
|
|
1039
|
+
return false;
|
|
1040
|
+
if (settings.value.ui.showPanel === true)
|
|
1041
|
+
return false;
|
|
1042
|
+
if (settings.value.ui.showPanel === false)
|
|
1043
|
+
return true;
|
|
1044
|
+
return false;
|
|
1045
|
+
});
|
|
1046
|
+
const isMinimized = computed(() => {
|
|
1047
|
+
if (state.value.minimizePanelInactive < 0)
|
|
1048
|
+
return false;
|
|
1049
|
+
if (state.value.minimizePanelInactive === 0)
|
|
1050
|
+
return true;
|
|
1051
|
+
const isTouchDevice = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1052
|
+
return !isDragging.value && !state.value.open && !isHovering.value && !isTouchDevice && state.value.minimizePanelInactive;
|
|
1053
|
+
});
|
|
1054
|
+
const anchorStyle = computed(() => {
|
|
1055
|
+
return {
|
|
1056
|
+
left: `${anchorPos.value.left}px`,
|
|
1057
|
+
top: `${anchorPos.value.top}px`,
|
|
1058
|
+
pointerEvents: isHidden.value ? "none" : "auto"
|
|
1059
|
+
};
|
|
1060
|
+
});
|
|
1061
|
+
const panelStyle = computed(() => {
|
|
1062
|
+
const style = {
|
|
1063
|
+
transform: isVertical.value ? `translate(${isMinimized.value ? `calc(-50% ${state.value.position === "right" ? "+" : "-"} 15px)` : "-50%"}, -50%) rotate(90deg)` : `translate(-50%, ${isMinimized.value ? `calc(-50% ${state.value.position === "top" ? "-" : "+"} 15px)` : "-50%"})`
|
|
1064
|
+
};
|
|
1065
|
+
if (isHidden.value) {
|
|
1066
|
+
style.opacity = 0;
|
|
1067
|
+
style.pointerEvents = "none";
|
|
1068
|
+
}
|
|
1069
|
+
if (isMinimized.value) {
|
|
1070
|
+
switch (state.value.position) {
|
|
1071
|
+
case "top":
|
|
1072
|
+
case "right":
|
|
1073
|
+
style.borderTopLeftRadius = "0";
|
|
1074
|
+
style.borderTopRightRadius = "0";
|
|
1075
|
+
break;
|
|
1076
|
+
case "bottom":
|
|
1077
|
+
case "left":
|
|
1078
|
+
style.borderBottomLeftRadius = "0";
|
|
1079
|
+
style.borderBottomRightRadius = "0";
|
|
1080
|
+
break;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
if (isDragging.value)
|
|
1084
|
+
style.transition = "none !important";
|
|
1085
|
+
return style;
|
|
1086
|
+
});
|
|
1087
|
+
const { width: frameWidth, height: frameHeight } = useElementBounding(frameBox);
|
|
1088
|
+
const popupWindow = ref(null);
|
|
1089
|
+
const iframeStyle = computed(() => {
|
|
1090
|
+
mousePosition.x, mousePosition.y;
|
|
1091
|
+
const halfHeight = (panelEl.value?.clientHeight || 0) / 2;
|
|
1092
|
+
const frameMargin = {
|
|
1093
|
+
left: panelMargins.left + halfHeight,
|
|
1094
|
+
top: panelMargins.top + halfHeight,
|
|
1095
|
+
right: panelMargins.right + halfHeight,
|
|
1096
|
+
bottom: panelMargins.bottom + halfHeight
|
|
1097
|
+
};
|
|
1098
|
+
const marginHorizontal = frameMargin.left + frameMargin.right;
|
|
1099
|
+
const marginVertical = frameMargin.top + frameMargin.bottom;
|
|
1100
|
+
const maxWidth = windowSize.width - marginHorizontal;
|
|
1101
|
+
const maxHeight = windowSize.height - marginVertical;
|
|
1102
|
+
const style = {
|
|
1103
|
+
position: "fixed",
|
|
1104
|
+
zIndex: -1,
|
|
1105
|
+
pointerEvents: isDragging.value || !state.value.open || props.client.inspector?.isEnabled.value ? "none" : "auto",
|
|
1106
|
+
width: `min(${state.value.width}vw, calc(100vw - ${marginHorizontal}px))`,
|
|
1107
|
+
height: `min(${state.value.height}vh, calc(100vh - ${marginVertical}px))`
|
|
1108
|
+
};
|
|
1109
|
+
const anchor = anchorPos.value;
|
|
1110
|
+
const width = Math.min(maxWidth, state.value.width * windowSize.width / 100);
|
|
1111
|
+
const height = Math.min(maxHeight, state.value.height * windowSize.height / 100);
|
|
1112
|
+
const anchorX = anchor?.left || 0;
|
|
1113
|
+
const anchorY = anchor?.top || 0;
|
|
1114
|
+
switch (state.value.position) {
|
|
1115
|
+
case "top":
|
|
1116
|
+
case "bottom":
|
|
1117
|
+
style.left = `${-frameWidth.value / 2}px`;
|
|
1118
|
+
style.transform = "translate(0, 0)";
|
|
1119
|
+
if (anchorX - frameMargin.left < width / 2)
|
|
1120
|
+
style.left = `${width / 2 - anchorX + frameMargin.left - frameWidth.value / 2}px`;
|
|
1121
|
+
else if (windowSize.width - anchorX - frameMargin.right < width / 2)
|
|
1122
|
+
style.left = `${windowSize.width - anchorX - width / 2 - frameMargin.right - frameWidth.value / 2}px`;
|
|
1123
|
+
break;
|
|
1124
|
+
case "right":
|
|
1125
|
+
case "left":
|
|
1126
|
+
style.top = `${-frameHeight.value / 2}px`;
|
|
1127
|
+
style.transform = "translate(0, 0)";
|
|
1128
|
+
if (anchorY - frameMargin.top < height / 2)
|
|
1129
|
+
style.top = `${height / 2 - anchorY + frameMargin.top - frameHeight.value / 2}px`;
|
|
1130
|
+
else if (windowSize.height - anchorY - frameMargin.bottom < height / 2)
|
|
1131
|
+
style.top = `${windowSize.height - anchorY - height / 2 - frameMargin.bottom - frameHeight.value / 2}px`;
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
switch (state.value.position) {
|
|
1135
|
+
case "top":
|
|
1136
|
+
style.top = 0;
|
|
1137
|
+
break;
|
|
1138
|
+
case "right":
|
|
1139
|
+
style.right = 0;
|
|
1140
|
+
break;
|
|
1141
|
+
case "left":
|
|
1142
|
+
style.left = 0;
|
|
1143
|
+
break;
|
|
1144
|
+
case "bottom":
|
|
1145
|
+
default:
|
|
1146
|
+
style.bottom = 0;
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
if (props.client.inspector?.isEnabled.value) {
|
|
1150
|
+
style.opacity = 0;
|
|
1151
|
+
}
|
|
1152
|
+
return style;
|
|
1153
|
+
});
|
|
1154
|
+
const time = computed(() => {
|
|
1155
|
+
let type = "";
|
|
1156
|
+
const metric = props.client.metrics.loading();
|
|
1157
|
+
let time2 = -1;
|
|
1158
|
+
if (metric.pageEnd && metric.pageStart) {
|
|
1159
|
+
time2 = metric.pageEnd - metric.pageStart;
|
|
1160
|
+
type = "Page";
|
|
1161
|
+
} else if (metric.appLoad && metric.appInit) {
|
|
1162
|
+
time2 = metric.appLoad - metric.appInit;
|
|
1163
|
+
type = "App";
|
|
1164
|
+
}
|
|
1165
|
+
bringUp();
|
|
1166
|
+
if (time2 < 0)
|
|
1167
|
+
return [type, "", "-"];
|
|
1168
|
+
return [type, ...millisecondToHumanreadable(time2)];
|
|
1169
|
+
});
|
|
1170
|
+
function toggleInspector() {
|
|
1171
|
+
const isDevToolsOpen = state.value.open;
|
|
1172
|
+
if (!isDevToolsOpen)
|
|
1173
|
+
props.client.devtools.open();
|
|
1174
|
+
props.client.inspector?.enable();
|
|
1175
|
+
if (!isDevToolsOpen) {
|
|
1176
|
+
setTimeout(() => {
|
|
1177
|
+
props.client.devtools.close();
|
|
1178
|
+
}, 500);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
onMounted(() => {
|
|
1182
|
+
bringUp();
|
|
1183
|
+
});
|
|
1184
|
+
const __returned__ = { props, state, settings, millisecondToHumanreadable, panelMargins, safeArea, isSafari, SNAP_THRESHOLD, vars, frameBox, panelEl, anchorEl, windowSize, isDragging, draggingOffset, mousePosition, onPointerDown, snapToPoints, clamp, isHovering, isVertical, anchorPos, get _timer() {
|
|
1185
|
+
return _timer;
|
|
1186
|
+
}, set _timer(v) {
|
|
1187
|
+
_timer = v;
|
|
1188
|
+
}, bringUp, isHidden, isMinimized, anchorStyle, panelStyle, frameWidth, frameHeight, popupWindow, iframeStyle, time, toggleInspector, FrameBox };
|
|
1189
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1190
|
+
return __returned__;
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
|
|
1194
|
+
const _hoisted_1$1 = {
|
|
1195
|
+
viewBox: "0 0 324 324",
|
|
1196
|
+
fill: "none",
|
|
1197
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1198
|
+
style: { "margin-top": "-1px", "height": "1.2em", "width": "1.2em" }
|
|
1199
|
+
};
|
|
1200
|
+
const _hoisted_2$1 = ["title"];
|
|
1201
|
+
const _hoisted_3 = { class: "nuxt-devtools-label-main" };
|
|
1202
|
+
const _hoisted_4 = { class: "nuxt-devtools-label-secondary" };
|
|
1203
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1204
|
+
return openBlock(), createElementBlock(
|
|
1205
|
+
"div",
|
|
1206
|
+
{
|
|
1207
|
+
id: "nuxt-devtools-anchor",
|
|
1208
|
+
ref: "anchorEl",
|
|
1209
|
+
style: normalizeStyle([$setup.anchorStyle, $setup.vars]),
|
|
1210
|
+
class: normalizeClass({
|
|
1211
|
+
"nuxt-devtools-vertical": $setup.isVertical,
|
|
1212
|
+
"nuxt-devtools-hide": $setup.isMinimized
|
|
1213
|
+
}),
|
|
1214
|
+
onMousemove: $setup.bringUp
|
|
1215
|
+
},
|
|
1216
|
+
[
|
|
1217
|
+
!$setup.isSafari ? (openBlock(), createElementBlock(
|
|
1218
|
+
"div",
|
|
1219
|
+
{
|
|
1220
|
+
key: 0,
|
|
1221
|
+
class: "nuxt-devtools-glowing",
|
|
1222
|
+
style: normalizeStyle($setup.isDragging ? "opacity: 0.6 !important" : "")
|
|
1223
|
+
},
|
|
1224
|
+
null,
|
|
1225
|
+
4
|
|
1226
|
+
/* STYLE */
|
|
1227
|
+
)) : createCommentVNode("v-if", true),
|
|
1228
|
+
createElementVNode(
|
|
1229
|
+
"div",
|
|
1230
|
+
{
|
|
1231
|
+
ref: "panelEl",
|
|
1232
|
+
class: "nuxt-devtools-panel",
|
|
1233
|
+
style: normalizeStyle($setup.panelStyle),
|
|
1234
|
+
onPointerdown: $setup.onPointerDown
|
|
1235
|
+
},
|
|
1236
|
+
[
|
|
1237
|
+
createElementVNode(
|
|
1238
|
+
"button",
|
|
1239
|
+
{
|
|
1240
|
+
class: "nuxt-devtools-icon-button nuxt-devtools-nuxt-button",
|
|
1241
|
+
title: "Toggle Nuxt DevTools",
|
|
1242
|
+
style: normalizeStyle($setup.state.open ? "" : "filter:saturate(0)"),
|
|
1243
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $props.client.devtools.toggle())
|
|
1244
|
+
},
|
|
1245
|
+
[
|
|
1246
|
+
(openBlock(), createElementBlock("svg", _hoisted_1$1, _cache[2] || (_cache[2] = [
|
|
1247
|
+
createElementVNode(
|
|
1248
|
+
"path",
|
|
1249
|
+
{
|
|
1250
|
+
d: "M181.767 270H302.211C306.037 270 309.795 269.003 313.108 267.107C316.421 265.211 319.172 262.484 321.084 259.2C322.996 255.915 324.002 252.19 324 248.399C323.998 244.607 322.989 240.883 321.074 237.601L240.187 98.7439C238.275 95.4607 235.525 92.7342 232.213 90.8385C228.901 88.9429 225.143 87.9449 221.318 87.9449C217.494 87.9449 213.736 88.9429 210.424 90.8385C207.112 92.7342 204.361 95.4607 202.449 98.7439L181.767 134.272L141.329 64.7975C139.416 61.5145 136.664 58.7884 133.351 56.8931C130.038 54.9978 126.28 54 122.454 54C118.629 54 114.871 54.9978 111.558 56.8931C108.245 58.7884 105.493 61.5145 103.58 64.7975L2.92554 237.601C1.01067 240.883 0.00166657 244.607 2.06272e-06 248.399C-0.00166244 252.19 1.00407 255.915 2.91605 259.2C4.82803 262.484 7.57884 265.211 10.8918 267.107C14.2047 269.003 17.963 270 21.7886 270H97.3936C127.349 270 149.44 256.959 164.641 231.517L201.546 168.172L221.313 134.272L280.637 236.1H201.546L181.767 270ZM96.1611 236.065L43.3984 236.054L122.49 100.291L161.953 168.172L135.531 213.543C125.436 230.051 113.968 236.065 96.1611 236.065Z",
|
|
1251
|
+
fill: "#00DC82"
|
|
1252
|
+
},
|
|
1253
|
+
null,
|
|
1254
|
+
-1
|
|
1255
|
+
/* HOISTED */
|
|
1256
|
+
)
|
|
1257
|
+
])))
|
|
1258
|
+
],
|
|
1259
|
+
4
|
|
1260
|
+
/* STYLE */
|
|
1261
|
+
),
|
|
1262
|
+
_cache[5] || (_cache[5] = createElementVNode(
|
|
1263
|
+
"div",
|
|
1264
|
+
{
|
|
1265
|
+
style: { "border-left": "1px solid #8883", "width": "1px", "height": "10px" },
|
|
1266
|
+
class: "nuxt-devtools-panel-content"
|
|
1267
|
+
},
|
|
1268
|
+
null,
|
|
1269
|
+
-1
|
|
1270
|
+
/* HOISTED */
|
|
1271
|
+
)),
|
|
1272
|
+
createElementVNode("div", {
|
|
1273
|
+
class: "nuxt-devtools-panel-content nuxt-devtools-label",
|
|
1274
|
+
title: `${$setup.time[0]} load time`
|
|
1275
|
+
}, [
|
|
1276
|
+
createElementVNode(
|
|
1277
|
+
"div",
|
|
1278
|
+
_hoisted_3,
|
|
1279
|
+
toDisplayString($setup.time[1]),
|
|
1280
|
+
1
|
|
1281
|
+
/* TEXT */
|
|
1282
|
+
),
|
|
1283
|
+
createElementVNode(
|
|
1284
|
+
"span",
|
|
1285
|
+
_hoisted_4,
|
|
1286
|
+
toDisplayString($setup.time[2]),
|
|
1287
|
+
1
|
|
1288
|
+
/* TEXT */
|
|
1289
|
+
)
|
|
1290
|
+
], 8, _hoisted_2$1),
|
|
1291
|
+
$props.client.inspector?.isAvailable ? (openBlock(), createElementBlock(
|
|
1292
|
+
Fragment,
|
|
1293
|
+
{ key: 0 },
|
|
1294
|
+
[
|
|
1295
|
+
_cache[4] || (_cache[4] = createElementVNode(
|
|
1296
|
+
"div",
|
|
1297
|
+
{
|
|
1298
|
+
style: { "border-left": "1px solid #8883", "width": "1px", "height": "10px" },
|
|
1299
|
+
class: "nuxt-devtools-panel-content"
|
|
1300
|
+
},
|
|
1301
|
+
null,
|
|
1302
|
+
-1
|
|
1303
|
+
/* HOISTED */
|
|
1304
|
+
)),
|
|
1305
|
+
createElementVNode("button", {
|
|
1306
|
+
class: "nuxt-devtools-icon-button nuxt-devtools-panel-content",
|
|
1307
|
+
title: "Toggle Component Inspector",
|
|
1308
|
+
onClick: withModifiers($setup.toggleInspector, ["prevent", "stop"])
|
|
1309
|
+
}, [
|
|
1310
|
+
(openBlock(), createElementBlock(
|
|
1311
|
+
"svg",
|
|
1312
|
+
{
|
|
1313
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1314
|
+
style: normalizeStyle([{ "height": "1.2em", "width": "1.2em", "opacity": "0.5" }, $props.client.inspector.isEnabled.value ? "opacity:1;color:#00dc82" : ""]),
|
|
1315
|
+
viewBox: "0 0 24 24"
|
|
1316
|
+
},
|
|
1317
|
+
_cache[3] || (_cache[3] = [
|
|
1318
|
+
createElementVNode(
|
|
1319
|
+
"g",
|
|
1320
|
+
{
|
|
1321
|
+
fill: "none",
|
|
1322
|
+
stroke: "currentColor",
|
|
1323
|
+
"stroke-linecap": "round",
|
|
1324
|
+
"stroke-linejoin": "round",
|
|
1325
|
+
"stroke-width": "2"
|
|
1326
|
+
},
|
|
1327
|
+
[
|
|
1328
|
+
createElementVNode("circle", {
|
|
1329
|
+
cx: "12",
|
|
1330
|
+
cy: "12",
|
|
1331
|
+
r: ".5",
|
|
1332
|
+
fill: "currentColor"
|
|
1333
|
+
}),
|
|
1334
|
+
createElementVNode("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
|
|
1335
|
+
],
|
|
1336
|
+
-1
|
|
1337
|
+
/* HOISTED */
|
|
1338
|
+
)
|
|
1339
|
+
]),
|
|
1340
|
+
4
|
|
1341
|
+
/* STYLE */
|
|
1342
|
+
))
|
|
1343
|
+
])
|
|
1344
|
+
],
|
|
1345
|
+
64
|
|
1346
|
+
/* STABLE_FRAGMENT */
|
|
1347
|
+
)) : createCommentVNode("v-if", true)
|
|
1348
|
+
],
|
|
1349
|
+
36
|
|
1350
|
+
/* STYLE, NEED_HYDRATION */
|
|
1351
|
+
),
|
|
1352
|
+
createElementVNode(
|
|
1353
|
+
"div",
|
|
1354
|
+
{
|
|
1355
|
+
ref: "frameBox",
|
|
1356
|
+
style: normalizeStyle($setup.iframeStyle)
|
|
1357
|
+
},
|
|
1358
|
+
[
|
|
1359
|
+
createVNode($setup["FrameBox"], {
|
|
1360
|
+
"popup-window": $setup.popupWindow,
|
|
1361
|
+
"onUpdate:popupWindow": _cache[1] || (_cache[1] = ($event) => $setup.popupWindow = $event),
|
|
1362
|
+
state: $setup.state,
|
|
1363
|
+
client: $props.client,
|
|
1364
|
+
"is-dragging": $setup.isDragging
|
|
1365
|
+
}, null, 8, ["popup-window", "state", "client", "is-dragging"])
|
|
1366
|
+
],
|
|
1367
|
+
4
|
|
1368
|
+
/* STYLE */
|
|
1369
|
+
)
|
|
1370
|
+
],
|
|
1371
|
+
38
|
|
1372
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
1373
|
+
);
|
|
1374
|
+
}
|
|
1375
|
+
const Component$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsFrame.vue"]]);
|
|
1376
|
+
|
|
1377
|
+
const NuxtDevtoolsFrame = defineCustomElement({
|
|
1378
|
+
...Component$1,
|
|
1379
|
+
shadowRoot: true,
|
|
1380
|
+
styles: [css]
|
|
1381
|
+
});
|
|
1382
|
+
customElements.define("nuxt-devtools-frame", NuxtDevtoolsFrame);
|
|
1383
|
+
|
|
1384
|
+
const PANEL_WIDTH = 400;
|
|
1385
|
+
const PANEL_HEIGHT = 300;
|
|
1386
|
+
const PANEL_MARGIN = 30;
|
|
1387
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1388
|
+
__name: "NuxtDevtoolsInspectPanel",
|
|
1389
|
+
props: {
|
|
1390
|
+
props: { type: Object, required: true }
|
|
1391
|
+
},
|
|
1392
|
+
emits: ["close", "selectParent", "openInEditor"],
|
|
1393
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1394
|
+
__expose();
|
|
1395
|
+
const emit = __emit;
|
|
1396
|
+
const initX = ref(0);
|
|
1397
|
+
const initY = ref(0);
|
|
1398
|
+
watch(
|
|
1399
|
+
() => [__props.props.matched, __props.props.mouse],
|
|
1400
|
+
([matched, mouse]) => {
|
|
1401
|
+
if (!matched || !mouse)
|
|
1402
|
+
return;
|
|
1403
|
+
initX.value = Math.max(PANEL_MARGIN, Math.min(mouse.x, window.innerWidth - PANEL_WIDTH - PANEL_MARGIN));
|
|
1404
|
+
initY.value = Math.max(PANEL_MARGIN, Math.min(mouse.y, window.innerHeight - PANEL_HEIGHT - PANEL_MARGIN));
|
|
1405
|
+
}
|
|
1406
|
+
);
|
|
1407
|
+
const el = useTemplateRef("el");
|
|
1408
|
+
const draggingEl = useTemplateRef("draggingEl");
|
|
1409
|
+
const { x, y, style, isDragging } = useDraggable(el, {
|
|
1410
|
+
initialValue: {
|
|
1411
|
+
x: initX.value,
|
|
1412
|
+
y: initY.value
|
|
1413
|
+
},
|
|
1414
|
+
handle: draggingEl
|
|
1415
|
+
});
|
|
1416
|
+
watch([initX, initY], () => {
|
|
1417
|
+
if (!__props.props.matched)
|
|
1418
|
+
return;
|
|
1419
|
+
x.value = initX.value;
|
|
1420
|
+
y.value = initY.value;
|
|
1421
|
+
});
|
|
1422
|
+
const hasMoved = computed(() => x.value !== initX.value || y.value !== initY.value);
|
|
1423
|
+
onClickOutside(el, () => {
|
|
1424
|
+
nextTick(() => {
|
|
1425
|
+
if (!__props.props.matched)
|
|
1426
|
+
return;
|
|
1427
|
+
if (hasMoved.value)
|
|
1428
|
+
return;
|
|
1429
|
+
close();
|
|
1430
|
+
});
|
|
1431
|
+
});
|
|
1432
|
+
function close() {
|
|
1433
|
+
emit("close");
|
|
1434
|
+
}
|
|
1435
|
+
async function selectParent() {
|
|
1436
|
+
emit("selectParent");
|
|
1437
|
+
}
|
|
1438
|
+
async function openInEditor() {
|
|
1439
|
+
if (!__props.props.matched)
|
|
1440
|
+
return;
|
|
1441
|
+
const file = `${__props.props.matched.pos[0]}:${__props.props.matched.pos[1]}:${__props.props.matched.pos[2]}`;
|
|
1442
|
+
emit("openInEditor", file);
|
|
1443
|
+
}
|
|
1444
|
+
const __returned__ = { emit, PANEL_WIDTH, PANEL_HEIGHT, PANEL_MARGIN, initX, initY, el, draggingEl, x, y, style, isDragging, hasMoved, close, selectParent, openInEditor };
|
|
1445
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1446
|
+
return __returned__;
|
|
1447
|
+
}
|
|
1448
|
+
});
|
|
1449
|
+
|
|
1450
|
+
const _hoisted_1 = {
|
|
1451
|
+
ref: "draggingEl",
|
|
1452
|
+
class: "flex items-center gap-2 p2"
|
|
1453
|
+
};
|
|
1454
|
+
const _hoisted_2 = { key: 0 };
|
|
1455
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1456
|
+
return openBlock(), createElementBlock(
|
|
1457
|
+
"div",
|
|
1458
|
+
{
|
|
1459
|
+
ref: "el",
|
|
1460
|
+
class: normalizeClass(["bg-glass ring-base color-base fixed relative z-9999999 w-400px flex flex-col of-hidden border border-base rounded-lg text-sm shadow-lg ring-1 backdrop-blur duration-200", [
|
|
1461
|
+
$setup.isDragging ? "transition-none" : "transition-opacity",
|
|
1462
|
+
$props.props.matched ? "op100" : "op0 pointer-events-none"
|
|
1463
|
+
]]),
|
|
1464
|
+
style: normalizeStyle($setup.style)
|
|
1465
|
+
},
|
|
1466
|
+
[
|
|
1467
|
+
createCommentVNode(' <div\n class="pointer-events-none absolute inset-0 z-10 transition-opacity duration-300"\n >\n <div class="nuxt-devtools-inspect-running-border pointer-events-none absolute inset-0 z-10 border-1.5 border-transparent rounded-lg" />\n </div> '),
|
|
1468
|
+
createElementVNode(
|
|
1469
|
+
"div",
|
|
1470
|
+
_hoisted_1,
|
|
1471
|
+
[
|
|
1472
|
+
createElementVNode("button", {
|
|
1473
|
+
title: "Go to parent",
|
|
1474
|
+
class: "flex items-center text-sm font-mono op50 hover:text-green6 hover:op100",
|
|
1475
|
+
onClick: $setup.selectParent
|
|
1476
|
+
}, _cache[0] || (_cache[0] = [
|
|
1477
|
+
createElementVNode(
|
|
1478
|
+
"div",
|
|
1479
|
+
{ class: "i-ph-arrow-bend-left-up-duotone text-lg" },
|
|
1480
|
+
null,
|
|
1481
|
+
-1
|
|
1482
|
+
/* HOISTED */
|
|
1483
|
+
)
|
|
1484
|
+
])),
|
|
1485
|
+
createElementVNode("button", {
|
|
1486
|
+
title: "Open in editor",
|
|
1487
|
+
class: "flex items-center text-sm font-mono op50 hover:text-green6 hover:op100",
|
|
1488
|
+
onClick: $setup.openInEditor
|
|
1489
|
+
}, [
|
|
1490
|
+
$props.props.matched ? (openBlock(), createElementBlock(
|
|
1491
|
+
"span",
|
|
1492
|
+
_hoisted_2,
|
|
1493
|
+
toDisplayString($props.props.matched.pos[0]) + ":" + toDisplayString($props.props.matched.pos[1]) + ":" + toDisplayString($props.props.matched.pos[2]),
|
|
1494
|
+
1
|
|
1495
|
+
/* TEXT */
|
|
1496
|
+
)) : createCommentVNode("v-if", true),
|
|
1497
|
+
_cache[1] || (_cache[1] = createElementVNode(
|
|
1498
|
+
"div",
|
|
1499
|
+
{ class: "i-ph-arrow-up-right-light mt--2 text-lg" },
|
|
1500
|
+
null,
|
|
1501
|
+
-1
|
|
1502
|
+
/* HOISTED */
|
|
1503
|
+
))
|
|
1504
|
+
]),
|
|
1505
|
+
_cache[3] || (_cache[3] = createElementVNode(
|
|
1506
|
+
"div",
|
|
1507
|
+
{ class: "flex-auto" },
|
|
1508
|
+
null,
|
|
1509
|
+
-1
|
|
1510
|
+
/* HOISTED */
|
|
1511
|
+
)),
|
|
1512
|
+
createElementVNode("button", {
|
|
1513
|
+
title: "Close",
|
|
1514
|
+
class: "flex-none op50 hover:op100",
|
|
1515
|
+
onClick: $setup.close
|
|
1516
|
+
}, _cache[2] || (_cache[2] = [
|
|
1517
|
+
createElementVNode(
|
|
1518
|
+
"div",
|
|
1519
|
+
{ class: "i-ph-x text-lg" },
|
|
1520
|
+
null,
|
|
1521
|
+
-1
|
|
1522
|
+
/* HOISTED */
|
|
1523
|
+
)
|
|
1524
|
+
]))
|
|
1525
|
+
],
|
|
1526
|
+
512
|
|
1527
|
+
/* NEED_PATCH */
|
|
1528
|
+
)
|
|
1529
|
+
],
|
|
1530
|
+
6
|
|
1531
|
+
/* CLASS, STYLE */
|
|
1532
|
+
);
|
|
1533
|
+
}
|
|
1534
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/devtools/devtools/packages/devtools/src/webcomponents/components/NuxtDevtoolsInspectPanel.vue"]]);
|
|
1535
|
+
|
|
1536
|
+
const NuxtDevtoolsInspectPanel = defineCustomElement({
|
|
1537
|
+
...Component,
|
|
1538
|
+
shadowRoot: true,
|
|
1539
|
+
styles: [css]
|
|
1540
|
+
});
|
|
1541
|
+
customElements.define("nuxt-devtools-inspect-panel", NuxtDevtoolsInspectPanel);
|
|
1542
|
+
|
|
1543
|
+
export { NuxtDevtoolsFrame, NuxtDevtoolsInspectPanel };
|