1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8555,1790],{8555:function(t,e,n){n.r(e),n.d(e,{dyte_participant_setup:function(){return p}});var i=n(4942),r=n(4165),o=n(5861),a=n(5671),s=n(3144),d=n(2304),c=n(2274),u=n(5855),v=n(7622),f=n(2725),p=(n(4130),function(){function t(e){var n=this;(0,a.Z)(this,t),(0,d.r)(this,e),this.onVideoUpdate=function(t){n.videoState=t},this.onPinned=function(t){var e=t.isPinned;n.isPinned=e},this.videoState=void 0,this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.participant=void 0,this.states=void 0,this.config=f.d,this.variant="solid",this.size=void 0,this.iconPack=u.d,this.t=(0,v.u)()}return(0,s.Z)(t,[{key:"connectedCallback",value:function(){this.participantsChanged(this.participant)}},{key:"componentDidLoad",value:function(){this.videoStateChanged(this.videoState)}},{key:"disconnectedCallback",value:function(){null!=this.participant&&(this.participant.removeListener("videoUpdate",this.onVideoUpdate),this.participant.removeListener("pinned",this.onPinned),this.participant.removeListener("unpinned",this.onPinned))}},{key:"participantsChanged",value:function(){var t=(0,o.Z)((0,r.Z)().mark((function t(e){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null!=e&&(this.videoState={videoEnabled:e.videoEnabled,videoTrack:e.videoTrack},this.isPinned=e.isPinned,e.addListener("videoUpdate",this.onVideoUpdate),e.addListener("pinned",this.onPinned),e.addListener("unpinned",this.onPinned));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"videoStateChanged",value:function(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){var e=new MediaStream;e.addTrack(t.videoTrack),this.videoEl.srcObject=e}else this.videoEl.srcObject=void 0}},{key:"isMirrored",value:function(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){var e=this.states||c.s,n=null===(t=null===e||void 0===e?void 0:e.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"===typeof n)return n}return!1}},{key:"render",value:function(){var t,e,n,r,o=this;return(0,d.h)(d.H,null,(0,d.h)("video",{ref:function(t){return o.videoEl=t},class:(0,i.Z)({visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored()},null!==(r=null===(n=null===(e=this.config)||void 0===e?void 0:e.config)||void 0===n?void 0:n.videoFit)&&void 0!==r?r:"cover",!0),autoPlay:!0,playsInline:!0,muted:!0}),this.isPinned&&(0,d.h)("dyte-icon",{class:"pinned-icon",icon:this.iconPack.pin,"aria-label":this.t("Pinned"),iconPack:this.iconPack,t:this.t}),(0,d.h)("slot",null))}}],[{key:"watchers",get:function(){return{participant:["participantsChanged"],videoState:["videoStateChanged"]}}}]),t}());p.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--dyte-space-56, 224px);overflow:hidden;border-radius:var(--dyte-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--dyte-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--dyte-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(dyte-name-tag){left:var(--dyte-space-2, 8px);bottom:var(--dyte-space-2, 8px);height:var(--dyte-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--dyte-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(dyte-audio-visualizer){position:absolute;top:var(--dyte-space-2, 8px);right:var(--dyte-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--dyte-space-2, 8px)}:host([variant='gradient']) ::slotted(dyte-name-tag){bottom:var(--dyte-space-0, 0px);left:var(--dyte-space-0, 0px);
1display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--dyte-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--dyte-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--dyte-space-44, 176px)}}"},2274:function(t,e,n){n.d(e,{o:function(){return v},s:function(){return u}});var i=n(7762),r=n(2304),o=function(t){return!("isConnected"in t)||t.isConnected},a=function(t,e){var n;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){n=0,t.apply(void 0,r)}),e)}}((function(t){var e,n=(0,i.Z)(t.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value;t.set(r,t.get(r).filter(o))}}catch(a){n.e(a)}finally{n.f()}}),2e3),s=function(t){return"function"===typeof t?t():t},d=function(t,e){var n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},c=function(t,e){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return t!==e},n=s(t),i=new Map(Object.entries(null!==n&&void 0!==n?n:{})),r={dispose:[],get:[],set:[],reset:[]},o=function(){var e;i=new Map(Object.entries(null!==(e=s(t))&&void 0!==e?e:{})),r.reset.forEach((function(t){return t()}))},a=function(t){return r.get.forEach((function(e){return e(t)})),i.get(t)},c=function(t,n){var o=i.get(t);e(n,o,t)&&(i.set(t,n),r.set.forEach((function(e){return e(t,n,o)})))},u="undefined"===typeof Proxy?{}:new Proxy(n,{get:function(t,e){return a(e)},ownKeys:function(t){return Array.from(i.keys())},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}},has:function(t,e){return i.has(e)},set:function(t,e,n){return c(e,n),!0}}),v=function(t,e){return r[t].push(e),function(){d(r[t],e)}};return{state:u,get:a,set:c,on:v,onChange:function(e,n){var i=v("set",(function(t,i){t===e&&n(i)})),r=v("reset",(function(){return n(s(t)[e])}));return function(){i(),r()}},use:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.reduce((function(t,e){return e.set&&t.push(v("set",e.set)),e.get&&t.push(v("get",e.get)),e.reset&&t.push(v("reset",e.reset)),e.dispose&&t.push(v("dispose",e.dispose)),t}),[]);return function(){return i.forEach((function(t){return t()}))}},dispose:function(){r.dispose.forEach((function(t){return t()})),o()},reset:o,forceUpdate:function(t){var e=i.get(t);r.set.forEach((function(n){return n(t,e,e)}))}}}(t,e);return n.use(function(){if("function"!==typeof r.a)return{};var t=new Map;return{dispose:function(){return t.clear()},get:function(e){var n=(0,r.a)();n&&function(t,e,n){var i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])}(t,e,n)},set:function(e){var n=t.get(e);n&&t.set(e,n.filter(r.f)),a(t)},reset:function(){t.forEach((function(t){return t.forEach(r.f)})),a(t)}}}()),n}({}),u=c.state,v=c.onChange}}]); 2//# sourceMappingURL=8555.646dd5fd.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.