-
Notifications
You must be signed in to change notification settings - Fork 14
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,ay as e,_ as a,aq as r,b as n,d as o,az as i,F as s,aA as l,t as u,aB as c,aC as p,aD as d,aE as h}from"./lib/__bundle-f59352fb.js";export{aF as Poll,G as PollListQuery,aG as PollOption,aH as PollStatus,aI as PollVoteEvent,H as PollVoterListQuery}from"./lib/__bundle-f59352fb.js";export{P as PollUpdateEvent}from"./lib/__bundle-acd77193.js";var f=function(r){function f(){var t=null!==r&&r.apply(this,arguments)||this;return t.name="poll",t}return t(f,r),f.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})},f.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)]}))}))},f.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)]}))}))},f.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)]}))}))},f.prototype.buildPollFromSerializedData=function(t){return this._manager.buildPollFromSerializedData(t)},f}(r);export{f as PollModule};