-
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,aS as e,_ as r,b4 as a,b as n,j as o,b6 as i,y as s,b7 as l,t as u,b8 as c,b9 as p,ba as d,bb as h}from"./lib/__bundle-b6cf2704.js";export{as as Poll,z as PollListQuery,bc as PollOption,bd as PollStatus,aN as PollVoteEvent,B as PollVoterListQuery}from"./lib/__bundle-b6cf2704.js";export{P as PollUpdateEvent}from"./lib/__bundle-acd77193.js";var b=function(a){function b(){var t=null!==a&&a.apply(this,arguments)||this;return t.name="poll",t}return t(b,a),b.prototype.init=function(t,r){var n=r.sdkState,o=r.dispatcher,i=r.sessionManager,s=r.requestQueue,l=r.logger,u=r.onlineDetector,c=r.cacheContext;a.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 r(this,void 0,void 0,(function(){var e;return n(this,(function(r){return e=o(o({},i),t),s(l(e)).throw(u.invalidParameters),[2,this._manager.create(e)]}))}))},b.prototype.get=function(t){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){return e=o(o({},c),t),s(p(e)).throw(u.invalidParameters),[2,this._manager.get(e)]}))}))},b.prototype.getOption=function(t){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){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}(a);export{b as PollModule};