PageSourceSearch

https://www.clientpoint.me/_next/static/chunks/2138-5d1ac70559b54da9.js

js clientpoint.me collected 2026-10-02 07:12:50 UTC 63,735 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2138],{52138:function(e,t,i){"use strict";i.d(t,{U:function(){return tI},z:function(){return tR}});var n,r,s,l,a=i(52322);i(18713);var o=i(90182),c=i(26912);let d={debug:c.LogLevel.DEBUG,info:c.LogLevel.INFO,warn:c.LogLevel.WARN,error:c.LogLevel.ERROR,off:c.LogLevel.OFF},u=d.info||d.info,m={simulcastEnabled:!1,logger:new c.ConsoleLogger("ChimeComponentLibraryReactDemo",u)};var h=i(2784),x=i(66582);(n=s||(s={}))[n.Spectator=0]="Spectator",n[n.Attendee=1]="Attendee",(r=l||(l={}))[r.Gallery=0]="Gallery",r[r.Featured=1]="Featured";let g={Disabled:"0",CPU40Percent:"40"},p={Blur:"blur",Replacement:"replacement",None:"none"};var v=i(5632),f=i(12910);let j=h.createContext(null);function y(){let e=(0,h.useContext)(j);if(!e)throw Error("useAppState must be used within AppStateProvider");return e}function b(e){let{children:t}=e,{id:i}=(0,v.useRouter)().query,n=(0,o.wLl)(),[r,d]=(0,h.useState)(""),[u,m]=(0,h.useState)(s.Attendee),[y,b]=(0,h.useState)(void 0),[N,Z]=(0,h.useState)(l.Gallery),[w,S]=(0,h.useState)(!x.Dt),[C,k]=(0,h.useState)(void 0),[I,E]=(0,h.useState)(!1),[P,D]=(0,h.useState)(!1),[R,B]=(0,h.useState)(!0),[A,M]=(0,h.useState)(()=>localStorage.getItem("theme")||"light"),[L,T]=(0,h.useState)(g.CPU40Percent),[z,V]=(0,h.useState)(void 0),[F,O]=(0,h.useState)(void 0),[U,W]=(0,h.useState)("string"==typeof i?i:""),[J,H]=(0,h.useState)(""),[q,_]=(0,h.useState)(""),[G,Y]=(0,h.useState)(!1),[K,X]=(0,h.useState)(!1),[$,Q]=(0,h.useState)(!1),[ee,et]=(0,h.useState)(!1),[ei,en]=(0,h.useState)(!1),[er,es]=(0,h.useState)(!1),[el,ea]=(0,h.useState)(""),[eo,ec]=(0,h.useState)(p.None),[ed,eu]=(0,h.useState)({type:"",default:!x.tq}),[em,eh]=(0,h.useState)("");(0,h.useEffect)(()=>{ex()},[]);let ex=async()=>{eg(await fetch("".concat(f.ZG,"/default-background-vc/video-confrencing-bg-01.jpg")).then(e=>e.blob()))},eg=e=>{V(e)};return(0,a.jsx)(j.Provider,{value:{meetingId:U,localUserName:J,theme:A,isWebAudioEnabled:w,videoTransformCpuUtilization:L,imageBlob:z,savedImageBlob:F,transformOption:eo,isEchoReductionEnabled:R,region:r,meetingMode:u,layout:N,joinInfo:y,enableSimulcast:I,priorityBasedPolicy:C,keepLastFrameWhenPaused:P,initiOuterFunc:G,localUserId:q,recordingStatus:K,recordingEndStatus:ei,copyStatus:er,copyLink:el,onStartCamOnStatus:$,recordingInProgress:ee,shouldUpdateBg:ed,toggleTheme:()=>{"light"===A?(M("dark"),localStorage.setItem("theme","dark")):(M("light"),localStorage.setItem("theme","light"))},toggleWebAudio:()=>{S(e=>!e)},togglePriorityBasedPolicy:()=>{C?k(void 0):k(new c.VideoPriorityBasedPolicy(n))},toggleKeepLastFrameWhenPaused:()=>{D(e=>!e)},toggleSimulcast:()=>{E(e=>!e)},setCpuUtilization:e=>{T(e)},toggleEchoReduction:()=>{B(e=>!e)},setMeetingMode:m,setLayout:Z,setJoinInfo:b,setRegion:d,setBlob:eg,saveNewImageFile:e=>{O(e)},updatetransformOption:e=>{ec(e)},setAppMeetingInfo:(e,t,i,n,r)=>{d(i),W(e),H(t),_(n),eh(r)},toggleRecordingStatus:()=>{X(!K)},setRecEndStatus:e=>{en(e)},setCopStatus:e=>{es(e)},setCopLink:e=>{ea(e)},setInitiOuterMethod:e=>{Y(e)},setOnBootCamOnStatus:e=>{Q(e)},setRecordingInProgress:e=>{et(e)},setIsWebAudioEnabled:S,isCurrentUserHost:em,loadImage:ex,updateVcBg:e=>{eu(e)}},children:t})}let N=h.createContext({errorMessage:"",updateErrorMessage:e=>{}});function Z(e){let{children:t}=e,[i,n]=(0,h.useState)("");return(0,a.jsx)(N.Provider,{value:{errorMessage:i,updateErrorMessage:e=>{n(e)}},children:t})}var w=i(58694),S=i(6729),C=i(94668),k=i(96643),I=i(23925),E=i(76385),P=i(3265),D=()=>{let e=(0,o.DzP)(),[t,i]=h.useState(!1),n=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>i(!0)).catch(()=>i(!1))};return(h.useEffect(()=>{let e=parseFloat(x.MM);x.gn&&e>15&&e<16?i(!0):n()},[]),e===o.cEM.IN_PROGRESS)?(0,a.jsx)(S.Z,{maxWidth:"xs",open:!0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:x.gn?"allowcamera-dialog-vc safari_only":"allowcamera-dialog-vc",children:(0,a.jsx)(C.Z,{children:(0,a.jsx)(k.Z,{id:"alert-dialog-description",children:(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,a.jsx)(I.Z,{bgcolor:"secondary.microphoneBg",borderRadius:"100px",display:"flex",alignItems:"center",justifyContent:"center",width:"100px",height:"100px",mb:2.5,children:(0,a.jsx)("img",{alt:"description",src:P.Pj.src})}),(0,a.jsx)(I.Z,{color:"grey.900",mb:1,children:(0,a.jsx)(E.Z,{variant:"h6",gutterBottom:!0,color:"inherit",children:"Allow Microphone & Camera Access"})}),(0,a.jsx)(I.Z,{color:"grey.800",children:(0,a.jsx)(E.Z,{variant:"subtitle1",gutterBottom:!0,color:"inherit",children:'To proceed with your video conference, please click "Allow" in the ClientPoint Access Request box in the corner of your browser.'})})]})})})}):t?null:(0,a.jsx)(S.Z,{maxWidth:"xs",open:!0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:x.gn?"allowcamera-dialog-vc safari_only":"allowcamera-dialog-vc",children:(0,a.jsx)(C.Z,{children:(0,a.jsx)(k.Z,{id:"alert-dialog-description",children:(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,a.jsx)(I.Z,{bgcolor:"secondary.microphoneBg",borderRadius:"100px",display:"flex",alignItems:"center",justifyContent:"center",width:"100px",height:"100px",mb:2.5,children:(0,a.jsx)("img",{alt:"description",src:P.Pj.src})}),(0,a.jsx)(I.Z,{color:"#484342",mb:1,children:(0,a.jsx)(E.Z,{variant:"h6",gutterBottom:!0,color:"inherit",children:"Camera and Microphone Access Required"})}),(0,a.jsx)(I.Z,{color:"grey.800",children:(0,a.jsx)(E.Z,{variant:"subtitle1",gutterBottom:!0,color:"inherit",children:"Your device is currently not allowing the browser to use your camera or microphone."})})]})})})})},R=i(22170),B=i(60218),A=i(67862);function M(){let e=(0,A._)(["\n  width: 100%;\n  height: 0.625rem;\n  background-color: #ecf0f1;\n  border-radius: 0.25rem;\n"]);return M=function(){return e},e}function L(){let e=(0,A._)(["\n  height: 0.625rem;\n  background-color: #18bc9c;\n  border-radius: 0.25rem;\n  transform: scaleX(0);\n  transform-origin: left;\n  transition: transform 33ms ease-in-out;\n  will-change: transform;\n"]);return L=function(){return e},e}let T=w.ZP.div(M()),z=w.ZP.div(L()),V=h.forwardRef((e,t)=>
1(0,a.jsx)(T,{"data-props":e,children:(0,a.jsx)(z,{ref:t})}));V.displayName="ActivityBar";var F=()=>{let e=(0,h.useRef)();return(0,o.KCt)(e),(0,a.jsx)(V,{ref:e})},O=()=>(0,a.jsx)(F,{}),U=i(29254),W=i(11969),J=()=>{let{muted:e,toggleMute:t}=(0,o.HI)();return(0,a.jsxs)(h.Fragment,{children:[(0,a.jsx)("div",{className:"video-setting-vc",children:(0,a.jsx)(B.ZP,{container:!0,spacing:1,children:(0,a.jsxs)(B.ZP,{item:!0,xs:12,children:[(0,a.jsxs)("div",{className:"flex items-center mb-3.5",children:[(0,a.jsx)("div",{className:"flex items-center mr-2 text-primary",children:(0,a.jsx)(W.Z,{color:"inherit"})}),(0,a.jsx)("h5",{className:"text-base font-medium m-0",children:"Audio Settings"}),(0,a.jsx)("div",{className:"videocall-switch-vc  ml-auto",children:(0,a.jsx)(U.Z,{checked:!e,onClick:t,color:"primary",name:"toggleMute"})})]}),(0,a.jsx)("div",{className:"mb-5",children:(0,a.jsx)(o.XHd,{})})]})})}),(0,a.jsxs)("div",{className:"mb-5",children:[(0,a.jsx)("div",{className:"text-gray600",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,color:"inherit",children:"Microphone Activity"})}),(0,a.jsx)("div",{children:(0,a.jsx)(O,{})})]})]})};class H{constructor(e,t=440,i=1,n=.1,r=.1){let s=new(window.AudioContext||window.webkitAudioContext),l=s.createGain();l.gain.value=0;let a=s.createOscillator();a.frequency.value=t,a.connect(l);let o=s.createMediaStreamDestination();l.connect(o);let{currentTime:d}=s,u=d+.1;l.gain.linearRampToValueAtTime(0,u),l.gain.linearRampToValueAtTime(r,u+n),l.gain.linearRampToValueAtTime(r,u+n+i),l.gain.linearRampToValueAtTime(0,u+2*n+i),a.start();let m=new c.DefaultAudioMixController;(async()=>{if("setSinkId"in HTMLAudioElement.prototype)try{await m.bindAudioDevice({deviceId:e})}catch(e){}try{await m.bindAudioElement(new Audio)}catch(e){}})(),m.bindAudioStream(o.stream),new c.TimeoutScheduler((2*n+i+1)*1e3).start(()=>{s.close()})}}var q=i(45021),_=i(62951),G=()=>{let{selectedDevice:e}=(0,o.rzj)(),[t,i]=(0,h.useState)(e);return(0,a.jsxs)("div",{children:[(0,a.jsx)(I.Z,{mb:2.2,children:(0,a.jsx)(o.uS1,{onChange:e=>{i(e)}})}),(0,a.jsxs)(q.Z,{variant:"outlined",color:"primary",className:"testaudio-btn-vc",onClick:()=>{try{new H(t)}catch(e){}},children:[(0,a.jsx)(_.Z,{fontSize:"small",color:"inherit"})," Test Audio"]})]})},Y=i(94128),K=i(11915);let X=e=>{let{label:t="Video Transform Dropdown",refreshVideoPreview:i=!0,setVideoReplacementSelected:n=!0}=e,{imageBlob:r,updatetransformOption:s,transformOption:l}=y(),{isBackgroundBlurSupported:d,createBackgroundBlurDevice:u}=(0,o.QvM)(),{isBackgroundReplacementSupported:m,createBackgroundReplacementDevice:x}=(0,o.rJe)(),[g,v]=(0,h.useState)(!1),f=(0,o.fjl)(),{selectedDevice:j}=(0,o.ULf)();(0,h.useEffect)(()=>{i&&N(l)},[i,r]),(0,h.useEffect)(()=>{N(l),l===p.Replacement?n(!0):n(!1)},[l]);let b=[{label:"None",value:p.None},{label:"Background Blur",value:void 0===d||!1===d?"Background Blur not supported":p.Blur},{label:"Background Replacement",value:void 0===m||!1===m?"Background Replacement not supported":p.Replacement}],N=async e=>{let t=j;if(!g&&void 0!==t)try{if(v(!0),(0,c.isVideoTransformDevice)(t)){let e=await t.intrinsicDevice();await t.stop(),t=e}e===p.Blur&&d?t=await u(t):e===p.Replacement&&m&&(t=await x(t)),await f.startVideoInputDevice(t),s(e)}catch(e){console.error("Error trying to apply",Z,e)}finally{v(!1)}},Z=async e=>{N(e.target.value)};return(0,a.jsx)(o.WiK,{field:o.PhF,options:b,onChange:Z,value:l,label:t})};var $=i(94449),Q=i(90047),ee=()=>{let e=(0,$.v9)(e=>e.auth),{onStartCamOnStatus:t,setOnBootCamOnStatus:i,videoTransformCpuUtilization:n,setBlob:r,saveNewImageFile:s,updatetransformOption:l,updateVcBg:c,shouldUpdateBg:d}=y(),u=!x.tq&&n!==g.Disabled,[m,p]=(0,h.useState)(!1),[v,j]=(0,h.useState)(!1),[b,N]=(0,h.useState)(!1),{devices:Z}=(0,o.ULf)(),w=async e=>{if(null!==e.target){var t;let i=null===(t=e.target)||void 0===t?void 0:t.files;if(null!==i&&(null==i?void 0:i.length)){let t=i[0].name,n=t.lastIndexOf(".")+1,l=t.substr(n,null==t?void 0:t.length).toLowerCase();"gif"===l||"jpg"===l||"jpeg"===l||"png"===l||"svg"===l||"webp"===l?(s(i[0]),r(i[0]),j(!0),c({type:"set",default:d.default}),e.target.value=""):(e.target.value="",Q.Am.error("Only jpg/jpeg/png/gif/svg and webp files are allowed!"))}}},S=async()=>"unset"!==d.type&&(r(await fetch("".concat(f.ZG,"/default-background-vc/video-confrencing-bg-01.jpg")).then(e=>e.blob())),j(!0),c({type:"unset",default:d.default}),!0),C=async()=>
1{if(e.meetingConfiguration){let t=JSON.parse(JSON.stringify(e.meetingConfiguration));"string"==typeof t&&(t=JSON.parse(t)),t.virtualBackgroundURL&&(r(await fetch("".concat(f.ZG,"/").concat(t.virtualBackgroundURL)).then(e=>e.blob())),c({type:d.type,default:d.default})),l(t.videoTransformationType)}N(!0)};(0,h.useEffect)(()=>{let e=document.querySelector(".cus-quality-control select"),t=document.querySelector(".cp-videotransform-select select");e&&(e.options[3].selected=!0),t&&t.addEventListener("change",function(){},!1),C()},[]);let k=e=>{c({type:d.type,default:e.target.checked})};return(0,a.jsx)(I.Z,{className:"video-setting-vc",children:(0,a.jsx)(B.ZP,{container:!0,spacing:1,children:(0,a.jsxs)(B.ZP,{item:!0,xs:12,children:[(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",mb:1.8,children:[(0,a.jsx)(I.Z,{color:"primary.main",mr:1,display:"flex",alignItems:"center",children:(0,a.jsx)(K.Z,{color:"inherit"})}),(0,a.jsx)("h5",{className:"text-base font-medium m-0",children:"Video Settings"}),(0,a.jsx)(I.Z,{className:"videocall-switch-vc",children:(0,a.jsx)(U.Z,{onClick:()=>{i(!t)},color:"primary",name:"toggleVideo",inputProps:{"aria-label":"primary checkbox"}})})]}),(0,a.jsx)(I.Z,{mb:2.5,children:(0,a.jsx)(o.Rd2,{})}),(0,a.jsx)(I.Z,{mb:2.5,children:(0,a.jsx)(o.RkQ,{className:"cus-quality-control"})}),(null==Z?void 0:Z.length)>0&&(0,a.jsxs)(a.Fragment,{children:[u&&!0===b?(0,a.jsx)(I.Z,{className:"cp-videotransform-select",children:(0,a.jsx)(X,{refreshVideoPreview:v,setVideoReplacementSelected:p})}):"",(0,a.jsxs)(I.Z,{children:[(0,a.jsx)(I.Z,{color:"grey.600",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,color:"inherit",children:"Video Preview"})}),(0,a.jsx)(I.Z,{className:"videopreview-imgbox-vc remoteVideoTileHostView",children:(0,a.jsx)(o.Q_v,{})})]}),(0,a.jsxs)("div",{className:"change-btn-row flex items-center flex-wrap mt-4",children:[m&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)("label",{htmlFor:"contained-button-file",children:(0,a.jsxs)(q.Z,{size:"small",variant:"outlined",color:"primary",className:"!mr-[10px]",component:"span",children:[(0,a.jsx)("input",{className:"hidden",accept:"image/*",id:"contained-button-file",type:"file",onChange:w}),(0,a.jsx)("span",{children:"Change"})]})}),(0,a.jsx)(q.Z,{size:"small",variant:"outlined",color:"primary",onClick:S,children:"remove"})]}),!x.tq&&(0,a.jsx)("div",{className:"ml-auto change-switcher",children:(0,a.jsx)(Y.Z,{className:"mr-0",value:"end",control:(0,a.jsx)(U.Z,{checked:d.default,onChange:e=>{k(e)},size:"small",color:"primary"}),label:"Set as Default",labelPlacement:"end"})})]})]})]})})})},et=()=>(0,a.jsxs)(B.ZP,{container:!0,spacing:3,className:"device-Settingc
1ontent-vc overflow-auto iosDevice  chromeBrs  safariBrs ",children:[(0,a.jsx)(B.ZP,{item:!0,lg:6,md:6,sm:6,xs:12,children:(0,a.jsx)(ee,{})}),(0,a.jsxs)(B.ZP,{item:!0,lg:6,md:6,sm:6,xs:12,className:"ml-auto",children:[(0,a.jsx)(J,{}),(0,a.jsx)(G,{})]})]}),ei=i(60418),en=i(95207),er=i(56189),es=()=>{let{savedImageBlob:e,transformOption:t,shouldUpdateBg:i}=y(),n=(0,o.fjl)(),r=(0,$.v9)(e=>e.auth),[s,l]=(0,h.useState)(!1),c=async()=>{l(!0);let s="";if(""===i.type){if(r.meetingConfiguration){let e=JSON.parse(JSON.stringify(r.meetingConfiguration));"string"==typeof e&&(e=JSON.parse(e)),e.virtualBackgroundURL&&(s=e.virtualBackgroundURL)}}else if("set"===i.type&&void 0!==e&&void 0!==e.name){s="uploads/users/".concat(r.userId,"/background/").concat(e.name);let t=await en.zk.get("".concat(f.eb,"/utility/aws/presignedUrl?filepath=").concat(s,"&bucket=").concat(f.td,"&type=PUT&acl=private&contentType=").concat(e.type));if(!t.data.data)throw Error("Invalid Response from AWS Presign request");let i=t.data.data;await ei.Z.put(i,e,{headers:{"Content-Type":e.type,"Cache-Control":"no-cache"}})}if(i&&!0===i.default){let e={userId:r.userId,virtualBackgroundURL:s,videoTransformationType:t,modifiedBy:r.userId};await en.zk.patch("".concat(f.R8,"/user/meeting/configuration"),e)}await n.start()};return(0,a.jsxs)("div",{className:"device-join-meeting text-center",children:[(0,a.jsxs)(q.Z,{id:"joinmeetingnow",onClick:c,variant:"contained",color:"primary",className:"joinmeeting-btn-vc rounded",disableElevation:!0,disabled:s,style:{minWidth:"220px"},size:"large",children:[(0,a.jsx)("img",{alt:"description",style:{marginRight:"0.563rem"},src:P.y3.src}),s?(0,a.jsx)(er.aN,{color:"inherit",size:26}):"Join Meeting Now"]}),(0,a.jsx)(o.__J,{style:{margin:".75rem 0 0 0"}})]})},el=()=>(0,a.jsx)("div",{className:"vc-settings w-full flex align-center justify-center",children:(0,a.jsxs)("div",{className:"device-Settingpage-vc rounded-md m-auto overflow-hidden max-w-[900px] bg-white",children:[(0,a.jsxs)("div",{className:"devicesetting-header-vc flex items-center px-[3.188rem] py-[1.35rem] bg-white relative z-10",children:[(0,a.jsx)("div",{className:"flex items-center mr-3 text-primary",children:(0,a.jsx)(R.Z,{color:"inherit"})}),(0,a.jsx)("h5",{className:"font-bold m-0 text-[1.375rem]",children:"Device Settings"})]}),(0,a.jsx)("hr",{className:"noparticipants-divider-vc divider h-[1px] w-full relative z-10"}),(0,a.jsx)(et,{}),(0,a.jsx)(es,{})]})}),ea=i(96633),eo=i(53084),ec=i(16940),ed=i(13600),eu=i(14441),em=e=>{let{attendeeId:t,name:i,customTileWidth:n,totalCounnt:r}=e,{localUserId:s}=y(),{attendeeIdToTileId:l}=(0,o.akC)(),{muted:c}=(0,o.ZzJ)(t),{isVideoEnabled:d,tileId:u}=(0,o.Onx)(),m=0;s===t?d&&null!==u&&(m=u):Object.keys(l).forEach(e=>{e===t&&(m=l[e])});let x=(0,o.qtg)(),g=c||-1===Object.values(x).indexOf(t)?"":"2px solid #ed3c33",p=(0,a.jsxs)("div",{className:"video-grid_item w-full h-[inherit] flex items-center justify-center",children:[m?(0,a.jsx)("div",{className:s===t?"remoteVideoTileHostView video-fit-in-tile":"video-fit-in-tile",children:(0,a.jsx)(o.ZzX,{className:"remoteVideoTile",tileId:m})}):(0,a.jsx)(h.Fragment,{children:(0,a.jsx)(eo.Z,{src:P.T1.src,style:{borderRadius:"50%",width:"25%",height:"45%",background:"#fff",fontSize:"10px"},className:"joinmeeting-avatar-vc videoitem-img-vc capitalize absolute",alt:"Remy Sharp",children:(0,a.jsx)("div",{className:"text-[#BDBDBD]",children:(0,a.jsx)(eu.Z,{color:"inherit",transform:"scale(1)"})})})}),(0,a.jsxs)("div",{className:"videoitem-caption-vc absolute left-0 bottom-0 inline-flex items-center bg-[#000000b3] px-[3px] py-[1px]",children:[(0,a.jsx)("div",{color:"error.textIconRed",className:"speaking-icon-vc text-[#ff7063] flex items-center",children:c?(0,a.jsx)(ec.Z,{color:"inherit",style:{fontSize:19}}):(0,a.jsx)(ed.Z,{style:{fontSize:19,color:"rgb(217 208 198)"}})}),(0,a.jsxs)("div",{className:"participants-name-vc text-white inline-flex",children:[(0,a.jsx)("h6",{className:"capitalize participants-name",children:i}),s===t?(0,a.jsx)("div",{className:"participants-list-me ml-1 inline-flex items-center"}):""]})]})]});return(0,a.jsx)("div",{className:"video-griditem-vc relative user-".concat(r<=10?"10":"20","  bg-[#814676]"),style:{border:g,height:""+n.height,width:""+n.width,backgroundImage:"url(".concat(P.Jf.src,")")},children:p})};function eh(e,t,i){let n=i-8,r=t-8,s=0,l=1;for(;l<5e3;){if(!1===function(e,t,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,s=0,l=0,a=.56*e+2*r;for(;s<t;)l+e>i&&(l=0,a=a+.56*e+2*r),l=l+e+2*r,s++;return!(a>n)&&e}(l,e,n,r,2)){s=l-1;break}l++}return{height:.56*(s-=2)+"px",width:s+"px",margin:"2px"}}var ex=e=>{let{divHeight:t,divWidth:i}=e,{roster:n}=(0,o.dJs)(),{host:r}=(0,v.useRouter)().query,s=Object.values(n),[l,c]=(0,h.useState)(eh(null==s?void 0:s.length,t,i));s=s.filter(e=>(e.name,!0));let[d]=(0,h.useState)(0),{isVideoEnabled:u,tileId:m}=(0,o.Onx)(),x=u?m:0,g=null==s?void 0:s.length,p=()=>{c(eh(g,t,i))};(0,h.useEffect)(()=>{p()},[i]),(0,h.useEffect)(()=>{p()},[g]),(0,h.useEffect)(()=>{p()},[t]);let f=s.map((e,t)=>{let{chimeAttendeeId:i,name:n}=e;return(0,a.jsx)(em,{attendeeId:i,name:n,colorIndex:6*d+t,customTileWidth:l,totalCounnt:null==s?void 0:s.length},t)}
1);return(0,a.jsx)("div",{className:"invite-participantscopylink-vc flex  justify-center items-center flex-col ".concat((null==s?void 0:s.length)>1?"relative ":" "," "),children:(null==s?void 0:s.length)>1?(0,a.jsx)("div",{className:"video-grid-vc ",children:(0,a.jsx)("div",{className:"outer-grid flex items-stretch place-content-stretch justify-center flex-wrap",children:f})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-9 vc-img",children:(0,a.jsx)("img",{alt:"description",src:P.Km.src})}),(0,a.jsx)("h5",{className:"text-2xl font-bold mb-1.5 leading-normal",children:r?"Welcome to your meeting!":"Your Meeting is in Progress"}),(0,a.jsx)("p",{className:"text-sm leading-normal mb-4",children:r?"You are in the meeting experience now but no one has joined you yet. Tap below to invite others.":"Click on the button below to invite other participants into this meeting"}),(0,a.jsxs)("button",{id:"copylinkinvite","data-clipboard-text":"".concat(window.location.href),className:"copyinvite-btn-vc px-[22px] py-2 uppercase font-medium min-h-[44px] rounded-md text-sm tracking-[.15px] bg-primary hover:bg-buttonHover text-white",children:[(0,a.jsx)(ea.Z,{className:"mr-1.5",fontSize:"small",color:"inherit"})," ","Copy Link Invite"]}),x?(0,a.jsx)("div",{className:"localVideoPreview remoteVideoTileHostView remoteVideoTileNameRotate",children:(0,a.jsx)(o.ZzX,{name:"Me",className:"remoteVideoTile sadsa",tileId:x})}):""]})})};let eg=f.sr;async function ep(e,t,i,n){let r={clientPointId:e,title:encodeURIComponent(e),name:encodeURIComponent(t),region:encodeURIComponent(i),ns_es:String(!0)},s=await en.zk.post("".concat(eg,"/join?host=").concat(encodeURIComponent(n),"&name=").concat(encodeURIComponent(t)).concat(i?"&region=".concat(encodeURIComponent(i)):""),r),{data:l}=await s;if(l.error)throw Error("Server error: ");return l}async function ev(e){await en.zk.post("".concat(eg,"/end?proposalId=").concat(encodeURIComponent(e)))}var ef=i(44258),ej=i(26275),ey=i(3),eb=i(41859),eN=i(88555);let eZ=h.createContext(null),ew=()=>window.innerWidth>991,eS=e=>{let{children:t}=e,[i,n]=(0,h.useState)(ew()),[r,s]=(0,h.useState)(ew()),[l,o]=h.useState(!1),[c,d]=(0,h.useState)(!1),[u,m]=(0,h.useState)(0),[x,g]=(0,h.useState)(0),p=(0,h.useRef)(ew());return(0,h.useEffect)(()=>{let e=()=>{let e=ew();p.current!==e&&(p.current=e,e?n(!0):(n(!1),s(!1)))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,h.useEffect)(()=>{u>x&&m(x)}),(0,a.jsx)(eZ.Provider,{value:{showNavbar:i,showRoster:r,showChat:c,openEndMeeting:l,seenCount:u,recivedCount:x,toggleRoster:()=>{s(!r)},toggleEndMeeting:e=>{o(e)},toggleChat:()=>{d(!c)},toggleNavbar:()=>{n(!i)},openRoster:()=>{s(!0)},closeRoster:()=>{s(!1)},openNavbar:()=>{n(!0)},closeNavbar:()=>{n(!1)},openChat:()=>{d(!0)},closeChat:()=>{d(!1)},updateSeenCount:e=>{m(e)},updateRecivedCount:e=>{g(e)}},children:t})},eC=()=>{let e=(0,h.useContext)(eZ);if(!e)throw Error("Use useNavigation in NavigationProvider");return e};var ek=e=>{let{setIsLoading:t}=e,i=(0,o.fjl)(),{openEndMeeting:n,toggleEndMeeting:r}=eC(),[s,l]=(0,h.useState)(!1),c=()=>{l(!1)},{meetingId:d,isCurrentUserHost:u}=y(),{isVideoEnabled:m,toggleVideo:x}=(0,o.Onx)(),g=async()=>{m&&await x(),await i.leave()},p=async()=>{t(!0),m&&x(),c();try{d&&await ev(d)}catch(e){}},v=async()=>{r(!0)},f=()=>{r(!1)};return(0,a.jsxs)(I.Z,{className:"cus-meeting-control-endmeeting",children:[(0,a.jsxs)(I.Z,{display:"flex",flexDirection:"column",mr:4.3,className:"menubarButton",textAlign:"center",children:[(0,a.jsx)(I.Z,{color:"grey.50",onClick:v,className:"end-meenting-btn",children:(0,a.jsx)(ef.Z,{color:"inherit","aria-label":"user",className:"meeting-icons-vc",children:(0,a.jsx)(eN.Z,{style:{fontSize:20}})})}),(0,a.jsx)(I.Z,{color:"grey.700",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,className:"meetingnav-dropdownmenu-vc",color:"inherit",children:(0,a.jsx)(ej.Z,{color:"inherit",className:"innermenu",underline:"none",children:"Leave"})})})]}),(0,a.jsx)(S.Z,{maxWidth:"xs",open:n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"endmeeting-dialog-vc",children:(0,a.jsx)(C.Z,{children:(0,a.jsxs)(k.Z,{id:"alert-dialog-description",children:[(0,a.jsx)(I.Z,{color:"grey.1200",style:{textAlign:"right"},children:(0,a.jsx)(eb.Z,{color:"inherit",className:"modal-closeicon-rc cursor-pointer",onClick:f})}),(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,a.jsx)(I.Z,{mb:2,children:(0,a.jsx)("img",{alt:"description",src:P.hG.src})}),(0,a.jsx)(I.Z,{className:"mb-9",color:"text.textBlue",children:(0,a.jsx)(E.Z,{variant:"h5",gutterBottom:!0,color:"inherit",style:{fontWeight:"700"},children:"End Meeting"})}),"yes"!==u&&(0,a.jsx)(I.Z,{color:"grey.800",display:"block",width:"100%",borderRadius:"4px",fontWeight:"700",mb:1.5,children:(0,a.jsx)(q.Z,{id:"endmeetingcancel",color:"primary",className:"cancel-meeting-rc",variant:"outlined",disableElevation:!0,fullWidth:!0,onClick:f,startIcon:(0,a.jsx)(eb.Z,{style:{fontSize:23}}),children:"Cancel"})}),(0,a.jsx)(I.Z,{className:"assignhost-btn-oe ".concat("yes"===u?"bg-[#fff] text-[#e31b0c]":"bg-[#e31b0c] text-[#fff]"),border:"1px solid #E31B0C",display:"inline-flex",borderRadius:"4px",onClick:g,mb:1.8,children:(0,a.jsx)(q.Z,{id:"leave-meeting",variant:"outlined",color:"inherit",startIcon:(0,a.jsx)(eN.Z,{style:{fontSize:23}}),children:"LEAVE MEETING"})}),"yes"===u?(0,a.jsx)(I.Z,{className:"assignhost-btn-oe",border:"1px solid #E31B0C",display:"inline-flex",borderRadius:"4px",bgcolor:"error.dark",color:"text.textWhite",onClick:()=>{r(!1),l(!0)},children:(0,a.jsx)(q.Z,{id:"endmeetingforall",variant:"outlined",color:"inherit",startIcon:(0,a.jsx)(eN.Z,{style:{fontSize:23}}),children:"END MEETING FOR ALL"})}):""]})]})})}),(0,a.jsxs)(S.Z,{maxWidth:"xs",open:s,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"endmeeting-dialog-vc endmeeting-conformation-dialog",children:[(0,a.jsx)(C.Z,{children:(0,a.jsxs)(k.Z,{id:"alert-dialog-description",children:[(0,a.jsx)("h5",{className:"text-lg text-black mb-1 text-left font-medium",children:"End meeting for all?"}),(0,a.jsx)(I.Z,{display:"flex",children:(0,a.jsx)(I.Z,{color:"grey.800",textAlign:"left",children:(0,a.jsx)(E.Z,{color:"inherit",variant:"subtitle1",gutterBottom:!0,children:"Are you sure you want to end this meeting for all participants?"})})})]})}),(0,a.jsxs)(ey.Z,{children:[(0,a.jsx)(I.Z,{minWidth:"90px",border:"1px solid #663D00",color:"warning.textDark",display:"inline-flex",borderRadius:"4px",mr:.4,children:(0,a.jsx)(q.Z,{variant:"outlined",color:"inherit",className:"yes-btn-rc endmeeting-no-btn",onClick:c,children:"No"})}),(0,a.jsx)(I.Z,{minWidth:"90px",bgcolor:"warning.main",color:"white",display:"inline-flex",borderRadius:"4px",children:(0,a.jsx)(q.Z,{color:"warning",className:"continue-btn-rc endmeeting-yes-btn",variant:"contained",onClick:p,disableElevation:!0,children:"Yes"})})]})]})]})},eI=i(1676),eE=i(12053),eP=i(65235),eD=i(37304),eR=i(90492),eB=i(98318),eA=i(70774),eM=i(17625),eL=i(11228),eT=i(1054),ez=i(26835),eV=i(11585),eF=e=>(0,a.jsx)(S.Z,{maxWidth:"xs",open:e.showPopup,onClose:()=>{e.onPerPopup(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:"endmeeting-dialog-vc",children:(0,a.jsx)(C.Z,{children:(0,a.jsxs)(k.Z,{id:"alert-dialog-description",children:[(0,a.jsx)(I.Z,{color:"grey.1200",children:(0,a.jsx)(eb.Z,{color:"inherit",className:"modal-closeicon-rc",onClick:()=>{e.onPerPopup(!1)}})}),(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",flexDirection:"column",children:[(0,a.jsx)(I.Z,{mb:2,children:(0,a.jsx)("img",{src:e.isPermission?P.tm.src:P.pY.src,style:{width:100}})}),(0,a.jsx)(I.Z,{color:"text.textDarkBlue",mb:1.5,className:"access-camera-heading",children:(0,a.jsx)(E.Z,{color:"inherit",variant:"h6",gutterBottom:!0,children:e.isPermission?e.perMessage:e.notFoundMessage})}),e.isPermission&&(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",flexWrap:"wrap",children:[(0,a.jsx)(I.Z,{minWidth:"130px",className:"help-button-vc",bgcolor:"primary.main",color:"text.textWhite",display:"inline-flex",borderRadius:"4px",mr:1.5,children:(0,a.jsx)(q.Z,{href:e.helpLink,target:"_blank",color:"inherit",className:"edit-btn-rc",variant:"contained",disableElevation:!0,children:"Help"})}),(0,a.jsx)(I.Z,{minWidth:"130px",className:"cancel-button-vc",bgcolor:"primary.editPrimayBgLight",color:"grey.800",display:"inline-flex",borderRadius:"4px",mr:1.5,children:(0,a.jsx)(q.Z,{color:"inherit",onClick:()=>{e.onPerPopup(!1)},className:"edit-btn-rc",variant:"contained",disableElevation:!0,children:"CLOSE"})})]})]})]})})}),eO=()=>{var e,t,i,n;let[r,s]=h.useState(!1),l=()=>{s(!1)},[c,d]=h.useState(null),[u,m]=h.useState(!1),x=()=>{m(!1)},[g,p]=h.useState(!1);h.useEffect(()=>{let e=setTimeout(()=>{p(!1)},3e3);return()=>{clearTimeout(e)}},[g]);let{devices:v,selectedDevice:f}=(0,o.m6Y)(),j=(0,o.fjl)(),y=async e=>{try{await j.startAudioInputDevice(e.target.value)}catch(e){console.error("Failed to start audio input device")}},[b,N]=h.useState(!1);h.useEffect(()=>{let e=setTimeout(()=>{N(!1)},3e3);return()=>{clearTimeout(e)}},[b]);let{isAudioOn:Z,toggleAudio:w}=(0,o.H3N)(),S=(0,o.rzj)(),C=async e=>{try{await j.startAudioOutputDevice(e.target.value)}catch(e){console.error("Failed to start audio output device")}},[k,P]=h.useState(!1);h.useEffect(()=>{let e=setTimeout(()=>{P(!1)},3e3);return()=>{clearTimeout(e)}},[k]);let D=(0,o.ULf)(),A=async e=>{try{await j.startVideoInputDevice(e.target.value)}catch(e){}},[M,L]=h.useState(!1),[T,z]=h.useState(!1),V=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;t?console.log("Video Conferencing(Speaker): Audio Permission Error"):console.log("Video Conferencing(Speaker): No Speaker Found"),z(t),L(e)},F=(0,a.jsxs)("div",{className:" settingModal",children:[(0,a.jsxs)(B.ZP,{container:!0,spacing:3,children:[(0,a.jsx)(B.ZP,{item:!0,xs:9,children:(0,a.jsx)("h2",{style:{marginTop:"0",fontSize:"20px",color:"rgba(113, 44, 99, 1)",fontWeight:"bold"},children:"Settings"})}),(0,a.jsx)(B.ZP,{item:!0,xs:3,style:{textAlign:"end",alignSelf:"self-end"},children:(0,a.jsx)(q.Z,{"aria-controls":"fade-menu","aria-haspopup":"true",className:"setting-close-icon",onClick:l,style:{minWidth:"auto"},children:(0,a.jsx)(eb.Z,{style:{fontSize:"20px",color:"rgba(113, 44, 99, 1)"}})})})]}),(0,a.jsx)(B.ZP,{container:!0,spacing:3,children:(0,a.jsxs)(B.ZP,{item:!0,xs:12,children:[(0,a.jsx)(eM.Z,{in:g,children:(0,a.jsx)(eT.Z,{action:(0,a.jsx)(q.Z,{"aria-label":"close",color:"inherit",size:"small",style:{marginBottom:"8px"},onChange:()=>{p(!0)},children:(0,a.jsx)(eb.Z,{fontSize:"inherit"})}),children:"Mic Settings Changed Successfully!"})}),(0,a.jsx)(eM.Z,{in:b,children:(0,a.jsx)(eT.Z,{action:(0,a.jsx)(q.Z,{"aria-label":"close",color:"inherit",size:"small",style:{marginBottom:"8px"},onClick:()=>{N(!1)},children:(0,a.jsx)(eb.Z,{fontSize:"inherit"})}),children:"Speaker Settings Changed Successfully!"})}),(0,a.jsx)(eM.Z,{in:k,children:(0,a.jsx)(eT.Z,{action:(0,a.jsx)(q.Z,{"aria-label":"close",color:"inherit",size:"small",style:{marginBottom:"8px"},onClick:()=>{P(!1)},children:(0,a.jsx)(eb.Z,{fontSize:"inherit"})}),children:"Video Settings Changed Successfully!"})})]})}),(0,a.jsxs)(B.ZP,{container:!0,spacing:3,children:[(null==v?void 0:v.length)>0&&(0,a.jsx)(B.ZP,{item:!0,xs:12,children:(0,a.jsxs)(eB.Z,{style:{width:"100%"},children:[(0,a.jsx)(eR.Z,{id:"setting-modal-mic-label",children:"MIC Settings"}),(0,a.jsx)(eA.Z,{native:!0,labelId:"setting-modal-mic-label",id:"setting-modal-mic-select",onChange:e=>{y(e),p(!0)},value:f,label:"MIC Settings",children:v.map((e,t)=>(0,a.jsx)("option",{value:e.deviceId,children:e.label},t))})]})}),(null===(e=S.devices)||void 0===e?void 0:e.length)>0&&(0,a.jsx)(B.ZP,{item:!0,xs:12,children:(0,a.jsxs)(eB.Z,{style:{width:"100%"},children:[(0,a.jsx)(eR.Z,{id:"setting-modal-speaker-label",children:"Speaker Settings"}),(0,a.jsx)(eA.Z,{native:!0,labelId:"setting-modal-speaker-label",id:"setting-modal-speaker-select",onChange:e=>{C(e),N(!0)},label:"Speaker Settings",value:S.selectedDevice,children:S.devices.map((e,t)=>(0,a.jsx)("option",{value:e.deviceId,children:e.label},t))})]})}),(null===(t=D.devices)||void 0===t?void 0:t.length)>0&&(0,a.jsx)(B.ZP,{item:!0,xs:12,children:(0,a.jsxs)(eB.Z,{style:{width:"100%"},children:[(0,a.jsx)(eR.Z,{id:"setting-modal-video-label",children:"Video Settings"}),(0,a.jsx)(eA.Z,{native:!0,labelId:"setting-modal-video-label",id:"setting-modal-video-select",onChange:e=>{A(e),P(!0)},label:"Video Settings",value:D.selectedDevice,children:D.devices.map((e,t)=>(0,a.jsx)("option",{value:e.deviceId,children:e.label},t))})]})})]})]});return(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)(eF,{type:"speaker",helpLink:"https://support.clientpoint.net/hc/en-us/articles/4424843635607",perMessage:"Failed to detect an audio output device. Please make sure your audio output device is properly connected.",notFoundMessage:"Failed to detect an audio output device. Please make sure your audio output device is properly connected.",showPopup:M,isPermission:T,onPerPopup:V}),(0,a.jsxs)(I.Z,{display:"flex",flexDirection:"column",mr:4.3,className:"cus-meeting-control-sett
1ing",children:[(0,a.jsx)(I.Z,{color:"grey.50","aria-controls":"fade-menu","aria-haspopup":"true",onClick:e=>{m(!0),d(e.currentTarget)},style:{textAlign:"center"},children:(0,a.jsx)(q.Z,{color:"inherit","aria-label":"user",className:"meeting-icons-vc ",style:{padding:"0",minWidth:"30px"},children:(0,a.jsx)(ez.Z,{style:{fontSize:20}})})}),(0,a.jsx)(I.Z,{color:"grey.700",style:{visibility:"hidden",opacity:"0"},children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,className:"meetingnav-dropdownmenu-vc",color:"inherit",children:(0,a.jsxs)(ej.Z,{color:"inherit",className:"innermenu",children:["Chat",(0,a.jsx)(I.Z,{color:"grey.50",ml:.6,display:"flex",alignItems:"center"})]})})}),(0,a.jsxs)(eL.ZP,{id:"mouse-over-popover",open:!!c,anchorEl:c,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},style:{visibility:u?"visible":"hidden"},onClose:x,disableRestoreFocus:!0,TransitionComponent:eE.Z,children:[(0,a.jsxs)(eI.Z,{color:"grey.50",onClick:()=>{var e,t;null!==S.selectedDevice&&""!==S.selectedDevice&&(null===(e=S.devices)||void 0===e?void 0:e.length)>0?w():(null===(t=S.devices)||void 0===t?void 0:t.length)>0&&(null===S.selectedDevice||""===S.selectedDevice)?V(!0,!0):V(!0,!1)},children:[(0,a.jsx)(eP.Z,{color:"grey.50",className:"meeting-icons-vc "+(Z&&null!==S.selectedDevice&&""!==S.selectedDevice&&(null===(i=S.devices)||void 0===i?void 0:i.length)>0?" !text-[#712C63]":" !text-[#424242]"),onClick:x,children:Z&&null!==S.selectedDevice&&""!==S.selectedDevice&&(null===(n=S.devices)||void 0===n?void 0:n.length)>0?(0,a.jsx)(_.Z,{style:{fontSize:20}}):(0,a.jsx)(eV.Z,{style:{fontSize:20}})}),(0,a.jsx)(E.Z,{variant:"inherit",children:"Speaker"})]}),(0,a.jsxs)(eI.Z,{"data-clipboard-text":"".concat(window.location.href),onClick:x,className:"copyinvite-btn-vc",children:[(0,a.jsx)(eP.Z,{className:"meeting-icons-vc ",children:(0,a.jsx)(ea.Z,{style:{fontSize:20}})}),(0,a.jsx)(E.Z,{variant:"inherit",children:"Copy Meeting link "})]}),(0,a.jsxs)(eI.Z,{onClick:()=>{s(!0)},children:[(0,a.jsx)(eP.Z,{onClick:x,className:"meeting-icons-vc",children:(0,a.jsx)(R.Z,{style:{fontSize:20}})}),(0,a.jsx)(E.Z,{variant:"inherit",children:"Settings"})]}),(0,a.jsx)(eD.Z,{open:r,onClose:l,className:"settingModalParent","aria-labelledby":"Controller Setting","aria-describedby":"Controller Setting",children:F})]})]})]})},eU=i(58314),eW=i(92884),eJ=()=>{let{toggleRoster:e}=eC(),{roster:t}=(0,o.dJs)(),i=Object.values(t);return i=i.filter(e=>(e.name,!(null==e?void 0:e.externalUserId.startsWith("MediaPipeline")))),(0,a.jsx)(I.Z,{mr:4.3,display:"flex",flexDirection:"column",width:"60px",className:"participants-userlistsidebar-vc participants-usermobileicon-vc ",position:"relative",onClick:e,children:(0,a.jsx)(eU.Z,{badgeContent:null==i?void 0:i.length,color:"primary",className:"userlist-badge-vc",children:(0,a.jsx)(I.Z,{color:"grey.50",children:(0,a.jsx)(ef.Z,{"aria-label":"user",className:"user-list-vc",color:"inherit",children:(0,a.jsx)(eW.Z,{style:{fontSize:20}})})})})})},eH=()=>{let{devices:e,selectedDevice:t}=(0,o.m6Y)(),{isWebAudioEnabled:i}=y(),{muted:n}=(0,o.HI)(),[r,s]=(0,h.useState)(!1),[l,c]=(0,h.useState)(!1),d=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;t?console.log("Video Conferencing(Audio): Audio Permission Error"):console.log("Video Conferencing(Audio): No Microphone Found"),c(t),s(e)};return""!==t&&null!==t&&(null==e?void 0:e.length)>0?(0,a.jsxs)(I.Z,{className:n?"cus-meeting-control-audio":"cus-meeting-control-audio cus-meeting-audio-color",children:[i?(0,a.jsx)(o.I4K,{voiceFocusOffLabel:"Enable Background Noise Cancellation",voiceFocusOnLabel:"Background Noise Cancellation is Enabled"}):(0,a.jsx)(o._nn,{}),(0,a.jsx)("h5",{children:"Mute"})]}):(0,a.jsxs)(h.Fragment,{children:[(0,a.jsx)(eF,{type:"audio",helpLink:"https://support.clientpoint.net/hc/en-us/articles/4424843635607",perMessage:"Failed to detect your microphone. Please make sure your microphone is properly connected.",notFoundMessage:"Failed to detect your microphone. Please make sure your microphone is properly connected.",showPopup:r,isPermission:l,onPerPopup:d}),(0,a.jsxs)(I.Z,{display:"flex",flexDirection:"column",mr:4.3,className:"menubarButton",children:[(0,a.jsx)(I.Z,{color:"grey.50",onClick:()=>{(null==e?void 0:e.length)>0&&(""===t||null===t)?d(!0,!0):d(!0,!1)},style:{textAlign:"center",height:"26px"},children:(0,a.jsx)(ef.Z,{color:"inherit","aria-label":"user",className:"meeting-icons-vc "+(!n&&null!==t&&(null==e?void 0:e.length)>0?" activeMenuBtn":" "),children:(0,a.jsx)(ec.Z,{style:{fontSize:20}})})}),(0,a.jsx)(I.Z,{color:"grey.700",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,className:"meetingnav-dropdownmenu-vc",color:"inherit",children:(0,a.jsx)(ej.Z,{"aria-controls":void 0,"aria-haspopup":"true",color:"inherit",children:(0,a.jsx)("span",{className:"innermenu",children:"Mute"})})})})]})]})},eq=i(6126),e_=i(33958),eG=i.n(e_),eY=function(e,t){let i=(0,h.useRef)(),n=i.current,r=t(n,e);return(0,h.useEffect)(()=>{r||(i.current=e)}),r?n:e},eK=e=>
1{let{label:t="Video",backgroundBlurLabel:i="Enable Background Blur",backgroundReplacementLabel:n="Enable Background Replacement"}=e,{transformOption:r}=y(),s=(0,o.fjl)(),l=(0,o.wLl)(),{devices:d,selectedDevice:u}=(0,o.ULf)(),{isVideoEnabled:m,toggleVideo:x}=(0,o.Onx)(),{isBackgroundBlurSupported:g,createBackgroundBlurDevice:v}=(0,o.QvM)(),{isBackgroundReplacementSupported:f,createBackgroundReplacementDevice:j}=(0,o.rJe)(),[b,N]=(0,h.useState)(!1),[Z,w]=(0,h.useState)(null),[S,C]=(0,h.useState)(p.None),[k,I]=(0,h.useState)(!0),E=eY(d,(e,t)=>eG()(e,t)),P=async()=>{let e=u;if(!b&&void 0!==e)try{if(N(!0),(0,c.isVideoTransformDevice)(e)){if(S===p.Replacement){let t=await e.intrinsicDevice();await e.stop(),e=t,e=await v(e),l.info("Video filter was turned on - video transform device: ".concat(JSON.stringify(e)))}if(S===p.Blur){let t=await e.intrinsicDevice();await e.stop(),e=t}}else e=await v(e);m?await s.startVideoInputDevice(e):await s.selectVideoInputDevice(e),C(e=>e===p.Blur?p.None:p.Blur)}catch(e){l.error("Error trying to toggle background blur ".concat(e))}finally{N(!1)}},D=async()=>{let e=u;if(!b&&void 0!==e)try{if(N(!0),(0,c.isVideoTransformDevice)(e)){if(S===p.Blur){let t=await e.intrinsicDevice();await e.stop(),e=t,e=await j(e),l.info("Video filter turned on - selecting video transform device: ".concat(JSON.stringify(e)))}if(S===p.Replacement){let t=await e.intrinsicDevice();await e.stop(),e=t}}else e=await j(e);m?await s.startVideoInputDevice(e):await s.selectVideoInputDevice(e),C(e=>e===p.Replacement?p.None:p.Replacement)}catch(e){l.error("Error trying to toggle background replacement ".concat(e))}finally{N(!1)}};return(0,h.useEffect)(()=>{let e=async e=>{try{let t=e;if((0,c.isVideoTransformDevice)(u)&&!b){if(N(!0),"chooseNewInnerDevice"in u)t=u.chooseNewInnerDevice(e);else{l.error("Transform device cannot choose new inner device");return}}m?await s.startVideoInputDevice(t):s.selectVideoInputDevice(t)}catch(e){l.error("VideoInputTransformControl failed to select video input device")}finally{N(!1)}};(async()=>{let t=await Promise.all(E.map(async t=>(0,a.jsx)(o.bJO,{checked:await (0,o.EBI)(u,t.deviceId),onClick:async()=>await e(t.deviceId),children:(0,a.jsx)("span",{children:t.label})},t.deviceId)));if(g){let e=(0,a.jsx)(o.bJO,{checked:S===p.Blur,disabled:b,onClick:P,children:(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(o.$jN,{width:"1.5rem",height:"1.5rem"}),i]})},"backgroundBlurFilter");t.push((0,a.jsx)(o.h$y,{},"separator1")),t.push(e)}if(f){let e=(0,a.jsx)(o.bJO,{checked:S===p.Replacement,disabled:b,onClick:D,children:(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(o.$jN,{width:"1.5rem",height:"1.5rem"}),n]})},"backgroundReplacementFilter");t.push((0,a.jsx)(o.h$y,{},"separator2")),t.push(e)}w(t)})()},[v,j,s,s.startVideoInputDevice,E,b,m,u,g,f]),(0,h.useEffect)(()=>{if(null!=u&&u&&!0===k){switch(r){case p.Replacement:D();break;case p.Blur:P()}I(!1)}},[u]),(0,a.jsx)(o.B8T,{icon:(0,a.jsx)(o.V1s,{disabled:!m}),onClick:x,label:t,id:"cus-camara-button",children:Z})},eX=()=>{let{videoTransformCpuUtilization:e}=y(),t=e!==g.Disabled&&!x.tq,{isVideoEnabled:i,hasReachedVideoLimit:n}=(0,o.Onx)(),{devices:r,selectedDevice:s}=(0,o.ULf)(),[l,c]=h.useState(!1),[d,u]=h.useState(!1),m=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;t?console.log("Video Conferencing(Audio): Audio Permission Error"):console.log("Video Conferencing(Audio): No Microphone Found"),u(t),c(e)};return""!==s&&null!==s&&(null==r?void 0:r.length)>0?(0,a.jsxs)(I.Z,{onClick:()=>{n&&Q.Am.error("Could not turn on your camera. The maximum of 25 video participants has been reached. You can still participate and talk.")},className:i?"cus-meeting-control-video cus-meeting-video-color":"cus-meeting-control-video",children:[t?(0,a.jsx)(eK,{}):(0,a.jsx)(o.Zr5,{}),(0,a.jsx)("h5",{children:"Video"})]}):(0,a.jsxs)(h.Fragment,{children:[(0,a.jsx)(eF,{type:"video",helpLink:"https://support.clientpoint.net/hc/en-us/articles/4424843635607",perMessage:"Failed to start the video camera. Please install another video camera and try again.",notFoundMessage:"Failed to start the video camera. Please install another video camera and try again.",showPopup:l,isPermission:d,onPerPopup:m}),(0,a.jsxs)(I.Z,{display:"flex",flexDirection:"column",mr:4.3,className:"menubarButton",children:[(0,a.jsx)(I.Z,{color:"grey.50",onClick:()=>{(null==r?void 0:r.length)>0&&(""===s||null===s)?m(!0,!0):m(!0,!1)},style:{textAlign:"center",height:"26px"},children:(0,a.jsx)(ef.Z,{color:"inherit","aria-label":"user",className:"meeting-icons-vc ",children:(0,a.jsx)(eq.Z,{style:{fontSize:20}})})}),(0,a.jsx)(I.Z,{color:"grey.700",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,className:"meetingnav-dropdownmenu-vc",color:"inherit",children:(0,a.jsx)(ej.Z,{"aria-controls":void 0,"aria-haspopup":"true",color:"inherit",children:(0,a.jsx)("span",{className:"innermenu",children:"Video"})})})})]})]})},e$=()=>{let{isLocalUserSharing:e}=(0,o.EJc)();return(0,a.jsxs)(I.Z,{className:e?"cus-meeting-control-share cus-meeting-share-color":"cus-meeting-control-share",children:[(0,a.jsx)(o.aUr,{}),(0,a.jsx)("h5",{children:"Share"})]})},eQ=()=>{var e;let{isAudioOn:t}=(0,o.H3N)(),i=(0,o.rzj)(),[n,r]=(0,h.useState)(!1),[s,l]=(0,h.useState)(!1),c=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;t?console.log("Video Conferencing(Audio): Audio Permission Error"):console.log("Video Conferencing(Audio): No Microphone Found"),l(t),r(e)};return x.Q5&&(x.G6||x.vU)||""!==i.selectedDevice&&null!==i.selectedDevice&&(null===(e=i.devices)||void 0===e?void 0:e.length)>
10?(0,a.jsxs)(I.Z,{className:t?"cus-meeting-control-speaker cus-meeting-speaker-color":"cus-meeting-control-speaker",children:[(0,a.jsx)(o.Eid,{}),(0,a.jsx)("h5",{children:"Speaker"})]}):(0,a.jsxs)(h.Fragment,{children:[(0,a.jsx)(eF,{type:"speaker",helpLink:"https://support.clientpoint.net/hc/en-us/articles/4424843635607",perMessage:"Failed to detect an audio output device. Please make sure your audio output device is properly connected.",notFoundMessage:"Failed to detect an audio output device. Please make sure your audio output device is properly connected.",showPopup:n,isPermission:s,onPerPopup:c}),(0,a.jsxs)(I.Z,{display:"flex",flexDirection:"column",mr:4.3,className:"menubarButton",children:[(0,a.jsx)(I.Z,{color:"grey.50",onClick:()=>{var e;(null===(e=i.devices)||void 0===e?void 0:e.length)>0&&(""===i.selectedDevice||null===i.selectedDevice)?c(!0,!0):c(!0,!1)},style:{textAlign:"center",height:"26px"},children:(0,a.jsx)(ef.Z,{color:"inherit","aria-label":"user",className:"meeting-icons-vc ",children:(0,a.jsx)(eV.Z,{style:{fontSize:20}})})}),(0,a.jsx)(I.Z,{color:"grey.700",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,className:"meetingnav-dropdownmenu-vc",color:"inherit",children:(0,a.jsx)(ej.Z,{"aria-controls":void 0,"aria-haspopup":"true",color:"inherit",children:(0,a.jsx)("span",{className:"innermenu",children:"Speaker"})})})})]})]})},e0=i(46803),e1=()=>{let{toggleChat:e,recivedCount:t,seenCount:i}=eC(),n=Number(t)-Number(i);return(0,a.jsx)(I.Z,{className:"cus-meeting-control-chat ",children:(0,a.jsx)(I.Z,{display:"flex",flexDirection:"column",mr:4.3,className:"menubarButton",children:(0,a.jsxs)(eU.Z,{badgeContent:n,color:"primary",className:"chatBtnControl",children:[(0,a.jsx)(I.Z,{color:"grey.50",onClick:e,children:(0,a.jsx)(ef.Z,{color:"inherit","aria-label":"user",className:"meeting-icons-vc "+(0===n?" ":" activeMenuBtn"),children:(0,a.jsx)(e0.Z,{style:{fontSize:20}})})}),(0,a.jsx)(I.Z,{color:"grey.700",children:(0,a.jsx)(E.Z,{variant:"body2",gutterBottom:!0,className:"meetingnav-dropdownmenu-vc",color:"inherit",children:(0,a.jsxs)(ej.Z,{color:"inherit",className:"innermenu",underline:"none",children:["Chat",(0,a.jsx)(I.Z,{color:"grey.50",ml:.6,display:"flex",alignItems:"center"})]})})})]})})})},e2=e=>{let{setIsLoading:t}=e,{closeRoster:i}=eC(),{sharingAttendeeId:n}=(0,o.EJc)(),r=h.useRef(!1);return h.useEffect(()=>{r.current?n&&!x.nI&&i():r.current=!0},[n]),(0,a.jsx)("div",{className:"".concat("active-navigation-menu"," meeting-menu-vc paper left-0 max-w-full bottom-0 rounded-none w-full right-0 absolute m-auto p-1 box-border"),id:"meetingMenuId",children:(0,a.jsxs)("div",{className:"mobilemenu-centeralign-vc items-center justify-center flex",children:[(0,a.jsx)(eJ,{}),(0,a.jsx)(eH,{}),(0,a.jsx)(eX,{}),!x.tq&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e$,{}),(0,a.jsx)(eQ,{})]}),(0,a.jsx)(e1,{}),(0,a.jsx)(ek,{setIsLoading:t}),x.tq&&(0,a.jsx)(eO,{})]})})},e5=i(96577),e3=i.n(e5),e4=i(10495),e6=i(55934),e8=i(69745),e9=i(16223),e7=i(71645);let te=h.createContext(null),tt=()=>{let e=(0,h.useContext)(te);if(!e)throw Error("Error using RealitimeSubscribe in context!");return e},ti=e=>{let{children:t}=e,{toggleMute:i}=(0,o.HI)(),n=(0,o.LoD)(),{localUserId:r}=y(),[s]=(0,h.useState)([]),l=e=>{JSON.parse(e.text()).senderName===r&&i()};return(0,h.useEffect)(()=>{if(n)return n.realtimeSubscribeToReceiveDataMessage("EVENT",l),()=>{n.realtimeUnsubscribeFromReceiveDataMessage("EVENT")}}),(0,a.jsx)(te.Provider,{value:{eventData:s,sendEventData:(e,t)=>{if(!e.trim().length)return;let i={uuid:(0,e7.Z)(),action:"sendmessage",cmd:"TEXT",data:e,createdDate:new Date().getTime(),senderName:t,senderId:r};n.realtimeSendDataMessage("EVENT",JSON.stringify(i))}},children:t})};var tn=e=>{let{indexId:t,attendeeId:i,name:n,host:r}=e,{toggleMute:s}=(0,o.HI)(),{toggleVideo:l}=(0,o.Onx)(),{muted:c,videoEnabled:d,sharingContent:u}=(0,o.ZzJ)(i),{sendEventData:m}=tt(),{localUserId:h,isCurrentUserHost:x}=y(),g=(0,en.SV)(t),p=(e,t)=>{"yes"!==x||t||m("Mute",e)};return(0,a.jsxs)("li",{className:"".concat(h===i?"current-user":"","flex items-center flex-wrap py-1.5 pl-[1rem] pr-[.313rem] hover:bg-primaryLightBg ","no-pointer flex items-center flex-wrap py-1.5 pl-[1rem] pr-[.313rem]"),children:[(0,a.jsx)("div",{className:"participants-avatar mr-2.5",children:(0,a.jsx)("div",{style:{background:g},className:"participants-avatar-vc capitalize text-sm w-9 h-9 font-medium rounded-xl flex items-center justify-center text-white",children:(0,en.Ux)(n)})}),(0,a.jsx)("div",{className:"capitalize flex-1",children:(0,a.jsx)("h6",{className:"text-sm font-normal capitalize leading-4",children:(0,a.jsx)("span",{children:n})})}),h===i?(0,a.jsx)("div",{className:"participants-list-me mr-1 inline-flex items-center",children:(0,a.jsx)("img",{alt:"",src:""})}):"",(0,a.jsx)("div",{className:"flex items-center mike-options",children:(0,a.jsx)(o.oy9,{name:"",subtitle:r?"Host":"",muted:c,sharingContent:u,menu:"",microphone:(0,a.jsx)("div",{onClick:()=>{h===i?s():p(i,c)},children:(0,a.jsx)(o.UkX,{attendeeId:i})}),a11yMenuLabel:"Contact options",className:"".concat(h===i||!c&&x?"cursor-pointer":"")})}),(0,a.jsx)("div",{className:"text-gray50",onClick:()=>{h===i&&l()},children:(0,a.jsx)("button",{className:h===i?"pointer meeting-icons-vc hover:bg-primaryLightBg rounded-full p-1":"meeting-icons-vc curs
1or-default hover:bg-primaryLightBg rounded-full p-1",children:d?(0,a.jsx)(e9.Z,{className:"activeMenuBtn text-icons-vc text-primary"}):(0,a.jsx)(eq.Z,{className:"text-icons-vc"})})})]})},tr=()=>{let e=(0,v.useRouter)(),t=(0,$.I0)(),{id:i}=e.query,{roster:n}=(0,o.dJs)(),[r]=(0,h.useState)(""),{toggleRoster:s}=eC(),l=Object.values(n),[c,d]=(0,h.useState)(!1),u=()=>{t((0,e8.yY)("meet")),d(!c)};l=l.filter(e=>(e.name,!(null==e?void 0:e.externalUserId.startsWith("MediaPipeline")))),r&&(l=l.filter(e=>null==e?void 0:e.name.toLowerCase().includes(r.trim().toLowerCase())));let m=l.map((e,t)=>{let{chimeAttendeeId:i,name:n}=e||{},{customdata:r}=e||{},s=!1;return r&&(s="yes"===JSON.parse(r=r.replace(/\\/g,"")).host),(0,a.jsx)(tn,{indexId:t,name:n,attendeeId:i,host:s},i)});return(0,a.jsxs)("div",{className:"participants-userlistnoparticipants-vc  paper",children:[(0,a.jsxs)("div",{className:"participants-userlistheader-vc flex items-center pl-[12.14px] pr-[9.6px] pt-[14px] pb-[14px] overflow-hidden whitespace-nowrap",children:[(0,a.jsx)("div",{className:"text-gray800",children:(0,a.jsxs)("h6",{className:"text-sm font-medium",children:["Participants (",null==l?void 0:l.length,")"]})}),(0,a.jsx)("div",{className:"participants-userlistheadericons-vc ml-auto cursor-pointer text-gray50 flex items-center",children:(0,a.jsx)("div",{className:"flex items-center relative",onClick:s,children:(0,a.jsx)(eb.Z,{color:"inherit",style:{fontSize:20}})})})]}),(0,a.jsx)("hr",{className:"divider relative h-px w-full"}),(0,a.jsx)("hr",{className:"noparticipants-divider-vc divider absolute h-full w-px"}),(0,a.jsxs)(e4.zx,{id:"invitepeople-meeting",className:"add-meeting-participant whitespace-nowrap",variant:"contained",color:"primary",disableElevation:!0,size:"small",fullWidth:!1,onClick:u,children:[(0,a.jsx)(e4.xu,{className:"verticle-middle ",display:"inline-flex",alignItems:"center",mr:1,children:(0,a.jsx)(e3(),{src:P.KV,alt:"ClientPoint"})}),"INVITE PEOPLE TO THIS MEETING"]}),(0,a.jsx)("div",{className:"participantsuser-list-vc",children:(0,a.jsx)("ul",{children:(null==l?void 0:l.length)?m:null})}),c&&(0,a.jsx)(e6.J5,{postID:String(i),showDrawerOnly:!0,handleMeetingShareDrawer:u})]})};let ts=h.createContext(null),tl=()=>{let e=(0,h.useContext)(ts);if(!e)throw Error("Error using RealitimeSubscribe in context!");return e},ta=e=>{let{children:t}=e,i=(0,o.LoD)(),{localUserName:n,localUserId:r}=y(),[s,l]=(0,h.useState)([]),{updateRecivedCount:c}=eC();(0,h.useEffect)(()=>{c(s.filter(e=>r!==e.senderId).length)},[s]);let d=e=>{l([...s,JSON.parse(e.text())])};return(0,h.useEffect)(()=>{if(i)return i.realtimeSubscribeToReceiveDataMessage("CHAT",d),()=>{i.realtimeUnsubscribeFromReceiveDataMessage("CHAT")}}),(0,a.jsx)(ts.Provider,{value:{chatData:s,sendChatData:e=>{if(!e.trim().length)return;let t={uuid:(0,e7.Z)(),action:"sendmessage",cmd:"TEXT",data:e,createdDate:new Date().getTime(),senderName:n,senderId:r};i.realtimeSendDataMessage("CHAT",JSON.stringify(t)),l([...s,t])}},children:t})};var to=i(48697),tc=i(6752),td=i(1809),tu=i(19034),tm=i.n(tu),th=()=>{let{localUserId:e}=y(),{chatData:t,sendChatData:i}=tl(),[n,r]=(0,h.useState)(""),{showChat:s,closeChat:l,updateSeenCount:c}=eC(),{roster:d}=(0,o.dJs)(),u=(0,h.useRef)(null),m=()=>{setTimeout(function(){u.current&&(u.current.scrollTop=u.current.scrollHeight)},10)};(0,h.useEffect)(()=>{m()},[]);let x=t.filter(t=>e!==t.senderId);(0,h.useEffect)(()=>{s&&c(x.length)},[s]),(0,h.useEffect)(()=>{s&&(c(x.length),m())},[t.length]);let g=t.map((t,i)=>{var n;let r=e===t.senderId?"You":t.senderName,s=t.data,l=0;Object.values(d).forEach((e,i)=>{let{chimeAttendeeId:n}=e;n===t.senderId&&(l=i)});let c=(0,en.SV)(l);return(0,a.jsx)(o.nu2,{className:e!==t.senderId?"chat-bubble-container outgoing":"chat-bubble-container incoming",children:(0,a.jsx)(o.IWH,{className:e===t.senderId?"chat-bubble outgoing-msg":"chat-bubble incoming-msg",variant:e===t.senderId?"outgoing":"incoming",css:"margin: 1rem;width:100%;max-width:70%;text-align: left;",children:(0,a.jsxs)(I.Z,{className:"chat-grid",children:[(0,a.jsx)(I.Z,{className:"chat-user-icon",style:{background:c,color:"#fff",textTransform:"uppercase"},children:(0,en.Ux)(t.senderName)}),(0,a.jsxs)(I.Z,{className:"chat-detail",children:[(0,a.jsx)(I.Z,{className:"chat-text inline-flex",children:s}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center w-full",children:[(0,a.jsxs)("span",{className:"chat-username mr-[8px]",children:[" ",r," "]}),(0,a.jsxs)("span",{className:"chat-timestamp",children:[" ",(n=t.createdDate,tm().unix(n/1e3).format("LT"))," "]})]})]})]})})},i)});return(0,a.jsxs)(to.ZP,{className:"chat-drawer",anchor:"right",open:s,onClose:l,children:[(0,a.jsxs)(I.Z,{className:"chat-modal-header",children:[(0,a.jsx)(E.Z,{color:"inherit",variant:"h6",gutterBottom:!0,className:"chatModalTitle",children:"Chat"}),(0,a.jsx)(I.Z,{className:"modal-chat-closeicon",children:(0,a.jsx)(eb.Z,{color:"inherit",style:{fontSize:20},onClick:l})})]}),(0,a.jsx)(C.Z,{id:"content",ref:u,className:"chatModal",children:(0,a.jsx)(k.Z,{id:"alert-dialog-description",children:(0,a.jsx)(I.Z,{display:"flex",alignItems:"normal",flexDirection:"column",children:(0,a.jsx)(I.Z,{children:g})})})}),(0,a.jsx)(ey.Z,{children:(0,a.jsx)(I.Z,{className:"chat-dialog-footer",display:"flex",alignItems:"normal",flexDirection:"column",width:"100%",children:(0,a.jsxs)(I.Z,{display:"flex",alignItems:"center",children:[(0,a.jsx)(tc.Z,{onChange:e=>r(e.target.value),value:n,minRows:3,maxLength:1750,"aria-label":"empty textarea",placeholder:"Type a message",onKeyPress:e=>{13===(e.keyCode||e.which)&&(m(),r(""),i(n),e.preventDefault())},className:"chatBox"}),(0,a.jsx)(I.Z,{color:"text.disabled",alignItems:"center",className:"chat-send-btn",onClick:()=>{m(),r(""),i(n)},children:(0,a.jsx)(td.Z,{color:"inherit",style:{fontSize:18}})})]})})})]})},tx=()=>{let{roster:e}=(0,o.dJs)(),{toggleRoster:t,showChat:i,showRoster:n,showNavbar:r}=eC(),s=Object.values(e);return s=s.filter(e=>(e.name,!(null==e?void 0:e.externalUserId.startsWith("MediaPipeline")))),(0,a.jsx)("div",{className:"inviteparticipants-paper-vc paper ".concat(n?"":"participantsRemove"),children:(0,a.jsxs)("div",{className:"flex participants-list-overflow h-full",children:[r?(0,a.jsxs)("div",{className:"flex flex-col relative w-[60px] items-center",children:[(0,a.jsxs)("div",{className:"userlist-badge-vc mt-3",children:[(0,a.jsx)("span",{className:"absolute right-1 top-2 min-w-[20px] min-h-[20px] text-xs flex items-center justify-center font-medium rounded-full bg-primary text-white",children:null==s?void 0:s.length}),(0,a.jsx)("div",{className:"text-gray50",onClick:t,children:(0,a.jsx)("button",{className:"user-list-vc w-10 h-10 rounded-full flex items-center justify-center hover:bg-primaryLightBg hover:text-primary",children:(0,a.jsx)(eW.Z,{style:{fontSize:24}})})})]}),(0,a.jsx)("div",{className:"userlist-badge-vc text-primary mt-[5px]",children:(0,a.jsx)("div",{className:"text-gray50",children:(0,a.jsx)("button",{"data-clipboard-text":"".concat(window.location.href),"aria-label":"user",className:" copyinvite-btn-vc user-list-vc w-10 h-10 rounded-full flex items-center justify-center hover:bg-primaryLightBg hover:text-primary",children:(0,a.jsx)(ea.Z,{style:{fontSize:24}})})})}),(0,a.jsx)("hr",{className:"divider absolute h-full w-px"})]}):null,i?(0,a.jsx)(th,{}):null,(0,a.jsx)(tr,{})]})})}
1,tg=i(62515),tp=i(54073),tv=i.n(tp),tf=i(46268),tj=e=>{let t=(0,h.useRef)(e);(0,h.useEffect)(()=>{t.current=e},[e]),(0,h.useEffect)(()=>{let e=function(){for(var e,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call(t,...n)};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[])},ty=()=>{let{toggleEndMeeting:e}=eC(),t=t=>{t.preventDefault(),e(!0)};return tj(e=>{e.preventDefault(),e.returnValue=""}),(0,h.useEffect)(()=>(window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}),[]),(0,a.jsx)("div",{className:"hidden"})};let tb=h.createContext(null),tN=e=>{let{children:t}=e;return(0,a.jsx)(tb.Provider,{value:{},children:(0,a.jsx)(ta,{children:(0,a.jsx)(ti,{children:t})})})};var tZ=()=>{var e;let[t,i]=h.useState(!1),[n,r]=h.useState(0),{roster:s}=(0,o.dJs)(),[l,c]=h.useState(0),{width:d,ref:u}=(0,tg.NB)(),m=x.gn&&x.i7?"iosChrome":"";m=x.gn&&x.G6?m+" iosSafari":m;let{sharingAttendeeId:g,isLocalUserSharing:p}=(0,o.EJc)(),{toggleVideo:v,isVideoEnabled:f}=(0,o.Onx)(),{onStartCamOnStatus:j,setOnBootCamOnStatus:b}=y(),N=h.useRef(!1),Z=(0,h.useRef)(tv()(()=>{let e=document.getElementsByClassName("shadow-header")[0],t=document.getElementById("meetingMenuId"),i=window.innerHeight-e.offsetHeight;c(i),r(i-(null==t?void 0:t.offsetHeight))},1e3)).current;(0,h.useEffect)(()=>(window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}),[]),(0,h.useEffect)(()=>{j&&!1===f&&!1===N.current&&(N.current=!0,b(!j),v())},[f]),(0,h.useEffect)(()=>{Z()},[d]);let w=(null===(e=Object.keys(s))||void 0===e?void 0:e.length)>1?"bg-[#212121]":"";return t?(0,a.jsx)("div",{className:"h-85 w-full flex items-center justify-center",children:(0,a.jsx)(er.aN,{size:30})}):(0,a.jsx)(o.G5g,{children:(0,a.jsx)(tN,{children:(0,a.jsxs)("div",{className:"meeitngMainDiv flex",style:{height:""+l+"px"},children:[(0,a.jsx)(ty,{}),(0,a.jsx)(tx,{}),(0,a.jsxs)("div",{className:"innerMeetingDiv",children:[(0,a.jsxs)("div",{style:{height:""+n+"px"},className:"chimeVideoTiles flex items-center justify-center ".concat(w),ref:u,children:[p?(0,a.jsx)(ex,{divHeight:n,divWidth:null!=d?d:0}):g&&(0,a.jsx)(tf.d$,{children:(0,a.jsx)(tf.Uv,{children:(0,a.jsx)(o.Fxf,{className:"share-screen"})})}),!g&&(0,a.jsx)(ex,{divHeight:n,divWidth:null!=d?d:0}),(0,a.jsx)("div",{className:" paper inviteparticipants-paper-vc meetingControls "+m})]}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(e2,{setIsLoading:i})})]})]})})})},tw=()=>{let e=(0,o.fjl)(),{setAppMeetingInfo:t,region:i,setMeetingMode:n,setJoinInfo:r,setRegion:l,enableSimulcast:d,priorityBasedPolicy:u,keepLastFrameWhenPaused:x,isWebAudioEnabled:g,meetingMode:p}=y(),[f]=(0,h.useState)(i),j=(0,$.v9)(e=>e.auth),{id:b}=(0,v.useRouter)().query,N="".concat(j.firstName," ").concat(j.lastName),Z=(0,h.useRef)(async()=>{if("string"==typeof b){let i=await (0,en.u_)(b),a=(null==i?void 0:i.createdBy)===j.userId?"yes":"no";e.getAttendee=await async function(e){try{let t="".concat(eg,"/attendee?title=").concat(encodeURIComponent(b),"&attendee=").concat(encodeURIComponent(e)),{data:i}=await en.zk.get(t);return{name:i.AttendeeInfo.Name,customdata:i.AttendeeInfo.CustomData}}catch(e){return{}}};try{let{JoinInfo:i}=await ep(b,N,f,a);r(i);let h=new c.MeetingSessionConfiguration(null==i?void 0:i.Meeting,null==i?void 0:i.Attendee);if(m.postLogger&&h.meetingId&&h.credentials&&h.credentials.attendeeId){let e=m.postLogger.metadata;m.postLogger.metadata={...e,meetingId:h.meetingId,attendeeId:h.credentials.attendeeId}}l(i.Meeting.MediaRegion),h.enableSimulcastForUnifiedPlanChromiumBasedBrowsers=d,u&&(h.videoDownlinkBandwidthPolicy=u),h.keepLastFrameWhenPaused=x;let v={deviceLabels:p===s.Spectator?o.C$T.None:o.C$T.AudioAndVideo,enableWebAudio:g};await e.join(h,v),t(b,N,f,i.Attendee.AttendeeId,a),n(s.Attendee),p===s.Spectator?await e.start():n(s.Attendee)}catch(e){}}});return(0,h.useEffect)(()=>{Z.current()},[]),(0,a.jsx)(e4.aN,{})},tS=i(57647),tC=i.n(tS),tk=i(34758);let tI=e=>{let t=(0,v.useRouter)();return(0,a.jsx)("div",{className:"px-[15px] h-endMeetingHeight flex flex-col items-center justify-center",children:(0,a.jsx)(tk.Z,{className:"startmeeting-container-vc end-meeting-vc",children:(0,a.jsxs)(B.ZP,{container:!0,spacing:1,children:[(0,a.jsx)(B.ZP,{item:!0,lg:6,md:6,sm:12,xs:12,className:"hideonmobile-grid-vc",children:(0,a.jsx)(I.Z,{bgcolor:"primary.meetingStartBg",className:"yourmeeting-imgbox-vc",display:"flex",alignItems:"center",justifyContent:"center",pt:12,pr:6,pl:6,pb:13,children:(0,a.jsx)("img",{src:P.d7.src,alt:"End Meeting"})})}),(0,a.jsx)(B.ZP,{item:!0,lg:6,md:6,sm:12,xs:12,children:(0,a.jsxs)(I.Z,{className:"meetingstart-rightsidebar-vc",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",height:"100%",pt:9,pr:6,pl:6,pb:9,children:[(0,a.jsx)(I.Z,{className:"meetingended-heading-vc text-darkBlue mb-4",textAlign:"center",children:(0,a.jsx)(E.Z,{variant:"h5",gutterBottom:!0,color:"inherit",children:"end"===e.type?"Your Meeting Has Ended":"You've Left The Meeting"})}),(0,a.jsx)(I.Z,{color:"grey.800",textAlign:"center",className:"metinside-heading-vc",mb:1.5,children:(0,a.jsx)(E.Z,{variant:"subtitle1",gutterBottom:!0,color:"inherit",children:"Close this browser tab and return to your ClientPoint browser tab to continue."})}),(0,a.jsx)(I.Z,{display:"flex",alignItems:"center",justifyContent:"center",maxWidth:"141px",width:141,boxSizing:"border-box",children:(0,a.jsx)(q.Z,{id:"meeting-close",variant:"outlined",color:"secondary",className:"w-full",onClick:()=>{window.close(),t.push("/")},disableElevation:!0,children:"CLOSE"})})]})})]})})})};var tE=()=>{let e=(0,o.dpf)(),{localUserId:t}=y(),[i,n]=(0,h.useState)(!1);return((0,h.useEffect)(()=>
1{if(!i){let e=new(tC())(".copyinvite-btn-vc");n(!0),e.on("success",function(){Q.Am.success("Meeting link copied to clipboard!",{toastId:"profileLink",autoClose:5e3})}),e.on("error",function(){let e="";if(e="".concat(window.location.href),navigator.clipboard&&navigator.clipboard.writeText(e).then(function(){Q.Am.dismiss(),Q.Am.success("Meeting link copied to clipboard!",{toastId:"profileLink",autoClose:5e3})}),!navigator.clipboard){let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy"),Q.Am.dismiss(),Q.Am.success("Meeting link copied to clipboard!",{toastId:"profileLink",autoClose:5e3})}catch(e){localStorage.setItem("error","Fallback: Oops, unable to copy")}document.body.removeChild(t);return}})}},[]),""===t)?(0,a.jsx)("div",{className:"flex items-center justify-center w-full h-postScreenHeight",children:(0,a.jsx)(tw,{})}):(0,a.jsxs)(h.Fragment,{children:[(0,a.jsx)(D,{}),e===o.ytK.Loading&&(0,a.jsx)(el,{}),e===o.ytK.Succeeded&&(0,a.jsx)(tZ,{}),e===o.ytK.Ended&&(0,a.jsx)(tI,{type:"end"}),e===o.ytK.Left&&(0,a.jsx)(tI,{type:"leave"})]})};let tP=e=>{let{children:t}=e,{addVoiceFocus:i}=(0,o.kjH)();return(0,a.jsx)(o.lUb,{onDeviceReplacement:(e,t)=>t instanceof c.VoiceFocusTransformDevice?i(e):Promise.resolve(e),children:t})};var tD=()=>{var e,t,i,n;let r,s,l,c;let{isWebAudioEnabled:d,videoTransformCpuUtilization:u,imageBlob:m,joinInfo:h}=y(),x=u!==g.Disabled,p={spec:{name:(n=h&&(null===(t=h.Meeting)||void 0===t?void 0:null===(e=t.MeetingFeatures)||void 0===e?void 0:e.Audio.EchoReduction)==="AVAILABLE"?"ns_es":"default")&&["default","ns_es"].includes(n)?n:"default"},createMeetingResponse:h};return(0,a.jsx)(a.Fragment,{children:void 0===m?(0,a.jsx)(a.Fragment,{children:" "}):(r=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(tE,{})}),x&&(i=r,(s=parseInt(u,10))||(s=40),r=(0,a.jsx)(o.BAg,{options:{filterCPUUtilization:s},children:(0,a.jsx)(o.q9z,{options:{imageBlob:m,filterCPUUtilization:s},children:i})})),r=d?(l=r,(0,a.jsx)(o.o1U,{...p,children:(0,a.jsx)(tP,{children:l})})):(c=r,(0,a.jsx)(o.lUb,{children:c})))})};function tR(){return(0,a.jsx)(b,{children:(0,a.jsx)(tB,{children:(0,a.jsx)(o.JBA,{children:(0,a.jsx)(Z,{children:(0,a.jsx)(o.lUb,{...m,children:(0,a.jsx)(eS,{children:(0,a.jsx)(tD,{})})})})})})})}let tB=e=>{let{children:t}=e;return(0,a.jsxs)(w.f6,{theme:o.Wbj,children:[(0,a.jsx)(o.nz8,{}),t]})}},18713:function(){}}]);

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