1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4604,1408],{1408:function(t,e,o){o.r(e),o.d(e,{dyte_polls:function(){return h}});var n=o(4165),r=o(5861),i=o(3433),l=o(5671),s=o(3144),a=o(2304),c=o(2725),d=o(5855),u=o(7622),p=(o(4130),o(1463)),h=function(){function t(e){var o=this;(0,l.Z)(this,t),(0,a.r)(this,e),this.onPollsUpdate=function(t){o.polls=(0,i.Z)(t.polls)},this.meeting=void 0,this.config=c.d,this.size=void 0,this.iconPack=d.d,this.t=(0,u.u)(),this.create=!1,this.polls=void 0}return(0,s.Z)(t,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"disconnectedCallback",value:function(){var t;null!=this.meeting&&(null===(t=this.meeting.polls)||void 0===t||t.removeListener("pollsUpdate",this.onPollsUpdate))}},{key:"meetingChanged",value:function(t){var e=this;void 0!=t&&(t&&!t.polls||(this.polls=(0,i.Z)(t.polls.items),t.polls.addListener("pollsUpdate",this.onPollsUpdate),this.onCreate=function(){var o=(0,r.Z)((0,n.Z)().mark((function o(r){return(0,n.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e.create=!1,o.next=3,t.polls.create(r.question,r.options,r.anonymous,r.hideVotes);case 3:case"end":return o.stop()}}),o)})));return function(t){return o.apply(this,arguments)}}(),this.onVote=function(){var e=(0,r.Z)((0,n.Z)().mark((function e(o,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.polls.vote(o,r);case 2:case"end":return e.stop()}}),e)})));return function(t,o){return e.apply(this,arguments)}}()))}},{key:"toggleCreateState",value:function(){this.create=!this.create}},{key:"componentDidRender",value:function(){(0,p.s)(this.pollEl)}},{key:"render",value:function(){var t=this;return(0,a.h)(a.H,null,(0,a.h)("div",{class:"ctr",part:"container"},(0,a.h)("div",{class:"polls-view scrollbar",ref:function(e){return t.pollEl=e},part:"polls"},this.polls.map((function(e){var o;return(0,a.h)("dyte-poll",{key:e.id,poll:e,onDyteVotePoll:function(e){t.onVote(e.detail.id,e.detail.index)},self:null===(o=t.meeting)||void 0===o?void 0:o.self.userId,iconPack:t.iconPack,t:t.t,permissions:t.meeting.self.permissions})})),this.create&&(0,a.h)("dyte-poll-form",{part:"poll-form",onDyteCreatePoll:function(e){t.onCreate(e.detail)},iconPack:this.iconPack,t:this.t})),this.meeting.self.permissions.polls.canCreate&&(0,a.h)("dyte-button",{kind:"wide",onClick:function(){return t.toggleCreateState()},variant:this.create?"secondary":"primary",part:"button",iconPack:this.iconPack,t:this.t},this.create?this.t("Cancel Poll Creation"):this.t("Create New Poll"))))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"]}}}]),t}();h.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--dyte-scrollbar-color, rgb(var(--dyte-colors-background-600, 60 60 60)))\n var(--dyte-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--dyte-space-1\\.5, 6px);width:var(--dyte-space-1\\.5, 6px);border-radius:9999px;background-color:var(--dyte-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--dyte-scrollbar-color, rgb(var(--dyte-colors-background-600, 60 60 60)))}:host{margin-top:var(--dyte-space-2, 8px);display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{box-sizing:border-box;padding:var(--dyte-space-3, 12px);padding-top:var(--dyte-space-0, 0px);display:flex;flex:1 1 0%;flex-direction:column}.polls-view{overflow-y:auto;flex:1 1 0%;flex-basis:0}"},1463:function(t,e,o){o.d(e,{s:function(){return n}});var n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null!=t&&t.scrollTo({top:t.scrollHeight,behavior:e?"smooth":"auto"})}}}]); 2//# sourceMappingURL=4604.16de3b0a.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.