1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[2249,1368],{2249:function(t,i,n){n.r(i),n.d(i,{dyte_simple_grid:function(){return d}});var e=n(5671),s=n(3144),o=n(2304),h=n(2725),r=n(5855),a=n(7622),c=n(210),u=n(1512),p=n(5769),d=function(){function t(i){var n=this;(0,e.Z)(this,t),(0,o.r)(this,i),this.setHostDimensions=function(){var t=n.host,i=t.clientWidth,e=t.clientHeight;n.dimensions={width:i,height:e}},this.participants=[],this.aspectRatio="16:9",this.gap=8,this.size=void 0,this.meeting=void 0,this.states=void 0,this.config=h.d,this.iconPack=r.d,this.t=(0,a.u)(),this.dimensions={width:0,height:0}}return(0,s.Z)(t,[{key:"connectedCallback",value:function(){this.resizeObserver=new p.i(this.setHostDimensions),this.resizeObserver.observe(this.host)}},{key:"disconnectedCallback",value:function(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}},{key:"render",value:function(){var t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},i=(0,u.u)({dimensions:this.dimensions,count:this.participants.length,aspectRatio:this.aspectRatio,gap:this.gap}),n=i.width,e=i.height,s=i.getPosition;return(0,o.h)(o.H,null,this.participants.map((function(i,h){var r=s(h),a=r.top,u=r.left;return(0,o.h)(c.R,{element:"dyte-participant-tile",defaults:t,props:{participant:i,style:{position:"absolute",top:"".concat(a,"px"),left:"".concat(u,"px"),width:"".concat(n,"px"),height:"".concat(e,"px")},key:i.id,"data-participant":i.id},childProps:{participant:i},deepProps:!0})})),(0,o.h)("slot",null))}},{key:"host",get:function(){return(0,o.g)(this)}}]),t}();d.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);position:relative;display:block;height:100%;width:100%}"},1512:function(t,i,n){n.d(i,{d:function(){return h},u:function(){return s}});var e=n(9439);function s(t){var i=t.dimensions,n=t.count,e=t.aspectRatio,s=t.gap,h=function(t){var i=t.count,n=t.dimensions,e=t.aspectRatio,s=t.gap,h=n.width,r=n.height;if(0===h||0===r)return{width:0,height:0,rows:1,cols:1};h-=2*s,r-=2*s;for(var a=s,c=i,u=o(e),p=0,d=0,l=1,f=1,g=[],v=1;v<=c;v++)g.push((h-a*(v-1))/v),g.push((r-a*(v-1))/(v*u));g.sort((function(t,i){return i-t}));for(var m=0,w=g;m<w.length;m++){if(d=(p=w[m])*u,(l=Math.floor((h+a)/(p+a)))*(f=Math.floor((r+a)/(d+a)))>=c){f=Math.ceil(c/l);break}}return{width:p,height:d,rows:f,cols:l}}({dimensions:i,count:n,aspectRatio:e,gap:s}),r=h.width,a=h.height,c=function(t){var i=t.parentDimensions,n=t.dimensions,e=t.rows,s=t.cols,o=t.count,h=t.gap,r=i.width,a=i.height,c=n.width,u=n.height,p=(a-(u*e+(e-1)*h))/2,d=(r-(c*s+(s-1)*h))/2,l=u+h,f=c+h,g=0,v=0,m=o%s;function w(t){var i=o-t;i===m&&(d=(r-(c*i+(i-1)*h))/2);var n=p+v*l,e=d+g*f;return g++,(t+1)%s===0&&(v++,g=0),{top:n,left:e}}return w}({parentDimensions:i,dimensions:{width:r,height:a},rows:h.rows,cols:h.cols,count:n,gap:s});return{width:r,height:a,getPosition:c}}var o=function(t){var i=t.split(":"),n=(0,e.Z)(i,2),s=n[0],o=n[1];return Number.parseInt(o)/Number.parseInt(s)},h={spotlight:"sm",mixed:"sm"}}}]); 2//# sourceMappingURL=2249.91304252.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.