PageSourceSearch

https://app.serenepaathshala.com/_next/static/chunks/6467.019444879045bef6.js

js serenepaathshala.com collected 2026-09-29 02:19:07 UTC 41,665 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6467],{15322:function(e,t,n){n.d(t,{JU:function(){return u},PC:function(){return l},UU:function(){return p},XG:function(){return v},rV:function(){return a},sR:function(){return s}});var r=n(47568),o=n(97582),i=n(29061),a=function(e,t,n){return i.Z.get("/get/get_items_by_type",{baseURL:e,params:{item_type:t,item_id:n}}).then((function(e){return e.data.data}))},l=function(e){return i.Z.get("/get/get_currency_conversion",{params:{base_currency:"INR",currencies:e},transformRequest:function(e,t){return Object.keys(t).forEach((function(e){delete t[e]})),e}}).then((function(e){return e.data.data}))};function s(e,t,n){return c.apply(this,arguments)}function c(){return c=(0,r.Z)((function(e,t,n){var r,a,l=arguments;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return r=l.length>3&&void 0!==l[3]?l[3]:"0",a="1"==r?"https://tempapi2.classx.co.in":"https://tempapi.appx.co.in",[4,i.Z.post("".concat(a,"/Livepush/get_schedule_id_by_meetingid"),{meeting_id:"",stream_id:e},{headers:{Authorization:t,"User-ID":n}}).then((function(e){return e.data.data}))];case 1:return[2,o.sent()]}}))})),c.apply(this,arguments)}function u(e,t,n){return d.apply(this,arguments)}function d(){return(d=(0,r.Z)((function(e,t,n){return(0,o.__generator)(this,(function(r){return[2,i.Z.post("https://tempapi.appx.co.in/post/dyte_change_app_status",{meeting_id:e,stream_id:e},{headers:{Authorization:t,"User-ID":n}})]}))}))).apply(this,arguments)}function v(e,t,n){return f.apply(this,arguments)}function f(){return(f=(0,r.Z)((function(e,t,n){return(0,o.__generator)(this,(function(r){return[2,i.Z.post("https://tempapi.appx.co.in/Livepush/endHundredMsStream",{meeting_id:e,stream_id:e},{headers:{Authorization:t,"User-ID":n}})]}))}))).apply(this,arguments)}function p(e,t,n,r,o,i){return h.apply(this,arguments)}function h(){return(h=(0,r.Z)((function(e,t,n,r,a,l){return(0,o.__generator)(this,(function(o){return[2,i.Z.post("".concat(window.location.origin,"/api/update-sheet-data"),{url:e,userid:t,orderid:n,code:r,amount:a},{headers:{Authorization:l,"User-ID":t}})]}))}))).apply(this,arguments)}},96467:function(e,t,n){n.r(t),n.d(t,{default:function(){return H},deriveRtmpUrlFromWebrtcUrl:function(){return W}});var r=n(47568),o=n(26042),i=n(69396),a=n(97582),l=n(85893),s=n(67294),c=n(94190),u=n(93837),d=n(19201),v=n(15041),f=n(79886),p=n(97861),h=n(54050),g=n(72367),m=n(84221),b=n(37087),x=n(22700),y=n(71408),w=n(7246),S=n(29815),j=n(30381),k=n.n(j),_=n(34689);function N(){var e=function(){d.A.error("Network disconnected.")},t=function(e){d.A.success("You are back online.")},n=(0,s.useState)(4),o=n[0],i=n[1];(0,s.useEffect)((function(){c();var n=setInterval(c,15e3);return window.addEventListener("online",t),window.addEventListener("offline",e),function(){clearInterval(n),window.removeEventListener("online",t),window.removeEventListener("offline",e)}}),[]),(0,s.useEffect)((function(){o>0&&o<=2&&d.A.info("You have a weak internet connection")}),[o]);var c=function(){var e=(0,r.Z)((function(){var e,t,n,r,o,l,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:e=k().now(),t=0,a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch("/noprecache/sample-img2.jpg",{cache:"no-store"})];case 2:return[4,a.sent().blob()];case 3:return n=a.sent(),t=n.size,[3,5];case 4:return a.sent(),i(0),[2];case 5:return r=k().now(),o=r-e,l=t>0&&o>0?8*t/(o/1e3)/1e6:null,s=(r-e)/1e3,console.log("RTMLive - [Info] :  speed - MegaBitsPerSecond",l,"speed - MegaBytesPerSecond",s),0,i(s<1?4:s<2?3:s<3?2:1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,l.jsxs)("div",{children:[(0,l.jsxs)(_.Z,{target:"networkIndicator",className:"font-sm",children:["Network: ",["Offline","Poor","Poor","Fair","Good"][o]]}),(0,l.jsx)("div",{id:"networkIndicator",className:"d-inline-flex border border-dark overflow-hidden m-2",style:{borderRadius:"3px"},children:(0,S.Z)(new Array(4)).map((function(e,t){return(0,l.jsx)("div",{style:{width:"8px",height:"20px",borderRadius:"2px"},className:"bg-".concat(t<o?"success":"gray-light"," border border-light")},t)}))})]})}function C(e){var t,n,r,o,i,a,S,j,k,_,C,I,L=e.isLive,U=e.onStartLive,Z=e.onStopLive,E=e.isWhiteboard,D=e.isFileSharing,R=e.setIsWhiteboard,F=e.onToggleFile,A=e.onToggleSettings,V=e.setMicStatus,M=e.setCameraStatus,T=e.onStart
1ScreenShare,O=e.onStopScreenShare,B=e.isScreenSharing,P=e.isGoLiveLoading,W=e.isEndStreamLoading,H=(0,u.VI)(),z=(0,s.useState)("playable"===(null===(t=null===H||void 0===H?void 0:H.participants())||void 0===t||null===(n=t.local)||void 0===n||null===(r=n.tracks)||void 0===r||null===(o=r.video)||void 0===o?void 0:o.state)),q=z[0],G=z[1],J=(0,s.useState)("playable"===(null===(i=null===H||void 0===H?void 0:H.participants())||void 0===i||null===(a=i.local)||void 0===a||null===(S=a.tracks)||void 0===S||null===(j=S.audio)||void 0===j?void 0:j.state)),K=J[0],Y=J[1],X=(0,s.useState)("playable"===(null===(k=null===H||void 0===H?void 0:H.participants())||void 0===k||null===(_=k.local)||void 0===_||null===(C=_.tracks)||void 0===C||null===(I=C.screenVideo)||void 0===I?void 0:I.state)),Q=X[0],$=X[1],ee=void 0!==B?B:Q,te=(0,s.useState)(!!window.CropTarget),ne=te[0],re=te[1],oe=(0,s.useCallback)((function(){d.A.info("Please go live first to enable this feature",{position:"bottom-center",autoClose:3e3})}),[]),ie=(0,s.useMemo)((function(){try{var e=c.ZP.supportedBrowser();return Boolean(null===e||void 0===e?void 0:e.supportsScreenShare)}catch(t){return!1}}),[]);(0,u.VU)("participant-updated",(function(e){var t;if(null===e||void 0===e||null===(t=e.participant)||void 0===t?void 0:t.local){var n,r,o,i,a=e.participant;if(!D&&!E){var l,s,c="playable"===(null===a||void 0===a||null===(l=a.tracks)||void 0===l||null===(s=l.video)||void 0===s?void 0:s.state);G(c),M(c)}var u="playable"===(null===a||void 0===a||null===(n=a.tracks)||void 0===n||null===(r=n.audio)||void 0===r?void 0:r.state);Y(u),V(u),$("playable"===(null===a||void 0===a||null===(o=a.tracks)||void 0===o||null===(i=o.screenVideo)||void 0===i?void 0:i.state))}})),(0,u.VU)("joined-meeting",(function(){var e,t,n,r,o,i=null===(e=null===H||void 0===H?void 0:H.participants())||void 0===e?void 0:e.local;if(!D&&!E){var a,l,s="playable"===(null===i||void 0===i||null===(a=i.tracks)||void 0===a||null===(l=a.video)||void 0===l?void 0:l.state);G(s),M(s)}var c="playable"===(null===i||void 0===i||null===(t=i.tracks)||void 0===t||null===(n=t.audio)||void 0===n?void 0:n.state);Y(c),V(c);var u="playable"===(null===i||void 0===i||null===(r=i.tracks)||void 0===r||null===(o=r.screenVideo)||void 0===o?void 0:o.state);$(u)}));var ae=(0,s.useCallback)((function(){var e,t,n;if(H){var r="playable"===(null===(e=H.participants().local)||void 0===e||null===(t=e.tracks)||void 0===t||null===(n=t.video)||void 0===n?void 0:n.state);H.setLocalVideo(!r),G(!r),M(!r)}}),[H,M]),le=(0,s.useCallback)((function(){var e;if(H){var t=!!(null===(e=H.participants().local)||void 0===e?void 0:e.audio);H.setLocalAudio(!t),Y(!t)}}),[H]),se=(0,s.useCallback)((function(){if(console.log("[Footer] Toggle screen share clicked",{isScreenSharing:ee,hasCallbacks:!(!T||!O),isLive:L}),L){if(T&&O)ee?(console.log("[Footer] Stopping screen share via callback"),O()):(console.log("[Footer] Starting screen share via callback"),T());else if(H){var e;console.log("[Footer] Using fallback daily calls"),!!(null===(e=H.participants().local)||void 0===e?void 0:e.screen)?H.stopScreenShare():H.startScreenShare({displayMediaOptions:{audio:!0,video:!0,selfBrowserSurface:"include",surfaceSwitching:"include",systemAudio:"include"}})}}else oe()}),[H,ee,T,O,L,oe]),ce=(0,s.useCallback)((function(){L?(R(!E),E||F(null)):oe()}),[E,R,ee,F,L,oe]),ue=(0,s.useCallback)((function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(console.log("[Footer] File selected:",null===n||void 0===n?void 0:n.name,null===n||void 0===n?void 0:n.type),!n)return console.log("[Footer] No file selected, clearing file share"),void F(null);if(!L)return oe(),void(e.target.value="");if("application/pdf"!==n.type&&!n.name.toLowerCase().endsWith(".pdf"))return console.warn("[Footer] Non-PDF file selected:",n.type,n.name),void alert("Please select a PDF file");try{var r=URL.createObjectURL(n);console.log("[Footer] Starting file share with URL:",r),F(r),R(!1),e.target.value=""}catch(o){console.error("[Footer] Error creating file URL:",o),alert("Error loading PDF file")}}),[F,R,L,oe]);return(0,s.useEffect)((function(){re(!!window.CropTarget)}),[]),(0,l.jsxs)("div",{className:"bg-black/20 flex items-center justify-between p-2 mt-auto gap-2 flex-wrap",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 p-2",children:[(0,l.jsx)(N,{}),(0,l.jsx)("span",{className:"inline-block w-3 h-3 rounded-full ".concat(L?"bg-red-600":"bg-muted-foreground"),title:L?"Live":"Not live"}),(0,l.jsx)("span",{className:"text-xs ".concat(L?"text-red-600 font-semibold":"text-muted-foreground"),children:L?"LIVE":"Not live"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{id:"toggle-cam",className:"px-3 py-2 rounded-full border transition-colors disabled:opacity-50 disabled:cursor-not-allowed ".concat(q?"bg-emerald-600 text-white hover:bg-emerald-700 border-emerald-700":"bg-muted text-muted-foreground hover:bg-accent border-border"),onClick:ae,title:q?"Turn camera off":"Turn camera on",children:q?(0,l.jsx)(v.Z,{className:"w-5 h-5"}):(0,l.jsx)(f.Z,{className:"w-5 h-5"})}),(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border transition-colors ".concat(K?"bg-emerald-600 text-white hover:bg-emerald-700 border-emerald-700":"bg-muted text-muted-foreground hover:bg-accent border-border"),onClick:le,title:K?"Mute":"Unmute",children:K?(0,l.jsx)(p.Z,{className:"w-5 h-5"}):(0,l.jsx)(h.Z,{className:"w-5 h-5"})}),(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border transition-colors ".concat(L?"bg-red-600 text-white hover:bg-red-700 border-red-700 opacity-50":"bg-background hover:bg-accent"),disabled:L||P,onClick:L?void 0:U,title:L?"Stop live":"Go live",children:(0,l.jsx)(g.Z,{className:"w-5 h-5"})}),ie&&(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border transition-colors disabled:opacity-50 disabled:cursor-not-allowed ".concat(!ee||D||E?"bg-background hover:bg-accent":"bg-blue-600 text-white hover:bg-blue-700 border-blue-700"),onClick:se,disabled:D||E,title:L?!ee||D||E?"Share screen":"Stop sharing":"Go live to enable screen sharing",children:(0,l.jsx)(m.Z,{className:"w-5 h-5"})}),ne&&(0,l.jsxs)(l.Fragment,{children:[D||!L?(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border cursor-pointer transition-colors  ".concat(L?"bg-blue-600 text-white hover:bg-blue-700 border-blue-700":"bg-background text-black hover:bg-accent"),onClick:function(){L?F(null):oe()},title:"Stop file sharing",children:(0,l.jsx)(b.Z,{className:"w-5 h-5"})}):(0,l.jsxs)("label",{title:L?"Share PDF":"Go live to enable file sharing",className:"cursor-pointer",children:[(0,l.jsx)("input",{className:"hidden",type:"file",accept:"application/pdf,.pdf",onChange:ue,disabled:!D&&ee||!D&&E||!L}),(0,l.jsx)("div",{className:"px-3 py-2 rounded-full border cursor-pointer transition-colors bg-background hover:bg-accent ".concat(ee||E||!L?"opacity-50 cursor-not-allowed":""),children:(0,l.jsx)(b.Z,{className:"w-5 h-5"})})]}),(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border transition-colors disabled:opacity-50 disabled:cursor-not-allowed ".concat(E?"bg-indigo-600 text-white hover:bg-indigo-700 border-indigo-700":ee||D?"bg-background hover:bg-accent opacity-50 cursor-not-allowed":"bg-background hover:bg-accent"),onClick:ce,title:L?E?"Close whiteboard":"Open whiteboard":"Go live to enable whiteboard",disabled:!E&&ee||!E&&D,children:(0,l.jsx)(x.Z,{className:"w-5 h-5"})})]}),(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border bg-background hover:bg-accent",onClick:A,title:"Settings",children:(0,l.jsx)(y.Z,{className:"w-5 h-5"})}),(0,l.jsx)("button",{className:"px-3 py-2 rounded-full border bg-red-600 text-white hover:bg-red-700 border-red-700 disabled:opacity-50 disabled:cursor-not-allowed",onClick:Z,disabled:W,title:"End",children:(0,l.jsx)(w.Z,{className:"w-5 h-5"})})]}),(0,l.jsx)("div",{className:"hidden md:block"})]})}function I(e){var t=e.open,n=e.onClose,o=e.onCameraChange,i=e.onMicrophoneChange,c=(0,u.VI)(),d=(0,s.use
1State)([]),v=d[0],f=d[1],p=(0,s.useState)([]),h=p[0],g=p[1],m=(0,s.useState)(),b=m[0],x=m[1],y=(0,s.useState)(),w=y[0],S=y[1];(0,u.VU)("started-camera",(function(e){var t,n;(null===e||void 0===e||null===(t=e.camera)||void 0===t?void 0:t.deviceId)&&(x(e.camera.deviceId),null===o||void 0===o||o(e.camera.deviceId)),(null===e||void 0===e||null===(n=e.mic)||void 0===n?void 0:n.deviceId)&&(S(e.mic.deviceId),null===i||void 0===i||i(e.mic.deviceId))})),(0,s.useEffect)((function(){t&&c&&(0,r.Z)((function(){var e,t,n,r,l,s,u,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,navigator.mediaDevices.enumerateDevices()];case 1:return n=a.sent()||[],r=n.filter((function(e){return"videoinput"===e.kind})),l=n.filter((function(e){return"audioinput"===e.kind})),f(r),g(l),[4,c.getInputDevices()];case 2:return s=a.sent(),u=null===(e=s.camera)||void 0===e?void 0:e.deviceId,d=null===(t=s.mic)||void 0===t?void 0:t.deviceId,u&&(x(u),null===o||void 0===o||o(u)),d&&(S(d),null===i||void 0===i||i(d)),[3,4];case 3:return a.sent(),[3,4];case 4:return[2]}}
1))}))()}),[t,c]);var j=function(){var e=(0,r.Z)((function(e){return(0,a.__generator)(this,(function(t){if(!c)return[2];try{null===o||void 0===o||o(e),x(e)}catch(n){}return[2]}))}));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,r.Z)((function(e){return(0,a.__generator)(this,(function(t){if(!c)return[2];try{null===i||void 0===i||i(e),S(e)}catch(n){}return[2]}))}));return function(t){return e.apply(this,arguments)}}();return t?(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:(0,l.jsxs)("div",{className:"bg-background rounded shadow-lg w-full max-w-md p-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Settings"}),(0,l.jsx)("button",{className:"text-sm",onClick:n,children:"Close"})]}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium",children:"Camera"}),(0,l.jsxs)("select",{className:"w-full border rounded px-2 py-1 mt-1",value:b||"",onChange:function(e){return j(e.target.value||void 0)},children:[(0,l.jsx)("option",{value:"",children:"Default"}),v.map((function(e){return(0,l.jsx)("option",{value:e.deviceId,children:e.label||"Camera"},e.deviceId)}))]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium",children:"Microphone"}),(0,l.jsxs)("select",{className:"w-full border rounded px-2 py-1 mt-1",value:w||"",onChange:function(e){return k(e.target.value||void 0)},children:[(0,l.jsx)("option",{value:"",children:"Default"}),h.map((function(e){return(0,l.jsx)("option",{value:e.deviceId,children:e.label||"Microphone"},e.deviceId)}))]})]})]})]})}):null}var L=n(15322),U=n(96076),Z=n(47041),E=n(89355),D=n(24271),R=n(6775),F=n(21359),A=n(49458),V=n(84082),M=n(30976),T={layout:{preset:"custom",composition_params:{mode:"dominant","image.assetName":"overlay.png"},session_assets:{"image/virtual-cam-light":"https://appx-generic-website.appx.co.in/virtual-cam-light.png"}},videoBitrate:1500,fps:24,width:1920,height:1080,audioBitrate:160,backgroundColor:"#FFFFFF"},O={maxBitrate:15e5,maxFramerate:24,scaleResolutionDownBy:1},B={maxBitrate:16e4,maxFramerate:24,scaleResolutionDownBy:1},P={maxBitrate:15e5,maxFramerate:22,scaleResolutionDownBy:1},W=function(e){return e.replace(".sdp","").replace("https://","rtmp://").replace(":9922","")};function H(e){var t=e.roomUrl,n=e.token,o=e.streamId,i=e.pdfAnnotatorVersion,v=void 0===i?0:i,f=(0,s.useState)(null),p=f[0],h=f[1],g=(0,s.useState)(!1),m=g[0],b=g[1],x=(0,s.useState)(!0),y=x[0],w=x[1],S=(0,s.useState)(!1),j=S[0],k=S[1],_=(0,s.useState)(null),N=_[0],C=_[1],I=(0,s.useState)(null),R=I[0],F=I[1],A=function(){var e=(0,r.Z)((function(){return(0,a.__generator)(this,(function(e){return[2,navigator.permissions.query({name:"camera"}).then((function(e){return"granted"===e.state})).catch((function(e){return console.error("Error checking camera permission",e),!1}))]}))}));return function(){return e.apply(this,arguments)}}(),M=function(){var e=(0,r.Z)((function(){return(0,a.__generator)(this,(function(e){return[2,navigator.permissions.query({name:"microphone"}).then((function(e){return"granted"===e.state})).catch((function(e){return console.error("Error checking microphone permission",e),!1}))]}))}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=(0,r.Z)((function(){var e,r,i,l,s,u,v,f,g,m,x,y,S,j,_,N,I,R=arguments;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(e=R.length>0&&void 0!==R[0]&&R[0],!o)return w(!1),[2];w(!0),r=(0,Z.getCookie)(U.KH),i=(0,Z.getCookie)(U.JR),l=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(0,L.sR)(o,r,i)];case 2:return s=a.sent(),console.info("[DailyUI] fetched backend config",s),u=W(s.webrtc_url),s.rtmpUrl=u,F(s),v=(0,D.G5)(s.firebase_details,"WEBRTC_LIVE"),console.info("[DailyUI] initialized firebase",v),l=v,C(v),[3,4];case 3:return f=a.sent(),console.error("[DailyUI] fetch firebase config error",f),[3,4];case 4:return l?(g=!e,m=p,e?(k(!1),w(!1),h(null),m=null,[3,9]):[3,5]):(w(!1),[2]);case 5:return a.trys.push([5,7,8,9]),x=(0,E.N8)(l),y="/data/browserlive_status/"+o,S=(0,E.iH)(x,y),(j=localStorage.getItem(U.dA.BROWSER_LIVE_SESSION_ID))||(j=(0,D.xv)(),localStorage.setItem(U.dA.BROWSER_LIVE_SESSION_ID,j)),[4,(0,E.U2)(S)];case 6:return _=a.sent(),(N=_.val())?"Daily"===N.type&&N.sessionId===j?(g=!1,k(!1)):(g=!0,k(!0)):(g=!1,(0,E.t8)(S,{type:"Daily",sessionId:j}).then((function(){k(!1)}))),[3,9];case 7:return I=a.sent(),console.log("Error joining meeting",I),[3,9];case 8:return w(!1),[7];case 9:if(g)return w(!1),k(!0),b(!1),h(null),[2];if(b(!0),!m)try{m=c.ZP.createCallObject({url:t,token:n,subscribeToTracksAutomatically:!0,sendSettings:{video:{encodings:{low:O,medium:O,high:O}},audio:{encodings:{low:B,medium:B,high:B}},screenVideo:{encodings:{low:P,medium:P,high:P}},customVideoDefaults:{encodings:{low:P,medium:P,high:P}}},startAudioOff:!0,startVideoOff:!1}),h(m)}catch(A){b(!1),d.A.error("create call object error"),console.error("create call object error",A)}return null===m||void 0===m||m.join().then((function(){b(!1)})).catch((function(e){b(!1),d.A.error("join error"),console.error("join error",e)})),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,s.useEffect)((function(){return T(),A().then((function(e){e||console.log("Daily Live: Camera permission is required to start camera")})),M().then((function(e){e||console.log("Daily Live: Microphone permission is required to start microphone")})),function(){p&&(p.leave().catch((function(){})),p.destroy().catch((function(){})),h(null))}}),[]),j?(0,l.jsx)("div",{className:"flex items-center justify-center h-full w-full",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"Another Session Active"}),(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsx)("p",{className:"text-muted-foreground",children:"Another session is active. Please close this window and open a new one."}),(0,l.jsx)(V.Z,{color:"primary",onClick:function(){if(N){var e=(0,E.N8)(N),t="/data/browserlive_status/"+o,n=(0,E.iH)(e,t),r=sessionStorage.getItem(U.dA.BROWSER_LIVE_SESSION_ID);r||(r=(0,D.xv)(),sessionStorage.setItem(U.dA.BROWSER_LIVE_SESSION_ID,r)),(0,E.t8)(n,{type:"Daily",sessionId:r}).then((function(){k(!1),T(!0)}))}},children:"Open the session here"})]})]})}):y?(0,l.jsx)("div",{className:"flex items-center justify-center h-full w-full",children:(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"Initializing..."})})}):p?(0,l.jsx)(u.Eu,{callObject:p,children:(0,l.jsx)(z,{streamId:o,config:R,firebaseApp:N,onOtherSessionActive:k,pdfAnnotatorVersion:v})}
1):m?(0,l.jsx)("div",{className:"flex items-center justify-center h-full w-full",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"Joining..."}),(0,l.jsx)("p",{className:"text-muted-foreground",children:"We are joining the meeting. Please wait a moment."})]})}):(0,l.jsx)("div",{className:"flex items-center justify-center h-full w-full",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"No Call Ref Found"}),(0,l.jsx)("p",{className:"text-muted-foreground",children:"Call Ref not found. Please contact the admin for help."})]})})}function z(e){var t=e.streamId,c=e.config,d=e.firebaseApp,v=e.onOtherSessionActive,f=e.pdfAnnotatorVersion,p=void 0===f?0:f,h=(0,u.VI)(),g=(0,u.q5)(),m=(0,u.N2)({onError:function(e){console.error("[Screen Share] Error",e),$(!1),R(!1),B(null),le(!1)}}),b=m.startScreenShare,x=m.stopScreenShare,y=m.isSharingScreen,w=(0,u.pg)(g).track,S=(0,s.useRef)(!1),j=(0,s.useState)(!1),k=j[0],_=j[1],N=(0,s.useState)(!1),D=N[0],R=N[1],V=(0,s.useState)(null),O=V[0],B=V[1],P=(0,s.useState)(!1),W=P[0],H=P[1],z=(0,s.useState)(!1),G=z[0],J=z[1],K=(0,s.useRef)(!1),Y=(0,s.useRef)(null),X=(0,s.use
1State)(!1),Q=X[0],$=X[1],ee=(0,s.useState)(!1),te=ee[0],ne=ee[1],re=(0,s.useState)(!1),oe=re[0],ie=re[1],ae=(0,s.useCallback)((function(e,t){var n="daily.live.".concat(e);try{window.dispatchEvent(new CustomEvent(n,{detail:t}))}catch(o){}try{var r;null===(r=window.parent)||void 0===r||r.postMessage({type:n,detail:t},"*")}catch(i){}}),[]);(0,u.VU)("live-streaming-started",(function(e){console.info("[Daily] live-streaming-started",e),ae("started",e),_(!0),ne(!1),ie(!1)})),(0,u.VU)("live-streaming-stopped",(function(e){console.info("[Daily] live-streaming-stopped",e),ae("stopped",e),_(!1),ne(!1),ie(!1)})),(0,u.VU)("live-streaming-error",(function(e){console.error("[Daily] live-streaming-error",(null===e||void 0===e?void 0:e.errorMsg)||e),ae("error",e),_(!1),ne(!1),ie(!1)})),(0,u.VU)("live-streaming-updated",(function(e){console.info("[Daily] live-streaming-updated",e),ae("updated",e)})),(0,u.VU)("error",(function(e){var t;console.info("[Daily] error",e),(null===e||void 0===e||null===(t=e.errorMsg)||void 0===t?void 0:t.includes("Duplicate user_id"))&&v(!0),ae("error",e)})),(0,u.VU)("participant-updated",(function(e){try{var t;if(null===e||void 0===e||null===(t=e.participant)||void 0===t?void 0:t.local){var n,r,o,i="playable"===(null===(n=e.participant)||void 0===n||null===(r=n.tracks)||void 0===r||null===(o=r.screenVideo)||void 0===o?void 0:o.state);i||(console.log("[Daily] Screen share stopped, cleaning up states"),(D||O)&&(console.log("[Daily] Cleaning up whiteboard/PDF states"),R(!1),B(null),Y.current=null),$(!1),K.current=!1,le(!1)),le(i)}}catch(a){}})),(0,u.VU)("live-streaming-updated",(function(e){console.log("[Daily] live-streaming-updated",e)})),(0,u.VU)("error",(function(e){console.error("Daily error:",(null===e||void 0===e?void 0:e.errorMsg)||e)})),(0,u.VU)("joined-meeting",(function(e){"1"!=(null===c||void 0===c?void 0:c.app_status)||k||(console.info("[DailyUI] app_status=1 \u2192 auto start",{usingRtmp:Boolean(null===c||void 0===c?void 0:c.rtmpUrl),rtmpUrl:null===c||void 0===c?void 0:c.rtmpUrl}),ne(!0),(null===c||void 0===c?void 0:c.rtmpUrl)?h.startLiveStreaming((0,i.Z)((0,o.Z)({},T),{rtmpUrl:c.rtmpUrl})):h.startLiveStreaming((0,i.Z)((0,o.Z)({},T),{endpoints:[{endpoint:"internal"}]})))}));var le=(0,s.useCallback)((function(e){try{var n=(0,E.N8)(d),r="/data/browserlive_screenshare/"+t,o=(0,E.iH)(n,r);(0,E.t8)(o,e)}catch(i){}}),[d,t]),se=(0,s.useCallback)(function(){var e=(0,r.Z)((function(e,n){var r,o,i,l,s,c,u,v;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,navigator.mediaDevices.enumerateDevices()];case 1:return r=a.sent()||[],o=r.filter((function(t){return"videoinput"===t.kind&&t.deviceId===e})),i=r.filter((function(t){return"audioinput"===t.kind&&t.deviceId===e})),l="camera"===n?o[0]:i[0],s="camera"===n?"/data/browserlive_camerastatus/"+t:"/data/browserlive_micstatus/"+t,c=(0,E.N8)(d),u=(0,E.iH)(c,s),(0,E.Vx)(u,{device_id:null===l||void 0===l?void 0:l.deviceId,device_label:null===l||void 0===l?void 0:l.label}),[3,3];case 2:return v=a.sent(),console.error("Error setting device id to firebase",v),[3,3];case 3:return[2]}}
1))}));return function(t,n){return e.apply(this,arguments)}}(),[d,t]),ce=(0,s.useCallback)((function(e){try{var n=(0,E.N8)(d),r="/data/browserlive_camera/"+t,o=(0,E.iH)(n,r);(0,E.t8)(o,e);var i="/data/browserlive_camerastatus/"+t+"/is_enabled",a=(0,E.iH)(n,i);(0,E.t8)(a,e)}catch(l){}}),[d,t]),ue=(0,s.useCallback)((function(e){try{var n=(0,E.N8)(d),r="/data/browserlive_micstatus/"+t+"/is_enabled",o=(0,E.iH)(n,r);(0,E.t8)(o,e)}catch(i){}}),[d,t]),de=(0,s.useCallback)((function(){var e,t,n,r;h&&(null===h||void 0===h||h.updateLiveStreaming((0,o.Z)({},T)),"playable"===(null===(e=h.participants())||void 0===e||null===(t=e.local)||void 0===t||null===(n=t.tracks)||void 0===n||null===(r=n.video)||void 0===r?void 0:r.state)||(console.log("[Layout Sync] Resetting camera state for layout synchronization"),h.setLocalVideo(!0),S.current=!0,console.log("[Layout Sync] Camera reset completed")))}),[h]),ve=(0,s.useCallback)(function(){var e=(0,r.Z)((function(e){var t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:se(e,"camera"),ce(!!e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,h.setInputDevicesAsync({videoDeviceId:e||null})];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.warn("Failed to update camera device",t),[3,4];case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),[h,se,ce]),fe=(0,s.useCallback)(function(){var e=(0,r.Z)((function(e){var t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:se(e,"mic"),ue(!!e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,h.setInputDevicesAsync({audioDeviceId:e||null})];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.warn("Failed to update microphone device",t),[3,4];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[h,se,ue]),pe=(0,s.useCallback)((0,r.Z)((function(){var e,n,l;return(0,a.__generator)(this,(function(s){return h?(te||(ne(!0),n=(0,Z.getCookie)(U.KH),l=(0,Z.getCookie)(U.JR),console.info("[DailyUI] onStartLive click",{streamId:t,hasAuth:Boolean(n),hasUid:Boolean(l),usingRtmp:Boolean(null===c||void 0===c?void 0:c.rtmpUrl),rtmpUrl:null===c||void 0===c?void 0:c.rtmpUrl,meetingState:null===(e=h.meetingState)||void 0===e?void 0:e.call(h)}),t&&(0,L.JU)(t,n,l).then((function(e){console.info("[DailyUI] updateAppStatus \u2192",null===e||void 0===e?void 0:e.status),(0,r.Z)((function(){return(0,a.__generator)(this,(function(e){try{(null===c||void 0===c?void 0:c.rtmpUrl)?(console.info("[DailyUI] startLiveStreaming RTMP",c.rtmpUrl),h.startLiveStreaming((0,i.Z)((0,o.Z)({},T),{rtmpUrl:c.rtmpUrl}))):(console.info("[DailyUI] startLiveStreaming internal endpoint"),h.startLiveStreaming((0,i.Z)((0,o.Z)({},T),{endpoints:[{endpoint:"internal"}]})))}catch(t){return console.error("[DailyUI] startLiveStreaming error",t),_(!1),[2]}return _(!0),[2]}))}))()})).catch((function(e){console.error("[DailyUI] updateAppStatus error",e),_(!1)}))),[2]):[2]}))})),[h,null===c||void 0===c?void 0:c.rtmpUrl,t]),he=(0,s.useCallback)((0,r.Z)((function(){var e,n;return(0,a.__generator)(this,(function(r){if(!h)return[2];if(oe)return[2];if(e=(0,Z.getCookie)(U.KH),n=(0,Z.getCookie)(U.JR),window.confirm("Are you sure you want to end the stream?"))try{ie(!0),(0,L.XG)(t,e,n).then((function(){var e=(0,E.N8)(d),n="/videoStatus/"+t,r=(0,E.iH)(e,n);(0,E.t8)(r,0).then((function(){_(!1),J(!0);try{null===h||void 0===h||h.stopLiveStreaming(),null===h||void 0===h||h.leave()}catch(t){console.error("Error stopping live streaming",t)}try{var e;null===(e=window.parent)||void 0===e||e.close()}catch(n){console.error("Error closing window",n)}try{window.close()}catch(r){console.error("Error closing window",r)}}))}))}catch(o){console.error("Error stopping live streaming",o)}finally{ie(!1)}return[2]}))})),[h,d,t]),ge=(0,s.useCallback)((0,r.Z)((function(){var e,t,n;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:if(console.log("[Screen Share] Starting regular screen share",{isWhiteboard:D,fileUrl:O,isSharingScreen:y,isRegularScreenShare:Q}),D||O)return console.log("[Screen Share] Cannot start - whiteboard/PDF is active"),[2];r.label=1;case 1:return r.trys.push([1,4,,5]),$(!0),[4,b({displayMediaOptions:{audio:!0,video:!0,selfBrowserSurface:"include",surfaceSwitching:"include",systemAudio:"include"}})];case 2:return r.sent(),[4,null===h||void 0===h?void 0:h.updateLiveStreaming({layout:{preset:"default"}})];case 3:return r.sent(),le(!0),console.log("[Screen Share] Regular screen share started successfully"),[3,5];case 4:return e=r.sent(),console.error("[Screen Share] Failed to start regular screen share",e),$(!1),le(!1),((null===e||void 0===e||null===(t=e.message)||void 0===t?void 0:t.includes("cancelled"))||(null===e||void 0===e||null===(n=e.message)||void 0===n?void 0:n.includes("denied")))&&console.log("[Screen Share] User cancelled screen share"),[3,5];case 5:return[2]}}
1))})),[D,O,y,b,Q]),me=(0,s.useCallback)((0,r.Z)((function(){return(0,a.__generator)(this,(function(e){console.log("[Screen Share] Stopping regular screen share");try{x(),null===h||void 0===h||h.updateLiveStreaming((0,o.Z)({},T)),de(),le(!1),$(!1),K.current=!1,console.log("[Screen Share] Regular screen share stopped successfully")}catch(t){console.error("[Screen Share] Failed to stop regular screen share",t)}return[2]}))})),[x,de]);return(0,s.useEffect)((function(){if(D||O){var e=function(){var e=(0,r.Z)((function(){var e,t,n,r;return(0,a.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),y&&Q?(x(),null===h||void 0===h||h.updateLiveStreaming((0,o.Z)({},T)),$(!1),[4,new Promise((function(e){return setTimeout(e,100)}))]):[3,2];case 1:i.sent(),i.label=2;case 2:return y&&(D||O)?[2]:(e=(0,M.C)(p),t=new URL(e).hostname,(n=document.querySelector("iframe[src*='excalidraw'], iframe[src*='".concat(t,"']")))?(Y.current=n,b({displayMediaOptions:{preferCurrentTab:!0,audio:!1,video:!0,selfBrowserSurface:"include",surfaceSwitching:"include",systemAudio:"exclude"}}),null===h||void 0===h||h.updateLiveStreaming({layout:{preset:"default"}}),le(!0),console.info("Screen share started for iframe"),[3,4]):(console.error("No iframe found to share"),R(!1),B(null),$(!1),le(!1),[2]));case 3:return r=i.sent(),console.error("Failed to start screen share for iframe",r),R(!1),B(null),le(!1),[3,4];case 4:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();e()}}),[D,O,y,Q,b,x,h]),(0,s.useEffect)((function(){var e;d&&h&&c&&t&&(Promise.all([n.e(2344),n.e(5051)]).then(n.bind(n,73234)).then((function(e){!function(e,n){var o={},i=function(t){"Accepted"==t.request_status?(e.join("623b28563469408b97c5f31e0761843b",t.room_id,t.voice_call_token,null).then((function(){})),e.on("user-published",(function(t,n){12345!=t.uid&&e.subscribe(t,"audio").then(function(){var e=(0,r.Z)((function(e){return(0,a.__generator)(this,(function(t){return(new MediaStream).addTrack(e.getMediaStreamTrack()),[2]}))}));return function(t){return e.apply(this,arguments)}}())})),e.on("user-unpublished",(function(e,t){var n,r=o[e.uid];12345!=e.uid&&r&&(null===(n=r.mediaStream)||void 0===n||n.getTracks().forEach((function(e){return e.stop()})))}))):"Ended"!=t.request_status||(0,F.Z)(o)||(e.leave(),Object.values(o).forEach((function(e){e.mediaStream.getTracks().forEach((function(e){e.stop()}))})),o={})},l=(0,E.N8)(n),s=(0,E.iH)(l,"/data/handRaise/"+t+"/users");(0,E.yv)(s,(function(e){var t=e.val();i(t)})),(0,E.Jr)(s,(function(e){var t=e.val();i(t)}))}(e.default,d)})),"1"!=(null===c||void 0===c?void 0:c.app_status)||k||"joined-meeting"!=(null===(e=h.meetingState)||void 0===e?void 0:e.call(h))||(console.info("[DailyUI] app_status=1 \u2192 auto start",{usingRtmp:Boolean(null===c||void 0===c?void 0:c.rtmpUrl),rtmpUrl:null===c||void 0===c?void 0:c.rtmpUrl}),ne(!0),(null===c||void 0===c?void 0:c.rtmpUrl)?h.startLiveStreaming((0,i.Z)((0,o.Z)({},T),{rtmpUrl:null===c||void 0===c?void 0:c.rtmpUrl})):h.startLiveStreaming((0,i.Z)((0,o.Z)({},T),{endpoints:[{endpoint:"internal"}]}))))}),[]),(0,s.useEffect)((function(){if(y){if(!K.current&&Y.current&&w){var e=window.CropTarget;(null===e||void 0===e?void 0:e.fromElement)&&e.fromElement(Y.current).then((function(e){var t=w;if("function"===typeof t.cropTo)return t.cropTo(e).then((function(){K.current=!0,console.log("Cropped screen share to iframe")})).catch((function(e){console.error("cropTo failed",e)}));console.warn("cropTo not implemented on this MediaStreamTrack")})).catch((function(e){console.error("Failed to crop screen share",e)}))}}else K.current=!1}),[y,w]),(0,s.useEffect)((function(){D||O||!y||Q||(console.log("[Screen Share] Cleaning up screen share for whiteboard/PDF"),x(),le(!1),K.current=!1,Y.current=null,null===h||void 0===h||h.updateLiveStreaming((0,o.Z)({},T)),de())}),[D,O,y,Q,x,h,de]),G?(0,l.jsx)("div",{className:"flex items-center justify-center h-full w-full",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"Meeting has ended"}),(0,l.jsx)("p",{className:"text-muted-foreground",children:"The meeting has ended. You can close this window now."})]})}):(0,l.jsxs)("div",{className:"relative flex flex-col h-[100vh] bg-background",children:[(0,l.jsx)(A.Z,{isMobile:!1,componentSuffix:"DailyLive"}),(0,l.jsx)(q,{isWhiteboard:D,fileUrl:O,streamId:t,setIsWhiteboard:R,setFileUrl:B,pdfAnnotatorVersion:p}),(0,l.jsx)(C,{isLive:k,onStartLive:pe,onStopLive:he,isWhiteboard:D,isFileSharing:!!O,setIsWhiteboard:R,onToggleFile:function(e){return B(e)},onToggleSettings:function(){return H((function(e){return!e}))},setMicStatus:ue,setCameraStatus:ce,onStartScreenShare:ge,onStopScreenShare:me,isScreenSharing:y,isGoLiveLoading:te,isEndStreamLoading:oe}),(0,l.jsx)(I,{open:W,onClose:function(){return H(!1)},onCameraChange:ve,onMicrophoneChange:fe})]})}function q(e){var t=e.isWhiteboard,n=e.fileUrl,o=e.streamId,i=e.pdfAnnotatorVersion,c=void 0===i?0:i,d=(0,u.VI)(),v=(0,u.q5)(),f=(0,s.useRef)(null),p=(0,s.useState)(!1),h=p[0],g=p[1],m=(0,s.useState)(null),b=m[0],x=m[1],y=(0,s.useState)("100%"),w=y[0],S=y[1],j=(0,s.useState)("100%"),k=j[0],_=j[1];(0,u.VU)("participant-updated",(function(e){var t;if(null===e||void 0===e||null===(t=e.participant)||void 0===t?void 0:t.local){var n,r,o,i,a=e.participant;g("playable"===(null===a||void 0===a||null===(n=a.tracks)||void 0===n||null===(r=n.video)||void 0===r?void 0:r.state)),x("playable"===(null===a||void 0===a||null===(o=a.tracks)||void 0===o||null===(i=o.screenVideo)||void 0===i?void 0:i.state)?a.session_id:null)}})),(0,u.VU)("joined-meeting",(function(){var e,t,n,r=null===(e=null===d||void 0===d?void 0:d.participants())||void 0===e?void 0:e.local;g("playable"===(null===r||void 0===r||null===(t=r.tracks)||void 0===t||null===(n=t.video)||void 0===n?void 0:n.state))}));var N=(0,s.useCallback)((function(){if(f.current){var e=f.current.parentElement;if(e){var t,n,r,o,i=e.clientWidth,a=e.clientHeight,l=i-0,s=h?14.24/9:16/9;l/a>s?(n=a,t=a*s,o=!0,r=!1):(t=l,n=l/s,r=!0,o=!1),S("".concat(Math.round(t),"px")),_("".concat(Math.round(n),"px")),console.log("[MainVideoArea] Iframe dimensions calculated:",{containerWidth:i,containerHeight:a,cameraWidth:0,availableWidth:l,newWidth:Math.round(t),newHeight:Math.round(n),isFullWidth:r,isFullHeight:o,isLocalCameraOn:h})}}}),[h]);return(0,s.useEffect)((function(){n&&f.current&&(f.current.onload=(0,r.Z)((function(){var e,t,r;return(0,a.__generator)(this,(function(o){switch(o.label){case 0:return[4,fetch(n).then((function(e){return e.blob()}))];case 1:return r=o.sent(),null===(e=f.current)||void 0===e||null===(t=e.contentWindow)||void 0===t||t.postMessage({file:r},"*"),[2]}}))})))}),[n]),(0,s.useEffect)((function(){N()}),[N]),(0,s.useEffect)((function(){var e=function(){N()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[N]),(0,l.jsxs)("div",{className:"flex-grow-1 bg-background overflow-hidden h-full w-full",children:[(t||n)&&(0,l.jsx)("div",{className:"flex items-center justify-center w-full h-full bg-background",children:(0,l.jsx)("iframe",{ref:f,style:{width:w,height:k,objectFit:"contain"},src:t?"https://excalidraw.com":(0,M.o)(c,o,n),allow:"display-capture *; clipboard-read; clipboard-write"})}),!t&&!n&&(0,l.jsxs)("div",{className:"relative w-full h-full",children:[b?(0,l.jsxs)("div",{className:"relative w-full h-full",children:[(0,l.jsx)(u.E5,{sessionId:b,type:"screenVideo",className:"w-full h-full object-contain bg-black"}),(0,l.jsx)("div",{className:"hidden absolute bottom-4 right-4 w-64 aspect-video rounded overflow-hidden shadow-lg",children:v&&(0,l.jsx)(u.E5,{sessionId:v,type:"video",className:"w-full h-full object-cover bg-black"})})]}):v&&(h?(0,l.jsx)(u.E5,{sessionId:v,type:"video",className:"w-full h-full object-cover bg-black"}):(0,l.jsx)("div",{className:"flex justify-center items-center w-full h-full bg-[#003250]",children:(0,l.jsx)(R.Z,{className:"w-10 h-10 text-white"})})),(0,l.jsx)(u.Th,{})]})]})}},49458:function(e,t,n){var r=n(47568),o=n(97582),i=n(85893),a=n(67294),l=n(40116),s=n(73916);t.Z=function(e){var t=e.isMobile,n=void 0!==t&&t,c=e.componentSuffix,u=void 0===c?"VideoPlayer":c,d=(0,a.useState)(null),v=d[0],f=d[1];(0,a.useEffect)((function(){var e=(0,s.hu)({componentSuffix:u,enableNetworkLogging:!0,storageKey:"".concat(u.toLowerCase(),"_logs")});return f(e),function(){e.destroy()}}),[u]);var p=function(){var e=(0,r.Z)((function(){var e,t,n,r,i,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(!v)return[2];if(e="[".concat(u," Logs]\nUserAgent: ").concat(navigator.userAgent||"","\nTimestamp: ").concat((new Date).toISOString(),"\n\n"),t=v.exportLogs(),n=e+t,!navigator.clipboard||!navigator.clipboard.writeText)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(n)];case 2:return o.sent(),console.log("Logs copied to clipboard (".concat(v.getLogs().length,")")),[2];case 3:return r=o.sent(),console.error("Failed to copy logs:",r),[3,4];case 4:(i=document.createElement("textarea")).value=n,i.style.position="fixed",i.style.left="-9999px",document.body.appendChild(i),i.focus(),i.select(),o.label=5;case 5:return o.trys.push([5,9,10,11]),navigator.clipboard&&navigator.clipboard.writeText?[4,navigator.clipboard.writeText(i.value)]:[3,7];case 6:return o.sent(),console.log("Logs copied to clipboard (".concat((null===v||void 0===v?void 0:v.getLogs().length)||0,")")),[3,8];case 7:document.execCommand("copy"),console.log("Logs copied to clipboard (".concat((null===v||void 0===v?void 0:v.getLogs().length)||0,")")),o.label=8;case 8:return[3,11];case 9:return a=o.sent(),console.error("Failed to copy logs:",a),[3,11];case 10:return document.body.removeChild(i),[7];case 11:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),h=n?"Copy ".concat(u," logs"):"Download ".concat(u," logs");return(0,i.jsx)("button",{onClick:function(){try{n?p():function(){if(v)try{var e="[".concat(u," Logs]\nUserAgent: ").concat(navigator.userAgent||"","\nTimestamp: ").concat((new Date).toISOString(),"\n\n"),t=v.exportLogs(),n=new Blob([e+t],{type:"text/plain"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="".concat(u.toLowerCase(),"-logs-").concat((new Date).toISOString().replace(/[:.]/g,"-"),".txt"),document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),console.log("Logs downloaded (".concat(v.getLogs().length,")"))}catch(i){console.error("Failed to download logs:",i)}}()}catch(e){console.error(n?"Copy logs exception:":"Download logs exception:",e)}},"aria-label":h,title:h,style:{position:"absolute",left:"4px",top:"50%",transform:"translateY(-50%)",width:"clamp(20px, 2.5vw, 28px)",height:"clamp(20px, 2.5vw, 28px)",borderRadius:"9999px",zIndex:2147483647,background:"rgba(0,0,0,0.45)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",padding:"0",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",backdropFilter:"blur(2px)",opacity:"0.6",transition:"opacity 0.2s ease"},onMouseEnter:function(e){e.currentTarget.style.opacity="0.95"},onMouseLeave:function(e){e.currentTarget.style.opacity="0.6"},children:(0,i.jsx)(l.Z,{className:"w-6 h-6"})})}},30976:function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t="string"===typeof e?Number(e):e;return 1===t?"https://appx-pdf-js-annotation-v2.akamai.net.in":"https://appx-pdf-js-annotation.akamai.net.in"}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=r(e),i=new URLSearchParams({streamId:t});return n&&i.set("url",n),"".concat(o,"/?").concat(i.toString())}n.d(t,{C:function(){return r},o:function(){return o}})},21359:function(e,t,n){var r=n(82670);t.Z=function(e){if(null===e||void 0===e)return!0;if("string"===typeof e)return""===e;if(Array.isArray(e)||"object"===typeof e&&null!==e){if((0,r.Z)(e,Map)||(0,r.Z)(e,Set))return 0===e.size;if(0===Object.keys(e).length)return!0}return!1}}}]);

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.