(this["webpackJsonp@factor/webapp"]=this["webpackJsonp@factor/webapp"]||[]).push([[21],{1113:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(1174),s=a(189),o=a(158);a(801);var l=function(e){var t=e.secure,a=e.wsLocation;return r.a.createElement("iframe",{style:{height:"calc(100vh - 68px)",flexGrow:1,overflow:"hidden"},src:"/devtools/inspector/inspector.html?".concat(t?"wss":"ws","=").concat(a)})},i=a(97),u=a(178),d=a(117),f=a(583),m=a(58),p=a(784),E=a(1293),h=Object(p.a)((function(e){return{root:{backgroundColor:e.palette.background.default,display:"flex",position:"fixed",flexGrow:1,height:"100%"}}}));t.default=function(){var e=h(),t=o.a.EditRecording.useParams(),a=Object(f.b)(!0),p=a.hostnamePort,b=a.healthCheck,v=a.secure,w=a.runner,O=a.loaded,g=Object(i.d)(),R=g.token,x=g.error,y=g.loadState,j=Object(n.useContext)(E.a),S=j.width,T=j.open,P=null,A=!0;if(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||(P=r.a.createElement(s.a,{mt:3},"Recording currently only supports chromium based browsers")),O&&y!==i.a.NOT_STARTED&&y!==i.a.STARTED)if(y===i.a.FAILED)P=r.a.createElement(s.a,{mt:3},"Error: ".concat(JSON.stringify(x)));else if(null!==w&&void 0!==w&&w.status&&[m.RunnerStatus.STOPPED,m.RunnerStatus.REQUEST_DROPPED,m.RunnerStatus.FAILURE].includes(w.status))P=r.a.createElement(s.a,{mt:3},"Error: ".concat(null===w||void 0===w?void 0:w.statusReason));else{var C=Object(d.a)(t.testId,R).devtoolsPath,D="".concat(p).concat(C);P=r.a.createElement(l,{secure:v,wsLocation:D}),A=!1}else P=w&&w.status&&100===f.a[w.status]&&!O?r.a.createElement(u.a,{progress:87.5,label:"WAITING_FOR_HEALTH_CHECK ".concat(b)}):w&&w.status?r.a.createElement(u.a,{progress:f.a[w.status],label:w.status}):r.a.createElement(u.a,null);return r.a.createElement(c.a,{title:"Record",style:{display:"flex",height:"100%",flexDirection:"column"}},A&&r.a.createElement("iframe",{style:{display:"none"},src:"/devtools/inspector/inspector.html"}),r.a.createElement(s.a,{display:"flex",className:e.root,sx:{width:T?"calc(100% - ".concat(S,"px)"):"100%"}},P))}},1174:function(e,t,a){"use strict";var n=a(28),r=a(0),c=a.n(r),s=a(574),o=["children","title"],l=Object(r.forwardRef)((function(e,t){var a=e.children,r=e.title,l=void 0===r?"":r,i=Object(n.a)(e,o);return c.a.createElement("div",Object.assign({ref:t},i),c.a.createElement(s.a,null,c.a.createElement("title",null,l)),a)}));l.displayName="Page",t.a=l},1293:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),r=Object(n.createContext)({width:512,setWidth:function(){return null},open:!1,setOpen:function(){return null}})}}]);