UNPKG

laudantiumculpa

Version:
2 lines (1 loc) 1.59 kB
import{c as t,aI as e,_ as a,aV as r,b as n,g as o,aX as i,t as s,aY as l,r as u,aZ as c,a_ as d,a$ as p,b0 as h}from"./lib/__bundle-ed5804d1.js";export{ao as Poll,w as PollListQuery,b1 as PollOption,b2 as PollStatus,aE as PollVoteEvent,x as PollVoterListQuery}from"./lib/__bundle-ed5804d1.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};