2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[6023],{25534:function(e,n,t){"use strict";var r=t(18489),o=(t(50390),t(25594)),i=t(86509),s=t(4285),a=t(72462),l=t(62559);n.Z=(0,s.Z)((function(e){return(0,i.Z)((0,r.Z)({},a.Bw))}))((function(e){var n=e.classes,t=e.className,r=void 0===t?"":t,i=e.children;return(0,l.jsx)("div",{className:n.contentSpacer,children:(0,l.jsx)(o.ZP,{container:!0,children:(0,l.jsx)(o.ZP,{item:!0,xs:12,className:r,children:i})})})}))},35721:function(e,n,t){"use strict";var r=t(50390),o=t(34424),i=t(25594),s=t(86509),a=t(4285),l=t(35477),c=t(95467),d=t(26805),u=t(44078),h=t(5265),f=t(86362),g=t(62559),p={toggleList:h.kQ},m=(0,o.$j)((function(e){return{sidebarOpen:e.system.sidebarOpen,operatorMode:e.system.operatorMode,managerObjects:e.objectBrowser.objectManager.objectsToManage,features:e.console.session.features}}),p);n.Z=m((0,a.Z)((function(e){return(0,s.Z)({headerContainer:{width:"100%",minHeight:79,display:"flex",backgroundColor:"#fff",left:0,boxShadow:"rgba(0,0,0,.08) 0 3px 10px"},label:{display:"flex",justifyContent:"flex-start",alignItems:"center"},labelStyle:{color:"#000",fontSize:18,fontWeight:700,marginLeft:34,marginTop:8},rightMenu:{textAlign:"right"},logo:{marginLeft:34,fill:e.palette.primary.main,"& .min-icon":{width:120}},middleComponent:{display:"flex",justifyContent:"center",alignItems:"center"}})}))((function(e){var n=e.classes,t=e.label,o=e.actions,s=e.sidebarOpen,a=e.operatorMode,h=e.managerObjects,p=e.toggleList,m=e.middleComponent;return e.features.includes("hide-menu")?(0,g.jsx)(r.Fragment,{}):(0,g.jsxs)(i.ZP,{container:!0,className:"".concat(n.headerContainer," page-header"),direction:"row",alignItems:"center",children:[(0,g.jsxs)(i.ZP,{item:!0,xs:12,sm:12,md:m?3:6,className:n.label,sx:{paddingTop:["15px","15px","0","0"]},children:[!s&&(0,g.jsx)("div",{className:n.logo,children:a?(0,g.jsx)(d.Z,{}):(0,g.jsx)(u.Z,{})}),(0,g.jsx)(l.Z,{variant:"h4",className:n.labelStyle,children:t})]}),m&&(0,g.jsx)(i.ZP,{item:!0,xs:12,sm:12,md:6,className:n.middleComponent,sx:{marginTop:["10px","10px","0","0"]},children:m}),(0,g.jsxs)(i.ZP,{item:!0,xs:12,sm:12,md:m?3:6,className:n.rightMenu,children:[o&&o,h&&h.length>0&&(0,g.jsx)(c.Z,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){p()},size:"large",children:(0,g.jsx)(f.gx,{})})]})]})})))},23165:function(e,n,t){"use strict";var r=t(36222),o=t(18489),i=(t(50390),t(65771)),s=t(13336),a=t(12066),l=t(4285),c=t(86509),d=t(72462),u=t(62559);n.Z=(0,l.Z)((function(e){return(0,c.Z)({searchField:(0,o.Z)({},d.qg.searchField),adornment:{}})}))((function(e){var n=e.placeholder,t=void 0===n?"":n,o=e.classes,l=e.onChange,c=e.adornmentPosition,d=void 0===c?"end":c,h=e.overrideClass,f=e.value,g=(0,r.Z)({disableUnderline:!0},"".concat(d,"Adornment"),(0,u.jsx)(i.Z,{position:d,className:o.adornment,children:(0,u.jsx)(s.Z,{})}));return(0,u.jsx)(a.Z,{placeholder:t,className:h||o.searchField,id:"search-resource",label:"",InputProps:g,onChange:function(e){l(e.target.value)},variant:"standard",value:f})}))},46023:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var r=t(23430),o=t(18489),i=t(50390),s=t(69686),a=t(86509),l=t(4285),c=t(34424),d=t(25594),u=t(60606),h=t.n(u),f=t(70753),g=t(51774),p=t(72462),m=t(35721),x=t(25534),j=t(23165),v=t(46981),b=t(4182),Z=t(35044),w=t(20183),y=t(29399),C=t(73481),L=t(55600),M=t(56805),P=t(35477),S=t(87248),N=t.n(S),_=t(62559),E=function(e){return(0,_.jsx)("svg",(0,o.Z)((0,o.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 26 26"},e),{},{children:(0,_.jsxs)("g",{id:"Group_2001","data-name":"Group 2001",transform:"translate(1924 369) rotate(180)",children:[(0,_.jsx)("rect",{id:"Rectangle_1114","data-name":"Rectangle 1114",width:"26",height:"26",transform:"translate(1898 343)",fill:"#e5e5e5"}),(0,_.jsx)("g",{id:"noun_chevron_2320228",transform:"translate(1915.2 353.499) rotate(90)",children:(0,_.jsx)("path",{id:"Path_6842","data-name":"Path 6842",d:"M.47,8a.464.464,0,0,1-.329-.141.468.468,0,0,1,0-.67L3.325,4.006.141.811a.468.468,0,0,1,0-.67.468.468,0,0,1,.67,0L4.335,3.665a.464.464,0,0,1,.141.329.427.427,0,0,1-.141.329L.811,7.847A.476.476,0,0,1,.47,8Z",transform:"translate(0 0)",fill:"#5e5e5e"})})]})}))},R=function(e){return(0,_.jsx)("svg",(0,o.Z)((0,o.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 26 26"},e),{},{children:(0,_.jsxs)("g",{id:"Group_2476","data-name":"Group 2476",transform:"translate(-1898 -343)",children:[(0,_.jsx)("rect",{id:"Rectangle_1114","data-name":"Rectangle 1114",width:"26",height:"26",transform:"translate(1898 343)",fill:"#fbfafa"}),(0,_.jsx)("g",{id:"noun_chevron_2320228",transform:"translate(1915.2 353.499) rotate(90)",children:(0,_.jsx)("path",{id:"Path_6842","data-name":"Path 6842",d:"M.47,8a.464.464,0,0,1-.329-.141.468.468,0,0,1,0-.67L3.325,4.006.141.811a.468.468,0,0,1,0-.67.468.468,0,0,1,.67,0L4.335,3.665a.464.464,0,0,1,.141.329.427.427,0,0,1-.141.329L.811,7.847A.476.476,0,0,1,.47,8Z",transform:"translate(0 0)",fill:"#2781b0"})})]})}))},T=function(e){return(0,_.jsxs)("svg",(0,o.Z)((0,o.Z)({id:"WarnFilledIcon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),{},{className:"min-icon",fill:"currentcolor",children:[(0,_.jsx)("defs",{children:(0,_.jsx)("clipPath",{id:"clip-path",children:(0,_.jsx)("rect",{id:"Rectangle_987","data-name":"Rectangle 987",width:"12",height:"12"})})}),(0,_.jsx)("g",{id:"warning-icon-full",transform:"translate(-0.002 -0.003)",children:(0,_.jsx)("g",{id:"Group_2356","data-name":"Group 2356",transform:"translate(0.002 0.003)","clip-path":"url(#clip-path)",children:(0,_.jsx)("path",{id:"Path_7081","data-name":"Path 7081",d:"M6,0H6a6,6,0,1,0,6,6A6,6,0,0,0,6,0m.964,1.947L6.751,7.434H5.318L5.1,1.947ZM6.04,10.454a1.134,1.134,0,1,1,0-2.269,1.134,1.134,0,0,1,0,2.269",transform:"translate(-0.002 -0.003)"})})})]}))},k=function(e){var n=e.log,t=(0,i.useState)(!1),o=(0,r.Z)(t,2),s=o[0],a=o[1],l="";""!==n.ConsoleMsg?l=n.ConsoleMsg:null!==n.error&&""!==n.error.message&&(l=n.error.message);var c=l.replace(/\u2501|\u250f|\u2513|\u2503|\u2517|\u251b/g,"");c=c.replace(/([^\x20-\x7F])/g,"");var d=(0,_.jsx)(i.Fragment,{});""!==n.ConsoleMsg?d=function(e){var n=e.ConsoleMsg;return n=(n=n.replace(/\x1B/g," ")).replace(/((\[[0-9;]+m))/g,""),(0,_.jsx)("div",{style:{display:"table",tableLayout:"fixed",width:"100%",paddingLeft:10,paddingRight:10},children:(0,_.jsx)("div",{style:{display:"table-cell",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"auto"},children:(0,_.jsx)("pre",{children:n})})})}(n):null!==n.error&&""!==n.error.message&&(d=function(e){var n={color:"green"};return(0,_.jsxs)(i.Fragment,{children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"API:\xa0"}),(0,_.jsx)("span",{style:n,children:e.api.name})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"Time:\xa0"}),(0,_.jsx)("span",{style:n,children:e.time.toString()})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"DeploymentID:\xa0"}),(0,_.jsx)("span",{style:n,children:e.deploymentid})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"RequestID:\xa0"}),(0,_.jsx)("span",{style:n,children:e.requestID})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"RemoteHost:\xa0"}),(0,_.jsx)("span",{style:n,children:e.remotehost})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"UserAgent:\xa0"}),(0,_.jsx)("span",{style:n,children:e.userAgent})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)("b",{children:"Error:\xa0"}),(0,_.jsx)("span",{style:n,children:e.error&&e.error.message})]}),(0,_.jsx)("br",{}),(0,_.jsx)("div",{children:(0,_.jsx)("b",{children:"Backtrace:\xa0"})}),e.error&&e.error.source.map((function(e,t){return(0,_.jsxs)("div",{children:[(0,_.jsxs)("b",{children:[t,":\xa0"]}),(0,_.jsx)("span",{style:n,children:e})]})}))]})}(n)),c=c.replace(/((\[[0-9;]+m))/g,"");var u=(0,_.jsx)(N(),{format:"YYYY/MM/DD UTC HH:mm:ss",children:n.time});return 1===n.time.getFullYear()&&(u=(0,_.jsx)(i.Fragment,{children:"n/a"})),(0,_.jsxs)(i.Fragment,{children:[(0,_.jsxs)(y.Z,{sx:{"& > *":{borderBottom:"unset"},cursor:"pointer"},style:{backgroundColor:"#FDFDFD"},children:[(0,_.jsx)(C.Z,{onClick:function(){return a(!s)},style:{width:200,color:"#989898",fontSize:12},children:(0,_.jsxs)(M.Z,{sx:{"& .min-icon":{width:12,marginRight:1},fontWeight:"bold",lineHeight:1},children:[(0,_.jsx)(T,{}),u]})}),(0,_.jsx)(C.Z,{onClick:function(){return a(!s)},children:(0,_.jsx)("div",{style:{display:"table",tableLayout:"fixed",width:"100%",paddingLeft:10,paddingRight:10},children:(0,_.jsx)("div",{style:{display:"table-cell",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},children:c})})}),(0,_.jsx)(C.Z,{onClick:function(){return a(!s)},style:{width:40},children:s?(0,_.jsx)(E,{}):(0,_.jsx)(R,{})})]}),(0,_.jsxs)(y.Z,{children:[(0,_.jsx)(C.Z,{style:{paddingBottom:0,paddingTop:0,width:200,textTransform:"uppercase",verticalAlign:"top",textAlign:"right",color:"#8399AB",fontWeight:"bold"},children:(0,_.jsx)(L.Z,{in:s,timeout:"auto",unmountOnExit:!0,children:(0,_.jsx)("div",{style:{marginTop:10},children:"Log Details"})})}),(0,_.jsx)(C.Z,{style:{paddingBottom:0,paddingTop:0},children:(0,_.jsx)(L.Z,{in:s,timeout:"auto",unmountOnExit:!0,children:(0,_.jsx)(M.Z,{sx:{margin:1},children:(0,_.jsx)(P.Z,{style:{background:"#efefef",border:"1px solid #dedede",padding:4,fontSize:14,color:"#666666"},children:d})})})}),(0,_.jsx)(C.Z,{style:{paddingBottom:0,paddingTop:0,width:40}})]})]},n.time.toString())},O=(0,c.$j)((function(e){return{messages:e.logs.messages}}),{logMessageReceived:f.Qo,logResetMessages:f.i1}),A=(0,l.Z)((function(e){return(0,a.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({logList:{background:"#fff",minHeight:400,height:"calc(100vh - 280px)",overflow:"auto",fontSize:13,border:"1px solid #EAEDEE",borderRadius:4},tab:{paddingLeft:25},logerror:{color:"#A52A2A"},logerror_tab:{color:"#A52A2A",paddingLeft:25},ansidefault:{color:"#000"},highlight:{"& span":{backgroundColor:"#082F5238"}}},p.OR),p.qg),p.o$),(0,p.Bz)(e.spacing(4))))}))(O((function(e){var n=e.classes,t=e.logMessageReceived,o=e.logResetMessages,a=e.messages,l=(0,i.useState)(""),c=(0,r.Z)(l,2),u=c[0],f=c[1];(0,i.useEffect)((function(){o();var e=new URL(window.location.toString()),n=e.port,r=(0,g.x2)(e.protocol),i=new s.w3cwebsocket("".concat(r,"://").concat(e.hostname,":").concat(n,"/ws/console")),a=null;if(null!==i)return i.onopen=function(){console.log("WebSocket Client Connected"),i.send("ok"),a=setInterval((function(){i.send("ok")}),1e4)},i.onmessage=function(e){var n=JSON.parse(e.data.toString());n.time=h()(n.time,"HH:mm:s UTC MM/DD/YYYY").toDate(),n.key=Math.random(),t(n)},i.onclose=function(){clearInterval(a),console.log("connection closed by server")},function(){i.close(1e3),clearInterval(a),console.log("closing websockets")}}),[t,o]);var p=u.toLowerCase(),y=a.filter((function(e){return""===u||(e.ConsoleMsg.toLowerCase().indexOf(p)>=0||(!!(e.error&&e.error.source&&e.error.source.filter((function(e){return e.toLowerCase().indexOf(p)>=0})).length>0)||(!!(e.error&&e.error.message.toLowerCase().indexOf(p)>=0)||!!(e.api&&e.api.name.toLowerCase().indexOf(p)>=0))))}));return(0,_.jsxs)(i.Fragment,{children:[(0,_.jsx)(m.Z,{label:"Logs"}),(0,_.jsx)(x.Z,{children:(0,_.jsxs)(d.ZP,{container:!0,children:[(0,_.jsx)(d.ZP,{item:!0,xs:12,className:n.actionsTray,children:(0,_.jsx)(j.Z,{placeholder:"Filter",onChange:function(e){f(e)},value:u})}),(0,_.jsx)(d.ZP,{item:!0,xs:12,children:(0,_.jsx)("div",{id:"logs-container",className:n.logList,children:(0,_.jsx)(w.Z,{component:v.Z,children:(0,_.jsx)(b.Z,{"aria-label":"collapsible table",children:(0,_.jsx)(Z.Z,{children:y.map((function(e){return(0,_.jsx)(k,{log:e})}))})})})})})]})})]})})))},51774:function(e,n,t){"use strict";t.d(n,{V9:function(){return r},ci:function(){return o},HE:function(){return i},x2:function(){return s}});var r=1006,o=1008,i=1011,s=function(e){var n="ws";return"https:"===e&&(n="wss"),n}},65771:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(36222),o=t(1048),i=t(32793),s=t(50390),a=t(44977),l=t(50076),c=t(91442),d=t(35477),u=t(14478),h=t(23060),f=t(8208),g=t(10594);function p(e){return(0,g.Z)("MuiInputAdornment",e)}var m,x=(0,t(43349).Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),j=t(15573),v=t(62559),b=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Z=(0,f.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,n["position".concat((0,c.Z)(t.position))],!0===t.disablePointerEvents&&n.disablePointerEvents,n[t.variant]]}})((function(e){var n=e.theme,t=e.ownerState;return(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:n.palette.action.active},"filled"===t.variant&&(0,r.Z)({},"&.".concat(x.positionStart,"&:not(.").concat(x.hiddenLabel,")"),{marginTop:16}),"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})})),w=s.forwardRef((function(e,n){var t=(0,j.Z)({props:e,name:"MuiInputAdornment"}),r=t.children,f=t.className,g=t.component,x=void 0===g?"div":g,w=t.disablePointerEvents,y=void 0!==w&&w,C=t.disableTypography,L=void 0!==C&&C,M=t.position,P=t.variant,S=(0,o.Z)(t,b),N=(0,h.Z)()||{},_=P;P&&N.variant,N&&!_&&(_=N.variant);var E=(0,i.Z)({},t,{hiddenLabel:N.hiddenLabel,size:N.size,disablePointerEvents:y,position:M,variant:_}),R=function(e){var n=e.classes,t=e.disablePointerEvents,r=e.hiddenLabel,o=e.position,i=e.size,s=e.variant,a={root:["root",t&&"disablePointerEvents",o&&"position".concat((0,c.Z)(o)),s,r&&"hiddenLabel",i&&"size".concat((0,c.Z)(i))]};return(0,l.Z)(a,p,n)}(E);return(0,v.jsx)(u.Z.Provider,{value:null,children:(0,v.jsx)(Z,(0,i.Z)({as:x,ownerState:E,className:(0,a.Z)(R.root,f),ref:n},S,{children:"string"!==typeof r||L?(0,v.jsxs)(s.Fragment,{children:["start"===M?m||(m=(0,v.jsx)("span",{className:"notranslate",children:"\u200b"})):null,r]}):(0,v.jsx)(d.Z,{color:"text.secondary",children:r})}))})}))},20183:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var r=t(32793),o=t(1048),i=t(50390),s=t(44977),a=t(50076),l=t(15573),c=t(8208),d=t(10594);function u(e){return(0,d.Z)("MuiTableContainer",e)}(0,t(43349).Z)("MuiTableContainer",["root"]);var h=t(62559),f=["className","component"],g=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:function(e,n){return n.root}})({width:"100%",overflowX:"auto"}),p=i.forwardRef((function(e,n){var t=(0,l.Z)({props:e,name:"MuiTableContainer"}),i=t.className,c=t.component,d=void 0===c?"div":c,p=(0,o.Z)(t,f),m=(0,r.Z)({},t,{component:d}),x=function(e){var n=e.classes;return(0,a.Z)({root:["root"]},u,n)}(m);return(0,h.jsx)(g,(0,r.Z)({ref:n,as:d,className:(0,s.Z)(x.root,i),ownerState:m},p))}))},3930:function(e){var n=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"===typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},69686:function(e,n,t){var r;if("object"===typeof globalThis)r=globalThis;else try{r=t(3930)}catch(a){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=t(84994);function s(e,n){return n?new o(e,n):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(s,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?s:null,version:i}},84994:function(e,n,t){e.exports=t(19794).version},19794:function(e){"use strict";e.exports={version:"1.0.34"}}}]);
|
|
//# sourceMappingURL=6023.aec2d9d1.chunk.js.map
|