PageSourceSearch

https://app.talkshoe.com/packs/js/7576-c5d742814bf61904.chunk.js

js talkshoe.com collected 2026-10-01 09:16:59 UTC 9,331 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfacetalk=self.webpackChunkfacetalk||[]).push([["7576"],{275883(e,t,i){let n,s,a,r,o,c;i.r(t),i.d(t,{enable:()=>B});var d=i(430228),u=i(302543),l=i(42385),h=i(566603),g=i(139786),A=i(53585),p=i(54193),v=i(996599),m=i(60286);class f extends d.EventEmitter{get audioInputDevices(){return g.A.getAll()}get audioInputDeviceId(){return g.A.getSelectedDeviceId()}set audioInputDeviceId(e){m.A.setAudioInputDevice(e),k()}get audioOutputDevices(){return A.A.getAll()}get audioOutputDeviceId(){return A.A.getSelectedDeviceId()}set audioOutputDeviceId(e){m.A.setAudioOutputDevice(e),k()}get videoInputDevices(){return p.A.getAll()}get videoInputDeviceId(){return p.A.getSelectedDeviceId()}set videoInputDeviceId(e){m.A.setVideoInputDevice(e),k()}}let w=new f;function C(){p.A.off("CHANGE",b),g.A.off("CHANGE",_),A.A.off("CHANGE",I),p.A.off(v.yh7,E),g.A.off(v.yh7,E),A.A.off(v.yh7,E)}let _=()=>{let e=w.audioInputDeviceId;e!==n&&(n=e,S(v.HoQ,{kind:v.WJF,deviceId:e}))},I=()=>{let e=w.audioOutputDeviceId;e!==s&&(s=e,S(v.HoQ,{kind:v.XC9,deviceId:e}))},b=()=>{let e=w.videoInputDeviceId;e!==a&&(a=e,S(v.HoQ,{kind:v.Vn2,deviceId:e}))},E=()=>{S(v.yh7,{[v.Vn2]:w.videoInputDevices,[v.WJF]:w.audioInputDevices,[v.XC9]:w.audioOutputDevices})},k=(0,u.throttle)(()=>{m.A.saveDevices()},100,{leading:!1}),S=(e,t)=>{w.emit(e,t),(0,h.u1)("device",e,t)};var y=i(519350),D=i(50267),V=i(838322);function O(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let L="sdk/Participant",P="Not Allowed";class M{get state(){return this._state}equals(e){return!!e&&(0,u.isEqual)(this.state,e.state)}constructor(e){this._state={id:Number(e.get("id")),name:String(e.get("name")),isCurrent:!!e.get("isCurrent"),isOrganizer:!!e.get("isOrganizer"),isModerator:!!e.get("isModerator"),isObserver:!!e.get("isObserver"),isJoining:!!e.get("isJoining"),isOnCall:!!e.get("isOnCall"),isViewingOnly:!!e.get("isViewingOnly"),isLeft:!!e.get("isLeft"),isMuted:!!e.get("isMuted"),isCameraOn:!!e.hasIn(["video","camera"]),isPhone:!!e.get("isPhone"),isInternet:!!e.get("isInternet"),isStreaming:!!e.get("isStreaming"),isBlocked:!!e.get("blocked"),handRaised:!!e.get("handRaised")}}}class N extends d.EventEmitter{get id(){return this.state.id}get isLocal(){return this.state.isCurrent}get canMute(){return!this.state.isViewingOnly&&(!!this.state.isCurrent||!!this._conference.localParticipant.state.isModerator)}get canUnmute(){if(this.isLocal){if(y.A.isOnCall()&&this._conference.mode!==v.vbV)return!0}else if(!this.state.isViewingOnly&&this._conference.localParticipant.state.isModerator)return!0;return!1}async mute(){if(this.canMute)return D.A.mute(this.id);throw Error(P)}async unmute(){if(this.canUnmute)return D.A.unmute(this.id);throw Error(P)}async startCamera(){if(this.isLocal)return V.A.startCamera();throw Error(P)}async stopCamera(){if(this.isLocal)return V.A.stopCamera();throw Error(P)}adjustAudio(e){V.A.adjustAudio(this.id,e)}updateState(e){let t=!e.equals(this._state);this._state=e,t&&this._postEvent("CHANGE",this.state)}setAudioLevel(e){this._postEvent("AUDIO_LEVEL",{id:this.id,audioLevel:e})}get state(){return this._state.state}constructor(e){super(),O(this,"onMessage",({action:e,...t})=>{if(e){let i;switch(e){case"mute":i=this.mute();break;case"adjustAudio":{let{volume:e,pan:i}=t;this.adjustAudio({volume:Number(e),pan:Number(i)});break}default:l.A.warn(L,"unknown action",e)}i&&i.catch((...e)=>l.A.error(L,...e))}}),O(this,"_postEvent",(e,t)=>{this.emit(e,t),(0,h.u1)("participant",e,t)}),this._conference=e,this._state=null}}var G=i(264806),H=i(365205),x=i(529511),R=i(625094),j=i(562770),z=i(184821),T=i(637268),U=i(331741);function F(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let q="sdk/Conference";class J extends d.EventEmitter{unload(){G.A.off("CHANGE",this._onConferenceCallChanged),x.A.off("CHANGE",this._onParticipantStoreChanged),z.A.off(U.xZ,this._onConferenceCallChanged),z.A.off(U.Fx,this._onAudioLevelChanged),this.removeAllListeners(),this._reset()}get id(){return G.A.get("id")}get name(){return G.A.get("subject")}get roomSize(){return this.isActive?this._participants.size+1:0}get isActive(){return G.A.get("is_active")}get isRecording(){return G.A.isRecording()}get isStreaming(){return G.A.isStreaming()}get isLocked(){return G.A.isLocked()}get isSecured(){return G.A.isSecured()}get mode(){return G.A.getMuteMode()}async changeMode(e){if([v.ygy,v.uYU,v.vbV].includes(e)){if(this.localParticipant.state.isModerator)return void await H.A.changeConferenceMode(e);throw Error("Not Allowed")}throw Error("Invalid Mode")}get canChangeViewType(){return R.A.isGalleryViewToggleable()}
1get viewType(){return R.A.getActiveViewType()}async changeViewType(e){if([v.F5F,v.YAs,v.UDe].includes(e)){if(this.canChangeViewType)return void j.A.changeInCallView(e);throw Error("Not Allowed")}throw Error("Invalid ViewType")}get incomingVideo(){return z.A.isIncomingVideoAllowed()}get localParticipant(){return this._local}get remoteParticipants(){return[...this._participants.values()]}getParticipant(e){return this._participants.get(e)}async hangUp(){H.A.exit()}_reset(){this._meetingState=void 0,this._local=void 0,this._participants=new Map,this._speakerId=void 0}constructor(){super(),F(this,"onMessage",({action:e,...t})=>{if(e){var i,n,s,a;let r;switch(e){case"mute":r=null==(i=this.localParticipant)?void 0:i.mute();break;case"unmute":r=null==(n=this.localParticipant)?void 0:n.unmute();break;case"startCamera":r=null==(s=this.localParticipant)?void 0:s.startCamera();break;case"stopCamera":r=null==(a=this.localParticipant)?void 0:a.stopCamera();break;case"enableIncomingVideo":T.A.allowIncomingVideo(!0);break;case"disableIncomingVideo":T.A.allowIncomingVideo(!1);break;case"setVolume":{let{volume:e}=t;V.A.changeVolume(Number(e));break}default:l.A.warn(q,"unknown action",e)}r&&r.catch((...e)=>l.A.error(q,...e))}}),F(this,"_onConferenceCallChanged",()=>{if(!G.A.isLoaded())return;let e={id:this.id,name:this.name,mode:this.mode,roomSize:this.roomSize,isActive:this.isActive,isRecording:this.isRecording,isStreaming:this.isStreaming,isLocked:this.isLocked,isSecured:this.isSecured,incomingVideo:this.incomingVideo};!(0,u.isEqual)(e,this._meetingState)&&(this._postEvent("CHANGE",e),this._meetingState=e,this._local||this._onParticipantStoreChanged()),G.A.get("has_exited")&&this._postEvent(v.bRs,{reason:""})}),F(this,"_onParticipantStoreChanged",()=>{if(this._meetingState&&G.A.isLoaded()){x.A.getVisibleAttendees().forEach(e=>{let t=new M(e);if(t.state.isCurrent)this._local||(this._local=new N(this)),this._local.updateState(t);else{let e=t.state.isViewingOnly||!t.state.isLeft;e&&!this._participants.has(t.state.id)&&this._participants.set(t.state.id,new N(this));let i=this._participants.get(t.state.id);i&&(i.updateState(t),e||this._participants.delete(t.state.id))}});let e=x.A.getActiveSpeakerId();this._speakerId!==e&&(e&&this._postEvent("SPEAKER",{id:this.id,speakerId:e}),this._speakerId=e),this._meetingState.roomSize!==this.roomSize&&setTimeout(this._onConferenceCallChanged)}}),F(this,"_onAudioLevelChanged",(e,t)=>{var i;null==(i=this._participants.get(e))||i.setAudioLevel(t)}),F(this,"_postEvent",(e,t)=>{this.emit(e,t),(0,h.u1)("conference",e,t)}),this._reset(),G.A.on("CHANGE",this._onConferenceCallChanged),x.A.on("CHANGE",this._onParticipantStoreChanged),z.A.on(U.xZ,this._onConferenceCallChanged),z.A.on(U.Fx,this._onAudioLevelChanged)}}let Q="room";class Y extends d.EventEmitter{get conference(){return c}get Devices(){return w}constructor(e=""){super(),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"disconnect",()=>{h.GP(Q),C(),o&&delete window[o],c&&(c.unload(),c=null),r=void 0}),(o=e)&&(o in window?o="":window[o]=this),(c=new J).on(v.bRs,this.disconnect)}}let B=(e="CallBridge",t=!1)=>(r&&o!==e&&r.disconnect(),r||(r=new Y(e)),t&&(h.sS(Q,(e,t)=>{switch(e){case"device":(({action:e,deviceId:t})=>{if(e)switch(e){case"setVideoInput":w.videoInputDeviceId=t;break;case"setAudioInput":w.audioInputDeviceId=t;break;case"setAudioOutput":w.audioOutputDeviceId=t;break;default:l.A.warn("sdk/Device","unknown action",e)}})(t);break;case"conference":null==c||c.onMessage(t);break;case"participant":{var i;let{id:e,...n}=t;null==c||null==(i=c.getParticipant(e))||i.onMessage(n)}}}),C(),p.A.on("CHANGE",b),g.A.on("CHANGE",_),A.A.on("CHANGE",I),p.A.on(v.yh7,E),g.A.on(v.yh7,E),A.A.on(v.yh7,E),E(),b(),_(),I()),r)},566603(e,t,i){let n,s,a,r;i.d(t,{GP:()=>u,sS:()=>d,u1:()=>l});var o=i(766873);let c="_ping";function d(e,t){n=t,window.addEventListener("message",g),(s=(t=!1)=>l(e,"READY",{existing:t}))()}function u(e){h(),window.removeEventListener("message",g),l(e,"UNLOAD"),s=void 0}let l=(e,t,i)=>{let n=window.opener||window.parent;n&&n!==window&&n.postMessage({type:e,event:t,...i},"*")},h=()=>{r&&(clearInterval(r),r=void 0),a&&(a.close(),a=void 0)},g=({data:e})=>
1{if(e&&e.type){let{type:t,...i}=e;if(t){if(h(),"widget"===t){let{action:e,...t}=i;switch(e){case c:{let e=()=>{l("widget",c,t)};r=setInterval(e,1e3),(a=new o.A("widget-channel")).onMessage(t=>{t.data===c&&(h(),e())});break}case"_pong":null==s||s(!0)}return}null==n||n(t,i)}}}}}]);
2//# sourceMappingURL=7576-c5d742814bf61904.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.