1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1421],{1421:function(e,t,n){n.r(t),n.d(t,{dyte_sidebar:function(){return f}});var r=n(5671),i=n(3144),o=n(2304),a=n(5855),s=n(7622),l=n(210),c=n(2725),u=n(2274),d=n(6311),f=(n(5231),function(){function e(t){var n=this;(0,r.Z)(this,e),(0,o.r)(this,t),this.stateUpdate=(0,o.c)(this,"dyteStateUpdate",7),this.close=function(){n.stateUpdate.emit({activeSidebar:!1,sidebar:n.defaultSection}),u.s.sidebar=n.tab},this.enabledSections=["none"],this.defaultSection="chat",this.meeting=void 0,this.states=void 0,this.config=c.d,this.iconPack=a.d,this.t=(0,s.u)(),this.size=void 0,this.view="default",this.tab=this.defaultSection}return(0,i.Z)(e,[{key:"connectedCallback",value:function(){var e=this;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),(0,u.o)("sidebar",(function(){return e.statesChanged()}))}},{key:"disconnectedCallback",value:function(){var e,t;this.keydownListener&&document.removeEventListener("keydown",this.keydownListener),null===(t=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.updateEnabledSections)}},{key:"meetingChanged",value:function(e){var t,n;this.updateEnabledSections(e),null===(n=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===n||n.on("stageStatusUpdate",this.updateEnabledSections)}},{key:"statesChanged",value:function(e){var t=e||u.s;null!=(null===t||void 0===t?void 0:t.sidebar)&&(this.tab=t.sidebar)}},{key:"viewChanged",value:function(e){var t=this;"full-screen"===e&&(this.keydownListener=function(e){"Escape"===e.key&&t.close()},document.addEventListener("keydown",this.keydownListener))}},{key:"filterSections",value:function(e){if(!this.meeting.self.config)return e;var t=this.meeting.self.config;return e.filter((function(e){return t.controlBar.elements[e]}))}},{key:"viewSection",value:function(e){this.tab=e,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.tab}),u.s.activeSidebar=!0,u.s.sidebar=this.tab}},{key:"updateEnabledSections",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.meeting,t=["none"];(0,d.c)(e)&&t.push("chat"),(0,d.a)(e)&&t.push("participants"),(0,d.b)(e)&&t.push("plugins"),(0,d.d)(e)&&t.push("polls"),this.enabledSections=t}},{key:"render",value:function(){var e,t=this,n={meeting:this.meeting,config:this.config,states:this.states||u.s,size:this.size,t:this.t,iconPack:this.iconPack};return!1===(null===(e=this.states)||void 0===e?void 0:e.activeSidebar)||"none"===this.tab?null:(0,o.h)(o.H,null,"full-screen"===this.view&&[(0,o.h)("h3",{class:"title"},this.t("About Call")),(0,o.h)("div",{id:"mobile-header"},this.filterSections(this.enabledSections).map((function(e){return(0,o.h)("dyte-button",{key:e,variant:"ghost",class:{active:t.tab===e},onClick:function(){return t.viewSection(e)},iconPack:t.iconPack,t:t.t},t.t(e))})))],(0,o.h)("dyte-button",{variant:"ghost",kind:"icon",class:"close",onClick:this.close,"aria-label":this.t("Close"),iconPack:this.iconPack,t:this.t},(0,o.h)("dyte-icon",{icon:this.iconPack.dismiss,iconPack:this.iconPack,t:this.t})),"full-screen"!==this.view&&(0,o.h)("h3",{class:"title"},this.t(this.tab)),"chat"===this.tab&&(0,o.h)(l.R,{element:"dyte-chat",defaults:n}),"polls"===this.tab&&(0,o.h)(l.R,{element:"dyte-polls",defaults:n}),"participants"===this.tab&&(0,o.h)(l.R,{element:"dyte-participants",defaults:n}),"plugins"===this.tab&&(0,o.h)(l.R,{element:"dyte-plugins",defaults:n}))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"],states:["statesChanged"],view:["viewChanged"]}}}]),e}());f.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);position:relative;box-sizing:border-box;display:flex;width:100%;max-width:var(--dyte-space-80, 320px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--dyte-colors-text-1000, 255 255 255));overflow:hidden}.close{position:absolute;top:var(--dyte-space-3, 12px);left:var(--dyte-space-3, 12px)}.title{margin-left:var(--dyte-space-0, 0px);margin-right:var(--dyte-space-0, 0px);margin-top:var(--dyte-space-5, 20px);margin-bottom:var(--dyte-space-5, 20px);-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:var(--dyte-space-0, 0px);text-align:center;font-size:16px;font-weight:400}#mobile-header{margin-top:var(--dyte-space-2, 8px);display:flex;align-items:center;justify-content:space-evenly;border-bottom:var(--dyte-border-width-sm, 1px) solid rgb(var(--dyte-colors-background-600, 60 60 60))}#mobile-header dyte-button{border-bottom:var(--dyte-border-width-md, 2px) solid transparent;border-radius:var(--dyte-border-radius-none, 0)}#mobile-header dyte-button:hover{background-color:transparent}#mobile-header dyte-button.active{border-color:rgb(var(--dyte-colors-brand-400, 53 110 253))}dyte-chat,dyte-participants,dyte-plugins{flex:1}:host([view='sidebar']){margin-left:var(--dyte-space-2, 8px);margin-right:var(--dyte-space-2, 8px);border-radius:var(--dyte-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}
1:host([view='full-screen']){position:absolute;top:var(--dyte-space-0, 0px);right:var(--dyte-space-0, 0px);bottom:var(--dyte-space-0, 0px);left:var(--dyte-space-0, 0px);z-index:50;max-width:100%;border:none}"},210:function(e,t,n){n.d(t,{R:function(){return l}});var r=n(9439),i=n(3433),o=n(7762),a=n(2304),s=function(e){var t=e.elements,n=e.defaults,r=e.props,i=void 0===r?{}:r,o=e.deepProps,s=void 0!==o&&o,c=e.elementProps,u=void 0===c?{}:c;return Array.isArray(t)&&0!==t.length?t.map((function(e){return(0,a.h)(l,{element:e,defaults:n,props:i,childProps:s&&i,elementProps:u})})):null},l=function(e,t){var n,l,c=e.element,u=e.defaults,d=e.childProps,f=void 0===d?{}:d,v=e.props,p=void 0===v?{}:v,h=e.onlyChildren,y=void 0!==h&&h,g=e.asHost,E=void 0!==g&&g,A=e.deepProps,b=void 0!==A&&A,m=e.elementProps,P=void 0===m?{}:m,T=u.config,C=u.size,R=u.states,k={};if(Array.isArray(c)){var S=(0,r.Z)(c,2);l=S[0],k=S[1]}else l=c;var L=null===(n=null===T||void 0===T?void 0:T.root)||void 0===n?void 0:n[l];null!=L&&"props"in L&&(p=Object.assign(Object.assign({},L.props),p)),p=Object.assign(Object.assign({},p),k),l in P&&(p=Object.assign(Object.assign({},p),P[l]));var O=function(e){var t=e.element,n=e.size,r=e.states,a=void 0===r?{}:r,s=e.config,l=void 0===s?{}:s,c=[],u=null===l||void 0===l?void 0:l.root[t],d=function(e){c.push(e),"string"===typeof n&&c.push("".concat(e,".").concat(n))};if(d(t),"object"===typeof u&&!Array.isArray(u)&&null!==u){var f=u.state,v=u.states,p=t,h=[];if(Array.isArray(v)){h=v.filter((function(e){return a[e]})),h.sort();var y,g=(0,o.Z)(h);try{for(g.s();!(y=g.n()).done;){var E=y.value;d("".concat(p,".").concat(E))}}catch(T){g.e(T)}finally{g.f()}h.length>1&&d([p].concat((0,i.Z)(h)).join("."))}if("string"===typeof f){var A="".concat(t,"[").concat(f,"=").concat(a[f],"]");d(A);var b,m=(0,o.Z)(h);try{for(m.s();!(b=m.n()).done;){var P=b.value;d("".concat(A,".").concat(P))}}catch(T){m.e(T)}finally{m.f()}h.length>1&&d([A].concat((0,i.Z)(h)).join("."))}}return c}({element:l,size:C,states:R,config:T}),w=function(e){var t=e.selectors,n=e.root;if(!n||!Array.isArray(t))return[];var a,s=[],l=(0,o.Z)(t);try{for(l.s();!(a=l.n()).done;){var c=n[a.value];if(Array.isArray(c))s=(0,i.Z)(c);else if(c){if(c.children&&(s=(0,i.Z)(c.children)),Array.isArray(c.remove)){var u,d=(0,o.Z)(c.remove);try{var f=function(){var e=u.value;s=s.filter((function(t){return"string"===typeof t?t!==e:!Array.isArray(t)||t[0]!==e}))};for(d.s();!(u=d.n()).done;)f()}catch(y){d.e(y)}finally{d.f()}}if(c.addBefore)for(var v=function(){var e,t=(0,r.Z)(h[p],2),n=t[0],o=t[1],a=s.findIndex((function(e){return"string"===typeof e?e===n:!!Array.isArray(e)&&e[0]===n}));a>=0&&(e=s).splice.apply(e,[a,0].concat((0,i.Z)(o)))},p=0,h=Object.entries(c.addBefore);p<h.length;p++)v();Array.isArray(c.add)&&(s=s.concat(c.add)),Array.isArray(c.prepend)&&(s=c.prepend.concat(s))}}}catch(y){l.e(y)}finally{l.f()}return s}({selectors:O,root:T.root});if(y)return(0,a.h)(s,{elements:w,defaults:u,props:f,deepProps:b,elementProps:P});var _=function(e){var t=e.selectors,n=e.styles;if(!Array.isArray(t)||null==n)return{};var r,i={},a=(0,o.Z)(t);try{for(a.s();!(r=a.n()).done;){var s=n[r.value];null!=s&&Object.assign(i,s)}}catch(l){a.e(l)}finally{a.f()}return i}({selectors:O,styles:T.styles});if(E)return(0,a.h)(a.H,Object.assign({},u,{style:_},p),(0,a.h)(s,{elements:w,defaults:u,props:f,deepProps:b,elementProps:P}),t);if(["dyte-header","dyte-controlbar"].includes(l)&&(p.disableRender=!0),l.startsWith("dyte-"))return(0,a.h)(l,Object.assign({},u,{style:_},p),(0,a.h)(s,{elements:w,defaults:u,props:f,deepProps:b,elementProps:P}),t);var D=l.split("#"),x=(0,r.Z)(D,2),N=x[0],I=x[1];return(0,a.h)(N,{id:I,style:_},(0,a.h)(s,{elements:w,defaults:u,props:f,deepProps:b,elementProps:P}),t)}},5231:function(e,t,n){n.d(t,{P:function(){return r},a:function(){return a},b:function(){return d},c:function(){return u},d:function(){return i},e:function(){return l},f:function(){return c},i:function(){return o},s:function(){return s}});var r,i,o=function(e){return!!s(e)&&("LIVESTREAM"===e.meta.viewType&&"ON_STAGE"!==e.stage.status)},a=function(e){var t;
1return!!s(e)&&("LIVESTREAM"===e.meta.viewType&&(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.canLivestream))},s=function(e){var t;return(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.isV2)&&(null===e||void 0===e?void 0:e.livestream)};!function(e){e.BUFFERING="Buffering",e.ENDED="Ended",e.IDLE="Idle",e.PLAYING="Playing",e.READY="Ready"}(r||(r={})),function(e){e.INITIALIZED="PlayerInitialized",e.QUALITY_CHANGED="PlayerQualityChanged",e.DURATION_CHANGED="PlayerDurationChanged",e.VOLUME_CHANGED="PlayerVolumeChanged",e.MUTED_CHANGED="PlayerMutedChanged",e.PLAYBACK_RATE_CHANGED="PlayerPlaybackRateChanged",e.REBUFFERING="PlayerRebuffering",e.AUDIO_BLOCKED="PlayerAudioBlocked",e.PLAYBACK_BLOCKED="PlayerPlaybackBlocked",e.ERROR="PlayerError",e.RECOVERABLE_ERROR="PlayerRecoverableError",e.ANALYTICS_EVENT="PlayerAnalyticsEvent",e.TIME_UPDATE="PlayerTimeUpdate",e.BUFFER_UPDATE="PlayerBufferUpdate",e.SEEK_COMPLETED="PlayerSeekCompleted",e.SESSION_DATA="PlayerSessionData",e.STATE_CHANGED="PlayerStateChanged",e.WORKER_ERROR="PlayerWorkerError",e.METADATA="PlayerMetadata",e.TEXT_CUE="PlayerTextCue",e.TEXT_METADATA_CUE="PlayerTextMetadataCue",e.AD_CUE="PlayerAdCue",e.STREAM_SOURCE_CUE="PlayerStreamSourceCue",e.NETWORK_UNAVAILABLE="PlayerNetworkUnavailable",e.SEGMENT_DISCONTINUITY="PlayerSegmentDiscontinuity",e.SEGMENT_METADATA="PlayerSegmentMetadata",e.PLAYER_METADATA="PlayerMetadata"}(i||(i={}));var l=[i.TIME_UPDATE,i.BUFFER_UPDATE,i.TEXT_METADATA_CUE,i.PLAYER_METADATA],c=[i.REBUFFERING,i.AUDIO_BLOCKED,i.PLAYBACK_BLOCKED,i.ERROR,i.RECOVERABLE_ERROR,i.WORKER_ERROR,i.NETWORK_UNAVAILABLE,i.ANALYTICS_EVENT,i.PLAYBACK_RATE_CHANGED,i.QUALITY_CHANGED,i.INITIALIZED],u=function(e){var t,n,r,i,o,a;return!!s(e)&&("ALLOWED"===(null===(n=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===n?void 0:n.canProduceAudio)||"ALLOWED"===(null===(i=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===i?void 0:i.canProduceScreenshare)||"ALLOWED"===(null===(a=null===(o=null===e||void 0===e?void 0:e.self)||void 0===o?void 0:o.permissions)||void 0===a?void 0:a.canProduceVideo))},d=function(e){var t,n,r,i,o,a,l,c;return!!s(e)&&("NOT_ALLOWED"!==(null===(n=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===n?void 0:n.canProduceAudio)||"NOT_ALLOWED"!==(null===(i=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===i?void 0:i.canProduceScreenshare)||"NOT_ALLOWED"!==(null===(a=null===(o=null===e||void 0===e?void 0:e.self)||void 0===o?void 0:o.permissions)||void 0===a?void 0:a.canProduceVideo)||(null===(c=null===(l=null===e||void 0===e?void 0:e.self)||void 0===l?void 0:l.permissions)||void 0===c?void 0:c.canLivestream))}},6311:function(e,t,n){n.d(t,{a:function(){return a},b:function(){return s},c:function(){return i},d:function(){return o}});var r=n(5231),i=function(e){if(e&&!e.chat)return!1;var t=null===e||void 0===e?void 0:e.self.config;if(t&&!t.controlBar.elements.chat)return!1;var n=e.self.permissions,r=n.chatPublic,i=n.chatPrivate;return r.canSend||r.text||r.files||i.canSend||i.canReceive||i.files||i.text},o=function(e){if(e&&!e.polls)return!1;var t=null===e||void 0===e?void 0:e.self.config;if(t&&!t.controlBar.elements.polls)return!1;var n=e.self.permissions.polls;return n.canCreate||n.canView||n.canVote},a=function(e){var t,n;if((0,r.s)(e)&&!(null===(t=e.self.permissions)||void 0===t?void 0:t.acceptPresentRequests))return!1;if(e&&!e.participants)return!1;if("LIVESTREAM"===e.meta.viewType)return e.self.permissions.acceptPresentRequests||"ON_STAGE"===(null===(n=null===e||void 0===e?void 0:e.stage)||void 0===n?void 0:n.status);var i=null===e||void 0===e?void 0:e.self.config;return!(i&&!i.controlBar.elements.participants)},s=function(e){if((0,r.i)(e))return!1;if(e&&!e.plugins)return!1;if("LIVESTREAM"===e.meta.viewType)return"ON_STAGE"===e.stage.status;var t=null===e||void 0===e?void 0:e.self.config;if(t&&!t.controlBar.elements.plugins)return!1;var n=e.self.permissions.plugins;return n.canClose||n.canStart}},2274:function(e,t,n){n.d(t,{o:function(){return d},s:function(){return u}});var r=n(7762),i=n(2304),o=function(e){return!("isConnected"in e)||e.isConnected},a=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){n=0,e.apply(void 0,i)}),t)}}((function(e){var t,n=(0,r.Z)(e.keys());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.set(i,e.get(i).filter(o))}}catch(a){n.e(a)}finally{n.f()}}),2e3),s=function(e){return"function"===typeof e?e():e},l=function(e,t){var n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.length--)},c=function(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return e!==t},n=s(e),r=new Map(Object.entries(null!==n&&void 0!==n?n:{})),i={dispose:[],get:[],set:[],reset:[]},o=function(){var t;r=new Map(Object.entries(null!==(t=s(e))&&void 0!==t?t:{})),i.reset.forEach((function(e){return e()}))},a=function(e){return i.get.forEach((function(t){return t(e)})),r.get(e)},c=function(e,n){var o=r.get(e);t(n,o,e)&&(r.set(e,n),i.set.forEach((function(t){return t(e,n,o)})))},u="undefined"===typeof Proxy?{}:new Proxy(n,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}},has:function(e,t){return r.has(t)},set:function(e,t,n){return c(t,n),!0}}),d=function(e,t){return i[e].push(t),function(){l(i[e],t)}};return{state:u,get:a,set:c,on:d,onChange:function(t,n){var r=d("set",(function(e,r){e===t&&n(r)})),i=d("reset",(function(){return n(s(e)[t])}));return function(){r(),i()}},use:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.set&&e.push(d("set",t.set)),t.get&&e.push(d("get",t.get)),t.reset&&e.push(d("reset",t.reset)),t.dispose&&e.push(d("dispose",t.dispose)),e}),[]);return function(){return r.forEach((function(e){return e()}))}},dispose:function(){i.dispose.forEach((function(e){return e()})),o()},reset:o,forceUpdate:function(e){var t=r.get(e);i.set.forEach((function(n){return n(e,t,t)}))}}}(e,t);return n.use(function(){if("function"!==typeof i.a)return{};var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var n=(0,i.a)();n&&function(e,t,n){var r=e.get(t);r?r.includes(n)||r.push(n):e.set(t,[n])}
1(e,t,n)},set:function(t){var n=e.get(t);n&&e.set(t,n.filter(i.f)),a(e)},reset:function(){e.forEach((function(e){return e.forEach(i.f)})),a(e)}}}()),n}({}),u=c.state,d=c.onChange}}]); 2//# sourceMappingURL=1421.3410132a.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.