"use strict";(self.webpackChunkeasymeetonlinefrontend=self.webpackChunkeasymeetonlinefrontend||[]).push([[8129],{77216:(t,e,n)=>{n.d(e,{e:()=>l});var o=n(8544),r=n("aurelia-framework"),i=n(21320),a=n(32135),c=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},s=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},l=function(){function t(t){this.httpClient=t,this.path="api/ImportedMotion"}return t.prototype.getImportedMotions=function(t){return this.httpClient.getData("".concat(this.path,"/").concat(t))},t.prototype.getClaimTypes=function(t){return this.httpClient.getData("".concat(this.path,"/claimTypes/").concat(t))},t.prototype.getClaimCount=function(t){return u(this,void 0,void 0,(function(){var e,n;return s(this,(function(o){switch(o.label){case 0:return[4,this.httpClient.getData("".concat(this.path,"/claimCount/").concat(t))];case 1:return(e=o.sent()).hasErrors()||(n=e.data.select((function(t){return new i.S(t.proposalId,a.A.convertObjectToMapOf(t.counter))})),e.data=n),[2,e]}}))}))},t.prototype.getMotionText=function(t,e){return u(this,void 0,void 0,(function(){var n;return s(this,(function(o){switch(o.label){case 0:return[4,this.httpClient.getData("".concat(this.path,"/motionText/").concat(t,"/").concat(e))];case 1:return(n=o.sent()).hasErrors()?[2,""]:[2,n.data]}}))}))},t.prototype.getMotionGroupText=function(t,e){return u(this,void 0,void 0,(function(){var n;return s(this,(function(o){switch(o.label){case 0:return[4,this.httpClient.getData("".concat(this.path,"/groupText/").concat(t,"/").concat(e))];case 1:return(n=o.sent()).hasErrors()?[2,""]:[2,n.data]}}))}))},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([r.autoinject,c("design:paramtypes",[o.i])],t)}()},12273:(t,e,n)=>{n.d(e,{cW:()=>b});var o,r,i=n(76262),a=n("aurelia-event-aggregator"),c=n(7380),u=n("pages/admin/portal/adminportal"),s=n("aurelia-framework"),l=n(18776),p=n(81366),f=n(28377),h=n("aurelia-dialog"),d=n(86878),g=n("pages/modal/errormodal"),y=n("aurelia-i18n"),v=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},b=(v((function(){return null!==r&&r.apply(this,arguments)||this}),r=function(){}),function(){function t(t,e,n,o,r,i){var a=this;this.router=t,this.stateService=e,this.eventAggregator=n,this.dialogService=o,this.manualUrlProvider=r,this.i18n=i,this.viewMenu=[],this.menuGroups=[{text:"",icon:"fas fa-bars",rightAlign:!0,visible:function(){return!a.stateService.electionActive},items:[]}],this.adminMenuItems=[{text:"joinMeeting",icon:"icon icon-businesspeople2",enabled:function(){return!0},visible:function(){return!0},callback:function(){a.dialogService.closeAll(),a.safeNavigation=!0,a.setMeetingId(),a.router.navigateToRoute("meeting")}},{text:"adminPortal",icon:"fa-solid fa-cogs",enabled:function(){return!0},visible:function(){return!0},callback:function(){a.dialogService.closeAll(),a.safeNavigation=!0,a.setMeetingId(),a.navigateToAdmin(c.x.Edit)}},{text:"controlview",icon:"fa-solid fa-user-cog",enabled:function(){return!0},visible:function(){return!0},callback:function(){a.dialogService.closeAll(),a.safeNavigation=!0,a.setMeetingId(),a.navigateToAdmin(c.x.Control)}},{text:"easymeetAdminManual",icon:"fa-solid fa-book",enabled:function(){return!0},visible:function(){return!0},callback:function(){a.openAdminManual()}}]}return t.prototype.clearViewMenu=function(){null!=this.viewMenu[0]&&(this.viewMenu[0].items=[])},Object.defineProperty(t.prototype,"isSafeNavigation",{get:function(){var t=this.safeNavigation;return this.safeNavigation=!1,t},enumerable:!1,configurable:!0}),t.prototype.setViewMenu=function(t){var e=this;this.viewMenu=this.menuGroups,this.viewMenu[0].items=[],t.forEach((function(t){return e.viewMenu[0].items.push(t)})),p.p.instance.isAdmin&&this.adminMenuItems.forEach((function(t){e.viewMenu[0].items.where((function(e){return e.text==t.text})).any()||e.viewMenu[0].items.push(t)}))},t.prototype.runMenuCallbackByTextName=function(t){if(0!=this.viewMenu.length){var e=this.viewMenu[0].items.find((function(e){return e.text===t}));e&&e.callback()}},t.prototype.navigateToAdmin=function(t){var e=new u.AdminPortalRouteParams(t);"admin"==this.router.currentInstruction.config.name?this.eventAggregator.publish(i.a8.AdminPortalPageChanged,e):this.router.navigateToRoute("admin",e)},t.prototype.setMeetingId=function(){!p.p.instance.meetingId&&p.p.instance.reportMeetingId&&(p.p.instance.meetingId=p.p.instance.reportMeetingId)},t.prototype.openAdminManual=function(){var t=this,e=window.open("about:blank","_blank");this.manualUrlProvider.getAdminManualUrl().then((function(t){e.location=t})).catch((function(n){e.close(),t.dialogService.open({viewModel:g.A,model:t.i18n.tr("easymeetAdminManualError")})}))},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([(0,s.autoinject)(),m("design:paramtypes",[l.Ix,f.d,a.EventAggregator,h.DialogService,d.P,y.I18N])],t)}())},93972:(t,e,n)=>{n.d(e,{K:()=>c});var o=n("aurelia-framework"),r=n(8544),i=n(32135),a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.httpClient=t,this.path="api/log"}return t.prototype.LogError=function(t,e){return this.httpClient.postData("".concat(this.path,"/error"),{message:t,error:e})},t.prototype.SendErrorLog=function(){var t=i.A.GetLogs(),e=JSON.parse(t);return this.httpClient.postData("".concat(this.path,"/errors"),{logs:e})},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.autoinject,a("design:paramtypes",[r.i])],t)}()},2307:(t,e,n)=>{n.d(e,{L:()=>a});var o=n(27884),r=n(8544),i=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.httpClient=t,this.path="api/meetingevent"}return t.prototype.getAllEvents=function(t){return this.httpClient.getData("".concat(this.path,"/all/").concat(t))},t.prototype.getNoneIncludedEvents=function(t,e){},t.prototype.getIncludedEvents=function(t,e){},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.l9,i("design:paramtypes",[r.i])],t)}()},18525:(t,e,n)=>{n.d(e,{v:()=>p});var o=n(27884),r=n(8544),i=n(81402),a=n(32135),c=n(68107),u=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},l=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},p=function(){function t(t){this.logoBaseUrl="".concat(i.n.GetBaseUrl(),"/api/meeting/getlogo/"),this.http=t}return t.prototype.getLogoUrl=function(t){return this.logoBaseUrl+t},t.prototype.getMeetingData=function(t){return this.http.getData("api/meeting/getmeetingdata/".concat(t))},t.prototype.canUseVideo=function(t){return this.http.getData("api/meeting/getcanusevideo/".concat(t))},t.prototype.getCurrentBroadcast=function(t){return this.http.getData("api/meeting/currentBroadcast/".concat(t))},t.prototype.getUserMeetingAccess=function(t){return this.http.getData("api/meeting/getusermeetingaccess/".concat(t||a.A.emptyGuid()))},t.prototype.getMeeting=function(t,e,n){return this.http.postData("api/meeting/getmeeting/".concat(t),{onPremiseKey:e,accessCode:n})},t.prototype.getDelegates=function(t){return this.http.getData("api/meeting/getdelegates/".concat(t))},t.prototype.getAdminDelegates=function(t){return this.http.getData("api/meeting/getadmindelegates/".concat(t))},t.prototype.getVideoConferences=function(t){return this.http.getData("api/meeting/getvideoconferences/".concat(t))},t.prototype.requestSpeakingTime=function(t){var e=t.speakerType==c.g.Fact?"api/meeting/requestFactSpeakingTime":"api/meeting/requestspeakingtime";return this.http.postData(e,t)},t.prototype.removeSpeakingTime=function(t){return this.http.postData("api/meeting/removespeakingtime",t)},t.prototype.joinMeeting=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,this.http.post("api/meeting/joinmeeting",t)];case 1:return[2,e.sent().isOk()]}}))}))},t.prototype.getRegions=function(){return this.http.getData("api/meeting/getRegions")},t.prototype.getInstance=function(t){return this.http.getData("api/meeting/instance/".concat(t))},t.prototype.joinVideoConference=function(t,e){return s(this,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,this.http.post("api/meeting/joinvideoconference/".concat(t,"/").concat(e.identityUserId))];case 1:return[2,n.sent().isOk()]}}))}))},t.prototype.leaveVideoConference=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,this.http.delete("api/meeting/deletevideoconference/".concat(t))];case 1:return[2,e.sent().isOk()]}}))}))},t.prototype.joinMeetingAsSelf=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,this.http.delete("api/meeting/deletevideoconference/".concat(t))];case 1:return[2,e.sent().isOk()]}}))}))},t.prototype.startingScreenSharing=function(t){return this.http.post("api/meeting/startingscreensharing/".concat(t))},t.prototype.stoppingScreenSharing=function(t){return this.http.post("api/meeting/stoppingscreensharing/".concat(t))},t.prototype.updateDelegateAudioVideoUsage=function(t,e,n){return s(this,void 0,void 0,(function(){return l(this,(function(o){return[2,this.http.post("api/meeting/updatedelegateaudiovideousage/".concat(t,"/").concat(e,"/").concat(n))]}))}))},t.prototype.getVoteSettings=function(t){return this.http.getData("api/meeting/getvotesettings/".concat(t))},t.prototype.getElectoralRollSetting=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.http.getData("api/meeting/getelectoralrollsetting/".concat(t))]}))}))},t.prototype.getElectoralRoll=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.http.getData("api/meeting/getelectoralroll/".concat(t))]}))}))},t.prototype.getMeetingVideos=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.http.getData("api/meeting/getmeetingvideos/".concat(t))]}))}))},t.prototype.getLogoSrc=function(t){return"".concat(i.n.GetBaseUrl(),"api/meeting/getmeetingvideoicon/").concat(t)},t.prototype.getGlobalSpeakingTimeLeft=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.http.getData("api/meeting/globalTimeLeft/".concat(t))]}))}))},t.prototype.getLoggedInUsers=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.http.getData("api/meeting/loggedinusers/".concat(t))]}))}))},t.prototype.setElectoralRollAttendance=function(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.http.post("api/meeting/setelectoralrollattendance/".concat(t))]}))}))},t.prototype.getPublishedDecisions=function(t){return this.http.getData("api/meeting/getPublishedDecisions/".concat(t))},t.prototype.getMeetingDecisions=function(t){return this.http.getData("api/meeting/getMeetingDecisions/".concat(t))},t.prototype.validateMeetingAccessCode=function(t,e){return this.http.postData("api/meeting/validateAccessCode/".concat(t),{accessCode:e})},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.l9,u("design:paramtypes",[r.i])],t)}()},95171:(t,e,n)=>{n.d(e,{J:()=>c});var o=n(11752),r=n(27884),i=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},a=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},c=function(){function t(){}return t.prototype.getCurrentMeeting=function(){return this.currentMeeting},t.prototype.setCurrentMeeting=function(t){this.currentMeeting=t},t.prototype.leaveMeeting=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.hangupCall()];case 1:return t.sent(),[2]}}))}))},t.prototype.hangupCall=function(){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(e){return this.currentMeeting&&this.stopAllTracks().then((function(){return i(t,void 0,void 0,(function(){var t=this;return a(this,(function(e){switch(e.label){case 0:return[4,this.webex.meetings.unregister()];case 1:return e.sent(),this.currentMeeting.leave().then((function(){t.setCurrentMeeting(null),t.localStream=null,t.currentMediaSettings=null})),[2]}}))}))})),[2]}))}))},t.prototype.stopAllTracks=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.currentMeeting&&(this.localStream&&this.localStream.getTracks().forEach((function(t){t.enabled=!1,t.stop()})),this.localStream=null,this.currentMeeting.getMediaStreams(this.currentMediaSettings).then((function(t){t.forEach((function(t){t&&(t.getTracks().forEach((function(t){t.enabled=!1,t.stop()})),t=null)}))})).catch((function(t){o.R.error(t)}))),[2]}))}))},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([(0,r.l9)()],t)}()},81675:(t,e,n)=>{n.d(e,{C:()=>s});var o=n(6194),r=n(81402),i=n(11752),a=function(){return a=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},a.apply(this,arguments)},c=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},u=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},s=function(){function t(){}return t.create=function(t,e){var n=new o.Qq;return new l(n,t,e)},t}(),l=function(){function t(t,e,n){this.httpClient=t,this.httpClient.configure((function(t){t.withBaseUrl("".concat(r.n.GetBaseUrl(),"api/monitor/")),t.withCredentials(!0),t.withHeader("Accept","application/json")})),this.defaultParams={meetingId:e,monitorKey:n}}return t.prototype.getMeetingDto=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("agenda")];case 1:return[2,t.sent()]}}))}))},t.prototype.getMotion=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.get("motion",{motionId:t})];case 1:return[2,e.sent()]}}))}))},t.prototype.getDisplayMotion=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){return[2,this.get("motions/display")]}))}))},t.prototype.getImportedMotions=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("motions/imported")];case 1:return[2,t.sent()]}}))}))},t.prototype.getElectionResult=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.get("election/result",{electionId:t})];case 1:return[2,e.sent()]}}))}))},t.prototype.getDelegatesInElection=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.get("election/delegates",{electionId:t})];case 1:return[2,e.sent()]}}))}))},t.prototype.getRemoteDelegates=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("users/remote")];case 1:return[2,t.sent()]}}))}))},t.prototype.getLoggedInDelegates=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("users/loggedIn")];case 1:return[2,t.sent()]}}))}))},t.prototype.getDelegatesInMeeting=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("users/inMeeting")];case 1:return[2,t.sent()]}}))}))},t.prototype.getMonitorUserWithLoginInfo=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("users/loginInfo")];case 1:return[2,t.sent()]}}))}))},t.prototype.getMeetingState=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("meeting")];case 1:return[2,t.sent()]}}))}))},t.prototype.getMeetingAccessCode=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("meeting/accessCode")];case 1:return[2,t.sent()]}}))}))},t.prototype.getPresets=function(){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.get("presets")];case 1:return[2,t.sent()]}}))}))},t.prototype.getPreset=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.get("presets/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.get=function(t,e){return c(this,void 0,void 0,(function(){var n,o,c;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),n=null==e?this.defaultParams:a(a({},this.defaultParams),e),[4,this.httpClient.createRequest("".concat(r.n.GetBaseUrl(),"api/monitor/").concat(t)).asGet().withBaseUrl(r.n.GetBaseUrl()).withParams(n).send()];case 1:if((o=u.sent()).isSuccess)return[2,o.content];throw new Error("Error: ".concat(o.statusCode));case 2:return c=u.sent(),i.R.error("Failed to fetch data",c),[2,null];case 3:return[2]}}))}))},t}()},59791:(t,e,n)=>{n.d(e,{X:()=>a});var o=n(8544),r=n(27884),i=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.httpClient=t,this.path="api/MotionDocument"}return t.prototype.createMotion=function(t){return this.httpClient.postData("".concat(this.path),t)},t.prototype.updateMotion=function(t,e){return this.httpClient.putData("".concat(this.path,"/").concat(t),e)},t.prototype.deleteMotion=function(t){return this.httpClient.delete("".concat(this.path,"/").concat(t))},t.prototype.raiseMotion=function(t){return this.httpClient.postData("".concat(this.path,"/raise/").concat(t))},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([r.l9,i("design:paramtypes",[o.i])],t)}()},82620:(t,e,n)=>{n.d(e,{O:()=>u});var o=n(27884),r=n(8544),i=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},c=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},u=function(){function t(t){this.httpClient=t}return t.prototype.getMyMotions=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/getmydrafts",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.saveMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/savemotion",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.saveAndPublishMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/saveandpublishmotion",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.updateMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/updatemotion",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.updateAndPublishMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/updateandpublishmotion",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.removeMotion=function(t,e){return a(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.postData("api/motion/deletemotion",{MotionId:t,AgendaItemId:e})];case 1:return[2,n.sent()]}}))}))},t.prototype.createAgreement=function(t,e){return a(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.post("api/motion/agree/".concat(t,"/").concat(e))];case 1:return[2,n.sent()]}}))}))},t.prototype.removeAgreement=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.delete("api/motion/agree/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.saveCommitteeMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.post("api/motion/savecommitteemotion/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.getCommitteMotions=function(t,e){return a(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.getData("api/motion/committeemotions/".concat(t,"/").concat(e))];case 1:return[2,n.sent()]}}))}))},t.prototype.getCommitteMeetings=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.getData("api/motion/committeemeetings/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.createClaimForImportedMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/createClaimForImportedMotion",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.createClaimForImportedMotionGroup=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/createClaimForImportedMotionGroup",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.updateClaimForImportedMotion=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/updateClaimForImportedMotion",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.deleteClaimForImportedMotion=function(t,e){return a(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.delete("api/motion/deleteClaimForImportedMotion/".concat(t,"/").concat(e))];case 1:return[2,n.sent()]}}))}))},t.prototype.getUserClaimsForAgenda=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.getData("api/motion/importedmotion/userclaims/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.getRaisablePleads=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.getData("api/motion/raisablePleads/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.raisePlead=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/motion/raisePlead/".concat(t))];case 1:return[2,e.sent()]}}))}))},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.l9,i("design:paramtypes",[r.i])],t)}()},63884:(t,e,n)=>{n.d(e,{M:()=>a});var o=n(8544),r=n(27884),i=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.httpClient=t,this.path="api/nomination"}return t.prototype.getMyNominations=function(t){return this.httpClient.getData("".concat(this.path,"/list/").concat(t))},t.prototype.addNomination=function(t){return this.httpClient.postData("".concat(this.path),t)},t.prototype.nominateCandidate=function(t,e){return this.httpClient.postData("".concat(this.path,"/").concat(t,"/").concat(e))},t.prototype.updateNomination=function(t,e){return this.httpClient.putData("".concat(this.path,"/").concat(t),e)},t.prototype.deleteNomination=function(t){return this.httpClient.delete("".concat(this.path,"/").concat(t))},t.prototype.search=function(t,e){return this.httpClient.postData("".concat(this.path,"/search/").concat(t),{query:e})},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([r.l9,i("design:paramtypes",[o.i])],t)}()},42532:(t,e,n)=>{n.d(e,{G:()=>c});var o=n("aurelia-framework"),r=n(8544),i=n(32135),a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.httpClient=t}return t.prototype.getMeetingReport=function(t){return this.httpClient.postDownload("api/report/generateReport",t)},t.prototype.getPleadReport=function(t,e,n){return this.httpClient.postDownload("api/report/generatePleadReport",{meetingId:t,pleadId:e,language:n,timeZone:i.A.getClientTimeZone()})},t.prototype.getPleadsReport=function(t,e,n,o){return this.httpClient.postDownload("api/report/generatePleadsReport",{meetingId:t,pleads:e,language:n,timeZone:i.A.getClientTimeZone(),reportType:o})},t.prototype.generateStatData=function(t){return this.httpClient.postDownload("api/meetingstatistics/",t)},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.autoinject,a("design:paramtypes",[r.i])],t)}()},78624:(t,e,n)=>{n.d(e,{E:()=>s});var o=n("aurelia-framework"),r=n(8544),i=n(32135),a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},u=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},s=function(){function t(t){this.httpClient=t}return t.prototype.getMyReservations=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.getData("api/reservation/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.create=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.postData("api/reservation",t)];case 1:return[2,e.sent()]}}))}))},t.prototype.delete=function(t){return c(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.delete("api/reservation/".concat(t))];case 1:return[2,e.sent()]}}))}))},t.prototype.update=function(t,e){return c(this,void 0,void 0,(function(){return u(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.putData("api/admin/adminreservation/".concat(e),t)];case 1:return[2,n.sent()]}}))}))},t.prototype.adminCreate=function(t,e){return c(this,void 0,void 0,(function(){return u(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.postData("api/admin/adminreservation/".concat(e),t)];case 1:return[2,n.sent()]}}))}))},t.prototype.getReport=function(t,e,n,o){return this.httpClient.postDownload("api/admin/adminreservation/report",{meetingId:t,indices:e,language:n,timeZone:i.A.getClientTimeZone(),reportType:o})},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.autoinject,a("design:paramtypes",[r.i])],t)}()},83919:(t,e,n)=>{n.d(e,{Z:()=>f});var o,r=n(27884),i=n(8544),a=n(259),c=n("aurelia-dialog"),u=n("aurelia-event-aggregator"),s=n(49278),l=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t){function e(e,n,o,r){var i=t.call(this,e,n,o,r)||this;return i.httpClient=e,i.path="api/SimplifiedLogin",i}return l(e,t),e.prototype.simplifiedLogin=function(t){return e=this,n=void 0,r=function(){var e;return function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}(this,(function(n){switch(n.label){case 0:return[4,this.httpClient.postData("".concat(this.path,"/login"),t)];case 1:return e=n.sent(),[2,this.handleLoginResponse(e)]}}))},new((o=void 0)||(o=Promise))((function(t,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(t){t(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}));var e,n,o,r},e.prototype.isValidToken=function(t,e){return this.httpClient.postData("".concat(this.path,"/validate/").concat(t),{token:e})},e.prototype.initialize=function(t,e){return this.httpClient.postData("".concat(this.path,"/init/").concat(t),{token:e})},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([r.l9,p("design:paramtypes",[i.i,c.DialogService,u.EventAggregator,s.F])],e)}(a.D)},42684:(t,e,n)=>{n.d(e,{o:()=>h});var o,r=n("aurelia-dialog"),i=n("aurelia-i18n"),a=n("pages/modal/errormodal"),c=n("pages/modal/messagemodal"),u=n("pages/modal/speaker/speakerrequestreasonmodal"),s=n(27884),l=n(68107),p=n("pages/modal/confirmationmodal"),f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(){function t(t,e){this.dialogService=t,this.i18N=e}return t.prototype.handleResponse=function(t,e,n,r){if(void 0===r&&(r=!1),e.hasErrors())return this.showInfoModal(e.errorMessage,n);switch(e.data.status){case o.AwaitingApproval:return this.showInfoModal(this.i18N.tr("speakerRequestAwaitingApproval"),n);case o.ReasonNotProvided:return this.showProvideReasonModal(t,n);default:return r?this.showSuccessModal(this.i18N.tr("youHaveBeenAddedToTheSpeakerList"),n):Promise.resolve({})}},t.prototype.confirmRequest=function(t,e){return n=this,o=void 0,i=function(){var n;return function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}(this,(function(o){switch(o.label){case 0:return n={title:this.getConfirmMessage(t),translated:!1},[4,this.dialogService.open({viewModel:p.R,model:n,host:e}).whenClosed((function(t){return t.wasCancelled}))];case 1:return[2,!o.sent()]}}))},new((r=void 0)||(r=Promise))((function(t,e){function a(t){try{u(i.next(t))}catch(t){e(t)}}function c(t){try{u(i.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,c)}u((i=i.apply(n,o||[])).next())}));var n,o,r,i},t.prototype.getConfirmMessage=function(t){switch(t){case l.g.Speaking:return"confirmSpeakingRequest";case l.g.Order:return"confirmPointOfOrderRequest";case l.g.Reply:return"confirmReplyRequest";case l.g.Fact:return"confirmFactRequest"}},t.prototype.showErrorModal=function(t,e){return this.dialogService.open({viewModel:a.A,model:t,host:e}).whenClosed()},t.prototype.showInfoModal=function(t,e){return this.dialogService.open({viewModel:c.H,model:t,host:e}).whenClosed()},t.prototype.showProvideReasonModal=function(t,e){return this.dialogService.open({viewModel:u.G,model:{request:t,host:e,requestHandler:this},host:e}).whenClosed()},t.prototype.showSuccessModal=function(t,e){return this.dialogService.open({viewModel:c.H,model:t,host:e}).whenClosed()},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([s.l9,f("design:paramtypes",[r.DialogService,i.I18N])],t)}();!function(t){t[t.SuccessfullyAdded=0]="SuccessfullyAdded",t[t.AwaitingApproval=1]="AwaitingApproval",t[t.ReasonNotProvided=2]="ReasonNotProvided"}(o||(o={}))},28377:(t,e,n)=>{n.d(e,{d:()=>d});var o,r,i=n(59777),a=n(27884),c=n("aurelia-event-aggregator"),u=n(47065),s=n(93550),l=n(29509),p=n(16537),f=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(e){var n=t.call(this,e)||this;return n.currentRegularElection=r.None,n.currentPersonalElection=r.None,n.msgCallbacks=[{msg:s.c,callback:function(t){n.currentRegularElection=r.ShowingResult}},{msg:u.w,callback:function(t){n.currentRegularElection=r.Election}},{msg:"NewPersonalElection",callback:function(t){n.currentPersonalElection=r.PersonalElection}},{msg:"SendPersonalElectionResult",callback:function(t){n.currentPersonalElection=r.ShowingResult}},{msg:"CloseElection",callback:function(){n.currentRegularElection=r.None}},{msg:"CloseElectionResult",callback:function(){n.currentRegularElection=r.None}},{msg:"ClosePersonalElection",callback:function(){n.currentPersonalElection=r.None}},{msg:"ClosePersonalElectionResult",callback:function(){n.currentPersonalElection=r.None}}],n.subscribeMessages(),n}return f(e,t),Object.defineProperty(e.prototype,"electionActive",{get:function(){return this.currentRegularElection!=r.None||this.currentPersonalElection!=r.None},enumerable:!1,configurable:!0}),e.prototype.handleState=function(t){this.handleElectionState(t.electionState),this.handlePersonalElectionState(t.personalElectionState)},e.prototype.handleElectionState=function(t){if(t.hasOngoingElection){if(t.isStarted){var e=new u.w(t.currentElection.meetingId,t.currentElection.election);this.eventAggregator.publish(e),this.currentRegularElection=r.Election}if(t.isStopped&&(this.eventAggregator.publish("CloseElection"),this.currentRegularElection=r.None),t.isShowingResult){var n=t.currentElectionResult;e=new s.c(n.electionId,n.electionTitle,n.entitledToVote,n.electionOptionsResult,n.electoralRoll,n.numberOfVoters,n.electionType,n.electionDescription,n.useNeutralColors),this.eventAggregator.publish(e),this.currentRegularElection=r.ShowingResult}else this.eventAggregator.publish("CloseElectionResult"),this.currentRegularElection=r.None}else this.eventAggregator.publish("CloseElection"),this.eventAggregator.publish("CloseElectionResult"),this.currentRegularElection=r.None},e.prototype.handlePersonalElectionState=function(t){if(t.hasOngoingElection){if(t.isStarted)if(t.identityAlreadyVoted)this.eventAggregator.publish("showThankYouForVoting",t.currentElection.title),this.currentPersonalElection=r.PersonalElection;else{var e=new l.z(t.currentElection);this.eventAggregator.publish("NewPersonalElection",e),this.currentPersonalElection=r.PersonalElection}if(t.isStopped)if(t.isShowingResult){var n=Object.assign(new i.vA,t.currentElectionResult);this.eventAggregator.publish("SendPersonalElectionResult",n),this.currentPersonalElection=r.ShowingResult}else this.eventAggregator.publish("ClosePersonalElection"),this.eventAggregator.publish("ClosePersonalElectionResult"),this.currentPersonalElection=r.None}else this.eventAggregator.publish("ClosePersonalElection"),this.eventAggregator.publish("ClosePersonalElectionResult"),this.currentPersonalElection=r.None},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([a.l9,h("design:paramtypes",[c.EventAggregator])],e)}(p.v);!function(t){t.None="none",t.Election="election",t.PersonalElection="personalElection",t.ShowingResult="showingResult"}(r||(r={}))},58714:(t,e,n)=>{n.d(e,{c:()=>a});var o=n("aurelia-framework"),r=n(8544),i=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.httpClient=t}return t.prototype.getSettings=function(){return this.httpClient.getData("api/SystemSettings")},function(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([o.autoinject,i("design:paramtypes",[r.i])],t)}()}}]);
//# sourceMappingURL=app-e8f1957c.b5c386c81ee62dce3bdf.bundle.js.map