@chillicream/nitro-embedded 19.0.0-insider.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +95 -0
- package/README.md +64 -0
- package/apple-touch-icon.png +0 -0
- package/asset-manifest.json +56 -0
- package/favicon.ico +0 -0
- package/favicon.svg +1 -0
- package/index.cjs +17 -0
- package/index.d.cts +2 -0
- package/index.d.mts +2 -0
- package/index.html +1 -0
- package/index.mjs +13 -0
- package/manifest.webmanifest +23 -0
- package/package.json +47 -0
- package/robots.txt +3 -0
- package/service-worker.js +1 -0
- package/static/css/styles.15b5693c.css +1 -0
- package/static/js/110.0e366505.js +2 -0
- package/static/js/110.0e366505.js.LICENSE.txt +33 -0
- package/static/js/195.20ede8c1.chunk.js +1 -0
- package/static/js/2.6501c554.chunk.js +1 -0
- package/static/js/230.8503bd6f.chunk.js +1 -0
- package/static/js/264.6aedd0f5.js +1 -0
- package/static/js/341.1e379763.chunk.js +2 -0
- package/static/js/341.1e379763.chunk.js.LICENSE.txt +21 -0
- package/static/js/372.fa3f790f.chunk.js +1 -0
- package/static/js/425.6cfa0c21.chunk.js +1 -0
- package/static/js/703.880391f3.js +2 -0
- package/static/js/703.880391f3.js.LICENSE.txt +121 -0
- package/static/js/709.f5147502.js +1 -0
- package/static/js/712.8d0b0855.chunk.js +2 -0
- package/static/js/712.8d0b0855.chunk.js.LICENSE.txt +6 -0
- package/static/js/720.f5d95f7e.chunk.js +1 -0
- package/static/js/755.a97870be.chunk.js +1 -0
- package/static/js/81.f8d02cc4.chunk.js +1 -0
- package/static/js/824.04baf482.chunk.js +1 -0
- package/static/js/86.e31a339b.chunk.js +1 -0
- package/static/js/90.c735d0fd.chunk.js +1 -0
- package/static/js/907.68941042.js +1 -0
- package/static/js/936.e8fa296c.js +1 -0
- package/static/js/938.e41fcc3e.chunk.js +1 -0
- package/static/js/940.e5bc3e74.js +1 -0
- package/static/js/996.7a45a01a.chunk.js +1 -0
- package/static/js/editor.afbd84bf.js +1 -0
- package/static/js/graphql-engine.072217ef.chunk.js +1 -0
- package/static/js/graphql-indexer.f8b9a0f7.chunk.js +1 -0
- package/static/js/graphql.worker.2c56696a.js +2 -0
- package/static/js/graphql.worker.2c56696a.js.LICENSE.txt +33 -0
- package/static/js/json.1cf77584.js +2 -0
- package/static/js/json.1cf77584.js.LICENSE.txt +6 -0
- package/static/js/main.8bdce5ef.js +2 -0
- package/static/js/main.8bdce5ef.js.LICENSE.txt +8 -0
- package/static/js/polyfills.0bb6438e.js +1 -0
- package/static/js/session.f12ea7cc.chunk.js +1 -0
- package/static/js/yaml.worker.f5693bf4.js +1 -0
- package/static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2 +0 -0
- package/static/media/codicon.184be8c3aa435ca6c3f5.ttf +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
+
|
|
10
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Checks if two values are equal. Values may be primitives, arrays, or objects.
|
|
14
|
+
* Returns true if both arguments have the same keys and values.
|
|
15
|
+
*
|
|
16
|
+
* @see http://underscorejs.org
|
|
17
|
+
* @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
|
|
18
|
+
* @license MIT
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** @preserve
|
|
22
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
23
|
+
* derived from CryptoJS.mode.CTR
|
|
24
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/** @preserve
|
|
28
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
29
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
30
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
31
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
32
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[195],{96195:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ie});var s=n(67315),r=n(64381),i=n(78521),l=n(69649),o=n(6730),c=n(40821),d=n(9950),a=n(57528),u=(n(75885),n(17669)),x=n(34877),j=n(47885),h=n(5910),p=n(23406),g=n(66094),m=n(18655),v=n(10258),y=n(9912),f=n(69311),C=n(81092);n(62316);function b(e){if(void 0===e)return e;try{return JSON.parse(e)}catch{return e}}function k(e){switch(e){case g.jIU:return"AUTO";case g.PhU:return"SSE";case g.ppT:case g.Gkb:return"WS";default:throw(0,v.dr)(e),new Error("Unknown subscription protocol")}}function w(){const e=(0,s.QRo)(),t=(0,s.Pan)();return(0,d.useCallback)((async(n,s)=>{await t(n),s&&e(n,s,void 0)}),[e,t])}var E,I,L,R,S,G=n(44414);function T(){const e=(0,s.eT4)(),t=(0,s.w02)("log").toLocaleLowerCase(),n=(0,d.useRef)(null),r=(0,d.useRef)(null),i=(0,d.useRef)(e),o=(0,d.useRef)(e.followNewest),c=(0,d.useRef)(!0),a=(0,s.bkB)(),j=w(),p=(0,s.GdO)(),g={activeId:e.activeId,activeChildId:e.activeChildId,entries:e.entries.filter((e=>{var n,s,r;const{kind:i}=e;switch(i){case"basic":return e.message.toLocaleLowerCase().includes(t);case"http-request":return(null===(n=e.name)||void 0===n?void 0:n.toLocaleLowerCase().includes(t))||e.uri.toLocaleLowerCase().includes(t);case"scope":return e.name.includes(t)||(null===(s=e.details)||void 0===s||null===(r=s.uri)||void 0===r?void 0:r.toLocaleLowerCase().includes(t));case"subscription-request":return e.uri.toLocaleLowerCase().includes(t);default:return(0,v.dr)(i)}}))};i.current=e,o.current=e.followNewest;const m=(0,d.useCallback)((e=>{c.current=!1,"http-request"===e.kind&&e.scopeId?a(e.scopeId,e.id):a(e.id)}),[a]),f=(0,d.useCallback)((async e=>{var t;null!==(t=e.item)&&void 0!==t&&t.id&&await j(e.item.id,e.id)}),[j]),C=(0,d.useCallback)((e=>{if(r.current){const t=r.current.getScrollElement();if(t){const{clientHeight:n,scrollHeight:s}=t;c.current=!0,o.current=s-n===e.scrollOffset,p(o.current)}}}),[p]),b=(0,d.useCallback)((e=>{if(n.current=e,n.current&&i.current.entries.length){const e=i.current.activeId?i.current.entries.findIndex((e=>{let{id:t}=e;return t===i.current.activeId})):-1;-1===e?n.current.scrollToItem(i.current.entries.length-1,"end"):n.current.scrollToItem(e,"end")}}),[]);(0,d.useLayoutEffect)((()=>{o.current&&n.current&&g.entries.length&&n.current.scrollToItem(g.entries.length-1,"end")}),[g.entries.length]),(0,d.useLayoutEffect)((()=>{if(c.current&&!o.current&&e.activeId&&n.current&&i.current){const t=i.current.entries.findIndex((t=>{let{id:n}=t;return n===e.activeId}));-1!==t&&n.current.scrollToItem(t,"end")}c.current=!0}),[e.activeId]),(0,d.useEffect)((()=>()=>p(!0)),[p]);const k=(0,d.memo)((function(e){let{data:t,index:n,style:s}=e;const r=t.entries[n],i="http-request"===r.kind&&r.scopeId?r.id===t.activeChildId&&r.scopeId===t.activeId:r.id===t.activeId;return(0,G.jsx)(x.St,{style:s,onClick:()=>m(r),onDoubleClick:()=>f(r),className:i?"active":void 0,children:(0,G.jsx)(N,{active:i,logEntry:r})},"log-entry-".concat(r.id))}),y.t7);return g.entries.length?(0,G.jsx)(h.d,{innerListRef:b,scrollbarRef:r,itemCount:g.entries.length,itemData:g,itemKey:e=>"log-entry-".concat(e),itemSize:x.lh,tabIndex:-1,onScrollVirtualList:C,children:k}):(0,G.jsx)(u.HY,{title:"Log Is Empty",icon:(0,G.jsx)(l.mo,{})})}const N=(0,d.memo)((function(e){let{active:t,logEntry:n}=e;const{kind:s}=n;switch(s){case"basic":return(0,G.jsx)(B,{active:t,logEntry:n});case"http-request":return(0,G.jsx)(q,{active:t,logEntry:n});case"scope":return(0,G.jsx)(W,{active:t,logEntry:n});case"subscription-request":return(0,G.jsx)(F,{active:t,logEntry:n});default:return(0,v.dr)(s)}})),B=(0,d.memo)((function(e){let{active:t,logEntry:{id:n,level:s,message:r,timestamp:i,item:l}}=e;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(U,{id:n,active:t}),(0,G.jsx)(P,{level:s}),(0,G.jsx)(X,{children:(0,G.jsx)(A,{level:s})}),(0,G.jsx)(x.hE,{children:r}),(0,G.jsx)($,{item:l}),(0,G.jsx)(x.gX,{children:(0,v.n$)(i)})]})}));function P(e){let{level:t}=e;switch(t){case m.$b.warning:return(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.id,{})});case m.$b.error:return(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.ik,{})});default:return(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.mo,{})})}}const A=(0,d.memo)((function(e){let{level:t}=e;switch(t){case m.$b.error:return(0,G.jsx)(C.HR,{children:"Err"});case m.$b.info:return(0,G.jsx)(C.R2,{children:"Info"});case m.$b.warning:return(0,G.jsx)(C.N5,{children:"Warn"});default:return(0,v.dr)(t)}})),q=(0,d.memo)((function(e){let{active:t,logEntry:{id:n,scopeId:s,status:r,name:i,started:l,duration:o,item:c,uri:d,method:a,statusCode:u,contentLength:j,lastChild:h}}=e;return(0,G.jsxs)(G.Fragment,{children:[s?(0,G.jsx)(Y,{active:t,last:null!==h&&void 0!==h&&h}):(0,G.jsx)(U,{id:n,active:t,pending:"pending"===r}),(0,G.jsx)(D,{status:r,statusCode:u}),(0,G.jsx)(X,{children:(0,G.jsx)(C.R2,{children:a})}),(0,G.jsxs)(x.hE,{children:[null!==i&&void 0!==i&&i.length?i+": ":null,d]}),(0,G.jsx)(V,{children:(0,G.jsx)(C.g9,{status:r,statusCode:u})}),(0,G.jsx)(K,{children:(0,p.YC)(j)}),(0,G.jsx)(x.G3,{children:(0,p.Ds)(o)}),(0,G.jsx)($,{item:c}),(0,G.jsx)(x.gX,{children:(0,v.n$)(l)})]})})),W=(0,d.memo)((function(e){let{active:t,logEntry:{id:n,name:s,level:r,started:i,duration:l,item:o,details:c,expanded:d}}=e;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(U,{id:n,active:t,pending:"pending"===(null===c||void 0===c?void 0:c.status),expandable:!0,expanded:d}),"introspection"===(null===c||void 0===c?void 0:c.kind)?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(D,{status:c.status,statusCode:c.statusCode}),(0,G.jsx)(X,{children:(0,G.jsx)(C.R2,{children:c.method})}),(0,G.jsxs)(x.hE,{children:[s,": ",c.uri]}),(0,G.jsx)(V,{children:(0,G.jsx)(C.g9,{status:c.status,statusCode:c.statusCode})}),(0,G.jsx)(K,{children:(0,p.YC)(c.contentLength)}),(0,G.jsx)(x.G3,{children:(0,p.Ds)(l)}),(0,G.jsx)($,{item:o}),(0,G.jsx)(x.gX,{children:(0,v.n$)(i)})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(P,{level:r}),(0,G.jsx)(X,{children:(0,G.jsx)(A,{level:r})}),(0,G.jsx)(x.hE,{children:s}),(0,G.jsx)(x.G3,{children:(0,p.Ds)(l)}),(0,G.jsx)($,{item:o}),(0,G.jsx)(x.gX,{children:(0,v.n$)(i)})]})]})}));function D(e){let{status:t,statusCode:n}=e;return"pending"===t?(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.XP,{})}):"cancelled"===t?(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.tT,{})}):!n||n>=300?(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.ik,{})}):(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.BK,{})})}const F=(0,d.memo)((function(e){let{active:t,logEntry:{id:n,status:s,started:r,duration:i,item:l,protocol:o,uri:c,contentLength:d}}=e;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(U,{id:n,active:t}),(0,G.jsx)(H,{status:s}),(0,G.jsx)(X,{children:(0,G.jsx)(C.R2,{children:k(o)})}),(0,G.jsx)(x.hE,{children:c}),(0,G.jsx)(V,{children:(0,G.jsx)(C.N9,{status:s})}),(0,G.jsx)(K,{children:(0,p.YC)(d)}),(0,G.jsx)(x.G3,{children:(0,p.Ds)(i)}),(0,G.jsx)($,{item:l}),(0,G.jsx)(x.gX,{children:(0,v.n$)(r)})]})}));function H(e){let{status:t}=e;return"pending"===t?(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.XP,{})}):"failed"===t?(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.ik,{})}):(0,G.jsx)(x.dg,{children:(0,G.jsx)(l.BK,{})})}function U(e){let{id:t,active:n,pending:r,expandable:i,expanded:o}=e;const c=(0,s.L9r)(),a=(0,s.oCd)(),u=(0,d.useCallback)((e=>{i&&(e.stopPropagation(),o?c(t):a(t))}),[t,i,o,c,a]);return(0,G.jsx)(x.dg,{onClick:u,children:r?(0,G.jsx)(j.y,{}):i?o?(0,G.jsx)(l.D3,{}):(0,G.jsx)(l.vK,{}):n?(0,G.jsx)(l.yf,{}):(0,G.jsx)(l.M1,{})})}function Y(e){let{active:t,last:n}=e;return(0,G.jsx)(x.dg,{children:n?t?(0,G.jsx)(l.BB,{}):(0,G.jsx)(l.Dv,{}):t?(0,G.jsx)(l.XJ,{}):(0,G.jsx)(l.Z5,{})})}function $(e){let{item:t}=e;return(0,G.jsx)(O,{children:t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(x.dg,{children:(0,G.jsx)(M,{kind:t.kind})}),(0,G.jsx)(z,{children:t.name})]})})}function M(e){let{kind:t}=e;if(!t)return(0,G.jsx)(l.Ed,{});switch(t){case g.mv2:case g.hNL:return(0,G.jsx)(l.Ig,{});case g.wAF:case g.UjY:case g.AL$:return(0,G.jsx)(l.py,{});case g.smy:return(0,G.jsx)(l.os,{});case g.Bp3:case g._nH:return(0,G.jsx)(l.bw,{});case g.Er3:return(0,G.jsx)(l.Ex,{});case g.GPt:return(0,G.jsx)(l.sj,{});default:return(0,v.dr)(t)}}const O=f.Ay.div(E||(E=(0,a.A)(["display:flex;flex:0 0 100px;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 6px 0 4px;"]))),z=f.Ay.div(I||(I=(0,a.A)(["flex:0 0 78px;margin-left:2px;text-overflow:ellipsis;white-space:nowrap;"]))),X=f.Ay.div(L||(L=(0,a.A)(["flex:0 0 42px;padding:0 6px;white-space:nowrap;"]))),V=f.Ay.div(R||(R=(0,a.A)(["flex:0 0 36px;padding:0 6px;white-space:nowrap;"]))),K=f.Ay.div(S||(S=(0,a.A)(["flex:0 0 60px;padding:0 6px;white-space:nowrap;text-align:right;"])));var _=n(66993);function Z(e){let{logEntry:t}=e;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Q,{logEntry:t}),(0,G.jsx)(o.Y2,{}),(0,G.jsx)(o.gN,{children:t&&(0,G.jsx)(ee,{logEntry:t})})]})}function Q(e){var t,n;let{logEntry:i}=e;const c=(0,s.Wk3)(),a=w(),u=(0,d.useCallback)((async()=>{var e;null!==(e=i.item)&&void 0!==e&&e.id&&await a(i.item.id)}),[null===(t=i.item)||void 0===t?void 0:t.id,a]);return(0,G.jsxs)(o.AW,{spacing:"right",children:[(0,G.jsx)(o.w,{children:"Details"}),(0,G.jsx)(o.jB,{}),(null===(n=i.item)||void 0===n?void 0:n.id)&&(0,G.jsx)(r.pG,{tooltip:"Go to Item",onClick:u,children:(0,G.jsx)(l.Ed,{})}),(0,G.jsx)(r.pG,{tooltip:"Close",onClick:c,children:(0,G.jsx)(l.US,{})})]})}const J="log-entry-details";function ee(e){let{logEntry:t}=e;const n=b(t.details);return"string"===typeof n?(0,G.jsx)(_.Dv,{id:J,content:n,enableWordWrap:!0}):(0,G.jsx)(_.iN,{id:J,content:n})}var te=n(66800),ne=n(25770),se=n(47594);function re(e){let{logEntry:t}=e;const[n,s]=(0,d.useState)("transport");return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ie,{logEntry:t,viewId:n,updateViewId:s}),(0,G.jsx)(o.Y2,{}),(0,G.jsx)(o.gN,{children:t&&(0,G.jsx)(ce,{logEntry:t,viewId:n})})]})}function ie(e){var t,n;let{logEntry:i,viewId:c,updateViewId:a}=e;const{Tabs:u,Tab:x,MoreTabs:j}=(0,se.NS)(),h=(0,s.Wk3)(),p=w(),g=(0,d.useCallback)((async()=>{var e;null!==(e=i.item)&&void 0!==e&&e.id&&await p(i.item.id,i.id)}),[i.id,null===(t=i.item)||void 0===t?void 0:t.id,p]),m=(0,d.useCallback)(((e,t)=>{a(t)}),[a]);return(0,G.jsxs)(o.AW,{spacing:"right",children:[(0,G.jsxs)(u,{value:c,"aria-label":"Log Entry Details",onChange:m,children:[(0,G.jsx)(x,{label:"Transport",value:"transport"}),(0,G.jsx)(x,{label:"Request Body",value:"request-body"}),(0,G.jsx)(x,{label:"Response Body",value:"response-body"})]}),(0,G.jsx)(j,{}),(0,G.jsx)(o.jB,{}),(null===(n=i.item)||void 0===n?void 0:n.id)&&(0,G.jsx)(r.pG,{tooltip:"Go to Item",onClick:g,children:(0,G.jsx)(l.Ed,{})}),(0,G.jsx)(r.pG,{tooltip:"Close",onClick:h,children:(0,G.jsx)(l.US,{})})]})}const le="request-body",oe="response-body";function ce(e){let{logEntry:t,viewId:n}=e;switch(n){case"transport":return(0,G.jsx)(de,{logEntry:t});case"request-body":{const e=b(t.request.body);return"string"===typeof e?(0,G.jsx)(_.Dv,{id:le,content:e}):(0,G.jsx)(_.iN,{id:le,content:e})}case"response-body":{var s,r;const e=b(null===(s=t.response)||void 0===s?void 0:s.body);return void 0!==e&&""!==e||null===(r=t.response)||void 0===r||!r.error?"string"===typeof e?(0,G.jsx)(_.Dv,{id:oe,content:e,followNewestLine:!0,scrollPositionInvalidation:t.id}):(0,G.jsx)(_.iN,{id:oe,content:e}):(0,G.jsx)(_.iN,{id:oe,content:t.response.error})}default:return(0,v.dr)(n)}}function de(e){var t;let{logEntry:n}=e;const{request:s,response:r}=n,i=s.headers?Object.entries(s.headers):[],l=null!==r&&void 0!==r&&r.headers?Object.entries(r.headers):[],c=null!==(t=null===r||void 0===r?void 0:r.contentLength)&&void 0!==t?t:0;return(0,G.jsx)(o.gN,{children:(0,G.jsx)(te.Z,{children:(0,G.jsxs)(ne.c,{children:[(0,G.jsx)(ne.B,{title:"General HTTP Information",items:[{key:"url",name:"URL",description:s.uri},{key:"method",name:"Method",description:(0,G.jsx)(C.R2,{children:s.method})},{key:"status",name:"Status",description:(0,G.jsx)(C.np,{status:n.status})},(null===r||void 0===r?void 0:r.statusCode)&&{key:"status-code",name:"Status Code",description:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(C.d8,{statusCode:r.statusCode}),(0,G.jsx)(C.Lr,{children:(null===r||void 0===r?void 0:r.statusText)&&"(".concat(r.statusText,")")})]})},{key:"response-size",name:"Response Size",description:(0,p.YC)(c)},{key:"cache",name:"Cache",description:s.cache},s.credentials&&{key:"credentials",name:"Credentials",description:s.credentials},s.referrerPolicy&&{key:"referrer-policy",name:"Referrer Policy",description:s.referrerPolicy}].filter((e=>!!e)),collapsible:!0}),i.length>0&&(0,G.jsx)(ne.B,{title:"Request Headers",items:i.map((e=>{let[t,n]=e;return{key:t,name:t,description:"string"===typeof n?n:n.join(", ")}})),collapsible:!0}),l.length>0&&(0,G.jsx)(ne.B,{title:"Response Headers",items:l.map((e=>{let[t,n]=e;return{key:t,name:t,description:"string"===typeof n?n:n.join(", ")}})),collapsible:!0})]})})})}function ae(e){let{logEntry:t}=e;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ue,{logEntry:t}),(0,G.jsx)(o.Y2,{}),(0,G.jsx)(o.gN,{children:t&&(0,G.jsx)(xe,{logEntry:t})})]})}function ue(e){var t,n;let{logEntry:i}=e;const c=(0,s.Wk3)(),a=w(),u=(0,d.useCallback)((async()=>{var e;null!==(e=i.item)&&void 0!==e&&e.id&&await a(i.item.id,i.id)}),[i.id,null===(t=i.item)||void 0===t?void 0:t.id,a]);return(0,G.jsxs)(o.AW,{spacing:"right",children:[(0,G.jsx)(o.w,{children:"Transport"}),(0,G.jsx)(o.jB,{}),(null===(n=i.item)||void 0===n?void 0:n.id)&&(0,G.jsx)(r.pG,{tooltip:"Go to Item",onClick:u,children:(0,G.jsx)(l.Ed,{})}),(0,G.jsx)(r.pG,{tooltip:"Close",onClick:c,children:(0,G.jsx)(l.US,{})})]})}function xe(e){let{logEntry:t}=e;const{details:n}=t;if(!n)return null;const s=n.requestHeaders?Object.entries(n.requestHeaders):[],r=n.responseHeaders?Object.entries(n.responseHeaders):[];return(0,G.jsx)(o.gN,{children:(0,G.jsx)(te.Z,{children:(0,G.jsxs)(ne.c,{children:[(0,G.jsx)(ne.B,{title:"General HTTP Information",items:[{key:"url",name:"URL",description:n.uri},{key:"method",name:"Method",description:(0,G.jsx)(C.R2,{children:n.method})},{key:"status",name:"Status",description:(0,G.jsx)(C.np,{status:n.status})},(null===n||void 0===n?void 0:n.statusCode)&&{key:"status-code",name:"Status Code",description:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(C.d8,{statusCode:n.statusCode}),(0,G.jsx)(C.Lr,{children:(null===n||void 0===n?void 0:n.statusText)&&"(".concat(n.statusText,")")})]})},{key:"response-size",name:"Response Size",description:(0,p.YC)(n.contentLength)},{key:"cache",name:"Cache",description:n.cache},n.credentials&&{key:"credentials",name:"Credentials",description:n.credentials},n.referrerPolicy&&{key:"referrer-policy",name:"Referrer Policy",description:n.referrerPolicy}].filter((e=>!!e)),collapsible:!0}),s.length>0&&(0,G.jsx)(ne.B,{title:"Request Headers",items:s.map((e=>{let[t,n]=e;return{key:t,name:t,description:n}})),collapsible:!0}),r.length>0&&(0,G.jsx)(ne.B,{title:"Response Headers",items:r.map((e=>{let[t,n]=e;return{key:t,name:t,description:n}})),collapsible:!0})]})})})}function je(e){let{logEntry:t}=e;const[n,s]=(0,d.useState)("transport");return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(he,{logEntry:t,viewId:n,updateViewId:s}),(0,G.jsx)(o.Y2,{}),(0,G.jsx)(o.gN,{children:t&&(0,G.jsx)(me,{logEntry:t,viewId:n})})]})}function he(e){var t,n;let{logEntry:i,viewId:c,updateViewId:a}=e;const{Tabs:u,Tab:x,MoreTabs:j}=(0,se.NS)(),h=(0,s.Wk3)(),p=w(),g=(0,d.useCallback)((async()=>{var e;null!==(e=i.item)&&void 0!==e&&e.id&&await p(i.item.id,i.id)}),[i.id,null===(t=i.item)||void 0===t?void 0:t.id,p]),m=(0,d.useCallback)(((e,t)=>{a(t)}),[a]);return(0,G.jsxs)(o.AW,{spacing:"right",children:[(0,G.jsxs)(u,{value:c,"aria-label":"Log Entry Details",onChange:m,children:[(0,G.jsx)(x,{label:"Transport",value:"transport"}),(0,G.jsx)(x,{label:"Messages",value:"messages"}),(0,G.jsx)(x,{label:"Problems",value:"problems"})]}),(0,G.jsx)(j,{}),(0,G.jsx)(o.jB,{}),(null===(n=i.item)||void 0===n?void 0:n.id)&&(0,G.jsx)(r.pG,{tooltip:"Go to Item",onClick:g,children:(0,G.jsx)(l.Ed,{})}),(0,G.jsx)(r.pG,{tooltip:"Close",onClick:h,children:(0,G.jsx)(l.US,{})})]})}const pe="subscription-data",ge="subscription-error";function me(e){let{logEntry:t,viewId:n}=e;switch(n){case"messages":return(0,G.jsx)(_.Dv,{id:pe,content:t.data,followNewestLine:!0,scrollPositionInvalidation:t.id});case"problems":return(0,G.jsx)(_.iN,{id:ge,content:t.error});case"transport":return(0,G.jsx)(ve,{logEntry:t});default:return(0,v.dr)(n)}}function ve(e){let{logEntry:t}=e;const n=t.connectionParams?Object.entries(t.connectionParams):[];return(0,G.jsx)(o.gN,{children:(0,G.jsx)(te.Z,{children:(0,G.jsxs)(ne.c,{children:[(0,G.jsx)(ne.B,{title:"General Information",items:[{key:"url",name:"URL",description:t.uri},{key:"protocol",name:"Protocol",description:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(C.R2,{children:k(t.protocol)}),(0,G.jsxs)(C.Lr,{children:["(",t.protocol,")"]})]})},{key:"status",name:"Status",description:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(C.N9,{status:t.status}),(0,G.jsxs)(C.Lr,{children:["(",t.status,")"]})]})},{key:"messages",name:"Messages",description:t.messages},{key:"response-size",name:"Response Size",description:(0,p.YC)(t.contentLength)}],collapsible:!0}),n.length>0&&(0,G.jsx)(ne.B,{title:"Connection Parameters",items:n.map((e=>{let[t,n]=e;return{key:t,name:t,description:n}})),collapsible:!0})]})})})}function ye(){const e=(0,s.W4K)();return e?(0,G.jsx)(o.wn,{$separator:"left",children:(0,G.jsx)(fe,{logEntry:e})}):null}function fe(e){let{logEntry:t}=e;const{kind:n}=t;switch(n){case"basic":return(0,G.jsx)(Z,{logEntry:t});case"http-request":return(0,G.jsx)(re,{logEntry:t});case"scope":return(0,G.jsx)(ae,{logEntry:t});case"subscription-request":return(0,G.jsx)(je,{logEntry:t});default:return(0,v.dr)(n)}}var Ce,be=n(67752);const ke="log";function we(){const e=(0,s.Srj)(),t=(0,s.dpQ)(ke),n=(0,s.n7D)(),i=(0,s.vwA)(ke);return(0,G.jsxs)(Ee,{children:[(0,G.jsx)(be.U,{searchTerm:t,onSearchTermChange:i}),(0,G.jsx)(r.pG,{tooltip:"Clear Log",disabled:!e,onClick:n,children:(0,G.jsx)(l.vu,{})})]})}const Ee=f.Ay.div(Ce||(Ce=(0,a.A)(["display:flex;flex:1 1 auto;flex-direction:row;max-width:300px;"])));function Ie(){const e=(0,s.EB2)(),t=(0,s.Wk3)(),n=(0,d.useCallback)((()=>{e(),t()}),[e,t]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(o.w0,{children:[(0,G.jsx)(Le,{}),(0,G.jsx)(o.jB,{}),(0,G.jsx)(we,{}),(0,G.jsx)(Re,{}),(0,G.jsx)(r.pG,{tooltip:"Close",onClick:n,children:(0,G.jsx)(l.US,{})})]}),(0,G.jsx)(o.aB,{children:(0,G.jsx)(i.t,{children:(0,G.jsx)(Se,{})})})]})}function Le(){const{all:e}=(0,s.BQW)();return(0,G.jsxs)(o.w,{children:["Log (",e,")"]})}function Re(){const e=(0,s.vCL)(),t=(0,s.NOd)();return(0,s.NoM)()?(0,G.jsx)(r.pG,{tooltip:"Minimize",onClick:t,children:(0,G.jsx)(l.xr,{})}):(0,G.jsx)(r.pG,{tooltip:"Maximize",onClick:e,children:(0,G.jsx)(l.uv,{})})}function Se(){const e=(0,s.hGD)(),t=(0,s.dMS)(),n=(0,s.g3L)();return(0,G.jsx)(c.YV,{id:"log",asideCollapsible:!0,asideCollapsed:null===e,asideWidth:t,leftContent:(0,G.jsx)(Ge,{}),mainPane:"left",relativeWidth:!0,rightContent:(0,G.jsx)(Te,{}),onAsideWidthChange:n})}const Ge=(0,d.memo)(T),Te=(0,d.memo)(ye)}}]);
|