-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpoll.js
More file actions
1 lines (1 loc) · 1.55 KB
/
poll.js
File metadata and controls
1 lines (1 loc) · 1.55 KB
1
import{c as t,aW as e,_ as r,ba as a,b as n,d as o,bc as i,F as s,bd as l,t as u,be as c,bf as d,bg as p,bh as h}from"./lib/__bundle-4817d855.js";export{aw as Poll,G as PollListQuery,bi as PollOption,bj as PollStatus,aR as PollVoteEvent,H as PollVoterListQuery}from"./lib/__bundle-4817d855.js";export{P as PollUpdateEvent}from"./lib/__bundle-acd77193.js";var g=function(a){function g(){var t=null!==a&&a.apply(this,arguments)||this;return t.name="poll",t}return t(g,a),g.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})},g.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)]}))}))},g.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(d(e)).throw(u.invalidParameters),[2,this._manager.get(e)]}))}))},g.prototype.getOption=function(t){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){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}(a);export{g as PollModule};