uapp-communication-sdk 1.0.0-dev.96 → 1.0.0-dev.98
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/communication-sdk.cjs +1 -1
- package/communication-sdk.js +1 -1
- package/communication-sdk.standalone.js +3 -3
- package/package.json +1 -1
- package/{realtimekit-call-media-Bw4ob8QT.cjs → realtimekit-call-media-BFMvEuy1.cjs} +2 -2
- package/{realtimekit-call-media-DMA0v3F5.js → realtimekit-call-media-BpK8rwUl.js} +14 -4
- package/types/features/calls/presentation/media/realtimekit-call-media.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1025,5 +1025,5 @@ header h3 {
|
|
|
1025
1025
|
`,Nre=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},q9=class{constructor(e){z(this,e),this.tabChange=U(this,`tabChange`,7),this.sidebarClose=U(this,`sidebarClose`,7),this.view=`sidebar`,this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=K,this.focusCloseButton=!0,this.t=G(),this.onClose=()=>{this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&document.activeElement.tagName?.includes(`RTK-`)&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}componentDidLoad(){this.keydownListener=e=>{e.key===`Escape`&&this.onClose()},this.hostEl.addEventListener(`keydown`,this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){this.currentTab!==`chat`&&!this.hideCloseAction&&this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener(`keydown`,this.keydownListener)}render(){let e=this.view===`full-screen`,t=this.tabs.find(e=>e.id===this.currentTab);return V(H,{key:`239f279ceccceeaa57181d4a71f3e04ede4132ce`,ref:e=>this.hostEl=e,class:this.view},!this.hideCloseAction&&V(`rtk-button`,{key:`921847fd946de305dce6f1fc7fe8a9ff175e38ee`,ref:e=>this.closeButton=e,variant:`ghost`,kind:`icon`,class:`close`,onClick:this.onClose,"aria-label":this.t(`close`)},V(`rtk-icon`,{key:`1de9f1edf8ecce2d0390b7b8a1253de02affd9d1`,icon:this.iconPack.dismiss})),t&&!this.hideHeader&&V(`header`,{key:`4cd288feeb658e62d3ad1efd47aea237119918e1`,class:`main-header`},V(`h3`,{key:`d6c4129537b4e090f3c429c66057be9a1072a864`},t.name),V(`slot`,{key:`dfb1ea30cfa476b515a3a4b628c036083f1fe0a5`,name:`pinned-state`})),e&&V(`header`,{key:`7dafb426628960ba26718530417854a533de3664`,class:`mobile-tabs`},this.tabs.map(e=>V(`button`,{onClick:()=>{this.tabChange.emit(e.id)},class:{active:this.currentTab===e.id}},e.name))),V(`slot`,{key:`2696ccd9fcad418ad7738164cd5a9e6305320899`,name:this.currentTab}))}static get watchers(){return{currentTab:[`handleFocusCloseButton`]}}};Nre([q()],q9.prototype,`t`,void 0),q9.style=Mre;var Pre=Object.freeze({__proto__:null,rtk_sidebar_ui:q9}),Fre=`: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{font-size:12px}#sync-button{flex-direction:row;border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-1, 4px);display:flex;align-items:center;justify-content:center;margin-bottom:var(--rtk-space-1, 4px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) rtk-tooltip,:host([size='md']) rtk-tooltip{width:100%}:host([size='sm'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px);padding-left:var(--rtk-space-0, 0px)}:host([size='md'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}:host([size='lg'])>#sync-button{flex-direction:row;height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}@media (orientation: portrait){:host([size='lg']) #sync-button{flex-direction:column-reverse;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='md']) #sync-button{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='sm']) #sync-button{height:var(--rtk-space-10, 40px);width:var(--rtk-space-16, 64px);flex-direction:row}}#sync-button>rtk-icon{max-height:14px}#sync-button rtk-icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']) #sync-button>rtk-icon{width:auto}#sync-button.active rtk-icon{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}div{align-content:center;line-height:2rem}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-8, 32px)}#sync-button.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity))}`,J9=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Y9=class{constructor(e){z(this,e),this.iconPack=K,this.t=G(),this.permissionsUpdateListener=()=>{this.canSpotlight=this.meeting.self.permissions.canSpotlight}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var e;(e=this.meeting)==null||e.self.permissions.removeListener(`permissionsUpdate`,this.permissionsUpdateListener)}meetingChanged(e){e!=null&&(this.canSpotlight=e.self.permissions.canSpotlight,this.isSpotlighted=e.meta?.broadcastTabChanges??!1,e.self.permissions.addListener(`permissionsUpdate`,this.permissionsUpdateListener))}updateSpotlightState(e){var t;try{(t=this.meeting.meta)==null||t.setBroadcastTabChanges(e),this.isSpotlighted=e}catch(e){console.error(e)}}render(){if(this.canSpotlight)return V(H,null,V(`rtk-tooltip`,{size:`md`,label:this.t(`remote_access.indicator`)},V(`div`,{id:`sync-button`,class:{tab:!0,active:this.isSpotlighted},onClick:()=>this.updateSpotlightState(!this.isSpotlighted)},V(`span`,{class:`name`},`Sync`),V(`rtk-icon`,{id:`icon`,icon:this.isSpotlighted?this.iconPack.checkmark:this.iconPack.warning,tabIndex:-1,"aria-hidden":!0}))))}static get watchers(){return{meeting:[`meetingChanged`]}}};J9([q()],Y9.prototype,`meeting`,void 0),J9([q()],Y9.prototype,`iconPack`,void 0),J9([q()],Y9.prototype,`t`,void 0),Y9.style=Fre;var Ire=Object.freeze({__proto__:null,rtk_spotlight_indicator:Y9}),Lre=`: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:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--rtk-colors-text-1000, 255 255 255));height:100%;width:auto}svg,img{height:100%;width:auto}.brand-color{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}`,X9=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Z9=class{constructor(e){z(this,e),this.config=_R(),this.t=G()}connectedCallback(){this.configChanged(this.config),this.meetingChanged(this.meeting)}configChanged(e){if(e!=null){let t=e?.designTokens?.logo;t!=null&&this.logoUrl==null&&(this.logoUrl=t)}}meetingChanged(e){if(e!=null){let t=e.self?.config?.header?.elements?.logo;t!=null&&this.logoUrl==null&&(this.logoUrl=t)}}render(){if(!this.logoUrl||this.logoUrl===``)return null;let e=this.logoUrl;return V(H,{class:`loaded`},V(`img`,{src:e,alt:this.t(`logo`)}))}static get watchers(){return{config:[`configChanged`],meeting:[`meetingChanged`]}}};X9([q()],Z9.prototype,`config`,void 0),X9([q()],Z9.prototype,`meeting`,void 0),X9([q()],Z9.prototype,`t`,void 0),Z9.style=Lre;var Rre=Object.freeze({__proto__:null,rtk_logo:Z9}),zre=`: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{--background-color:var(
|
|
1026
1026
|
--rtk-controlbar-button-background-color,
|
|
1027
1027
|
rgb(var(--rtk-colors-background-1000, 8 8 8))
|
|
1028
|
-
);--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);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;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}`,Bre=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Q9=class{constructor(e){z(this,e),this.variant=`button`,this.showWarning=!1,this.disabled=!1,this.iconPack=K,this.brandIcon=!1}render(){return V(H,{key:`90cbc7f04dd7975ef7331aace992aeadd1fdba52`},V(`button`,{key:`36ea971cf7d69742346dd6a65b41ef57def59a40`,"aria-label":this.label,part:`button`},this.isLoading?V(`rtk-spinner`,{id:`icon`,part:`spinner`,iconPack:this.iconPack}):V(`rtk-icon`,{id:`icon`,icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:`icon`}),V(`span`,{key:`83dda2888c01eec119c1cc21921a682cc2111307`,class:`label`,part:`label`},this.label),this.showWarning&&V(`rtk-icon`,{key:`abddcd4d3c81f7ba09cc4595c98cb55c76d678ad`,id:`warning-indicator`,icon:this.iconPack.warning,part:`warning-indicator`})))}static get delegatesFocus(){return!0}};Bre([q()],Q9.prototype,`iconPack`,void 0),Q9.style=zre;var Vre=Object.freeze({__proto__:null,rtk_controlbar_button:Q9});(function(){if(typeof window<`u`&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})(),PN();var Hre=$O(`rtk-participants-audio`),$9=e.t(),Ure=({ticket:e,muted:n,onConnected:r,onEnded:i})=>{let[,a]=BO(),[o,s]=(0,t.useState)(void 0),c=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{c.current||(c.current=!0,a({authToken:e.token,defaults:{audio:!0,video:!1}}).then(async e=>{if(e===void 0){i();return}s(e);try{await e.joinRoom()}catch{i()}}).catch(()=>{i()}))},[a,e.token,i]),(0,t.useEffect)(()=>{if(o===void 0)return;let e=()=>{r?.()},t=()=>{i()};return o.self.on(`roomJoined`,e),o.self.on(`roomLeft`,t),()=>{o.self.off(`roomJoined`,e),o.self.off(`roomLeft`,t)}},[o,r,i]),(0,t.useEffect)(()=>{o!==void 0&&(n?o.self.disableAudio():o.self.enableAudio()).catch(()=>void 0)},[o,n]),(0,t.useEffect)(()=>{if(o!==void 0)return()=>{o.leaveRoom().catch(()=>void 0)}},[o]),o===void 0?(0,$9.jsx)($9.Fragment,{}):(0,$9.jsx)(zO,{value:o,children:(0,$9.jsx)(Hre,{meeting:o})})};exports.RealtimeKitCallMedia=
|
|
1029
|
-
//# sourceMappingURL=realtimekit-call-media-
|
|
1028
|
+
);--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);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;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}`,Bre=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Q9=class{constructor(e){z(this,e),this.variant=`button`,this.showWarning=!1,this.disabled=!1,this.iconPack=K,this.brandIcon=!1}render(){return V(H,{key:`90cbc7f04dd7975ef7331aace992aeadd1fdba52`},V(`button`,{key:`36ea971cf7d69742346dd6a65b41ef57def59a40`,"aria-label":this.label,part:`button`},this.isLoading?V(`rtk-spinner`,{id:`icon`,part:`spinner`,iconPack:this.iconPack}):V(`rtk-icon`,{id:`icon`,icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:`icon`}),V(`span`,{key:`83dda2888c01eec119c1cc21921a682cc2111307`,class:`label`,part:`label`},this.label),this.showWarning&&V(`rtk-icon`,{key:`abddcd4d3c81f7ba09cc4595c98cb55c76d678ad`,id:`warning-indicator`,icon:this.iconPack.warning,part:`warning-indicator`})))}static get delegatesFocus(){return!0}};Bre([q()],Q9.prototype,`iconPack`,void 0),Q9.style=zre;var Vre=Object.freeze({__proto__:null,rtk_controlbar_button:Q9});(function(){if(typeof window<`u`&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})(),PN();var Hre=$O(`rtk-participants-audio`),$9=e.t(),Ure=(e,n)=>{(0,t.useEffect)(()=>{if(e===void 0)return;let t=()=>{e.participants.joined.size===0&&n()};return e.participants.joined.on(`participantLeft`,t),()=>{e.participants.joined.off(`participantLeft`,t)}},[e,n])},Wre=({ticket:e,muted:n,onConnected:r,onEnded:i})=>{let[,a]=BO(),[o,s]=(0,t.useState)(void 0),c=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{c.current||(c.current=!0,a({authToken:e.token,defaults:{audio:!0,video:!1}}).then(async e=>{if(e===void 0){i();return}s(e);try{await e.joinRoom()}catch{i()}}).catch(()=>{i()}))},[a,e.token,i]),(0,t.useEffect)(()=>{if(o===void 0)return;let e=()=>{r?.()},t=()=>{i()};return o.self.on(`roomJoined`,e),o.self.on(`roomLeft`,t),()=>{o.self.off(`roomJoined`,e),o.self.off(`roomLeft`,t)}},[o,r,i]),Ure(o,i),(0,t.useEffect)(()=>{o!==void 0&&(n?o.self.disableAudio():o.self.enableAudio()).catch(()=>void 0)},[o,n]),(0,t.useEffect)(()=>{if(o!==void 0)return()=>{o.leaveRoom().catch(()=>void 0)}},[o]),o===void 0?(0,$9.jsx)($9.Fragment,{}):(0,$9.jsx)(zO,{value:o,children:(0,$9.jsx)(Hre,{meeting:o})})};exports.RealtimeKitCallMedia=Wre;
|
|
1029
|
+
//# sourceMappingURL=realtimekit-call-media-BFMvEuy1.cjs.map
|
|
@@ -59940,7 +59940,17 @@ var Jre = /*#__PURE__*/ Object.freeze({
|
|
|
59940
59940
|
}, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
|
|
59941
59941
|
}
|
|
59942
59942
|
})(), VN();
|
|
59943
|
-
var Yre = /*@__PURE__*/ ok("rtk-participants-audio"), $9 = r(), Xre = (
|
|
59943
|
+
var Yre = /*@__PURE__*/ ok("rtk-participants-audio"), $9 = r(), Xre = (e, t) => {
|
|
59944
|
+
c(() => {
|
|
59945
|
+
if (e === void 0) return;
|
|
59946
|
+
let n = () => {
|
|
59947
|
+
e.participants.joined.size === 0 && t();
|
|
59948
|
+
};
|
|
59949
|
+
return e.participants.joined.on("participantLeft", n), () => {
|
|
59950
|
+
e.participants.joined.off("participantLeft", n);
|
|
59951
|
+
};
|
|
59952
|
+
}, [e, t]);
|
|
59953
|
+
}, Zre = ({ ticket: e, muted: t, onConnected: n, onEnded: r }) => {
|
|
59944
59954
|
let [, i] = qO(), [a, o] = u(void 0), s = l(!1);
|
|
59945
59955
|
return c(() => {
|
|
59946
59956
|
s.current || (s.current = !0, i({
|
|
@@ -59981,7 +59991,7 @@ var Yre = /*@__PURE__*/ ok("rtk-participants-audio"), $9 = r(), Xre = ({ ticket:
|
|
|
59981
59991
|
a,
|
|
59982
59992
|
n,
|
|
59983
59993
|
r
|
|
59984
|
-
]), c(() => {
|
|
59994
|
+
]), Xre(a, r), c(() => {
|
|
59985
59995
|
a !== void 0 && (t ? a.self.disableAudio() : a.self.enableAudio()).catch(() => void 0);
|
|
59986
59996
|
}, [a, t]), c(() => {
|
|
59987
59997
|
if (a !== void 0) return () => {
|
|
@@ -59993,6 +60003,6 @@ var Yre = /*@__PURE__*/ ok("rtk-participants-audio"), $9 = r(), Xre = ({ ticket:
|
|
|
59993
60003
|
});
|
|
59994
60004
|
};
|
|
59995
60005
|
//#endregion
|
|
59996
|
-
export {
|
|
60006
|
+
export { Zre as RealtimeKitCallMedia };
|
|
59997
60007
|
|
|
59998
|
-
//# sourceMappingURL=realtimekit-call-media-
|
|
60008
|
+
//# sourceMappingURL=realtimekit-call-media-BpK8rwUl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtimekit-call-media.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/calls/presentation/media/realtimekit-call-media.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"realtimekit-call-media.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/calls/presentation/media/realtimekit-call-media.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAoCzD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,0CAKlC,cAAc,KAAG,YAgFnB,CAAC"}
|