-
Notifications
You must be signed in to change notification settings - Fork 16
/
poll.js
1 lines (1 loc) · 1.55 KB
/
poll.js
1
import{c as t,aO as e,_ as a,a$ as r,b as n,g as o,b1 as i,w as s,b2 as l,s as u,b3 as c,b4 as d,b5 as p,b6 as h}from"./lib/__bundle-da1c545a.js";export{as as Poll,x as PollListQuery,b7 as PollOption,b8 as PollStatus,aJ as PollVoteEvent,y as PollVoterListQuery}from"./lib/__bundle-da1c545a.js";export{P as PollUpdateEvent}from"./lib/__bundle-acd77193.js";var g=function(r){function g(){var t=null!==r&&r.apply(this,arguments)||this;return t.name="poll",t}return t(g,r),g.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})},g.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)]}))}))},g.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(d(e)).throw(u.invalidParameters),[2,this._manager.get(e)]}))}))},g.prototype.getOption=function(t){return a(this,void 0,void 0,(function(){var e;return n(this,(function(a){return e=o(o({},p),t),s(h(e)).throw(u.invalidParameters),[2,this._manager.getOption(e)]}))}))},g.prototype.buildPollFromSerializedData=function(t){return this._manager.buildPollFromSerializedData(t)},g}(r);export{g as PollModule};