@modern-js/devtools-client 2.63.2 → 2.63.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/modern.config.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +85 -85
- package/dist/static/css/{126.a6924970.css → 1.6a526fe8.css} +1 -1
- package/dist/static/css/{462.e8d8ecd9.css → 836.0fe0f508.css} +1 -1
- package/dist/static/css/components.699409ea.css +1 -0
- package/dist/static/html/client/index.html +3 -3
- package/dist/static/html/mount/index.html +3 -3
- package/dist/static/js/{126.0e10fa7a.js → 1.cfe5476e.js} +3 -3
- package/dist/static/js/{130.1eb14df2.js → 130.a07502b8.js} +1 -1
- package/dist/static/js/{462.22b4d9cf.js → 836.e19cd11f.js} +3 -3
- package/dist/static/js/async/{607.0d1ce3ea.js → 873.95c49d9c.js} +1 -1
- package/dist/static/js/async/client_config/(toolkit).(type)/{page.a123736c.js → page.526081b7.js} +1 -1
- package/dist/static/js/async/client_config/{layout.c95b8802.js → layout.906d53b4.js} +1 -1
- package/dist/static/js/async/client_context/builder/{page.ee9f7d4c.js → page.b7db7844.js} +1 -1
- package/dist/static/js/async/client_context/framework/{page.a6b5ae72.js → page.ccd7478c.js} +1 -1
- package/dist/static/js/async/client_context/{layout.07a10d5b.js → layout.65142e75.js} +1 -1
- package/dist/static/js/async/client_doctor/page.b9ec1583.js +1 -0
- package/dist/static/js/async/client_external/{$.4292f24f.js → $.f2beb16a.js} +1 -1
- package/dist/static/js/async/client_headers/editor/page.6f029768.js +1 -0
- package/dist/static/js/async/client_headers/layout.30770215.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.86e5e9cd.js +1 -0
- package/dist/static/js/async/client_overview/{layout.cd3ddb64.js → layout.0a3c53ca.js} +1 -1
- package/dist/static/js/async/client_overview/page.20b1a391.js +1 -0
- package/dist/static/js/async/client_pages/{layout.f670b11b.js → layout.a304a427.js} +1 -1
- package/dist/static/js/async/client_pages/page.09c0c316.js +1 -0
- package/dist/static/js/async/client_react/(tab)/page.9fe4906d.js +1 -0
- package/dist/static/js/async/client_react/offscreen/page.d5d20856.js +1 -0
- package/dist/static/js/async/client_storage/preset/(id)/page.9d177657.js +1 -0
- package/dist/static/js/async/client_storage/preset/layout.fa4f0456.js +1 -0
- package/dist/static/js/async/client_storage/preset/page.ac8e6975.js +1 -0
- package/dist/static/js/{builder-runtime.63449c22.js → builder-runtime.46d88f1d.js} +1 -1
- package/dist/static/js/{client.a42dc0eb.js → client.1613a37f.js} +1 -1
- package/dist/static/js/components.0e74d3c5.js +1 -0
- package/dist/static/js/{lib-polyfill.e1296102.js → lib-polyfill.462b1c61.js} +1 -1
- package/dist/static/js/{mount.2c706324.js → mount.821ca349.js} +1 -1
- package/package.json +10 -10
- package/dist/static/css/components.56c726cb.css +0 -1
- package/dist/static/js/async/client_doctor/page.4c135775.js +0 -1
- package/dist/static/js/async/client_headers/editor/page.73be1948.js +0 -1
- package/dist/static/js/async/client_headers/layout.060cf7f4.js +0 -1
- package/dist/static/js/async/client_headers/welcome/page.edaac59f.js +0 -1
- package/dist/static/js/async/client_overview/page.ad0466e8.js +0 -1
- package/dist/static/js/async/client_pages/page.86bfef0d.js +0 -1
- package/dist/static/js/async/client_react/(tab)/page.b2739b5c.js +0 -1
- package/dist/static/js/async/client_react/offscreen/page.a1b607f7.js +0 -1
- package/dist/static/js/async/client_storage/preset/(id)/page.ff8ef908.js +0 -1
- package/dist/static/js/async/client_storage/preset/layout.be389ac8.js +0 -1
- package/dist/static/js/async/client_storage/preset/page.f51b7267.js +0 -1
- package/dist/static/js/components.544a9b00.js +0 -1
- /package/dist/static/js/{126.0e10fa7a.js.LICENSE.txt → 1.cfe5476e.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{462.22b4d9cf.js.LICENSE.txt → 836.e19cd11f.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o("86834"),l=o("49987"),r=o("65"),i=o("64542"),s=o("10487"),a=o("7459"),c=o("65872"),d=o("52493"),u=o.n(d),m=o("9880"),v=o.n(m),h=o("57662"),p=o("
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{96747:function(e,t,o){var n=o("86834"),l=o("49987"),r=o("65"),i=o("64542"),s=o("10487"),a=o("7459"),c=o("65872"),d=o("52493"),u=o.n(d),m=o("9880"),v=o.n(m),h=o("57662"),p=o("38268");let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,h.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,h.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("883").then(o.bind(o,10851)),r=l(document.cookie),i=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.sj)({loaded:!1}),b=v()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o("41035"),j=o("5872"),x=o("41629");let C=(e,t)=>{var o,n;return null!==(n=null===(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===o?void 0:o.includes(t))&&void 0!==n&&n},E=e=>{let[t,...o]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),n=o.findIndex(e=>{let{key:o}=e;return C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},N=e=>{var t;let o=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=E({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,v,...h]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[v.key]=v.value,p[h[0].key]="auto",p[h[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect(),l=t.clientX-n.left;r({el:o,clickable:!0,moveable:!0,offsetX:l,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},R=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var S=o("97137"),D=o("7182"),P=o("39120"),T=o("52793"),H=o("59813");let Y=e=>{var t;let o=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,r=(0,j.useRef)(!1);l&&(r.current=!0);let i=e.load||(o?r.current:l);return i?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var B=o("20117"),I=o("12157");let L=e=>{var t;let[o,l]=(0,B.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:I.Z.container,onClick:l,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:o.loading,children:e.children})};var O=o("34929"),X=o("17936"),U=o("56350"),F=o("9768"),W=o("75038");let K=e=>{var{src:t,onClose:o}=e,i=(0,X._)(e,["src","onClose"]);let{loaded:s}=(0,U.R)(k);return(0,n.jsxs)(D.xu,(0,r._)((0,l._)({className:W.Z.container},i),{children:[(0,n.jsx)("iframe",{className:W.Z.frame,src:t}),(0,n.jsx)(P.cu3,{className:W.Z.closeButton,onClick:o}),(0,n.jsx)("div",{className:W.Z.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(F.g,{})})]}))},M=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null===(e=o.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},A=e=>{let t=M(),[o,i]=(0,T.Z)(!!t),[s,a]=(0,j.useState)(!1),c=N({clamp:!0}),[d]=(0,S.U)();(0,x.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&i()}),(0,j.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(i(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(i(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),i(!1),a(!0);try{(await R(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,H.Z)(async()=>{if(!!t)(await R(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(D.Q2,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(Y,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:O.Z.container,children:(0,n.jsx)(K,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(D.kC,(0,r._)((0,l._)({className:O.Z.fab},c.props),{align:"center",children:[(0,n.jsx)(L,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:O.Z.logo,src:e.logo})}),(0,n.jsx)(L,{onClick:u,children:(0,n.jsx)(P.aur,{})})]}))]})},q=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(A,{logo:e.context.def.assets.logo,src:l.href})},J="container-bYVevn",Q=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register",J),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(q,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Q):Q()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["1","126","130","567","58","85"],function(){return t("5256"),t("29130"),t("66587"),t("28651"),t("96747")}),e.O()}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.63.
|
|
3
|
+
"version": "2.63.3",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
24
24
|
"@radix-ui/react-toast": "^1.1.5",
|
|
25
25
|
"@radix-ui/themes": "^3.0.5",
|
|
26
|
-
"@rsbuild/core": "1.1.
|
|
26
|
+
"@rsbuild/core": "1.1.10",
|
|
27
27
|
"@types/jest": "^29",
|
|
28
28
|
"@types/lodash": "^4.14.202",
|
|
29
29
|
"@types/node": "~16.11.7",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"typescript": "~5.0.4",
|
|
58
58
|
"ufo": "^1.3.0",
|
|
59
59
|
"valtio": "^1.11.1",
|
|
60
|
-
"@modern-js/app-tools": "2.63.
|
|
61
|
-
"@modern-js/devtools-kit": "2.63.
|
|
62
|
-
"@modern-js/plugin-proxy": "2.63.
|
|
63
|
-
"@modern-js/runtime": "2.63.
|
|
64
|
-
"@modern-js/tsconfig": "2.63.
|
|
65
|
-
"@scripts/jest-config": "2.63.
|
|
66
|
-
"@modern-js/types": "2.63.
|
|
67
|
-
"@modern-js/utils": "2.63.
|
|
60
|
+
"@modern-js/app-tools": "2.63.3",
|
|
61
|
+
"@modern-js/devtools-kit": "2.63.3",
|
|
62
|
+
"@modern-js/plugin-proxy": "2.63.3",
|
|
63
|
+
"@modern-js/runtime": "2.63.3",
|
|
64
|
+
"@modern-js/tsconfig": "2.63.3",
|
|
65
|
+
"@scripts/jest-config": "2.63.3",
|
|
66
|
+
"@modern-js/types": "2.63.3",
|
|
67
|
+
"@modern-js/utils": "2.63.3"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"cookie-es": "^1.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.link-znMYnO{color:var(--gray-10)}.connector-BqtwBd{color:var(--gray-6);height:var(--font-size-2);width:var(--font-size-2)}.container-WHe0d3{stroke:var(--gray-12);align-items:center;background-color:transparent;border:none;color:var(--gray-12);cursor:pointer;display:flex;height:var(--space-5);justify-content:center;padding:var(--space-1);transition:opacity .2s;width:var(--space-5)}.container-WHe0d3:disabled{cursor:wait}.container-WHe0d3[data-type=default]{opacity:.4}.container-WHe0d3[data-type=default]:not(:disabled):hover{opacity:1}.container-tsQk3U{align-items:center;bottom:0;display:flex;justify-content:center;left:0;pointer-events:none;position:fixed;right:0;top:0}.container-tsQk3U>*{pointer-events:auto}.fab-_shO90{animation:slideInFromRight-cmflGC .4s ease-out forwards;background-color:var(--gray-2);border:none;border-radius:999px;bottom:10px;box-shadow:var(--shadow-5);cursor:pointer;display:flex;height:-webkit-max-content;height:-moz-max-content;height:max-content;padding:0 var(--space-1);position:fixed;right:10px;touch-action:none;transition:box-shadow .4s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:-webkit-max-content;width:-moz-max-content;width:max-content}.fab-_shO90:hover{box-shadow:var(--shadow-5),0 0 20px var(--gray-a7)}.fab-_shO90 img{pointer-events:none}.logo-nXXNIB{background-size:contain;height:1.25rem;object-fit:contain;width:1.25rem}@keyframes slideInFromRight-cmflGC{0%{opacity:0;transform:translateX(50%)}to{opacity:1;transform:translateX(0)}}.loading-HrjYdW{stroke:#555;animation:rotate-CPIjfB 1s linear infinite}@keyframes rotate-CPIjfB{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.container-COzu4H{align-items:center;display:flex;justify-content:center}.container-uSZ85N{color:var(--gray-11);min-width:var(--space-9);width:-webkit-max-content;width:-moz-max-content;width:max-content}.children-cVMy6R{color:var(--gray-9)}.container-tcM8fB{bottom:0;box-shadow:var(--shadow-5);left:0;overflow:hidden;position:fixed;right:0;top:0}@media(min-width:520px){.container-tcM8fB{border-radius:.75rem;height:35rem;position:relative;width:50rem}}.close-button-weoXpd{color:var(--gray-8);cursor:pointer;position:absolute;right:10px;top:10px}.frame-PSYQgj{border:none;height:100%;width:100%}.backdrop-SWoFLh{stroke:#555;align-items:center;background-color:var(--gray-2);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.container-SkRv4t{font-size:var(--font-size-2)}.card-If0911{background-color:var(--gray-1);border:solid 1px var(--gray-4);border-radius:var(--radius-4);padding:var(--space-3);transition:background-color .1s}.card-If0911[data-variant=indicate]{border-radius:var(--radius-5);box-shadow:var(--shadow-4);padding:var(--space-5)}.card-If0911[data-inset=true]{padding:0}.card-If0911[data-clickable=true]{cursor:pointer}.card-If0911[data-clickable=true] *{cursor:pointer}.card-If0911[data-clickable=true]:active{background-color:var(--gray-4)}.card-If0911[data-selected=true]{border-color:var(--gray-8);outline:solid 1px var(--gray-8)}.container-e3dQes{background-color:var(--gray-1);border-radius:var(--radius-2);box-shadow:var(--shadow-4);display:flex;flex-direction:column;overflow:hidden}.input-pair-rQmmCj{align-items:center;display:flex;gap:var(--space-2);padding:var(--space-2) var(--space-3)}.input-pair-rQmmCj:nth-child(odd){background-color:var(--gray-2)}.input-pair-rQmmCj:nth-child(2n){background-color:var(--gray-3)}.input-pair-rQmmCj:not([aria-disabled=true]):hover .actions-AIkunB{display:flex;gap:var(--space-2)}.actions-AIkunB{align-items:center;display:none;padding-left:var(--space-1)}.container-e74VUa{background-color:var(--gray-1);border-radius:var(--radius-2);box-shadow:var(--shadow-4)}.trigger-THjT7j{all:unset;align-items:center;cursor:pointer;display:flex;gap:var(--space-2);width:100%}.trigger-THjT7j *{cursor:pointer}.content-Qso8ca{overflow:hidden;padding-top:var(--space-2)}.content-Qso8ca[data-state=open]{animation:slideDown-Z9IIi_ .15s ease-out}.content-Qso8ca[data-state=closed]{animation:slideUp-H_SR0p .15s ease-out}@keyframes slideDown-Z9IIi_{0%{height:0;opacity:0}to{height:var(--radix-collapsible-content-height);opacity:1}}@keyframes slideUp-H_SR0p{0%{height:var(--radix-collapsible-content-height);opacity:1}to{height:0;opacity:0}}.url-text-OqB5_M{color:var(--gray-12);font-size:var(--font-size-2);transition:color .2s}.mark-cUxPxy{align-items:center;background-color:transparent;border-radius:var(--radius-2);display:flex;height:var(--font-size-5);justify-content:center;transition:background-color .1s;width:var(--font-size-5)}.mark-cUxPxy[data-open=true]{background-color:var(--gray-4)}.endpoint-tag-y0SEjj{font-size:var(--font-size-2)}.endpoint-tag-y0SEjj[data-compose=head]{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:0}.endpoint-tag-y0SEjj[data-compose=tail]{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:0}.shy-link-Xazm8H{color:var(--gray-9);font-size:var(--font-size-1)}.endpoint-container-XVJeZy{display:flex;transition:opacity .2s}.endpoint-container-XVJeZy[data-matched=false]{opacity:.5}.stats-cb58Fz{color:var(--gray-10);font-size:var(--font-size-1);white-space:nowrap}.container-dWGOkz{align-items:center;border-radius:var(--space-2);box-shadow:var(--shadow-3);display:flex;font-size:var(--font-size-2);gap:var(--space-2);padding:var(--space-3) var(--space-4)}.container-dWGOkz[data-state=open]{animation:slideIn-AQnKGk .15s cubic-bezier(.16,1,.3,1)}.container-dWGOkz[data-state=closed]{animation:hide-LUv_Hv .1s ease-in}.container-dWGOkz[data-swipe=move]{transform:translateX(var(--radix-toast-swipe-move-x))}.container-dWGOkz[data-swipe=cancel]{transform:translateX(0);transition:transform .2s ease-out}.container-dWGOkz[data-swipe=end]{animation:swipeOut-ZTbSGG .1s ease-out}.viewport-Owdzo8{--viewport-padding:25px;bottom:0;display:flex;flex-direction:column;gap:10px;list-style:none;margin:0;max-width:100vw;outline:none;padding:var(--viewport-padding);position:fixed;right:0;width:240px;z-index:2147483647}.close-i8MeRu{background:none;border:none;color:var(--gray-11);cursor:pointer;height:var(--space-4);padding:0;width:var(--space-4)}@keyframes hide-LUv_Hv{0%{opacity:1}to{opacity:0}}@keyframes slideIn-AQnKGk{0%{transform:translateX(calc(100% + var(--viewport-padding)))}to{transform:translateX(0)}}@keyframes swipeOut-ZTbSGG{0%{transform:translateX(var(--radix-toast-swipe-end-x))}to{transform:translateX(calc(100% + var(--viewport-padding)))}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["488"],{88640:function(e,r,t){t.d(r,{Z:function(){return s}});let s=function(){for(var e,r,t=0,s="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,s,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r){if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(s=e(r[t]))&&(n&&(n+=" "),n+=s);else for(t in r)r[t]&&(n&&(n+=" "),n+=t)}return n}(e))&&(s&&(s+=" "),s+=r);return s}},9197:function(e,r,t){t.d(r,{Z:()=>d,x:()=>x});var s=t("49987"),n=t("65"),c=t("17936"),a=t("86834"),o=t("58323"),i=t("88640"),l=t("92774");let d=e=>{let{children:r,className:t,variant:d,clickable:x=!1,selected:u=!1,inset:h=!1}=e,m=(0,c._)(e,["children","className","variant","clickable","selected","inset"]);return(0,a.jsx)(o.xu,(0,n._)((0,s._)({},m),{"data-variant":null!=d?d:"","data-clickable":x,"data-selected":u,"data-inset":h,className:(0,i.Z)(l.Z.card,t),children:r}))},x=e=>(0,a.jsx)(o.kC,(0,s._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},59843:function(e,r,t){t.r(r),t.d(r,{default:()=>b});var s=t("49987"),n=t("65"),c=t("86834"),a=t("9197"),o=t("95197"),i=t("58323"),l=t("88640"),d=t("52493"),x=t.n(d),u=t("39120"),h=t("55058"),m=t("88435");let p={container:"container-tngPYT","primary-card":"primary-card-wrJYru",primaryCard:"primary-card-wrJYru","info-card":"info-card-vFI4Ue",infoCard:"info-card-vFI4Ue","count-card":"count-card-nPDp4G",countCard:"count-card-nPDp4G","compile-cost-card":"compile-cost-card-HAKRNe",compileCostCard:"compile-cost-card-HAKRNe",logo:"logo-L2qUVd","count-text":"count-text-SERJmy",countText:"count-text-SERJmy","error-item":"error-item-seXl02",errorItem:"error-item-seXl02","text-truncation":"text-truncation-AwJ4FU",textTruncation:"text-truncation-AwJ4FU","cost-box":"cost-box-rUPGBo",costBox:"cost-box-rUPGBo","cost-bar":"cost-bar-g3W7tq",costBar:"cost-bar-g3W7tq","cost-label":"cost-label-lYCgOV",costLabel:"cost-label-lYCgOV",heading:"heading-_UWATX"},j=t.p+"static/image/rsdoctor-large.5549d958.png",g=e=>{let{cost:r}=e,[t,s]=r.name.split("->"),[n,a]=[t,s].map(e=>["bootstrap","done"].includes(e)?void 0:"".concat("https://webpack.js.org/api/compiler-hooks","#").concat(e.toLowerCase())),o=r.costs>1e3?"".concat((r.costs/1e3).toFixed(2),"s"):"".concat(r.costs,"ms");return(0,c.jsxs)(i.zs.fC,{children:[(0,c.jsx)(i.zs.xz,{children:(0,c.jsxs)(i.xu,{className:p.costBox,style:{flex:r.costs},children:[(0,c.jsxs)(i.xv,{size:"1",color:"gray",className:(0,l.Z)(p.textTruncation,p.costLabel),children:[x().startCase(r.title),"(",o,")"]}),(0,c.jsx)(i.xu,{className:p.costBar})]})}),(0,c.jsx)(i.zs.VY,{size:"1",children:(0,c.jsxs)(i.xv,{size:"1",color:"gray",children:[(0,c.jsx)(i.rU,{target:"_blank",href:n,children:t}),(0,c.jsxs)(i.xv,{children:[" \xb7\xb7\xb7",o,"\xb7\xb7\xb7 "]}),(0,c.jsx)(i.rU,{target:"_blank",href:a,children:s})]})})]})},b=()=>{var e,r,t,l,d,b;let f=(0,o.k)(),{doctor:k,dependencies:v,context:{def:C}}=(0,m.R)(f);if(!k)throw TypeError("Doctor is not available");let y=Object.keys(v).find(e=>e.startsWith("@web-doctor/"))?"Web Doctor":"Rsdoctor",w=null!==(b=null!==(d=null!==(l=null!==(t=null!==(r=null!==(e=v["@web-doctor/webpack-plugin(builder)"])&&void 0!==e?e:v["@web-doctor/rspack-plugin(builder)"])&&void 0!==r?r:v["@web-doctor/webpack-plugin"])&&void 0!==t?t:v["@web-doctor/rspack-plugin"])&&void 0!==l?l:v["@rsdoctor/rspack-plugin"])&&void 0!==d?d:v["@rsdoctor/webpack-plugin"])&&void 0!==b?b:v["@rsdoctor/core"],N=x()(k.summary.costs).sortBy(["startAt","name","costs"]).sortedUniqBy("name").cloneDeep().map(e=>{if("bootstrap->beforeCompile"===e.name)return(0,n._)((0,s._)({},e),{title:"prepare"});if("beforeCompile->afterCompile"===e.name)return(0,n._)((0,s._)({},e),{title:"compile"});if("afterCompile->done"===e.name)return(0,n._)((0,s._)({},e),{title:"optimize"});return(0,n._)((0,s._)({},e),{title:"unknown"})}),z=x().groupBy(k.errors,"description");return(0,c.jsx)(i.kC,{direction:"column",align:"center",p:"4",children:(0,c.jsxs)(i.kC,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:p.container,children:[(0,c.jsx)(a.Z,{variant:"indicate",className:p.primaryCard,children:(0,c.jsx)(i.Q2,{appearance:"light",hasBackground:!1,asChild:!0,children:(0,c.jsxs)(a.x,{children:[(0,c.jsx)(i.X6,{as:"h1",color:"gray",className:p.heading,children:y}),(0,c.jsx)(i.kC,{gap:"2",children:(0,c.jsx)("button",{type:"button",children:w?"v".concat(w):"Unknown"})}),(0,c.jsxs)(i.rU,{href:C.doctor.quickStart,color:"gray",size:"1",underline:"always",target:"_blank",rel:"noopener noreferrer",children:["Launch ",y," with complete features."]})]})})}),(0,c.jsx)(a.Z,{variant:"indicate",className:p.infoCard,children:(0,c.jsxs)(i.kC,{justify:"between",gap:"2",align:"center",height:"100%",children:[(0,c.jsxs)(i.xu,{children:[(0,c.jsx)(i.xv,{color:"gray",children:"Visit our website"}),(0,c.jsx)(i.kC,{align:"center",asChild:!0,children:(0,c.jsxs)(i.rU,{href:C.doctor.home,target:"_blank",rel:"noopener noreferrer",children:[(0,c.jsx)(u.WRS,{}),(0,c.jsx)(i.xv,{children:(0,h.Lk)(C.doctor.home).host})]})})]}),(0,c.jsx)("img",{className:p.logo,src:j})]})}),(0,c.jsx)(a.Z,{variant:"indicate",className:p.countCard,children:(0,c.jsxs)(a.x,{children:[(0,c.jsxs)(i.xv,{className:p.countText,size:"1",children:[(0,c.jsx)(u.bMg,{})," ",k.numModules," modules"]}),(0,c.jsxs)(i.xv,{className:p.countText,size:"1",children:[(0,c.jsx)(u.hsV,{})," ",k.numPackages," packages"]}),(0,c.jsxs)(i.xv,{className:p.countText,size:"1",children:[(0,c.jsx)(u.DlH,{})," ",k.numChunks," chunks"]})]})}),(0,c.jsx)(a.Z,{variant:"indicate",className:p.compileCostCard,children:(0,c.jsxs)(a.x,{children:[(0,c.jsx)(i.kC,{asChild:!0,align:"center",gap:"1",children:(0,c.jsxs)(i.X6,{as:"h3",size:"2",color:"gray",children:[(0,c.jsx)(u.h4y,{}),"Compile Overall"]})}),(0,c.jsx)(i.kC,{width:"100%",gap:"1",children:N.map(e=>(0,c.jsx)(g,{cost:e},e.name))})]})}),(0,c.jsx)(a.Z,{variant:"indicate",width:"100%",children:(0,c.jsxs)(a.x,{children:[(0,c.jsxs)(i.xv,{weight:"bold",size:"1",color:"gray",children:["Found ",x().size(z)," ",x().size(z)>1?"errors":"error"]}),Object.entries(z).map(e=>{let[r,t]=e;return(0,c.jsxs)(i.xu,{className:p.errorItem,children:[(0,c.jsx)(u.Sbn,{className:p.errorIcon})," ",(0,c.jsx)(i.xv,{size:"1",className:p.textTruncation,children:r}),t.length>1&&(0,c.jsxs)(i.xv,{size:"1",className:p.errorCount,children:["(x",t.length,")"]})]},r)})]})})]})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["730"],{47014:function(e,a,l){l.r(a),l.d(a,{default:()=>C});var s=l("86834"),r=l("49987"),n=l("65"),i=l("17936"),c=l("58323"),d=l("95382"),t=l("5872"),o=l("82847"),h=l("88435"),u=l("24547"),x=l("39120"),v=l("16046");let j=e=>{let{$data:a,onDelete:l,onInsert:r,disabled:n,placeholders:i=["Key...","Value..."]}=e,d=(0,h.R)(a);return(0,s.jsxs)(c.xu,{className:v.Z.inputPair,"aria-disabled":n,children:[(0,s.jsx)(c.nv.f,{value:d.key,disabled:n,placeholder:i[0],onChange:e=>a.key=e.currentTarget.value}),(0,s.jsx)(c.xu,{asChild:!0,flexGrow:"1",children:(0,s.jsx)(c.nv.f,{value:d.value,disabled:n,placeholder:i[1],onChange:e=>a.value=e.currentTarget.value})}),(0,s.jsxs)(c.xu,{className:v.Z.actions,children:[(0,s.jsx)(c.hU,{variant:"ghost",color:"gray",onClick:l,children:(0,s.jsx)(x.O$V,{})}),(0,s.jsx)(c.hU,{variant:"ghost",color:"gray",onClick:r,children:(0,s.jsx)(x.PW$,{})})]})]},d.id)},g=e=>{var{$data:a=(0,o.sj)([]),disabled:l,placeholders:x}=e,v=(0,i._)(e,["$data","disabled","placeholders"]);let g=(0,h.R)(a);return(0,t.useEffect)(()=>{g.length<=0&&a.push({id:(0,d.nanoid)(),key:"",value:""})},[g.length]),(0,s.jsx)(c.xu,(0,n._)((0,r._)({className:u.Z.container},v),{children:g.map((e,r)=>(0,s.jsx)(j,{$data:a[r],disabled:l,placeholders:x,onDelete:()=>a.splice(r,1),onInsert:()=>a.splice(r+1,0,{id:(0,d.nanoid)(),key:"",value:""})},e.id))}))};var f=l("52493"),k=l.n(f),p=l("55058"),y=l("96575");let m={signal:"signal-L2JPtX"},C=()=>{let e=(0,h.R)(y.ok),a=!!e.service.href,l=(0,t.useMemo)(()=>{var a;return(0,o.sj)(null!==(a=k().cloneDeep(e.service.rules))&&void 0!==a?a:[])},[]),r=(0,h.R)(l),n=a?"Active":"Offline",i=async()=>{await (0,y.gM)(r.filter(e=>e.key))},d=async()=>{await (0,y.m)()};return(0,s.jsxs)(c.xu,{className:m.container,children:[(0,s.jsx)(c.X6,{mt:"4",children:"Header Modifier"}),(0,s.jsxs)(c.kC,{align:"center",gap:"1",children:[(0,s.jsx)(c.xu,{className:m.signal,"data-active":a}),(0,s.jsx)(c.xv,{color:"gray",size:"1",children:n}),e.service.href&&(0,s.jsx)(c.rU,{size:"1",href:e.service.href,target:"_blank",children:(0,p.Lk)(e.service.href).pathname})]}),(0,s.jsx)(g,{$data:l,disabled:a,my:"3",placeholders:["Match header field...","Replace by..."]}),(0,s.jsx)(c.kC,{justify:"end",gap:"2",children:a?(0,s.jsx)(c.zx,{color:"red",onClick:d,children:"Unregister"}):(0,s.jsx)(c.zx,{onClick:i,children:"Register"})})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["925"],{10252:function(e,t,s){s.r(t),s.d(t,{default:function(){return u}});var n=s(86834),r=s(43866),o=s(58323);function u(){return(0,n.jsx)(o.xu,{width:"100%",height:"100%",pt:"6",style:{overflowY:"scroll"},children:(0,n.jsx)(o.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,n.jsx)(r.j3,{})})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["860"],{40500:function(e,s,r){r.r(s),r.d(s,{default:function(){return i}});var n=r(86834),l=r(43866),t=r(58323);let i=()=>{let e=(0,l.s0)();return(0,n.jsxs)(t.xu,{children:[(0,n.jsx)(t.X6,{my:"4",children:"Header Modifier"}),(0,n.jsx)(t.xv,{as:"p",mb:"2",children:"Modifying headers of requests, useful for switch between traffic lanes."}),(0,n.jsxs)(t.xv,{as:"p",children:["That will register",(0,n.jsx)(t.rU,{href:"/sw-proxy.js",target:"_blank",mx:"1",children:"/sw-proxy.js"}),"as a service worker to handle all requests under",(0,n.jsx)(t.rU,{mx:"1",children:location.host})]}),(0,n.jsx)(t.zx,{my:"4",onClick:()=>e("../editor"),children:"Enable"})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r,s){s.d(r,{Z:function(){return a}});let a=function(){for(var e,r,s=0,a="";s<arguments.length;)(e=arguments[s++])&&(r=function e(r){var s,a,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r){if(Array.isArray(r))for(s=0;s<r.length;s++)r[s]&&(a=e(r[s]))&&(n&&(n+=" "),n+=a);else for(s in r)r[s]&&(n&&(n+=" "),n+=s)}return n}(e))&&(a&&(a+=" "),a+=r);return a}},9197:function(e,r,s){s.d(r,{Z:()=>d,x:()=>h});var a=s("49987"),n=s("65"),i=s("17936"),c=s("86834"),l=s("58323"),t=s("88640"),o=s("92774");let d=e=>{let{children:r,className:s,variant:d,clickable:h=!1,selected:x=!1,inset:j=!1}=e,p=(0,i._)(e,["children","className","variant","clickable","selected","inset"]);return(0,c.jsx)(l.xu,(0,n._)((0,a._)({},p),{"data-variant":null!=d?d:"","data-clickable":h,"data-selected":x,"data-inset":j,className:(0,t.Z)(o.Z.card,s),children:r}))},h=e=>(0,c.jsx)(l.kC,(0,a._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},30569:function(e,r,s){s.r(r),s.d(r,{default:()=>v});var a=s("86834"),n=s("58323"),i=s("39120"),c=s("55058"),l=s("88435");s("92774");var t=s("9197"),o=s("95197");let d="container-p5QVGS",h="bottom-tip-K062Gu",x="primary-card-plqY_q",j="compile-time-card-_p7KQL",p="plugin-card-RzXrFC",g="info-card-rAI3LL",u="heading-hVMxZh",f={webpack:"webpack",rspack:"@rspack/core"},v=()=>{let e=(0,o.k)(),{version:r}=(0,l.R)(e),s=(0,l.R)(e.framework).context,{def:v}=(0,l.R)(e).context,k=(0,l.R)(e.dependencies),m=(0,l.R)(e.builder).context,{compileDuration:y}=(0,l.R)(e).performance,b=window.navigator.userAgent.includes("Mac OS"),{toolsType:w}=s;if("app-tools"!==w)throw Error();let C=v.packages.appTools,z=k[C],{bundlerType:Z}=m,N=f[Z],R=k[N];return(0,a.jsxs)(n.kC,{direction:"column",align:"center",children:[(0,a.jsxs)(n.kC,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:d,children:[(0,a.jsx)(t.Z,{variant:"indicate",className:x,children:(0,a.jsx)(n.Q2,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,a.jsxs)(t.x,{children:[(0,a.jsx)(n.X6,{as:"h1",className:u,children:"DevTools"}),(0,a.jsx)(n.kC,{gap:"2",children:(0,a.jsxs)("button",{type:"button",children:["v",r]})}),(0,a.jsxs)(n.xv,{as:"p",size:"1",children:["Powered by ",C,"@",z]})]})})}),(0,a.jsx)(t.Z,{variant:"indicate",className:g,children:(0,a.jsxs)(n.kC,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,a.jsxs)(n.xu,{children:[(0,a.jsx)(n.xv,{color:"gray",children:"Visit our website"}),(0,a.jsx)(n.kC,{align:"center",asChild:!0,children:(0,a.jsxs)(n.rU,{href:v.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)(i.WRS,{}),(0,a.jsx)(n.xv,{children:(0,c.Lk)(v.announcement.fallback).host})]})})]}),(0,a.jsx)(i.vrJ,{size:"50",color:"var(--gray-6)"})]})}),(0,a.jsx)(t.Z,{variant:"indicate",className:p,children:(0,a.jsxs)(n.kC,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,a.jsxs)(n.xu,{children:[(0,a.jsx)(n.xv,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:s.plugins.length}),(0,a.jsx)(n.xv,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,a.jsx)(i.hjZ,{size:"50",color:"var(--gray-6)"})]})}),(0,a.jsx)(t.Z,{variant:"indicate",className:j,children:(0,a.jsxs)(n.kC,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,a.jsxs)(n.xu,{children:[(0,a.jsxs)(n.xv,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(y/1e3).toFixed(2),"s"]}),(0,a.jsxs)(n.xv,{as:"p",size:"1",color:"gray",children:["Compiled in ",N,"@",R]})]}),(0,a.jsx)(i.XoX,{size:"50",color:"var(--gray-6)"})]})})]}),(0,a.jsxs)(n.kC,{align:"center",className:h,children:[(0,a.jsx)(n.xv,{color:"gray",size:"2",children:"Use"}),(0,a.jsxs)(n.Tz,{mx:"2",children:["Shift + ",b?"Opt":"Alt"," + D"]}),(0,a.jsx)(n.xv,{color:"gray",size:"2",children:"to open DevTools"})]})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{26377:function(e,t,n){function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}n.d(t,{S1:function(){return a},jU:function(){return l},on:function(){return r}});var l="undefined"!=typeof window},526:function(e,t,n){n.r(t),n.d(t,{default:()=>ea});var r=n("86834"),a=n("5872"),l=n.t(a,2);let i=(0,a.createContext)({url:""});var o=n("52493"),s=n.n(o),c=n("58323"),u=n("59546"),d=n("67844"),p=n("25705"),x=n("64209"),h=n("28818"),m=n("18906"),f=n("34106"),j=n("8733");let v=l["useId".toString()]||(()=>void 0),y=0,g="Collapsible",[C,b]=(0,p.b)(g),[N,k]=C(g),E=(0,a.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:l,disabled:i,onOpenChange:o,...s}=e,[c=!1,d]=(0,x.T)({prop:r,defaultProp:l,onChange:o});return(0,a.createElement)(N,{scope:n,disabled:i,contentId:function(e){let[t,n]=a.useState(v());return(0,h.b)(()=>{n(e=>null!=e?e:String(y++))},[e]),e||(t?`radix-${t}`:"")}(),open:c,onOpenToggle:(0,a.useCallback)(()=>d(e=>!e),[d])},(0,a.createElement)(f.WV.div,(0,u.Z)({"data-state":_(c),"data-disabled":i?"":void 0},s,{ref:t})))}),w=(0,a.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,l=k("CollapsibleTrigger",n);return(0,a.createElement)(f.WV.button,(0,u.Z)({type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":_(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled},r,{ref:t,onClick:(0,d.M)(e.onClick,l.onOpenToggle)}))}),S="CollapsibleContent",R=(0,a.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,l=k(S,e.__scopeCollapsible);return(0,a.createElement)(j.z,{present:n||l.open},({present:e})=>(0,a.createElement)(Z,(0,u.Z)({},r,{ref:t,present:e})))}),Z=(0,a.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:l,...i}=e,o=k(S,n),[s,c]=(0,a.useState)(r),d=(0,a.useRef)(null),p=(0,m.e)(t,d),x=(0,a.useRef)(0),j=x.current,v=(0,a.useRef)(0),y=v.current,g=o.open||s,C=(0,a.useRef)(g),b=(0,a.useRef)();return(0,a.useEffect)(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.b)(()=>{let e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();x.current=t.height,v.current=t.width,!C.current&&(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),c(r)}},[o.open,r]),(0,a.createElement)(f.WV.div,(0,u.Z)({"data-state":_(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g},i,{ref:p,style:{"--radix-collapsible-content-height":j?`${j}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),g&&l)});function _(e){return e?"open":"closed"}var D=n("66671"),L=n("41755");let P=e=>{let{badge:t,route:n,title:l,children:o,open:s,onOpenChange:u}=e,{matched:d}=(0,a.useContext)(i),[p,x]=(0,a.useState)(!1),h=d===n,m=h||(null!=s?s:p);return(0,r.jsx)(c.xu,{p:"3",className:L.Z.container,children:(0,r.jsxs)(E,{open:m,onOpenChange:null!=u?u:x,children:[(0,r.jsxs)(w,{className:L.Z.trigger,children:[t,(0,r.jsx)(c.xv,{className:L.Z.urlText,style:{opacity:d&&!h?.5:1},children:l}),(0,r.jsx)(c.xu,{flexGrow:"1"}),(0,r.jsx)(c.xu,{className:L.Z.mark,"data-open":m,children:(0,r.jsx)(D.jnn,{})})]}),(0,r.jsx)(R,{className:L.Z.content,children:o})]})})};var T=n("95197"),O=n("82847"),I=n("88435");let z=()=>(0,r.jsx)(c.xv,{children:"Unimplemented."});var U=n("38933"),W=n("55058");let A=(0,a.createContext)([]);var K=n("26377");let V=function(e,t){void 0===t&&(t=!0);var n=(0,a.useState)(!1),r=n[0],l=n[1];return(0,a.useEffect)(function(){var n=function(){return l(!0)},r=function(){return l(!1)};t&&e&&e.current&&((0,K.on)(e.current,"mouseover",n),(0,K.on)(e.current,"mouseout",r));var a=e.current;return function(){t&&a&&((0,K.S1)(a,"mouseover",n),(0,K.S1)(a,"mouseout",r))}},[t,e]),r};var $=n("3042");let F=e=>{var t,n;let{route:l}=e,i=s().castArray(l),o=s().last(i),u="_component"in o&&s().isString(o._component)?o._component:null,d=(0,W.As)("/",...i.map(e=>e.path).filter(s().isString))||"/",p=null!==(n=o.index)&&void 0!==n&&n,x="/"===d,h=(0,a.useContext)(A),m=!1===h||h.length>0,f=!!h&&!!s().find(h,{route:{id:o.id}}),j=(0,a.useRef)(null),v=V(j);return(0,r.jsxs)(c.xu,{ref:j,children:[(0,r.jsxs)(c.kC,{gap:"2",align:"center",mb:o.children&&"1",children:[(0,r.jsxs)(c.xu,{className:$.Z.endpointContainer,"data-matched":!m||f,children:[p&&x||(0,r.jsx)(c.EK,{className:$.Z.endpointTag,"data-compose":p&&"head",children:d}),p&&(0,r.jsx)(c.EK,{className:$.Z.endpointTag,color:"purple","data-compose":!x&&"tail",children:"/(index)"})]}),u&&(0,r.jsx)(c.rU,{className:$.Z.shyLink,style:{visibility:v?"visible":"hidden"},children:u})]}),(0,r.jsx)(c.kC,{direction:"column",gap:"1",children:null===(t=o.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(F,{route:i.concat(e)},e.id))})]})},J=e=>{let{remixRoutes:t,route:n}=e,{matched:l,url:o}=(0,a.useContext)(i),s=(0,a.useMemo)(()=>{if(l!==n)return!l&&[];{var e;if(!t)return[];let r=(0,W.v$)(o.replace(n.urlPath,"/")),a=null!==(e=(0,U.fp)(t,r))&&void 0!==e?e:[];return!!a.length&&a}},[t,l,o]);return(null==t?void 0:t.length)?(0,r.jsx)(A.Provider,{value:s,children:(0,r.jsx)(c.kC,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(F,{route:e},e.id))})}):null};(0,O.sj)({});let M=e=>{let{route:t}=e,{entryName:n}=t;if(!n)throw TypeError("");let l=(0,T.k)(),{entrypoints:i}=(0,I.R)(l.framework).context,o=s().find(i,{entryName:n});if(!o)throw TypeError("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let c=(0,I.R)(l.fileSystemRoutes)[o.entryName];if(!o)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(()=>G(c)?(0,r.jsx)(z,{}):(0,r.jsx)(J,{remixRoutes:c,route:t}),{})})},G=e=>(null==e?void 0:e[0])&&!("type"in e[0]);var q=n("79615");let B=e=>{let{route:t}=e,n=(0,T.k)(),{entrypoints:a}=(0,I.R)(n.framework).context,l=t.entryName&&s().find(a,{entryName:t.entryName});if(!l)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(c.xu,{className:q.Z.stats,children:[(0,r.jsxs)(c.kC,{gap:"1",children:[(0,r.jsx)(c.cK,{children:"Directory: "}),(0,r.jsx)(c.xv,{children:l.absoluteEntryDir})]}),(0,r.jsxs)(c.kC,{gap:"1",children:[(0,r.jsx)(c.cK,{children:"Entry:"}),(0,r.jsx)(c.xv,{children:l.entry})]})]})},Y=e=>{let{route:t}=e;return(0,r.jsx)(P,{badge:H,route:t,title:t.urlPath,children:(0,r.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,r.jsx)(c.xr,{scrollbars:"horizontal",children:(0,r.jsx)(B,{route:t})}),(0,r.jsx)(c.xr,{scrollbars:"horizontal",children:(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(M,{route:t})})})]})})},H=(0,r.jsx)(c.Ct,{color:"cyan",children:"Entry"}),Q=e=>{let{route:t}=e;return(0,r.jsx)(P,{badge:X,route:t,title:t.urlPath,children:(0,r.jsx)(c.Zb,{children:"Unknown route type."})})},X=(0,r.jsx)(c.Ct,{color:"gray",children:"Unknown"}),ee=e=>{let{route:t}=e;return s().isString(t.entryName)?(0,r.jsx)(Y,{route:t}):(0,r.jsx)(Q,{route:t})};var et=n("39120");let en="input-ZLygVL",er="list-xLGYni",ea=()=>{let e=(0,T.k)(),{serverRoutes:t}=(0,I.R)(e.framework).context,[n,l]=(0,a.useState)({url:""}),o=e=>{let{pathname:n}=(0,W.Lk)(e);l({url:e,matched:t.find(e=>n===e.urlPath||n.startsWith((0,W.jE)(e.urlPath)))})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.kC,{className:er,direction:"column",gap:"2",align:"stretch",justify:"between",mx:"auto",children:(0,r.jsx)(i.Provider,{value:n,children:t.map(e=>(0,r.jsx)(ee,{route:e},e.entryPath))})}),(0,r.jsx)(c.xu,{className:en,children:(0,r.jsx)(c.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,r.jsx)(c.nv.f,{placeholder:"/foo?bar#baz",onChange:e=>o(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false",children:(0,r.jsx)(c.nv.g,{children:(0,r.jsx)(et.IIh,{})})})})})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["483"],{15669:function(e,t,s){s.r(t),s.d(t,{default:function(){return c}});var l=s(86834),n=s(95197),o=s(43866),a=s(58323),r=s(5872),i=s(88435);let c=()=>{let e=(0,o.UO)(),t=(0,a.TC)(),s=(0,o.TH)(),c=(0,o.s0)(),d="light"===t.appearance?"light":"dark",{mountPoint:h,react:u}=(0,i.R)((0,n.k)());return(0,r.useEffect)(()=>{h.remote.activateReactDevtools()},[]),(0,r.useEffect)(()=>{if("#inspecting"===s.hash){let e=()=>{u.devtools.wallAgent.send("startInspectingNative",null),c(s.pathname,{replace:!0})};"active"===u.devtools.wallAgent.status?e():u.devtools.wallAgent.hookOnce("active",e)}},[s,c]),(0,l.jsx)(a.xu,{width:"100%",height:"100%",pt:"5",children:(0,l.jsx)(u.devtools.Renderer,{browserTheme:d,overrideTab:"profiler"===e.tab?"profiler":"components",hideSettings:!1})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["752"],{13818:function(e,s,n){n.r(s),n.d(s,{default:function(){return r}});var o=n(86834),l=n(58323);let r=()=>(0,o.jsx)(l.xu,{children:(0,o.jsx)(l.xv,{children:"React DevTools is unavailable for offscreen."})})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["244"],{88640:function(e,t,n){n.d(t,{Z:function(){return r}});let r=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(l&&(l+=" "),l+=r);else for(n in t)t[n]&&(l&&(l+=" "),l+=n)}return l}(e))&&(r&&(r+=" "),r+=t);return r}},9197:function(e,t,n){n.d(t,{Z:()=>d,x:()=>u});var r=n("49987"),l=n("65"),o=n("17936"),i=n("86834"),a=n("58323"),s=n("88640"),c=n("92774");let d=e=>{let{children:t,className:n,variant:d,clickable:u=!1,selected:x=!1,inset:h=!1}=e,p=(0,o._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(a.xu,(0,l._)((0,r._)({},p),{"data-variant":null!=d?d:"","data-clickable":u,"data-selected":x,"data-inset":h,className:(0,s.Z)(c.Z.card,n),children:t}))},u=e=>(0,i.jsx)(a.kC,(0,r._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},65743:function(e,t,n){n.r(t),n.d(t,{default:()=>C});var r=n("49987"),l=n("65"),o=n("17936"),i=n("86834"),a=n("9197"),s=n("87540"),c=n("58323"),d=n("5872"),u=n("39120"),x=n("80310");let h=e=>{let{title:t,content:n,children:a}=e,d=(0,o._)(e,["title","content","children"]);return(0,i.jsxs)(s.fC,(0,l._)((0,r._)({},d),{className:x.Z.container,children:[t&&(0,i.jsx)(s.Dx,{children:t}),(0,i.jsx)(s.dk,{children:n}),a&&(0,i.jsx)(s.aU,{altText:"",asChild:!0,children:a}),(0,i.jsx)(c.xu,{flexGrow:"1"}),(0,i.jsx)(s.x8,{className:x.Z.close,"aria-label":"Close",children:(0,i.jsx)(u.cu3,{})})]}))},p=e=>{let{duration:t=5e3}=e,n=(0,o._)(e,["duration"]),[a,c]=(0,d.useState)(!1),u=(0,i.jsxs)(d.Fragment,{children:[(0,i.jsx)(h,(0,l._)((0,r._)({},n),{open:a,onOpenChange:c})),(0,i.jsx)(s.l_,{className:x.Z.viewport})]}),p=(0,d.useRef)(null);return{element:u,open:()=>{c(!0),p.current&&clearTimeout(p.current),p.current=null,t&&(p.current=window.setTimeout(()=>c(!1),t))}}};var j=n("95197"),g=n("43866"),f=n("82847"),y=n("33049");let v="text-ellipsis-sg296B",m=e=>{let{onCopyAction:t,onOpenAction:n,onApplyAction:a,onPasteAction:s}=e,d=(0,o._)(e,["onCopyAction","onOpenAction","onApplyAction","onPasteAction"]);return(0,i.jsxs)(c.kC,(0,l._)((0,r._)({position:"relative",gap:"3",height:"var(--space-5)",align:"center"},d),{children:[(0,i.jsx)(c.u,{content:"Copy as Data URL",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:t,variant:"ghost",color:"gray",children:(0,i.jsx)(u.oiB,{})})}),(0,i.jsx)(c.u,{content:"Paste from Data URL",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:s,variant:"ghost",color:"gray",children:(0,i.jsx)(u.MK7,{})})}),(0,i.jsx)(c.u,{content:"Open File",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:n,variant:"ghost",color:"gray",children:(0,i.jsx)(u.g1w,{})})}),(0,i.jsx)(c.u,{content:"Apply Preset",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:a,variant:"ghost",color:"gray",children:(0,i.jsx)(u.VyF,{})})})]}))},w=async e=>{let t={cookie:{},localStorage:{},sessionStorage:{}};for(let n of y.dR){let r=e[n];r&&Object.assign(t[n],r)}return await (0,y.l5)(t)},k=e=>{let{title:t,records:n,color:s}=e,d=(0,o._)(e,["title","records","color"]);return(0,i.jsx)(a.Z,(0,l._)((0,r._)({asChild:!0},d),{children:(0,i.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,i.jsx)(c.xv,{size:"1",weight:"bold",children:t}),(0,i.jsxs)(c.kC,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===n.length&&(0,i.jsx)(c.Ct,{color:"gray",children:"Empty"}),n.map(e=>(0,i.jsxs)(c.Ct,{color:s,children:[e.key,": ",e.value]},e.id))]})]})}))},C=()=>{let{revalidate:e}=(0,g.xW)(),t=(0,j.k)(),{server:n}=t;(0,d.useEffect)(()=>(0,f.Ld)(t,e),[]);let r=(0,g.f_)(),l=[...(0,y.SR)(r,"cookie"),...(0,y.SR)(r,"localStorage"),...(0,y.SR)(r,"sessionStorage")],o=p({content:"\uD83D\uDD25 Fired"}),a=p({content:"\uD83D\uDCCB Copied"}),s=p({content:"\uD83D\uDCCB Pasted"}),u=async()=>{await w(r),o.open(),e()},x=async()=>{let e=new Blob([JSON.stringify(r)],{type:"application/json"}),t=new FileReader;t.readAsDataURL(e);let n=await new Promise(e=>{t.onload=t=>{var n,r,l;return e(null!==(l=null===(r=t.target)||void 0===r?void 0:null===(n=r.result)||void 0===n?void 0:n.toString())&&void 0!==l?l:null)}});n?(navigator.clipboard.writeText(n),a.open()):console.error("Failed to copy preset as data URL")},h=async()=>{n&&(await n.remote.pasteStoragePreset(r),s.open())};return(0,i.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,i.jsxs)(c.kC,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:[(0,i.jsx)(c.xu,{flexShrink:"0",className:v,children:(0,i.jsx)(c.xv,{size:"1",weight:"bold",color:"gray",children:r.name})}),(0,i.jsx)(m,{flexShrink:"0",flexGrow:"0",px:"2",justify:"end",onCopyAction:x,onPasteAction:h,onOpenAction:()=>null==n?void 0:n.remote.open(r.filename),onApplyAction:u})]}),(0,i.jsx)(c.xu,{flexGrow:"1",pb:"2",pr:"2",style:{overflowY:"scroll"},children:(0,i.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,i.jsx)(k,{title:"Cookie",records:l.filter(e=>"cookie"===e.type),color:"yellow"}),(0,i.jsx)(k,{title:"Local Storage",records:l.filter(e=>"localStorage"===e.type),color:"green"}),(0,i.jsx)(k,{title:"Session Storage",records:l.filter(e=>"sessionStorage"===e.type),color:"blue"})]})}),o.element,a.element,s.element]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["470"],{37853:function(e,t,l){l.d(t,{Z:function(){return r}});let r={container:"container-ewltyx","side-panel":"side-panel-bdvL2J",sidePanel:"side-panel-bdvL2J","overflow-badge":"overflow-badge-jy83Ta",overflowBadge:"overflow-badge-jy83Ta","preview-badge-list":"preview-badge-list-gW0J6X",previewBadgeList:"preview-badge-list-gW0J6X","btn-create-preset":"btn-create-preset-hoeILU",btnCreatePreset:"btn-create-preset-hoeILU",divider:"divider-lbRk1F","text-ellipsis":"text-ellipsis-F0lpeD",textEllipsis:"text-ellipsis-F0lpeD",badge:"badge-V1CqD5",scrollable:"scrollable-HHlcgf"}},88640:function(e,t,l){l.d(t,{Z:function(){return r}});let r=function(){for(var e,t,l=0,r="";l<arguments.length;)(e=arguments[l++])&&(t=function e(t){var l,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t))for(l=0;l<t.length;l++)t[l]&&(r=e(t[l]))&&(a&&(a+=" "),a+=r);else for(l in t)t[l]&&(a&&(a+=" "),a+=l)}return a}(e))&&(r&&(r+=" "),r+=t);return r}},9197:function(e,t,l){l.d(t,{Z:()=>d,x:()=>h});var r=l("49987"),a=l("65"),s=l("17936"),i=l("86834"),n=l("58323"),o=l("88640"),c=l("92774");let d=e=>{let{children:t,className:l,variant:d,clickable:h=!1,selected:u=!1,inset:g=!1}=e,p=(0,s._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(n.xu,(0,a._)((0,r._)({},p),{"data-variant":null!=d?d:"","data-clickable":h,"data-selected":u,"data-inset":g,className:(0,o.Z)(c.Z.card,l),children:t}))},h=e=>(0,i.jsx)(n.kC,(0,r._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},75313:function(e,t,l){let r,a;l.r(t),l.d(t,{default:()=>w});var s=l("49987"),i=l("65"),n=l("17936"),o=l("86834"),c=l("9197"),d=l("95197"),h=l("43866"),u=l("58323"),g=l("52493"),p=l.n(g),f=l("39120"),x=l("88435"),v=l("82847");Symbol();let j=new WeakMap,m=e=>"object"==typeof e&&null!==e;var b=l("37853"),k=l("33049");let y=e=>{let{selected:t,to:l}=e,r=(0,n._)(e,["selected","to"]),a=(0,h.s0)(),i=(0,h.bS)(null!=l?l:"");return(0,o.jsx)(c.Z,{variant:"small",selected:null!=t?t:!!i,clickable:!0,asChild:!0,onClick:()=>l&&a(l),children:(0,o.jsx)(u.kC,(0,s._)({},r))})},C=e=>{let{preset:t,highlight:l}=e,r=(0,n._)(e,["preset","highlight"]),a=!t.filename.match(/[/\\]node_modules[/\\]/),c=null;return l&&(c=(0,o.jsx)(u.xv,{size:"1",color:"red",asChild:!0,children:(0,o.jsx)(f.XC2,{})})),(0,o.jsxs)(y,(0,i._)((0,s._)({direction:"column"},r),{children:[(0,o.jsxs)(u.xv,{size:"1",weight:"bold",as:"p",mb:"2",children:[t.name," ",a||(0,o.jsx)(u.xv,{size:"1",color:"gray",children:"*"}),c]}),(0,o.jsx)(u.kC,{align:"center",children:(0,o.jsxs)(u.kC,{className:b.Z.previewBadgeList,children:[0===t.items.length&&(0,o.jsx)(u.Ct,{color:"gray",children:"Empty"}),t.items.map(e=>(0,o.jsxs)(u.Ct,{color:k.xq[e.type],children:[e.key,": ",e.value]},e.id))]})})]}))},w=()=>{let e=(0,d.k)(),{server:t}=e,{storagePresets:l}=(0,x.R)(e).context,a=(0,h.f_)(),n={cookie:(0,s._)({},a.cookie.client,a.cookie.server),localStorage:a.localStorage,sessionStorage:a.sessionStorage},c=(0,h.s0)(),g={cookie:p()(l).flatMap(e=>p().keys(e.cookie)).countBy().value(),localStorage:p()(l).flatMap(e=>p().keys(e.localStorage)).countBy().value(),sessionStorage:p()(l).flatMap(e=>p().keys(e.sessionStorage)).countBy().value()},j=l.map(e=>(0,i._)((0,s._)({},e),{items:p()((0,k.f)(e)).sortBy(e=>{var t;return null!==(t=g[e.type][e.key])&&void 0!==t?t:0}).reverse().value()})),m=async()=>{if(!t)return;let{id:l}=await t.remote.createTemporaryStoragePreset(),a=function(e,t){let l=!0,a=new Set,s=new Map,i=()=>{l&&(l=!1,a.forEach(e=>e()),a.clear(),s.forEach(e=>e()),s.clear())},n=()=>{if(!l)return;a.forEach(e=>e()),a.clear();let t=new Set,i=r;r=a;try{let l=e(e=>(t.add(e),e));l&&a.add(l)}finally{r=i}s.forEach((e,l)=>{t.has(l)?t.delete(l):(s.delete(l),e())}),t.forEach(e=>{let t=(0,v.Ld)(e,n,void 0);s.set(e,t)})};return r&&r.add(i),n(),i}(t=>{let{storagePresets:r}=(0,v.CO)(t(e)).context;p().find(r,{id:l})&&(a(),c("/storage/preset/".concat(l)))})};return(0,o.jsxs)(u.kC,{width:"100%",pt:"4",className:b.Z.container,children:[(0,o.jsxs)(u.kC,{direction:"column",className:b.Z.sidePanel,children:[(0,o.jsxs)(y,{to:"/storage/preset",m:"2",align:"center",gap:"1",children:[(0,o.jsx)(u.xv,{size:"1",weight:"bold",children:"Current Storage"}),(0,o.jsx)(u.xv,{size:"1",color:"red",asChild:!0,children:(0,o.jsx)(f.XC2,{})})]}),(0,o.jsx)(u.xu,{mx:"2",className:b.Z.divider}),(0,o.jsxs)(u.kC,{p:"2",direction:"column",gap:"2",className:b.Z.scrollable,children:[j.map(e=>(0,o.jsx)(C,{to:"/storage/preset/".concat(e.id),preset:e,highlight:e.items.length>0&&p().isMatch(n,p().pick(e,["cookie","localStorage","sessionStorage"]))},e.id)),(0,o.jsx)(y,{justify:"center",align:"center",onClick:m,className:b.Z.btnCreatePreset,children:(0,o.jsx)(f.b9W,{})})]})]}),(0,o.jsx)(u.xu,{width:"0",flexGrow:"1",height:"100%",flexShrink:"1",pt:"2",children:(0,o.jsx)(h.j3,{})})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["146"],{37853:function(e,r,l){l.d(r,{Z:function(){return t}});let t={container:"container-ewltyx","side-panel":"side-panel-bdvL2J",sidePanel:"side-panel-bdvL2J","overflow-badge":"overflow-badge-jy83Ta",overflowBadge:"overflow-badge-jy83Ta","preview-badge-list":"preview-badge-list-gW0J6X",previewBadgeList:"preview-badge-list-gW0J6X","btn-create-preset":"btn-create-preset-hoeILU",btnCreatePreset:"btn-create-preset-hoeILU",divider:"divider-lbRk1F","text-ellipsis":"text-ellipsis-F0lpeD",textEllipsis:"text-ellipsis-F0lpeD",badge:"badge-V1CqD5",scrollable:"scrollable-HHlcgf"}},88640:function(e,r,l){l.d(r,{Z:function(){return t}});let t=function(){for(var e,r,l=0,t="";l<arguments.length;)(e=arguments[l++])&&(r=function e(r){var l,t,i="";if("string"==typeof r||"number"==typeof r)i+=r;else if("object"==typeof r){if(Array.isArray(r))for(l=0;l<r.length;l++)r[l]&&(t=e(r[l]))&&(i&&(i+=" "),i+=t);else for(l in r)r[l]&&(i&&(i+=" "),i+=l)}return i}(e))&&(t&&(t+=" "),t+=r);return t}},9197:function(e,r,l){l.d(r,{Z:()=>d,x:()=>p});var t=l("49987"),i=l("65"),s=l("17936"),n=l("86834"),a=l("58323"),o=l("88640"),c=l("92774");let d=e=>{let{children:r,className:l,variant:d,clickable:p=!1,selected:g=!1,inset:u=!1}=e,x=(0,s._)(e,["children","className","variant","clickable","selected","inset"]);return(0,n.jsx)(a.xu,(0,i._)((0,t._)({},x),{"data-variant":null!=d?d:"","data-clickable":p,"data-selected":g,"data-inset":u,className:(0,o.Z)(c.Z.card,l),children:r}))},p=e=>(0,n.jsx)(a.kC,(0,t._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},65459:function(e,r,l){l.r(r),l.d(r,{default:function(){return x}});var t=l(49987),i=l(65),s=l(17936),n=l(86834),a=l(9197),o=l(43866),c=l(58323),d=l(52493),p=l.n(d),g=l(37853);let u=e=>{let{title:r,records:l,color:o}=e,d=(0,s._)(e,["title","records","color"]);return(0,n.jsx)(a.Z,(0,i._)((0,t._)({asChild:!0},d),{children:(0,n.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,n.jsx)(c.xv,{size:"1",weight:"bold",children:r}),(0,n.jsxs)(c.kC,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===l.length&&(0,n.jsx)(c.Ct,{color:"gray",children:"Empty"}),l.map(e=>(0,n.jsxs)(c.Ct,{color:o,className:g.Z.badge,children:[e.key,": ",e.value]},e.id))]})]})}))},x=()=>{let e=(0,o.f_)(),r=p().map(e.cookie.client,(e,r)=>({key:r,value:e,id:r})),l=p().map(e.cookie.server,(e,r)=>({key:r,value:e,id:r})),t=p().map(e.localStorage,(e,r)=>({key:r,value:e,id:r})),i=p().map(e.sessionStorage,(e,r)=>({key:r,value:e,id:r}));return(0,n.jsxs)(c.kC,{direction:"column",gap:"2",height:"100%",flexShrink:"1",children:[(0,n.jsx)(c.kC,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:(0,n.jsx)(c.xu,{flexShrink:"0",className:g.Z.textEllipsis,children:(0,n.jsx)(c.xv,{size:"1",weight:"bold",color:"gray",children:"Current Storage"})})}),(0,n.jsx)(c.xu,{flexGrow:"1",pb:"2",pr:"2",className:g.Z.scrollable,children:(0,n.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,n.jsx)(u,{title:"Cookie",records:r,color:"yellow"}),(0,n.jsx)(u,{title:"Cookie (HTTP Only)",records:l,color:"yellow"}),(0,n.jsx)(u,{title:"Local Storage",records:t,color:"green"}),(0,n.jsx)(u,{title:"Session Storage",records:i,color:"blue"})]})})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{75381:function(n,t,e){e.d(t,{Z:function(){return o}});let o={link:"link-znMYnO",connector:"connector-BqtwBd"}},92774:function(n,t,e){e.d(t,{Z:function(){return o}});let o={card:"card-If0911"}},65127:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-WHe0d3"}},7557:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-tsQk3U",fab:"fab-_shO90",slideInFromRight:"slideInFromRight-cmflGC",logo:"logo-nXXNIB"}},14818:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-tcM8fB","close-button":"close-button-weoXpd",closeButton:"close-button-weoXpd",frame:"frame-PSYQgj",backdrop:"backdrop-SWoFLh"}},4851:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-uSZ85N",children:"children-cVMy6R"}},61909:function(n,t,e){e.d(t,{Z:function(){return o}});let o={loading:"loading-HrjYdW",rotate:"rotate-CPIjfB"}},33433:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-COzu4H"}},9092:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-SkRv4t"}},24547:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-e3dQes"}},16046:function(n,t,e){e.d(t,{Z:function(){return o}});let o={"input-pair":"input-pair-rQmmCj",inputPair:"input-pair-rQmmCj",actions:"actions-AIkunB"}},41755:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-e74VUa",trigger:"trigger-THjT7j",content:"content-Qso8ca",slideDown:"slideDown-Z9IIi_",slideUp:"slideUp-H_SR0p","url-text":"url-text-OqB5_M",urlText:"url-text-OqB5_M",mark:"mark-cUxPxy"}},3042:function(n,t,e){e.d(t,{Z:function(){return o}});let o={"endpoint-tag":"endpoint-tag-y0SEjj",endpointTag:"endpoint-tag-y0SEjj","shy-link":"shy-link-Xazm8H",shyLink:"shy-link-Xazm8H","endpoint-container":"endpoint-container-XVJeZy",endpointContainer:"endpoint-container-XVJeZy"}},79615:function(n,t,e){e.d(t,{Z:function(){return o}});let o={stats:"stats-cb58Fz"}},80310:function(n,t,e){e.d(t,{Z:function(){return o}});let o={container:"container-dWGOkz",slideIn:"slideIn-AQnKGk",hide:"hide-LUv_Hv",swipeOut:"swipeOut-ZTbSGG",viewport:"viewport-Owdzo8",close:"close-i8MeRu"}}}]);
|
|
File without changes
|
|
File without changes
|