@cloudflare/realtimekit-ui 2.0.4-staging.2 → 2.0.4-staging.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/{breakout-rooms-manager-Bgk5FEK1.js → breakout-rooms-manager-CI4CY88g.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai_3.cjs.entry.js +1 -1
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +1 -1
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +1 -1
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +1 -1
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +1 -1
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +1 -1
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +1 -1
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-message.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-controlbar.cjs.entry.js +1 -1
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +1 -1
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +1 -1
- package/dist/cjs/rtk-header.cjs.entry.js +1 -1
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +1 -1
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +1 -1
- package/dist/cjs/rtk-logo.cjs.entry.js +1 -1
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +23 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +1 -1
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +1 -1
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +1 -1
- package/dist/cjs/rtk-notifications.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participant_2.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participants.cjs.entry.js +1 -1
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-transcripts.cjs.entry.js +1 -1
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +1 -1
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +1 -1
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +29 -2
- package/dist/collection/utils/breakout-rooms-manager.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-ByPpyWt6.js → p-5quurE-Z.js} +1 -1
- package/dist/components/{p-Bux-kSlP.js → p-B3XpiAaE.js} +1 -1
- package/dist/components/{p-pcKO_EeI.js → p-B4Ap4n7a.js} +1 -1
- package/dist/components/{p-vqPkhXWC.js → p-B5XTxQov.js} +1 -1
- package/dist/components/{p-93ZUKlQ1.js → p-BD2FfUwc.js} +1 -1
- package/dist/components/{p-CAsupO2z.js → p-BL_lNnwE.js} +1 -1
- package/dist/components/{p-DnOzzBR9.js → p-BODcekJl.js} +1 -1
- package/dist/components/{p-CHh7GAdL.js → p-BVwe7Wfq.js} +1 -1
- package/dist/components/{p--CEA0NQj.js → p-BW3eEJGd.js} +1 -1
- package/dist/components/{p-Bf-vQ6U9.js → p-BYNelMao.js} +1 -1
- package/dist/components/{p-DnkJztTd.js → p-BueZc6Xo.js} +1 -1
- package/dist/components/{p-y_feb08f.js → p-Bw12zqoT.js} +1 -1
- package/dist/components/{p--VK1POSX.js → p-CBGt9ESN.js} +1 -1
- package/dist/components/{p-D_AEDHUV.js → p-CGBdi6J9.js} +1 -1
- package/dist/components/{p-C0ESgBoj.js → p-CPnv0ZqZ.js} +1 -1
- package/dist/components/{p-BXHUa6x_.js → p-CRI4EXkA.js} +1 -1
- package/dist/components/{p-BY_rxRub.js → p-CgQKQwo8.js} +1 -1
- package/dist/components/{p-CuRSxmeD.js → p-CxE6v80l.js} +1 -1
- package/dist/components/{p-Ryaxu6vl.js → p-D3fF-6sB.js} +1 -1
- package/dist/components/{p-VHRH6fkb.js → p-D6Vrf7V1.js} +1 -1
- package/dist/components/p-D9EtbXLL.js +1 -0
- package/dist/components/{p-CU7xL-hP.js → p-DRDGwBZ3.js} +1 -1
- package/dist/components/{p-Bn6JMUc9.js → p-DhkCjo6N.js} +1 -1
- package/dist/components/{p-CMyYEHgz.js → p-Djf3ZrmN.js} +1 -1
- package/dist/components/{p-BbE6o8zj.js → p-LohuIsNV.js} +1 -1
- package/dist/components/{p-DZcwJOUW.js → p-hPdGZ_Bf.js} +1 -1
- package/dist/components/{p-BQJoMtIK.js → p-igDs79FY.js} +1 -1
- package/dist/components/{p-CBWhDYEo.js → p-iyI_rAph.js} +1 -1
- package/dist/components/{p-Bf-HIBwL.js → p-oJLPa1F-.js} +1 -1
- package/dist/components/{p-gixOLeKl.js → p-tZ9CpAsl.js} +1 -1
- package/dist/components/{p-DhG2PF_5.js → p-ukr4mPVB.js} +1 -1
- package/dist/components/{p-DdSpe6Sb.js → p-xKvr8ufu.js} +1 -1
- package/dist/components/{p-E1D1eNFh.js → p-xnw0dG3-.js} +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-caption-toggle.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +1 -1
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-ended-screen.js +1 -1
- package/dist/components/rtk-file-dropzone.js +1 -1
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +1 -1
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-meeting-title.js +1 -1
- package/dist/components/rtk-meeting.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mute-all-button.js +1 -1
- package/dist/components/rtk-network-indicator.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-participant-setup.js +1 -1
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-pip-toggle.js +1 -1
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-stage-toggle.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-transcripts.js +1 -1
- package/dist/components/rtk-ui-provider.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +1 -1
- package/dist/esm/{breakout-rooms-manager-B1Qky9zO.js → breakout-rooms-manager-DOKq3YH6.js} +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +25 -3
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai_3.entry.js +1 -1
- package/dist/esm/rtk-audio-grid.entry.js +1 -1
- package/dist/esm/rtk-audio-tile.entry.js +1 -1
- package/dist/esm/rtk-avatar_26.entry.js +1 -1
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +1 -1
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +1 -1
- package/dist/esm/rtk-camera-selector_2.entry.js +1 -1
- package/dist/esm/rtk-caption-toggle.entry.js +1 -1
- package/dist/esm/rtk-chat-composer-ui.entry.js +1 -1
- package/dist/esm/rtk-chat-message.entry.js +1 -1
- package/dist/esm/rtk-chat-messages-ui.entry.js +1 -1
- package/dist/esm/rtk-chat-search-results.entry.js +1 -1
- package/dist/esm/rtk-chat-selector-ui.entry.js +1 -1
- package/dist/esm/rtk-controlbar.entry.js +1 -1
- package/dist/esm/rtk-debugger-audio_4.entry.js +1 -1
- package/dist/esm/rtk-ended-screen.entry.js +1 -1
- package/dist/esm/rtk-file-dropzone.entry.js +1 -1
- package/dist/esm/rtk-header.entry.js +1 -1
- package/dist/esm/rtk-idle-screen.entry.js +1 -1
- package/dist/esm/rtk-information-tooltip.entry.js +1 -1
- package/dist/esm/rtk-livestream-indicator_3.entry.js +1 -1
- package/dist/esm/rtk-logo.entry.js +1 -1
- package/dist/esm/rtk-meeting-title.entry.js +23 -2
- package/dist/esm/rtk-message-list-view.entry.js +1 -1
- package/dist/esm/rtk-mute-all-button.entry.js +1 -1
- package/dist/esm/rtk-network-indicator.entry.js +1 -1
- package/dist/esm/rtk-notifications.entry.js +1 -1
- package/dist/esm/rtk-participant-setup.entry.js +1 -1
- package/dist/esm/rtk-participant_2.entry.js +1 -1
- package/dist/esm/rtk-participants-stage-list_4.entry.js +1 -1
- package/dist/esm/rtk-participants.entry.js +1 -1
- package/dist/esm/rtk-pip-toggle.entry.js +1 -1
- package/dist/esm/rtk-sidebar-ui.entry.js +1 -1
- package/dist/esm/rtk-stage-toggle.entry.js +1 -1
- package/dist/esm/rtk-transcripts.entry.js +1 -1
- package/dist/esm/rtk-ui-provider.entry.js +1 -1
- package/dist/esm/rtk-waiting-screen.entry.js +1 -1
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-a646f038.entry.js → p-0742c744.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-09ce95b2.entry.js → p-1b3ffb5e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b27db286.entry.js → p-1f144efb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c6f6afcd.entry.js → p-2715643b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-01c014e4.entry.js → p-29ab5d68.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ac79ef88.entry.js → p-439c8ce4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4a7927d1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-56df9c19.entry.js → p-4f3e5cb4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-401b9ed3.entry.js → p-5093081b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-20734a3a.entry.js → p-52e797c1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d9c7c4d8.entry.js → p-55ba62c3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-de4ecd17.entry.js → p-5e3931a3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e38967d0.entry.js → p-661b7281.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-23e14ccd.entry.js → p-6cc9da9f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-6d3b4996.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b46d416b.entry.js → p-70de46f0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d4ff2477.entry.js → p-77c92672.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ff89f0f6.entry.js → p-77e9a0cb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6e0f43e4.entry.js → p-8c77aa57.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-27751707.entry.js → p-8e7d8c30.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4bd89bff.entry.js → p-91bcabc0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-815d9724.entry.js → p-9913c4ca.entry.js} +1 -1
- package/dist/realtimekit-ui/p-D9EtbXLL.js +1 -0
- package/dist/realtimekit-ui/{p-47abb821.entry.js → p-a6ec2863.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-80b42139.entry.js → p-b16313e9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4ed011a1.entry.js → p-b918e87c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dc7a28a6.entry.js → p-bac3c4fb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-21f69c50.entry.js → p-c317b4a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bcc42454.entry.js → p-d003eb81.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bcc20509.entry.js → p-d51ab494.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4add313e.entry.js → p-da2e626e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ba7fb049.entry.js → p-e7a4954c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e347e0d8.entry.js → p-ebdece22.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e8e6a1c8.entry.js → p-ee65922b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-da9c7efe.entry.js → p-ef030197.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f27494e7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-ce81ffaa.entry.js → p-f33e4112.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-61032e04.entry.js → p-fa84f55a.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-meeting-title/rtk-meeting-title.d.ts +5 -0
- package/package.json +1 -1
- package/dist/components/p-DxDYE5-a.js +0 -1
- package/dist/realtimekit-ui/p-6b387775.entry.js +0 -1
- package/dist/realtimekit-ui/p-DxDYE5-a.js +0 -1
- package/dist/realtimekit-ui/p-bf54cdd9.entry.js +0 -1
- package/dist/realtimekit-ui/p-cd5069ea.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as s,h as a,d as i,t as e}from"./p-BBHQOrFK.js";import{c as o,e as n,i as p}from"./p-DhwysA2e.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-bRRQr4xn.js";import{d as l}from"./p-BHHJ7_MS.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DMbGWtns.js";import{d as u}from"./p-Z8VMlEx7.js";import{d as b}from"./p--VK1POSX.js";import{d as g}from"./p-Bf-vQ6U9.js";import{d as k}from"./p-93ZUKlQ1.js";import{d as v}from"./p-Bf-HIBwL.js";import{d as f}from"./p-DdSpe6Sb.js";import{d as x}from"./p-Ryaxu6vl.js";import{d as E}from"./p-B0SC1Zj-.js";import{d as w}from"./p-DHSRRtn3.js";import{d as T}from"./p-BbJzI1u1.js";import{d as j}from"./p-DLocSBO3.js";var S=function(t,r,s,a){var i,e=arguments.length,o=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(e<3?i(o):e>3?i(r,s,o):i(r,s))||o);return e>3&&o&&Object.defineProperty(r,s,o),o};const y=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.config=o(),this.iconPack=n,this.defaultParticipantsTabId="stage-list",this.t=p(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=j((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,i=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&i++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&i++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:a("span",null,this.t("requests")," ",a("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:a("span",null,this.t("participants")," ",a("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:a("span",null,this.t("viewers")," ",a("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},i))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,s;return null===(s=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return a(i,null,a("div",{class:"search",part:"search"},a("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),a("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),a("slot",{name:"start"}),a("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},a("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&a("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&a("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&a("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),a("rtk-participants-stage-queue",Object.assign({},t)),a("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&a("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),a("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}"}},[257,"rtk-participants",{meeting:[16],states:[16],config:[16],size:[513],iconPack:[16],defaultParticipantsTabId:[1,"default-participants-tab-id"],t:[16],currentParticipantsTabId:[32],tabs:[32],hasRequests:[32],search:[32]},void 0,{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-participants","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-participants-stage-list","rtk-participants-stage-queue","rtk-participants-viewer-list","rtk-participants-waiting-list","rtk-sidebar-ui","rtk-spinner","rtk-tooltip","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants":customElements.get(e(t))||customElements.define(e(t),y);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||h();break;case"rtk-icon":customElements.get(e(t))||d();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||u();break;case"rtk-participant":customElements.get(e(t))||b();break;case"rtk-participants-stage-list":customElements.get(e(t))||g();break;case"rtk-participants-stage-queue":customElements.get(e(t))||k();break;case"rtk-participants-viewer-list":customElements.get(e(t))||v();break;case"rtk-participants-waiting-list":customElements.get(e(t))||f();break;case"rtk-sidebar-ui":customElements.get(e(t))||x();break;case"rtk-spinner":customElements.get(e(t))||E();break;case"rtk-tooltip":customElements.get(e(t))||w();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||T()}}))}S([c()],y.prototype,"meeting",void 0),S([c()],y.prototype,"states",void 0),S([c()],y.prototype,"config",void 0),S([c()],y.prototype,"iconPack",void 0),S([c()],y.prototype,"t",void 0),O();const _=y,I=O;export{_ as RtkParticipants,I as defineCustomElement}
|
|
1
|
+
import{p as t,H as r,c as s,h as a,d as i,t as e}from"./p-BBHQOrFK.js";import{c as o,e as n,i as p}from"./p-DhwysA2e.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-bRRQr4xn.js";import{d as l}from"./p-BHHJ7_MS.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DMbGWtns.js";import{d as u}from"./p-Z8VMlEx7.js";import{d as b}from"./p-CBGt9ESN.js";import{d as g}from"./p-BYNelMao.js";import{d as k}from"./p-BD2FfUwc.js";import{d as v}from"./p-oJLPa1F-.js";import{d as f}from"./p-xKvr8ufu.js";import{d as x}from"./p-D3fF-6sB.js";import{d as E}from"./p-B0SC1Zj-.js";import{d as w}from"./p-DHSRRtn3.js";import{d as T}from"./p-BbJzI1u1.js";import{d as j}from"./p-DLocSBO3.js";var S=function(t,r,s,a){var i,e=arguments.length,o=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(e<3?i(o):e>3?i(r,s,o):i(r,s))||o);return e>3&&o&&Object.defineProperty(r,s,o),o};const y=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.config=o(),this.iconPack=n,this.defaultParticipantsTabId="stage-list",this.t=p(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=j((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,i=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&i++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&i++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:a("span",null,this.t("requests")," ",a("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:a("span",null,this.t("participants")," ",a("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:a("span",null,this.t("viewers")," ",a("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},i))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,s;return null===(s=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return a(i,null,a("div",{class:"search",part:"search"},a("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),a("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),a("slot",{name:"start"}),a("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},a("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&a("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&a("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&a("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),a("rtk-participants-stage-queue",Object.assign({},t)),a("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&a("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),a("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}"}},[257,"rtk-participants",{meeting:[16],states:[16],config:[16],size:[513],iconPack:[16],defaultParticipantsTabId:[1,"default-participants-tab-id"],t:[16],currentParticipantsTabId:[32],tabs:[32],hasRequests:[32],search:[32]},void 0,{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-participants","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-participants-stage-list","rtk-participants-stage-queue","rtk-participants-viewer-list","rtk-participants-waiting-list","rtk-sidebar-ui","rtk-spinner","rtk-tooltip","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants":customElements.get(e(t))||customElements.define(e(t),y);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||h();break;case"rtk-icon":customElements.get(e(t))||d();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||u();break;case"rtk-participant":customElements.get(e(t))||b();break;case"rtk-participants-stage-list":customElements.get(e(t))||g();break;case"rtk-participants-stage-queue":customElements.get(e(t))||k();break;case"rtk-participants-viewer-list":customElements.get(e(t))||v();break;case"rtk-participants-waiting-list":customElements.get(e(t))||f();break;case"rtk-sidebar-ui":customElements.get(e(t))||x();break;case"rtk-spinner":customElements.get(e(t))||E();break;case"rtk-tooltip":customElements.get(e(t))||w();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||T()}}))}S([c()],y.prototype,"meeting",void 0),S([c()],y.prototype,"states",void 0),S([c()],y.prototype,"config",void 0),S([c()],y.prototype,"iconPack",void 0),S([c()],y.prototype,"t",void 0),O();const _=y,C=O;export{_ as RtkParticipants,C as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-
|
|
1
|
+
import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{c as r,e as a,i as c}from"./p-DhwysA2e.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as p}from"./p-bRRQr4xn.js";import{d as l}from"./p-CFBS-gbK.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as m}from"./p-B0SC1Zj-.js";var d=function(t,i,e,s){var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.config=r(),this.iconPack=a,this.t=c(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}"}},[1,"rtk-pip-toggle",{variant:[513],meeting:[16],states:[16],config:[16],iconPack:[16],size:[513],t:[16],pipSupported:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-pip-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-pip-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||l();break;case"rtk-icon":customElements.get(n(t))||h();break;case"rtk-spinner":customElements.get(n(t))||m()}}))}d([p()],u.prototype,"meeting",void 0),d([p()],u.prototype,"states",void 0),d([p()],u.prototype,"config",void 0),d([p()],u.prototype,"iconPack",void 0),d([p()],u.prototype,"t",void 0),f();const g=u,v=f;export{g as RtkPipToggle,v as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DRDGwBZ3.js";const p=o,r=s;export{p as RtkPlugins,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DhkCjo6N.js";const p=o,r=s;export{p as RtkPolls,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as r}from"./p-Djf3ZrmN.js";const s=o,m=r;export{s as RtkSettingsVideo,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as o,h as s,d as i,t as a}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d}from"./p-Dh8N1Wv8.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-CW-FAeNP.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-BxPmWGqJ.js";import{d as k}from"./p-BXHUa6x_.js";import{d as u}from"./p-mgE9e3Hm.js";import{d as g}from"./p-CMyYEHgz.js";import{d as m}from"./p-CHOs-ZsL.js";import{d as v}from"./p-5i84b0Gw.js";var w=function(t,r,o,s){var i,a=arguments.length,e=a<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(a<3?i(e):a>3?i(r,o,e):i(r,o))||e);return a>3&&e&&Object.defineProperty(r,o,e),e};const x=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(i,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(a(t))||customElements.define(a(t),x);break;case"rtk-audio-visualizer":customElements.get(a(t))||d();break;case"rtk-button":customElements.get(a(t))||l();break;case"rtk-camera-selector":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||h();break;case"rtk-participant-tile":customElements.get(a(t))||k();break;case"rtk-settings-audio":customElements.get(a(t))||u();break;case"rtk-settings-video":customElements.get(a(t))||g();break;case"rtk-speaker-selector":customElements.get(a(t))||m();break;case"rtk-switch":customElements.get(a(t))||v()}}))}w([c()],x.prototype,"meeting",void 0),w([c()],x.prototype,"states",void 0),w([c()],x.prototype,"iconPack",void 0),w([c()],x.prototype,"t",void 0),f();const y=x,j=f;export{y as RtkSettings,j as defineCustomElement}
|
|
1
|
+
import{p as t,H as r,c as o,h as s,d as i,t as a}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d}from"./p-Dh8N1Wv8.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-CW-FAeNP.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-BxPmWGqJ.js";import{d as k}from"./p-CRI4EXkA.js";import{d as u}from"./p-mgE9e3Hm.js";import{d as g}from"./p-Djf3ZrmN.js";import{d as m}from"./p-CHOs-ZsL.js";import{d as v}from"./p-5i84b0Gw.js";var w=function(t,r,o,s){var i,a=arguments.length,e=a<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(a<3?i(e):a>3?i(r,o,e):i(r,o))||e);return a>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(i,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-audio-visualizer":customElements.get(a(t))||d();break;case"rtk-button":customElements.get(a(t))||l();break;case"rtk-camera-selector":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||h();break;case"rtk-participant-tile":customElements.get(a(t))||k();break;case"rtk-settings-audio":customElements.get(a(t))||u();break;case"rtk-settings-video":customElements.get(a(t))||g();break;case"rtk-speaker-selector":customElements.get(a(t))||m();break;case"rtk-switch":customElements.get(a(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as s,d as o}from"./p-D3fF-6sB.js";const p=s,r=o;export{p as RtkSidebarUi,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-DhwysA2e.js";import{c,d as p,a as h,b as d,e as m}from"./p-D9HGXWKc.js";import{S as k}from"./p-bRRQr4xn.js";import{R as b}from"./p-CBJjerDR.js";import{d as u}from"./p-B1oyTNvb.js";import{d as v}from"./p-CAMtxcI_.js";import{d as g}from"./p-D6vw6bT2.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-
|
|
1
|
+
import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-DhwysA2e.js";import{c,d as p,a as h,b as d,e as m}from"./p-D9HGXWKc.js";import{S as k}from"./p-bRRQr4xn.js";import{R as b}from"./p-CBJjerDR.js";import{d as u}from"./p-B1oyTNvb.js";import{d as v}from"./p-CAMtxcI_.js";import{d as g}from"./p-D6vw6bT2.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-DRDGwBZ3.js";import{d as x}from"./p-DjOiGHfI.js";import{d as j}from"./p-BvLjh5Yy.js";import{d as y}from"./p-DhkCjo6N.js";import{d as C}from"./p-D3fF-6sB.js";import{d as E}from"./p-DHSRRtn3.js";var S=function(t,s,i,a){var e,r=arguments.length,o=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(s,i,o):e(s,i))||o);return r>3&&o&&Object.defineProperty(s,i,o),o};const D=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=o(),this.iconPack=n,this.t=l(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var s,i;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(i=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===i||i.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const s=[];c(t)&&s.push({id:"chat",name:this.t("chat")}),p(t)&&s.push({id:"polls",name:this.t("polls")}),h(t)&&s.push({id:"participants",name:this.t("participants")}),d(t)&&s.push({id:"plugins",name:this.t("plugins")}),m(t)&&s.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=s}render(){var t;if(!this.meeting)return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=s.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?a(e,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},a("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&a("div",{class:"pinned-state",slot:"pinned-state"},a("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},a("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===s.states.sidebar&&a(b,{element:"rtk-chat",defaults:s,props:{slot:"chat"}}),"polls"===s.states.sidebar&&a("rtk-polls",Object.assign({},s,{slot:"polls"})),"participants"===s.states.sidebar&&a(b,{element:"rtk-participants",defaults:s,props:{slot:"participants"}}),"plugins"===s.states.sidebar&&a("rtk-plugins",Object.assign({},s,{slot:"plugins"})),"ai"===s.states.sidebar&&a("rtk-ai",Object.assign({},s,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}"}},[1,"rtk-sidebar",{enabledSections:[1040],defaultSection:[1,"default-section"],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],size:[513],view:[513],currentTab:[32],isFloating:[32],enablePinning:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}]);function R(){"undefined"!=typeof customElements&&["rtk-sidebar","rtk-ai","rtk-ai-transcriptions","rtk-button","rtk-icon","rtk-plugins","rtk-poll","rtk-poll-form","rtk-polls","rtk-sidebar-ui","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-sidebar":customElements.get(r(t))||customElements.define(r(t),D);break;case"rtk-ai":customElements.get(r(t))||u();break;case"rtk-ai-transcriptions":customElements.get(r(t))||v();break;case"rtk-button":customElements.get(r(t))||g();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-plugins":customElements.get(r(t))||w();break;case"rtk-poll":customElements.get(r(t))||x();break;case"rtk-poll-form":customElements.get(r(t))||j();break;case"rtk-polls":customElements.get(r(t))||y();break;case"rtk-sidebar-ui":customElements.get(r(t))||C();break;case"rtk-tooltip":customElements.get(r(t))||E()}}))}S([k()],D.prototype,"meeting",void 0),S([k()],D.prototype,"states",void 0),S([k()],D.prototype,"config",void 0),S([k()],D.prototype,"iconPack",void 0),S([k()],D.prototype,"t",void 0),R();const B=D,O=R;export{B as RtkSidebar,O as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-
|
|
1
|
+
import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as n,i as l}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{S as r}from"./p-bRRQr4xn.js";import{d}from"./p-CFBS-gbK.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p-B0SC1Zj-.js";import{d as c}from"./p-DHSRRtn3.js";var v=function(t,i,s,e){var o,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=l(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,o,a,n;const l=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===l&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===l&&(null===(o=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===l&&(null===(n=null===(a=null==this?void 0:this.meeting)||void 0===a?void 0:a.stage)||void 0===n||n.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,o;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(o=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)?e(o,{title:this.state.label},e("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):e(o,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}"}},[1,"rtk-stage-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],states:[16],t:[16],stageStatus:[32],state:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-stage-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-stage-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||d();break;case"rtk-icon":customElements.get(a(t))||h();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||c()}}))}v([r()],p.prototype,"meeting",void 0),v([r()],p.prototype,"iconPack",void 0),v([r()],p.prototype,"states",void 0),v([r()],p.prototype,"t",void 0),m();const g=p,b=m;export{g as RtkStageToggle,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-Bw12zqoT.js";const p=o,r=s;export{p as RtkTextComposerView,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,D as c}from"./p-DhwysA2e.js";import"./p-
|
|
1
|
+
import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,D as c}from"./p-DhwysA2e.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as h}from"./p-bRRQr4xn.js";import{d as p}from"./p-CJGAvEk3.js";var d=function(t,s,e,i){var r,n=arguments.length,a=n<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(s,e,a):r(s,e))||a);return n>3&&a&&Object.defineProperty(s,e,a),a};const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=a(),this.t=o(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var s;null===(s=null==t?void 0:t.ai)||void 0===s||s.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var s;this.onTranscript&&(null===(s=null==t?void 0:t.ai)||void 0===s||s.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,s){clearTimeout(this.disconnectTimeout),s&&this.clearListeners(s),t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,s){if(!t.length)return[s];let e=t[t.length-1];return e.peerId!==s.peerId?t.concat(s):e.id===s.id?(e.transcript=s.transcript,t.pop(),t.concat(c(e))):t.concat(s)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t),this.pruneToLatestTwoGroups()}buildGroups(){const t=[];return this.transcripts.forEach((s=>{const e=t[t.length-1];!e||e.peerId!==s.peerId||e.combinedText.length+s.transcript.length>400?(t.push({renderedId:s.id,peerId:s.peerId,combinedText:s.transcript,entries:[s]}),s.renderedId=s.id):(e.combinedText+=" "+s.transcript,s.renderedId=e.renderedId,e.entries.push(s))})),t}pruneToLatestTwoGroups(){const t=this.buildGroups();if(t.length<=2)return;const s=new Set(t.slice(-2).flatMap((t=>t.entries)));this.transcripts=this.transcripts.filter((t=>s.has(t)))}remove(t){this.transcripts=this.transcripts.filter((s=>s.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:i}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{e((()=>{this.remove(i)}))}),400)}renderTranscripts(){return this.buildGroups().slice(-2).map((t=>{const s=t.entries[0];return i("rtk-transcript",{key:s.id,"data-id":s.id,transcript:{name:s.name,date:s.date,peerId:t.peerId,userId:s.userId,customParticipantId:s.customParticipantId,transcript:t.combinedText,id:s.id,renderedId:t.renderedId},onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})}))}render(){if(this.states.activeCaptions)return i(r,null,this.renderTranscripts())}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-transcripts",{meeting:[16],states:[16],config:[16],t:[16],transcripts:[32],listenerAttached:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-transcripts","rtk-transcript"].forEach((t=>{switch(t){case"rtk-transcripts":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-transcript":customElements.get(n(t))||p()}}))}d([h()],l.prototype,"meeting",void 0),d([h()],l.prototype,"states",void 0),d([h()],l.prototype,"config",void 0),d([h()],l.prototype,"t",void 0),u();const m=l,f=u;export{m as RtkTranscripts,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as s,h as o,d as r}from"./p-BBHQOrFK.js";import"./p-
|
|
1
|
+
import{t,p as e,H as i,c as s,h as o,d as r}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{m as n,p as h}from"./p-CfIrQkMg.js";import{e as a,i as d,c,f as p,u as g,b as m}from"./p-DhwysA2e.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{g as l}from"./p-DE1s0fDa.js";import{g as u}from"./p-vBfDtD_u.js";const f=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.statesUpdate=s(this,"rtkStatesUpdate",7),this.peerStore=null,this.providerId="provider-"+Math.floor(100*Math.random()),this.meeting=null,this.iconPack=a,this.t=d(),this.config=c(),this.mode="fixed",this.showSetupScreen=!1,this.overrides=p,this.roomJoinedListener=()=>{this.updateStates({meeting:"joined",preJoinError:null})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{!["audio","video"].includes(t)||"DENIED"!==e&&"SYSTEM_DENIED"!==e||!0===(this.peerStore||g).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},this.peerStore.state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=l(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.setupStoreRequestListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides)}disconnectedCallback(){window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}updateStates(t){const e=this.peerStore||g,i=Object.assign({},e.state.states);e.state.states=n(i,t),this.statesUpdate.emit(e.state.states);const s=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(s)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const e=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(e),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}meetingChanged(t,e){if(t&&(this.peerStore=m({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:n(Object.assign({},p),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))),this.setupStateUpdateListener(),t){const i=this.peerStore||g;i.state.meeting=t,this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!i.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.join().then((()=>{this.updateStates({preJoinError:null})})).catch((t=>{const{message:e,code:i}=u(this.t,t);this.updateStates({preJoinError:{message:e,code:i}})})),window.removeEventListener("ClientError",this.initErrorListener)}}iconPackChanged(t){this.peerStore&&(this.peerStore.state.iconPack=t)}tChanged(t){this.peerStore&&(this.peerStore.state.t=t)}configChanged(t){this.peerStore&&(this.peerStore.state.config=t),(null==t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||g).state.states.activeDebugger&&h(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=n(Object.assign({},p),t))}render(){return this.meeting?o(r,null,o("slot",null)):null}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));overflow:hidden;position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);height:100%;width:100%}:host([mode='fill']){position:relative}"}},[260,"rtk-ui-provider",{meeting:[16],iconPack:[16],t:[16],config:[16],mode:[513],showSetupScreen:[4,"show-setup-screen"],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-ui-provider"].forEach((e=>{"rtk-ui-provider"===e&&(customElements.get(t(e))||customElements.define(t(e),f))}))}k();const v=f,C=k;export{v as RtkUiProvider,C as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as r,d as
|
|
1
|
+
import{p as t,H as e,h as r,d as o,t as a}from"./p-BBHQOrFK.js";import{c as i,e as s,i as c}from"./p-DhwysA2e.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-bRRQr4xn.js";import{d as p}from"./p-BueZc6Xo.js";var f=function(t,e,r,o){var a,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=i(),this.iconPack=s,this.t=c()}render(){return r(o,{key:"ac7096bd5df59387dcef15bbd4ef8955a4a42298"},r("slot",{key:"6dd0f5b9555c956c1371311ef3c4ac8f661e9523"},r("div",{key:"07925b636545e1196b10512cd504516df2cfbbf4",class:"centered",part:"content"},r("rtk-logo",{key:"9b3fcf182d7c68aaf525a8170dbab9e59fc40404",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),r("p",{key:"763a6403bc98a16f020101090bbed250041ae7cd"},this.t("waitlist.body_text")))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}"}},[257,"rtk-waiting-screen",{meeting:[16],config:[16],iconPack:[16],t:[16]}]);function l(){"undefined"!=typeof customElements&&["rtk-waiting-screen","rtk-logo"].forEach((t=>{switch(t){case"rtk-waiting-screen":customElements.get(a(t))||customElements.define(a(t),d);break;case"rtk-logo":customElements.get(a(t))||p()}}))}f([n()],d.prototype,"meeting",void 0),f([n()],d.prototype,"config",void 0),f([n()],d.prototype,"iconPack",void 0),f([n()],d.prototype,"t",void 0),l();const g=d,m=l;export{g as RtkWaitingScreen,m as defineCustomElement}
|
|
@@ -96,6 +96,7 @@ class BreakoutRoomsManager {
|
|
|
96
96
|
* update a meeting's title
|
|
97
97
|
*/
|
|
98
98
|
updateMeetingTitle(meetingId, newTitle) {
|
|
99
|
+
__classPrivateFieldSet(this, _BreakoutRoomsManager_hasLocalChanges, true, "f");
|
|
99
100
|
__classPrivateFieldGet(this, _BreakoutRoomsManager_allMeetingsMap, "f").get(meetingId).title = newTitle;
|
|
100
101
|
if (!isDraftRoom(meetingId)) {
|
|
101
102
|
__classPrivateFieldGet(this, _BreakoutRoomsManager_meetingsToUpdate, "f").add(meetingId);
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BreakoutRoomsManager } from './breakout-rooms-manager-
|
|
1
|
+
export { B as BreakoutRoomsManager } from './breakout-rooms-manager-DOKq3YH6.js';
|
|
2
2
|
export { p as provideRtkDesignSystem } from './merge-BWjuIacB.js';
|
|
3
3
|
import { g as generateConfig } from './config-wP0cqv4b.js';
|
|
4
4
|
export { e as extendConfig } from './config-wP0cqv4b.js';
|