-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpoll.js
1 lines (1 loc) · 1.55 KB
/
poll.js
1
import{c as t,aV as e,_ as a,b7 as r,b as n,j as o,b9 as i,F as s,ba as l,t as u,bb as c,bc as p,bd as d,be as h}from"./lib/__bundle-558e2a0e.js";export{av as Poll,G as PollListQuery,bf as PollOption,bg as PollStatus,aQ as PollVoteEvent,H as PollVoterListQuery}from"./lib/__bundle-558e2a0e.js";export{P as PollUpdateEvent}from"./lib/__bundle-acd77193.js";var b=function(r){function b(){var t=null!==r&&r.apply(this,arguments)||this;return t.name="poll",t}return t(b,r),b.prototype.init=function(t,a){var n=a.sdkState,o=a.dispatcher,i=a.sessionManager,s=a.requestQueue,l=a.logger,u=a.onlineDetector,c=a.cacheContext;r.prototype.init.call(this,t,{sdkState:n,dispatcher:o,sessionManager:i,requestQueue:s,logger:l,onlineDetector:u,cacheContext:c}),this._manager=new e(t,{sdkState:n,dispatcher:o,sessionManager:i,requestQueue:s,logger:l,onlineDetector:u,cacheContext:c})},b.prototype.create=function(t){return a(this,void 0,void 0,(function(){var e;return n(this,(function(a){return e=o(o({},i),t),s(l(e)).throw(u.invalidParameters),[2,this._manager.create(e)]}))}))},b.prototype.get=function(t){return a(this,void 0,void 0,(function(){var e;return n(this,(function(a){return e=o(o({},c),t),s(p(e)).throw(u.invalidParameters),[2,this._manager.get(e)]}))}))},b.prototype.getOption=function(t){return a(this,void 0,void 0,(function(){var e;return n(this,(function(a){return e=o(o({},d),t),s(h(e)).throw(u.invalidParameters),[2,this._manager.getOption(e)]}))}))},b.prototype.buildPollFromSerializedData=function(t){return this._manager.buildPollFromSerializedData(t)},b}(r);export{b as PollModule};