PageSourceSearch

https://nxstep.co/static/js/7.c6df1c8a.chunk.js

js nxstep.co collected 2026-10-05 02:16:37 UTC 5,876 bytes, 2 lines download raw bytes

1(this["webpackJsonpnxstep-v2"]=this["webpackJsonpnxstep-v2"]||[]).push([[7],{1182:function(t,e,n){t.exports={background:"Meeting_background__19LH5",remote:"Meeting_remote__HHXhM",local:"Meeting_local__1LI1z",text:"Meeting_text__3sSOj",micIcon:"Meeting_micIcon__1av6J"}},1303:function(t,e,n){"use strict";n.r(e);var c=n(153),a=n(4),i=n(17),o=n(2),r=n(7),s=n(1182),l=n.n(s),u=n(1292),d=n(9),j=n(45),f=n(1),b=function(t){var e=t.participant,n=t.type,i=t.comm,r=Object(o.useState)([]),s=Object(a.a)(r,2),l=s[0],u=s[1],d=Object(o.useState)([]),b=Object(a.a)(d,2),p=b[0],m=b[1],O=Object(o.useRef)(),h=Object(o.useRef)(),x=function(t){return Array.from(t.values()).map((function(t){return t.track})).filter((function(t){return null!==t}))};return Object(o.useEffect)((function(){return u(x(e.videoTracks)),m(x(e.audioTracks)),e.on("trackSubscribed",(function(t){"video"===t.kind?u((function(e){return[].concat(Object(c.a)(e),[t])})):m((function(e){return[].concat(Object(c.a)(e),[t])}))})),e.on("trackUnsubscribed",(function(t){"video"===t.kind?u((function(e){return e.filter((function(e){return e!==t}))})):m((function(e){return e.filter((function(e){return e!==t}))}))})),function(){u([]),m([]),e.removeAllListeners()}}),[e]),Object(o.useEffect)((function(){var t=l[0];if(t)return t.attach(O.current),function(){"function"===typeof t.stop&&t.stop(),t.detach()}}),[l]),Object(o.useEffect)((function(){var t=p[0];if(t)return t.attach(t.current),function(){"function"===typeof t.stop&&t.stop(),t.detach()}}),[p]),Object(f.jsxs)("div",{className:"participant",style:{maxWidth:"100%"},children:[Object(f.jsx)("audio",{ref:h,autoPlay:!0}),"VIDEO"===i&&Object(f.jsx)("video",{ref:O,autoPlay:!0}),"VIDEO"!==i&&Object(f.jsx)("p",{style:{textAlign:"center",color:"white"},children:Object(f.jsx)(j.l,{style:"remote"===n?{fontSize:"3em"}:{fontSize:"2em"}})})]})},p=n(54),m=n(8),O=n(16),h=["location"];e.default=function(t){var e=t.location,s=(Object(i.a)(t,h),n(1183)),x=Object(o.useContext)(r.a),g=x.session,v=(x.refreshSession,Object(o.useState)(null)),y=Object(a.a)(v,2),k=y[0],w=y[1],_=e.state.data.meeting,E=e.state.data.token,S=Object(o.useState)([]),T=Object(a.a)(S,2),N=T[0],P=T[1],I=Object(o.useState)(null),M=Object(a.a)(I,2),C=M[0],z=M[1],A=Object(o.useState)(null),H=Object(a.a)(A,2),L=H[0],D=H[1],J=Object(o.useState)(!1),R=Object(a.a)(J,2),V=R[0],F=R[1],U=_.id,W=N.map((function(t){return Object(f.jsx)(f.Fragment,{children:Object(f.jsx)(b,{style:{display:"block"},comm:_.primaryCommunication,participant:t,type:"remote"},t.sid)})}));Object(o.useEffect)((function(){var t=function(t){P((function(e){return[].concat(Object(c.a)(e),[t])}))},e=function(t){P((function(e){return e.filter((function(e){return e!==t}))}))};return s.connect(E,{name:U,audio:B,video:X}).then((function(n){z(n),n.on("participantConnected",t),n.on("participantDisconnected",e),n.participants.forEac
1h(t)})).catch((function(t){D("Unable to join call. Contact support if error persists."),console.log(t)})),function(){z((function(t){return t&&"connected"===t.localParticipant.state?(console.log(t.localParticipant.tracks),t.localParticipant.tracks.forEach((function(t){console.log(t),t&&t.track.stop()})),t.disconnect(),null):t}))}}),[U,E]),Object(o.useEffect)((function(){var t=setTimeout((function(){Object(p.h)(_.date,_.startTime,_.duration)?window.location.href="/dashboard/meetings":w(Object(p.c)(_.date,_.startTime,_.duration))}),1e4);return function(){return clearTimeout(t)}}));var q=_.primaryCommunication,B=!0,X="VIDEO"===q;return Object(o.useEffect)((function(){w(Object(p.c)(_.date,_.startTime,_.duration))}),[_.date,_.startTime,_.duration]),Object(f.jsxs)("div",{className:l.a.background,children:[Object(f.jsx)("div",{style:{position:"absolute",width:"100%",zIndex:100},children:L&&Object(f.jsx)(u.a,{variant:"danger",children:L})}),Object(f.jsxs)("p",{style:{position:"absolute",right:"1em",bottom:"1em",zIndex:100},className:l.a.test,children:[" Time Left : ",k&&Object.keys(k).map((function(t,e){return Object(f.jsxs)("span",{children:["minutes"===t&&"".concat(k[t]," ").concat(t)," "]},e)}))]}),Object(p.h)(_.date,_.startTime,_.duration)&&Object(f.jsx)("p",{style:{position:"absolute",width:"100%",top:"50%"},className:l.a.test,children:"Meeting has ended"}),(!W||0===W.length)&&Object(p.g)(_.date,_.startTime)&&Object(f.jsx)("p",{style:{position:"absolute",width:"100%",top:"50%",textAlign:"center"},className:l.a.test,children:"Waiting for participant to join"}),W&&W.length>0&&Object(p.g)(_.date,_.startTime)&&Object(f.jsx)("p",{style:{position:"absolute",width:"100%",top:"50%",textAlign:"center"},className:l.a.test,children:"Participant is in the room. Start chatting!"}),Object(f.jsx)("div",{style:{transform:"scale(-1, 1)"},className:l.a.remote,children:W}),Object(f.jsx)("div",{style:{transform:"scale(-1, 1)"},className:l.a.local,children:C?Object(f.jsx)(b,{comm:_.primaryCommunication,participant:C.localParticipant,type:"local"},C.localParticipant.sid):""}),Object(f.jsx)("div",{className:"d-flex justify-content-center",children:Object(f.jsx)(m.a,{className:"btnFill red md mt-3",style:{zIndex:1e3},onClick:function(){C.localParticipant.tracks.forEach((function(t){"function"===typeof t.stop&&t.stop(),t.unpublish()})),d.a.collegeApi.leaveMeeting(_.id,g.jwt).then((function(t){200===t.status&&t.data}
1)).catch((function(t){console.log(t)})),window.location="/dashboard"},children:"Exit Meeting"})}),Object(f.jsxs)(O.a,{show:V,onHide:function(){window.location="/dashboard",F(!1)},children:[Object(f.jsx)(O.a.Header,{children:Object(f.jsxs)(O.a.Title,{className:"d-flex align-items-center",children:[Object(f.jsx)(j.q,{className:"mr-2",fill:"orange"})," Leave a Review!"]})}),Object(f.jsx)(O.a.Body,{children:Object(f.jsx)("p",{children:"Please remember to head to your dashboard and leave a review after your meeting!"})})]})]})}}}]);
2//# sourceMappingURL=7.c6df1c8a.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.