@cometchat/calls-sdk-react-native 4.0.0 → 4.0.2

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.md ADDED
@@ -0,0 +1,3 @@
1
+ Copyright (c) 2023 CometChat Inc.
2
+
3
+ License agreement: https://www.cometchat.com/legal-terms-of-service
package/dist/index.js CHANGED
@@ -125,4 +125,4 @@ a=extmap-allow-mixed`)!==-1){const V=L.sdp.split(`
125
125
  Ex: Technology`);const Me=X.charAt(0).toUpperCase(),it=Ht({width:b,height:b,borderRadius:b/2},de?{}:{backgroundColor:x}),lt=Ht({width:b,height:b,borderRadius:6*b/100},de?{}:{backgroundColor:x}),Rt=Ht({width:"100%",height:"100%",borderRadius:8},de?{}:{backgroundColor:x}),ht={color:H,fontSize:b/3.14};return(ce==null?void 0:ce.toLowerCase())=="square"?de?d().createElement(o.Image,{source:{uri:de},style:[K,ke.center,lt]}):d().createElement(Yt,{containerStyle:[K,ke.center,it,{borderRadius:0}],textStyles:ht,text:Me}):(ce==null?void 0:ce.toLowerCase())=="fullscreen"?de?d().createElement(o.Image,{resizeMode:"cover",source:{uri:de},style:[K,ke.center,Rt]}):(it.borderRadius=b/2,d().createElement(Yt,{containerStyle:[K,ke.center,it],textStyles:ht,text:Me})):de?d().createElement(o.Image,{source:{uri:de},style:[K,it]}):d().createElement(Yt,{containerStyle:[K,ke.center,it],textStyles:ht,text:Me})}}It(Q,"contextType",Kt);const ke=o.StyleSheet.create({center:{alignItems:"center",justifyContent:"center"},text:{fontWeight:"bold",letterSpacing:1}}),ge=0,L={ALERT:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAACHklEQVR4AezBEVBDARwH4D8MgmA4DIIgDMLuwiAIgzDILwiDMAzCIAyDMAiDcBgEwSAYDL5wUN22t7d3193v+yoiIiIiIuI/wSF2KrqHNQzxXN0LXJg6ru4EBvgy9Y616kbgzk+XFauHXb8b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AGAAAABgCAMAAADVRocKAAAAP1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////9Du/pqAAAAFXRSTlMA/28MqyjD59cYv1P722s889N/j8sEQHOMAAABVUlEQVR4Ae3UN2IEQQwDQVLSeW/+/1ZFc51AFoNsETHqyljL/rZly7q736JAWui00Gmh00KnhU4LnRY6LXRa6LTQM4X3j5UA5gnv694gANgC/UYA8AX6QxDA1hDoD0EAO1fYdyMIoFzhcJQCQEgACAkAKQFguiCA2p0QzrYggMu1x66XmiIA+H0pAPh9KQD4fSkA+H0lAPh9LYxrTl8I45jURxCjnxHoZwT6ASHQRwj0EUJ9hFQfIdVHyPX5//ylSD8j0E8K9BFSfYRUHyHVR0j1EVJ9hKn913WUgt+/jOsgBb9f4ywp+H0AKfh9ACn4fQAp+H0AKfh9ACGYfQW83/q1u9lXwPua/mNKHyDUBwj1Adx+PWUfwO3XbktfAUYfYfQVYPQRRl8BVh+BPoDfR3jS1wD9aUv3K92vdL/S/Ur3K92vdL/S/Ur3K92vdL/+11+2bNknS5UVYka69LoAAAAASUVORK5CYII="},AUDIO_MODE_EARPIECE:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAABcElEQVR4AeyWAcTCUBRGhx8/AoQAQwhhCAECIAwBQggAIUAIECCEMAwhQIAAECAABIAwQAghvD50yed1bbWr0OGgXm87tre3Ait+/HDORd8UM4dX2HtxfgYTGJUREztBiaI5I/r8yAaGJVwhJYpioOMg4gRj8yiJ8QS1YQqvFDayiJKxf3jgIJrfggeKii2janJCZX4F7uj2heZRAUNRdKW2MmYWRb9dwAqvK1pTUd4Td+D0iZk3iriP7z1RKyikeYOmUCXH0ycknkUuZAZB/qj7epGxumcXF5oWQerTB8Z0/A0UulZBWtSSjp9CYWAWpERN6PgJFIbWQRzF8C3rWwbNc24JR9qLbIKUzZM3R+EM/97ZGNd6ULF3H1iV9/pQggpEdQJgFlXw3VcNBKuoN/55lh+lBDXg6SNR9H0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bYv82GWi6Cw7P0+TC+/Q4CbGIugU+dJcszStX9Pq7Dk0eQWMAFVM6mA7iBVAspjEFEZfItL0IKT7D6qVIhm7DfIYWMeYwUXz9N/dShWfWrXKBz6XJ/4l5IQu2gkC3uH41JVK/lvtA5HuhLGc3zqoAAAAAElFTkSuQmCC"},CLEAR:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAM1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACjBUbJAAAAEXRSTlMADKsoPJ8Ew//n879T+8sY13W/vG8AAAEBSURBVHgB7daxAcJAEAPBxxh4DBj6r5ZEibObzMGpgJ1Uo9fr9Xq93rl3Wa6jvPV25/5jPsvCus3lzv1ZEtKfJKQfodSPgP0ItT4JrzlrQvrZrQy8P0Xh0N/WkbngfRe874L3XfC+C953wfsueB8F75vgfRO8b4L3TfC+Cd43wfsmeB8F76PgfRe874L3UfA+Cd6HfwWPzPsueN8F76vgfRC8v31I8P76JsH7Y5jgfRO8b4L3TfC+Cd43wfsmeB8F77vgfRe874L3XfC+C953wfsuZHu1fxSWMvD91fpH4XEZIFT7EdIXodaPkL4JtX6E9EnYS/0Ir/R7vV6v1+uddX+z4icAfdG+MQAAAABJRU5ErkJggg=="},END_CALL:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAM1BMVEUAAAD///////////////////////////////////////////////////////////////+3leKCAAAAEXRSTlMADKsoPJ8Ew//n879T+8sY13W/vG8AAAEBSURBVHgB7daxAcJAEAPBxxh4DBj6r5ZEibObzMGpgJ1Uo9fr9Xq93rl3Wa6jvPV25/5jPsvCus3lzv1ZEtKfJKQfodSPgP0ItT4JrzlrQvrZrQy8P0Xh0N/WkbngfRe874L3XfC+C953wfsueB8F75vgfRO8b4L3TfC+Cd43wfsmeB8F76PgfRe874L3UfA+Cd6HfwWPzPsueN8F76vgfRC8v31I8P76JsH7Y5jgfRO8b4L3TfC+Cd43wfsmeB8F77vgfRe874L3XfC+C953wfsuZHu1fxSWMvD91fpH4XEZIFT7EdIXodaPkL4JtX6E9EnYS/0Ir/R7vV6v1+uddX+z4icAfdG+MQAAAABJRU5ErkJggg=="},FULLSCREEN_ENABLE:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkAQAAAADJe6U1AAAAAnRSTlMAAHaTzTgAAAAeSURBVHgBYyAeMP5j/4FGHmCwwE0SBgRMwLSReAAALFsVry/+TlYAAAAASUVORK5CYII="},FULLSCREEN_DISABLE:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkAQAAAADJe6U1AAAAAnRSTlMAAHaTzTgAAAAdSURBVHgBYyAB8LHjIRn/sf9AJQkDTF34bSEBAABlZwzHYOP77gAAAABJRU5ErkJggg=="},NETWORK1:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAeCAYAAABe3VzdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH6SURBVHgB7Zi9TsJQFMfPuUBijAM+gR3ViTjz1cRdV3VQZ2PAF1DR2fg16GKiDuroA5i0A0wOMpE4WZ9Adtpe/1cwqbVFG9JQDf/kptxzDpcfpz2nvWVKiBqNxo7rulVmzmLalFJuFQoFkykBqtfrhzhU/XZA6kMHNAwjl8lknkLcpqAhK5VK5fq4y0MH/EmJB0xTjPJVptnpdNZ1XbeirBFbBlVlogp3e3BK5XQ6jZowslHWiQUQEBoFtA3AaoCsUgTFAggILcwnhJiiCBpV8aAaAQ6q/9eo0XwraL6f/c3E2Mrn802KSZEyCLhdNN8jb/PFMNCUcxSTfg2I5quez3YCXFkAVygmRcmgFuYAuEYxaVTFg+pvtJnq0yLZ4xO4lphc16az2VtKisRGa5nANYnPqxgVYipvPK9QUqROseaMTTwifRfI30GKxQNs25utJUqCBA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AgQIECCgAMgAAQIECBBoKKAANBy6LRMgQIAAAQVABggQIECAQEMBBaDh0G2ZAAECBAgoADJAgAABAgQaCigADYduywQIECBAQAGQAQIECBAg0FBAAWg4dFsmQIAAAQIKgAwQIECAAIGGAgpAw6HbMgECBAgQUABkgAABAgQINBRQABoO3ZYJECBAgIACIAMECBAgQKChgALQcOi2TIAAAQIEFAAZIECAAAECDQUUgIZDt2UCBAgQIKAAyAABAgQIEGgooAA0HLotEyBAgAABBUAGCBAgQIBAQwEFoOHQbZkAAQIECCgAMkCAAAECBBoKKAANh27LBAgQIEBAAZABAgQIECDQUEABaDh0WyZAgAABAgqADBAgQIAAgYYCCkDDodsyAQIECBBQAGSAAAECBAg0FFAAGg7dlgkQIECAgAIgAwQIECBAoKGAAtBw6LZMgAABAgQUABkgQIAAAQINBRSAhkO3ZQIECBAgoADIAAECBAgQaCigADQcui0TIECAAAEFQAYIECBAgEBDAQWg4dBtmQABAgQIKAAyQIAAAQIEGgooAA2HbssECBAgQEABkAECBAgQINBQQAFoOHRbJkCAAAECCoAMECBAgACBhgIKQMOh2zIBAgQIEFAAZIAAAQIECDQUUAAaDt2WCRAgQICAAiADBAgQIECgoYAC0HDotkyAAAECBBQAGSBAgAABAg0FFICGQ7dlAgQIECCgAMgAAQIECBBoKKAANBy6LRMgQIAAAQVABggQIECAQEMBBaDh0G2ZAAECBAgoADJAgAABAgQaCigADYduywQIECBAQAGQAQIECBAg0FBAAWg4dFsmQIAAAQIKgAwQIECAAIGGAgpAw6HbMgECBAgQUABkgAABAgQINBRQABoO3ZYJECBAgIACIAMECBAgQKChgALQcOi2TIAAAQIEFAAZIECAAAECDQUUgIZDt2UCBAgQIKAAyAABAgQIEGgooAA0HLotEyBAgAABBUAGCBAgQIBAQwEFoOHQbZkAAQIECCgAMkCAAAECBBoKKAANh27LBAgQIEBAAZABAgQIECDQUEABaDh0WyZAgAABAgqADBAgQIAAgYYCCkDDodsyAQIECBBQAGSAAAECBAg0FFAAGg7dlgkQI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Ag0FFICGQ7dlAgQIECCgAMgAAQIECBBoKKAANBy6LRMgQIAAAQVABggQIECAQEMBBaDh0G2ZAAECBAgoADJAgAABAgQaCigADYduywQIECBAQAGQAQIECBAg0FBAAWg4dFsmQIAAAQIKgAwQIECAAIGGAgpAw6HbMgECBAgQUABkgAABAgQINBRQABoO3ZYJECBAgIACIAMECBAgQKChgALQcOi2TIAAAQIEFAAZIECAAAECDQUUgIZDt2UCBAgQIKAAyAABAgQIEGgooAA0HLotEyBAgAABBUAGCBAgQIBAQwEFoOHQbZkAAQIECCgAMkCAAAECBBoKKAANh27LBAgQIEBAAZABAgQIECDQUEABaDh0WyZAgAABAgqADBAgQIAAgYYCCkDDodsyAQIECBBQAGSAAAECBAg0FFAAGg7dlgkQIECAgAIgAwQIECBAoKGAAtBw6LZMgAABAgQUABkgQIAAAQINBRSAhkO3ZQIECBAgoADIAAECBAgQaCigADQcui0TIECAAAEFQAYIECBAgEBDAQWg4dBtmQABAgQIKAAyQIAAAQIEGgooAA2HbssECBAgQEABkAECBAgQINBQQAFoOHRbJkCAAAECCoAMECBAgACBhgIKQMOh2zIBAgQIEFAAZIAAAQIECDQUUAAaDt2WCRAgQICAAiADBAgQIECgoYAC0HDotkyAAAECBBQAGSBAgAABAg0FFICGQ7dlAgQIECCgAMgAAQIECBBoKKAANBy6LRMgQIAAAQVABggQIECAQEMBBaDh0G2ZAAECBAgoADJAgAABAgQaCigADYduywQIECBAQAGQAQIECBAg0FBAAWg4dFsmQIAAAQIKgAwQIECAAIGGAgpAw6HbMgECBAgQUABkgAABAgQINBRQABoO3ZYJECBAgIACIAMECBAgQKChwP8ALFI+poQkXqQAAAAASUVORK5CYII="},VIDEO_MUTE:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAA4CAYAAABE814IAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAARKADAAQAAAABAAAAOAAAAADf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_list_container:{position:"absolute",top:ge,bottom:ge,width:"100%",backgroundColor:At.blackLightXX,elevation:10,zIndex:10},flat_list_style:{},users_icons_container:{marginLeft:10},user_list_close_container:{padding:10,borderRadius:20,margin:5,alignSelf:"center"},user_item_container:{position:"relative",elevation:0,zIndex:0},close_icon:{width:25,height:20,tintColor:At.whiteAlmost},menu_container:{backgroundColor:"#111",alignSelf:"flex-end",marginBottom:5,borderRadius:5,width:90,paddingHorizontal:10,paddingVertical:5,position:"absolute",right:15,elevation:19,zIndex:1},menu_list:{flexDirection:"row",alignItems:"center"},menu_icon:{width:18,height:18,marginRight:5},menu_text:{fontSize:16,color:"#fff",padding:5},user_item_pinned:{padding:15,fontSize:18,flexDirection:"row",justifyContent:"flex-start",alignItems:"center",zIndex:1,borderBottomWidth:o.StyleSheet.hairlineWidth,borderBottomColor:At.palette.offWhite},user_item_user_name:{fontSize:18,color:At.palette.white,marginStart:10,width:"60%"},user_item_icon_container:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",position:"absolute",right:10},user_item_icons:{width:20,height:20},recorderBadge:{height:12,width:12,borderRadius:20,backgroundColor:At.redLightX},recorderBadgeText:{fontSize:12,color:At.palette.white},lt_small_button:{width:10,height:10,marginHorizontal:8,borderRadius:20,alignItems:"center",justifyContent:"center"},lt_small_button_red:{width:35,height:35,margin:5,backgroundColor:At.redLight,borderRadius:20,alignItems:"center",justifyContent:"center"},lt_small_button_blue:{width:35,height:35,margin:5,backgroundColor:At.blueLight,borderRadius:20,alignItems:"center",justifyContent:"center"}}),ee=d().memo(({connectionQuality:F})=>{const X=F<25?L.NETWORK1:F<50?L.NETWORK2:F<75?L.NETWORK3:L.NETWORK4;return d().createElement(o.Image,{resizeMode:"contain",source:X,style:[{height:20,width:20}]})},(F,X)=>Math.ceil(F.connectionQuality/25)===Math.ceil(X.connectionQuality/25));let se=null;const Ie=d().memo(({pinnedUserId:F,itemsRef:X,isMenuVisible:b,setIsMenuVisible:x,recorderId:H,isAudioOnly:K,selectedIndexRef:de,topRef:ce,dispatch:Me,headerRef:it,refresh:lt,users:Rt,screenOffsetRef:ht})=>d().createElement(o.FlatList,{style:V.flat_list_style,data:Rt,keyExtractor:mt=>mt.id,renderItem:mt=>{if(mt){const Vt=mt.item,Lt=mt.index;let at,gn=Vt.name;return Lt==0&&(gn+=" (you)"),at=Vt.id===F,d().createElement(d().Fragment,null,d().createElement(o.TouchableOpacity,{onPress:()=>{x(!1)},activeOpacity:1,style:V.user_item_container},d().createElement(o.View,{style:V.user_item_pinned},d().createElement(o.View,null,Vt.id===H&&d().createElement(o.View,{style:V.recorderBadge})),d().createElement(o.Text,{testID:`cc-user${Lt}-name`,style:V.user_item_user_name},gn),d().createElement(o.View,{style:V.user_item_icon_container},d().createElement(o.View,{style:[V.users_icons_container,{flexDirection:"row",alignItems:"center"}]},__nested_webpack_require_965807__.g.ccUsersStats[Vt.id]&&d().createElement(ee,{connectionQuality:__nested_webpack_require_965807__.g.ccUsersStats[Vt.id]})),d().createElement(o.View,{testID:`cc-user${Lt}-audio-icon`,style:V.users_icons_container},d().createElement(o.Image,{style:[V.user_item_icons,{tintColor:Vt.isAudioMuted?At.red:At.green}],source:Vt.isAudioMuted?L.AUDIO_MUTE:L.AUDIO_UNMUTE})),K?null:d().createElement(o.View,{testID:`cc-user${Lt}-video-icon`,style:V.users_icons_container},d().createElement(o.Image,{style:[V.user_item_icons,{tintColor:Vt.isVideoMuted?At.red:At.green}],source:Vt.isVideoMuted?L.VIDEO_MUTE:L.VIDEO_UNMUTE})),Vt.status==="interrupted"?d().createElement(o.View,{style:V.users_icons_container},d().createElement(o.Image,{style:V.user_item_icons,source:L.ALERT})):null,at?d().createElement(o.View,{testID:`cc-user${Lt}-pin-icon`,style:V.users_icons_container},d().createElement(o.Image,{style:V.user_item_icons,source:L.PIN})):null,d().createElement(o.TouchableOpacity,{testID:`cc-user${Lt}-opt`,style:V.users_icons_container,onPress:St=>{var tr;const wt=St.nativeEvent.pageY,dn=St.nativeEvent.locationY;(tr=X.current)==null||tr.measure((En,Or,qn,Rn,cr,Nn)=>{ce.current=wt+dn-Nn,de.current=Lt,x(Fn=>!Fn)})}},d().createElement(o.Image,{source:L.MENU,style:[{height:20,width:20}]}))))))}},onScroll:()=>{if(b){const mt=o.LayoutAnimation.create(300,o.LayoutAnimation.Types.easeOut,o.LayoutAnimation.Properties.scaleXY);o.LayoutAnimation.configureNext(mt),x(!1)}},ListHeaderComponent:()=>d().createElement(o.View,{style:V.user_item_pinned,ref:it,onLayout:()=>{var mt;(mt=it.current)==null||mt.measure((Vt,Lt,at,gn,St,wt)=>{ht.current=wt})}},d().createElement(o.TouchableOpacity,{testID:"cc-user-list-close",touchSoundDisabled:!0,style:V.user_list_close_container,onPress:()=>{o.LayoutAnimation.configureNext({duration:100,create:{type:"linear",property:"scaleY"},update:{type:"linear",property:"scaleY"},delete:{type:"linear",property:"opacity"}}),Me({type:Xe,payload:!1}),x(!1)}},d().createElement(o.Image,{style:V.close_icon,source:L.CLEAR})),d().createElement(o.Text,{style:{fontSize:22,fontWeight:"700",color:"#fff"}},"User List")),ListFooterComponent:()=>d().createElement(o.TouchableOpacity,{activeOpacity:1,onPress:()=>{b&&x(!1)},style:{height:80}})}),(F,X)=>F.refresh==X.refresh),Fe=d().memo(function(){var St,wt,dn,tr;const{globalState:F,settings:X,jitsiManager:b,users:x,dispatch:H}=Ft(),[K,de]=(0,E.useState)(!0),[ce,Me]=(0,E.useState)(!1),it=(0,E.useRef)(0),lt=(0,E.useRef)(0),Rt=(0,E.useRef)(null),ht=(0,E.useRef)(0),mt=(0,E.useRef)(null),Vt=F.pinnedUserId,Lt=F.recordId,at=(0,E.useCallback)(()=>{H({type:I,payload:""})},[]),gn=(0,E.useCallback)(En=>{H({type:I,payload:En.id})},[]);return(0,E.useEffect)(()=>{se&&clearTimeout(se),se=setTimeout(()=>{de(En=>!En)},500)},[x,Vt,Lt,ce]),F.isParticipantsModelVisible?d().createElement(o.View,{style:V.user_list_container,ref:En=>{mt.current=En}},d().createElement(d().Fragment,null,d().createElement(Ie,{pinnedUserId:Vt,itemsRef:mt,isMenuVisible:ce,setIsMenuVisible:Me,recorderId:Lt,isAudioOnly:X.isAudioOnly,selectedIndexRef:ht,topRef:it,dispatch:H,headerRef:Rt,refresh:K,users:x,screenOffsetRef:lt}),ce&&d().createElement(o.View,{style:[V.menu_container,{top:it.current}]},d().createElement(o.TouchableOpacity,{testID:"cc-user-pin",onPress:()=>{var En;((En=x[ht.current])==null?void 0:En.id)===Vt?at():gn(x[ht.current]),Me(!1)},style:V.menu_list},d().createElement(o.Image,{style:V.menu_icon,source:L.PIN}),d().createElement(o.Text,{style:V.menu_text},((St=x[ht.current])==null?void 0:St.id)===Vt?"Unpin":"Pin")),(wt=x[ht.current])!=null&&wt.isAudioMuted||((dn=x[ht.current])==null?void 0:dn.id)===((tr=x[0])==null?void 0:tr.id)?null:d().createElement(o.TouchableOpacity,{testID:"cc-user-mute",onPress:()=>{b.current.muteParticipant(x[ht.current]),Me(!1)},style:V.menu_list},d().createElement(o.Image,{style:V.menu_icon,source:L.AUDIO_MUTE}),d().createElement(o.Text,{style:V.menu_text},"Mute"))))):null}),ct=()=>d().createElement(o.View,{style:vt.container},d().createElement(o.View,{style:vt.dot}),d().createElement(o.Text,{style:vt.text},"REC")),vt=o.StyleSheet.create({text:{fontSize:12,fontWeight:"800",color:At.blackLightXX},container:{backgroundColor:"white",borderRadius:5,position:"absolute",alignItems:"center",top:10,left:10,padding:5,flexDirection:"row",borderWidth:1,borderColor:At.palette.black},dot:{backgroundColor:"red",height:10,width:10,borderRadius:10,marginRight:5}}),ut=o.StyleSheet.create({buttonIcon:{width:25,height:25},buttonContainer:{width:58,height:58,margin:1,backgroundColor:At.blackLightXXX,borderRadius:30,alignItems:"center",justifyContent:"center"},touchableContainerPortrait:{width:"100%",alignItems:"center",flexDirection:"column"},touchableContainerLandScape:{width:"100%",alignItems:"center",flexDirection:"row"},bottomButtonContainerPortrait:{position:"absolute",bottom:0,left:0,right:0,backgroundColor:At.blackLight,width:"100%",borderTopEndRadius:20,borderTopStartRadius:20,justifyContent:"flex-start",alignItems:"center"},bottomButtonContainerLandscape:{position:"absolute",bottom:0,right:0,top:0,backgroundColor:At.blackLight,flexDirection:"row",alignItems:"center",borderTopStartRadius:20,borderBottomStartRadius:20},bottomButtonArrow:{alignSelf:"center",height:40,width:60,opacity:.9},bottomArrowContainerPortrait:{height:22,width:70},bottomArrowContainerLandScape:{width:32},bottomButtonPlaceHolderPortrait:{height:102},bottomButtonPlaceHolderLandscape:{width:102},userListHeaderContainer:{marginTop:10,alignSelf:"flex-start"},userListHeader:{margin:10,fontSize:18,fontWeight:"bold",color:At.palette.white},buttonListContainerPortrait:{},buttonListContainerLandscape:{},buttonListPortrait:{alignItems:"center"},buttonListLandscape:{height:"100%",flexWrap:"wrap",justifyContent:"center"},buttonWrapperPortrait:{marginTop:10},buttonWrapperLandscape:{marginRight:10}});class ye{static e(X,b,x={}){}static d(X,b,x={}){}}const rn="AudioButton";function or(){const{users:F,jitsiManager:X}=Ft(),b=(0,E.useRef)(0);return d().createElement(o.TouchableOpacity,{testID:"cc-audio",style:ut.buttonContainer,touchSoundDisabled:!0,onPress:()=>{try{new Date().getTime()-b.current>300&&(ye.d(rn,"[onButtonPress]"),X.current.toggleAudioButton(),b.current=new Date().getTime())}catch(x){ye.d(rn,"[onButtonPress]",x)}F[0].audioTrack}},d().createElement(o.Image,{style:ut.buttonIcon,source:F[0].isAudioMuted?L.AUDIO_MUTE:L.AUDIO_UNMUTE}))}const dr="AudioModeButton";function hr(){const{globalState:F,dispatch:X}=Ft();return d().createElement(o.TouchableOpacity,{testID:"cc-audio-mode",onPress:()=>{try{X({type:De,payload:!0}),ye.d(dr,"[onButtonPress]")}catch(b){ye.d(dr,"[onButtonPress]",b)}},style:ut.buttonContainer},d().createElement(o.Image,{style:ut.buttonIcon,source:(()=>{switch(F.selectedAudioMode){case me.SPEAKER:return L.AUDIO_MODE_SPEAKER;case me.BLUETOOTH:return L.AUDIO_MODE_BLUETOOTH;case me.EARPIECE:return L.AUDIO_MODE_EARPIECE;case me.HEADPHONES:return L.AUDIO_MODE_HEADPHONE;default:return L.AUDIO_MODE_SPEAKER}})()}))}const un=new Proxy({mode:"DEFAULT",isPresenter:!1},{get:(F,X,b)=>X==="isPresenter"?F.mode===Y?!!F.isPresenter:void 0:Reflect.get(F,X,b)}),yt="EndCallButton";function Zt(){const{jitsiManager:F,globalRef:X,nativeManager:b,dispatch:x,users:H}=Ft();return d().createElement(o.TouchableOpacity,{testID:"cc-end-call",onPress:()=>{var K;if(un.isPresenter===!0&&H.length>1)x({type:Ze,payload:!0});else{try{ye.d(yt,"[onHangUpCalled]"),X.current.callEnded=!0,(K=b.current)!=null&&K.onCallEndButtonPressed&&b.current.onCallEndButtonPressed()}catch(de){ye.d(yt,"[onHangUpCalled]",de)}try{F.current.leave()}catch(de){ye.d(yt,"[onHangUpCalled]",de)}}},style:[ut.buttonContainer,{backgroundColor:At.redLight}]},d().createElement(o.Image,{style:ut.buttonIcon,source:L.END_CALL}))}const ae="RecordingButton";function te(){const{globalState:F,jitsiManager:X}=Ft();return d().createElement(o.TouchableOpacity,{testID:"cc-rec",style:ut.buttonContainer,touchSoundDisabled:!0,onPress:()=>{try{ye.d(ae,"[onButtonPress]"),F.isRecording?X.current.stopRecording():X.current.startRecording()}catch(b){ye.d(ae,"[onButtonPress]",b)}}},d().createElement(o.View,{style:{width:je,height:je,backgroundColor:At.palette.red,borderRadius:F.isRecording?0:je}}))}const Ee="SwitchCameraButton";function ve(){const{jitsiManager:F}=Ft();return d().createElement(o.TouchableOpacity,{testID:"cc-switch-camera",style:ut.buttonContainer,touchSoundDisabled:!0,onPress:()=>{try{ye.d(Ee,"[onButtonPress]"),ye.d(Ee,"[onButtonPress]"),F.current.flipCamera()}catch(X){ye.d(Ee,"[onButtonPress]",X)}}},d().createElement(o.Image,{style:ut.buttonIcon,source:L.SWITCH_CAMERA}))}const et="SwitchToVideoCallButton";function ze(){const{jitsiManager:F}=Ft();return d().createElement(o.TouchableOpacity,{testID:"cc-switch-video",onPress:()=>{try{ye.d(et,"[onButtonPressed]"),F.current.requestingToSwitchToVideoCall()}catch(X){ye.d(et,"[onButtonPressed]",X)}},style:[ut.buttonContainer]},d().createElement(o.Image,{style:ut.buttonIcon,source:L.SWITCH_TO_VIDEO_CALL}))}const Nt="VideoButton";function Et(){const{users:F,jitsiManager:X}=Ft();return d().createElement(o.TouchableOpacity,{testID:"cc-video",style:ut.buttonContainer,touchSoundDisabled:!0,onPress:()=>{try{ye.d(Nt,"[onButtonPress]"),X.current.toggleVideoButton()}catch(b){ye.d(Nt,"[onButtonPress]",b)}}},d().createElement(o.Image,{style:ut.buttonIcon,source:F[0].isVideoMuted?L.VIDEO_MUTE:L.VIDEO_UNMUTE}))}const Gt=102,Ot=4;function sn(){const{globalState:F,settings:X,users:b}=Ft(),x=F.isPortrait?F.dimension.height:F.dimension.width;if(F.inPIPMode||X.enableDefaultLayout===!1)return null;const H=(0,E.useMemo)(()=>(Math.min(F.dimension.height,F.dimension.width)-240)/(2*(Ot+3)),[F.dimension.width]);(0,E.useEffect)(()=>{K.setValue({x:0,y:0}),de.setValue(x-Gt)},[F.isPortrait,x]);const K=(0,E.useRef)(new o.Animated.ValueXY({x:0,y:0})).current,de=(0,E.useRef)(new o.Animated.Value(x-Gt)).current,ce=(0,E.useCallback)((lt,Rt)=>{const ht=F.isPortrait?Rt.dy:Rt.dx;o.LayoutAnimation.configureNext({duration:300,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}),K.setValue({x:0,y:0}),ht>0?de.setValue(x-Gt):de.setValue(x-Gt-70)},[F.isPortrait,K,x]),Me=o.PanResponder.create({onStartShouldSetPanResponder:(lt,Rt)=>!(Rt.dx===0&&Rt.dy===0),onPanResponderMove:()=>o.Animated.event([null,{[F.isPortrait?"dy":"dx"]:K.y}],{useNativeDriver:!1}),onMoveShouldSetPanResponder:(lt,Rt)=>{const{dx:ht,dy:mt}=Rt;return ht>5||ht<-5||mt>5||mt<-5},onPanResponderRelease:ce});if(F.inPIPMode)return null;const it=o.Animated.add(de,K.y).interpolate({inputRange:[x-Gt-70,x-Gt],outputRange:F.isPortrait?["0deg","180deg"]:["180deg","0deg"],extrapolate:"clamp"});return d().createElement(d().Fragment,null,d().createElement(o.View,{style:F.isPortrait?ut.bottomButtonPlaceHolderPortrait:ut.bottomButtonPlaceHolderLandscape}),d().createElement(o.Animated.View,fn(Ht({},Me.panHandlers),{style:F.isPortrait?[ut.bottomButtonContainerPortrait,{top:o.Animated.add(de,K.y.interpolate({inputRange:[-1e3,0,1e3],outputRange:[-1e3,0,1e3],extrapolate:"clamp"}))}]:[ut.bottomButtonContainerLandscape,{left:o.Animated.add(de,K.y.interpolate({inputRange:[-1e3,0,1e3],outputRange:[-1e3,0,1e3],extrapolate:"clamp"}))}]}),d().createElement(o.TouchableWithoutFeedback,null,d().createElement(o.View,{style:F.isPortrait?ut.touchableContainerPortrait:ut.touchableContainerLandScape},d().createElement(o.View,{style:F.isPortrait?ut.bottomArrowContainerPortrait:ut.bottomArrowContainerLandScape},d().createElement(o.Animated.Image,{style:[ut.bottomButtonArrow,{transform:[F.isPortrait?{rotateX:it}:{rotateY:it},{rotate:F.isPortrait?"0deg":"90deg"}]}],resizeMode:"stretch",source:L.ARROW})),(()=>{const lt=[],Rt=X.hideEndCallButton?null:d().createElement(Zt,null),ht=!F.conferenceJoined||X.hidePauseVideoButton||X.isAudioOnly?null:d().createElement(Et,null),mt=!F.conferenceJoined||X.hideAudioMuteButton?null:d().createElement(or,null),Vt=!F.conferenceJoined||X.hideVideoSwitchButton||X.isAudioOnly?null:d().createElement(ve,null),Lt=!F.conferenceJoined||X.hideAudioModeButton?null:d().createElement(hr,null),at=F.conferenceJoined&&X.showRecordingButton?d().createElement(te,null):null,gn=F.conferenceJoined&&X.showSwitchToVideoCallButton&&X.isAudioOnly&&b.length-(F.noOfScreenShareUser||0)==2?d().createElement(ze,null):null;return Rt&&lt.push(Rt),Lt&&lt.push(Lt),un.isPresenter!==!1&&(gn&&lt.push(gn),ht&&lt.push(ht),mt&&lt.push(mt),Vt&&lt.push(Vt),at&&lt.push(at)),d().createElement(o.View,{style:F.isPortrait?ut.buttonListContainerPortrait:ut.buttonListContainerLandscape},d().createElement(o.FlatList,{key:F.isPortrait.toString(),scrollEnabled:!1,contentContainerStyle:F.isPortrait?ut.buttonListPortrait:ut.buttonListLandscape,showsVerticalScrollIndicator:!1,numColumns:F.isPortrait?Ot:1,data:lt,renderItem:({item:St})=>d().createElement(o.View,{style:F.isPortrait?[ut.buttonWrapperPortrait,{marginHorizontal:H}]:[ut.buttonWrapperLandscape,{marginVertical:H}]},St)}))})()))))}class Dn extends d().Component{constructor(b){super(b);It(this,"fadeInAnimation",()=>{o.Animated.timing(this.state.fadeAnim,{toValue:0,duration:0,useNativeDriver:!0}).start(()=>{o.Animated.timing(this.state.fadeAnim,{toValue:1,duration:this.props.duration,delay:10,useNativeDriver:!0}).start()})});this.state={activeIndex:-1,fadeAnim:new o.Animated.Value(0),animations:[]},this.animations=[{name:"zoomIn",animation:{scale:this.state.fadeAnim.interpolate({inputRange:[0,1],outputRange:[0,1]})}},{name:"pulse",animation:{scale:this.state.fadeAnim.interpolate({inputRange:[0,.4,.7,1],outputRange:[.7,1,1.3,1]})}},{name:"shake",animation:{scale:this.state.fadeAnim.interpolate({inputRange:[0,.2,.4,.6,.8,1],outputRange:[.8,1.2,.8,1.2,.8,1]})}},{name:"rotate",animation:{rotate:this.state.fadeAnim.interpolate({inputRange:[0,1],outputRange:["0deg","360deg"]})}}],this._changeRadio=this._changeRadio.bind(this),this._checkAnimatons=this._checkAnimatons.bind(this)}componentDidMount(){this._checkAnimatons(),this.fadeInAnimation()}componentDidUpdate(b){if(this.state.activeIndex===-1&&this.props.initial>0){const x=this.props.initial-1;this._changeRadio(this.props.data[x],x)}if(this.props.initial!==b.initial){const x=this.props.initial-1;this._changeRadio(this.props.data[x],x)}this.props.animationTypes!==b.animationTypes&&this._checkAnimatons()}_checkAnimatons(){const{animationTypes:b}=this.props;this.setState({animations:[]});const x=[];b&&b.map(H=>{const K=this.animations.find(de=>de.name===H);K&&x.push(K.animation)}),this.setState({animations:x})}_changeRadio(b,x){this.setState({activeIndex:x}),x!==this.state.activeIndex&&this.fadeInAnimation(),this.props.selectedBtn(b)}render(){const{boxStyle:b,style:x,textStyle:H,data:K,activeColor:de,deactiveColor:ce,boxActiveBgColor:Me,boxDeactiveBgColor:it,box:lt,textColor:Rt}=this.props;return d().createElement(o.View,{style:x},K.map((ht,mt)=>d().createElement(o.TouchableOpacity,{key:mt,style:[lt?ir.productBox:ir.productBoxLess,lt&&{backgroundColor:ht.selected?Me:it,borderColor:ht.selected?de:ce},b,{borderWidth:ht.selected?1:0}],activeOpacity:.9,onPress:()=>this._changeRadio(ht,mt)},d().createElement(o.View,{style:ir.leftProductBox},this.props.renderIcon(ht.type)),d().createElement(o.View,{style:[ir.centerProductBox]},d().createElement(o.Text,{style:[{color:Rt},H]},ht.type===me.BLUETOOTH&&ht.name?ht.name:ht.type)))))}}It(Dn,"defaultProps",{style:{},boxStyle:{},textStyle:{},initial:-1,circleSize:18,duration:500,data:[],animationTypes:[],selectedBtn:()=>{},activeColor:"#fff",deactiveColor:"#e2e2e2",boxActiveBgColor:"#00000000",boxDeactiveBgColor:"#00000000",textColor:"#fff",box:!0});const ir=o.StyleSheet.create({productBox:{flexDirection:"row",borderRadius:7,borderWidth:1,paddingHorizontal:10,paddingVertical:15,marginTop:10},productBoxLess:{flexDirection:"row",marginTop:10},leftProductBox:{flex:1,alignItems:"center",justifyContent:"center"},centerProductBox:{flex:6,justifyContent:"flex-start",alignItems:"center",paddingHorizontal:4,flexDirection:"row"},circle:{borderWidth:1,borderRadius:1e4,alignItems:"center",justifyContent:"center"},icon:{borderWidth:1,borderRadius:1e4,alignItems:"center",justifyContent:"center"},circleFill:{borderWidth:1,borderRadius:1e4}}),Xn=Dn,{AudioMode:fr}=o.NativeModules;function qe(){const{globalState:F,dispatch:X}=Ft(),b=lt=>{switch(lt){case me.SPEAKER:return x();case me.BLUETOOTH:return de();case me.HEADPHONES:return K();case me.EARPIECE:return H();default:return x()}},x=()=>d().createElement(o.Image,{style:ot.lt_control_icon,source:L.AUDIO_MODE_SPEAKER}),H=()=>d().createElement(o.Image,{style:ot.lt_control_icon,source:L.AUDIO_MODE_EARPIECE}),K=()=>d().createElement(o.Image,{style:ot.lt_control_icon,source:L.AUDIO_MODE_HEADPHONE}),de=()=>d().createElement(o.Image,{style:ot.lt_control_icon,source:L.AUDIO_MODE_BLUETOOTH}),ce=()=>{X({type:De,payload:!1})},Me=lt=>{ce(),fr.setAudioDevice(lt.uid||lt.type)},it=(0,E.useCallback)(()=>d().createElement(Xn,{data:F.audioModes,renderIcon:b,selectedBtn:Me}),[F.audioModes]);return d().createElement(o.TouchableOpacity,{onPress:ce,style:ot.container},d().createElement(o.View,{style:ot.listContainer},it()))}const ot=o.StyleSheet.create({lt_control_icon:{width:25,height:25},lt_control_view:{width:55,height:55,margin:1,backgroundColor:At.lightGrey,borderRadius:50,alignItems:"center",justifyContent:"center"},container:{position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:At.blackTransparent,elevation:10,justifyContent:"flex-end",alignItems:"center"},listContainer:{backgroundColor:At.blackLight,padding:10,borderTopEndRadius:8,borderTopStartRadius:8,width:"100%"}}),Ct={REQUEST_TO_SWITCH_TO_VIDEO_CALL:"wants to switch to video call",CALL_CONVERTED_TO_VIDEO_CALL:"This call was converted into a video call do you wish to continue?",ACCEPT_REQUEST_TO_SWITCH_TO_VIDEO_CALL:"Accept",REJECT_REQUEST_TO_SWITCH_TO_VIDEO_CALL:"Reject",SWITCH_TO_VIDEO_CALL_REQUESTED:"Waiting for other user's response",LEAVE:"Leave"},Mt=o.StyleSheet.create({model:{position:"absolute",bottom:"0%",top:"0%",left:"0%",right:"0%",backgroundColor:At.blackTransparent,elevation:10,zIndex:10,justifyContent:"center",alignItems:"center"},container:{backgroundColor:At.palette.white,borderRadius:8,marginHorizontal:"5%"},headerText:{fontSize:18,textAlign:"center",padding:16,color:At.palette.black},buttonContainer:{flexDirection:"row",justifyContent:"space-around"},button:{width:"50%",padding:12,justifyContent:"center",alignItems:"center",elevation:1},buttonText:{color:At.palette.black}}),Tn=()=>{const{globalState:F,jitsiManager:X}=Ft();return F.showSwitchToVideoCallModel?F.switchToVideoRequestModelType===Qe?d().createElement(o.View,{style:Mt.model},d().createElement(o.ActivityIndicator,null),d().createElement(o.Text,{style:Mt.headerText},Ct.SWITCH_TO_VIDEO_CALL_REQUESTED)):d().createElement(o.View,{style:Mt.model},d().createElement(o.View,{style:Mt.container},d().createElement(o.Text,{style:Mt.headerText},F.switchToVideoRequestModelType===ft?`${F.switchToVideoCallRequestInitiator.name} ${Ct.REQUEST_TO_SWITCH_TO_VIDEO_CALL}`:Ct.CALL_CONVERTED_TO_VIDEO_CALL),d().createElement(o.View,{style:Mt.buttonContainer},d().createElement(o.TouchableOpacity,{onPress:()=>{X.current.onSwitchToVideoCallResponse(!0)},touchSoundDisabled:!0,style:Mt.button},d().createElement(o.Text,{style:Mt.buttonText},Ct.ACCEPT_REQUEST_TO_SWITCH_TO_VIDEO_CALL)),d().createElement(o.TouchableOpacity,{onPress:()=>{F.switchToVideoRequestModelType===ft?X.current.onSwitchToVideoCallResponse(!1):X.current.leave()},touchSoundDisabled:!0,style:Mt.button},d().createElement(o.Text,{style:Mt.buttonText},F.switchToVideoRequestModelType===ft?Ct.REJECT_REQUEST_TO_SWITCH_TO_VIDEO_CALL:Ct.LEAVE))))):null},ln=o.StyleSheet.create({main_video_avatar_main_view:{height:"100%",width:"100%",alignItems:"center",justifyContent:"center",flexDirection:"column"},zero_height_width:{height:"0%",width:"0%"},full_height_width:{height:"100%",width:"100%"}});var Oe=__nested_webpack_require_965807__(9941);const tt=F=>fn(Ht({},F),{audioTrack:null,videoTrack:null}),Tt=F=>{let X=0;for(let x=0;x<F.length;x++)X=F.charCodeAt(x)+((X<<5)-X);let b="#";for(let x=0;x<3;x++)b+=("00"+(X>>8*x&240).toString(16)).substr(-2);return b+""},jt=()=>{const{globalState:{dominantSpeakerId:F,pinnedUserId:X},users:b}=Ft();return d().createElement(o.View,{style:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:"#000"}},(()=>{var H;let x=null;return b.length==1?x=b[0]:(b==null?void 0:b.length)==2?x=b[1]:(X?x=b.find(K=>K.id===X):F&&(x=b.find(K=>K.id===F)),x||(x=b[1])),x?x.videoTrack&&!x.isVideoMuted?d().createElement(o.View,{style:{flex:1,height:"100%",width:"100%"}},d().createElement(Oe.RTCView,{key:x==null?void 0:x.id,objectFit:"contain",streamURL:x==null?void 0:x.videoTrack.getOriginalStream().toURL(),style:ln.full_height_width,zOrder:-10}),d().createElement(o.Text,{numberOfLines:1,ellipsizeMode:"tail",style:{color:At.palette.white,fontSize:10,fontWeight:"bold",marginTop:6,marginHorizontal:5,position:"absolute",top:5,left:5}},x.name)):d().createElement(o.View,{style:ln.main_video_avatar_main_view},d().createElement(Q,{backgroundColor:Tt(x==null?void 0:x.name),textColor:At.palette.white,size:60,avatar:x.avatar},x.name),d().createElement(o.Text,{numberOfLines:1,ellipsizeMode:"tail",style:{color:At.palette.white,fontSize:10,fontWeight:"bold",marginTop:6,marginHorizontal:5}},x.name),d().createElement(Oe.RTCView,{key:x.id,objectFit:"cover",streamURL:(H=x.audioTrack)==null?void 0:H.getOriginalStream().toURL(),style:ln.zero_height_width,zOrder:0})):null})())},{height:en,width:bn}=o.Dimensions.get("window");let _n=20,an=!1,ar=!1,Hn=!1,$e=!1,mr=!1,Pr=!1;o.Platform.OS!=="ios"||o.Platform.isPad||o.Platform.isTVOS||(bn===375&&en===812?(mr=!0,an=!0,_n=44):bn===414&&en===896?(mr=!0,ar=!0,_n=44):bn===390&&en===844?(mr=!0,Hn=!0,_n=47):bn===428&&en===926?(mr=!0,$e=!0,_n=47):(bn===430&&en===932||bn===393&&en===852)&&(Pr=!0,_n=49));function cn(F){return o.Platform.select({ios:_n,android:F?0:o.StatusBar.currentHeight,default:0})}function Mn({onButtonPress:F,videoFit:X}){return d().createElement(o.TouchableOpacity,{testID:"cc-zoom",touchSoundDisabled:!0,onPress:F,style:{paddingHorizontal:2}},d().createElement(o.Image,{style:{width:25,height:25},source:X==="cover"?L.ZOOM_OUT:L.ZOOM_IN}))}function Zn({userLength:F,onButtonPress:X}){const{dispatch:b,globalState:{isParticipantsModelVisible:x}}=Ft();return d().createElement(d().Fragment,null,d().createElement(o.TouchableOpacity,{testID:"cc-user-list",disabled:un.isPresenter===!1,touchSoundDisabled:!0,onPress:()=>{X(),b({type:Xe,payload:!x})},style:{paddingHorizontal:2}},d().createElement(o.Image,{style:{width:25,height:22},source:L.PEOPLE}),d().createElement(o.View,{style:{backgroundColor:"#1E79E7",height:15,minWidth:15,borderRadius:15,position:"absolute",right:-5,top:-10,justifyContent:"center",alignItems:"center"}},d().createElement(o.Text,{style:{color:"#fff",fontSize:10}},F))))}const pn=150,An=100,br=o.Platform.OS==="android"?100:150;o.Platform.OS==="android"&&o.UIManager.setLayoutAnimationEnabledExperimental&&o.UIManager.setLayoutAnimationEnabledExperimental(!0);const tn=function(){const{globalState:F,users:X,settings:b,setSettings:x,settings:{avatarMode:H,videoSettings:{videoFit:K,nameLabel:de,userListButton:ce,zoomButton:Me}}}=Ft(),it=cn(!1),lt=(0,E.useRef)(new o.Animated.ValueXY).current,Rt=(0,E.useRef)({x:0,y:0}),ht=(0,E.useRef)(0),mt=(0,E.useRef)(0),Vt=(0,E.useRef)(F.dimension.width-60),Lt=(0,E.useRef)(F.dimension.height-85-br),at=(0,E.useMemo)(()=>(Vt.current=F.dimension.width-60-(F.isPortrait?0:br),Lt.current=F.dimension.height-85-(F.isPortrait?br:0),o.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:(wt,dn)=>!0,onPanResponderGrant:(wt,dn)=>{lt.setOffset({x:lt.x._value,y:lt.y._value}),lt.setValue({x:0,y:0})},onPanResponderMove:(wt,dn)=>{b.enableDraggableVideoTile!==!1&&Rt.current.x<Vt.current&&Rt.current.y<Lt.current&&(lt.setValue({x:dn.dx,y:dn.dy}),ht.current=dn.moveX,mt.current=dn.moveY)},onPanResponderRelease:(wt,dn)=>{dn.dx===0&&dn.dy===0&&dn.vx===0&&dn.vy===0&&b.enableVideoTileClick&&St(tr=>!tr),lt.flattenOffset(),(Rt.current.x>Vt.current||Rt.current.y>Lt.current)&&lt.setValue({x:ht.current-100,y:mt.current-100})}})),[F.dimension.width]);(0,E.useEffect)(()=>{lt.addListener(wt=>{Rt.current={x:wt.x,y:wt.y}})},[]),(0,E.useEffect)(()=>{lt.setValue({x:Vt.current-50,y:10})},[F.dimension.width]);const[gn,St]=(0,E.useState)(!1);return d().createElement(o.View,{style:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:"#000"}},(()=>{var Rn,cr;let wt=null;if(gn||X.length==1?wt=X[0]:(X==null?void 0:X.length)==2?wt=X[1]:(F.pinnedUserId?wt=X.find(Nn=>Nn.id===F.pinnedUserId):F.dominantSpeakerId&&(wt=X.find(Nn=>Nn.id===F.dominantSpeakerId)),wt||(wt=X[1])),!wt)return!1;const dn=[],tr=()=>d().createElement(Zn,{userLength:X.length,onButtonPress:()=>{o.LayoutAnimation.configureNext(o.LayoutAnimation.Presets.linear),o.LayoutAnimation.configureNext({duration:100,create:{type:"linear",property:"scaleY"},update:{type:"linear",property:"scaleY"},delete:{type:"linear",property:"opacity"}})}}),En=()=>d().createElement(o.View,{style:{paddingRight:5,flexDirection:"row"}},d().createElement(o.Text,{style:{color:At.palette.white,fontSize:18,fontWeight:"bold"}},wt.name),wt.isAudioMuted?d().createElement(o.View,{style:{width:10,height:10,marginLeft:5,borderRadius:20,alignItems:"center",justifyContent:"center"}},d().createElement(o.Image,{style:{width:15,height:15},source:L.AUDIO_MUTE})):null,wt.isVideoMuted&&!b.isAudioOnly?d().createElement(o.View,{style:{width:10,height:10,marginLeft:5,borderRadius:20,alignItems:"center",justifyContent:"center"}},d().createElement(o.Image,{style:{width:15,height:15},source:L.VIDEO_MUTE})):null),Or=()=>d().createElement(Mn,{onButtonPress:()=>{o.LayoutAnimation.configureNext(o.LayoutAnimation.Presets.linear),o.LayoutAnimation.configureNext({duration:200,create:{type:"linear",property:"scaleY"},update:{type:"linear",property:"scaleY"},delete:{type:"linear",property:"opacity"}}),x({type:v,payload:K==="cover"?"contain":"cover"})},videoFit:K}),qn=()=>d().createElement(d().Fragment,null,d().createElement(o.View,{style:[Bn.videoItemContainer,{top:0}]},d().createElement(o.View,{style:{flex:1}},d().createElement(o.View,{style:[Bn.videoInnerContainer,{top:0,left:0}]},(de==null?void 0:de.visibility)&&de.position==="top-left"&&En(),(ce==null?void 0:ce.visibility)&&ce.position==="top-left"&&X.length>2&&tr(),(Me==null?void 0:Me.visibility)&&Me.position==="top-left"&&Or()),d().createElement(o.View,{style:[Bn.videoInnerContainer,{top:0,right:0}]},(de==null?void 0:de.visibility)&&de.position==="top-right"&&En(),(ce==null?void 0:ce.visibility)&&ce.position==="top-right"&&X.length>2&&tr(),(Me==null?void 0:Me.visibility)&&Me.position==="top-right"&&Or()))),d().createElement(o.View,{style:[Bn.videoItemContainer,{bottom:0}]},d().createElement(o.View,{style:{flex:1}},d().createElement(o.View,{style:[Bn.videoInnerContainer,{bottom:0,left:0}]},(de==null?void 0:de.visibility)&&de.position==="bottom-left"&&En(),(ce==null?void 0:ce.visibility)&&ce.position==="bottom-left"&&X.length>2&&tr(),(Me==null?void 0:Me.visibility)&&Me.position==="bottom-left"&&Or()),d().createElement(o.View,{style:[Bn.videoInnerContainer,{bottom:0,right:0}]},(de==null?void 0:de.visibility)&&de.position==="bottom-right"&&En(),(ce==null?void 0:ce.visibility)&&ce.position==="bottom-right"&&X.length>2&&tr(),(Me==null?void 0:Me.visibility)&&Me.position==="bottom-right"&&Or()))));return X.length>2&&X.map((Nn,Fn)=>{var Be;Fn!=0&&Nn.id!=wt.id&&!Nn.isAudioMuted&&Nn.audioTrack&&dn.push(d().createElement(Oe.RTCView,{key:Nn.id,objectFit:"cover",streamURL:(Be=Nn.audioTrack)==null?void 0:Be.getOriginalStream().toURL(),style:Bn.zero_height_width,zOrder:-10}))}),wt.videoTrack&&!wt.isVideoMuted?d().createElement(o.View,{style:{flex:1,height:"100%",width:"100%"}},dn!=null&&dn.length?dn.map(Nn=>d().createElement(d().Fragment,null,Nn)):null,d().createElement(Oe.RTCView,{key:wt==null?void 0:wt.id,objectFit:K==="cover"?"cover":"contain",streamURL:wt==null?void 0:wt.videoTrack.getOriginalStream().toURL(),style:Bn.full_height_width,zOrder:-10,mirror:X[0].id===wt.id&&((Rn=wt==null?void 0:wt.videoTrack)==null?void 0:Rn._facingMode)!=="environment"}),qn()):d().createElement(o.View,{style:Bn.main_video_avatar_main_view},dn!=null&&dn.length?dn.map(Nn=>d().createElement(d().Fragment,null,Nn)):null,d().createElement(Q,{backgroundColor:Tt(wt==null?void 0:wt.name),textColor:"#FFF",size:100,avatar:wt.avatar},wt.name),d().createElement(Oe.RTCView,{key:wt.id,objectFit:K==="cover"?"cover":"contain",streamURL:(cr=wt.audioTrack)==null?void 0:cr.getOriginalStream().toURL(),style:Bn.zero_height_width,zOrder:0}),qn())})(),d().createElement(o.Animated.View,Ht({style:{marginTop:it,position:"absolute",top:"0%",left:"0%",height:pn,width:An,transform:[{translateX:lt.x.interpolate({inputRange:[10,Vt.current-50],outputRange:[10,Vt.current-50],extrapolate:"clamp"})},{translateY:lt.y.interpolate({inputRange:[10,Lt.current-pn],outputRange:[10,Lt.current-pn],extrapolate:"clamp"})}]}},at.panHandlers),(()=>{var dn,tr;let wt=null;return gn?(X==null?void 0:X.length)==2?wt=X[1]:(F.pinnedUserId?wt=X.find(En=>En.id===F.pinnedUserId):F.dominantSpeakerId&&(wt=X.find(En=>En.id===F.dominantSpeakerId)),wt||(wt=X[1])):wt=X[0],wt&&X.length!=1?wt.videoTrack&&!wt.isVideoMuted?d().createElement(o.View,{style:{height:"100%",width:"100%",backgroundColor:"#2E2F30",borderRadius:8,overflow:"hidden"}},d().createElement(o.View,{style:{justifyContent:"flex-start",alignItems:"center",position:"absolute",left:5,bottom:5,zIndex:5,elevation:5}},wt.isAudioMuted?d().createElement(o.View,{style:{width:10,height:10,margin:2,borderRadius:20,alignItems:"center",justifyContent:"center"}},d().createElement(o.Image,{style:{width:15,height:15},source:L.AUDIO_MUTE})):null,wt.isVideoMuted&&!b.isAudioOnly?d().createElement(o.View,{style:{width:10,height:10,margin:2,borderRadius:20,alignItems:"center",justifyContent:"center"}},d().createElement(o.Image,{style:{width:15,height:15},source:L.VIDEO_MUTE})):null),d().createElement(Oe.RTCView,{objectFit:"cover",streamURL:wt==null?void 0:wt.videoTrack.getOriginalStream().toURL(),style:Bn.full_height_width,zOrder:1,mirror:X[0].id===wt.id&&((dn=wt==null?void 0:wt.videoTrack)==null?void 0:dn._facingMode)!=="environment"})):d().createElement(o.View,{style:{backgroundColor:"#2E2F30",height:"100%",width:"100%",borderRadius:8,justifyContent:"center",alignItems:"center"}},d().createElement(o.View,{style:{justifyContent:"flex-start",alignItems:"center",position:"absolute",right:5,bottom:5,zIndex:5,elevation:5}},wt.isAudioMuted?d().createElement(o.View,{style:{width:10,height:10,margin:2,borderRadius:20,alignItems:"center",justifyContent:"center"}},d().createElement(o.Image,{style:{width:15,height:15},source:L.AUDIO_MUTE})):null),d().createElement(Q,{backgroundColor:"#4d4c4f",textColor:"#FFF",size:30,avatar:wt.avatar},wt.name),d().createElement(o.Text,{numberOfLines:1,ellipsizeMode:"tail",style:[{fontSize:14,color:"#fff",position:"absolute"},H=="fullscreen"?{top:5,left:5}:{bottom:0,left:0}]},wt.name),d().createElement(Oe.RTCView,{key:wt.id,objectFit:"cover",streamURL:(tr=wt.audioTrack)==null?void 0:tr.getOriginalStream().toURL(),style:Bn.zero_height_width,zOrder:-10})):null})()))},Bn=o.StyleSheet.create({main_video_avatar_main_view:{height:"100%",width:"100%",alignItems:"center",justifyContent:"center",flexDirection:"column"},zero_height_width:{height:"0%",width:"0%"},full_height_width:{height:"100%",width:"100%"},videoItemContainer:{position:"absolute",paddingVertical:5,paddingHorizontal:5,width:"100%",height:55},videoInnerContainer:{position:"absolute",flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}),Un=o.StyleSheet.create({lt_control_container:{display:"flex",width:"100%",flexDirection:"row",justifyContent:"center",alignItems:"center",flexWrap:"wrap",backgroundColor:"rgba(46, 47, 48, 0.5)"},container_background:{display:"flex",width:"95%",height:"100%",flexDirection:"row",justifyContent:"center",alignItems:"center",flexWrap:"wrap",zIndex:2,opacity:.5,borderRadius:20,margin:10,backgroundColor:"#2e2f30"},container_people:{display:"flex",width:"80%",height:"60%",marginTop:110,marginRight:10,flexDirection:"column",flexWrap:"wrap",position:"absolute",zIndex:2,right:0,borderRadius:10,backgroundColor:"#FFF"},container_thum_list:{display:"flex",width:"28%",height:"75%",flexDirection:"column",flexWrap:"wrap",position:"absolute",zIndex:2,right:0},item:{padding:15,fontSize:18,height:70,flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},item_pinned:{padding:15,fontSize:18,height:70,flexDirection:"row",justifyContent:"flex-start",alignItems:"center",opacity:.5,backgroundColor:"#f66301"},container:o.Platform.OS==="ios"?{zIndex:2}:{},lt_control_icon:{width:25,height:25},lt_button:{width:55,height:55,margin:5,backgroundColor:At.lightGrey,borderRadius:50,alignItems:"center",justifyContent:"center"},lt_small_button:{width:10,height:10,margin:2,borderRadius:20,alignItems:"center",justifyContent:"center"},lt_small_button_red:{width:35,height:35,margin:5,backgroundColor:"#EB4E3D",borderRadius:20,alignItems:"center",justifyContent:"center"},lt_small_button_blue:{width:35,height:35,margin:5,backgroundColor:"#84aeff",borderRadius:20,alignItems:"center",justifyContent:"center"},button_container:{alignItems:"center",justifyContent:"center",margin:2,opacity:.7},color_white:{color:At.palette.white},full_height_width:{height:"100%",width:"100%"},mainVideoAvatarMainView:{height:"100%",width:"100%",alignItems:"center",justifyContent:"center",flexDirection:"column"},mainVideoName:{fontSize:18,color:At.palette.white,padding:20},zero_height_width:{height:"0%",width:"0%"},main_video_video_track_view:{flex:1,height:"100%",width:"100%",justifyContent:"center",alignItems:"center",overflow:"hidden",zIndex:2,elevation:1},main_video_track_name:{color:At.palette.white,fontSize:18,fontWeight:"bold",position:"absolute",bottom:5,left:5,elevation:10},user_item_pinned:{padding:15,fontSize:18,height:70,marginStart:10,marginRight:10,marginBottom:10,borderRadius:10,flexDirection:"row",justifyContent:"flex-start",alignItems:"center",backgroundColor:"#e5e5e5"},user_item_user_name:{fontSize:18,color:At.palette.black,marginStart:10},user_item_icon_container:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",position:"absolute",right:10},user_item_icons:{width:15,height:15},user_list_network_container:{position:"absolute",bottom:6,right:10},user_list_network_icon:{width:15,height:15},user_list_main_touchable:{zIndex:10,elevation:5},user_list_user_name:{fontSize:18,color:At.palette.white,padding:5,position:"absolute",top:0,left:0,elevation:5,zIndex:5},user_list_icon_container:{justifyContent:"flex-start",alignItems:"center",position:"absolute",left:5,bottom:5,zIndex:5,elevation:5},user_list_avatar_name:{fontSize:18,color:At.palette.white,padding:5},mainContainer:{height:"100%",width:"100%",backgroundColor:At.blackLightXXX},video_container:{flex:1},call_container_portrait:{flex:1},call_container_landscape:{flex:1,height:"100%",flexDirection:"row"},top_bar:{height:25,elevation:1,zIndex:2,backgroundColor:At.blackLightXXX},main_video_container:{flexDirection:"row",flex:1},side_bar:{width:"5%",elevation:1,zIndex:2,backgroundColor:At.blackLightXXX},main_video:{position:"relative",backgroundColor:At.blackLight,flex:1,marginVertical:5,borderRadius:8},reconnetIndicator:{position:"relative"},recordingContainer:{position:"absolute",flexDirection:"row",alignItems:"center",zIndex:10,elevation:10,top:26,left:"6%"},recordingIcon:{height:30,width:30},recordingText:{color:At.palette.white,fontSize:12},videoItemContainer:{position:"absolute",bottom:0,paddingVertical:10,paddingHorizontal:15,width:"100%",height:"100%",flex:1},videoInnerContainer:{position:"absolute",flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}),Cn=o.StyleSheet.create({user_list_container:{position:"absolute",top:0,bottom:0,width:"100%",backgroundColor:At.blackLightXXXT,justifyContent:"center",elevation:10,zIndex:10,paddingTop:25},flat_list_style:{width:"100%"},user_list_close_container:{padding:10,borderRadius:20,backgroundColor:At.whiteAlmost,alignItems:"center",width:40,alignSelf:"center"},close_icon:{width:20,height:20},main_video_container:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},pin_icon_container:{elevation:5,zIndex:5},pin_icon:{width:25,height:25},main_video_avatar_main_view:{height:"100%",width:"100%",alignItems:"center",justifyContent:"center",flexDirection:"column"},main_video_name:{fontSize:18,color:At.palette.white,padding:20},zero_height_width:{height:"0%",width:"0%"},main_video_video_track_view:{flex:1,height:"100%",width:"100%",overflow:"hidden",zIndex:2,elevation:1},main_video_track_name:{color:At.palette.white,fontSize:18,fontWeight:"bold",position:"absolute",bottom:5,left:5,elevation:10,width:"80%"},full_height_width:{height:"100%",width:"100%"},user_item_pinned:{padding:15,fontSize:18,height:70,marginStart:10,marginRight:10,marginBottom:10,borderRadius:10,flexDirection:"row",justifyContent:"flex-start",alignItems:"center",backgroundColor:At.whiteX,zIndex:1,elevation:1},user_item_user_name:{fontSize:18,color:At.palette.black,marginStart:10,width:"60%"},user_item_icon_container:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",position:"absolute",right:10},user_item_icons:{width:20,height:20},user_list_network_container:{position:"absolute",bottom:6,right:10},recorderBadge:{position:"absolute",height:20,width:20,borderRadius:20,backgroundColor:At.redLightX,zIndex:1,alignItems:"center",justifyContent:"center",left:25,top:-10},recorderBadgeText:{fontSize:12,color:At.palette.white},lt_small_button:{},lt_small_button_red:{},lt_small_button_blue:{},user_list_network_icon:{width:15,height:15},user_stats_container:{paddingRight:5,width:200},user_stats_menu:{backgroundColor:"#222",alignSelf:"flex-end",marginBottom:5,borderRadius:5,width:90,paddingHorizontal:10,paddingVertical:5,position:"absolute"},user_stats_menu_list:{flexDirection:"row",alignItems:"center"},user_stats_menu_icon:{width:18,height:18,marginRight:5},user_stats_menu_text:{fontSize:16,color:"#fff",padding:5},user_details_container:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderRadius:5,paddingHorizontal:5},user_details_container_two:{flexDirection:"row",alignItems:"center"},user_detail_icons:{width:20,height:20},videoItemContainer:{position:"absolute",paddingVertical:5,paddingHorizontal:5,width:"100%",height:55,zIndex:9,elevation:1},videoInnerContainer:{position:"absolute",flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}),Lr={lastZoomLevel:1,offsetX:0,offsetY:0,lastX:0,lastY:0,lastMovePinch:!1,originalWidth:null,originalHeight:null};class Gn extends E.Component{constructor(b){var x;super(b);It(this,"contextState",{distanceLeft:0,distanceRight:0,distanceTop:0,distanceBottom:0});It(this,"longPressTimeout",null);It(this,"pinchZoomPosition",null);It(this,"_getBoxDimensions",b=>{const{height:x,width:H}=b.nativeEvent.layout;this.setState({originalWidth:H,originalHeight:x})});It(this,"_handleStartShouldSetPanResponder",(b,x)=>(this._doubleTapCheck(b,x),this.props.onStartShouldSetPanResponder&&this.props.onStartShouldSetPanResponder(b,x,this._getZoomableViewEventObject(),!1),this.props.captureEvent));It(this,"_handleMoveShouldSetPanResponder",(b,x)=>{let H=this.props.zoomEnabled&&(Math.abs(x.dx)>2||Math.abs(x.dy)>2||x.numberActiveTouches===2);return this.props.onMoveShouldSetPanResponder&&(H=this.props.onMoveShouldSetPanResponder(b,x,this._getZoomableViewEventObject(),H)),H});It(this,"_handlePanResponderGrant",(b,x)=>{if(this.isDistanceSet=!1,x.numberActiveTouches===2){const H=Math.abs(b.nativeEvent.touches[0].pageX-b.nativeEvent.touches[1].pageX),K=Math.abs(b.nativeEvent.touches[0].pageY-b.nativeEvent.touches[1].pageY),de=Math.sqrt(H*H+K*K);this.distance=de,this.isDistanceSet=!0}this.props.onLongPress&&(this.longPressTimeout=setTimeout(()=>{this.props.onLongPress&&(this.props.onLongPress(b,x,this._getZoomableViewEventObject()),this.longPressTimeout=null)},this.props.longPressDuration)),this.props.onPanResponderGrant&&this.props.onPanResponderGrant(b,x,this._getZoomableViewEventObject())});It(this,"_handlePanResponderEnd",(b,x)=>{this.setState({lastX:this.state.offsetX,lastY:this.state.offsetY,lastZoomLevel:this.state.zoomLevel}),this.longPressTimeout&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=null),this.props.onPanResponderEnd&&this.props.onPanResponderEnd(b,x,this._getZoomableViewEventObject()),this.gestureType==="pinch"?(this.pinchZoomPosition=null,this.props.onZoomEnd&&this.props.onZoomEnd(b,x,this._getZoomableViewEventObject())):this.gestureType==="shift"&&this.props.onShiftingEnd&&this.props.onShiftingEnd(b,x,this._getZoomableViewEventObject()),this.gestureType=null});It(this,"_handlePanResponderMove",(b,x)=>{if(this.props.onPanResponderMove&&this.props.onPanResponderMove(b,x,this._getZoomableViewEventObject()))return!1;x.numberActiveTouches===2?(this.longPressTimeout&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=null),this.isDistanceSet||this._handlePanResponderGrant(b,x),this.gestureType="pinch",this._handlePinching(b,x)):x.numberActiveTouches===1&&(this.longPressTimeout&&(Math.abs(x.dx)>5||Math.abs(x.dy)>5)&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=null),this.gestureType!=="pinch"&&(this.gestureType="shift"),this._handleMovement(b,x))});It(this,"_handlePinching",(b,x)=>{const{maxZoom:H,minZoom:K,zoomCenteringLevelDistance:de,pinchToZoomInSensitivity:ce,pinchToZoomOutSensitivity:Me}=this.props,it=Math.abs(b.nativeEvent.touches[0].pageX-b.nativeEvent.touches[1].pageX),lt=Math.abs(b.nativeEvent.touches[0].pageY-b.nativeEvent.touches[1].pageY),Rt=Math.sqrt(it*it+lt*lt);if(this.props.onZoomBefore&&this.props.onZoomBefore(b,x,this._getZoomableViewEventObject()))return!1;const ht=Rt/this.distance,mt=ht<1?Me:ce;let Vt=(ht*this.state.lastZoomLevel+this.state.lastZoomLevel*mt)/(mt+1);if(H!==null&&Vt>H&&(Vt=H),Vt<K&&(Vt=K),this.pinchZoomPosition===null){const wt=Math.min(b.nativeEvent.touches[0].pageX,b.nativeEvent.touches[1].pageX)+it/2,dn=Math.min(b.nativeEvent.touches[0].pageY,b.nativeEvent.touches[1].pageY)+lt/2;this.pinchZoomPosition=this._getOffsetAdjustedPosition(wt,dn)}const Lt=Math.abs(Vt-this.state.lastZoomLevel)/de,at=this.state.lastX+Lt*this.pinchZoomPosition.x,gn=this.state.lastY+Lt*this.pinchZoomPosition.y,St=this._bindOffsetValuesToBorders({zoomLevel:Vt,lastMovePinch:!0,offsetX:at,offsetY:gn},null);this.setState(St,()=>{this.props.onZoomAfter&&this.props.onZoomAfter(b,x,this._getZoomableViewEventObject())})});It(this,"_handleMovement",(b,x)=>{const{movementSensibility:H}=this.props;if(this.pinchZoomPosition)return;const K=this.state.lastX+x.dx/this.state.zoomLevel/H,de=this.state.lastY+x.dy/this.state.zoomLevel/H;this._setNewOffsetPosition(K,de)});It(this,"_setNewOffsetPosition",(b,x,H=!0,K=!1,de=null)=>{const{onShiftingBefore:ce,onShiftingAfter:Me}=this.props;if(ce&&ce(null,null,this._getZoomableViewEventObject()))return!1;const it=this._bindOffsetValuesToBorders({lastMovePinch:!1,zoomLevel:this.state.zoomLevel,offsetX:b,offsetY:x},H);K&&(it.lastX=it.offsetX,it.lastY=it.offsetY),this.setState(it,()=>{if(de&&de(),Me&&Me(null,null,this._getZoomableViewEventObject()))return!1})});It(this,"_doubleTapCheck",(b,x)=>{const H=new Date().getTime();this.lastPressHolder&&H-this.lastPressHolder<this.props.doubleTapDelay?(delete this.lastPressHolder,this._handleDoubleTap(b,x)):(this.props.onPress&&this.props.onPress(),this.lastPressHolder=H)});this.gestureHandlers=o.PanResponder.create({onStartShouldSetPanResponder:this._handleStartShouldSetPanResponder,onMoveShouldSetPanResponder:this._handleMoveShouldSetPanResponder,onPanResponderGrant:this._handlePanResponderGrant,onPanResponderMove:this._handlePanResponderMove,onPanResponderRelease:this._handlePanResponderEnd,onPanResponderTerminate:b.onPanResponderTerminate,onPanResponderTerminationRequest:(x=b.onPanResponderTerminationRequest)!=null?x:H=>!1,onShouldBlockNativeResponder:H=>!1}),this.state=fn(Ht({},Lr),{zoomLevel:b.initialZoom,lastZoomLevel:b.initialZoom||Lr.lastZoomLevel,offsetX:b.initialOffsetX,offsetY:b.initialOffsetY}),this.distance=150,this.isDistanceSet=!0,this.gestureType=null,this.contextState={distanceLeft:0,distanceRight:0,distanceTop:0,distanceBottom:0}}componentDidUpdate(b){const{zoomEnabled:x,initialZoom:H}=this.props;b.zoomEnabled&&!x&&this.setState(Ht({zoomLevel:H},Lr))}_getZoomableViewEventObject(b={}){return Ht(Ht(Ht({},this.state),this.contextState),b)}_getBoundOffsetValue(b,x,H,K,de){const ce=H*(1-H/K)*(.5+.5/de),Me=-1*(H+ce-H),it=x-ce,lt=-1*(x+ce);return this._setContextStateDistances(b,it,lt),H>K?H/2-K/2/de:it>0?ce:lt>0?Me:x}_setContextStateDistances(b,x,H){if(b==="x")return this.contextState.distanceLeft=x,void(this.contextState.distanceRight=H);this.contextState.distanceTop=x,this.contextState.distanceBottom=H}_bindOffsetValuesToBorders(b,x=null){if(x===!1||x===null&&!this.props.bindToBorders)return b;const{originalWidth:H,originalHeight:K}=this.state,de=H*b.zoomLevel,ce=K*b.zoomLevel,Me=this._getBoundOffsetValue("x",b.offsetX,H,de,b.zoomLevel);b.offsetX=Me;const it=this._getBoundOffsetValue("y",b.offsetY,K,ce,b.zoomLevel);return b.offsetY=it,b}_handleDoubleTap(b,x){const{onDoubleTapBefore:H,onDoubleTapAfter:K,doubleTapZoomToCenter:de}=this.props;if(x.numberActiveTouches>1||!this.props.zoomEnabled)return;H&&H(b,x,this._getZoomableViewEventObject());const ce=this._getNextZoomStep(),Me={x:b.nativeEvent.locationX,y:b.nativeEvent.locationY};de&&(Me.x=0,Me.y=0),this._zoomToLocation(Me.x,Me.y,ce,!0,()=>{K&&K(b,x,this._getZoomableViewEventObject({zoomLevel:ce}))})}_getNextZoomStep(){const{zoomStep:b,maxZoom:x,initialZoom:H}=this.props,{zoomLevel:K}=this.state;if(K===x)return H;const de=K+K*b;return x!==null&&de>x?x:de}_getOffsetAdjustedPosition(b,x){const{originalWidth:H,originalHeight:K}=this.state;return b===0&&x===0?{x:0,y:0}:{x:H/2-b,y:K/2-x}}_zoomToLocation(b,x,H,K=!0,de=null){const ce=this._getOffsetAdjustedPosition(b,x);this.props.onZoomBefore&&this.props.onZoomBefore(null,null,this._getZoomableViewEventObject());const Me=this._bindOffsetValuesToBorders({zoomLevel:H,offsetX:ce.x,offsetY:ce.y,lastZoomLevel:H,lastX:ce.x,lastY:ce.y},K);this.setState(Me,()=>{de&&de(),this.props.onZoomAfter&&this.props.onZoomAfter(null,null,this._getZoomableViewEventObject())})}zoomTo(b,x=!0){return new Promise(H=>{b>=this.props.maxZoom||b<=this.props.minZoom?H(!1):this._zoomToLocation(0,0,b,x,()=>{H(!0)})})}zoomBy(b=null,x=!0){return b||(b=this.props.zoomStep),this.zoomTo(this.state.zoomLevel+b,x)}moveTo(b,x,H=!0){const{zoomLevel:K,originalWidth:de,originalHeight:ce}=this.state,Me=(b-de/2)/K,it=(x-ce/2)/K;return new Promise(lt=>{this._setNewOffsetPosition(-Me,-it,H,!0,()=>{lt()})})}moveBy(b,x,H=!0){const{zoomLevel:K,lastX:de,lastY:ce}=this.state,Me=de-b/K,it=ce-x/K;return new Promise(lt=>{this._setNewOffsetPosition(Me,it,H,!0,()=>{lt()})})}render(){return d().createElement(o.View,{style:Ar.container,onLayout:this._getBoxDimensions},d().createElement(o.View,fn(Ht({},this.gestureHandlers.panHandlers),{style:{flex:1,position:"absolute",height:this.state.originalHeight,width:this.state.originalWidth,zIndex:999}})),d().createElement(o.View,{style:[Ar.wrapper,this.props.style,{transform:[{scale:this.state.zoomLevel},{scale:this.state.zoomLevel},{translateX:this.state.offsetX},{translateY:this.state.offsetY}]}]},this.props.children))}}It(Gn,"defaultProps",{zoomEnabled:!0,initialZoom:1,initialOffsetX:0,initialOffsetY:0,maxZoom:1.5,minZoom:1,pinchToZoomInSensitivity:3,pinchToZoomOutSensitivity:1,zoomCenteringLevelDistance:.5,movementSensibility:1.9,doubleTapDelay:300,bindToBorders:!0,zoomStep:.5,onLongPress:null,longPressDuration:700,captureEvent:!1});const Ar=o.StyleSheet.create({wrapper:{flex:1,width:"100%",justifyContent:"center"},container:{flex:1,justifyContent:"center",alignItems:"center",position:"relative"}}),$n=Gn;function pr({onButtonPress:F,fullScreen:X}){return d().createElement(o.TouchableOpacity,{testID:"cc-full-screen",touchSoundDisabled:!0,onPress:F,style:{paddingHorizontal:2}},d().createElement(o.Image,{style:{width:30,height:30},source:X?L.FULLSCREEN_DISABLE:L.FULLSCREEN_ENABLE}))}o.Platform.OS==="android"&&o.UIManager.setLayoutAnimationEnabledExperimental&&o.UIManager.setLayoutAnimationEnabledExperimental(!0);const si=({isMenuVisible:F,mainVideoSpeaker:X,setIsMenuVisible:b,pinUser:x,unPinUser:H,pinnedUserId:K,jitsiManager:de,localUserId:ce,isAudioOnly:Me,networkColor:it,nameLabel:lt})=>{let Rt={top:-45,right:5};if(lt)switch(lt.position){case"top-right":case"top-left":Rt={top:45,right:5};break;case"bottom-right":case"bottom-left":Rt={bottom:40,right:5}}return d().createElement(o.View,{style:[Cn.user_stats_container]},F&&d().createElement(o.View,{style:[Cn.user_stats_menu,Rt]},d().createElement(o.TouchableOpacity,{onPress:()=>{X.id===K?H():x(X.id),b(!1)},style:Cn.user_stats_menu_list},d().createElement(o.Image,{style:Cn.user_stats_menu_icon,source:L.PIN}),d().createElement(o.Text,{style:Cn.user_stats_menu_text},X.id===K?"Unpin":"Pin")),X.isAudioMuted||X.id===ce?null:d().createElement(o.TouchableOpacity,{onPress:()=>{de.current.muteParticipant(X),b(!1)},style:Cn.user_stats_menu_list},d().createElement(o.Image,{style:Cn.user_detail_icons,source:L.AUDIO_MUTE}),d().createElement(o.Text,{style:Cn.user_stats_menu_text},"Mute"))),d().createElement(o.View,{style:[Cn.user_details_container,{backgroundColor:lt.color}]},d().createElement(o.View,{style:Cn.user_details_container_two},d().createElement(o.Image,{style:[Cn.user_detail_icons,{tintColor:X.isAudioMuted?At.red:At.green}],source:X.isAudioMuted?L.AUDIO_MUTE:L.AUDIO_UNMUTE}),Me?null:d().createElement(o.Image,{style:[Cn.user_detail_icons,{tintColor:X.isVideoMuted?At.red:At.green}],source:X.isVideoMuted?L.VIDEO_MUTE:L.VIDEO_UNMUTE}),d().createElement(o.Text,{numberOfLines:1,ellipsizeMode:"tail",style:fn(Ht({},Cn.main_video_name),{padding:10,maxWidth:100})},X.name)),d().createElement(o.View,{style:Cn.user_details_container_two},it?d().createElement(o.Image,{resizeMode:"contain",source:it,style:Cn.user_detail_icons}):null,d().createElement(o.TouchableOpacity,{onPress:()=>{b(ht=>!ht)}},d().createElement(o.Image,{resizeMode:"contain",source:L.MENU,style:Cn.user_detail_icons})))))},ui=d().memo(({cameraFlipped:F,videoFit:X,isMenuVisible:b,setIsMenuVisible:x,pinUser:H,unPinUser:K,pinnedUserId:de,jitsiManager:ce,users:Me,isAudioOnly:it,networkColor:lt,dominantSpeakerId:Rt,mainVideoSpeaker:ht})=>{var mt,Vt,Lt;if(ht){const at=ht.videoTrack,gn=ht.stats;gn&&(gn.connectionQuality<25?L.NETWORK1:gn.connectionQuality<50?L.NETWORK2:gn.connectionQuality<75?L.NETWORK3:L.NETWORK4);try{ht.id}catch(St){}if(ht&&(ht.isVideoMuted||!ht.videoTrack))return d().createElement(o.TouchableOpacity,{activeOpacity:1,onPress:()=>{b&&x(!1)},style:[Cn.main_video_video_track_view,{justifyContent:"center",alignItems:"center"}]},d().createElement(Q,{backgroundColor:Tt(ht==null?void 0:ht.name),textColor:"#FFF",size:160,avatar:ht.avatar},ht.name),d().createElement(Oe.RTCView,{key:ht.id,objectFit:"cover",streamURL:(mt=ht.audioTrack)==null?void 0:mt.getOriginalStream().toURL(),style:Cn.zero_height_width,zOrder:-10}));if(at)return(Vt=ce==null?void 0:ce.current)==null||Vt.setConstraints(ht.id),d().createElement(o.View,{style:Cn.main_video_video_track_view},d().createElement($n,{onPress:()=>{b&&x(!1)}},(Lt=at==null?void 0:at.getOriginalStream())!=null&&Lt.toURL()?d().createElement(Oe.RTCView,{key:at.getOriginalStream().toURL(),objectFit:X==="cover"?"cover":"contain",streamURL:at.getOriginalStream().toURL(),style:Cn.full_height_width,zOrder:-10,mirror:Me[0].id===ht.id&&(at==null?void 0:at._facingMode)!=="environment"}):null))}return null},(F,X)=>F.isMenuVisible===X.isMenuVisible&&F.setIsMenuVisible===X.setIsMenuVisible&&F.pinnedUserId===X.pinnedUserId&&F.isAudioOnly===X.isAudioOnly&&F.dominantSpeakerId===X.dominantSpeakerId&&F.mainVideoSpeaker.isAudioMuted===X.mainVideoSpeaker.isAudioMuted&&F.mainVideoSpeaker.isVideoMuted===X.mainVideoSpeaker.isVideoMuted&&F.mainVideoSpeaker.isVideoMuted===X.mainVideoSpeaker.isVideoMuted&&F.videoFit===X.videoFit&&F.cameraFlipped===X.cameraFlipped),Jr=({setFullScreen:F=()=>null})=>{const{globalState:{dominantSpeakerId:X,pinnedUserId:b,cameraFlipped:x},users:H,dispatch:K,jitsiManager:de,settings:{isAudioOnly:ce,videoSettings:{videoFit:Me,nameLabel:it,fullScreenButton:lt,userListButton:Rt,zoomButton:ht}},setSettings:mt}=Ft(),[Vt,Lt]=(0,E.useState)(!1);let at;const gn=(0,E.useCallback)(()=>{K({type:I,payload:""})},[]),St=(0,E.useCallback)(Fn=>{K({type:I,payload:Fn})},[]),wt=H[0];let dn;const tr=H.find(Fn=>Fn.id===X)||wt,En=H.find(Fn=>Fn.id===b),Or=H.reduce((Fn,Be)=>Fn+(Be.isPresenter!==!1?1:0),0),qn=()=>d().createElement(Zn,{userLength:H.length,onButtonPress:()=>{o.LayoutAnimation.configureNext(o.LayoutAnimation.Presets.linear),o.LayoutAnimation.configureNext({duration:100,create:{type:"linear",property:"scaleY"},update:{type:"linear",property:"scaleY"},delete:{type:"linear",property:"opacity"}})}}),Rn=()=>d().createElement(pr,{fullScreen:!1,onButtonPress:()=>{o.LayoutAnimation.configureNext(o.LayoutAnimation.Presets.linear),o.LayoutAnimation.configureNext({duration:100,create:{type:"linear",property:"scaleY"},update:{type:"linear",property:"scaleY"},delete:{type:"linear",property:"opacity"}}),F(Fn=>!Fn)}}),cr=()=>d().createElement(Mn,{onButtonPress:()=>{o.LayoutAnimation.configureNext(o.LayoutAnimation.Presets.linear),o.LayoutAnimation.configureNext({duration:200,create:{type:"linear",property:"scaleY"},update:{type:"linear",property:"scaleY"},delete:{type:"linear",property:"opacity"}}),mt({type:v,payload:Me==="cover"?"contain":"cover"})},videoFit:Me}),Nn=()=>{var Fn;return d().createElement(si,{isMenuVisible:Vt,mainVideoSpeaker:dn,setIsMenuVisible:Lt,pinUser:St,unPinUser:gn,pinnedUserId:b,jitsiManager:de,localUserId:(Fn=H[0])==null?void 0:Fn.id,isAudioOnly:ce,networkColor:at,nameLabel:it})};if(dn=tr,En&&(dn=En),un.isPresenter===!1&&dn.isPresenter===!1){for(let Fn=0;Fn<H.length;Fn++)if(H[Fn].isPresenter!==!1){dn=H[Fn];break}}return Or<1?d().createElement(o.View,{style:{flex:1,justifyContent:"center",alignItems:"center"}},d().createElement(o.ActivityIndicator,{size:"small",color:"#fff"}),d().createElement(o.Text,{style:{marginLeft:10,color:"#fff"}},"Waiting for presenter...")):d().createElement(d().Fragment,null,d().createElement(o.View,{style:Cn.main_video_container},d().createElement(ui,{cameraFlipped:x,videoFit:Me,isMenuVisible:Vt,setIsMenuVisible:Lt,pinUser:St,unPinUser:gn,pinnedUserId:b,jitsiManager:de,users:H,isAudioOnly:ce,networkColor:at,dominantSpeakerId:X,mainVideoSpeaker:Ht({},dn)}),d().createElement(o.View,{style:[Cn.videoItemContainer,{top:0}]},d().createElement(o.View,{style:{flex:1}},d().createElement(o.View,{style:[Cn.videoInnerContainer,{top:0,left:0}]},(it==null?void 0:it.visibility)&&it.position==="top-left"&&Nn(),(Rt==null?void 0:Rt.visibility)&&Rt.position==="top-left"&&qn(),(ht==null?void 0:ht.visibility)&&ht.position==="top-left"&&cr(),(lt==null?void 0:lt.visibility)&&lt.position==="top-left"&&Rn()),d().createElement(o.View,{style:[Cn.videoInnerContainer,{top:0,right:0}]},(it==null?void 0:it.visibility)&&it.position==="top-right"&&Nn(),(Rt==null?void 0:Rt.visibility)&&Rt.position==="top-right"&&qn(),(ht==null?void 0:ht.visibility)&&ht.position==="top-right"&&cr(),(lt==null?void 0:lt.visibility)&&lt.position==="top-right"&&Rn(),b?d().createElement(o.TouchableOpacity,{touchSoundDisabled:!0,style:Cn.pin_icon_container,onPress:()=>gn()},d().createElement(o.Image,{style:Cn.pin_icon,source:L.PIN})):null))),d().createElement(o.View,{style:[Cn.videoItemContainer,{bottom:0}]},d().createElement(o.View,{style:{flex:1}},d().createElement(o.View,{style:[Cn.videoInnerContainer,{bottom:0,left:0}]},(it==null?void 0:it.visibility)&&it.position==="bottom-left"&&Nn(),(Rt==null?void 0:Rt.visibility)&&Rt.position==="bottom-left"&&qn(),(ht==null?void 0:ht.visibility)&&ht.position==="bottom-left"&&cr(),(lt==null?void 0:lt.visibility)&&lt.position==="bottom-left"&&Rn()),d().createElement(o.View,{style:[Cn.videoInnerContainer,{bottom:0,right:0}]},(it==null?void 0:it.visibility)&&it.position==="bottom-right"&&Nn(),(Rt==null?void 0:Rt.visibility)&&Rt.position==="bottom-right"&&qn(),(ht==null?void 0:ht.visibility)&&ht.position==="bottom-right"&&cr(),(lt==null?void 0:lt.visibility)&&lt.position==="bottom-right"&&Rn())))))},Wn=o.StyleSheet.create({main_container:{backgroundColor:At.blackLightXX,elevation:0,zIndex:0},user_list_main_touchable:{zIndex:10,elevation:5},user_list_user_name:{fontSize:18,color:At.palette.white,padding:5,position:"absolute",top:0,left:0,elevation:5,zIndex:5},user_list_icon_container:{justifyContent:"flex-start",alignItems:"center",position:"absolute",left:5,bottom:5,zIndex:5,elevation:5},lt_small_button:{width:10,height:10,margin:2,borderRadius:20,alignItems:"center",justifyContent:"center"},user_list_avatar_name:{fontSize:18,color:At.palette.white,padding:5},full_height_width:{height:"100%",width:"100%"},user_item_icons:{width:15,height:15},user_list_network_container:{position:"absolute",bottom:6,right:10},user_list_network_icon:{width:15,height:15}}),hi=d().memo(function({urls:F=[]}){return d().createElement(d().Fragment,null,F.map((X,b)=>b>2?d().createElement(Oe.RTCView,{key:X.id,objectFit:"cover",streamURL:X.url,style:{height:0,width:0},zOrder:-1}):null))},(F,X)=>F.urls.length===X.urls.length),Wr=d().memo(function(){const{globalState:{pinnedUserId:F,isPortrait:X,dimension:b},users:x,dispatch:H,settings:{avatarMode:K,isAudioOnly:de,enableVideoTileClick:ce}}=Ft(),Me=x.filter(Rt=>Rt.isPresenter!==!1),it=(0,E.useCallback)(()=>{H({type:I,payload:""})},[]),lt=(0,E.useCallback)(Rt=>{H({type:I,payload:Rt})},[]);return d().createElement(o.View,{style:[Wn.main_container,X?{paddingVertical:5}:{paddingRight:10,paddingVertical:5}]},d().createElement(o.View,{style:X?{width:"100%",flexDirection:"row",justifyContent:"space-between"}:{width:"100%",height:"100%",justifyContent:"space-between"}},d().createElement(o.View,{style:{flexDirection:X?"row":"column",flex:1,marginHorizontal:X?8:0}},(Me==null?void 0:Me.length)>=1?(()=>{var mt,Vt;const Rt=[...Me],ht=[];for(let Lt=0;Lt<(Rt.length>2?3:Rt.length);Lt++){const at=Rt[Lt],gn=at.stats,St=gn?gn.connectionQuality<25?L.NETWORK1:gn.connectionQuality<50?L.NETWORK2:gn.connectionQuality<75?L.NETWORK3:L.NETWORK4:"";let wt;wt=at.id===F,!at.videoTrack||at.isVideoMuted||at.status==="inactive"&&Lt!==0?ht.push(d().createElement(o.TouchableOpacity,{activeOpacity:1,touchSoundDisabled:!0,onPress:()=>{ce&&(wt?it():lt(at.id))},key:at.id,style:Wn.user_list_main_touchable},d().createElement(o.View,{style:{[X?"width":"height"]:(b[X?"width":"height"]-40)/3,aspectRatio:1,alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:8,overflow:"hidden",[X?"marginHorizontal":"marginVertical"]:4,backgroundColor:At.blackLight,marginBottom:5}},d().createElement(o.View,{style:Wn.user_list_icon_container},at.isAudioMuted?d().createElement(o.View,{style:Wn.lt_small_button},d().createElement(o.Image,{style:Wn.user_item_icons,source:L.AUDIO_MUTE})):null,at.isVideoMuted&&!de?d().createElement(o.View,{style:Wn.lt_small_button},d().createElement(o.Image,{style:Wn.user_item_icons,source:L.VIDEO_MUTE})):null),wt?d().createElement(o.View,{style:fn(Ht({},Wn.lt_small_button),{position:"absolute",top:5,right:5,elevation:5,zIndex:5})},d().createElement(o.Image,{style:Wn.user_item_icons,source:L.PIN})):null,d().createElement(Q,{backgroundColor:Tt(at==null?void 0:at.name),textColor:"#FFF",size:30,avatar:at.avatar},at.name||""),d().createElement(o.View,{style:K=="fullscreen"?{position:"absolute",top:5,left:5,justifyContent:"center",alignItems:"center"}:{alignItems:"center"}},d().createElement(o.Text,{numberOfLines:1,ellipsizeMode:"tail",style:Wn.user_list_avatar_name},at.name||"")),d().createElement(Oe.RTCView,{key:at.id,objectFit:"cover",streamURL:(mt=at.audioTrack)==null?void 0:mt.getOriginalStream().toURL(),zOrder:-1})))):ht.push(d().createElement(o.TouchableOpacity,{activeOpacity:1,touchSoundDisabled:!0,onPress:()=>{ce&&(wt?it():lt(at.id))},key:at.id,style:Wn.user_list_main_touchable},d().createElement(o.View,{style:{[X?"width":"height"]:(b[X?"width":"height"]-40)/3,aspectRatio:1,alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:8,overflow:"hidden",[X?"marginHorizontal":"marginVertical"]:4,backgroundColor:At.blackLightX,marginBottom:5}},d().createElement(o.Text,{numberOfLines:1,ellipsizeMode:"tail",style:Wn.user_list_user_name},at.name||""),d().createElement(o.View,{style:Wn.user_list_icon_container},at.isAudioMuted?d().createElement(o.View,{style:Wn.lt_small_button},d().createElement(o.Image,{style:Wn.user_item_icons,source:L.AUDIO_MUTE})):null,at.isVideoMuted&&!de?d().createElement(o.View,{style:Wn.lt_small_button},d().createElement(o.Image,{style:Wn.user_item_icons,source:L.VIDEO_MUTE})):null),wt?d().createElement(o.View,{style:fn(Ht({},Wn.lt_small_button),{position:"absolute",top:5,right:5,elevation:5})},d().createElement(o.Image,{style:Wn.user_item_icons,source:L.PIN})):null,d().createElement(Oe.RTCView,{key:at.id,objectFit:"cover",streamURL:(Vt=at.videoTrack)==null?void 0:Vt.getOriginalStream().toURL(),style:[Wn.full_height_width,{borderRadius:5}],zOrder:1,mirror:Me[0].id===at.id&&at.videoTrack._facingMode!=="environment"}),d().createElement(o.View,{style:Wn.user_list_network_container},St?d().createElement(o.Image,{resizeMode:"contain",source:St,style:[Wn.user_list_network_icon]}):null))))}return d().createElement(d().Fragment,null,ht)})():null,(Me==null?void 0:Me.length)>=3&&d().createElement(hi,{urls:Me.map(Rt=>{var ht;return{id:Rt.id,url:(ht=Rt.audioTrack)==null?void 0:ht.getOriginalStream().toURL()}})}))))}),Kr=Wr;function oi({isAudioOnly:F=!1,avatarMode:X="circle"}){const{globalState:{isPortrait:b},users:x}=Ft(),[H,K]=(0,E.useState)(!1);return x.reduce((de,ce)=>de+(ce.isPresenter!==!1?1:0),0)<1?d().createElement(o.View,{style:{flex:1,justifyContent:"center",alignItems:"center"}},d().createElement(o.ActivityIndicator,{size:"small",color:"#fff"}),d().createElement(o.Text,{style:{marginLeft:10,color:"#fff"}},"Waiting for presenter...")):d().createElement(o.View,{style:b?Un.call_container_portrait:Un.call_container_landscape},d().createElement(o.View,{style:Un.main_video_container},d().createElement(o.View,{style:fn(Ht({},Un.main_video),{marginHorizontal:b?10:5})},d().createElement(Jr,{isAudioOnly:F,avatarMode:X,setFullScreen:K}))),H?null:d().createElement(Kr,null))}o.Platform.OS==="android"&&o.UIManager.setLayoutAnimationEnabledExperimental&&o.UIManager.setLayoutAnimationEnabledExperimental(!0);const Ai="CallingAnalytics";class Ei extends E.Component{constructor(b){super(b);It(this,"interval",null);It(this,"appId");It(this,"isAudioOnly");It(this,"user",null);It(this,"stopPing",()=>{this.interval&&clearInterval(this.interval)})}componentDidMount(){var b,x,H,K,de;this.appId=(b=this.context)==null?void 0:b.settings.appId,this.isAudioOnly=(x=this.context)==null?void 0:x.settings.isAudioOnly,this.analyticsSettings=(H=this.context)==null?void 0:H.settings.analyticsSettings,this.sessionId=(K=this.context)==null?void 0:K.settings.sessionId,this.user=(de=this.context)==null?void 0:de.users[0],this.interval=setInterval(()=>{this.ping()},6e4)}componentWillUnmount(){}getAnalyticsUrl(){return`https://${this.analyticsSettings.ANALYTICS_HOST}/${this.analyticsSettings.ANALYTICS_VERSION}/calls/ping`}ping(){return _r(this,null,function*(){var de,ce,Me;if(((Me=(ce=(de=this.context)==null?void 0:de.globalRef)==null?void 0:ce.current)==null?void 0:Me.callEnded)===!0)return void this.stopPing();if(!this.appId||!this.user.jwt)return;const b=new Headers;b.append("appId",this.appId),b.append("authorization","Beare "+this.user.jwt),b.append("Content-Type","application/json"),ye.d(Ai,"Ping Headers => ",b);const x={uts:Date.now(),wsId:this.user.resource,type:this.isAudioOnly?"audio":"video",sessionId:this.sessionId,isRecording:!1},H=JSON.stringify(x);ye.d(Ai,"Ping data = ",x);const K={method:"POST",headers:b,body:H,redirect:"follow"};fetch(this.getAnalyticsUrl(),K).then(it=>it.json()).then(it=>ye.d(Ai,"Ping result => ",it)).catch(it=>ye.e(Ai,"Ping error =>",it))})}render(){return null}}It(Ei,"contextType",Kt),Ei.contextType=Kt;const Li="EndCallModel",xi=()=>{const{jitsiManager:F,globalRef:X,nativeManager:b,dispatch:x}=Ft(),H=()=>{var K;try{ye.d(Li,"[onHangUpCalled]"),X.current.callEnded=!0,(K=b.current)!=null&&K.onCallEndButtonPressed&&b.current.onCallEndButtonPressed()}catch(de){ye.d(Li,"[onHangUpCalled]",de)}try{F.current.leave()}catch(de){ye.d(Li,"[onHangUpCalled]",de)}};return d().createElement(o.View,{style:Mt.model},d().createElement(o.View,{style:Mt.container},d().createElement(o.Text,{style:Mt.headerText},"Do you want to end presentation for everyone or just leave the call."),d().createElement(o.View,{style:Mt.buttonContainer},d().createElement(o.TouchableOpacity,{onPress:()=>{F.current.endSessionForAll(),x({type:Ze,payload:!1}),H()},touchSoundDisabled:!0,style:Mt.button},d().createElement(o.Text,{style:Mt.buttonText},"End")),d().createElement(o.TouchableOpacity,{onPress:()=>{x({type:Ze,payload:!1}),H()},touchSoundDisabled:!0,style:Mt.button},d().createElement(o.Text,{style:Mt.buttonText},"Leave")))))};function ki(){const{globalState:F,settings:X}=Ft();return(0,E.useEffect)(()=>{__nested_webpack_require_965807__.g.ccUsersStats={}},[]),F.conferenceJoined?d().createElement(o.View,{style:F.isPortrait?Bi.mainContainerPortrait:Bi.mainContainerLandScape},d().createElement(Ei,null),F.inPIPMode?d().createElement(jt,null):X.mode===k?d().createElement(tn,null):d().createElement(oi,null),d().createElement(sn,null),F.isParticipantsModelVisible?d().createElement(Fe,null):null,d().createElement(Tn,null),F.showAudioModel?d().createElement(qe,null):null,F.showEndCallDialog?d().createElement(xi,null):null,F.isRecording?d().createElement(ct,null):null):d().createElement(o.View,{style:{flex:1,flexDirection:"row",backgroundColor:At.blackLightXX,justifyContent:"center",alignItems:"center"}},!F.connectionError&&d().createElement(o.ActivityIndicator,{size:"small",color:"#fff"}),d().createElement(o.Text,{style:{marginLeft:10,color:"#fff"}},F.connectionError?"Couldn't connect, something went wrong!":"Joining..."))}const Bi=o.StyleSheet.create({mainContainerPortrait:{flex:1,backgroundColor:At.blackLightXX,overflow:"hidden"},mainContainerLandScape:{flex:1,backgroundColor:At.blackLightXX,flexDirection:"row"}}),{AudioMode:zi}=o.NativeModules,gr=zi;let Yi=null;Yi=o.NativeModules.CometChatCallsRTC?o.NativeModules.CometChatCallsRTC:o.NativeModules.CometChatRTC;const wn=Yi;class Ui extends d().Component{constructor(b){super(b);It(this,"isAudioDevicesInitialized",!1);It(this,"userList",[]);It(this,"previousAudioModeListToComarpe",[]);It(this,"audioModeEventTimer",null);It(this,"getAudioModes",()=>new Promise((b,x)=>{try{const{globalState:H}=this.context;b({modes:H.audioModes})}catch(H){x(H)}}));It(this,"resetAudioDeviceForVideoCall",()=>{const{globalState:b}=this.context;for(let x=0;x<Ne.length;x++){const H=b.audioModes.find(K=>K.type.toLowerCase().includes(Ne[x].toLowerCase()));if(H){gr.setAudioDevice((H==null?void 0:H.uid)||H.type);break}}});It(this,"setAudioMode",b=>{const{globalState:x}=this.context,H=x.audioModes.find(K=>K.type.toLowerCase().includes(b.toLowerCase()));H&&gr.setAudioDevice((H==null?void 0:H.uid)||H.type)});It(this,"addAudioDeviceListener",()=>{this.unsubscribeAudioModeEventEmitter=this.AudioModeEventEmitter.addListener(gr.DEVICE_CHANGE_EVENT,b=>{var x;this.isAudioDevicesInitialized||(this.setAudioDevices(b),this.isAudioDevicesInitialized=!0),this.context.dispatch({type:st,payload:b}),this.onAudioModeChanged(b),this.context.dispatch({type:_e,payload:(x=b.find(H=>H.selected))==null?void 0:x.type})}),o.Platform.OS==="ios"&&(this.unsubscribeAudioModeEventEmitterCustom=this.AudioModeEventEmitter.addListener(gr.DEVICE_CHANGE_EVENT_CUSTOM,b=>{var x;if(this.context.users.length===1){const H=this.context.globalState.audioModes.map(K=>fn(Ht({},K),{selected:K.uid===b}));this.context.dispatch({type:st,payload:H}),this.context.dispatch({type:_e,payload:(x=H.find(K=>K.selected))==null?void 0:x.type})}}))});It(this,"addListeners",()=>{const{jitsiManager:b}=this.context;this.endCall=this.eventEmitter.addListener("EVENT_END_CALL_SESSION",x=>{b.current.leave()}),this.switchCameraSource=this.eventEmitter.addListener("EVENT_SWITCH_CAMERA_SOURCE",x=>{b.current.flipCamera()}),this.muteAudio=this.eventEmitter.addListener("EVENT_MUTE_AUDIO",x=>{b.current.muteAudio()}),this.unMuteAudio=this.eventEmitter.addListener("EVENT_UNMUTE_AUDIO",x=>{b.current.unMuteAudio()}),this.pauseVideo=this.eventEmitter.addListener("EVENT_PAUSE_VIDEO",x=>{b.current.muteVideo()}),this.unPauseVideo=this.eventEmitter.addListener("EVENT_UNPAUSE_VIDEO",x=>{b.current.unMuteVideo()}),this.changeAudiModeToSpeaker=this.eventEmitter.addListener("EVENT_AUDIO_MODE_SPEAKER",x=>{}),this.changeAudiModeToEarpiece=this.eventEmitter.addListener("EVENT_AUDIO_MODE_EARPIECE",x=>{}),this.unmountComponent=this.eventEmitter.addListener("EVENT_UNMOUNT_COMPONENT",x=>{}),this.remountComponent=this.eventEmitter.addListener("EVENT_REMOUNT_COMPONENT",x=>{}),this.enterPipMode=this.eventEmitter.addListener("EVENT_ENTER_PIP_MODE",x=>{b.current.enterPipMode()}),this.exitPipMode=this.eventEmitter.addListener("EVENT_EXIT_PIP_MODE",x=>{b.current.exitPipMode()}),this.switchToVideoCall=this.eventEmitter.addListener("EVENT_SWITCH_TO_VIDEO_CALL",x=>{b.current.requestingToSwitchToVideoCall()}),this.startCallRecording=this.eventEmitter.addListener("EVENT_START_CALL_RECORDING",x=>{b.current.startRecording()}),this.eventEmitter.addListener("EVENT_SET_AUDIO_MODE",x=>{this.setAudioMode(x.audioMode)}),this.eventEmitter.addListener("EVENT_GET_AUDIO_MODES",()=>{this.getAudioModes().then(x=>{wn.getAudioModesOnSuccess(x.modes)})}),this.stopCallRecording=this.eventEmitter.addListener("EVENT_STOP_CALL_RECORDING",x=>{b.current.stopRecording()})});It(this,"onRecordingToggled",b=>{var x;(x=this.settings)!=null&&x.onRecordingToggled&&this.settings.onRecordingToggled(b),wn&&wn.onRecordingToggled(b)});It(this,"onUserMuted",b=>{var x;(x=this.settings)!=null&&x.onUserMuted&&this.settings.onUserMuted(b),wn&&(wn!=null&&wn.onUserMuted)&&(wn==null||wn.onUserMuted(b))});It(this,"removeListener",()=>{var b,x,H,K,de,ce,Me,it,lt,Rt,ht,mt,Vt,Lt,at,gn,St;(b=this.endCall)==null||b.remove(),(x=this.switchCameraSource)==null||x.remove(),(H=this.unsubscribeAudioModeEventEmitter)==null||H.remove(),(K=this.unsubscribeAudioModeEventEmitterCustom)==null||K.remove(),(de=this.muteAudio)==null||de.remove(),(ce=this.unMuteAudio)==null||ce.remove(),(Me=this.pauseVideo)==null||Me.remove(),(it=this.unPauseVideo)==null||it.remove(),(lt=this.changeAudiModeToSpeaker)==null||lt.remove(),(Rt=this.changeAudiModeToEarpiece)==null||Rt.remove(),(ht=this.unmountComponent)==null||ht.remove(),(mt=this.remountComponent)==null||mt.remove(),(Vt=this.enterPipMode)==null||Vt.remove(),(Lt=this.exitPipMode)==null||Lt.remove(),(at=this.switchToVideoCall)==null||at.remove(),(gn=this.startCallRecording)==null||gn.remove(),(St=this.stopCallRecording)==null||St.remove()});this.settings=b,this.audioDevices=[],wn&&(this.eventEmitter=new o.NativeEventEmitter(wn)),this.AudioModeEventEmitter=new o.NativeEventEmitter(gr),this.unsubscribeAudioModeEventEmitter=null,this.unsubscribeAudioModeEventEmitterCustom=null}componentDidMount(){const{settings:b}=this.context;this.settings=b,wn&&this.addListeners(),gr&&(this.addAudioDeviceListener(),o.Platform.OS==="android"&&gr.getAllDevices()),b.defaultAudioMode?gr.setMode(gr.VIDEO_CALL):b.isAudioOnly?gr.setMode(gr.AUDIO_CALL):gr.setMode(gr.VIDEO_CALL)}setAudioDevices(b){if(this.settings.defaultAudioMode){const x=b.find(H=>H.type.toLowerCase().includes(this.settings.defaultAudioMode.toLowerCase()));if(x)gr.setAudioDevice((x==null?void 0:x.uid)||(x==null?void 0:x.type));else if(this.settings.isAudioOnly)for(let H=0;H<xe.length;H++){const K=b.find(de=>de.type.toLowerCase().includes(xe[H].toLowerCase()));if(K){gr.setAudioDevice((K==null?void 0:K.uid)||K.type);break}}else for(let H=0;H<Ne.length;H++){const K=b.find(de=>de.type.toLowerCase().includes(Ne[H].toLowerCase()));if(K){gr.setAudioDevice((K==null?void 0:K.uid)||K.type);break}}}else if(this.settings.isAudioOnly)for(let x=0;x<xe.length;x++){const H=b.find(K=>K.type.toLowerCase().includes(xe[x].toLowerCase()));if(H){gr.setAudioDevice((H==null?void 0:H.uid)||H.type);break}}else for(let x=0;x<Ne.length;x++){const H=b.find(K=>K.type.toLowerCase().includes(Ne[x].toLowerCase()));if(H){gr.setAudioDevice((H==null?void 0:H.uid)||H.type);break}}}onEndCall(){var b;(b=this.settings)!=null&&b.onEndCall&&this.settings.onEndCall(),ye.d("NativeManager","[onEndCall]"),wn&&wn.onCallEnded()}onCallEndButtonPressed(){var b;(b=this.settings)!=null&&b.onCallEndButtonPressed&&this.settings.onCallEndButtonPressed(),wn&&wn.onCallEndButtonPressed()}onUserJoined(b){var x,H;(x=this.settings)!=null&&x.onUserJoined&&((H=this.settings)==null||H.onUserJoined(tt(b))),wn&&wn.onUserJoined&&(wn==null||wn.onUserJoined(tt(b)))}onUserLeft(b){var x;(x=this.settings)!=null&&x.onUserLeft&&this.settings.onUserLeft(tt(b)),wn&&(wn!=null&&wn.onUserLeft)&&wn.onUserLeft(tt(b))}onUserListChanged(b){var H;const x=b.map(K=>{if(!K.name.includes("(Screen)"))return{uid:K.uid,avatar:K.avatar,name:K.name,jwt:K.jwt}}).filter(K=>K);JSON.stringify(x)!=JSON.stringify(this.userList)&&(this.userList=x,(H=this.settings)!=null&&H.onUserListChanged&&this.settings.onUserListChanged(x),wn&&wn.onUserListChanged(x))}onAudioModeChanged(b){var x;this.context.dispatch({type:st,payload:b}),this.audioDevices.length===b.length&&JSON.stringify(this.audioDevices)===JSON.stringify(b)||((x=this.settings)!=null&&x.onAudioModeChanged&&this.settings.onAudioModeChanged(b),this.audioModeEventTimer&&clearTimeout(this.audioModeEventTimer),this.audioModeEventTimer=setTimeout(()=>{JSON.stringify(b)!==JSON.stringify(this.previousAudioModeListToComarpe)&&(wn&&wn.onAudioModeChanged(b),this.previousAudioModeListToComarpe=b,this.audioModeEventTimer=null)},600)),this.audioDevices=b}getAudioModesOnSuccess(b){var x;this.context.dispatch({type:st,payload:b}),(x=this.settings)!=null&&x.getAudioModesOnSuccess&&this.settings.getAudioModesOnSuccess(b),wn&&wn.getAudioModesOnSuccess(b)}onSwitchedToVideoCall(b){var x;(x=this.settings)!=null&&x.onCallSwitchedToVideo&&this.settings.onCallSwitchedToVideo({initiator:b.initiator,accepted:b.responder,sessionId:b.sessionId}),wn&&wn.onCallSwitchedToVideo(b.sessionId,b.initiator,b.responder)}render(){return null}}It(Ui,"contextType",Kt),__nested_webpack_require_965807__(4783);var ai=__nested_webpack_require_965807__(1081),Xi=__nested_webpack_require_965807__(5559),zr=__nested_webpack_require_965807__.n(Xi);__nested_webpack_require_965807__(9747);const Fi=parseInt(o.Platform.Version,10);o.Platform.OS==="ios"&&Fi===10&&Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength")==null&&Object.defineProperty(ArrayBuffer.prototype,"byteLength",{configurable:!0,enumerable:!1,get:()=>null});var ji=__nested_webpack_require_965807__(5196);const pi=JSON.parse('{"u2":"react-native-url-polyfill","i8":"1.3.0"}');__nested_webpack_require_965807__(5478),__nested_webpack_require_965807__(7343),__nested_webpack_require_965807__.g.REACT_NATIVE_URL_POLYFILL=`${pi.u2}@${pi.i8}`,(0,ji.polyfillGlobal)("URL",()=>__nested_webpack_require_965807__(5478).J),(0,ji.polyfillGlobal)("URLSearchParams",()=>__nested_webpack_require_965807__(7343)._);var Vi=__nested_webpack_require_965807__(6878),ci=__nested_webpack_require_965807__.n(Vi);class Hi{constructor(X){this._keyPrefix=X;const b=this._initializeAsync();b&&(this._initializing=b,b.finally(()=>{this._initializing===b&&(this._initializing=void 0)}))}clear(){for(const X of Object.keys(this))this.removeItem(X)}getItem(X){return this.hasOwnProperty(X)?this[X]:null}_getItemAsync(X){return(this._initializing||Promise.resolve()).catch(()=>{}).then(()=>this.getItem(X))}_initializeAsync(){if(this._keyPrefix!==void 0)return new Promise(X=>{ci().getAllKeys().then((...b)=>{const x=b[b.length-1].filter(H=>H.startsWith(this._keyPrefix));ci().multiGet(x).then((...H)=>{const K=H[H.length-1],de=this._keyPrefix&&this._keyPrefix.length;for(let[ce,Me]of K)ce=ce.substring(de),this.hasOwnProperty(ce)||(this[ce]=Me);X()})})})}key(X){const b=Object.keys(this);return X<b.length?b[X]:null}get length(){return Object.keys(this).length}removeItem(X){delete this[X],this._keyPrefix===void 0||ci().removeItem(`${String(this._keyPrefix)}${X}`)}setItem(X,b){b=String(b),this[X]=b,this._keyPrefix===void 0||ci().setItem(`${String(this._keyPrefix)}${X}`,b)}}function Is(F,X){let b=null;return F&&as(F,x=>x.nodeType===1&&x.nodeName===X&&(b=x,!0)),b}function as(F,X){if(X(F))return!0;if(F=F.firstChild)do if(as(F,X))return!0;while(F=F.nextSibling);return!1}(F=>{if(F.DOMParser=ai.DOMParser,F.addEventListener===void 0&&(F.addEventListener=()=>{}),F.removeEventListener===void 0&&(F.removeEventListener=()=>{}),F.document===void 0){const H=new ai.DOMParser().parseFromString("<html><head></head><body></body></html>","text/xml");H.addEventListener===void 0&&(H.addEventListener=()=>{}),H.cookie===void 0&&(H.cookie=""),H.implementation.createHTMLDocument===void 0&&(H.implementation.createHTMLDocument=function(de=""){const ce=new ai.DOMParser().parseFromString(`<html>
126
126
  <head><title>${de}</title></head>
127
127
  <body></body>
128
- </html>`,"text/xml");return Object.defineProperty(ce,"body",{get:()=>ce.getElementsByTagName("body")[0]}),ce});const K=Object.getPrototypeOf(H.documentElement);K&&(K.querySelector===void 0&&(K.querySelector=function(de){return Is(this,de)}),K.remove===void 0&&(K.remove=function(){this.parentNode!==null&&this.parentNode.removeChild(this)}),K.hasOwnProperty("innerHTML")||Object.defineProperty(K,"innerHTML",{get(){return this.childNodes.toString()},set(de){this.textContent="";const ce=new ai.DOMParser().parseFromString(`<div>${de}</div>`,"text/xml").documentElement;let Me;for(;Me=ce.firstChild;)this.appendChild(Me)}}),K.hasOwnProperty("children")||Object.defineProperty(K,"children",{get(){const de=this.childNodes,ce=[];let Me=0,it=de[Me];for(;it;)it.nodeType===1&&ce.push(it),Me+=1,it=de[Me];return ce}})),F.document=H}F.location===void 0&&(F.location={href:"",search:""});const{navigator:X}=F;if(X){let H=X.userAgent||"";const{name:K,version:de}=__nested_webpack_require_965807__(2834);let ce=K||"react-native";de&&(ce+=`/${de}`),H.indexOf(ce)===-1&&(H=H?`${ce} ${H}`:ce);const Me=`(${o.Platform.OS} ${o.Platform.Version})`;H.indexOf(Me)===-1&&(H=H?`${H} ${Me}`:Me),X.userAgent=H}__nested_webpack_require_965807__(2808);const b=F.performance.now,x=__nested_webpack_require_965807__(5280);if(F.performance=x.default,F.performance.now=b,F.PerformanceObserver=x.PerformanceObserver,__nested_webpack_require_965807__(3394),F.callstats=__nested_webpack_require_965807__(3650),F.XMLHttpRequest){const{prototype:H}=F.XMLHttpRequest;H&&!H.hasOwnProperty("responseXML")&&Object.defineProperty(H,"responseXML",{get(){const{responseText:K}=this;return K&&new ai.DOMParser().parseFromString(K,"text/xml")}})}o.Platform.OS==="android"&&(F.clearTimeout=zr().clearTimeout.bind(zr()),F.clearInterval=zr().clearInterval.bind(zr()),F.setInterval=zr().setInterval.bind(zr()),F.setTimeout=(H,K=0)=>zr().setTimeout(H,K)),F.localStorage===void 0&&(F.localStorage=new Hi("@jitsi-meet/")),F.sessionStorage===void 0&&(F.sessionStorage=new Hi)})(__nested_webpack_require_965807__.g||window||void 0);var Ps=__nested_webpack_require_965807__(9291),a=__nested_webpack_require_965807__.n(Ps);const u="JitsiManager";class A extends d().Component{constructor(b){super(b);It(this,"connection",null);It(this,"room",null);It(this,"recordingRetry",0);It(this,"LastNId",[]);It(this,"initialize",()=>{try{ye.d(u,"[initialize]");const{setUsers:b,globalRef:x,settings:H,usersRef:K}=this.context,de={};x.current.callEnded=!1,de.uid=H.RTCUser.uid,de.avatar=H.RTCUser.avatar,de.name=H.RTCUser.name,de.isVideoMuted=H.startVideoMuted,de.isAudioMuted=H.startAudioMuted,de.isLocalUser=!0,K.current=[de],b({type:m,payload:[de]},!0),a().init(dt),a().setLogLevel(a().logLevels.ERROR),this.makeConnection(),un.isPresenter!==!1&&this.createLocalTracks()}catch(b){ye.e(u,"[initialize]",b)}});It(this,"createLocalTracks",()=>{try{ye.d(u,"[createLocalTracks]");const{settings:b}=this.context;this.createAudioTrack(),b.isAudioOnly||this.createVideoTrack()}catch(b){ye.e(u,"[createLocalTracks]",b)}});It(this,"createAudioTrack",()=>_r(this,null,function*(){if(un.isPresenter!==!1)try{ye.d(u,"[createAudioTrack]");const b=yield a().createLocalTracks({devices:["audio"]});this.onLocalTrack(b[0])}catch(b){ye.e(u,"[createAudioTrack]",b)}}));It(this,"createVideoTrack",()=>_r(this,null,function*(){if(un.isPresenter!==!1)try{ye.d(u,"[createVideoTrack]");const b=yield a().createLocalTracks({devices:["video"]});this.onLocalTrack(b[0])}catch(b){ye.e(u,"[createVideoTrack]",b)}}));It(this,"onLocalTrack",b=>{try{ye.d(u,"[onLocalTrack]",b);const{setUsers:x,globalState:H,usersRef:K}=this.context,de=K.current;b.type=="video"?(de[0].isVideoMuted===!0?b.mute():de[0].isVideoMuted=!1,de[0].videoTrack=b):b.type=="audio"&&(de[0].isAudioMuted===!0?b.mute():de[0].isAudioMuted=!1,de[0].audioTrack=b),K.current=[...de],x({type:m,payload:de},!0),H.conferenceJoined&&this.addTrackToRoom(b)}catch(x){ye.e(u,"[onLocalTrack]",x)}});It(this,"onConnectionSuccess",()=>_r(this,null,function*(){var b,x,H,K;try{ye.d(u,"[onConnectionSuccess] ");const{settings:de,setUsers:ce,dispatch:Me,setRoom:it,globalRef:lt,usersRef:Rt,nativeManager:ht}=this.context,mt=Rt.current;ye.d(u,"[onConnectionSuccess] settings",de);const Vt=yield this.connection.initJitsiConference(de==null?void 0:de.sessionId,Ke);Vt.setSenderVideoConstraint(720),this.room=Vt,it(Vt),this.addJitsiEventListener(),this.addCommandListener();const Lt=this.room.myUserId()||"";mt[0].id=Lt,mt[0].jwt=(b=de.RTCUser)==null?void 0:b.jwt,mt[0].resource=(x=de.RTCUser)==null?void 0:x.resource,un.isPresenter===!1?mt[0].isPresenter=!1:un.isPresenter===!0&&(mt[0].isPresenter=!0),mt[0].videoTrack&&this.room.addTrack(mt[0].videoTrack),Rt.current=[...mt],ce({type:m,payload:mt},!0),lt.current.dominantSpeakerId=this.room.lastDominantSpeaker,Me({type:U,payload:this.room.lastDominantSpeaker}),this.room.setDisplayName(mt[0].name);const at={start_recording_on_call_start:de.startRecordingOnCallStart,is_video_muted:de.startVideoMuted,is_audio_muted:de.startAudioMuted,session_id:de.sessionId,is_audio_only:de.isAudioOnly,mode:de.mode,call_version:__nested_webpack_require_965807__(4147).i8,uid:mt[0].uid,platform:o.Platform.OS,sdk:(H=de.sdk)!=null?H:"react-native",app_id:de.appId,meeting_id:Vt.xmpp.getJid()};Vt.sendCommand("initial_config",{attributes:at});const gn={uid:mt[0].uid,avatar:mt[0].avatar,name:mt[0].name,joinedAt:Date.now(),isPresenter:void 0};un.isPresenter===!1?gn.isPresenter=!1:un.isPresenter===!0&&(gn.isPresenter=!0),this.room.sendCommand(ie,{attributes:gn}),(K=ht.current)==null||K.onUserJoined(mt[0])}catch(de){ye.e(u,"[onConnectionSuccess] error",de)}}));It(this,"endSessionForAll",()=>{const{users:b}=this.context;this.room.sendCommand(T,{value:b[0].id})});It(this,"onConferenceFailed",b=>{const{dispatch:x}=this.context;x({type:_,payload:null}),this.onConnectionFailed(b)});It(this,"onConnectionFailed",b=>_r(this,null,function*(){try{ye.d(u,"[onConectionFailed] ",b);const{dispatch:x}=this.context;yield this.unload(),x({type:p,payload:{error:!0,type:"jwt"}})}catch(x){}}));It(this,"addJitsiEventListener",()=>{try{ye.d(u,"[addJitsiEventListener]",this.room.on),this.room.on(a().events.conference.CONFERENCE_JOINED,this.onConferenceJoined),this.room.on(a().events.conference.CONFERENCE_FAILED,this.onConferenceFailed),this.room.on(a().events.conference.TRACK_ADDED,this.onRemoteTrack),this.room.on(a().events.conference.TRACK_REMOVED,this.onRemoteTrackRemoved),this.room.on(a().events.conference.USER_JOINED,this.onUserJoined),this.room.on(a().events.conference.USER_LEFT,this.onUserLeft),this.room.on(a().events.conference.TRACK_MUTE_CHANGED,this.onTrackMuted),this.room.on(a().events.conference.DOMINANT_SPEAKER_CHANGED,this.onDominantSpeakerChanged),this.room.on(a().events.connectionQuality.LOCAL_STATS_UPDATED,this.onLocalStatsUpdated),this.room.on(a().events.connectionQuality.REMOTE_STATS_UPDATED,this.onRemoteStatsUpdated),this.room.on(a().events.conference.PARTICIPANT_CONN_STATUS_CHANGED,this.onParticipantConnStatusChanged),this.room.on(a().events.conference.LAST_N_ENDPOINTS_CHANGED,this.debounce(this.onLastNChanged,1e3)),this.room.on(a().events.conference.SUBJECT_CHANGED,this.onSubjectChanged),this.room.join()}catch(b){ye.e(u,"[addJitsiEventListener]",b)}});It(this,"addCommandListener",()=>{try{this.room.addCommandListener(f,this.onScreenShareStarted),this.room.addCommandListener(P,this.onScreenShareStopped),this.room.addCommandListener(pe,this.onScreenRecordingStarted),this.room.addCommandListener(Se,this.onTryingToStartRecording),this.room.addCommandListener(le,this.onTryingToStopRecording),this.room.addCommandListener(Ae,this.onScreenRecordingStopped),this.room.addCommandListener(Re,this.onParticipantMuted),this.room.addCommandListener(ie,this.onUserObjectReceived),this.room.addCommandListener(q,this.onSwitchToVideoCallResponseReceived),this.room.addCommandListener(j,this.onSwitchToVideoRequest)}catch(b){ye.e(u,"[addCommandListener]",b)}});It(this,"muteParticipant",b=>{if(!b)return alert("select usr"),!1;try{const{users:x}=this.context;this.room.muteParticipant(b.id),this.room.sendCommandOnce(Re,{attributes:{mutedParticipantId:b.id,participantMutedBy:x[0].id}})}catch(x){ye.e(u,"[muteParticipant]",x)}});It(this,"addTrackToRoom",b=>{try{ye.d(u,"[addTrackToRoom]");const{globalState:x}=this.context;this.room&&x.conferenceJoined&&this.room.addTrack(b)}catch(x){ye.e(u,"[addTrackToRoom]",x)}});It(this,"removeTrackFromRoom",b=>{this.room.remove(b)});It(this,"onConferenceJoined",()=>{try{ye.d(u,"[onConferenceJoined]");const{dispatch:b,users:x,settings:H,globalState:K}=this.context;b({type:g,payload:null}),un.isPresenter!==!1&&(x[0].audioTrack&&this.addTrackToRoom(x[0].audioTrack),x[0].videoTrack&&this.addTrackToRoom(x[0].videoTrack),H.startRecordingOnCallStart&&(K.isRecording&&K.tryingToStartRecording||this.startRecording()))}catch(b){ye.e(u,"[onConferenceJoined]",b)}});It(this,"onUserJoined",(b,x)=>{var H;try{const K={};if(ye.d(u,"[onUserJoined]",x),K.name=x.getDisplayName()||"Unnamed",K.name==="Unnamed"&&x._statsID.includes("jibri"))return!1;const{dispatch:de,setUsers:ce,globalState:Me,usersRef:it}=this.context,lt=it.current;K.id=x.getId(),it.current=[...lt,K],ce({type:m,payload:[...lt,K]}),(H=K==null?void 0:K.name)!=null&&H.includes("(Screen)")&&de({type:be,payload:Me.noOfScreenShareUser+1})}catch(K){ye.e(u,"[onUserJoined]",K)}});It(this,"onUserLeft",(b,x)=>{var H,K,de;try{const{setUsers:ce,dispatch:Me,globalState:it,nativeManager:lt,usersRef:Rt}=this.context,ht=Rt.current;if(ye.d(u,"[onUserLeft] id="+b,"user"),(x.getDisplayName()==="Unnamed"||!x.getDisplayName())&&x._statsID&&x._statsID.includes("jibri"))return!1;let mt=null;ht.map(Lt=>{var at;(mt==null||mt.joinedAt>Lt.joinedAt)&&x._id!==Lt.id&&Lt.status==="active"&&(mt=Lt),x._id===Lt.id&&(it.tryingToStartRecording&&this.room.sendCommandOnce(le,{}),x.getDisplayName().includes("(Screen)")||((at=lt.current)==null||at.onUserLeft(Lt)))});const Vt=ht.filter(Lt=>x._id!==Lt.id);(H=lt.current)==null||H.onUserListChanged(Vt),((K=it.recorder)==null?void 0:K.id)===x._id&&Me({type:Te,payload:mt}),x.getDisplayName().includes("(Screen)")&&Me({type:be,payload:it.noOfScreenShareUser-1}),Vt.length<=1&&!this.localUserEndsCall&&((de=lt.current)==null||de.onEndCall()),Rt.current=[...Vt],ce({type:m,payload:Vt})}catch(ce){ye.e(u,"[onUserLeft] ",ce)}});It(this,"onRemoteTrack",b=>{try{if(ye.d(u,"[onRemoteTrack]","track"),b.isLocal())return;const x=b.ownerEndpointId,{dispatch:H,setUsers:K,globalRef:de,usersRef:ce}=this.context,Me=ce.current;b&&b.videoType==="desktop"?(ye.d(u,"[onRemoteTrack] [is screenShare Track]"),H({type:I,payload:x})):this.room.lastDominantSpeaker===x&&(ye.d(u,"[onRemoteTrack] [is dominant Track]"),de.current.dominantSpeakerId=x,H({type:w,payload:x}));for(let it=1;it<Me.length;it++)if(Me[it].id==x){b.type==="video"?(Me[it].videoTrack=b,Me[it].isVideoMuted=b.isMuted()):(Me[it].audioTrack=b,Me[it].isAudioMuted=b.isMuted());break}ce.current=[...Me],K({type:m,payload:Me})}catch(x){ye.e(u,"[onRemoteTrack]",x)}});It(this,"onRemoteTrackRemoved",b=>{try{ye.d(u,"[onRemoteTrackRemoved]","track");const{setUsers:x,usersRef:H}=this.context,K=H.current;for(let de=0;de<K.length;de++)if(K[de].id===b.ownerEndpointId){K[de].videoTrack=void 0,K[de].isVideoMuted=!0;break}H.current=[...K],x({type:m,payload:K})}catch(x){ye.e(u,"[onRemoteTrackRemoved]",x)}});It(this,"onTrackMuted",b=>{try{ye.d(u,"[onTrackMuted]");const{setUsers:x,usersRef:H}=this.context,K=H.current;let de=b.ownerEndpointId;b.isLocal()&&(de=K[0].id);for(let ce=0;ce<K.length;ce++)if(K[ce].id===de){b.getType()==="video"?(K[ce].videoTrack=b,K[ce].isVideoMuted=b.isMuted()):(K[ce].audioTrack=b,K[ce].isAudioMuted=b.isMuted());break}H.current=[...K],x({type:m,payload:K},b.isLocal())}catch(x){ye.e(u,"[onTrackMuted]",x)}});It(this,"setConstraints",b=>{const{settings:x}=this.context;if(ye.d(u,"[setConstraints]",b),b){const H={};H[b]={maxHeight:480},this.room.setReceiverConstraints({lastN:x.mode===k?1:3,onStageEndpoints:[b],defaultConstraints:{maxHeight:x.mode===k?0:180},constraints:H})}});It(this,"onDominantSpeakerChanged",b=>{try{ye.d(u,"[onDominantSpeakerChanged]",b);const{users:x,dispatch:H,globalRef:K}=this.context;for(let de=0;de<x.length;de++)if(x[de].id===b){K.current.dominantSpeakerId=b,H({type:w,payload:b});break}}catch(x){ye.e(u,"[onDominantSpeakerChanged]",x)}});It(this,"onRemoteStatsUpdated",(b,x)=>{try{ye.d(u,"[onRemoteStatsUpdated]",b),x.connectionQuality&&(__nested_webpack_require_965807__.g.ccUsersStats[b]=x.connectionQuality)}catch(H){ye.e(u,"[onRemoteStatsUpdated]",H)}});It(this,"onLocalStatsUpdated",b=>{try{ye.d(u,"[onLocalStatsUpdated]",b);const{users:x}=this.context;b.connectionQuality&&(__nested_webpack_require_965807__.g.ccUsersStats[x[0].id]=b.connectionQuality)}catch(x){ye.e(u,"[onLocalStatsUpdated]",x)}});It(this,"onParticipantConnStatusChanged",(b,x)=>{try{ye.d(u,"[onParticipantConnStatusChanged] id= "+b+"status= ",x);const{setUsers:H,usersRef:K}=this.context,de=K.current;for(let ce=0;ce<de.length;ce++)if(de[ce].id===b){de[ce].status=x;break}K.current=[...de],H({type:m,payload:de})}catch(H){ye.e(u,"[onParticipantConnStatusChanged]",H)}});It(this,"startLastNLoop",()=>{this.LastNLoopStarted=!0});It(this,"debounce",(b,x)=>{let H;return function(){const K=this,de=arguments;clearTimeout(H),H=setTimeout(()=>b.apply(K,de),x)}});It(this,"sortArrayWithOtherArray",(b,x)=>{var Me,it;const{globalRef:H}=this.context,K=[],de=[],ce=[];for(let lt=1;lt<b.length;lt++)((Me=b[lt])==null?void 0:Me.id)===((it=H.current)==null?void 0:it.dominantSpeakerId)?ce.push(b[lt]):x.includes(b[lt].id)?K.push(b[lt]):de.push(b[lt]);return[b[0],...K.sort((lt,Rt)=>{const ht=x.indexOf(lt.id),mt=x.indexOf(Rt.id);return(ht>-1?ht:1/0)-(mt>-1?mt:1/0)}),...de,...ce]});It(this,"onLastNChanged",(b,x)=>{try{const{setUsers:H,usersRef:K}=this.context,de=K.current;let ce=[],Me=[];if(this.LastNLoopStarted||this.startLastNLoop(),ce=Array.from(new Set([...x,...this.LastNId])),b==null?void 0:b.length)for(let it=0;it<ce.length;it++)b.includes(ce[it])||Me.push(ce[it]);else Me=ce;this.LastNId=Me,K.current=[...this.sortArrayWithOtherArray(de,Me)],H({type:m,payload:this.sortArrayWithOtherArray(de,Me)}),ye.d(u,"[onLastNChanged]")}catch(H){ye.e(u,"[onLastNChanged]",H)}});It(this,"onSubjectChanged",b=>{try{ye.d(u,"[onSubjectChanged]","data");const{globalState:x,dispatch:H}=this.context;if(b){const K=JSON.parse(b);if(K!=null&&K.converted&&!x.switchedToVideoCall){const de=K==null?void 0:K.converted;H({type:nt,payload:{switchToVideoCallRequestInitiator:de.initiator,switchToVideoCallRequestResponder:de.responder}})}}}catch(x){ye.e(u,"[onSubjectChanged]",x)}});It(this,"onScreenShareStarted",({value:b})=>{try{ye.d(u,"[onScreenShareStarted]","value");const{dispatch:x}=this.context;x({type:I,payload:b})}catch(x){ye.e(u,"[onScreenShareStarted]",x)}});It(this,"onScreenShareStopped",({value:b})=>{try{ye.d(u,"[onScreenShareStopped]","value");const{globalState:x,dispatch:H}=this.context;x.pinnedUserId===b&&H({type:I,payload:""})}catch(x){ye.e(u,"[onScreenShareStarted]",x)}});It(this,"onScreenRecordingStarted",({attributes:b})=>{var x;try{ye.d(u,"[onScreenRecordingStarted]",b);const{dispatch:H,nativeManager:K}=this.context;H({type:N,payload:b}),(x=K.current)==null||x.onRecordingToggled({recordingStarted:!0,user:tt(b)})}catch(H){ye.e(u,"[onScreenRecordingStarted]",H)}});It(this,"onTryingToStartRecording",({attributes:b})=>{try{ye.d(u,"[onTryingToStartRecording]",b);const{dispatch:x}=this.context;x({type:B,payload:b})}catch(x){ye.e(u,"[onTryingToStartRecording]",x)}});It(this,"onTryingToStopRecording",({attributes:b})=>{try{ye.d(u,"[onTryingToStopRecording]",b);const{dispatch:x}=this.context;x({type:J,payload:null})}catch(x){ye.e(u,"[onTryingToStopRecording]",x)}});It(this,"onScreenRecordingStopped",({attributes:b})=>{var x;try{ye.d(u,"[onScreenRecordingStopped]",b);const{dispatch:H,nativeManager:K}=this.context;H({type:R,payload:null}),(x=K.current)==null||x.onRecordingToggled({recordingStarted:!1,user:tt(b)})}catch(H){ye.e(u,"[onScreenRecordingStopped]",H)}});It(this,"onParticipantMuted",({attributes:b})=>{var x;try{ye.d(u,"[onParticipantMuted]","attributes");const{users:H,nativeManager:K}=this.context;let de=null,ce=null;for(let Me=0;Me<H.length;Me++)H[Me].id===b.mutedParticipantId?ce=tt(H[Me]):H[Me].id===b.participantMutedBy&&(de=tt(H[Me])),b.mutedParticipantId==H[0].id&&this.muteAudio(),ce&&de&&((x=K==null?void 0:K.current)==null||x.onUserMuted({muted:tt(ce),mutedBy:tt(de)}))}catch(H){ye.e(u,"[onParticipantMuted]",H)}});It(this,"onUserObjectReceived",(b,x)=>{var Me,it;ye.d(u,"[onUserObjectReceived]"+x,"data");const{setUsers:H,nativeManager:K,usersRef:de}=this.context,ce=de.current;for(let lt=0;lt<ce.length;lt++)if(ce[lt].id==x&&!ce[lt].uid){ce[lt].uid=b.attributes.uid,ce[lt].avatar=b.attributes.avatar,ce[lt].uid=b.attributes.uid,ce[lt].joinedAt=b.attributes.joinedAt,b.attributes.isPresenter==="false"?ce[lt].isPresenter=!1:b.attributes.isPresenter==="true"&&(ce[lt].isPresenter=!0),(Me=K.current)==null||Me.onUserJoined(ce[lt]);break}de.current=[...ce],H({type:m,payload:ce}),(it=K.current)==null||it.onUserListChanged(ce)});It(this,"unload",()=>{var de,ce;const{globalRef:b,users:x}=this.context;b.current.callEnded=!0;const H=x[0],K=[];if(H&&H.audioTrack)try{K.push((de=H==null?void 0:H.audioTrack)==null?void 0:de.dispose())}catch(Me){ye.e(u,"unload audio catch",Me)}if(H&&H.videoTrack)try{K.push((ce=H==null?void 0:H.videoTrack)==null?void 0:ce.dispose())}catch(Me){ye.e(u,"unload videoTrack catch",Me)}return Promise.all(K)});It(this,"leave",()=>_r(this,null,function*(){var b;try{if(this.alreadyLeft)return;this.alreadyLeft=!0,this.localUserEndsCall||(this.localUserEndsCall=!0);const{nativeManager:x}=this.context;yield this.unload(),ye.d(u,"[leave]"),(b=this.room)==null||b.leave().then(()=>{var H,K,de;(H=this.connection)==null||H.disconnect(),(K=x.current)!=null&&K.removeListener&&((de=x.current)==null||de.removeListener())}).catch()}catch(x){ye.e(u,"[leave]",x)}}));It(this,"requestingToSwitchToVideoCall",()=>{var b;try{if(un.isPresenter===!1)return;ye.d(u,"[requestingToSwitchToVideoCall");const{users:x,dispatch:H}=this.context;(b=this.room)==null||b.sendCommandOnce(j,{attributes:{initiator:JSON.stringify(fn(Ht({},x[0]),{audioTrack:null,videoTrack:null}))}}),H({type:W,payload:x[0]})}catch(x){ye.e(u,"[requestingToSwitchToVideoCall",x)}});It(this,"onSwitchToVideoRequest",(b,x)=>{var H;try{ye.d(u,"[onSwitchToVideoRequest]",x);const{users:K,globalState:de,dispatch:ce}=this.context,Me=((H=b==null?void 0:b.attributes)==null?void 0:H.initiator)&&JSON.parse(b.attributes.initiator);x===K[0].id||de.switchedToVideoCall||ce({type:he,payload:Me})}catch(K){ye.e(u,"[onSwitchToVideoRequest",K)}});It(this,"onSwitchToVideoCallResponse",b=>{var x;try{ye.d(u,"[onSwitchToVideoCallResponse]",b);const{users:H}=this.context;(x=this.room)==null||x.sendCommandOnce(q,{responder:JSON.stringify(tt(H[0])),attributes:{response:b}})}catch(H){ye.e(u,"[onSwitchToVideoCallResponse]",H)}});It(this,"onSwitchToVideoCallResponseReceived",(b,x)=>{try{ye.d(u,"[onSwitchToVideoCallResponseReceived]"+typeof b.attributes.response);const{users:H,globalState:K,dispatch:de,settings:ce,nativeManager:Me}=this.context;if(!K.switchedToVideoCall){const it=H.find(Rt=>Rt.id===x),lt={initiator:tt(K.switchToVideoCallRequestInitiator),responder:tt(it),response:!0};b.attributes.response==="true"?(de({type:fe,payload:it}),this.switchToVideoCall(),Me.current.onSwitchedToVideoCall({sessionId:ce.sessionId,initiator:tt(K.switchToVideoCallRequestInitiator),responder:tt(it)}),this.room.setSubject(JSON.stringify({converted:lt}))):de({type:Le,payload:it})}}catch(H){ye.e(u,"[onSwitchToVideoCallResponseReceived]",H)}});It(this,"switchToVideoCall",()=>{try{const{nativeManager:b}=this.context;ye.d(u,"[switchToVideoCall]");const{setSettings:x}=this.context;this.createVideoTrack(),x({type:l,payload:null}),b.current.resetAudioDeviceForVideoCall()}catch(b){ye.e(u,"[switchToVideoCall]",b)}});It(this,"startRecording",()=>{var b;try{if(un.isPresenter===!1)return;ye.d(u,"[startRecording]");const{globalState:x,globalRef:H,users:K}=this.context;if((b=H==null?void 0:H.current)!=null&&b.callEnded)return;x.isRecording||this.room.startRecording({mode:"file"}).then(de=>{this.room.sendCommandOnce(pe,{attributes:Ht({recordId:de._sessionID},K[0])})}).catch(de=>{ye.e(u,"[startRecording] error starting to retry count="+this.recordingRetry,de),setTimeout(()=>{this.startRecording()},5e3),this.recordingRetry===0&&this.room.sendCommandOnce(Se,{attributes:Ht({},K[0])}),this.recordingRetry++})}catch(x){ye.e(u,"[startRecording]",x)}});It(this,"stopRecording",()=>{var b,x;try{if(un.isPresenter===!1)return;ye.d(u,"[stopRecording]");const{globalState:H,users:K}=this.context;H.isRecording&&((b=H.recorder)==null?void 0:b.id)===K[0].id&&(this.room.sendCommandOnce(Ae,{attributes:tt(K[0])}),this.room.stopRecording(H.recordId)),H.tryingToStartRecording&&((x=H.recorder)==null?void 0:x.id)===K[0].id&&(this.recordingRetry=0,this.room.sendCommandOnce(le,{}))}catch(H){ye.e(u,"[stopRecording]",H)}});It(this,"flip",()=>{const{users:b,globalState:x,dispatch:H}=this.context;b[0].videoTrack&&(b[0].videoTrack._switchCamera(),H({type:ne,payload:!x.cameraFlipped}))});It(this,"flipCamera",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[flipCamera]"),this.flipCameraTimer&&clearTimeout(this.flipCameraTimer),this.flipCameraTimer=setTimeout(this.flip,300)}catch(b){ye.e(u,"[flipCamera]",b)}});It(this,"muteAudio",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[muteAudio]");const{users:b}=this.context;b[0].audioTrack&&(b[0].audioTrack.isMuted()||b[0].audioTrack.mute())}catch(b){ye.e(u,"[muteAudio]",b)}});It(this,"unMuteAudio",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[unMuteAudio]");const{users:b}=this.context;b[0].audioTrack&&b[0].audioTrack.isMuted()&&b[0].audioTrack.unmute()}catch(b){ye.e(u,"[unMuteAudio]",b)}});It(this,"toggleAudioButton",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[toggleAudioButton]");const{users:b}=this.context;b[0].audioTrack&&(b[0].audioTrack.isMuted()?b[0].audioTrack.unmute():b[0].audioTrack.mute())}catch(b){ye.e(u,"[toggleAudioButton]",b)}});It(this,"muteVideo",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[muteVideo]");const{users:b}=this.context;b[0].videoTrack&&(b[0].videoTrack.isMuted()||b[0].videoTrack.mute())}catch(b){ye.d(u,"[muteVideo]",b)}});It(this,"unMuteVideo",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[unMuteVideo]");const{users:b}=this.context;b[0].videoTrack&&b[0].videoTrack.isMuted()&&b[0].videoTrack.unmute()}catch(b){ye.d(u,"[unMuteVideo]",b)}});It(this,"toggleVideoButton",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[toggleVideoButton]");const{users:b}=this.context;b[0].videoTrack&&(b[0].videoTrack.isMuted()?b[0].videoTrack.unmute():b[0].videoTrack.mute())}catch(b){ye.d(u,"[toggleVideoButton]",b)}});It(this,"enterPipMode",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[enterPipMode]");const{dispatch:b}=this.context;b({type:C,payload:!0})}catch(b){ye.e(u,"[enterPipMode]",b)}});It(this,"exitPipMode",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[exitPipMode]");const{dispatch:b}=this.context;b({type:C,payload:!1})}catch(b){ye.e(u,"[exitPipMode]",b)}});ye.d(u,"[constructor]"),this.connection=null,this.alreadyLeft=!1,this.room=null,this.localUserEndsCall=!1,this.state={LastNId:[]}}componentDidMount(){this.initialize()}makeConnection(){var b,x;try{const{settings:H,setConnection:K}=this.context;ye.d(u,"[makeConnection]");const de=H.domain,ce={hosts:{domain:de,muc:"conference."+de,focus:"focus."+de},serviceUrl:"wss://xmpp."+de+"/xmpp-websocket",bosh:"https://xmpp."+de+"/http-bind"};this.connection=new(a()).JitsiConnection(null,((b=H==null?void 0:H.RTCUser)==null?void 0:b.jwt)||null,ce),K(this.connection),(x=this.connection)==null||x.connect(),this.addConnectionEventListener()}catch(H){ye.e(u,"[makeConnection]",H)}}addConnectionEventListener(){try{ye.d(u,"[addConnectionEventListener]"),this.connection.addEventListener(a().events.connection.CONNECTION_ESTABLISHED,this.onConnectionSuccess),this.connection.addEventListener(a().events.connection.CONNECTION_FAILED,this.onConnectionFailed),this.connection.addEventListener(a().events.connection.CONNECTION_DISCONNECTED,()=>{ye.d(u,"[addConnectionEventListener] [CONNECTION_DISCONNECTED]")}),this.connection.addEventListener(a().events.connection.CONNECTION_DROPPED_ERROR,()=>{ye.d(u,"[addConnectionEventListener] [CONNECTION_DROPPED_ERROR]")})}catch(b){ye.e(u,"[addConnectionEventListener] [error]",b)}}render(){return null}}It(A,"contextType",Kt);const O=A;(F=>{if(F.$===void 0){const X=__nested_webpack_require_965807__(6663);X(F),F.$=X}})(__nested_webpack_require_965807__.g||window);const G={width:0,height:0},z={width:0,height:0},re=(0,E.forwardRef)(function(F,X){var de,ce,Me,it,lt,Rt,ht,mt,Vt,Lt,at,gn,St,wt,dn,tr,En,Or,qn,Rn,cr,Nn,Fn,Be,Qn,vr,Dr,kt,nr,rr,Ti;un.isPresenter=F.isPresenter,un.mode=F.mode;const b={enableVideoTileClick:(de=F.enableVideoTileClick)!=null?de:!0,enableDraggableVideoTile:(ce=F.enableDraggableVideoTile)!=null?ce:!0},x={videoFit:(it=(Me=F.mainVideoSetting)==null?void 0:Me.videoFit)!=null?it:"contain",fullScreenButton:{visibility:(ht=(Rt=(lt=F.mainVideoSetting)==null?void 0:lt.fullScreenButton)==null?void 0:Rt.visibility)!=null?ht:!0,position:(Lt=(Vt=(mt=F.mainVideoSetting)==null?void 0:mt.fullScreenButton)==null?void 0:Vt.position)!=null?Lt:"bottom-right"},userListButton:{visibility:(St=(gn=(at=F.mainVideoSetting)==null?void 0:at.userListButton)==null?void 0:gn.visibility)!=null?St:!0,position:(tr=(dn=(wt=F.mainVideoSetting)==null?void 0:wt.userListButton)==null?void 0:dn.position)!=null?tr:"bottom-right"},zoomButton:{visibility:(qn=(Or=(En=F.mainVideoSetting)==null?void 0:En.zoomButton)==null?void 0:Or.visibility)!=null?qn:!0,position:(Nn=(cr=(Rn=F.mainVideoSetting)==null?void 0:Rn.zoomButton)==null?void 0:cr.position)!=null?Nn:"bottom-right"},nameLabel:{visibility:(Qn=(Be=(Fn=F.mainVideoSetting)==null?void 0:Fn.nameLabel)==null?void 0:Be.visibility)!=null?Qn:!0,position:(kt=(Dr=(vr=F.mainVideoSetting)==null?void 0:vr.nameLabel)==null?void 0:Dr.position)!=null?kt:"bottom-left",color:(Ti=(rr=(nr=F.mainVideoSetting)==null?void 0:nr.nameLabel)==null?void 0:rr.color)!=null?Ti:At.blackLightXX}},H=(0,E.useRef)(),K=(0,E.useRef)();return(0,E.useImperativeHandle)(X,()=>({muteAudio:()=>{var nn;return(nn=H.current)==null?void 0:nn.muteAudio()},unMuteAudio:()=>{var nn;return(nn=H.current)==null?void 0:nn.unMuteAudio()},switchCamera:()=>{var nn;return(nn=H.current)==null?void 0:nn.flipCamera()},pauseVideo:()=>{var nn;return(nn=H.current)==null?void 0:nn.muteVideo()},unPauseVideo:()=>{var nn;return(nn=H.current)==null?void 0:nn.unMuteVideo()},endCall:()=>{var nn;return(nn=H.current)==null?void 0:nn.leave()},switchToVideoCall:()=>{var nn;return(nn=H.current)==null?void 0:nn.requestingToSwitchToVideoCall()},startRecording:()=>{var nn;return(nn=H.current)==null?void 0:nn.startRecording()},stopRecording:()=>{var nn;return(nn=H.current)==null?void 0:nn.stopRecording()},toggleAudioButton:()=>{var nn;return(nn=H.current)==null?void 0:nn.toggleAudioButton()},toggleVideoButton:()=>{var nn;return(nn=H.current)==null?void 0:nn.toggleVideoButton()},enterPipMode:()=>{var nn;return(nn=H.current)==null?void 0:nn.enterPipMode()},exitPipMode:()=>{var nn;return(nn=H.current)==null?void 0:nn.exitPipMode()},setAudioMode:nn=>{var Kn;return(Kn=K.current)==null?void 0:Kn.setAudioMode(nn)},getAudioModes:()=>{var nn;return(nn=K.current)==null?void 0:nn.getAudioModes()}})),(0,E.useEffect)(()=>{ye.d("index.js","[index.js] [useEffect]")},[]),d().createElement(mn,{reducer:$t,initialState:fn(Ht(Ht({},F),b),{videoSettings:x})},d().createElement(Kt.Consumer,null,nn=>d().createElement(o.View,{onLayout:Kn=>{z.height===0&&nn.globalState.inPIPMode&&(z.width=Kn.nativeEvent.layout.width,z.height=Kn.nativeEvent.layout.height),G.height!==0||nn.globalState.inPIPMode||(G.width=Kn.nativeEvent.layout.width,G.height=Kn.nativeEvent.layout.height),nn==null||nn.dispatch({type:y,payload:Kn.nativeEvent.layout})},style:[{backgroundColor:At.palette.red},G.height===0||nn.globalState.inPIPMode?nn.globalState.inPIPMode&&z.height!==0?{width:z.width,height:z.height}:{flex:1}:{width:G.width,height:G.height}]},d().createElement(O,{ref:Kn=>{nn.jitsiManager.current=Kn,H.current=Kn}}),d().createElement(Ui,Ht({ref:Kn=>{nn.nativeManager.current=Kn,K.current=Kn}},nn.settings)),d().createElement(ki,null))))}),we=(0,E.forwardRef)(function(mt,ht){var Vt=mt,{callsettings:F={},onCallEndButtonPressed:X,onEndCall:b,onUserJoined:x,onUserLeft:H,onUserListChanged:K,onRecordingToggled:de,onUserMuted:ce,onAudioModeChanged:Me,getAudioModesOnSuccess:it,onCallSwitchedToVideo:lt}=Vt,Rt=io(Vt,["callsettings","onCallEndButtonPressed","onEndCall","onUserJoined","onUserLeft","onUserListChanged","onRecordingToggled","onUserMuted","onAudioModeChanged","getAudioModesOnSuccess","onCallSwitchedToVideo"]);var Lt;return d().createElement(re,Ht(fn(Ht({ref:ht},F),{enableVideoTileClick:F.EnableVideoTileClick,sessionId:F.sessionID,RTCUser:F.user,onCallEndButtonPressed:X,onEndCall:b,onUserJoined:x,onUserLeft:H,onUserListChanged:K,onRecordingToggled:de,onUserMuted:ce,onAudioModeChanged:Me,getAudioModesOnSuccess:it,onCallSwitchedToVideo:lt,mainVideoSetting:F.MainVideoContainerSetting,enableDefaultLayout:F.defaultLayout,isAudioOnly:F.isAudioOnly,hideAudioMuteButton:!F.ShowMuteAudioButton,hideEndCallButton:!F.ShowEndCallButton,hidePauseVideoButton:!F.ShowPauseVideoButton,hideVideoSwitchButton:!F.ShowSwitchCameraButton,showRecordingButton:F.ShowRecordingButton,startRecordingOnCallStart:F.StartRecordingOnCallStart,hideAudioModeButton:!F.ShowAudioModeButton,REGION:F.region,mode:F.mode,domain:F.domain,defaultAudioMode:F.defaultAudioMode,startAudioMuted:F.StartAudioMuted,startVideoMuted:F.StartVideoMuted,appId:F.appId,analyticsSettings:F.analyticsSettings,showSwitchToVideoCallButton:F.ShowSwitchToVideoCallButton,avatarMode:(Lt=F.AvatarMode)==null?void 0:Lt.toLowerCase()}),Rt))})})(),__webpack_exports__})())},878:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__878__},156:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__156__},925:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__925__},559:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__559__},650:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__650__},394:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__394__},941:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__941__}},__webpack_module_cache__={};function __webpack_require__(E){var d=__webpack_module_cache__[E];if(d!==void 0)return d.exports;var o=__webpack_module_cache__[E]={exports:{}};return __webpack_modules__[E](o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=E=>{var d=E&&E.__esModule?()=>E.default:()=>E;return __webpack_require__.d(d,{a:d}),d},__webpack_require__.d=(E,d)=>{for(var o in d)__webpack_require__.o(d,o)&&!__webpack_require__.o(E,o)&&Object.defineProperty(E,o,{enumerable:!0,get:d[o]})},__webpack_require__.o=(E,d)=>Object.prototype.hasOwnProperty.call(E,d),__webpack_require__.r=E=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CometChatCalls:()=>yt,default:()=>Zt});var E=__webpack_require__(173),d=__webpack_require__.n(E);function o(ae){ae!=null&&(typeof ae=="string"&&(ae=ae.trim()),typeof ae=="object"&&Object.keys(ae).length===0&&(ae=void 0));var te=["",0,"0",!1,null,"null",void 0,"undefined"];return te.includes(ae)}function l(ae){try{return JSON.stringify(ae),!0}catch(te){return!1}}var v=function(){function ae(){}return ae.log=function(te,Ee){console.log(te,Ee)},ae.error=function(te,Ee){console.log(te,Ee)},ae.info=function(te,Ee){console.info(te,Ee)},ae}();function m(ae){typeof(ae==null?void 0:ae.toString)=="function"||typeof ae=="string"?console.error(ae.toString()):l(ae)?console.error(ae!=null&&ae.message?ae==null?void 0:ae.message:JSON.stringify(ae)):console.error(ae)}var y=function(){function ae(te){o(te.onUserJoined)||(this.onUserJoined=te.onUserJoined),o(te.onUserLeft)||(this.onUserLeft=te.onUserLeft),o(te.onUserListUpdated)||(this.onUserListUpdated=te.onUserListUpdated),o(te.onAudioModesUpdated)||(this.onAudioModesUpdated=te.onAudioModesUpdated),o(te.onCallEnded)||(this.onCallEnded=te.onCallEnded),o(te.onCallEndButtonPressed)||(this.onCallEndButtonPressed=te.onCallEndButtonPressed),o(te.onError)||(this.onError=te.onError),o(te.onRecordingStarted)||(this.onRecordingStarted=te.onRecordingStarted),o(te.onRecordingStopped)||(this.onRecordingStopped=te.onRecordingStopped),o(te.onUserMuted)||(this.onUserMuted=te.onUserMuted),o(te.onCallSwitchedToVideo)||(this.onCallSwitchedToVideo=te.onCallSwitchedToVideo)}return ae}(),U=function(){return U=Object.assign||function(ae){for(var te,Ee=1,ve=arguments.length;Ee<ve;Ee++){te=arguments[Ee];for(var et in te)Object.prototype.hasOwnProperty.call(te,et)&&(ae[et]=te[et])}return ae},U.apply(this,arguments)},p=function(ae,te,Ee){if(Ee||arguments.length===2)for(var ve=0,et=te.length,ze;ve<et;ve++)(ze||!(ve in te))&&(ze||(ze=Array.prototype.slice.call(te,0,ve)),ze[ve]=te[ve]);return ae.concat(ze||Array.prototype.slice.call(te))},g=function(){function ae(){}return ae.addCallEventListener=function(te,Ee){try{ae.callHandlers=ae==null?void 0:ae.callHandlers.filter(function(ve){return ve._name!=te}),ae.callHandlers=p(p([],ae.callHandlers,!0),[U({_name:te},new y(Ee))],!1)}catch(ve){console.error("ListenerHandlers: addCallEventListener",ve)}},ae.removeCallEventListener=function(te){try{ae.callHandlers=ae==null?void 0:ae.callHandlers.filter(function(Ee){return Ee._name!==te})}catch(Ee){console.error("ListenerHandlers: removeCallEventListener",Ee)}},ae.callHandlers=[],ae}(),_={CALL_TOKENS:"call_tokens"},w="__APP_ID__",I="__REGION__",N="https://".concat(w,".call-").concat(I,".cometchat.io/v3.0/"),B=function(ae){return new Promise(function(te){var Ee=new Headers;if(Ee.append("content-Type","application/json"),Ee.append("Accept","application/json"),typeof ae.headers=="object")for(var ve in ae.headers)Ee.append(ve,ae.headers[ve]);var et={method:"POST",headers:Ee,body:JSON.stringify(ae.data)};fetch(ae.url,et).then(function(ze){return ze.json()}).then(function(ze){te({error:null,data:ze})}).catch(function(ze){console.log(ze),te({error:ze,data:null})})})},J=function(ae){return new Promise(function(te){var Ee=new Headers;if(Ee.append("Accept","application/json"),typeof ae.headers=="object")for(var ve in ae.headers)Ee.append(ve,ae.headers[ve]);var et={method:"GET",headers:Ee};fetch(ae.url,et).then(function(ze){return ze.json()}).then(function(ze){te({error:null,data:ze})}).catch(function(ze){console.log(ze),te({error:ze,data:null})})})},R=function(ae,te,Ee,ve){function et(ze){return ze instanceof Ee?ze:new Ee(function(Nt){Nt(ze)})}return new(Ee||(Ee=Promise))(function(ze,Nt){function Et(sn){try{Ot(ve.next(sn))}catch(Dn){Nt(Dn)}}function Gt(sn){try{Ot(ve.throw(sn))}catch(Dn){Nt(Dn)}}function Ot(sn){sn.done?ze(sn.value):et(sn.value).then(Et,Gt)}Ot((ve=ve.apply(ae,te||[])).next())})},W=function(ae,te){var Ee={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},ve,et,ze,Nt;return Nt={next:Et(0),throw:Et(1),return:Et(2)},typeof Symbol=="function"&&(Nt[Symbol.iterator]=function(){return this}),Nt;function Et(Ot){return function(sn){return Gt([Ot,sn])}}function Gt(Ot){if(ve)throw new TypeError("Generator is already executing.");for(;Nt&&(Nt=0,Ot[0]&&(Ee=0)),Ee;)try{if(ve=1,et&&(ze=Ot[0]&2?et.return:Ot[0]?et.throw||((ze=et.return)&&ze.call(et),0):et.next)&&!(ze=ze.call(et,Ot[1])).done)return ze;switch(et=0,ze&&(Ot=[Ot[0]&2,ze.value]),Ot[0]){case 0:case 1:ze=Ot;break;case 4:return Ee.label++,{value:Ot[1],done:!1};case 5:Ee.label++,et=Ot[1],Ot=[0];continue;case 7:Ot=Ee.ops.pop(),Ee.trys.pop();continue;default:if(ze=Ee.trys,!(ze=ze.length>0&&ze[ze.length-1])&&(Ot[0]===6||Ot[0]===2)){Ee=0;continue}if(Ot[0]===3&&(!ze||Ot[1]>ze[0]&&Ot[1]<ze[3])){Ee.label=Ot[1];break}if(Ot[0]===6&&Ee.label<ze[1]){Ee.label=ze[1],ze=Ot;break}if(ze&&Ee.label<ze[2]){Ee.label=ze[2],Ee.ops.push(Ot);break}ze[2]&&Ee.ops.pop(),Ee.trys.pop();continue}Ot=te.call(ae,Ee)}catch(sn){Ot=[6,sn],et=0}finally{ve=ze=0}if(Ot[0]&5)throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}},he=function(){function ae(){}return ae.generateToken=function(te,Ee,ve){return R(this,void 0,void 0,function(){var et;return W(this,function(ze){return et=N.replace(w,ve.getAppId()).replace(I,ve.getRegion()),ve.getHost()&&(et=ve.getHost()),[2,B({url:"".concat(et).concat(_.CALL_TOKENS),headers:{authToken:te},data:{sessionId:Ee}})]})})},ae.verifyToken=function(te,Ee){return R(this,void 0,void 0,function(){var ve;return W(this,function(et){return ve=N.replace(w,Ee.getAppId()).replace(I,Ee.getRegion()),Ee.getHost()&&(ve=Ee.getHost()),[2,J({url:"".concat(ve).concat(_.CALL_TOKENS),headers:{callToken:te}})]})})},ae}(),fe={DEFAULT_STORE:"cometchat",MSG_VER_PRE:"store-ver-pre",MSG_VER_POST:"store-ver-post"},Le={API_ERROR:{code:"API_ERROR"}},nt={us:"us",eu:"eu",in:"in"},be={ZERO:0,MSGS_LIMIT:30,MSGS_MAX_LIMIT:100,USERS_LIMIT:30,USERS_MAX_LIMIT:100,GROUPS_LIMIT:30,GROUPS_MAX_LIMIT:100,CONVERSATION_MAX_LIMIT:50,CALL_TIMEOUT:45,DEFAULT_MSG_ID:0,DEFAULT_MAX_TYPING_INDICATOR_LIMIT:5,REGION_DEFAULT:"eu",REGION_DEFAULT_EU:"eu",REGION_DEFAULT_US:"us",REGION_DEFAULT_IN:"in",REGION_DEFAULT_PRIVATE:"private"},Te;(function(ae){ae.Public="public",ae.Private="private",ae.Protected="protected",ae.Password="password"})(Te||(Te={}));var C={PUBLIC:"public",PRIVATE:"private",PROTECTED:"password",PASSWORD:"password"},st;(function(ae){ae.Admin="admin",ae.Moderator="moderator",ae.Member="member"})(st||(st={}));var _e={ADMIN:"admin",MODERATOR:"moderator",PARTICIPANT:"participant"},De={platform:"REACT_NATIVE",sdkVersion:"v3.0.11",apiVersion:"v3.0",sdkVersionWithUnderScore:"3_0_11",userAgent:"cc_react_native_sdk"},Xe={platform:"react-native",sdkVersion:"3.0.11",sdk:"%s@%s"},ne={CONVERSATION:{TYPE:{CHAT:"chat",GROUP_CHAT:"groupchat"}}},Ze={analyticsHost:"metrics-%s.cometchat.io",analyticsVersion:"v1"},Ue={COMMON_STORE:"common_store",MESSAGE_LISTENERS_LIST:"message_listeners_list",USERS_STORE:"users_store",MESSAGES_STORE:"messages_store",KEYS_STORE:"keys_store",STORE_STRING:"%s:%s",KEY_STRING:"%s/%s",KEY_USER:"user",KEY_APP_SETTINGS:"app_settings",KEY_APP_ID:"appId",KEY_DEVICE_ID:"deviceId",KEY_MESSAGE_LISTENER_LIST:"all"},dt={RESPONSE_KEYS:{KEY_DATA:"data",KEY_META:"meta",KEY_CURSOR:"cursor",KEY_ACTION:"action",KEY_MESSAGE:"message",KEY_ERROR:"error",KEY_ERROR_DETAILS:"details",KEY_ERROR_CODE:"code",KEY_ERROR_MESSAGE:"message",KEY_AUTH_TOKEN:"authToken",KEY_WS_CHANNEL:"wsChannel",KEY_IDENTITY:"identity",KEY_SERVICE:"identity",KEY_ENTITIES:"entities",KEY_ENTITITY:"entity",KEY_ENTITYTYPE:"entityType",KEY_ATTACHMENTS:"attachments",CODE_REQUEST_OK:200,CODE_BAD_REQUEST:401,UNREAD_UNDELIVERED_KEYS:{ENTITY:"entity",ENTITY_TYPE:"entityType",ENTITY_Id:"entityId",COUNT:"count"},GROUP_MEMBERS_RESPONSE:{SUCCESS:"success",ERROR:"error",MESSAGE:"message"},KEY_ENTITY_TYPE:{USER:"user",GROUP:"group"}}},Ke={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"type",RECIPIENT:"recipient",MESSAGE_ID:"messageId",RECEIVED:"delivered",DELIVERED_AT:"deliveredAt",ID:"id",TIME:"time",DELIVERED_TO_ME_AT:"deliveredToMeAt"},ie={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"type",RECIPIENT:"recipient",MESSAGE_ID:"messageId",READ:"read",READ_AT:"readAt",ID:"id",TIME:"time",READ_BY_ME_AT:"readByMeAt"},f={TYPE:{TEXT:"text",MEDIA:"media",IMAGE:"image",VIDEO:"video",AUDIO:"audio",FILE:"file",CUSTOM:"custom"},CATEGORY:{MESSAGE:"message",ACTION:"action",CALL:"call",CUSTOM:"custom"},RECEIVER_TYPE:{USER:"user",GROUP:"group"},KEYS:{ATTATCHMENT:"attatchment",ATTATCHMENTS:"attachments",ACTION:"action",TYPE:"type",DATA:"data",ID:"id",MUID:"muid",SENDER:"sender",RECEIVER:"receiver",RECEIVER_ID:"receiverId",CATEGORY:"category",RECEIVER_TYPE:"receiverType",SENT_AT:"sentAt",STATUS:"status",TEXT:"text",URL:"url",METADATA:"metadata",RECEIPTS:"receipts",MY_RECEIPTS:"myReceipt",CUSTOM_DATA:"customData",CUSTOM_SUB_TYPE:"subType",RESOURCE:"resource"},KNOWN_MEDIA_TYPE:{IMAGE:[],VIDEO:[],AUDIO:[],FILE:[]},PAGINATION:{AFFIX:{APPEND:"append",PREPEND:"prepend"},CURSOR_FILEDS:{ID:"id",SENT_AT:"sentAt"},CURSOR_AFFIX_DEFAULT:"prepend",CURSOR_FIELD_DEFAULT:"sentAt",KEYS:{PER_PAGE:"per_page",CURSOR_AFFIX:"cursorAffix",AFFIX:"affix",CURSOR_FIELD:"cursorField",CURSOR_VALUE:"cursorValue",UID:"uid",SENT_AT:"sentAt",ID:"id",CURRENT_PAGE:"page",UNREAD:"unread",HIDE_MESSAGES_FROM_BLOCKED_USER:"hideMessagesFromBlockedUsers",SEARCH_KEY:"searchKey",ONLY_UPDATES:"onlyUpdates",UPDATED_AT:"updatedAt",CATEGORY:"category",CATEGORIES:"categories",TYPE:"type",TYPES:"types",HIDE_REPLIES:"hideReplies",HIDE_DELETED_MESSAGES:"hideDeleted",WITH_TAGS:"withTags",TAGS:"tags"}}},P={KEYS:{EXTENSION:"extension",MIME_TYPE:"mimeType",NAME:"name",SIZE:"size",URL:"url"}},j;(function(ae){ae.ACTION="action",ae.MESSAGE="message",ae.CALL="call",ae.CUSTOM="custom"})(j||(j={}));var q={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"receiverType",META:"metadata",KEYS:{TYPING_NOTIFICATION:"typingNotification",TIMESTAMP:"timestamp"},ACTIONS:{STARTED:"started",ENDED:"ended"}},pe={ACTION_SUBJECTS:{ACTION_ON:"on",ACTION_BY:"by",ACTION_FOR:"for"},ACTION_ENTITY_TYPE:{GROUP_USER:"groupuser",USER:"user",GROUP:"group",MESSAGE:"message"},ACTION_KEYS:{ACTION_CREATED:"created",ACTION_UPDATED:"updated",ACTION_DELETED:"deleted",ENTITIES:"entities",ENTITY:"entity",ENTITY_TYPE:"entityType",TYPE_MEMBER_JOINED:"joined",TYPE_MEMBER_LEFT:"left",TYPE_MEMBER_KICKED:"kicked",TYPE_MEMBER_BANNED:"banned",TYPE_MEMBER_UNBANNED:"unbanned",TYPE_MEMBER_INVITED:"invited",TYPE_MEMBER_ADDED:"added",ACTION_SCOPE_CHANGED:"scopeChanged",ACTION_TYPE_USER:"user",ACTION_TYPE_GROUP:"group",ACTION_TYPE_GROUP_MEMBER:"groupMember",TYPE_MESSAGE_EDITED:"edited",TYPE_MESSAGE_DELETED:"deleted",ACTION_TYPE_CALL:"call",EXTRAS:"extras",SCOPE:"scope",NEW:"new",OLD:"old"},ActionMessages:{ACTION_GROUP_JOINED_MESSAGE:"%s joined",ACTION_GROUP_LEFT_MESSAGE:"%s left",ACTION_MEMBER_KICKED_MESSAGE:"%s kicked %s",ACTION_MEMBER_BANNED_MESSAGE:"%s banned %s",ACTION_MEMBER_UNBANNED_MESSAGE:"%s unbanned %s",ACTION_MEMBER_INVITED_MESSAGE:"%s banned %s",ACTION_MESSAGE_EDITED_MESSAGE:" Message Edited",ACTION_MESSAGE_DELETED_MESSAGE:"Message Deleted",ACTION_MEMBER_SCOPE_CHANGED:"%s made %s %s",ACTION_MEMBER_ADDED_TO_GROUP:"%s added %s"},ACTION_TYPE:{TYPE_MEMBER_JOINED:"joined",TYPE_MEMBER_LEFT:"left",TYPE_MEMBER_KICKED:"kicked",TYPE_MEMBER_BANNED:"banned",TYPE_MEMBER_UNBANNED:"unbanned",TYPE_MEMBER_INVITED:"invited",TYPE_MEMBER_SCOPE_CHANGED:"scopeChanged",TYPE_MESSAGE:"message",TYPE_MESSAGE_EDITED:"edited",TYPE_MESSAGE_DELETED:"deleted",TYPE_MEMBER_ADDED:"added"},ACTIONS:{MEMBER_ADDED:"added",MEMBER_JOINED:"joined",MEMBER_LEFT:"left",MEMBER_KICKED:"kicked",MEMBER_BANNED:"banned",MEMBER_UNBANNED:"unbanned",MEMBER_INVITED:"invited",MEMBER_SCOPE_CHANGED:"scopeChanged",MESSAGE_EDITED:"edited",MESSSAGE_DELETED:"deleted",TYPE_USER:"user",TYPE_GROUP:"group",TYPE_GROUP_MEMBER:"groupMember"}},Ae={REQUEST_KEYS:{DIRECTIONS:{BOTH:"both",HAS_BLOCKED_ME:"hasBlockedMe",BLOCKED_BY_ME:"blockedByMe"}}},le={CALL_MODE:{DEFAULT:"DEFAULT",SPOTLIGHT:"SPOTLIGHT"},AUDIO_MODE:{SPEAKER:"SPEAKER",EARPIECE:"EARPIECE",BLUETOOTH:"BLUETOOTH",HEADPHONES:"HEADPHONES"},CALL_TYPE:{AUDIO:"audio",VIDEO:"video"},RECEIVER_TYPE_GROUP:"group",RECEIVER_TYPE_USER:"user",CALL_KEYS:{CALL_DATA:"data",CALL_ID:"id",CALL_SESSION_ID:"sessionid",CALL_RECEIVER:"receiver",CALL_SENDER:"sender",CALL_RECEIVER_TYPE:"receiverType",CALL_STATUS:"status",CALL_TYPE:"type",CALL_INITIATED_AT:"initiatedAt",CALL_JOINED_AT:"joinedAt",CALL_LEFT_AT:"leftAt",CALL_METADATA:"metadata",CALL_ENTITIES:"entities",CALL_ENTITY_TYPE:"entityType",CALL_ENTITY:"entity",CALL_ENTITY_USER:"user",CALL_ENTITY_GROUP:"group"},CALL_STATUS:{INITIATED:"initiated",ONGOING:"ongoing",UNANSWERED:"unanswered",REJECTED:"rejected",BUSY:"busy",CANCELLED:"cancelled",ENDED:"ended"},ZOOM_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},FULL_SCREEN_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},USER_LIST_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},NAME_LABEL_DEFAULT_PARAMS:{position:"bottom-left",visible:!0,color:"#333333"},MAIN_VIDEO_CONTAINER_SETTINGS:{KEYS:{POSITION:"position",VISIBILITY:"visibility",COLOR:"color"}}},Se={KEYS:{NAME:"name",GUID:"guid",TYPE:"type",PASSWORD:"password",ICON:"icon",DESCRIPTION:"description",OWNER:"owner",METADATA:"metadata",CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",HAS_JOINED:"hasJoined",WS_CHANNEL:"wsChannel",TAGS:"tags"}},Re={KEYS:{SCOPE:"scope",UID:"uid",GUID:"guid",USER:"user",NAME:"name"}},T={UID:"uid",NAME:"name",AUTH_TOKEN:"authToken",AVATAR:"avatar",LAST_ACTIVE_AT:"lastActiveAt",LINK:"link",META_DATA:"metadata",ROLE:"role",STATUS:"status",STATUS_MESSAGE:"statusMessage",USER_NAME:"user_name",TAGS:"tags",SORT_BY:{NAME:"name",STATUS:"status"},SORT_ORDER:{ASCENDING:"asc",DESCENDING:"desc"}},k={ERROR_IO_EXCEPTION:"ERROR_IO_EXCEPTION",ERROR_JSON_EXCEPTION:"ERROR_JSON_EXCEPTION",ERROR_PASSWORD_MISSING:"ERROR_PASSWORD_MISSING",ERROR_LIMIT_EXCEEDED:"ERROR_LIMIT_EXCEEDED",ERROR_USER_NOT_LOGGED_IN:"ERROR_USER_NOT_LOGGED_IN",ERROR_INVALID_GUID:"ERROR_INVALID_GUID",ERROR_PASSWORD_MISSING_MESSAGE:"Password is mandatory for a password group",ERROR_LIMIT_EXCEEDED_MESSAGE:"Limit Exceeded Max limit of %s",ERROR_USER_NOT_LOGGED_IN_MESSAGE:"Please log in to CometChat before calling this method",ERROR_INVALID_GUID_MESSAGE:"Please provide a valid GUID",ERROR_DEFAULT_MESSAGE:"Something went wrong",ERR_SETTINGS_HASH_OUTDATED:"ERR_SETTINGS_HASH_OUTDATED",ERR_NO_AUTH:"ERR_NO_AUTH"},Y={CALL_ALREADY_INITIATED:{code:"CALL_ALREADY_INITIATED",name:"CALL_ALREADY_INITIATED",message:"There is already call in progress",details:{}},ERROR_IN_CALLING:{code:"CALL_IN_PROGRESS",name:"CALL_ALREADY_INITIATED",message:"There is already call in progress",details:{}},CANNOT_ACCEPT_CALL:{code:"OTHER_CALL_ONGOING",name:"OTHER_CALL_ONGOING",message:"There is already a call in progress",details:{}},NOT_INITIALIZED:{code:"NOT_INITIALIZED",name:"NOT_INITIALIZED",message:"Please call the CometChat.init() method before calling any other methods related to CometChat.",details:{}},NOT_LOGGED_IN:{code:"NOT_LOGGED_IN",name:"NOT_LOGGED_IN",message:"Please login before starting a call.",details:{}},SESSION_ID_REQUIRED:{code:"SESSION_ID_REQUIRED",name:"SESSION_ID_REQUIRED",message:"Please make sure you are passing correct session id.",details:{}},JWT_NOT_FOUND:{code:"JWT_NOT_FOUND",name:"JWT_NOT_FOUND",message:"There was some issue while fetching JWT from API.",details:{}},MODULE_NOT_INSTALLED:{code:"ERROR_CALL_MODULE_NOT_FOUND",name:"ERROR_CALL_MODULE_NOT_FOUND",message:"CometChat Calling module not found. Please add the CometChat Calling dependency and try again.",details:{}}},me={PARAMETER_REQUIRED:{code:"%s_NOT_PROVIDED",name:"%s_NOT_PROVIDED",message:"please provide the %s.",details:{}}},xe={GENERIC_EXCEPTION:{code:"GENERIC_EXCEPTION"},INVALID_ARGUMENT_EXCEPTION:{code:"INVALID_ARGUMENT_EXCEPTION"},INVALID_PROP_EXCEPTION:{code:"INVALID_PROP_EXCEPTION"},API_ERROR:{code:"API_ERROR"},ERROR_PRESENTER_MODE:{code:"ERROR_PRESENTER_MODE",message:"Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard"},UNKNOWN_API_ERROR:{code:"UNKNOWN_API_ERROR",message:"There is an unknown issue with the API request. Please check your internet connection and verify the api call."}},Ne={MISSING_PARAMETERS:{code:"MISSING_PARAMETERS",name:"MISSING_PARAMETERS",message:"Expected 4 parameters received 3",details:{}},INVALID_PARAMETER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s",details:{}},NO_WEBSOCKET_CONNECTION:{code:"NO_WEBSOCKET_CONNECTION",name:"NO_WEBSOCKET_CONNECTION",message:"Connection to our Websockets server is broken. Please retry after some time.",details:{}},RECEIPTS_TEMPORARILY_BLOCKED:{code:"RECEIPTS_TEMPORARILY_BLOCKED",name:"RECEIPTS_TEMPORARILY_BLOCKED",message:"Due to high load. Receipts have been blocked for your app.",details:{}},UNKNOWN_ERROR_OCCURRED:{code:"UNKNOWN_ERROR_OCCURRED",name:"UNKNOWN_ERROR_OCCURRED",message:"Unknown error occurred while marking a message as read.",details:{}}},ft={APP_SETTINGS:"app_settings",KEYS:{CHAT_HOST:"CHAT_HOST",CHAT_USE_SSL:"CHAT_USE_SSL",GROUP_SERVICE:"GROUP_SERVICE",CALL_SERVICE:"CALL_SERVICE",CHAT_WS_PORT:"CHAT_WS_PORT",CHAT_WSS_PORT:"CHAT_WSS_PORT",CHAT_HTTP_BIND_PORT:"CHAT_HTTP_BIND_PORT",CHAT_HTTPS_BIND_PORT:"CHAT_HTTPS_BIND_PORT",ADMIN_API_HOST:"ADMIN_API_HOST",CLIENT_API_HOST:"CLIENT_API_HOST",WEBRTC_HOST:"WEBRTC_HOST",WEBRTC_USE_SSL:"WEBRTC_USE_SSL",WEBRTC_WS_PORT:"WEBRTC_WS_PORT",WEBRTC_WSS_PORT:"WEBRTC_WSS_PORT",WEBRTC_HTTP_BIND_PORT:"WEBRTC_HTTP_BIND_PORT",WEBRTC_HTTPS_BIND_PORT:"WEBRTC_HTTPS_BIND_PORT",EXTENSION_LIST:"extensions",EXTENSION_KEYS:{ID:"id",NAME:"name"},JID_HOST_OVERRIDE:"JID_HOST_OVERRIDE",CHAT_HOST_OVERRIDE:"CHAT_HOST_OVERRIDE",CHAT_HOST_APP_SPECIFIC:"CHAT_HOST_APP_SPECIFIC",MODE:"MODE",CONNECTION_TYPE:"connection_type",DEFAULT_MODE:"DEFAULT",LIMITED_TRANSIENT:"LIMITED_TRANSIENT",NO_TRANSIENT:"NO_TRANSIENT",POLLING_ENABLED:"POLLING_ENABLED",POLLING_INTERVAL:"POLLING_INTERVAL",ANALYTICS_PING_DISABLED:"ANALYTICS_PING_DISABLED",ANALYTICS_HOST:"ANALYTICS_HOST",ANALYTICS_VERSION:"ANALYTICS_VERSION",ANALYTICS_USE_SSL:"ANALYTICS_USE_SSL",SETTINGS_HASH:"settingsHash",SETTINGS_HASH_RECEIVED_AT:"settingsHashReceivedAt",DENY_FALLBACK_TO_POLLING:"DENY_FALLBACK_TO_POLLING",APP_VERSION:"APP_VERSION",MAIN_DOMAIN:"MAIN_DOMAIN",CHAT_API_VERSION:"CHAT_API_VERSION",WS_API_VERSION:"WS_API_VERSION",REGION:"REGION",EXTENSION_DOMAIN:"EXTENSION_DOMAIN",WEBRTC_API_SUBDOMAIN:"WEBRTC_API_SUBDOMAIN"}},Jt={TYPE_CONSTANTS:{BOOLEAN:"boolean",STRING:"string",OBJECT:"object",NUMBER:"number"}},Qe={CONNECTED:"connected",CONNECTING:"connecting",DISCONNECTED:"disconnected",FEATURE_THROTTLED:"featureThrottled"},je={AUTH_ERR_AUTH_TOKEN_NOT_FOUND:"AUTH_ERR_AUTH_TOKEN_NOT_FOUND"},Pt={DOMAIN_PREFIX:"xmpp",PATH:{ROOM:"room",ROOM_SIZE:"room-size",SESSIONS:"sessions"},RESPONSE:{PARTICIPANTS:"participants"},QUERY_PARAMETERS:{DOMAIN:"domain",ROOM:"room"}},$t={INVALID_SESSIONID:{code:"ERROR_INVALID_SESSIONID",name:"ERROR_INVALID_SESSIONID",message:"The provided sessionId cannot be null or empty. Please provide a valid sessionId.",details:""},INVALID_TYPE:{code:"ERROR_INVALID_TYPE",name:"ERROR_INVALID_TYPE",message:"The provided type cannot be null or empty. Please provide a valid type.",details:""}},Xt={KEYS:{PASSTHROUGH:"passthrough",EXPAND:"expand"}},Kt={ENDPOINTS:{GET_ONLINE_MEMBER_COUNT:"api/%s/online-members"},RESPONSE:{ONLINE_USERS_COUNT:"onlineUsersCount",GROUPS:"groups"},ERRORS:{INVALID_GROUPLIST:{code:"ERROR_INVALID_GROUPLIST",name:"ERROR_INVALID_GROUPLIST",message:"Grouplist cannot be null or empty.",details:""}}},Ft=function(){function ae(te){"code"in te&&(this.code=te.code),"message"in te&&(this.message=te.message),"details"in te&&(this.details=te.details)}return ae}(),mn=function(){function ae(te){this.appId=te.appId,this.region=te.region,this.host=te.host}return ae.prototype.setAppId=function(te){return this.appId=te,this},ae.prototype.setRegion=function(te){return this.region=te,this},ae.prototype.setHost=function(te){return this.host=te,this},ae.prototype.getAppId=function(){return this.appId},ae.prototype.getRegion=function(){return this.region},ae.prototype.getHost=function(){return this.host},ae}(),At=function(){function ae(){}return ae.prototype.setAppId=function(te){return this.appId=te,this},ae.prototype.setRegion=function(te){return this.region=te,this},ae.prototype.setHost=function(te){return this.host=te,this},ae.prototype.build=function(){return new mn(this)},ae}();function Yt(ae){return new Promise(function(te,Ee){var ve=new Ft({code:"INVALID_CALL_APP_SETTINGS"});if(!(ae instanceof mn)){ve.message="appSettings must be an instance of CallAppSettings class",Ee(ve);return}var et=ae.getAppId(),ze=ae.getRegion(),Nt=ae.getHost();if(typeof et!="string"||et.length===0){ve.message="Invalid app id, please check your appSettings",Ee(ve);return}if(typeof ze!="string"||!nt[ze]){ve.message="Invalid region, please check your appSettings",Ee(ve);return}if(Nt!=null&&typeof Nt!="string"){ve.message="Invalid host, please check your appSettings",Ee(ve);return}te(!0)})}var Q=function(){function ae(te){this.defaultLayout=te.defaultLayout,this.isAudioOnly=te.isAudioOnly,this.listener=te.listener,this.mode=te.mode,this.ShowEndCallButton=te.ShowEndCallButton,this.ShowSwitchCameraButton=te.ShowSwitchCameraButton,this.ShowMuteAudioButton=te.ShowMuteAudioButton,this.ShowPauseVideoButton=te.ShowPauseVideoButton,this.ShowAudioModeButton=te.ShowAudioModeButton,this.StartAudioMuted=te.StartAudioMuted,this.StartVideoMuted=te.StartVideoMuted,this.defaultAudioMode=te.defaultAudioMode,this.ShowSwitchToVideoCallButton=te.ShowSwitchToVideoCallButton,this.AvatarMode=te.AvatarMode,this.ShowRecordingButton=te.ShowRecordingButton,this.StartRecordingOnCallStart=te.StartRecordingOnCallStart,this.MainVideoContainerSetting=te.MainVideoContainerSetting,this.EnableVideoTileClick=te.EnableVideoTileClick,this.enableDraggableVideoTile=te.enableDraggableVideoTile}return ae.prototype.isAudioOnlyCall=function(){return this.isAudioOnly},ae.prototype.isDefaultLayoutEnabled=function(){return this.defaultLayout},ae.prototype.getCallEventListener=function(){return this.listener},ae.prototype.getMode=function(){return this.mode},ae.prototype.isEndCallButtonEnabled=function(){return this.ShowEndCallButton},ae.prototype.isSwitchCameraButtonEnabled=function(){return this.ShowSwitchCameraButton},ae.prototype.isMuteAudioButtonEnabled=function(){return this.ShowMuteAudioButton},ae.prototype.isPauseVideoButtonEnabled=function(){return this.ShowPauseVideoButton},ae.prototype.isAudioModeButtonEnabled=function(){return this.ShowAudioModeButton},ae.prototype.getStartWithAudioMuted=function(){return this.StartAudioMuted},ae.prototype.getStartWithVideoMuted=function(){return this.StartVideoMuted},ae.prototype.getDefaultAudioMode=function(){return this.defaultAudioMode},ae.prototype.isAudioToVideoButtonEnabled=function(){return this.ShowSwitchToVideoCallButton},ae.prototype.getAvatarMode=function(){return this.AvatarMode},ae.prototype.isRecordingButtonEnabled=function(){return this.ShowRecordingButton},ae.prototype.shouldStartRecordingOnCallStart=function(){return this.StartRecordingOnCallStart},ae.prototype.getMainVideoContainerSetting=function(){return this.MainVideoContainerSetting},ae.prototype.isVideoTileClickEnabled=function(){return this.EnableVideoTileClick},ae.prototype.isVideoTileDragEnabled=function(){return this.enableDraggableVideoTile},ae.POSITION_TOP_LEFT="top-left",ae.POSITION_TOP_RIGHT="top-right",ae.POSITION_BOTTOM_LEFT="bottom-left",ae.POSITION_BOTTOM_RIGHT="bottom-right",ae.ASPECT_RATIO_DEFAULT="default",ae.ASPECT_RATIO_CONTAIN="contain",ae.ASPECT_RATIO_COVER="cover",ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},ae.ASPECT_RATIO={DEFAULT:"default",CONTAIN:"contain",COVER:"cover"},ae}(),ke=function(){function ae(){this.defaultLayout=!0,this.isAudioOnly=!1,this.mode=le.CALL_MODE.DEFAULT,this.ShowEndCallButton=!0,this.ShowSwitchCameraButton=!0,this.ShowMuteAudioButton=!0,this.ShowPauseVideoButton=!0,this.ShowAudioModeButton=!0,this.StartAudioMuted=!1,this.StartVideoMuted=!1,this.ShowSwitchToVideoCallButton=!0,this.AvatarMode="circle",this.ShowRecordingButton=!1,this.StartRecordingOnCallStart=!1,this.MainVideoContainerSetting=new ge,this.EnableVideoTileClick=!0,this.enableDraggableVideoTile=!0}return ae.prototype.enableDefaultLayout=function(te){return this.defaultLayout=te,this},ae.prototype.setIsAudioOnlyCall=function(te){return this.isAudioOnly=te,this},ae.prototype.setCallEventListener=function(te){return this.listener=te,this},ae.prototype.setMode=function(te){return this.mode=te,this},ae.prototype.showEndCallButton=function(te){return te===void 0&&(te=!0),this.ShowEndCallButton=te,this},ae.prototype.showSwitchCameraButton=function(te){return te===void 0&&(te=!0),this.ShowSwitchCameraButton=te,this},ae.prototype.showMuteAudioButton=function(te){return te===void 0&&(te=!0),this.ShowMuteAudioButton=te,this},ae.prototype.showPauseVideoButton=function(te){return te===void 0&&(te=!0),this.ShowPauseVideoButton=te,this},ae.prototype.showAudioModeButton=function(te){return te===void 0&&(te=!0),this.ShowAudioModeButton=te,this},ae.prototype.startWithAudioMuted=function(te){return te===void 0&&(te=!1),this.StartAudioMuted=te,this},ae.prototype.startWithVideoMuted=function(te){return te===void 0&&(te=!1),this.StartVideoMuted=te,this},ae.prototype.setDefaultAudioMode=function(te){return this.defaultAudioMode=te,this},ae.prototype.showSwitchToVideoCallButton=function(te){return te===void 0&&(te=!0),this.ShowSwitchToVideoCallButton=te,this},ae.prototype.setAvatarMode=function(te){return te===void 0&&(te="circle"),this.AvatarMode=te,this},ae.prototype.showRecordingButton=function(te){return te===void 0&&(te=!1),this.ShowRecordingButton=te,this},ae.prototype.startRecordingOnCallStart=function(te){return te===void 0&&(te=!1),this.StartRecordingOnCallStart=te,this},ae.prototype.setMainVideoContainerSetting=function(te){return this.MainVideoContainerSetting=te,this},ae.prototype.enableVideoTileClick=function(te){return te===void 0&&(te=!0),this.EnableVideoTileClick=te,this},ae.prototype.enableVideoTileDrag=function(te){return te===void 0&&(te=!0),this.enableDraggableVideoTile=te,this},ae.prototype.build=function(){return new Q(this)},ae}(),ge=function(){function ae(){this.videoFit=Q.ASPECT_RATIO_CONTAIN,this.zoomButton=le.ZOOM_BUTTON_DEFAULT_PARAMS,this.fullScreenButton=le.FULL_SCREEN_BUTTON_DEFAULT_PARAMS,this.userListButton=le.USER_LIST_BUTTON_DEFAULT_PARAMS,this.nameLabel=le.NAME_LABEL_DEFAULT_PARAMS}return ae.prototype.setMainVideoAspectRatio=function(te){te===void 0&&(te="contain"),this.videoFit=te},ae.prototype.setFullScreenButtonParams=function(te,Ee){te===void 0&&(te=Q.POSITION_BOTTOM_RIGHT),Ee===void 0&&(Ee=!0),o(te)||(this.fullScreenButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.fullScreenButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee)},ae.prototype.setNameLabelParams=function(te,Ee,ve){te===void 0&&(te=Q.POSITION_BOTTOM_LEFT),Ee===void 0&&(Ee=!0),ve===void 0&&(ve="#333333"),o(te)||(this.nameLabel[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.nameLabel[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee),o(ve)||(this.nameLabel[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.COLOR]=ve)},ae.prototype.setZoomButtonParams=function(te,Ee){te===void 0&&(te=Q.POSITION_BOTTOM_RIGHT),Ee===void 0&&(Ee=!0),o(te)||(this.zoomButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.zoomButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee)},ae.prototype.setUserListButtonParams=function(te,Ee){te===void 0&&(te=Q.POSITION_BOTTOM_RIGHT),Ee===void 0&&(Ee=!0),o(te)||(this.userListButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.userListButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee)},ae}(),L=__webpack_require__(156),V=__webpack_require__.n(L),ee=__webpack_require__(925),se=function(){function ae(te){this.defaultLayout=te.defaultLayout,this.isAudioOnly=te.isAudioOnly,this.isPresenter=te.isPresenter,this.listener=te.listener,this.ShowEndCallButton=te.ShowEndCallButton,this.ShowSwitchCameraButton=te.ShowSwitchCameraButton,this.ShowMuteAudioButton=te.ShowMuteAudioButton,this.ShowPauseVideoButton=te.ShowPauseVideoButton,this.ShowAudioModeButton=te.ShowAudioModeButton,this.StartAudioMuted=te.StartAudioMuted,this.StartVideoMuted=te.StartVideoMuted,this.defaultAudioMode=te.defaultAudioMode,this.ShowRecordingButton=te.ShowRecordingButton}return ae.prototype.isAudioOnlyCall=function(){return this.isAudioOnly},ae.prototype.getIsPresenter=function(){return this.isPresenter},ae.prototype.isDefaultLayoutEnabled=function(){return this.defaultLayout},ae.prototype.getCallEventListener=function(){return this.listener},ae.prototype.isEndCallButtonEnabled=function(){return this.ShowEndCallButton},ae.prototype.isSwitchCameraButtonEnabled=function(){return this.ShowSwitchCameraButton},ae.prototype.isMuteAudioButtonEnabled=function(){return this.ShowMuteAudioButton},ae.prototype.isPauseVideoButtonEnabled=function(){return this.ShowPauseVideoButton},ae.prototype.isAudioModeButtonEnabled=function(){return this.ShowAudioModeButton},ae.prototype.getStartWithAudioMuted=function(){return this.StartAudioMuted},ae.prototype.getStartWithVideoMuted=function(){return this.StartVideoMuted},ae.prototype.getDefaultAudioMode=function(){return this.defaultAudioMode},ae.prototype.isRecordingButtonEnabled=function(){return this.ShowRecordingButton},ae.POSITION_TOP_LEFT="top-left",ae.POSITION_TOP_RIGHT="top-right",ae.POSITION_BOTTOM_LEFT="bottom-left",ae.POSITION_BOTTOM_RIGHT="bottom-right",ae.ASPECT_RATIO_DEFAULT="default",ae.ASPECT_RATIO_CONTAIN="contain",ae.ASPECT_RATIO_COVER="cover",ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},ae.ASPECT_RATIO={DEFAULT:"default",CONTAIN:"contain",COVER:"cover"},ae}(),Ie=function(){function ae(){this.defaultLayout=!0,this.isAudioOnly=!1,this.isPresenter=!1,this.ShowEndCallButton=!0,this.ShowSwitchCameraButton=!0,this.ShowMuteAudioButton=!0,this.ShowPauseVideoButton=!0,this.ShowAudioModeButton=!0,this.StartAudioMuted=!1,this.StartVideoMuted=!1,this.ShowRecordingButton=!1}return ae.prototype.enableDefaultLayout=function(te){return this.defaultLayout=te,this},ae.prototype.setIsAudioOnlyCall=function(te){return this.isAudioOnly=te,this},ae.prototype.setIsPresenter=function(te){return this.isPresenter=te,this},ae.prototype.setCallEventListener=function(te){return this.listener=te,this},ae.prototype.showEndCallButton=function(te){return te===void 0&&(te=!0),this.ShowEndCallButton=te,this},ae.prototype.showSwitchCameraButton=function(te){return te===void 0&&(te=!0),this.ShowSwitchCameraButton=te,this},ae.prototype.showMuteAudioButton=function(te){return te===void 0&&(te=!0),this.ShowMuteAudioButton=te,this},ae.prototype.showPauseVideoButton=function(te){return te===void 0&&(te=!0),this.ShowPauseVideoButton=te,this},ae.prototype.showAudioModeButton=function(te){return te===void 0&&(te=!0),this.ShowAudioModeButton=te,this},ae.prototype.startWithAudioMuted=function(te){return te===void 0&&(te=!1),this.StartAudioMuted=te,this},ae.prototype.startWithVideoMuted=function(te){return te===void 0&&(te=!1),this.StartVideoMuted=te,this},ae.prototype.setDefaultAudioMode=function(te){return this.defaultAudioMode=te,this},ae.prototype.showRecordingButton=function(te){return te===void 0&&(te=!1),this.ShowRecordingButton=te,this},ae.prototype.build=function(){return new se(this)},ae}(),Fe=function(){var ae=function(te,Ee){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,et){ve.__proto__=et}||function(ve,et){for(var ze in et)Object.prototype.hasOwnProperty.call(et,ze)&&(ve[ze]=et[ze])},ae(te,Ee)};return function(te,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Class extends value "+String(Ee)+" is not a constructor or null");ae(te,Ee);function ve(){this.constructor=te}te.prototype=Ee===null?Object.create(Ee):(ve.prototype=Ee.prototype,new ve)}}(),ct=function(ae){Fe(te,ae);function te(Ee){return ae.call(this,Ee)||this}return te.prototype.render=function(){return V().createElement(ee.View,{style:{flex:1,backgroundColor:"#000",justifyContent:"center",alignItems:"center",padding:20}},V().createElement(ee.Text,{style:{color:"#FFF"}},this.props.message))},te}(V().Component),vt=function(){var ae=function(te,Ee){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,et){ve.__proto__=et}||function(ve,et){for(var ze in et)Object.prototype.hasOwnProperty.call(et,ze)&&(ve[ze]=et[ze])},ae(te,Ee)};return function(te,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Class extends value "+String(Ee)+" is not a constructor or null");ae(te,Ee);function ve(){this.constructor=te}te.prototype=Ee===null?Object.create(Ee):(ve.prototype=Ee.prototype,new ve)}}(),ut=function(){return ut=Object.assign||function(ae){for(var te,Ee=1,ve=arguments.length;Ee<ve;Ee++){te=arguments[Ee];for(var et in te)Object.prototype.hasOwnProperty.call(te,et)&&(ae[et]=te[et])}return ae},ut.apply(this,arguments)},ye=function(ae){vt(te,ae);function te(Ee){var ve=ae.call(this,Ee)||this;return ve.state={shouldLoad:!1,errored:!1},ve.callsettings=Ee.callSettings,!ve.callsettings||!(ve.callsettings instanceof Q||ve.callsettings instanceof se)?(ve.state=ut(ut({},ve.state),{errored:!0}),console.error(new Ft({code:xe.INVALID_PROP_EXCEPTION.code,message:"Component requires valid callSettings.",details:"Component requires valid callSettings."})),ve):(Yt(yt.getAppSettings()).then(function(){var et,ze;if(typeof Ee.callToken!="string"||Ee.callToken===""){var Nt=new Ft({code:xe.INVALID_ARGUMENT_EXCEPTION.code,message:"Invalid callToken passed, please verify."});console.error(Nt),(ze=(et=ve.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onError)===null||ze===void 0||ze.call(et,Nt);return}he.verifyToken(Ee.callToken,yt.getAppSettings()).then(function(Et){var Gt,Ot,sn,Dn,ir,Xn,fr,qe,ot,Ct,Mt,Tn,ln,Oe,tt,Tt,jt,en;if(!((Ot=(Gt=Et==null?void 0:Et.data)===null||Gt===void 0?void 0:Gt.error)===null||Ot===void 0)&&Ot.message){console.error(Et.data.error.message),(Dn=(sn=ve.callsettings.getCallEventListener())===null||sn===void 0?void 0:sn.onError)===null||Dn===void 0||Dn.call(sn,new Ft({code:xe.API_ERROR.code,message:(Xn=(ir=Et==null?void 0:Et.data)===null||ir===void 0?void 0:ir.error)===null||Xn===void 0?void 0:Xn.message}));return}if(ve.callsettings.user=ut(ut({},Et.data.data.payload.data.user),{jwt:ve.props.callToken}),ve.callsettings.sessionID=Et.data.data.payload.room,ve.callsettings.appId=Et.data.data.payload.data.appId,ve.callsettings.domain=Et.data.data.settings.WEBRTC_HOST,typeof ve.callsettings.analyticsSettings!="object"&&(ve.callsettings.analyticsSettings={}),!((ot=(qe=(fr=Et==null?void 0:Et.data)===null||fr===void 0?void 0:fr.data)===null||qe===void 0?void 0:qe.settings)===null||ot===void 0)&&ot.ANALYTICS_HOST&&(ve.callsettings.analyticsSettings.ANALYTICS_HOST=Et.data.data.settings.ANALYTICS_HOST),!((Tn=(Mt=(Ct=Et==null?void 0:Et.data)===null||Ct===void 0?void 0:Ct.data)===null||Mt===void 0?void 0:Mt.settings)===null||Tn===void 0)&&Tn.ANALYTICS_VERSION&&(ve.callsettings.analyticsSettings.ANALYTICS_VERSION=Et.data.data.settings.ANALYTICS_VERSION),Ee.presenterMode)if(((tt=(Oe=(ln=Et==null?void 0:Et.data)===null||ln===void 0?void 0:ln.data)===null||Oe===void 0?void 0:Oe.settings)===null||tt===void 0?void 0:tt.PRESENTER_MODE_ENABLED)===!0)ve.setState({shouldLoad:!0,errored:!1});else{var bn=new Ft({code:xe.ERROR_PRESENTER_MODE.code,message:xe.ERROR_PRESENTER_MODE.message});(jt=(Tt=ve.callsettings.getCallEventListener())===null||Tt===void 0?void 0:Tt.onError)===null||jt===void 0||jt.call(Tt,bn),(en=g==null?void 0:g.callHandlers)===null||en===void 0||en.map(function(_n){var an;(an=_n==null?void 0:_n.onError)===null||an===void 0||an.call(_n,bn)}),console.error(bn),ve.setState({shouldLoad:!1,errored:!0})}else ve.setState({shouldLoad:!0,errored:!1})}).catch(function(Et){var Gt,Ot;(Ot=(Gt=ve.callsettings.getCallEventListener())===null||Gt===void 0?void 0:Gt.onError)===null||Ot===void 0||Ot.call(Gt,new Ft({code:xe.API_ERROR.code,message:"Unknown API error",details:Et})),console.error(Et),ve.setState({errored:!0})})}).catch(function(et){var ze,Nt;console.error(et),(Nt=(ze=ve.callsettings.getCallEventListener())===null||ze===void 0?void 0:ze.onError)===null||Nt===void 0||Nt.call(ze,new Ft({code:xe.API_ERROR.code,message:"Unknown API error",details:et})),ve.setState({errored:!0})}),ve)}return te.prototype.render=function(){var Ee=this;return this.state.errored?V().createElement(ct,{message:"Something went wrong! Please check logs for more details."}):this.state.shouldLoad?V().createElement(ee.View,{style:{flex:1,backgroundColor:"#000"}},V().createElement(d(),{ref:function(ve){return te.ref=ve},style:{flex:1,backgroundColor:"#000"},callsettings:this.callsettings,onEndCall:function(){var ve,et,ze;(et=(ve=Ee.callsettings.getCallEventListener())===null||ve===void 0?void 0:ve.onCallEnded)===null||et===void 0||et.call(ve),(ze=g==null?void 0:g.callHandlers)===null||ze===void 0||ze.map(function(Nt){var Et;(Et=Nt==null?void 0:Nt.onCallEnded)===null||Et===void 0||Et.call(Nt)}),g&&(g.callHandlers=[])},onCallEndButtonPressed:function(){var ve,et,ze;(et=(ve=Ee.callsettings.getCallEventListener())===null||ve===void 0?void 0:ve.onCallEndButtonPressed)===null||et===void 0||et.call(ve),(ze=g==null?void 0:g.callHandlers)===null||ze===void 0||ze.map(function(Nt){var Et;(Et=Nt==null?void 0:Nt.onCallEndButtonPressed)===null||Et===void 0||Et.call(Nt)})},onUserJoined:function(ve){var et,ze,Nt;ve&&(ve!=null&&ve.uid)&&(ve!=null&&ve.name)&&("jwt"in ve&&delete ve.jwt,"audioTrack"in ve&&delete ve.audioTrack,"videoTrack"in ve&&delete ve.videoTrack,"resource"in ve&&delete ve.resource,(ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserJoined)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserJoined)===null||Gt===void 0||Gt.call(Et,ve)}))},onUserLeft:function(ve){var et,ze,Nt;ve&&(ve!=null&&ve.uid)&&(ve!=null&&ve.name)&&("jwt"in ve&&delete ve.jwt,"audioTrack"in ve&&delete ve.audioTrack,"videoTrack"in ve&&delete ve.videoTrack,"resource"in ve&&delete ve.resource,(ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserLeft)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserLeft)===null||Gt===void 0||Gt.call(Et,ve)}))},onUserListChanged:function(ve){var et,ze,Nt;Array.isArray(ve)&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserListUpdated)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserListUpdated)===null||Gt===void 0||Gt.call(Et,ve)}))},onAudioModeChanged:function(ve){var et,ze,Nt;ve&&ve.length>0&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onAudioModesUpdated)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onAudioModesUpdated)===null||Gt===void 0||Gt.call(Et,ve)}))},onRecordingToggled:function(ve){var et,ze,Nt,Et,Gt,Ot,sn,Dn;if(ve&&ve.hasOwnProperty("user")&&ve.hasOwnProperty("recordingStarted")&&!((et=ve.user)===null||et===void 0)&&et.uid&&!((ze=ve.user)===null||ze===void 0)&&ze.name){var ir=ve.recordingStarted;"jwt"in ve.user&&delete ve.user.jwt,"audioTrack"in ve.user&&delete ve.user.audioTrack,"videoTrack"in ve.user&&delete ve.user.videoTrack,"resource"in ve.user&&delete ve.user.resource,ir?((Et=(Nt=Ee.callsettings.getCallEventListener())===null||Nt===void 0?void 0:Nt.onRecordingStarted)===null||Et===void 0||Et.call(Nt,ve.user),(Gt=g==null?void 0:g.callHandlers)===null||Gt===void 0||Gt.map(function(Xn){var fr;(fr=Xn==null?void 0:Xn.onRecordingStarted)===null||fr===void 0||fr.call(Xn,ve.user)})):((sn=(Ot=Ee.callsettings.getCallEventListener())===null||Ot===void 0?void 0:Ot.onRecordingStopped)===null||sn===void 0||sn.call(Ot,ve.user),(Dn=g==null?void 0:g.callHandlers)===null||Dn===void 0||Dn.map(function(Xn){var fr;(fr=Xn==null?void 0:Xn.onRecordingStopped)===null||fr===void 0||fr.call(Xn,ve.user)}))}},onCallSwitchedToVideo:function(ve){var et,ze,Nt;ve&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onCallSwitchedToVideo)===null||ze===void 0||ze.call(et,ve.user),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onCallSwitchedToVideo)===null||Gt===void 0||Gt.call(Et,ve.user)}))},onUserMuted:function(ve){var et,ze,Nt;ve&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserMuted)===null||ze===void 0||ze.call(et,ve.user),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserMuted)===null||Gt===void 0||Gt.call(Et,ve.user)}))}})):V().createElement(ct,{message:"Initializing..."})},te.ref=null,te}(V().Component),rn=function(){var ae=function(te,Ee){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,et){ve.__proto__=et}||function(ve,et){for(var ze in et)Object.prototype.hasOwnProperty.call(et,ze)&&(ve[ze]=et[ze])},ae(te,Ee)};return function(te,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Class extends value "+String(Ee)+" is not a constructor or null");ae(te,Ee);function ve(){this.constructor=te}te.prototype=Ee===null?Object.create(Ee):(ve.prototype=Ee.prototype,new ve)}}(),or=function(){return or=Object.assign||function(ae){for(var te,Ee=1,ve=arguments.length;Ee<ve;Ee++){te=arguments[Ee];for(var et in te)Object.prototype.hasOwnProperty.call(te,et)&&(ae[et]=te[et])}return ae},or.apply(this,arguments)},dr=function(ae){rn(te,ae);function te(Ee){var ve=ae.call(this,Ee)||this;return ve.state={errored:!1},ve.props.presenterSettings.mode="PRESENTER",ve.props.presenterSettings instanceof se||(ve.state=or(or({},ve.state),{errored:!0}),console.error(new Ft({code:xe.INVALID_PROP_EXCEPTION.code,message:"Component requires valid presenterSettings.",details:"Component requires valid presenterSettings."}))),ve}return te.prototype.render=function(){return this.state.errored?V().createElement(ct,{message:"Something went wrong! Please check logs for more details."}):V().createElement(ye,{callSettings:this.props.presenterSettings,callToken:this.props.callToken,presenterMode:!0})},te}(V().Component),hr=function(ae,te,Ee,ve){function et(ze){return ze instanceof Ee?ze:new Ee(function(Nt){Nt(ze)})}return new(Ee||(Ee=Promise))(function(ze,Nt){function Et(sn){try{Ot(ve.next(sn))}catch(Dn){Nt(Dn)}}function Gt(sn){try{Ot(ve.throw(sn))}catch(Dn){Nt(Dn)}}function Ot(sn){sn.done?ze(sn.value):et(sn.value).then(Et,Gt)}Ot((ve=ve.apply(ae,te||[])).next())})},un=function(ae,te){var Ee={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},ve,et,ze,Nt;return Nt={next:Et(0),throw:Et(1),return:Et(2)},typeof Symbol=="function"&&(Nt[Symbol.iterator]=function(){return this}),Nt;function Et(Ot){return function(sn){return Gt([Ot,sn])}}function Gt(Ot){if(ve)throw new TypeError("Generator is already executing.");for(;Nt&&(Nt=0,Ot[0]&&(Ee=0)),Ee;)try{if(ve=1,et&&(ze=Ot[0]&2?et.return:Ot[0]?et.throw||((ze=et.return)&&ze.call(et),0):et.next)&&!(ze=ze.call(et,Ot[1])).done)return ze;switch(et=0,ze&&(Ot=[Ot[0]&2,ze.value]),Ot[0]){case 0:case 1:ze=Ot;break;case 4:return Ee.label++,{value:Ot[1],done:!1};case 5:Ee.label++,et=Ot[1],Ot=[0];continue;case 7:Ot=Ee.ops.pop(),Ee.trys.pop();continue;default:if(ze=Ee.trys,!(ze=ze.length>0&&ze[ze.length-1])&&(Ot[0]===6||Ot[0]===2)){Ee=0;continue}if(Ot[0]===3&&(!ze||Ot[1]>ze[0]&&Ot[1]<ze[3])){Ee.label=Ot[1];break}if(Ot[0]===6&&Ee.label<ze[1]){Ee.label=ze[1],ze=Ot;break}if(ze&&Ee.label<ze[2]){Ee.label=ze[2],Ee.ops.push(Ot);break}ze[2]&&Ee.ops.pop(),Ee.trys.pop();continue}Ot=te.call(ae,Ee)}catch(sn){Ot=[6,sn],et=0}finally{ve=ze=0}if(Ot[0]&5)throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}},yt=function(){function ae(){}return ae.generateToken=function(te,Ee){var ve,et,ze,Nt,Et;return hr(this,void 0,void 0,function(){var Gt;return un(this,function(Ot){switch(Ot.label){case 0:return[4,Yt(this.appSettings)];case 1:if(Ot.sent(),!Ee||!te)throw new Ft({code:xe.INVALID_ARGUMENT_EXCEPTION.code,message:"Authtoken and session is required."});return[4,he.generateToken(Ee,te,this.appSettings)];case 2:if(Gt=Ot.sent(),!(!((ve=Gt==null?void 0:Gt.data)===null||ve===void 0)&&ve.data))throw!((ze=(et=Gt==null?void 0:Gt.data)===null||et===void 0?void 0:et.error)===null||ze===void 0)&&ze.message?new Ft({code:xe.API_ERROR.code,message:(Et=(Nt=Gt==null?void 0:Gt.data)===null||Nt===void 0?void 0:Nt.error)===null||Et===void 0?void 0:Et.message}):new Ft({code:xe.UNKNOWN_API_ERROR.code,message:xe.UNKNOWN_API_ERROR.message});return[2,Gt.data.data]}})})},ae.init=function(te){return hr(this,void 0,void 0,function(){return un(this,function(Ee){switch(Ee.label){case 0:return[4,Yt(te)];case 1:return Ee.sent(),this.appSettings=te,[2]}})})},ae.endSession=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.endCall()}catch(Ee){v.log("CometChatCalls :: endCall",Ee),m(Ee)}},ae.muteAudio=function(te){var Ee,ve;try{te?(Ee=ye==null?void 0:ye.ref)===null||Ee===void 0||Ee.muteAudio():(ve=ye==null?void 0:ye.ref)===null||ve===void 0||ve.unMuteAudio()}catch(et){v.log("CometChatCalls :: muteAudio",et),m(et)}},ae.pauseVideo=function(te){var Ee,ve;try{te?(Ee=ye==null?void 0:ye.ref)===null||Ee===void 0||Ee.pauseVideo():(ve=ye==null?void 0:ye.ref)===null||ve===void 0||ve.unPauseVideo()}catch(et){v.log("CometChatCalls :: pauseVideo",et),m(et)}},ae.resumeVideo=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.unPauseVideo()}catch(Ee){v.log("CometChatCalls :: resumeVideo",Ee),m(Ee)}},ae.setAudioMode=function(te){var Ee;try{te&&((Ee=ye==null?void 0:ye.ref)===null||Ee===void 0||Ee.setAudioMode(te))}catch(ve){v.log("CometChatCalls :: setAudioMode",ve),m(ve)}},ae.switchCamera=function(){var te,Ee;try{(Ee=(te=ye==null?void 0:ye.ref)===null||te===void 0?void 0:te.switchCamera)===null||Ee===void 0||Ee.call(te)}catch(ve){v.log("CometChatCalls :: switchCamera",ve),m(ve)}},ae.getAudioOutputModes=function(){try{return new Promise(function(te,Ee){var ve;(ve=ye==null?void 0:ye.ref)===null||ve===void 0||ve.getAudioModes().then(function(et){te(et)},function(et){Ee(et)})})}catch(te){v.log("CometChatCalls :: getAudioOutputModes",te),m(te)}},ae.switchToVideoCall=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.switchToVideoCall()}catch(Ee){v.log("CometChatCalls :: switchToVideoCall",Ee),m(Ee)}},ae.startRecording=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.startRecording()}catch(Ee){v.log("CometChatCalls :: startRecording",Ee),m(Ee)}},ae.stopRecording=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.stopRecording()}catch(Ee){v.log("CometChatCalls :: stopRecording",Ee),m(Ee)}},ae.getAppSettings=function(){return this.appSettings},ae.CALL_MODE=le.CALL_MODE,ae.AUDIO_MODE=le.AUDIO_MODE,ae.addCallEventListener=g.addCallEventListener,ae.removeCallEventListener=g.removeCallEventListener,ae.OngoingCallListener=y,ae.CallSettingsBuilder=ke,ae.CallSettings=Q,ae.PresenterSettingsBuilder=Ie,ae.PresenterSettings=se,ae.CallAppSettingsBuilder=At,ae.CallAppSettings=mn,ae.Component=ye,ae.PresenterComponent=dr,ae}();const Zt=E})(),__webpack_exports__})());
128
+ </html>`,"text/xml");return Object.defineProperty(ce,"body",{get:()=>ce.getElementsByTagName("body")[0]}),ce});const K=Object.getPrototypeOf(H.documentElement);K&&(K.querySelector===void 0&&(K.querySelector=function(de){return Is(this,de)}),K.remove===void 0&&(K.remove=function(){this.parentNode!==null&&this.parentNode.removeChild(this)}),K.hasOwnProperty("innerHTML")||Object.defineProperty(K,"innerHTML",{get(){return this.childNodes.toString()},set(de){this.textContent="";const ce=new ai.DOMParser().parseFromString(`<div>${de}</div>`,"text/xml").documentElement;let Me;for(;Me=ce.firstChild;)this.appendChild(Me)}}),K.hasOwnProperty("children")||Object.defineProperty(K,"children",{get(){const de=this.childNodes,ce=[];let Me=0,it=de[Me];for(;it;)it.nodeType===1&&ce.push(it),Me+=1,it=de[Me];return ce}})),F.document=H}F.location===void 0&&(F.location={href:"",search:""});const{navigator:X}=F;if(X){let H=X.userAgent||"";const{name:K,version:de}=__nested_webpack_require_965807__(2834);let ce=K||"react-native";de&&(ce+=`/${de}`),H.indexOf(ce)===-1&&(H=H?`${ce} ${H}`:ce);const Me=`(${o.Platform.OS} ${o.Platform.Version})`;H.indexOf(Me)===-1&&(H=H?`${H} ${Me}`:Me),X.userAgent=H}__nested_webpack_require_965807__(2808);const b=F.performance.now,x=__nested_webpack_require_965807__(5280);if(F.performance=x.default,F.performance.now=b,F.PerformanceObserver=x.PerformanceObserver,__nested_webpack_require_965807__(3394),F.callstats=__nested_webpack_require_965807__(3650),F.XMLHttpRequest){const{prototype:H}=F.XMLHttpRequest;H&&!H.hasOwnProperty("responseXML")&&Object.defineProperty(H,"responseXML",{get(){const{responseText:K}=this;return K&&new ai.DOMParser().parseFromString(K,"text/xml")}})}o.Platform.OS==="android"&&(F.clearTimeout=zr().clearTimeout.bind(zr()),F.clearInterval=zr().clearInterval.bind(zr()),F.setInterval=zr().setInterval.bind(zr()),F.setTimeout=(H,K=0)=>zr().setTimeout(H,K)),F.localStorage===void 0&&(F.localStorage=new Hi("@jitsi-meet/")),F.sessionStorage===void 0&&(F.sessionStorage=new Hi)})(__nested_webpack_require_965807__.g||window||void 0);var Ps=__nested_webpack_require_965807__(9291),a=__nested_webpack_require_965807__.n(Ps);const u="JitsiManager";class A extends d().Component{constructor(b){super(b);It(this,"connection",null);It(this,"room",null);It(this,"recordingRetry",0);It(this,"LastNId",[]);It(this,"initialize",()=>{try{ye.d(u,"[initialize]");const{setUsers:b,globalRef:x,settings:H,usersRef:K}=this.context,de={};x.current.callEnded=!1,de.uid=H.RTCUser.uid,de.avatar=H.RTCUser.avatar,de.name=H.RTCUser.name,de.isVideoMuted=H.startVideoMuted,de.isAudioMuted=H.startAudioMuted,de.isLocalUser=!0,K.current=[de],b({type:m,payload:[de]},!0),a().init(dt),a().setLogLevel(a().logLevels.ERROR),this.makeConnection(),un.isPresenter!==!1&&this.createLocalTracks()}catch(b){ye.e(u,"[initialize]",b)}});It(this,"createLocalTracks",()=>{try{ye.d(u,"[createLocalTracks]");const{settings:b}=this.context;this.createAudioTrack(),b.isAudioOnly||this.createVideoTrack()}catch(b){ye.e(u,"[createLocalTracks]",b)}});It(this,"createAudioTrack",()=>_r(this,null,function*(){if(un.isPresenter!==!1)try{ye.d(u,"[createAudioTrack]");const b=yield a().createLocalTracks({devices:["audio"]});this.onLocalTrack(b[0])}catch(b){ye.e(u,"[createAudioTrack]",b)}}));It(this,"createVideoTrack",()=>_r(this,null,function*(){if(un.isPresenter!==!1)try{ye.d(u,"[createVideoTrack]");const b=yield a().createLocalTracks({devices:["video"]});this.onLocalTrack(b[0])}catch(b){ye.e(u,"[createVideoTrack]",b)}}));It(this,"onLocalTrack",b=>{try{ye.d(u,"[onLocalTrack]",b);const{setUsers:x,globalState:H,usersRef:K}=this.context,de=K.current;b.type=="video"?(de[0].isVideoMuted===!0?b.mute():de[0].isVideoMuted=!1,de[0].videoTrack=b):b.type=="audio"&&(de[0].isAudioMuted===!0?b.mute():de[0].isAudioMuted=!1,de[0].audioTrack=b),K.current=[...de],x({type:m,payload:de},!0),H.conferenceJoined&&this.addTrackToRoom(b)}catch(x){ye.e(u,"[onLocalTrack]",x)}});It(this,"onConnectionSuccess",()=>_r(this,null,function*(){var b,x,H,K;try{ye.d(u,"[onConnectionSuccess] ");const{settings:de,setUsers:ce,dispatch:Me,setRoom:it,globalRef:lt,usersRef:Rt,nativeManager:ht}=this.context,mt=Rt.current;ye.d(u,"[onConnectionSuccess] settings",de);const Vt=yield this.connection.initJitsiConference(de==null?void 0:de.sessionId,Ke);Vt.setSenderVideoConstraint(720),this.room=Vt,it(Vt),this.addJitsiEventListener(),this.addCommandListener();const Lt=this.room.myUserId()||"";mt[0].id=Lt,mt[0].jwt=(b=de.RTCUser)==null?void 0:b.jwt,mt[0].resource=(x=de.RTCUser)==null?void 0:x.resource,un.isPresenter===!1?mt[0].isPresenter=!1:un.isPresenter===!0&&(mt[0].isPresenter=!0),mt[0].videoTrack&&this.room.addTrack(mt[0].videoTrack),Rt.current=[...mt],ce({type:m,payload:mt},!0),lt.current.dominantSpeakerId=this.room.lastDominantSpeaker,Me({type:U,payload:this.room.lastDominantSpeaker}),this.room.setDisplayName(mt[0].name);const at={start_recording_on_call_start:de.startRecordingOnCallStart,is_video_muted:de.startVideoMuted,is_audio_muted:de.startAudioMuted,session_id:de.sessionId,is_audio_only:de.isAudioOnly,mode:de.mode,call_version:__nested_webpack_require_965807__(4147).i8,uid:mt[0].uid,platform:o.Platform.OS,sdk:(H=de.sdk)!=null?H:"react-native",app_id:de.appId,meeting_id:Vt.xmpp.getJid()};Vt.sendCommand("initial_config",{attributes:at});const gn={uid:mt[0].uid,avatar:mt[0].avatar,name:mt[0].name,joinedAt:Date.now(),isPresenter:void 0};un.isPresenter===!1?gn.isPresenter=!1:un.isPresenter===!0&&(gn.isPresenter=!0),this.room.sendCommand(ie,{attributes:gn}),(K=ht.current)==null||K.onUserJoined(mt[0])}catch(de){ye.e(u,"[onConnectionSuccess] error",de)}}));It(this,"endSessionForAll",()=>{const{users:b}=this.context;this.room.sendCommand(T,{value:b[0].id})});It(this,"onConferenceFailed",b=>{const{dispatch:x}=this.context;x({type:_,payload:null}),this.onConnectionFailed(b)});It(this,"onConnectionFailed",b=>_r(this,null,function*(){try{ye.d(u,"[onConectionFailed] ",b);const{dispatch:x}=this.context;yield this.unload(),x({type:p,payload:{error:!0,type:"jwt"}})}catch(x){}}));It(this,"addJitsiEventListener",()=>{try{ye.d(u,"[addJitsiEventListener]",this.room.on),this.room.on(a().events.conference.CONFERENCE_JOINED,this.onConferenceJoined),this.room.on(a().events.conference.CONFERENCE_FAILED,this.onConferenceFailed),this.room.on(a().events.conference.TRACK_ADDED,this.onRemoteTrack),this.room.on(a().events.conference.TRACK_REMOVED,this.onRemoteTrackRemoved),this.room.on(a().events.conference.USER_JOINED,this.onUserJoined),this.room.on(a().events.conference.USER_LEFT,this.onUserLeft),this.room.on(a().events.conference.TRACK_MUTE_CHANGED,this.onTrackMuted),this.room.on(a().events.conference.DOMINANT_SPEAKER_CHANGED,this.onDominantSpeakerChanged),this.room.on(a().events.connectionQuality.LOCAL_STATS_UPDATED,this.onLocalStatsUpdated),this.room.on(a().events.connectionQuality.REMOTE_STATS_UPDATED,this.onRemoteStatsUpdated),this.room.on(a().events.conference.PARTICIPANT_CONN_STATUS_CHANGED,this.onParticipantConnStatusChanged),this.room.on(a().events.conference.LAST_N_ENDPOINTS_CHANGED,this.debounce(this.onLastNChanged,1e3)),this.room.on(a().events.conference.SUBJECT_CHANGED,this.onSubjectChanged),this.room.join()}catch(b){ye.e(u,"[addJitsiEventListener]",b)}});It(this,"addCommandListener",()=>{try{this.room.addCommandListener(f,this.onScreenShareStarted),this.room.addCommandListener(P,this.onScreenShareStopped),this.room.addCommandListener(pe,this.onScreenRecordingStarted),this.room.addCommandListener(Se,this.onTryingToStartRecording),this.room.addCommandListener(le,this.onTryingToStopRecording),this.room.addCommandListener(Ae,this.onScreenRecordingStopped),this.room.addCommandListener(Re,this.onParticipantMuted),this.room.addCommandListener(ie,this.onUserObjectReceived),this.room.addCommandListener(q,this.onSwitchToVideoCallResponseReceived),this.room.addCommandListener(j,this.onSwitchToVideoRequest)}catch(b){ye.e(u,"[addCommandListener]",b)}});It(this,"muteParticipant",b=>{if(!b)return alert("select usr"),!1;try{const{users:x}=this.context;this.room.muteParticipant(b.id),this.room.sendCommandOnce(Re,{attributes:{mutedParticipantId:b.id,participantMutedBy:x[0].id}})}catch(x){ye.e(u,"[muteParticipant]",x)}});It(this,"addTrackToRoom",b=>{try{ye.d(u,"[addTrackToRoom]");const{globalState:x}=this.context;this.room&&x.conferenceJoined&&this.room.addTrack(b)}catch(x){ye.e(u,"[addTrackToRoom]",x)}});It(this,"removeTrackFromRoom",b=>{this.room.remove(b)});It(this,"onConferenceJoined",()=>{try{ye.d(u,"[onConferenceJoined]");const{dispatch:b,users:x,settings:H,globalState:K}=this.context;b({type:g,payload:null}),un.isPresenter!==!1&&(x[0].audioTrack&&this.addTrackToRoom(x[0].audioTrack),x[0].videoTrack&&this.addTrackToRoom(x[0].videoTrack),H.startRecordingOnCallStart&&(K.isRecording&&K.tryingToStartRecording||this.startRecording()))}catch(b){ye.e(u,"[onConferenceJoined]",b)}});It(this,"onUserJoined",(b,x)=>{var H;try{const K={};if(ye.d(u,"[onUserJoined]",x),K.name=x.getDisplayName()||"Unnamed",K.name==="Unnamed"&&x._statsID.includes("jibri"))return!1;const{dispatch:de,setUsers:ce,globalState:Me,usersRef:it}=this.context,lt=it.current;K.id=x.getId(),it.current=[...lt,K],ce({type:m,payload:[...lt,K]}),(H=K==null?void 0:K.name)!=null&&H.includes("(Screen)")&&de({type:be,payload:Me.noOfScreenShareUser+1})}catch(K){ye.e(u,"[onUserJoined]",K)}});It(this,"onUserLeft",(b,x)=>{var H,K,de;try{const{setUsers:ce,dispatch:Me,globalState:it,nativeManager:lt,usersRef:Rt}=this.context,ht=Rt.current;if(ye.d(u,"[onUserLeft] id="+b,"user"),(x.getDisplayName()==="Unnamed"||!x.getDisplayName())&&x._statsID&&x._statsID.includes("jibri"))return!1;let mt=null;ht.map(Lt=>{var at;(mt==null||mt.joinedAt>Lt.joinedAt)&&x._id!==Lt.id&&Lt.status==="active"&&(mt=Lt),x._id===Lt.id&&(it.tryingToStartRecording&&this.room.sendCommandOnce(le,{}),x.getDisplayName().includes("(Screen)")||((at=lt.current)==null||at.onUserLeft(Lt)))});const Vt=ht.filter(Lt=>x._id!==Lt.id);(H=lt.current)==null||H.onUserListChanged(Vt),((K=it.recorder)==null?void 0:K.id)===x._id&&Me({type:Te,payload:mt}),x.getDisplayName().includes("(Screen)")&&Me({type:be,payload:it.noOfScreenShareUser-1}),Vt.length<=1&&((de=lt.current)==null||de.onEndCall()),Rt.current=[...Vt],ce({type:m,payload:Vt})}catch(ce){ye.e(u,"[onUserLeft] ",ce)}});It(this,"onRemoteTrack",b=>{try{if(ye.d(u,"[onRemoteTrack]","track"),b.isLocal())return;const x=b.ownerEndpointId,{dispatch:H,setUsers:K,globalRef:de,usersRef:ce}=this.context,Me=ce.current;b&&b.videoType==="desktop"?(ye.d(u,"[onRemoteTrack] [is screenShare Track]"),H({type:I,payload:x})):this.room.lastDominantSpeaker===x&&(ye.d(u,"[onRemoteTrack] [is dominant Track]"),de.current.dominantSpeakerId=x,H({type:w,payload:x}));for(let it=1;it<Me.length;it++)if(Me[it].id==x){b.type==="video"?(Me[it].videoTrack=b,Me[it].isVideoMuted=b.isMuted()):(Me[it].audioTrack=b,Me[it].isAudioMuted=b.isMuted());break}ce.current=[...Me],K({type:m,payload:Me})}catch(x){ye.e(u,"[onRemoteTrack]",x)}});It(this,"onRemoteTrackRemoved",b=>{try{ye.d(u,"[onRemoteTrackRemoved]","track");const{setUsers:x,usersRef:H}=this.context,K=H.current;for(let de=0;de<K.length;de++)if(K[de].id===b.ownerEndpointId){K[de].videoTrack=void 0,K[de].isVideoMuted=!0;break}H.current=[...K],x({type:m,payload:K})}catch(x){ye.e(u,"[onRemoteTrackRemoved]",x)}});It(this,"onTrackMuted",b=>{try{ye.d(u,"[onTrackMuted]");const{setUsers:x,usersRef:H}=this.context,K=H.current;let de=b.ownerEndpointId;b.isLocal()&&(de=K[0].id);for(let ce=0;ce<K.length;ce++)if(K[ce].id===de){b.getType()==="video"?(K[ce].videoTrack=b,K[ce].isVideoMuted=b.isMuted()):(K[ce].audioTrack=b,K[ce].isAudioMuted=b.isMuted());break}H.current=[...K],x({type:m,payload:K},b.isLocal())}catch(x){ye.e(u,"[onTrackMuted]",x)}});It(this,"setConstraints",b=>{const{settings:x}=this.context;if(ye.d(u,"[setConstraints]",b),b){const H={};H[b]={maxHeight:480},this.room.setReceiverConstraints({lastN:x.mode===k?1:3,onStageEndpoints:[b],defaultConstraints:{maxHeight:x.mode===k?0:180},constraints:H})}});It(this,"onDominantSpeakerChanged",b=>{try{ye.d(u,"[onDominantSpeakerChanged]",b);const{users:x,dispatch:H,globalRef:K}=this.context;for(let de=0;de<x.length;de++)if(x[de].id===b){K.current.dominantSpeakerId=b,H({type:w,payload:b});break}}catch(x){ye.e(u,"[onDominantSpeakerChanged]",x)}});It(this,"onRemoteStatsUpdated",(b,x)=>{try{ye.d(u,"[onRemoteStatsUpdated]",b),x.connectionQuality&&(__nested_webpack_require_965807__.g.ccUsersStats[b]=x.connectionQuality)}catch(H){ye.e(u,"[onRemoteStatsUpdated]",H)}});It(this,"onLocalStatsUpdated",b=>{try{ye.d(u,"[onLocalStatsUpdated]",b);const{users:x}=this.context;b.connectionQuality&&(__nested_webpack_require_965807__.g.ccUsersStats[x[0].id]=b.connectionQuality)}catch(x){ye.e(u,"[onLocalStatsUpdated]",x)}});It(this,"onParticipantConnStatusChanged",(b,x)=>{try{ye.d(u,"[onParticipantConnStatusChanged] id= "+b+"status= ",x);const{setUsers:H,usersRef:K}=this.context,de=K.current;for(let ce=0;ce<de.length;ce++)if(de[ce].id===b){de[ce].status=x;break}K.current=[...de],H({type:m,payload:de})}catch(H){ye.e(u,"[onParticipantConnStatusChanged]",H)}});It(this,"startLastNLoop",()=>{this.LastNLoopStarted=!0});It(this,"debounce",(b,x)=>{let H;return function(){const K=this,de=arguments;clearTimeout(H),H=setTimeout(()=>b.apply(K,de),x)}});It(this,"sortArrayWithOtherArray",(b,x)=>{var Me,it;const{globalRef:H}=this.context,K=[],de=[],ce=[];for(let lt=1;lt<b.length;lt++)((Me=b[lt])==null?void 0:Me.id)===((it=H.current)==null?void 0:it.dominantSpeakerId)?ce.push(b[lt]):x.includes(b[lt].id)?K.push(b[lt]):de.push(b[lt]);return[b[0],...K.sort((lt,Rt)=>{const ht=x.indexOf(lt.id),mt=x.indexOf(Rt.id);return(ht>-1?ht:1/0)-(mt>-1?mt:1/0)}),...de,...ce]});It(this,"onLastNChanged",(b,x)=>{try{const{setUsers:H,usersRef:K}=this.context,de=K.current;let ce=[],Me=[];if(this.LastNLoopStarted||this.startLastNLoop(),ce=Array.from(new Set([...x,...this.LastNId])),b==null?void 0:b.length)for(let it=0;it<ce.length;it++)b.includes(ce[it])||Me.push(ce[it]);else Me=ce;this.LastNId=Me,K.current=[...this.sortArrayWithOtherArray(de,Me)],H({type:m,payload:this.sortArrayWithOtherArray(de,Me)}),ye.d(u,"[onLastNChanged]")}catch(H){ye.e(u,"[onLastNChanged]",H)}});It(this,"onSubjectChanged",b=>{try{ye.d(u,"[onSubjectChanged]","data");const{globalState:x,dispatch:H}=this.context;if(b){const K=JSON.parse(b);if(K!=null&&K.converted&&!x.switchedToVideoCall){const de=K==null?void 0:K.converted;H({type:nt,payload:{switchToVideoCallRequestInitiator:de.initiator,switchToVideoCallRequestResponder:de.responder}})}}}catch(x){ye.e(u,"[onSubjectChanged]",x)}});It(this,"onScreenShareStarted",({value:b})=>{try{ye.d(u,"[onScreenShareStarted]","value");const{dispatch:x}=this.context;x({type:I,payload:b})}catch(x){ye.e(u,"[onScreenShareStarted]",x)}});It(this,"onScreenShareStopped",({value:b})=>{try{ye.d(u,"[onScreenShareStopped]","value");const{globalState:x,dispatch:H}=this.context;x.pinnedUserId===b&&H({type:I,payload:""})}catch(x){ye.e(u,"[onScreenShareStarted]",x)}});It(this,"onScreenRecordingStarted",({attributes:b})=>{var x;try{ye.d(u,"[onScreenRecordingStarted]",b);const{dispatch:H,nativeManager:K}=this.context;H({type:N,payload:b}),(x=K.current)==null||x.onRecordingToggled({recordingStarted:!0,user:tt(b)})}catch(H){ye.e(u,"[onScreenRecordingStarted]",H)}});It(this,"onTryingToStartRecording",({attributes:b})=>{try{ye.d(u,"[onTryingToStartRecording]",b);const{dispatch:x}=this.context;x({type:B,payload:b})}catch(x){ye.e(u,"[onTryingToStartRecording]",x)}});It(this,"onTryingToStopRecording",({attributes:b})=>{try{ye.d(u,"[onTryingToStopRecording]",b);const{dispatch:x}=this.context;x({type:J,payload:null})}catch(x){ye.e(u,"[onTryingToStopRecording]",x)}});It(this,"onScreenRecordingStopped",({attributes:b})=>{var x;try{ye.d(u,"[onScreenRecordingStopped]",b);const{dispatch:H,nativeManager:K}=this.context;H({type:R,payload:null}),(x=K.current)==null||x.onRecordingToggled({recordingStarted:!1,user:tt(b)})}catch(H){ye.e(u,"[onScreenRecordingStopped]",H)}});It(this,"onParticipantMuted",({attributes:b})=>{var x;try{ye.d(u,"[onParticipantMuted]","attributes");const{users:H,nativeManager:K}=this.context;let de=null,ce=null;for(let Me=0;Me<H.length;Me++)H[Me].id===b.mutedParticipantId?ce=tt(H[Me]):H[Me].id===b.participantMutedBy&&(de=tt(H[Me])),b.mutedParticipantId==H[0].id&&this.muteAudio(),ce&&de&&((x=K==null?void 0:K.current)==null||x.onUserMuted({muted:tt(ce),mutedBy:tt(de)}))}catch(H){ye.e(u,"[onParticipantMuted]",H)}});It(this,"onUserObjectReceived",(b,x)=>{var Me,it;ye.d(u,"[onUserObjectReceived]"+x,"data");const{setUsers:H,nativeManager:K,usersRef:de}=this.context,ce=de.current;for(let lt=0;lt<ce.length;lt++)if(ce[lt].id==x&&!ce[lt].uid){ce[lt].uid=b.attributes.uid,ce[lt].avatar=b.attributes.avatar,ce[lt].uid=b.attributes.uid,ce[lt].joinedAt=b.attributes.joinedAt,b.attributes.isPresenter==="false"?ce[lt].isPresenter=!1:b.attributes.isPresenter==="true"&&(ce[lt].isPresenter=!0),(Me=K.current)==null||Me.onUserJoined(ce[lt]);break}de.current=[...ce],H({type:m,payload:ce}),(it=K.current)==null||it.onUserListChanged(ce)});It(this,"unload",()=>{var de,ce;const{globalRef:b,users:x}=this.context;b.current.callEnded=!0;const H=x[0],K=[];if(H&&H.audioTrack)try{K.push((de=H==null?void 0:H.audioTrack)==null?void 0:de.dispose())}catch(Me){ye.e(u,"unload audio catch",Me)}if(H&&H.videoTrack)try{K.push((ce=H==null?void 0:H.videoTrack)==null?void 0:ce.dispose())}catch(Me){ye.e(u,"unload videoTrack catch",Me)}return Promise.all(K)});It(this,"leave",()=>_r(this,null,function*(){var b;try{if(this.alreadyLeft)return;this.alreadyLeft=!0,this.localUserEndsCall||(this.localUserEndsCall=!0);const{nativeManager:x}=this.context;yield this.unload(),ye.d(u,"[leave]"),(b=this.room)==null||b.leave().then(()=>{var H,K,de;(H=this.connection)==null||H.disconnect(),(K=x.current)!=null&&K.removeListener&&((de=x.current)==null||de.removeListener())}).catch()}catch(x){ye.e(u,"[leave]",x)}}));It(this,"requestingToSwitchToVideoCall",()=>{var b;try{if(un.isPresenter===!1)return;ye.d(u,"[requestingToSwitchToVideoCall");const{users:x,dispatch:H}=this.context;(b=this.room)==null||b.sendCommandOnce(j,{attributes:{initiator:JSON.stringify(fn(Ht({},x[0]),{audioTrack:null,videoTrack:null}))}}),H({type:W,payload:x[0]})}catch(x){ye.e(u,"[requestingToSwitchToVideoCall",x)}});It(this,"onSwitchToVideoRequest",(b,x)=>{var H;try{ye.d(u,"[onSwitchToVideoRequest]",x);const{users:K,globalState:de,dispatch:ce}=this.context,Me=((H=b==null?void 0:b.attributes)==null?void 0:H.initiator)&&JSON.parse(b.attributes.initiator);x===K[0].id||de.switchedToVideoCall||ce({type:he,payload:Me})}catch(K){ye.e(u,"[onSwitchToVideoRequest",K)}});It(this,"onSwitchToVideoCallResponse",b=>{var x;try{ye.d(u,"[onSwitchToVideoCallResponse]",b);const{users:H}=this.context;(x=this.room)==null||x.sendCommandOnce(q,{responder:JSON.stringify(tt(H[0])),attributes:{response:b}})}catch(H){ye.e(u,"[onSwitchToVideoCallResponse]",H)}});It(this,"onSwitchToVideoCallResponseReceived",(b,x)=>{try{ye.d(u,"[onSwitchToVideoCallResponseReceived]"+typeof b.attributes.response);const{users:H,globalState:K,dispatch:de,settings:ce,nativeManager:Me}=this.context;if(!K.switchedToVideoCall){const it=H.find(Rt=>Rt.id===x),lt={initiator:tt(K.switchToVideoCallRequestInitiator),responder:tt(it),response:!0};b.attributes.response==="true"?(de({type:fe,payload:it}),this.switchToVideoCall(),Me.current.onSwitchedToVideoCall({sessionId:ce.sessionId,initiator:tt(K.switchToVideoCallRequestInitiator),responder:tt(it)}),this.room.setSubject(JSON.stringify({converted:lt}))):de({type:Le,payload:it})}}catch(H){ye.e(u,"[onSwitchToVideoCallResponseReceived]",H)}});It(this,"switchToVideoCall",()=>{try{const{nativeManager:b}=this.context;ye.d(u,"[switchToVideoCall]");const{setSettings:x}=this.context;this.createVideoTrack(),x({type:l,payload:null}),b.current.resetAudioDeviceForVideoCall()}catch(b){ye.e(u,"[switchToVideoCall]",b)}});It(this,"startRecording",()=>{var b;try{if(un.isPresenter===!1)return;ye.d(u,"[startRecording]");const{globalState:x,globalRef:H,users:K}=this.context;if((b=H==null?void 0:H.current)!=null&&b.callEnded)return;x.isRecording||this.room.startRecording({mode:"file"}).then(de=>{this.room.sendCommandOnce(pe,{attributes:Ht({recordId:de._sessionID},K[0])})}).catch(de=>{ye.e(u,"[startRecording] error starting to retry count="+this.recordingRetry,de),setTimeout(()=>{this.startRecording()},5e3),this.recordingRetry===0&&this.room.sendCommandOnce(Se,{attributes:Ht({},K[0])}),this.recordingRetry++})}catch(x){ye.e(u,"[startRecording]",x)}});It(this,"stopRecording",()=>{var b,x;try{if(un.isPresenter===!1)return;ye.d(u,"[stopRecording]");const{globalState:H,users:K}=this.context;H.isRecording&&((b=H.recorder)==null?void 0:b.id)===K[0].id&&(this.room.sendCommandOnce(Ae,{attributes:tt(K[0])}),this.room.stopRecording(H.recordId)),H.tryingToStartRecording&&((x=H.recorder)==null?void 0:x.id)===K[0].id&&(this.recordingRetry=0,this.room.sendCommandOnce(le,{}))}catch(H){ye.e(u,"[stopRecording]",H)}});It(this,"flip",()=>{const{users:b,globalState:x,dispatch:H}=this.context;b[0].videoTrack&&(b[0].videoTrack._switchCamera(),H({type:ne,payload:!x.cameraFlipped}))});It(this,"flipCamera",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[flipCamera]"),this.flipCameraTimer&&clearTimeout(this.flipCameraTimer),this.flipCameraTimer=setTimeout(this.flip,300)}catch(b){ye.e(u,"[flipCamera]",b)}});It(this,"muteAudio",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[muteAudio]");const{users:b}=this.context;b[0].audioTrack&&(b[0].audioTrack.isMuted()||b[0].audioTrack.mute())}catch(b){ye.e(u,"[muteAudio]",b)}});It(this,"unMuteAudio",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[unMuteAudio]");const{users:b}=this.context;b[0].audioTrack&&b[0].audioTrack.isMuted()&&b[0].audioTrack.unmute()}catch(b){ye.e(u,"[unMuteAudio]",b)}});It(this,"toggleAudioButton",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[toggleAudioButton]");const{users:b}=this.context;b[0].audioTrack&&(b[0].audioTrack.isMuted()?b[0].audioTrack.unmute():b[0].audioTrack.mute())}catch(b){ye.e(u,"[toggleAudioButton]",b)}});It(this,"muteVideo",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[muteVideo]");const{users:b}=this.context;b[0].videoTrack&&(b[0].videoTrack.isMuted()||b[0].videoTrack.mute())}catch(b){ye.d(u,"[muteVideo]",b)}});It(this,"unMuteVideo",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[unMuteVideo]");const{users:b}=this.context;b[0].videoTrack&&b[0].videoTrack.isMuted()&&b[0].videoTrack.unmute()}catch(b){ye.d(u,"[unMuteVideo]",b)}});It(this,"toggleVideoButton",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[toggleVideoButton]");const{users:b}=this.context;b[0].videoTrack&&(b[0].videoTrack.isMuted()?b[0].videoTrack.unmute():b[0].videoTrack.mute())}catch(b){ye.d(u,"[toggleVideoButton]",b)}});It(this,"enterPipMode",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[enterPipMode]");const{dispatch:b}=this.context;b({type:C,payload:!0})}catch(b){ye.e(u,"[enterPipMode]",b)}});It(this,"exitPipMode",()=>{try{if(un.isPresenter===!1)return;ye.d(u,"[exitPipMode]");const{dispatch:b}=this.context;b({type:C,payload:!1})}catch(b){ye.e(u,"[exitPipMode]",b)}});ye.d(u,"[constructor]"),this.connection=null,this.alreadyLeft=!1,this.room=null,this.localUserEndsCall=!1,this.state={LastNId:[]}}componentDidMount(){this.initialize()}makeConnection(){var b,x;try{const{settings:H,setConnection:K}=this.context;ye.d(u,"[makeConnection]");const de=H.domain,ce={hosts:{domain:de,muc:"conference."+de,focus:"focus."+de},serviceUrl:"wss://xmpp."+de+"/xmpp-websocket",bosh:"https://xmpp."+de+"/http-bind"};this.connection=new(a()).JitsiConnection(null,((b=H==null?void 0:H.RTCUser)==null?void 0:b.jwt)||null,ce),K(this.connection),(x=this.connection)==null||x.connect(),this.addConnectionEventListener()}catch(H){ye.e(u,"[makeConnection]",H)}}addConnectionEventListener(){try{ye.d(u,"[addConnectionEventListener]"),this.connection.addEventListener(a().events.connection.CONNECTION_ESTABLISHED,this.onConnectionSuccess),this.connection.addEventListener(a().events.connection.CONNECTION_FAILED,this.onConnectionFailed),this.connection.addEventListener(a().events.connection.CONNECTION_DISCONNECTED,()=>{ye.d(u,"[addConnectionEventListener] [CONNECTION_DISCONNECTED]")}),this.connection.addEventListener(a().events.connection.CONNECTION_DROPPED_ERROR,()=>{ye.d(u,"[addConnectionEventListener] [CONNECTION_DROPPED_ERROR]")})}catch(b){ye.e(u,"[addConnectionEventListener] [error]",b)}}render(){return null}}It(A,"contextType",Kt);const O=A;(F=>{if(F.$===void 0){const X=__nested_webpack_require_965807__(6663);X(F),F.$=X}})(__nested_webpack_require_965807__.g||window);const G={width:0,height:0},z={width:0,height:0},re=(0,E.forwardRef)(function(F,X){var de,ce,Me,it,lt,Rt,ht,mt,Vt,Lt,at,gn,St,wt,dn,tr,En,Or,qn,Rn,cr,Nn,Fn,Be,Qn,vr,Dr,kt,nr,rr,Ti;un.isPresenter=F.isPresenter,un.mode=F.mode;const b={enableVideoTileClick:(de=F.enableVideoTileClick)!=null?de:!0,enableDraggableVideoTile:(ce=F.enableDraggableVideoTile)!=null?ce:!0},x={videoFit:(it=(Me=F.mainVideoSetting)==null?void 0:Me.videoFit)!=null?it:"contain",fullScreenButton:{visibility:(ht=(Rt=(lt=F.mainVideoSetting)==null?void 0:lt.fullScreenButton)==null?void 0:Rt.visibility)!=null?ht:!0,position:(Lt=(Vt=(mt=F.mainVideoSetting)==null?void 0:mt.fullScreenButton)==null?void 0:Vt.position)!=null?Lt:"bottom-right"},userListButton:{visibility:(St=(gn=(at=F.mainVideoSetting)==null?void 0:at.userListButton)==null?void 0:gn.visibility)!=null?St:!0,position:(tr=(dn=(wt=F.mainVideoSetting)==null?void 0:wt.userListButton)==null?void 0:dn.position)!=null?tr:"bottom-right"},zoomButton:{visibility:(qn=(Or=(En=F.mainVideoSetting)==null?void 0:En.zoomButton)==null?void 0:Or.visibility)!=null?qn:!0,position:(Nn=(cr=(Rn=F.mainVideoSetting)==null?void 0:Rn.zoomButton)==null?void 0:cr.position)!=null?Nn:"bottom-right"},nameLabel:{visibility:(Qn=(Be=(Fn=F.mainVideoSetting)==null?void 0:Fn.nameLabel)==null?void 0:Be.visibility)!=null?Qn:!0,position:(kt=(Dr=(vr=F.mainVideoSetting)==null?void 0:vr.nameLabel)==null?void 0:Dr.position)!=null?kt:"bottom-left",color:(Ti=(rr=(nr=F.mainVideoSetting)==null?void 0:nr.nameLabel)==null?void 0:rr.color)!=null?Ti:At.blackLightXX}},H=(0,E.useRef)(),K=(0,E.useRef)();return(0,E.useImperativeHandle)(X,()=>({muteAudio:()=>{var nn;return(nn=H.current)==null?void 0:nn.muteAudio()},unMuteAudio:()=>{var nn;return(nn=H.current)==null?void 0:nn.unMuteAudio()},switchCamera:()=>{var nn;return(nn=H.current)==null?void 0:nn.flipCamera()},pauseVideo:()=>{var nn;return(nn=H.current)==null?void 0:nn.muteVideo()},unPauseVideo:()=>{var nn;return(nn=H.current)==null?void 0:nn.unMuteVideo()},endCall:()=>{var nn;return(nn=H.current)==null?void 0:nn.leave()},switchToVideoCall:()=>{var nn;return(nn=H.current)==null?void 0:nn.requestingToSwitchToVideoCall()},startRecording:()=>{var nn;return(nn=H.current)==null?void 0:nn.startRecording()},stopRecording:()=>{var nn;return(nn=H.current)==null?void 0:nn.stopRecording()},toggleAudioButton:()=>{var nn;return(nn=H.current)==null?void 0:nn.toggleAudioButton()},toggleVideoButton:()=>{var nn;return(nn=H.current)==null?void 0:nn.toggleVideoButton()},enterPipMode:()=>{var nn;return(nn=H.current)==null?void 0:nn.enterPipMode()},exitPipMode:()=>{var nn;return(nn=H.current)==null?void 0:nn.exitPipMode()},setAudioMode:nn=>{var Kn;return(Kn=K.current)==null?void 0:Kn.setAudioMode(nn)},getAudioModes:()=>{var nn;return(nn=K.current)==null?void 0:nn.getAudioModes()}})),(0,E.useEffect)(()=>{ye.d("index.js","[index.js] [useEffect]")},[]),d().createElement(mn,{reducer:$t,initialState:fn(Ht(Ht({},F),b),{videoSettings:x})},d().createElement(Kt.Consumer,null,nn=>d().createElement(o.View,{onLayout:Kn=>{z.height===0&&nn.globalState.inPIPMode&&(z.width=Kn.nativeEvent.layout.width,z.height=Kn.nativeEvent.layout.height),G.height!==0||nn.globalState.inPIPMode||(G.width=Kn.nativeEvent.layout.width,G.height=Kn.nativeEvent.layout.height),nn==null||nn.dispatch({type:y,payload:Kn.nativeEvent.layout})},style:[{backgroundColor:At.palette.red},G.height===0||nn.globalState.inPIPMode?nn.globalState.inPIPMode&&z.height!==0?{width:z.width,height:z.height}:{flex:1}:{width:G.width,height:G.height}]},d().createElement(O,{ref:Kn=>{nn.jitsiManager.current=Kn,H.current=Kn}}),d().createElement(Ui,Ht({ref:Kn=>{nn.nativeManager.current=Kn,K.current=Kn}},nn.settings)),d().createElement(ki,null))))}),we=(0,E.forwardRef)(function(mt,ht){var Vt=mt,{callsettings:F={},onCallEndButtonPressed:X,onEndCall:b,onUserJoined:x,onUserLeft:H,onUserListChanged:K,onRecordingToggled:de,onUserMuted:ce,onAudioModeChanged:Me,getAudioModesOnSuccess:it,onCallSwitchedToVideo:lt}=Vt,Rt=io(Vt,["callsettings","onCallEndButtonPressed","onEndCall","onUserJoined","onUserLeft","onUserListChanged","onRecordingToggled","onUserMuted","onAudioModeChanged","getAudioModesOnSuccess","onCallSwitchedToVideo"]);var Lt;return d().createElement(re,Ht(fn(Ht({ref:ht},F),{enableVideoTileClick:F.EnableVideoTileClick,sessionId:F.sessionID,RTCUser:F.user,onCallEndButtonPressed:X,onEndCall:b,onUserJoined:x,onUserLeft:H,onUserListChanged:K,onRecordingToggled:de,onUserMuted:ce,onAudioModeChanged:Me,getAudioModesOnSuccess:it,onCallSwitchedToVideo:lt,mainVideoSetting:F.MainVideoContainerSetting,enableDefaultLayout:F.defaultLayout,isAudioOnly:F.isAudioOnly,hideAudioMuteButton:!F.ShowMuteAudioButton,hideEndCallButton:!F.ShowEndCallButton,hidePauseVideoButton:!F.ShowPauseVideoButton,hideVideoSwitchButton:!F.ShowSwitchCameraButton,showRecordingButton:F.ShowRecordingButton,startRecordingOnCallStart:F.StartRecordingOnCallStart,hideAudioModeButton:!F.ShowAudioModeButton,REGION:F.region,mode:F.mode,domain:F.domain,defaultAudioMode:F.defaultAudioMode,startAudioMuted:F.StartAudioMuted,startVideoMuted:F.StartVideoMuted,appId:F.appId,analyticsSettings:F.analyticsSettings,showSwitchToVideoCallButton:F.ShowSwitchToVideoCallButton,avatarMode:(Lt=F.AvatarMode)==null?void 0:Lt.toLowerCase()}),Rt))})})(),__webpack_exports__})())},878:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__878__},156:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__156__},925:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__925__},559:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__559__},650:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__650__},394:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__394__},941:E=>{"use strict";E.exports=__WEBPACK_EXTERNAL_MODULE__941__}},__webpack_module_cache__={};function __webpack_require__(E){var d=__webpack_module_cache__[E];if(d!==void 0)return d.exports;var o=__webpack_module_cache__[E]={exports:{}};return __webpack_modules__[E](o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=E=>{var d=E&&E.__esModule?()=>E.default:()=>E;return __webpack_require__.d(d,{a:d}),d},__webpack_require__.d=(E,d)=>{for(var o in d)__webpack_require__.o(d,o)&&!__webpack_require__.o(E,o)&&Object.defineProperty(E,o,{enumerable:!0,get:d[o]})},__webpack_require__.o=(E,d)=>Object.prototype.hasOwnProperty.call(E,d),__webpack_require__.r=E=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CometChatCalls:()=>yt,default:()=>Zt});var E=__webpack_require__(173),d=__webpack_require__.n(E);function o(ae){ae!=null&&(typeof ae=="string"&&(ae=ae.trim()),typeof ae=="object"&&Object.keys(ae).length===0&&(ae=void 0));var te=["",0,"0",!1,null,"null",void 0,"undefined"];return te.includes(ae)}function l(ae){try{return JSON.stringify(ae),!0}catch(te){return!1}}var v=function(){function ae(){}return ae.log=function(te,Ee){console.log(te,Ee)},ae.error=function(te,Ee){console.log(te,Ee)},ae.info=function(te,Ee){console.info(te,Ee)},ae}();function m(ae){typeof(ae==null?void 0:ae.toString)=="function"||typeof ae=="string"?console.error(ae.toString()):l(ae)?console.error(ae!=null&&ae.message?ae==null?void 0:ae.message:JSON.stringify(ae)):console.error(ae)}var y=function(){function ae(te){o(te.onUserJoined)||(this.onUserJoined=te.onUserJoined),o(te.onUserLeft)||(this.onUserLeft=te.onUserLeft),o(te.onUserListUpdated)||(this.onUserListUpdated=te.onUserListUpdated),o(te.onAudioModesUpdated)||(this.onAudioModesUpdated=te.onAudioModesUpdated),o(te.onCallEnded)||(this.onCallEnded=te.onCallEnded),o(te.onCallEndButtonPressed)||(this.onCallEndButtonPressed=te.onCallEndButtonPressed),o(te.onError)||(this.onError=te.onError),o(te.onRecordingStarted)||(this.onRecordingStarted=te.onRecordingStarted),o(te.onRecordingStopped)||(this.onRecordingStopped=te.onRecordingStopped),o(te.onUserMuted)||(this.onUserMuted=te.onUserMuted),o(te.onCallSwitchedToVideo)||(this.onCallSwitchedToVideo=te.onCallSwitchedToVideo)}return ae}(),U=function(){return U=Object.assign||function(ae){for(var te,Ee=1,ve=arguments.length;Ee<ve;Ee++){te=arguments[Ee];for(var et in te)Object.prototype.hasOwnProperty.call(te,et)&&(ae[et]=te[et])}return ae},U.apply(this,arguments)},p=function(ae,te,Ee){if(Ee||arguments.length===2)for(var ve=0,et=te.length,ze;ve<et;ve++)(ze||!(ve in te))&&(ze||(ze=Array.prototype.slice.call(te,0,ve)),ze[ve]=te[ve]);return ae.concat(ze||Array.prototype.slice.call(te))},g=function(){function ae(){}return ae.addCallEventListener=function(te,Ee){try{ae.callHandlers=ae==null?void 0:ae.callHandlers.filter(function(ve){return ve._name!=te}),ae.callHandlers=p(p([],ae.callHandlers,!0),[U({_name:te},new y(Ee))],!1)}catch(ve){console.error("ListenerHandlers: addCallEventListener",ve)}},ae.removeCallEventListener=function(te){try{ae.callHandlers=ae==null?void 0:ae.callHandlers.filter(function(Ee){return Ee._name!==te})}catch(Ee){console.error("ListenerHandlers: removeCallEventListener",Ee)}},ae.callHandlers=[],ae}(),_={CALL_TOKENS:"call_tokens"},w="__APP_ID__",I="__REGION__",N="https://".concat(w,".call-").concat(I,".cometchat.io/v3.0/"),B=function(ae){return new Promise(function(te){var Ee=new Headers;if(Ee.append("content-Type","application/json"),Ee.append("Accept","application/json"),typeof ae.headers=="object")for(var ve in ae.headers)Ee.append(ve,ae.headers[ve]);var et={method:"POST",headers:Ee,body:JSON.stringify(ae.data)};fetch(ae.url,et).then(function(ze){return ze.json()}).then(function(ze){te({error:null,data:ze})}).catch(function(ze){console.log(ze),te({error:ze,data:null})})})},J=function(ae){return new Promise(function(te){var Ee=new Headers;if(Ee.append("Accept","application/json"),typeof ae.headers=="object")for(var ve in ae.headers)Ee.append(ve,ae.headers[ve]);var et={method:"GET",headers:Ee};fetch(ae.url,et).then(function(ze){return ze.json()}).then(function(ze){te({error:null,data:ze})}).catch(function(ze){console.log(ze),te({error:ze,data:null})})})},R=function(ae,te,Ee,ve){function et(ze){return ze instanceof Ee?ze:new Ee(function(Nt){Nt(ze)})}return new(Ee||(Ee=Promise))(function(ze,Nt){function Et(sn){try{Ot(ve.next(sn))}catch(Dn){Nt(Dn)}}function Gt(sn){try{Ot(ve.throw(sn))}catch(Dn){Nt(Dn)}}function Ot(sn){sn.done?ze(sn.value):et(sn.value).then(Et,Gt)}Ot((ve=ve.apply(ae,te||[])).next())})},W=function(ae,te){var Ee={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},ve,et,ze,Nt;return Nt={next:Et(0),throw:Et(1),return:Et(2)},typeof Symbol=="function"&&(Nt[Symbol.iterator]=function(){return this}),Nt;function Et(Ot){return function(sn){return Gt([Ot,sn])}}function Gt(Ot){if(ve)throw new TypeError("Generator is already executing.");for(;Nt&&(Nt=0,Ot[0]&&(Ee=0)),Ee;)try{if(ve=1,et&&(ze=Ot[0]&2?et.return:Ot[0]?et.throw||((ze=et.return)&&ze.call(et),0):et.next)&&!(ze=ze.call(et,Ot[1])).done)return ze;switch(et=0,ze&&(Ot=[Ot[0]&2,ze.value]),Ot[0]){case 0:case 1:ze=Ot;break;case 4:return Ee.label++,{value:Ot[1],done:!1};case 5:Ee.label++,et=Ot[1],Ot=[0];continue;case 7:Ot=Ee.ops.pop(),Ee.trys.pop();continue;default:if(ze=Ee.trys,!(ze=ze.length>0&&ze[ze.length-1])&&(Ot[0]===6||Ot[0]===2)){Ee=0;continue}if(Ot[0]===3&&(!ze||Ot[1]>ze[0]&&Ot[1]<ze[3])){Ee.label=Ot[1];break}if(Ot[0]===6&&Ee.label<ze[1]){Ee.label=ze[1],ze=Ot;break}if(ze&&Ee.label<ze[2]){Ee.label=ze[2],Ee.ops.push(Ot);break}ze[2]&&Ee.ops.pop(),Ee.trys.pop();continue}Ot=te.call(ae,Ee)}catch(sn){Ot=[6,sn],et=0}finally{ve=ze=0}if(Ot[0]&5)throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}},he=function(){function ae(){}return ae.generateToken=function(te,Ee,ve){return R(this,void 0,void 0,function(){var et;return W(this,function(ze){return et=N.replace(w,ve.getAppId()).replace(I,ve.getRegion()),ve.getHost()&&(et=ve.getHost()),[2,B({url:"".concat(et).concat(_.CALL_TOKENS),headers:{authToken:te},data:{sessionId:Ee}})]})})},ae.verifyToken=function(te,Ee){return R(this,void 0,void 0,function(){var ve;return W(this,function(et){return ve=N.replace(w,Ee.getAppId()).replace(I,Ee.getRegion()),Ee.getHost()&&(ve=Ee.getHost()),[2,J({url:"".concat(ve).concat(_.CALL_TOKENS),headers:{callToken:te}})]})})},ae}(),fe={DEFAULT_STORE:"cometchat",MSG_VER_PRE:"store-ver-pre",MSG_VER_POST:"store-ver-post"},Le={API_ERROR:{code:"API_ERROR"}},nt={us:"us",eu:"eu",in:"in"},be={ZERO:0,MSGS_LIMIT:30,MSGS_MAX_LIMIT:100,USERS_LIMIT:30,USERS_MAX_LIMIT:100,GROUPS_LIMIT:30,GROUPS_MAX_LIMIT:100,CONVERSATION_MAX_LIMIT:50,CALL_TIMEOUT:45,DEFAULT_MSG_ID:0,DEFAULT_MAX_TYPING_INDICATOR_LIMIT:5,REGION_DEFAULT:"eu",REGION_DEFAULT_EU:"eu",REGION_DEFAULT_US:"us",REGION_DEFAULT_IN:"in",REGION_DEFAULT_PRIVATE:"private"},Te;(function(ae){ae.Public="public",ae.Private="private",ae.Protected="protected",ae.Password="password"})(Te||(Te={}));var C={PUBLIC:"public",PRIVATE:"private",PROTECTED:"password",PASSWORD:"password"},st;(function(ae){ae.Admin="admin",ae.Moderator="moderator",ae.Member="member"})(st||(st={}));var _e={ADMIN:"admin",MODERATOR:"moderator",PARTICIPANT:"participant"},De={platform:"REACT_NATIVE",sdkVersion:"v3.0.11",apiVersion:"v3.0",sdkVersionWithUnderScore:"3_0_11",userAgent:"cc_react_native_sdk"},Xe={platform:"react-native",sdkVersion:"3.0.11",sdk:"%s@%s"},ne={CONVERSATION:{TYPE:{CHAT:"chat",GROUP_CHAT:"groupchat"}}},Ze={analyticsHost:"metrics-%s.cometchat.io",analyticsVersion:"v1"},Ue={COMMON_STORE:"common_store",MESSAGE_LISTENERS_LIST:"message_listeners_list",USERS_STORE:"users_store",MESSAGES_STORE:"messages_store",KEYS_STORE:"keys_store",STORE_STRING:"%s:%s",KEY_STRING:"%s/%s",KEY_USER:"user",KEY_APP_SETTINGS:"app_settings",KEY_APP_ID:"appId",KEY_DEVICE_ID:"deviceId",KEY_MESSAGE_LISTENER_LIST:"all"},dt={RESPONSE_KEYS:{KEY_DATA:"data",KEY_META:"meta",KEY_CURSOR:"cursor",KEY_ACTION:"action",KEY_MESSAGE:"message",KEY_ERROR:"error",KEY_ERROR_DETAILS:"details",KEY_ERROR_CODE:"code",KEY_ERROR_MESSAGE:"message",KEY_AUTH_TOKEN:"authToken",KEY_WS_CHANNEL:"wsChannel",KEY_IDENTITY:"identity",KEY_SERVICE:"identity",KEY_ENTITIES:"entities",KEY_ENTITITY:"entity",KEY_ENTITYTYPE:"entityType",KEY_ATTACHMENTS:"attachments",CODE_REQUEST_OK:200,CODE_BAD_REQUEST:401,UNREAD_UNDELIVERED_KEYS:{ENTITY:"entity",ENTITY_TYPE:"entityType",ENTITY_Id:"entityId",COUNT:"count"},GROUP_MEMBERS_RESPONSE:{SUCCESS:"success",ERROR:"error",MESSAGE:"message"},KEY_ENTITY_TYPE:{USER:"user",GROUP:"group"}}},Ke={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"type",RECIPIENT:"recipient",MESSAGE_ID:"messageId",RECEIVED:"delivered",DELIVERED_AT:"deliveredAt",ID:"id",TIME:"time",DELIVERED_TO_ME_AT:"deliveredToMeAt"},ie={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"type",RECIPIENT:"recipient",MESSAGE_ID:"messageId",READ:"read",READ_AT:"readAt",ID:"id",TIME:"time",READ_BY_ME_AT:"readByMeAt"},f={TYPE:{TEXT:"text",MEDIA:"media",IMAGE:"image",VIDEO:"video",AUDIO:"audio",FILE:"file",CUSTOM:"custom"},CATEGORY:{MESSAGE:"message",ACTION:"action",CALL:"call",CUSTOM:"custom"},RECEIVER_TYPE:{USER:"user",GROUP:"group"},KEYS:{ATTATCHMENT:"attatchment",ATTATCHMENTS:"attachments",ACTION:"action",TYPE:"type",DATA:"data",ID:"id",MUID:"muid",SENDER:"sender",RECEIVER:"receiver",RECEIVER_ID:"receiverId",CATEGORY:"category",RECEIVER_TYPE:"receiverType",SENT_AT:"sentAt",STATUS:"status",TEXT:"text",URL:"url",METADATA:"metadata",RECEIPTS:"receipts",MY_RECEIPTS:"myReceipt",CUSTOM_DATA:"customData",CUSTOM_SUB_TYPE:"subType",RESOURCE:"resource"},KNOWN_MEDIA_TYPE:{IMAGE:[],VIDEO:[],AUDIO:[],FILE:[]},PAGINATION:{AFFIX:{APPEND:"append",PREPEND:"prepend"},CURSOR_FILEDS:{ID:"id",SENT_AT:"sentAt"},CURSOR_AFFIX_DEFAULT:"prepend",CURSOR_FIELD_DEFAULT:"sentAt",KEYS:{PER_PAGE:"per_page",CURSOR_AFFIX:"cursorAffix",AFFIX:"affix",CURSOR_FIELD:"cursorField",CURSOR_VALUE:"cursorValue",UID:"uid",SENT_AT:"sentAt",ID:"id",CURRENT_PAGE:"page",UNREAD:"unread",HIDE_MESSAGES_FROM_BLOCKED_USER:"hideMessagesFromBlockedUsers",SEARCH_KEY:"searchKey",ONLY_UPDATES:"onlyUpdates",UPDATED_AT:"updatedAt",CATEGORY:"category",CATEGORIES:"categories",TYPE:"type",TYPES:"types",HIDE_REPLIES:"hideReplies",HIDE_DELETED_MESSAGES:"hideDeleted",WITH_TAGS:"withTags",TAGS:"tags"}}},P={KEYS:{EXTENSION:"extension",MIME_TYPE:"mimeType",NAME:"name",SIZE:"size",URL:"url"}},j;(function(ae){ae.ACTION="action",ae.MESSAGE="message",ae.CALL="call",ae.CUSTOM="custom"})(j||(j={}));var q={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"receiverType",META:"metadata",KEYS:{TYPING_NOTIFICATION:"typingNotification",TIMESTAMP:"timestamp"},ACTIONS:{STARTED:"started",ENDED:"ended"}},pe={ACTION_SUBJECTS:{ACTION_ON:"on",ACTION_BY:"by",ACTION_FOR:"for"},ACTION_ENTITY_TYPE:{GROUP_USER:"groupuser",USER:"user",GROUP:"group",MESSAGE:"message"},ACTION_KEYS:{ACTION_CREATED:"created",ACTION_UPDATED:"updated",ACTION_DELETED:"deleted",ENTITIES:"entities",ENTITY:"entity",ENTITY_TYPE:"entityType",TYPE_MEMBER_JOINED:"joined",TYPE_MEMBER_LEFT:"left",TYPE_MEMBER_KICKED:"kicked",TYPE_MEMBER_BANNED:"banned",TYPE_MEMBER_UNBANNED:"unbanned",TYPE_MEMBER_INVITED:"invited",TYPE_MEMBER_ADDED:"added",ACTION_SCOPE_CHANGED:"scopeChanged",ACTION_TYPE_USER:"user",ACTION_TYPE_GROUP:"group",ACTION_TYPE_GROUP_MEMBER:"groupMember",TYPE_MESSAGE_EDITED:"edited",TYPE_MESSAGE_DELETED:"deleted",ACTION_TYPE_CALL:"call",EXTRAS:"extras",SCOPE:"scope",NEW:"new",OLD:"old"},ActionMessages:{ACTION_GROUP_JOINED_MESSAGE:"%s joined",ACTION_GROUP_LEFT_MESSAGE:"%s left",ACTION_MEMBER_KICKED_MESSAGE:"%s kicked %s",ACTION_MEMBER_BANNED_MESSAGE:"%s banned %s",ACTION_MEMBER_UNBANNED_MESSAGE:"%s unbanned %s",ACTION_MEMBER_INVITED_MESSAGE:"%s banned %s",ACTION_MESSAGE_EDITED_MESSAGE:" Message Edited",ACTION_MESSAGE_DELETED_MESSAGE:"Message Deleted",ACTION_MEMBER_SCOPE_CHANGED:"%s made %s %s",ACTION_MEMBER_ADDED_TO_GROUP:"%s added %s"},ACTION_TYPE:{TYPE_MEMBER_JOINED:"joined",TYPE_MEMBER_LEFT:"left",TYPE_MEMBER_KICKED:"kicked",TYPE_MEMBER_BANNED:"banned",TYPE_MEMBER_UNBANNED:"unbanned",TYPE_MEMBER_INVITED:"invited",TYPE_MEMBER_SCOPE_CHANGED:"scopeChanged",TYPE_MESSAGE:"message",TYPE_MESSAGE_EDITED:"edited",TYPE_MESSAGE_DELETED:"deleted",TYPE_MEMBER_ADDED:"added"},ACTIONS:{MEMBER_ADDED:"added",MEMBER_JOINED:"joined",MEMBER_LEFT:"left",MEMBER_KICKED:"kicked",MEMBER_BANNED:"banned",MEMBER_UNBANNED:"unbanned",MEMBER_INVITED:"invited",MEMBER_SCOPE_CHANGED:"scopeChanged",MESSAGE_EDITED:"edited",MESSSAGE_DELETED:"deleted",TYPE_USER:"user",TYPE_GROUP:"group",TYPE_GROUP_MEMBER:"groupMember"}},Ae={REQUEST_KEYS:{DIRECTIONS:{BOTH:"both",HAS_BLOCKED_ME:"hasBlockedMe",BLOCKED_BY_ME:"blockedByMe"}}},le={CALL_MODE:{DEFAULT:"DEFAULT",SPOTLIGHT:"SPOTLIGHT"},AUDIO_MODE:{SPEAKER:"SPEAKER",EARPIECE:"EARPIECE",BLUETOOTH:"BLUETOOTH",HEADPHONES:"HEADPHONES"},CALL_TYPE:{AUDIO:"audio",VIDEO:"video"},RECEIVER_TYPE_GROUP:"group",RECEIVER_TYPE_USER:"user",CALL_KEYS:{CALL_DATA:"data",CALL_ID:"id",CALL_SESSION_ID:"sessionid",CALL_RECEIVER:"receiver",CALL_SENDER:"sender",CALL_RECEIVER_TYPE:"receiverType",CALL_STATUS:"status",CALL_TYPE:"type",CALL_INITIATED_AT:"initiatedAt",CALL_JOINED_AT:"joinedAt",CALL_LEFT_AT:"leftAt",CALL_METADATA:"metadata",CALL_ENTITIES:"entities",CALL_ENTITY_TYPE:"entityType",CALL_ENTITY:"entity",CALL_ENTITY_USER:"user",CALL_ENTITY_GROUP:"group"},CALL_STATUS:{INITIATED:"initiated",ONGOING:"ongoing",UNANSWERED:"unanswered",REJECTED:"rejected",BUSY:"busy",CANCELLED:"cancelled",ENDED:"ended"},ZOOM_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},FULL_SCREEN_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},USER_LIST_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},NAME_LABEL_DEFAULT_PARAMS:{position:"bottom-left",visible:!0,color:"#333333"},MAIN_VIDEO_CONTAINER_SETTINGS:{KEYS:{POSITION:"position",VISIBILITY:"visibility",COLOR:"color"}}},Se={KEYS:{NAME:"name",GUID:"guid",TYPE:"type",PASSWORD:"password",ICON:"icon",DESCRIPTION:"description",OWNER:"owner",METADATA:"metadata",CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",HAS_JOINED:"hasJoined",WS_CHANNEL:"wsChannel",TAGS:"tags"}},Re={KEYS:{SCOPE:"scope",UID:"uid",GUID:"guid",USER:"user",NAME:"name"}},T={UID:"uid",NAME:"name",AUTH_TOKEN:"authToken",AVATAR:"avatar",LAST_ACTIVE_AT:"lastActiveAt",LINK:"link",META_DATA:"metadata",ROLE:"role",STATUS:"status",STATUS_MESSAGE:"statusMessage",USER_NAME:"user_name",TAGS:"tags",SORT_BY:{NAME:"name",STATUS:"status"},SORT_ORDER:{ASCENDING:"asc",DESCENDING:"desc"}},k={ERROR_IO_EXCEPTION:"ERROR_IO_EXCEPTION",ERROR_JSON_EXCEPTION:"ERROR_JSON_EXCEPTION",ERROR_PASSWORD_MISSING:"ERROR_PASSWORD_MISSING",ERROR_LIMIT_EXCEEDED:"ERROR_LIMIT_EXCEEDED",ERROR_USER_NOT_LOGGED_IN:"ERROR_USER_NOT_LOGGED_IN",ERROR_INVALID_GUID:"ERROR_INVALID_GUID",ERROR_PASSWORD_MISSING_MESSAGE:"Password is mandatory for a password group",ERROR_LIMIT_EXCEEDED_MESSAGE:"Limit Exceeded Max limit of %s",ERROR_USER_NOT_LOGGED_IN_MESSAGE:"Please log in to CometChat before calling this method",ERROR_INVALID_GUID_MESSAGE:"Please provide a valid GUID",ERROR_DEFAULT_MESSAGE:"Something went wrong",ERR_SETTINGS_HASH_OUTDATED:"ERR_SETTINGS_HASH_OUTDATED",ERR_NO_AUTH:"ERR_NO_AUTH"},Y={CALL_ALREADY_INITIATED:{code:"CALL_ALREADY_INITIATED",name:"CALL_ALREADY_INITIATED",message:"There is already call in progress",details:{}},ERROR_IN_CALLING:{code:"CALL_IN_PROGRESS",name:"CALL_ALREADY_INITIATED",message:"There is already call in progress",details:{}},CANNOT_ACCEPT_CALL:{code:"OTHER_CALL_ONGOING",name:"OTHER_CALL_ONGOING",message:"There is already a call in progress",details:{}},NOT_INITIALIZED:{code:"NOT_INITIALIZED",name:"NOT_INITIALIZED",message:"Please call the CometChat.init() method before calling any other methods related to CometChat.",details:{}},NOT_LOGGED_IN:{code:"NOT_LOGGED_IN",name:"NOT_LOGGED_IN",message:"Please login before starting a call.",details:{}},SESSION_ID_REQUIRED:{code:"SESSION_ID_REQUIRED",name:"SESSION_ID_REQUIRED",message:"Please make sure you are passing correct session id.",details:{}},JWT_NOT_FOUND:{code:"JWT_NOT_FOUND",name:"JWT_NOT_FOUND",message:"There was some issue while fetching JWT from API.",details:{}},MODULE_NOT_INSTALLED:{code:"ERROR_CALL_MODULE_NOT_FOUND",name:"ERROR_CALL_MODULE_NOT_FOUND",message:"CometChat Calling module not found. Please add the CometChat Calling dependency and try again.",details:{}}},me={PARAMETER_REQUIRED:{code:"%s_NOT_PROVIDED",name:"%s_NOT_PROVIDED",message:"please provide the %s.",details:{}}},xe={GENERIC_EXCEPTION:{code:"GENERIC_EXCEPTION"},INVALID_ARGUMENT_EXCEPTION:{code:"INVALID_ARGUMENT_EXCEPTION"},INVALID_PROP_EXCEPTION:{code:"INVALID_PROP_EXCEPTION"},API_ERROR:{code:"API_ERROR"},ERROR_PRESENTER_MODE:{code:"ERROR_PRESENTER_MODE",message:"Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard"},UNKNOWN_API_ERROR:{code:"UNKNOWN_API_ERROR",message:"There is an unknown issue with the API request. Please check your internet connection and verify the api call."}},Ne={MISSING_PARAMETERS:{code:"MISSING_PARAMETERS",name:"MISSING_PARAMETERS",message:"Expected 4 parameters received 3",details:{}},INVALID_PARAMETER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s",details:{}},NO_WEBSOCKET_CONNECTION:{code:"NO_WEBSOCKET_CONNECTION",name:"NO_WEBSOCKET_CONNECTION",message:"Connection to our Websockets server is broken. Please retry after some time.",details:{}},RECEIPTS_TEMPORARILY_BLOCKED:{code:"RECEIPTS_TEMPORARILY_BLOCKED",name:"RECEIPTS_TEMPORARILY_BLOCKED",message:"Due to high load. Receipts have been blocked for your app.",details:{}},UNKNOWN_ERROR_OCCURRED:{code:"UNKNOWN_ERROR_OCCURRED",name:"UNKNOWN_ERROR_OCCURRED",message:"Unknown error occurred while marking a message as read.",details:{}}},ft={APP_SETTINGS:"app_settings",KEYS:{CHAT_HOST:"CHAT_HOST",CHAT_USE_SSL:"CHAT_USE_SSL",GROUP_SERVICE:"GROUP_SERVICE",CALL_SERVICE:"CALL_SERVICE",CHAT_WS_PORT:"CHAT_WS_PORT",CHAT_WSS_PORT:"CHAT_WSS_PORT",CHAT_HTTP_BIND_PORT:"CHAT_HTTP_BIND_PORT",CHAT_HTTPS_BIND_PORT:"CHAT_HTTPS_BIND_PORT",ADMIN_API_HOST:"ADMIN_API_HOST",CLIENT_API_HOST:"CLIENT_API_HOST",WEBRTC_HOST:"WEBRTC_HOST",WEBRTC_USE_SSL:"WEBRTC_USE_SSL",WEBRTC_WS_PORT:"WEBRTC_WS_PORT",WEBRTC_WSS_PORT:"WEBRTC_WSS_PORT",WEBRTC_HTTP_BIND_PORT:"WEBRTC_HTTP_BIND_PORT",WEBRTC_HTTPS_BIND_PORT:"WEBRTC_HTTPS_BIND_PORT",EXTENSION_LIST:"extensions",EXTENSION_KEYS:{ID:"id",NAME:"name"},JID_HOST_OVERRIDE:"JID_HOST_OVERRIDE",CHAT_HOST_OVERRIDE:"CHAT_HOST_OVERRIDE",CHAT_HOST_APP_SPECIFIC:"CHAT_HOST_APP_SPECIFIC",MODE:"MODE",CONNECTION_TYPE:"connection_type",DEFAULT_MODE:"DEFAULT",LIMITED_TRANSIENT:"LIMITED_TRANSIENT",NO_TRANSIENT:"NO_TRANSIENT",POLLING_ENABLED:"POLLING_ENABLED",POLLING_INTERVAL:"POLLING_INTERVAL",ANALYTICS_PING_DISABLED:"ANALYTICS_PING_DISABLED",ANALYTICS_HOST:"ANALYTICS_HOST",ANALYTICS_VERSION:"ANALYTICS_VERSION",ANALYTICS_USE_SSL:"ANALYTICS_USE_SSL",SETTINGS_HASH:"settingsHash",SETTINGS_HASH_RECEIVED_AT:"settingsHashReceivedAt",DENY_FALLBACK_TO_POLLING:"DENY_FALLBACK_TO_POLLING",APP_VERSION:"APP_VERSION",MAIN_DOMAIN:"MAIN_DOMAIN",CHAT_API_VERSION:"CHAT_API_VERSION",WS_API_VERSION:"WS_API_VERSION",REGION:"REGION",EXTENSION_DOMAIN:"EXTENSION_DOMAIN",WEBRTC_API_SUBDOMAIN:"WEBRTC_API_SUBDOMAIN"}},Jt={TYPE_CONSTANTS:{BOOLEAN:"boolean",STRING:"string",OBJECT:"object",NUMBER:"number"}},Qe={CONNECTED:"connected",CONNECTING:"connecting",DISCONNECTED:"disconnected",FEATURE_THROTTLED:"featureThrottled"},je={AUTH_ERR_AUTH_TOKEN_NOT_FOUND:"AUTH_ERR_AUTH_TOKEN_NOT_FOUND"},Pt={DOMAIN_PREFIX:"xmpp",PATH:{ROOM:"room",ROOM_SIZE:"room-size",SESSIONS:"sessions"},RESPONSE:{PARTICIPANTS:"participants"},QUERY_PARAMETERS:{DOMAIN:"domain",ROOM:"room"}},$t={INVALID_SESSIONID:{code:"ERROR_INVALID_SESSIONID",name:"ERROR_INVALID_SESSIONID",message:"The provided sessionId cannot be null or empty. Please provide a valid sessionId.",details:""},INVALID_TYPE:{code:"ERROR_INVALID_TYPE",name:"ERROR_INVALID_TYPE",message:"The provided type cannot be null or empty. Please provide a valid type.",details:""}},Xt={KEYS:{PASSTHROUGH:"passthrough",EXPAND:"expand"}},Kt={ENDPOINTS:{GET_ONLINE_MEMBER_COUNT:"api/%s/online-members"},RESPONSE:{ONLINE_USERS_COUNT:"onlineUsersCount",GROUPS:"groups"},ERRORS:{INVALID_GROUPLIST:{code:"ERROR_INVALID_GROUPLIST",name:"ERROR_INVALID_GROUPLIST",message:"Grouplist cannot be null or empty.",details:""}}},Ft=function(){function ae(te){"code"in te&&(this.code=te.code),"message"in te&&(this.message=te.message),"details"in te&&(this.details=te.details)}return ae}(),mn=function(){function ae(te){this.appId=te.appId,this.region=te.region,this.host=te.host}return ae.prototype.setAppId=function(te){return this.appId=te,this},ae.prototype.setRegion=function(te){return this.region=te,this},ae.prototype.setHost=function(te){return this.host=te,this},ae.prototype.getAppId=function(){return this.appId},ae.prototype.getRegion=function(){return this.region},ae.prototype.getHost=function(){return this.host},ae}(),At=function(){function ae(){}return ae.prototype.setAppId=function(te){return this.appId=te,this},ae.prototype.setRegion=function(te){return this.region=te,this},ae.prototype.setHost=function(te){return this.host=te,this},ae.prototype.build=function(){return new mn(this)},ae}();function Yt(ae){return new Promise(function(te,Ee){var ve=new Ft({code:"INVALID_CALL_APP_SETTINGS"});if(!(ae instanceof mn)){ve.message="appSettings must be an instance of CallAppSettings class",Ee(ve);return}var et=ae.getAppId(),ze=ae.getRegion(),Nt=ae.getHost();if(typeof et!="string"||et.length===0){ve.message="Invalid app id, please check your appSettings",Ee(ve);return}if(typeof ze!="string"||!nt[ze]){ve.message="Invalid region, please check your appSettings",Ee(ve);return}if(Nt!=null&&typeof Nt!="string"){ve.message="Invalid host, please check your appSettings",Ee(ve);return}te(!0)})}var Q=function(){function ae(te){this.defaultLayout=te.defaultLayout,this.isAudioOnly=te.isAudioOnly,this.listener=te.listener,this.mode=te.mode,this.ShowEndCallButton=te.ShowEndCallButton,this.ShowSwitchCameraButton=te.ShowSwitchCameraButton,this.ShowMuteAudioButton=te.ShowMuteAudioButton,this.ShowPauseVideoButton=te.ShowPauseVideoButton,this.ShowAudioModeButton=te.ShowAudioModeButton,this.StartAudioMuted=te.StartAudioMuted,this.StartVideoMuted=te.StartVideoMuted,this.defaultAudioMode=te.defaultAudioMode,this.ShowSwitchToVideoCallButton=te.ShowSwitchToVideoCallButton,this.AvatarMode=te.AvatarMode,this.ShowRecordingButton=te.ShowRecordingButton,this.StartRecordingOnCallStart=te.StartRecordingOnCallStart,this.MainVideoContainerSetting=te.MainVideoContainerSetting,this.EnableVideoTileClick=te.EnableVideoTileClick,this.enableDraggableVideoTile=te.enableDraggableVideoTile}return ae.prototype.isAudioOnlyCall=function(){return this.isAudioOnly},ae.prototype.isDefaultLayoutEnabled=function(){return this.defaultLayout},ae.prototype.getCallEventListener=function(){return this.listener},ae.prototype.getMode=function(){return this.mode},ae.prototype.isEndCallButtonEnabled=function(){return this.ShowEndCallButton},ae.prototype.isSwitchCameraButtonEnabled=function(){return this.ShowSwitchCameraButton},ae.prototype.isMuteAudioButtonEnabled=function(){return this.ShowMuteAudioButton},ae.prototype.isPauseVideoButtonEnabled=function(){return this.ShowPauseVideoButton},ae.prototype.isAudioModeButtonEnabled=function(){return this.ShowAudioModeButton},ae.prototype.getStartWithAudioMuted=function(){return this.StartAudioMuted},ae.prototype.getStartWithVideoMuted=function(){return this.StartVideoMuted},ae.prototype.getDefaultAudioMode=function(){return this.defaultAudioMode},ae.prototype.isAudioToVideoButtonEnabled=function(){return this.ShowSwitchToVideoCallButton},ae.prototype.getAvatarMode=function(){return this.AvatarMode},ae.prototype.isRecordingButtonEnabled=function(){return this.ShowRecordingButton},ae.prototype.shouldStartRecordingOnCallStart=function(){return this.StartRecordingOnCallStart},ae.prototype.getMainVideoContainerSetting=function(){return this.MainVideoContainerSetting},ae.prototype.isVideoTileClickEnabled=function(){return this.EnableVideoTileClick},ae.prototype.isVideoTileDragEnabled=function(){return this.enableDraggableVideoTile},ae.POSITION_TOP_LEFT="top-left",ae.POSITION_TOP_RIGHT="top-right",ae.POSITION_BOTTOM_LEFT="bottom-left",ae.POSITION_BOTTOM_RIGHT="bottom-right",ae.ASPECT_RATIO_DEFAULT="default",ae.ASPECT_RATIO_CONTAIN="contain",ae.ASPECT_RATIO_COVER="cover",ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},ae.ASPECT_RATIO={DEFAULT:"default",CONTAIN:"contain",COVER:"cover"},ae}(),ke=function(){function ae(){this.defaultLayout=!0,this.isAudioOnly=!1,this.mode=le.CALL_MODE.DEFAULT,this.ShowEndCallButton=!0,this.ShowSwitchCameraButton=!0,this.ShowMuteAudioButton=!0,this.ShowPauseVideoButton=!0,this.ShowAudioModeButton=!0,this.StartAudioMuted=!1,this.StartVideoMuted=!1,this.ShowSwitchToVideoCallButton=!0,this.AvatarMode="circle",this.ShowRecordingButton=!1,this.StartRecordingOnCallStart=!1,this.MainVideoContainerSetting=new ge,this.EnableVideoTileClick=!0,this.enableDraggableVideoTile=!0}return ae.prototype.enableDefaultLayout=function(te){return this.defaultLayout=te,this},ae.prototype.setIsAudioOnlyCall=function(te){return this.isAudioOnly=te,this},ae.prototype.setCallEventListener=function(te){return this.listener=te,this},ae.prototype.setMode=function(te){return this.mode=te,this},ae.prototype.showEndCallButton=function(te){return te===void 0&&(te=!0),this.ShowEndCallButton=te,this},ae.prototype.showSwitchCameraButton=function(te){return te===void 0&&(te=!0),this.ShowSwitchCameraButton=te,this},ae.prototype.showMuteAudioButton=function(te){return te===void 0&&(te=!0),this.ShowMuteAudioButton=te,this},ae.prototype.showPauseVideoButton=function(te){return te===void 0&&(te=!0),this.ShowPauseVideoButton=te,this},ae.prototype.showAudioModeButton=function(te){return te===void 0&&(te=!0),this.ShowAudioModeButton=te,this},ae.prototype.startWithAudioMuted=function(te){return te===void 0&&(te=!1),this.StartAudioMuted=te,this},ae.prototype.startWithVideoMuted=function(te){return te===void 0&&(te=!1),this.StartVideoMuted=te,this},ae.prototype.setDefaultAudioMode=function(te){return this.defaultAudioMode=te,this},ae.prototype.showSwitchToVideoCallButton=function(te){return te===void 0&&(te=!0),this.ShowSwitchToVideoCallButton=te,this},ae.prototype.setAvatarMode=function(te){return te===void 0&&(te="circle"),this.AvatarMode=te,this},ae.prototype.showRecordingButton=function(te){return te===void 0&&(te=!1),this.ShowRecordingButton=te,this},ae.prototype.startRecordingOnCallStart=function(te){return te===void 0&&(te=!1),this.StartRecordingOnCallStart=te,this},ae.prototype.setMainVideoContainerSetting=function(te){return this.MainVideoContainerSetting=te,this},ae.prototype.enableVideoTileClick=function(te){return te===void 0&&(te=!0),this.EnableVideoTileClick=te,this},ae.prototype.enableVideoTileDrag=function(te){return te===void 0&&(te=!0),this.enableDraggableVideoTile=te,this},ae.prototype.build=function(){return new Q(this)},ae}(),ge=function(){function ae(){this.videoFit=Q.ASPECT_RATIO_CONTAIN,this.zoomButton=le.ZOOM_BUTTON_DEFAULT_PARAMS,this.fullScreenButton=le.FULL_SCREEN_BUTTON_DEFAULT_PARAMS,this.userListButton=le.USER_LIST_BUTTON_DEFAULT_PARAMS,this.nameLabel=le.NAME_LABEL_DEFAULT_PARAMS}return ae.prototype.setMainVideoAspectRatio=function(te){te===void 0&&(te="contain"),this.videoFit=te},ae.prototype.setFullScreenButtonParams=function(te,Ee){te===void 0&&(te=Q.POSITION_BOTTOM_RIGHT),Ee===void 0&&(Ee=!0),o(te)||(this.fullScreenButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.fullScreenButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee)},ae.prototype.setNameLabelParams=function(te,Ee,ve){te===void 0&&(te=Q.POSITION_BOTTOM_LEFT),Ee===void 0&&(Ee=!0),ve===void 0&&(ve="#333333"),o(te)||(this.nameLabel[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.nameLabel[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee),o(ve)||(this.nameLabel[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.COLOR]=ve)},ae.prototype.setZoomButtonParams=function(te,Ee){te===void 0&&(te=Q.POSITION_BOTTOM_RIGHT),Ee===void 0&&(Ee=!0),o(te)||(this.zoomButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.zoomButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee)},ae.prototype.setUserListButtonParams=function(te,Ee){te===void 0&&(te=Q.POSITION_BOTTOM_RIGHT),Ee===void 0&&(Ee=!0),o(te)||(this.userListButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.POSITION]=te),Ee!=null&&Ee!=null&&(this.userListButton[le.MAIN_VIDEO_CONTAINER_SETTINGS.KEYS.VISIBILITY]=Ee)},ae}(),L=__webpack_require__(156),V=__webpack_require__.n(L),ee=__webpack_require__(925),se=function(){function ae(te){this.defaultLayout=te.defaultLayout,this.isAudioOnly=te.isAudioOnly,this.isPresenter=te.isPresenter,this.listener=te.listener,this.ShowEndCallButton=te.ShowEndCallButton,this.ShowSwitchCameraButton=te.ShowSwitchCameraButton,this.ShowMuteAudioButton=te.ShowMuteAudioButton,this.ShowPauseVideoButton=te.ShowPauseVideoButton,this.ShowAudioModeButton=te.ShowAudioModeButton,this.StartAudioMuted=te.StartAudioMuted,this.StartVideoMuted=te.StartVideoMuted,this.defaultAudioMode=te.defaultAudioMode,this.ShowRecordingButton=te.ShowRecordingButton}return ae.prototype.isAudioOnlyCall=function(){return this.isAudioOnly},ae.prototype.getIsPresenter=function(){return this.isPresenter},ae.prototype.isDefaultLayoutEnabled=function(){return this.defaultLayout},ae.prototype.getCallEventListener=function(){return this.listener},ae.prototype.isEndCallButtonEnabled=function(){return this.ShowEndCallButton},ae.prototype.isSwitchCameraButtonEnabled=function(){return this.ShowSwitchCameraButton},ae.prototype.isMuteAudioButtonEnabled=function(){return this.ShowMuteAudioButton},ae.prototype.isPauseVideoButtonEnabled=function(){return this.ShowPauseVideoButton},ae.prototype.isAudioModeButtonEnabled=function(){return this.ShowAudioModeButton},ae.prototype.getStartWithAudioMuted=function(){return this.StartAudioMuted},ae.prototype.getStartWithVideoMuted=function(){return this.StartVideoMuted},ae.prototype.getDefaultAudioMode=function(){return this.defaultAudioMode},ae.prototype.isRecordingButtonEnabled=function(){return this.ShowRecordingButton},ae.POSITION_TOP_LEFT="top-left",ae.POSITION_TOP_RIGHT="top-right",ae.POSITION_BOTTOM_LEFT="bottom-left",ae.POSITION_BOTTOM_RIGHT="bottom-right",ae.ASPECT_RATIO_DEFAULT="default",ae.ASPECT_RATIO_CONTAIN="contain",ae.ASPECT_RATIO_COVER="cover",ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},ae.ASPECT_RATIO={DEFAULT:"default",CONTAIN:"contain",COVER:"cover"},ae}(),Ie=function(){function ae(){this.defaultLayout=!0,this.isAudioOnly=!1,this.isPresenter=!1,this.ShowEndCallButton=!0,this.ShowSwitchCameraButton=!0,this.ShowMuteAudioButton=!0,this.ShowPauseVideoButton=!0,this.ShowAudioModeButton=!0,this.StartAudioMuted=!1,this.StartVideoMuted=!1,this.ShowRecordingButton=!1}return ae.prototype.enableDefaultLayout=function(te){return this.defaultLayout=te,this},ae.prototype.setIsAudioOnlyCall=function(te){return this.isAudioOnly=te,this},ae.prototype.setIsPresenter=function(te){return this.isPresenter=te,this},ae.prototype.setCallEventListener=function(te){return this.listener=te,this},ae.prototype.showEndCallButton=function(te){return te===void 0&&(te=!0),this.ShowEndCallButton=te,this},ae.prototype.showSwitchCameraButton=function(te){return te===void 0&&(te=!0),this.ShowSwitchCameraButton=te,this},ae.prototype.showMuteAudioButton=function(te){return te===void 0&&(te=!0),this.ShowMuteAudioButton=te,this},ae.prototype.showPauseVideoButton=function(te){return te===void 0&&(te=!0),this.ShowPauseVideoButton=te,this},ae.prototype.showAudioModeButton=function(te){return te===void 0&&(te=!0),this.ShowAudioModeButton=te,this},ae.prototype.startWithAudioMuted=function(te){return te===void 0&&(te=!1),this.StartAudioMuted=te,this},ae.prototype.startWithVideoMuted=function(te){return te===void 0&&(te=!1),this.StartVideoMuted=te,this},ae.prototype.setDefaultAudioMode=function(te){return this.defaultAudioMode=te,this},ae.prototype.showRecordingButton=function(te){return te===void 0&&(te=!1),this.ShowRecordingButton=te,this},ae.prototype.build=function(){return new se(this)},ae}(),Fe=function(){var ae=function(te,Ee){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,et){ve.__proto__=et}||function(ve,et){for(var ze in et)Object.prototype.hasOwnProperty.call(et,ze)&&(ve[ze]=et[ze])},ae(te,Ee)};return function(te,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Class extends value "+String(Ee)+" is not a constructor or null");ae(te,Ee);function ve(){this.constructor=te}te.prototype=Ee===null?Object.create(Ee):(ve.prototype=Ee.prototype,new ve)}}(),ct=function(ae){Fe(te,ae);function te(Ee){return ae.call(this,Ee)||this}return te.prototype.render=function(){return V().createElement(ee.View,{style:{flex:1,backgroundColor:"#000",justifyContent:"center",alignItems:"center",padding:20}},V().createElement(ee.Text,{style:{color:"#FFF"}},this.props.message))},te}(V().Component),vt=function(){var ae=function(te,Ee){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,et){ve.__proto__=et}||function(ve,et){for(var ze in et)Object.prototype.hasOwnProperty.call(et,ze)&&(ve[ze]=et[ze])},ae(te,Ee)};return function(te,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Class extends value "+String(Ee)+" is not a constructor or null");ae(te,Ee);function ve(){this.constructor=te}te.prototype=Ee===null?Object.create(Ee):(ve.prototype=Ee.prototype,new ve)}}(),ut=function(){return ut=Object.assign||function(ae){for(var te,Ee=1,ve=arguments.length;Ee<ve;Ee++){te=arguments[Ee];for(var et in te)Object.prototype.hasOwnProperty.call(te,et)&&(ae[et]=te[et])}return ae},ut.apply(this,arguments)},ye=function(ae){vt(te,ae);function te(Ee){var ve=ae.call(this,Ee)||this;return ve.state={shouldLoad:!1,errored:!1},ve.callsettings=Ee.callSettings,!ve.callsettings||!(ve.callsettings instanceof Q||ve.callsettings instanceof se)?(ve.state=ut(ut({},ve.state),{errored:!0}),console.error(new Ft({code:xe.INVALID_PROP_EXCEPTION.code,message:"Component requires valid callSettings.",details:"Component requires valid callSettings."})),ve):(Yt(yt.getAppSettings()).then(function(){var et,ze;if(typeof Ee.callToken!="string"||Ee.callToken===""){var Nt=new Ft({code:xe.INVALID_ARGUMENT_EXCEPTION.code,message:"Invalid callToken passed, please verify."});console.error(Nt),(ze=(et=ve.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onError)===null||ze===void 0||ze.call(et,Nt);return}he.verifyToken(Ee.callToken,yt.getAppSettings()).then(function(Et){var Gt,Ot,sn,Dn,ir,Xn,fr,qe,ot,Ct,Mt,Tn,ln,Oe,tt,Tt,jt,en;if(!((Ot=(Gt=Et==null?void 0:Et.data)===null||Gt===void 0?void 0:Gt.error)===null||Ot===void 0)&&Ot.message){console.error(Et.data.error.message),(Dn=(sn=ve.callsettings.getCallEventListener())===null||sn===void 0?void 0:sn.onError)===null||Dn===void 0||Dn.call(sn,new Ft({code:xe.API_ERROR.code,message:(Xn=(ir=Et==null?void 0:Et.data)===null||ir===void 0?void 0:ir.error)===null||Xn===void 0?void 0:Xn.message}));return}if(ve.callsettings.user=ut(ut({},Et.data.data.payload.data.user),{jwt:ve.props.callToken}),ve.callsettings.sessionID=Et.data.data.payload.room,ve.callsettings.appId=Et.data.data.payload.data.appId,ve.callsettings.domain=Et.data.data.settings.WEBRTC_HOST,typeof ve.callsettings.analyticsSettings!="object"&&(ve.callsettings.analyticsSettings={}),!((ot=(qe=(fr=Et==null?void 0:Et.data)===null||fr===void 0?void 0:fr.data)===null||qe===void 0?void 0:qe.settings)===null||ot===void 0)&&ot.ANALYTICS_HOST&&(ve.callsettings.analyticsSettings.ANALYTICS_HOST=Et.data.data.settings.ANALYTICS_HOST),!((Tn=(Mt=(Ct=Et==null?void 0:Et.data)===null||Ct===void 0?void 0:Ct.data)===null||Mt===void 0?void 0:Mt.settings)===null||Tn===void 0)&&Tn.ANALYTICS_VERSION&&(ve.callsettings.analyticsSettings.ANALYTICS_VERSION=Et.data.data.settings.ANALYTICS_VERSION),Ee.presenterMode)if(((tt=(Oe=(ln=Et==null?void 0:Et.data)===null||ln===void 0?void 0:ln.data)===null||Oe===void 0?void 0:Oe.settings)===null||tt===void 0?void 0:tt.PRESENTER_MODE_ENABLED)===!0)ve.setState({shouldLoad:!0,errored:!1});else{var bn=new Ft({code:xe.ERROR_PRESENTER_MODE.code,message:xe.ERROR_PRESENTER_MODE.message});(jt=(Tt=ve.callsettings.getCallEventListener())===null||Tt===void 0?void 0:Tt.onError)===null||jt===void 0||jt.call(Tt,bn),(en=g==null?void 0:g.callHandlers)===null||en===void 0||en.map(function(_n){var an;(an=_n==null?void 0:_n.onError)===null||an===void 0||an.call(_n,bn)}),console.error(bn),ve.setState({shouldLoad:!1,errored:!0})}else ve.setState({shouldLoad:!0,errored:!1})}).catch(function(Et){var Gt,Ot;(Ot=(Gt=ve.callsettings.getCallEventListener())===null||Gt===void 0?void 0:Gt.onError)===null||Ot===void 0||Ot.call(Gt,new Ft({code:xe.API_ERROR.code,message:"Unknown API error",details:Et})),console.error(Et),ve.setState({errored:!0})})}).catch(function(et){var ze,Nt;console.error(et),(Nt=(ze=ve.callsettings.getCallEventListener())===null||ze===void 0?void 0:ze.onError)===null||Nt===void 0||Nt.call(ze,new Ft({code:xe.API_ERROR.code,message:"Unknown API error",details:et})),ve.setState({errored:!0})}),ve)}return te.prototype.render=function(){var Ee=this;return this.state.errored?V().createElement(ct,{message:"Something went wrong! Please check logs for more details."}):this.state.shouldLoad?V().createElement(ee.View,{style:{flex:1,backgroundColor:"#000"}},V().createElement(d(),{ref:function(ve){return te.ref=ve},style:{flex:1,backgroundColor:"#000"},callsettings:this.callsettings,onEndCall:function(){var ve,et,ze;(et=(ve=Ee.callsettings.getCallEventListener())===null||ve===void 0?void 0:ve.onCallEnded)===null||et===void 0||et.call(ve),(ze=g==null?void 0:g.callHandlers)===null||ze===void 0||ze.map(function(Nt){var Et;(Et=Nt==null?void 0:Nt.onCallEnded)===null||Et===void 0||Et.call(Nt)}),g&&(g.callHandlers=[])},onCallEndButtonPressed:function(){var ve,et,ze;(et=(ve=Ee.callsettings.getCallEventListener())===null||ve===void 0?void 0:ve.onCallEndButtonPressed)===null||et===void 0||et.call(ve),(ze=g==null?void 0:g.callHandlers)===null||ze===void 0||ze.map(function(Nt){var Et;(Et=Nt==null?void 0:Nt.onCallEndButtonPressed)===null||Et===void 0||Et.call(Nt)})},onUserJoined:function(ve){var et,ze,Nt;ve&&(ve!=null&&ve.uid)&&(ve!=null&&ve.name)&&("jwt"in ve&&delete ve.jwt,"audioTrack"in ve&&delete ve.audioTrack,"videoTrack"in ve&&delete ve.videoTrack,"resource"in ve&&delete ve.resource,(ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserJoined)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserJoined)===null||Gt===void 0||Gt.call(Et,ve)}))},onUserLeft:function(ve){var et,ze,Nt;ve&&(ve!=null&&ve.uid)&&(ve!=null&&ve.name)&&("jwt"in ve&&delete ve.jwt,"audioTrack"in ve&&delete ve.audioTrack,"videoTrack"in ve&&delete ve.videoTrack,"resource"in ve&&delete ve.resource,(ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserLeft)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserLeft)===null||Gt===void 0||Gt.call(Et,ve)}))},onUserListChanged:function(ve){var et,ze,Nt;Array.isArray(ve)&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserListUpdated)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserListUpdated)===null||Gt===void 0||Gt.call(Et,ve)}))},onAudioModeChanged:function(ve){var et,ze,Nt;ve&&ve.length>0&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onAudioModesUpdated)===null||ze===void 0||ze.call(et,ve),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onAudioModesUpdated)===null||Gt===void 0||Gt.call(Et,ve)}))},onRecordingToggled:function(ve){var et,ze,Nt,Et,Gt,Ot,sn,Dn;if(ve&&ve.hasOwnProperty("user")&&ve.hasOwnProperty("recordingStarted")&&!((et=ve.user)===null||et===void 0)&&et.uid&&!((ze=ve.user)===null||ze===void 0)&&ze.name){var ir=ve.recordingStarted;"jwt"in ve.user&&delete ve.user.jwt,"audioTrack"in ve.user&&delete ve.user.audioTrack,"videoTrack"in ve.user&&delete ve.user.videoTrack,"resource"in ve.user&&delete ve.user.resource,ir?((Et=(Nt=Ee.callsettings.getCallEventListener())===null||Nt===void 0?void 0:Nt.onRecordingStarted)===null||Et===void 0||Et.call(Nt,ve.user),(Gt=g==null?void 0:g.callHandlers)===null||Gt===void 0||Gt.map(function(Xn){var fr;(fr=Xn==null?void 0:Xn.onRecordingStarted)===null||fr===void 0||fr.call(Xn,ve.user)})):((sn=(Ot=Ee.callsettings.getCallEventListener())===null||Ot===void 0?void 0:Ot.onRecordingStopped)===null||sn===void 0||sn.call(Ot,ve.user),(Dn=g==null?void 0:g.callHandlers)===null||Dn===void 0||Dn.map(function(Xn){var fr;(fr=Xn==null?void 0:Xn.onRecordingStopped)===null||fr===void 0||fr.call(Xn,ve.user)}))}},onCallSwitchedToVideo:function(ve){var et,ze,Nt;ve&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onCallSwitchedToVideo)===null||ze===void 0||ze.call(et,ve.user),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onCallSwitchedToVideo)===null||Gt===void 0||Gt.call(Et,ve.user)}))},onUserMuted:function(ve){var et,ze,Nt;ve&&((ze=(et=Ee.callsettings.getCallEventListener())===null||et===void 0?void 0:et.onUserMuted)===null||ze===void 0||ze.call(et,ve.user),(Nt=g==null?void 0:g.callHandlers)===null||Nt===void 0||Nt.map(function(Et){var Gt;(Gt=Et==null?void 0:Et.onUserMuted)===null||Gt===void 0||Gt.call(Et,ve.user)}))}})):V().createElement(ct,{message:"Initializing..."})},te.ref=null,te}(V().Component),rn=function(){var ae=function(te,Ee){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,et){ve.__proto__=et}||function(ve,et){for(var ze in et)Object.prototype.hasOwnProperty.call(et,ze)&&(ve[ze]=et[ze])},ae(te,Ee)};return function(te,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Class extends value "+String(Ee)+" is not a constructor or null");ae(te,Ee);function ve(){this.constructor=te}te.prototype=Ee===null?Object.create(Ee):(ve.prototype=Ee.prototype,new ve)}}(),or=function(){return or=Object.assign||function(ae){for(var te,Ee=1,ve=arguments.length;Ee<ve;Ee++){te=arguments[Ee];for(var et in te)Object.prototype.hasOwnProperty.call(te,et)&&(ae[et]=te[et])}return ae},or.apply(this,arguments)},dr=function(ae){rn(te,ae);function te(Ee){var ve=ae.call(this,Ee)||this;return ve.state={errored:!1},ve.props.presenterSettings.mode="PRESENTER",ve.props.presenterSettings instanceof se||(ve.state=or(or({},ve.state),{errored:!0}),console.error(new Ft({code:xe.INVALID_PROP_EXCEPTION.code,message:"Component requires valid presenterSettings.",details:"Component requires valid presenterSettings."}))),ve}return te.prototype.render=function(){return this.state.errored?V().createElement(ct,{message:"Something went wrong! Please check logs for more details."}):V().createElement(ye,{callSettings:this.props.presenterSettings,callToken:this.props.callToken,presenterMode:!0})},te}(V().Component),hr=function(ae,te,Ee,ve){function et(ze){return ze instanceof Ee?ze:new Ee(function(Nt){Nt(ze)})}return new(Ee||(Ee=Promise))(function(ze,Nt){function Et(sn){try{Ot(ve.next(sn))}catch(Dn){Nt(Dn)}}function Gt(sn){try{Ot(ve.throw(sn))}catch(Dn){Nt(Dn)}}function Ot(sn){sn.done?ze(sn.value):et(sn.value).then(Et,Gt)}Ot((ve=ve.apply(ae,te||[])).next())})},un=function(ae,te){var Ee={label:0,sent:function(){if(ze[0]&1)throw ze[1];return ze[1]},trys:[],ops:[]},ve,et,ze,Nt;return Nt={next:Et(0),throw:Et(1),return:Et(2)},typeof Symbol=="function"&&(Nt[Symbol.iterator]=function(){return this}),Nt;function Et(Ot){return function(sn){return Gt([Ot,sn])}}function Gt(Ot){if(ve)throw new TypeError("Generator is already executing.");for(;Nt&&(Nt=0,Ot[0]&&(Ee=0)),Ee;)try{if(ve=1,et&&(ze=Ot[0]&2?et.return:Ot[0]?et.throw||((ze=et.return)&&ze.call(et),0):et.next)&&!(ze=ze.call(et,Ot[1])).done)return ze;switch(et=0,ze&&(Ot=[Ot[0]&2,ze.value]),Ot[0]){case 0:case 1:ze=Ot;break;case 4:return Ee.label++,{value:Ot[1],done:!1};case 5:Ee.label++,et=Ot[1],Ot=[0];continue;case 7:Ot=Ee.ops.pop(),Ee.trys.pop();continue;default:if(ze=Ee.trys,!(ze=ze.length>0&&ze[ze.length-1])&&(Ot[0]===6||Ot[0]===2)){Ee=0;continue}if(Ot[0]===3&&(!ze||Ot[1]>ze[0]&&Ot[1]<ze[3])){Ee.label=Ot[1];break}if(Ot[0]===6&&Ee.label<ze[1]){Ee.label=ze[1],ze=Ot;break}if(ze&&Ee.label<ze[2]){Ee.label=ze[2],Ee.ops.push(Ot);break}ze[2]&&Ee.ops.pop(),Ee.trys.pop();continue}Ot=te.call(ae,Ee)}catch(sn){Ot=[6,sn],et=0}finally{ve=ze=0}if(Ot[0]&5)throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}},yt=function(){function ae(){}return ae.generateToken=function(te,Ee){var ve,et,ze,Nt,Et;return hr(this,void 0,void 0,function(){var Gt;return un(this,function(Ot){switch(Ot.label){case 0:return[4,Yt(this.appSettings)];case 1:if(Ot.sent(),!Ee||!te)throw new Ft({code:xe.INVALID_ARGUMENT_EXCEPTION.code,message:"Authtoken and session is required."});return[4,he.generateToken(Ee,te,this.appSettings)];case 2:if(Gt=Ot.sent(),!(!((ve=Gt==null?void 0:Gt.data)===null||ve===void 0)&&ve.data))throw!((ze=(et=Gt==null?void 0:Gt.data)===null||et===void 0?void 0:et.error)===null||ze===void 0)&&ze.message?new Ft({code:xe.API_ERROR.code,message:(Et=(Nt=Gt==null?void 0:Gt.data)===null||Nt===void 0?void 0:Nt.error)===null||Et===void 0?void 0:Et.message}):new Ft({code:xe.UNKNOWN_API_ERROR.code,message:xe.UNKNOWN_API_ERROR.message});return[2,Gt.data.data]}})})},ae.init=function(te){return hr(this,void 0,void 0,function(){return un(this,function(Ee){switch(Ee.label){case 0:return[4,Yt(te)];case 1:return Ee.sent(),this.appSettings=te,[2]}})})},ae.endSession=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.endCall()}catch(Ee){v.log("CometChatCalls :: endCall",Ee),m(Ee)}},ae.muteAudio=function(te){var Ee,ve;try{te?(Ee=ye==null?void 0:ye.ref)===null||Ee===void 0||Ee.muteAudio():(ve=ye==null?void 0:ye.ref)===null||ve===void 0||ve.unMuteAudio()}catch(et){v.log("CometChatCalls :: muteAudio",et),m(et)}},ae.pauseVideo=function(te){var Ee,ve;try{te?(Ee=ye==null?void 0:ye.ref)===null||Ee===void 0||Ee.pauseVideo():(ve=ye==null?void 0:ye.ref)===null||ve===void 0||ve.unPauseVideo()}catch(et){v.log("CometChatCalls :: pauseVideo",et),m(et)}},ae.resumeVideo=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.unPauseVideo()}catch(Ee){v.log("CometChatCalls :: resumeVideo",Ee),m(Ee)}},ae.setAudioMode=function(te){var Ee;try{te&&((Ee=ye==null?void 0:ye.ref)===null||Ee===void 0||Ee.setAudioMode(te))}catch(ve){v.log("CometChatCalls :: setAudioMode",ve),m(ve)}},ae.switchCamera=function(){var te,Ee;try{(Ee=(te=ye==null?void 0:ye.ref)===null||te===void 0?void 0:te.switchCamera)===null||Ee===void 0||Ee.call(te)}catch(ve){v.log("CometChatCalls :: switchCamera",ve),m(ve)}},ae.getAudioOutputModes=function(){try{return new Promise(function(te,Ee){var ve;(ve=ye==null?void 0:ye.ref)===null||ve===void 0||ve.getAudioModes().then(function(et){te(et)},function(et){Ee(et)})})}catch(te){v.log("CometChatCalls :: getAudioOutputModes",te),m(te)}},ae.switchToVideoCall=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.switchToVideoCall()}catch(Ee){v.log("CometChatCalls :: switchToVideoCall",Ee),m(Ee)}},ae.startRecording=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.startRecording()}catch(Ee){v.log("CometChatCalls :: startRecording",Ee),m(Ee)}},ae.stopRecording=function(){var te;try{(te=ye==null?void 0:ye.ref)===null||te===void 0||te.stopRecording()}catch(Ee){v.log("CometChatCalls :: stopRecording",Ee),m(Ee)}},ae.getAppSettings=function(){return this.appSettings},ae.CALL_MODE=le.CALL_MODE,ae.AUDIO_MODE=le.AUDIO_MODE,ae.addCallEventListener=g.addCallEventListener,ae.removeCallEventListener=g.removeCallEventListener,ae.OngoingCallListener=y,ae.CallSettingsBuilder=ke,ae.CallSettings=Q,ae.PresenterSettingsBuilder=Ie,ae.PresenterSettings=se,ae.CallAppSettingsBuilder=At,ae.CallAppSettings=mn,ae.Component=ye,ae.PresenterComponent=dr,ae}();const Zt=E})(),__webpack_exports__})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/calls-sdk-react-native",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Cometchat React Native Calling component for iOS and Android",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",