PageSourceSearch

https://gospring.ai/chunk-Y3HA3YHF.js

js gospring.ai collected 2026-10-03 19:26:46 UTC 74,037 bytes, 1 lines download raw bytes

1import{b as pe}from"./chunk-EI6ZAIRF.js";import"./chunk-ONDLIFS3.js";import{g as Xt}from"./chunk-YIKGPRPW.js";import{a as Kt}from"./chunk-C2WG6HVI.js";import"./chunk-STJLRGYE.js";import"./chunk-C5IG3EE3.js";import"./chunk-6TM2IQQP.js";import{a as Qt,b as Ht,c as ft,d as Jt,f as $t,h as se}from"./chunk-MI267A4R.js";import"./chunk-6WMR65GN.js";import{E as re,H as ae,U as le,k as Gt,l as Zt,p as ie,q as ne,x as oe}from"./chunk-4AGL4IFN.js";import"./chunk-WSCWC6WU.js";import"./chunk-T75NPQZT.js";import{a as Ce}from"./chunk-I7PLSVRC.js";import{$b as jt,$d as X,Ae as Ot,Ag as qt,Cb as P,Db as T,Ea as v,Eb as D,Eg as Yt,Fe as ht,Ga as l,Gc as St,Ig as vt,Nb as dt,Ng as xt,Ob as Nt,Pa as s,Pb as gt,Q as at,Qa as c,Qb as Ut,R as lt,Ra as f,Sf as ut,T as F,Va as C,Wb as Ft,X as st,Y as pt,Ya as x,Yb as Bt,Yg as te,Zb as zt,Zg as ee,_a as d,ba as m,bb as Z,ca as h,ce as V,de as bt,ge as I,ia as Vt,ib as W,jb as u,jc as _t,je as j,kb as y,ke as N,lb as B,lg as Wt,mc as It,na as Et,pe as kt,qb as q,qe as Lt,ra as At,rb as Q,re as Mt,sa as ct,sb as H,se as R,te as O,ub as z,ue as U,vb as k,ve as mt,wa as a,wb as A,wg as J,xa as S,xe as K,xg as Y,ye as M}from"./chunk-672O2MLB.js";import"./chunk-QIBCMFWO.js";import{a as L,b as rt,f as ye,h as w}from"./chunk-V6KAXZDU.js";var nt=ye(Ce());var tt=class i{constructor(e,t,n,o){this.firestore=e;this.helperService=t;this.userService=n;this.userSettings=o}createfromPollTemplate(e,t=null){return new Promise((n,o)=>w(this,null,function*(){let r=I(V(this.firestore,"template"),e);j(r).then(p=>{let g=p.data();if(g&&g.templateId){let _={},b=this.userService.getUserContentRef(),$=this.userService.getUser();_.pollId=t||this.helperService.uuidv4(),_.pollName="Enter title of the poll*",_.pollDescription="Describe your poll",_.pollStatus="d",_.refTemplateId=g.templateId,_.hasOwnsettings=!1,_.pollStartDate=new Date,_.pollEndDate=new Date(new Date().setDate(new Date().getDate()+7)),_.coverImageAltText="",_.coverImageSource="",_.coverImageUrl=g.coverImageUrl??"",_.coverImageResizedImageUrl="",_.creationDate=O(),_.createdBy=St().currentUser?.uid,_.refAccountId=b.refAccountId,_.refContentId=b.contentId,_.pollQuestion="Question goes here",_.pollType=g.pollType?g.pollType:"p",_.options=g.options?g.options:["Option 1","Option 2"],this.createPollProject(_).then(E=>{E.preRefContentId=_.refContentId,n(E)}).catch(E=>{o(null)})}else o(null)}).catch(p=>{o(null)})}))}createPollProject(e,t=null){return new Promise((n,o)=>{if(e&&e.pollId){let r;if(e.pollcontentId||t==="uploadPollFromCsv"){r={},r.contentId=e.refContentId;let g={createdBy:e.refContentId,creationDate:O(),enableShare:!0,language:"en",lastUpdateDate:O(),mode:"default",settingId:e.pollId,shareOption:["facebook","twitter","linkedin","whatsapp"],showPollStats:!0,shuffle:!0,updatedBy:e.refContentId};this.createPollSetting(g)}else r=this.userService.getUserContentRef();let p=I(this.firestore,"contentAccountMapping",r.contentId,"poll",e.pollId);U(p,e).then(g=>{n(e)}).catch(g=>{o(g)})}else o(null)})}getPollsByPollIdList(e){return new Promise((t,n)=>{let o=[];for(let r=0;r<e.length;r++){let p=e[r];o.push(this.getPollDetailsById(p.pollId))}Promise.all(o).then(r=>{t(r)}).catch(r=>{t([])})})}getPollDetailsById(e,t=null){return w(this,null,function*(){return new Promise((n,o)=>w(this,null,function*(){let r=this.userService.getUserContentRef();t||(t=r.contentId);let p=R(bt(this.firestore,"poll"),M("pollId","==",e)),g=null;(yield N(p)).forEach(b=>{g=b.data()}),n(g||null)}))})}updateProject(e,t){return new Promise((n,o)=>{let r=this.userService.getUserContentRef(),p=O();t.pollStatus=="p"&&(t.publishedOn=O());let g=St().currentUser?.uid;t.updatedBy=g,t.lastUpdateDate=p;let _=I(this.firestore,"contentAccountMapping",r.contentId,"poll",e);K(_,t),n(t)})}getProjectList(e,t,n){return new Promise((o,r)=>w(this,null,function*(){let p=[Mt("creationDate","desc")];p=yield this.userSettings.getQuery(p);let g;if(n.length==0)t=="All"?p.push(M("pollStatus","in",["d","p"])):t=="u"?p.push(M("pollStatus","==","p")):p.push(M("pollStatus","==",t));else if(t=="All"){var _=n[n.length-1];p.push(M("pollStatus","in",["d","p"])),p.push(mt(_.creationDate))}else if(t=="u"){let b="p";var _=n[n.length-1];p.push(M("pollStatus","==",b)),p.push(mt(_.creationDate))}else if(status!="f"){var _=n[n.length-1];p.push(M("pollStatus","==",t)),p.push(mt(_.creationDate))}p.push(kt(10)),g=R(bt(this.firestore,"poll"),...p),N(g).then(b=>{o(b)}
1).catch(b=>{r(b)})}))}addPsStats(e){return new Promise((t,n)=>{let o=I(this.firestore,"ps_stats",e.refPsId);var r=L({},e);U(o,r),t(!0)})}updatePsStats(e,t){return new Promise((n,o)=>{let r=I(this.firestore,"ps_stats",e);var p=L({},t);K(r,p),n(!0)})}getPsQuestionStatsDetails(e){return new Promise((t,n)=>w(this,null,function*(){let o=I(this.firestore,"ps_question_stats",e);yield j(o).then(r=>{let p;p=r.data(),t(p)}).catch(r=>{n(r)})}))}getPsStatsDetails(e){return new Promise((t,n)=>w(this,null,function*(){let o=I(this.firestore,"ps_stats",e);yield j(o).then(r=>{let p;p=r.data(),t(p)}).catch(r=>{n(r)})}))}getCompletedInstanceDetails(e){return new Promise((t,n)=>{let o=[],r=V(this.firestore,"ps_instances"),p=R(r,M("instanceId","in",e),M("status","==","c"));N(p).then(g=>{g.forEach(_=>{o.push(_.data().refPsId)}),t(o)}).catch(g=>{console.log(g),n(g)})})}createPsInstance(e){return new Promise((t,n)=>{let o=this.helperService.uuidv4(),r=I(this.firestore,"ps_instances",o),p=O();var g=rt(L({},e),{instanceId:o,status:"v",psType:"p",viewedOn:p});U(r,g),t(g.instanceId)})}getPsInstancesDetails(e){return new Promise((t,n)=>w(this,null,function*(){let o=I(this.firestore,"ps_instances",e);yield j(o).then(r=>{let p=r.data();t(p)}).catch(r=>{n(r)})}))}updatePsInstance(e,t){return new Promise((n,o)=>{let r=I(this.firestore,"ps_instances",e);K(r,t).then(p=>{n(!0)}).catch(p=>{o(p)})})}addPsAnswer(e){return new Promise((t,n)=>{let o=this.helperService.uuidv4(),r=I(this.firestore,"ps_answer",o);U(r,e),t(!0)})}getAnswerStatsDetails(e){return new Promise((t,n)=>{let o=V(this.firestore,"ps_answer"),r;e&&(r=R(o,M("refPsInstanceId","==",e))),N(r).then(p=>{p.forEach(g=>{let _=g.data();t(_)})}).catch(p=>{n(p)})})}getAnswerStatsDetailsByPollId(e){return new Promise((t,n)=>{let o=V(this.firestore,"ps_answer"),r,p=[];e&&(r=R(o,M("refPsId","==",e),Mt("creationDate","asc"))),N(r).then(g=>{g.forEach(_=>{p.push(_.data()),t(p)})}).catch(g=>{n(g)})})}addPsQuestionStats(e){return new Promise((t,n)=>{let o=I(this.firestore,"ps_question_stats",e.refPsId);U(o,e),t(!0)})}answeredCount(e,t){return this.optionsCount(e,t),new Promise((n,o)=>{let r=R(V(this.firestore,"ps_instances"),M("refPsId","==",e)),p,g;N(r).then(_=>{g=_._snapshot.docChanges.length,n(_._snapshot.docChanges.length)})})}optionsCount(e,t){return new Promise((n,o)=>{let r=R(V(this.firestore,"ps_answer"),M("refPsId","==",e)),p=[],g;N(r).then(_=>{g=_._snapshot.docChanges.length,t.options.forEach(($,E="sk1")=>{E=[],_.forEach(G=>{p=G.data(),p.answer==$&&E.push($)})}),n("sk")})})}getAccessDetailsById(e){return new Promise((t,n)=>w(this,null,function*(){let o=R(V(this.firestore,"accesses"),M("id","==",e)),r;yield N(o).then(p=>{p.forEach(g=>{r=g.data()}),t(r)}).catch(p=>{n(r)})}))}plGetPollDetailsById(e,t){return w(this,null,function*(){return new Promise((n,o)=>w(this,null,function*(){let r=I(this.firestore,"contentAccountMapping",t,"poll",e),p=null;j(r).then(g=>{p=g.data(),n(p)}).catch(g=>{p=null,o(g)})}))})}copyPollOperation(e,t){return new Promise((n,o)=>{let r=this.userService.getUserContentRef(),p=this.helperService.uuidv4();t!=null&&(t.settingId=p,t.creationDate=O(),t.createdBy=r.createdBy,this.createPollSetting(t)),e!=null&&(e.pollName=e.contentType=="poll"?"Enter title of the poll*":e.pollName+" (1)",e.pollId=p,e.pollStatus="d",e.creationDate=O(),e.createdBy=r.createdBy,e.refAccountId=r.refAccountId,e.refContentId=r.contentId,this.createPollProject(e).then(g=>{g&&n(g)}))})}createPollSetting(e){return new Promise((t,n)=>{let o=I(this.firestore,"ps_setting",e.settingId);U(o,e).then(r=>{t(e)}).catch(r=>{n(r)})})}pollDeleteOperation(e){return new Promise((t,n)=>{e!=null&&(e.pollStatus="t",this.updatePoll(e).then(o=>{t(o)}))})}updatePoll(e){return new Promise((t,n)=>{if(e&&e.pollId){let o=this.userService.getUserContentRef(),r=I(this.firestore,"contentAccountMapping",o.contentId,"poll",e.pollId);U(r,e).then(p=>{t(e)}).catch(p=>{n(p)})}else n(null)})}checkPsInstanceAvalableOrNot(e){return new Promise((t,n)=>w(this,null,function*(){let o=R(V(this.firestore,"ps_instances"),M("refPsId","==",e),kt(1)),r=[];yield N(o).then(p=>{p.forEach(g=>{r.push(g.data())}),t(r)}).catch(p=>{n(r)})}))}static \u0275fac=function(t){return new(t||i)(F(X),F(J),F(Y),F(qt))};static \u0275prov=at({token:i,factory:i.\u0275fac,providedIn:"root"})};var yt=class i{constructor(e,t){this.firestore=e;this.userService=t}getPsSettingsById(e){return w(this,null,function*(){try{let t=I(this.firestore,"ps_setting",e),n=null;return yield j(t).then(o=>{n=o.data(),n.settingId=o.id}).catch(o=>{n=null}),n}catch(t){console.log(t)}})}createNewSetting(e,t,n){return w(this,null,function*(){return new Promise((o,r)=>{e&&e.pollId||r(null);
1let p=this.getNewSettings(e,t,n),g=I(this.firestore,"ps_setting",p.settingId);U(g,p).then(_=>{o(p)}).catch(_=>{r(_)})})})}getNewSettings(e,t,n){var o=rt(L(L({},t),n),{settingId:e.pollId,creationDate:O(),lastUpdateDate:O(),createdBy:this.userService.user.uid,updatedBy:this.userService.user.uid});return o}updateProjectSettings(e,t){return new Promise((n,o)=>{let r=O(),p=this.userService.user.uid;t.updatedBy=p,t.lastUpdateDate=r;let g=I(this.firestore,"ps_setting",e);K(g,t).then(_=>{n(_)}).catch(_=>{o(_)})})}static \u0275fac=function(t){return new(t||i)(F(X),F(Y))};static \u0275prov=at({token:i,factory:i.\u0275fac,providedIn:"root"})};var De=i=>({"dark-mode-background-registration":i}),Dt=(i,e)=>({"correct-field":i,"incorrect-field":e});function Te(i,e){i&1&&(s(0,"div",6),u(1),P(2,"translate"),c()),i&2&&(a(),y(T(2,1,"player_registration_title")))}function Re(i,e){i&1&&(s(0,"p",7),u(1),P(2,"translate"),c()),i&2&&(a(),B(" ",T(2,1,"player_registration_pollsummarytext")," "))}function Ve(i,e){if(i&1){let t=C();s(0,"div",16)(1,"app-cr-signin",17,0),x("userSignedIn",function(o){m(t);let r=d(2);return h(r.onUserSignedIn(o))}),c()()}if(i&2){let t=d(2);a(),l("projectSetting",t._pollSetting)}}function Ee(i,e){if(i&1){let t=C();s(0,"div",8)(1,"div",9)(2,"div",10)(3,"mat-form-field",11)(4,"input",12),P(5,"translate"),H("ngModelChange",function(o){m(t);let r=d();return Q(r.fullName,o)||(r.fullName=o),h(o)}),x("ngModelChange",function(o){m(t);let r=d();return h(r.onInputFullName(o))}),c()()(),s(6,"div",10)(7,"mat-form-field",11)(8,"input",13),P(9,"translate"),H("ngModelChange",function(o){m(t);let r=d();return Q(r.phone,o)||(r.phone=o),h(o)}),x("ngModelChange",function(o){m(t);let r=d();
1return h(r.onInputPhone(o))}),c()()(),s(10,"div",10)(11,"mat-form-field",11)(12,"input",14),P(13,"translate"),H("ngModelChange",function(o){m(t);let r=d();return Q(r.email,o)||(r.email=o),h(o)}),x("ngModelChange",function(o){m(t);let r=d();return h(r.onInputEmail(o))}),c()()()(),v(14,Ve,3,1,"div",15),c()}if(i&2){let t=d();a(2),l("ngClass",A(16,Dt,t.validateName(),!t.validateName()&&t.fullName)),a(2),Z("placeholder",T(5,10,"player_registration_fullname")),q("ngModel",t.fullName),a(2),l("ngClass",A(19,Dt,t.isValidPhoneNo(),!t.isValidPhoneNo()&&t.phone)),a(2),Z("placeholder",T(9,12,"common_10digitmobilenumber")),q("ngModel",t.phone),a(2),l("ngClass",A(22,Dt,t.validateEmail(t.email),!t.validateEmail(t.email)&&t.email)),a(2),Z("placeholder",T(13,14,"comman_email")),q("ngModel",t.email),a(2),l("ngIf",!t.cookiePlayerId)}}function Ae(i,e){if(i&1){let t=C();s(0,"div",18)(1,"button",19),x("click",function(){m(t);let o=d();return h(o.emailPhoneReg())}),u(2),P(3,"translate"),c()()}if(i&2){let t=d();a(),l("disabled",!t.isValid()),a(),y(T(3,2,"player_registration_registerbutton"))}}var Ct=class i{constructor(e,t,n,o,r,p){this.pollService=e;this.route=t;this.userPS=n;this.helpers=o;this.cookieService=r;this.sharedService=p;this.pollId=this.route.snapshot.params.id,this.mode=this.route.snapshot.paramMap.get("mode"),this.route.queryParams.subscribe(g=>{this.contentId=g.cid,this.mode=="u"&&(this.cookiePlayerId=this.cookieService.get("refPlayerId"+this.pollId),this.alredyPlayerRegistered())})}fullName="";email="";phone="";mode;isPlayerReg=!1;checkingPlayerData;contentId;signedInUser;instanceId;pollDetails;_pollSetting;pollId;cookiePlayerId;set instence(e){e&&(this.instanceId=e)}set poll(e){e&&e.pollId&&(this.pollDetails=e)}set pollSetting(e){this._pollSetting=e}ngOnInit(){}emailPhoneReg(){if(this.mode=="u"){let n=this.helpers.uuidv4();var e={refUserId:this.contentId?this.contentId:"",fullName:this.fullName,email:this.email,phone:this.phone};this.cookieService.set("refPlayerId"+this.pollId,n,60,"/",void 0,!1,"None"),this.userPS.addUserProfileData(e,n);var t={refPlayerId:n,nickName:this.fullName};this.pollService.updatePsInstance(this.instanceId,t).then(o=>{}).catch(o=>{console.log(o)})}this.onRegister(),this.isPlayerReg=!0}onInputFullName(e){this.fullName=e}onInputPhone(e){this.phone=e}onInputEmail(e){this.email=e}alredyPlayerRegistered(){return w(this,null,function*(){let e=this.cookieService.get("refPlayerId"+this.pollId);if(e&&this.mode=="u"){let n=yield this.userPS.checkRegOrNot(e);if(this.checkingPlayerData=n,this.checkingPlayerData.playerId==e){let o=this.checkingPlayerData.fullName;var t={refPlayerId:e,nickName:o};this.pollService.updatePsInstance(this.instanceId,t).then(r=>{}).catch(r=>{console.log(r)})}this.onRegister(),this.isPlayerReg=!0}})}registerPlayer(e){if(this.mode=="u"){let o=this.helpers.uuidv4();var t={nickName:"",refUserId:this.contentId,fullName:e.displayName,email:e.email,phone:e.phoneNumber};this.cookieService.set("refPlayerId"+this.pollId,o,60,"/",void 0,!1,"None"),this.userPS.addUserProfileData(t,o);var n={refPlayerId:o,nickName:e.displayName};this.pollService.updatePsInstance(this.instanceId,n).then(r=>{}).catch(r=>{console.log(r)})}this.onRegister(),this.isPlayerReg=!0}onUserSignedIn(e){this.signedInUser=e,(!this.cookieService.get("refPlayerId"+this.pollId)&&!this.isPlayerReg||this.mode=="p")&&this.registerPlayer(this.signedInUser)}change=new Vt;onRegister(){this.change.emit({started:!0})}isValid(){let e=!0;return this.validateEmail(this.email)&&this.isValidPhoneNo()&&this.validateName()||(e=!1),e}validateName(){return this.fullName.trim()!=""}validateEmail(e){var t=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4}(\.[A-Za-z]{2,4})?)$/;return t.test(e)!==!1}isValidPhoneNo(){this.phone&&(this.phone=this.phone.trim());var e="^([0|+[0-9]{1,5})?([1-9][0-9]{9})$",t=new RegExp(e);return!!(t.test(this.phone)&&this.phone.length==10)}static \u0275fac=function(t){return new(t||i)(S(tt),S(_t),S(Xt),S(J),S(ht),S(Kt))};static \u0275cmp=st({type:i,selectors:[["app-poll-registration"]],inputs:{instence:[0,"instanceId","instence"],poll:"poll",pollSetting:"pollSetting"},outputs:{change:"change"},decls:5,vars:7,consts:[["crSigin",""],[1,"registrationContainer","valid",3,"ngClass"],["class","title dark-theme",4,"ngIf"],["class","summary dark-theme",4,"ngIf"],["class","registration-type",4,"ngIf"],["class","registerBtn registration-type",4,"ngIf"],[1,"title","dark-theme"],[1,"summary","dark-theme"],[1,"registration-type"],[1,"personalDetails","form","bg-color"],[3,"ngClass"],["appearance","outline"],["matInput","","type","text",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["matInput","","type","tel","autocomplete","off",3,"ngModelChange","placeholder","ngModel"],["matInput","","type","email","autocomplete","off",3,"ngModelChange","placeholder","ngModel"],["class","socialLogin ,signDiv",4,"ngIf"],[1,"socialLogin",",signDiv"],[3,"userSignedIn","projectSetting"],[1,"registerBtn","registration-type"],["mat-button","",1,"register","btn","submit",3,"click","disabled"]],template:function(t,n){t&1&&(s(0,"div",1),v(1,Te,3,3,"div",2)(2,Re,3,3,"p",3)(3,Ee,15,25,"div",4)(4,Ae,4,4,"div",5),c()),t&2&&(l("ngClass",k(5,De,(n._pollSetting==null?null:n._pollSetting.mode)=="dark")),a(),l("ngIf",!n.cookiePlayerId&&n._pollSetting.requiresSignIn),a(),l("ngIf",!n.cookiePlayerId&&n._pollSetting.requiresSignIn),a(),l("ngIf",!n.cookiePlayerId),a(),l("ngIf",!n.cookiePlayerId))},dependencies:[dt,gt,ut,Gt,oe,Yt,vt,xt,ft],styles:[".registrationContainer[_ngcontent-%COMP%]{margin:0 16px}.registrationContainer[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{padding-top:27px;margin-bottom:16px;font-family:Roboto;font-size:20px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.1;letter-spacing:.24px;text-align:left;color:var(--black)}.registrationContainer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]{opacity:.9;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;text-align:left;color:var(--black)}.registrationContainer[_ngcontent-%COMP%]   .register[_ngcontent-%COMP%]{width:108px;height:46px;font-size:16px;margin:20px 15px 0;border-radius:4px;background-color:var(--golden-yellow);line-height:normal;font-weight:400}.registrationContainer[_ngcontent-%COMP%]   .registerBtn[_ngcontent-%COMP%]{left:0;bottom:118px;right:0}.registrationContainer[_ngcontent-%COMP%]   .registration-type[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:10%;min-height:86px;margin-top:20px}.registrationContainer[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.signup-hr[_ngcontent-%COMP%]{margin-top:27px;align-items:center}.signup-hr[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{width:242px}.orSpan[_ngcontent-%COMP%]{background-color:var(--white);position:relative;top:-19px;left:50px;padding:0 20px}.btn[_ngcontent-%COMP%]{width:295px;height:46px;font-size:16px;margin:0 15px;border-radius:4px;line-height:normal;font-weight:400}.resend[_ngcontent-%COMP%]{width:fit-content;background-color:var(--white);margin:10px}.sendOtp[_ngcontent-%COMP%]{background-color:var(--golden-yellow)}
1.pickUsername[_ngcontent-%COMP%]{width:200px;height:21px;margin:33px 0 0 40px;opacity:.9;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;text-align:left;color:var(--black)}.nickNameOptions[_ngcontent-%COMP%]{width:295px;height:46px;margin:8px 40px 10px;border-radius:4px;background-color:var(--pale)}.personalDetails[_ngcontent-%COMP%]{margin-top:100px}.socialLogin[_ngcontent-%COMP%]{position:relative}.signDiv[_ngcontent-%COMP%]{top:165px}  .registrationContainer .bg-color .mat-form-field-appearance-outline .mat-form-field-outline{color:var(--pale-grey)!important;background-color:var(--pale-grey);border-radius:4px}  .registrationContainer .form .mat-form-field-appearance-outline .mat-form-field-flex{margin-top:-20px;position:relative;width:295px;height:46px}  .registrationContainer .bg-color .mat-form-field-appearance-outline .mat-form-field-infix{padding:.5em 0}  .registrationContainer .bg-color .mat-focused .mat-form-field-outline{background-color:var(--pale)!important}  .socialLogin .cr-signin-button[_ngcontent-serverApp-c183]{margin:10px;border:1px solid var(--whisper-white);background-color:#0000000a;border-radius:100%;cursor:pointer;height:46px;width:46px;max-width:unset;min-width:unset}  .registrationContainer .incorrect-field .mat-form-field-appearance-outline .mat-form-field-outline{border:1px solid var(--red)!important}  .registrationContainer .correct-field .mat-form-field-appearance-outline .mat-form-field-outline{border:1px solid var(--green)!important}.dark-mode-background-registration[_ngcontent-%COMP%]   .dark-theme[_ngcontent-%COMP%]{color:var(--white)}.dark-mode-background-registration[_ngcontent-%COMP%]   .nickNameOptions[_ngcontent-%COMP%]{background-color:#ffffff1a!important}.dark-mode-background-registration[_ngcontent-%COMP%]   .dark-background[_ngcontent-%COMP%]{background-color:transparent!important;color:#fff}  .dark-mode-background-registration .bg-color .mat-form-field-appearance-outline .mat-form-field-outline{background-color:transparent!important;color:var(--white)}.dark-mode-background-registration[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::placeholder{color:var(--white);opacity:.5}.dark-mode-background-registration[_ngcontent-%COMP%]   .mat-button-disabled[_ngcontent-%COMP%]{background-color:#8b8311!important}.dark-mode-background-registration[_ngcontent-%COMP%]   .register[_ngcontent-%COMP%]{color:var(--black)}.overlay[_ngcontent-%COMP%]{position:absolute;top:0;width:100vw;height:100vh;text-align:center;vertical-align:middle;opacity:.5;background-color:var(--primary);left:0;z-index:1}.loader[_ngcontent-%COMP%]{margin:auto;top:calc(50% - 50px)}"]})};var Ue=i=>({"dark-mode-background":i}),Tt=i=>({"background-image":i}),Rt=i=>({voteBtn:i}),ue=i=>({selectedAnswer:i}),Fe=()=>[1,2,3,4,5],ot=(i,e)=>({"dark-star-Img":i,"light-star-Img":e}),Be=()=>[2,3,4,5],ze=()=>[3,4,5],je=()=>[1,2],Le=()=>[4,5],We=()=>[1,2,3],qe=()=>[1,2,3,4],fe=i=>({"background-color":i}),me=i=>({cursor:i}),he=i=>({left:i});function Qe(i,e){if(i&1&&f(0,"div",19),i&2){let t=d(5);l("ngStyle",k(1,Tt,t.getImageUrl(t.pollDetails==null?null:t.pollDetails.logoImageUrl)))}}function He(i,e){if(i&1&&(s(0,"div",16),f(1,"img",17),v(2,Qe,1,3,"div",18),c()),i&2){let t=d(4);a(),Z("src",t.pollDetails.coverImageUrl,ct),a(),l("ngIf",t.pollDetails&&(t.pollDetails==null?null:t.pollDetails.logoImageUrl))}}function Je(i,e){if(i&1&&f(0,"div",23),i&2){let t=d(5);l("ngStyle",k(1,Tt,t.getImageUrl(t.pollDetails==null?null:t.pollDetails.creatorImageUrl)))}}function $e(i,e){if(i&1&&(s(0,"div",20),v(1,Je,1,3,"div",21),s(2,"span",22),u(3),c()()),i&2){let t=d(4);a(),l("ngIf",t.pollDetails==null?null:t.pollDetails.creatorImageUrl),a(2),y(t.pollDetails==null?null:t.pollDetails.creatorName)}}function Ge(i,e){if(i&1&&(s(0,"div",24)(1,"span",25),u(2),c()()),i&2){let t=d(4);a(2),y(t.pollDetails.pollName)}}function Ze(i,e){if(i&1&&f(0,"div",26),i&2){let t=d(4);l("innerHtml",t.pollDetails==null?null:t.pollDetails.pollDescription,At)}}function Xe(i,e){if(i&1){let t=C();s(0,"div",27)(1,"button",28),x("click",function(){m(t);let o=d(4);return h(o.callToAction())}),u(2),P(3,"translate"),c()()}if(i&2){let t=d(4);a(),l("ngClass",k(4,Rt,t.answer)),a(),y(T(3,2,"pollps_calltoactionbutton"))}}function Ke(i,e){if(i&1&&(s(0,"div"),v(1,He,3,2,"div",11)(2,$e,4,2,"div",12)(3,Ge,3,1,"div",13)(4,Ze,1,1,"div",14)(5,Xe,4,6,"div",15),c()),i&2){let t=d(3);a(),l("ngIf",t.pollDetails&&t.pollDetails.pollType!="ht"),a(),l("ngIf",t.pollDetails&&t.pollDetails.pollType!="ht"),a(),l("ngIf",t.pollDetails&&t.pollDetails.pollType!="ht"),a(),l("ngIf",t.pollDetails&&t.pollDetails.pollType!="ht"),a(),l("ngIf",t.pollDetails&&t.pollDetails.pollType!="ht")}}function Ye(i,e){if(i&1){let t=C();s(0,"div",29)(1,"app-poll-registration",30),x("change",function(o){m(t);let r=d(3);return h(r.onRegister(o))}),c()()}if(i&2){let t=d(3);a(),l("pollSetting",t.pollSettings)("poll",t.pollDetails)("instanceId",t.instanceId)}}function ti(i,e){i&1&&(s(0,"div",35),u(1),P(2,"translate"),c()),i&2&&(a(),y(T(2,1,"pollps_alreadytakenpoll")))}function ei(i,e){if(i&1&&f(0,"div",43),i&2){let t=d().$implicit,n=d(5);l("ngClass",k(1,ue,t==n.answer||t==n.cookieAnswered))}}function ii(i,e){if(i&1&&(s(0,"div")(1,"mat-list-option",39)(2,"div",40),v(3,ei,1,3,"div",41),s(4,"div",42),u(5),c()()()()),i&2){let t=e.$implicit,n=d(5);a(),l("value",t)("disabled",n.disabledOptions||n.cookieAnswered),a(2),l("ngIf",!n.disabledOptions||!n.cookieAnswered),a(2),y(t)}}function ni(i,e){if(i&1){let t=C();s(0,"div",36)(1,"mat-selection-list",37),H("ngModelChange",function(o){m(t);let r=d(4);return Q(r.selectedOptionValues,o)||(r.selectedOptionValues=o),h(o)}),x("ngModelChange",function(o){m(t);let r=d(4);return h(r.onAnswerSelected(o))}),v(2,ii,6,4,"div",38),c()()}if(i&2){let t=d(4);a(),l("multiple",!1),q("ngModel",t.selectedOptionValues),a(),l("ngForOf",t.pollSettings.shuffle?t.options:t.pollDetails.options)}}function oi(i,e){if(i&1&&(s(0,"div")(1,"div",31)(2,"span",32),u(3),c()(),v(4,ti,3,3,"div",33),s(5,"div",34),u(6),c(),v(7,ni,3,3,"div",8),c()),i&2){let t=d(3);a(3),y(t.pollDetails.pollName),a(),l("ngIf",t.isAleradyTaken),a(2),y(t.pollDetails.pollQuestion),a(),l("ngIf",!t.disabledOptions&&!t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType=="p")}}function ri(i,e){if(i&1&&(s(0,"div")(1,"div",48),u(2),P(3,"percent"),c()()),i&2){let t=d().$implicit,n=d(5);a(2),y(D(3,1,n.calculateWidth(t),"1.0-0"))}}function ai(i,e){if(i&1&&f(0,"div",49),i&2){let t=d().$implicit,n=d(5);l("ngClass",k(1,ue,t==n.answer||t==n.cookieAnswered))}}function li(i,e){if(i&1&&(s(0,"div",50),f(1,"mat-progress-bar"),P(2,"percent"),c()),i&2){let t=d().$implicit,n=d(5);a(),W("width:",D(2,3,n.calculateWidth(t),"1.0-0"),"")}}function si(i,e){if(i&1&&(s(0,"div")(1,"mat-list-option",39)(2,"div",40),v(3,ri,4,4,"div",5),s(4,"div",42),u(5),c()(),s(6,"span",45),v(7,ai,1,3,"div",46),c()(),v(8,li,3,6,"div",47),c()),i&2){let t=e.$implicit,n=d(5);a(),l("value",t)("disabled",!0),a(2),l("ngIf",n.cookieAnswered&&(n.pollSettings==null?null:n.pollSettings.showPollStats)
1),a(2),B(" ",t," "),a(2),l("ngIf",n.cookieAnswered),a(),l("ngIf",n.cookieAnswered&&(n.pollSettings==null?null:n.pollSettings.showPollStats))}}function pi(i,e){if(i&1){let t=C();s(0,"mat-selection-list",37),H("ngModelChange",function(o){m(t);let r=d(4);return Q(r.selectedOptionValues,o)||(r.selectedOptionValues=o),h(o)}),x("ngModelChange",function(o){m(t);let r=d(4);return h(r.onAnswerSelected(o))}),v(1,si,9,6,"div",38),c()}if(i&2){let t=d(4);l("multiple",!1),q("ngModel",t.selectedOptionValues),a(),l("ngForOf",t.pollSettings.shuffle?t.options:t.pollDetails.options)}}function ci(i,e){if(i&1&&(s(0,"div",36),v(1,pi,2,3,"mat-selection-list",44),c()),i&2){let t=d(3);a(),l("ngIf",t.cookieAnswered)}}function di(i,e){if(i&1){let t=C();s(0,"div",54),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}if(i&2){let t=d(5);l("ngClass",A(1,ot,(t.pollSettings==null?null:t.pollSettings.mode)=="dark",(t.pollSettings==null?null:t.pollSettings.mode)!="dark"))}}function gi(i,e){i&1&&(s(0,"div"),v(1,di,1,4,"div",53),c()),i&2&&(a(),l("ngForOf",z(1,Fe)))}function _i(i,e){if(i&1){let t=C();s(0,"div",54),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}if(i&2){let t=d(5);l("ngClass",A(1,ot,(t.pollSettings==null?null:t.pollSettings.mode)=="dark",(t.pollSettings==null?null:t.pollSettings.mode)!="dark"))}}function mi(i,e){if(i&1){let t=C();s(0,"div")(1,"img",55),x("click",function(){m(t);let o=d(4);return h(o.removedRating(1))}),c(),v(2,_i,1,4,"div",53),c()}i&2&&(a(2),l("ngForOf",z(1,Be)))}function hi(i,e){if(i&1){let t=C();s(0,"div",54),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}if(i&2){let t=d(5);l("ngClass",A(1,ot,(t.pollSettings==null?null:t.pollSettings.mode)=="dark",(t.pollSettings==null?null:t.pollSettings.mode)!="dark"))}}function ui(i,e){if(i&1){let t=C();s(0,"div")(1,"img",56),x("click",function(){m(t);let o=d(4);return h(o.getRating(1))}),c(),s(2,"img",56),x("click",function(){m(t);let o=d(4);return h(o.removedRating(2))}),c(),v(3,hi,1,4,"div",53),c()}i&2&&(a(3),l("ngForOf",z(1,ze)))}function fi(i,e){if(i&1){let t=C();s(0,"img",58),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}}function vi(i,e){if(i&1){let t=C();s(0,"div",54),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}if(i&2){let t=d(5);l("ngClass",A(1,ot,(t.pollSettings==null?null:t.pollSettings.mode)=="dark",(t.pollSettings==null?null:t.pollSettings.mode)!="dark"))}}function xi(i,e){if(i&1){let t=C();s(0,"div"),v(1,fi,1,0,"img",57),s(2,"img",58),x("click",function(){m(t);let o=d(4);return h(o.removedRating(3))}),c(),v(3,vi,1,4,"div",53),c()}i&2&&(a(),l("ngForOf",z(2,je)),a(2),l("ngForOf",z(3,Le)))}function yi(i,e){if(i&1){let t=C();s(0,"img",60),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}}function Ci(i,e){if(i&1){let t=C();s(0,"div"),v(1,yi,1,0,"img",59),s(2,"img",60),x("click",function(){m(t);let o=d(4);return h(o.removedRating(4))}),c(),s(3,"div",54),x("click",function(){m(t);let o=d(4);return h(o.getRating(5))}),c()()}if(i&2){let t=d(4);a(),l("ngForOf",z(2,We)),a(2),l("ngClass",A(3,ot,(t.pollSettings==null?null:t.pollSettings.mode)=="dark",(t.pollSettings==null?null:t.pollSettings.mode)!="dark"))}}function Pi(i,e){if(i&1){let t=C();s(0,"img",63),x("click",function(){let o=m(t).$implicit,r=d(5);return h(r.getRating(o))}),c()}}function wi(i,e){if(i&1){let t=C();s(0,"div"),v(1,Pi,1,0,"img",61),s(2,"img",62),x("click",function(){m(t);let o=d(4);return h(o.removedRating(5))}),c()()}i&2&&(a(),l("ngForOf",z(1,qe)))}function Ii(i,e){if(i&1&&(s(0,"div"),u(1),c()),i&2){let t=d(4);a(),y(t.pollDetails.options[0])}}function Si(i,e){if(i&1&&(s(0,"div"),u(1),c()),i&2){let t=d(4);a(),y(t.pollDetails.options[1])}}function bi(i,e){if(i&1&&(s(0,"div"),u(1),c()),i&2){let t=d(4);a(),y(t.pollDetails.options[2])}}function ki(i,e){if(i&1&&(s(0,"div"),u(1),c()),i&2){let t=d(4);a(),y(t.pollDetails.options[3])}}function Mi(i,e){if(i&1&&(s(0,"div"),u(1),c()),i&2){let t=d(4);a(),y(t.pollDetails.options[4])}}function Oi(i,e){if(i&1&&(s(0,"div")(1,"div",51),v(2,gi,2,2,"div",5)(3,mi,3,2,"div",5)(4,ui,4,2,"div",5)(5,xi,4,4,"div",5)(6,Ci,4,6,"div",5)(7,wi,3,2,"div",5),c(),s(8,"div",52),v(9,Ii,2,1,"div",5)(10,Si,2,1,"div",5)(11,bi,2,1,"div",5)(12,ki,2,1,"div",5)(13,Mi,2,1,"div",5),c()()),i&2){let t=d(3);a(2),l("ngIf",!t.isNoRating),a(),l("ngIf",t.rating1),a(),l("ngIf",t.rating2),a(),l("ngIf",t.rating3),a(),l("ngIf",t.rating4),a(),l("ngIf",t.rating5),a(2),l("ngIf",t.rating1),a(),l("ngIf",t.rating2),a(),l("ngIf",t.rating3),a(),l("ngIf",t.rating4),a(),l("ngIf",t.rating5)}}function Di(i,e){if(i&1){let t=C();s(0,"div",64)(1,"button",65),x("click",function(){m(t);let o=d(3);return h(o.getRatingValue())}),u(2),P(3,"translate"),c()()}if(i&2){let t=d(3);a(),l("ngClass",k(6,Rt,!t.answer))("ngStyle",k(8,fe,t.answer?"":"var(--white)"))("disabled",!t.isNoRating),a(),y(T(3,4,"pollps_votebutton"))}}function Ti(i,e){if(i&1&&(s(0,"div")(1,"div",71),f(2,"div",72),s(3,"div",73),u(4),c()(),s(5,"div",74),u(6),P(7,"percent"),c(),f(8,"mat-divider",75),s(9,"div",71),f(10,"div",76),s(11,"div",73),u(12),c()(),s(13,"div",74),u(14),P(15,"percent"),c(),f(16,"mat-divider",75),s(17,"div",71),f(18,"div",77),s(19,"div",73),u(20),c()(),s(21,"div",74),u(22),P(23,"percent"),c(),f(24,"mat-divider",75),s(25,"div",71),f(26,"div",78),s(27,"div",73),u(28),c()(),s(29,"div",74),u(30),P(31,"percent"),c(),f(32,"mat-divider",75),s(33,"div",71),f(34,"div",79),s(35,"div",73),u(36),c()(),s(37,"div",74),u(38),P(39,"percent"),c(),f(40,"mat-divider",75),c()),i&2){let t=d(4);a(4),y(t.pollDetails.options[0]),a(2),y(D(7,10,t.calculateRatingWidth("1"),"1.0-0")),a(6),y(t.pollDetails.options[1]),a(2),y(D(15,13,t.calculateRatingWidth("2"),"1.0-0")),a(6),y(t.pollDetails.options[2]),a(2),y(D(23,16,t.calculateRatingWidth("3"),"1.0-0")),a(6),y(t.pollDetails.options[3]),a(2),y(D(31,19,t.calculateRatingWidth("4"),"1.0-0")),a(6),y(t.pollDetails.options[4]),a(2),y(D(39,22,t.calculateRatingWidth("5"),"1.0-0"))}}function Ri(i,e){if(i&1&&(s(0,"div",36)(1,"div",40),f(2,"div",66),P(3,"percent"),f(4,"div",67),P(5,"percent"),f(6,"div",68),P(7,"percent"),f(8,"div",69),P(9,"percent"),f(10,"div",70),P(11,"percent"),c(),v(12,Ti,41,25,"div",5),c()),i&2){let t=d(3);a(2),W("width:",D(3,16,t.calculateWidth("1"),"1.0-0"),""),a(2),W("width:",D(5,19,t.calculateWidth("2"),"1.0-0"),""),a(2),W("width:",D(7,22,t.calculateWidth("3"),"1.0-0"),""),a(2),W("width:",D(9,25,t.calculateWidth("4"),"1.0-0"),""),a(2),W("width:",D(11,28,t.calculateWidth("5"),"1.0-0"),""),a(2),l("ngIf",t.pollSettings==null?null:t.pollSettings.showPollStats)}}function Vi(i,e){if(i&1){let t=C();s(0,"div",64)(1,"button",65),x("click",function(){m(t);let o=d(3);return h(o.addVote())}),u(2),P(3,"translate"),c()()}if(i&2){let t=d(3);a(),l("ngClass",k(6,Rt,!t.answer))("ngStyle",k(8,fe,t.answer?"":"var(--white)"))("disabled",!t.answer),a(),y(T(3,4,"pollps_votebutton"))}}function Ei(i,e){if(i&1){let t=C();s(0,"button",84),x("click",function(){m(t);let o=d(5);return h(o.getWhatsAppLink())}),f(1,"span",86),c()}}function Ai(i,e){if(i&1){let t=C();s(0,"button",84),x("click",function(){m(t);let o=d(5);return h(o.getFacebookLink())}),f(1,"span",87),c()}}function Ni(i,e){if(i&1){let t=C();s(0,"button",84),x("click",function(){m(t);let o=d(5);return h(o.getTwitterLink())}),f(1,"span",88),c()}}function Ui(i,e){if(i&1){let t=C();s(0,"button",84),x("click",function(){m(t);let o=d(5);return h(o.getLinkedInLink())}),f(1,"span",89),c()}}function Fi(i,e){if(i&1){let t=C();s(0,"div",82),v(1,Ei,2,0,"button",83)(2,Ai,2,0,"button",83)(3,Ni,2,0,"button",83)(4,Ui,2,0,"button",83),s(5,"button",84),x("click",function(){m(t);let o=d(4);return h(o.copyLink())}),f(6,"span",85),c()()}if(i&2){let t=d(4);a(),l("ngIf",t.pollSettings==null?null:t.pollSettings.shareOption.includes("whatsapp")),a(),l("ngIf",t.pollSettings==null?null:t.pollSettings.shareOption.includes("facebook")),a(),l("ngIf",t.pollSettings==null?null:t.pollSettings.shareOption.includes("twitter")),a(),l("ngIf",t.pollSettings==null?null:t.pollSettings.shareOption.includes("linkedin"))}}function Bi(i,e){if(i&1&&(s(0,"div",80),v(1,Fi,7,4,"div",81),c()),i&2){let t=d(3);a(),l("ngIf",t.pollSettings==null?null:t.pollSettings.enableShare)}}function zi(i,e){if(i&1&&(s(0,"div",6),v(1,Ke,6,5,"div",5)(2,Ye,2,3,"div",7)(3,oi,8,4,"div",5)(4,ci,2,1,"div",8)(5,Oi,14,11,"div",5)(6,Di,4,10,"div",9)(7,Ri,13,31,"div",8)(8,Vi,4,10,"div",9)(9,Bi,2,1,"div",10),c()),i&2){let t=d(2);a(),l("ngIf",!t.activeSelectOptionPage&&!t.activeRegistration&&!t.cookieAnswered&&t.pollSettings.showCoverPage),a(),l("ngIf",(t.pollSettings==null?null:t.pollSettings.requiresSignIn)&&t.activeRegistration),a(),l("ngIf",t.activeSelectOptionPage||t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType!="ht"),a(),l("ngIf",t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType=="p"),a(),l("ngIf",t.pollDetails&&t.pollDetails.pollType=="5sr"&&!t.disabledOptions&&!t.cookieAnswered&&(t.activeSelectOptionPage||t.cookieAnswered)),a(),l("ngIf",t.activeSelectOptionPage&&!t.disabledOptions&&!t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType=="5sr"),a(),l("ngIf",t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType=="5sr"),a(),l("ngIf",t.activeSelectOptionPage&&!t.disabledOptions&&!t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType=="p"),a(),l("ngIf",t.cookieAnswered&&t.pollDetails&&t.pollDetails.pollType!="ht")}}function ji(i,e){if(i&1&&(s(0,"div"),f(1,"mat-divider",90),s(2,"div"),f(3,"app-footer",91),c()()),i&2){let t=d(2);a(3),l("mode",t.pollSettings==null?null:t.pollSettings.mode)}}function Li(i,e){if(i&1&&(s(0,"div",3),v(1,zi,10,9,"div",4)(2,ji,4,1,"div",5),c()),i&2){let t=d();l("ngClass",k(4,Ue,(t.pollSettings==null?null:t.pollSettings.mode)=="dark"))("ngStyle",k(6,Tt,(t.pollSettings==null?null:t.pollSettings.mode)=="dark"?"url("+(t.pollDetails==null?null:t.pollDetails.coverImageUrl)+")":"")),a(),l("ngIf",t.pollDetails&&!t.showLoader&&t.pollSettings),a(),l("ngIf",t.pollDetails&&!t.showLoader&&t.pollSettings&&t.pollDetails.pollType!="ht")}}function Wi(i,e){i&1&&(s(0,"div",92),f(1,"mat-spinner",93),c())}function qi(i,e){if(i&1&&(s(0,"div",106),u(1),c()),i&2){let t=d(2);a(),B(" ",t.pollDetails.pollQuestion,"")}}function Qi(i,e){i&1&&(s(0,"span",106),u(1,"Thanks for Voting"),c())}function Hi(i,e){if(i&1&&(s(0,"span"),u(1),P(2,"percent"),c()),i&2){let t=d(2);a(),B(" ",D(2,1,t.calculateValue(t.options[0]),"1.0-0"),"")}}function Ji(i,e){if(i&1&&(s(0,"span"),u(1),P(2,"percent"),c()),i&2){let t=d(2);a(),B(" ",D(2,1,t.calculateValue(t.options[2]),"1.0-0"),"")}}function $i(i,e){if(i&1){let t=C();s(0,"div",94)(1,"div"),v(2,qi,2,1,"div",95)(3,Qi,2,0,"span",95),f(4,"hr",96),c(),s(5,"div",97)(6,"div",98)(7,"div",99),x("click",function(){m(t);let o=d();return h(o.chnageData(o.options[0]))}),f(8,"img",100),s(9,"span",101),u(10),c(),f(11,"mat-progress-spinner",102)(12,"mat-progress-spinner",103),c(),s(13,"div",104),v(14,Hi,3,4,"span",5),c()(),s(15,"div",98)(16,"div")(17,"span",105),u(18),c()()(),s(19,"div",98)(20,"div",99),x("click",function(){m(t);let o=d();return h(o.chnageData(o.options[2]))}),f(21,"img",100),s(22,"span",101),u(23),c(),f(24,"mat-progress-spinner",102)(25,"mat-progress-spinner",103),c(),s(26,"div",104),v(27,Ji,3,4,"span",5),c()()()()}if(i&2){let t=d();a(2),l("ngIf",t.pollDetails&&t.pollDetails.pollType==="ht"&&!t.showPercentage),a(),l("ngIf",t.showPercentage),a(4),l("ngStyle",k(19,me,t.showPercentage?"":"pointer")),a(),l("src",t.img.one,ct),a(),l("ngStyle",k(21,he,t.options[0].length>3?"20px":"23.5px")),a(),B("",t.options[0]," "),a(),l("color",t.bgcolor),a(),l("color",t.fgcolor)("value",t.calculateValue(t.options[0])*100),a(2),l("ngIf",t.showPercentage),a(4),y(t.options[1]),a(2),l("ngStyle",k(23,me,t.showPercentage?"":"pointer")),a(),l("src",t.img.three,ct),a(),l("ngStyle",k(25,he,t.options[2].length>3?"20px":"23.5px")),a(),y(t.options[2]),a(),l("color",t.bgcolor),a(),l("color",t.fgcolor)("value",t.calculateValue(t.options[2])*100),a(2),l("ngIf",t.showPercentage)}}var Pt=class i{constructor(e,t,n,o,r,p,g,_,b,$,E){this.firestore=e;this.translate=t;this.pollService=o;this.route=r;this.helperService=p;this.cookieService=g;this.helper=_;this.userService=b;this.snackBar=$;this.pollSettingService=E;if(t.addLangs(["en","bn"]),t.setDefaultLang("en"),this.isBrowser=zt(n),this.isBrowser){if(this.showLoader=!0,this.mode=this.route.
1snapshot.paramMap.get("mode"),this.mode||(this.mode="p"),this._pollId=this.route.snapshot.paramMap.get("id"),this.pollChainEnabled)this.helper.getpollChainDetails(this._pollId).then(et=>{if(et&&this.mode=="u")this.chainDetails=et,this.pollChain(et);else if(this.getPollDetails(),this.cookieService.get(this._pollId)&&this.mode=="u"){var xe=JSON.parse(this.cookieService.get(this._pollId));this.checkAns(xe)}}).catch(et=>{console.log(et)});else if(this.getPollDetails(),this.cookieService.get(this._pollId)&&this.mode=="u"){var G=JSON.parse(this.cookieService.get(this._pollId));this.checkAns(G)}}}showLoader=!0;mode;img={one:"",two:"",three:""};value=100;value1=100;value2=100;img22=!1;showPercentage=!1;fgcolor="primary";bgcolor="accent";_pollId;contentId;instanceId;answer;selectedOptionValues=[];disabledOptions;activeSelectOptionPage;pollDetails;locationAndDeviceInfo;completedCount;cookieAnswered;getPsQuestionDetails={};isBrowser;shortUrl="";pollSettings;isAleradyTaken=!1;options;activeRegistration=!1;chainDetails;rating1=!1;rating2=!1;rating3=!1;rating4=!1;rating5=!1;isNoRating=!1;ratingValue;pollChainEnabled=!0;optionsWithUrl;checkAns(e){e?this.pollService.getPsInstancesDetails(e).then(t=>{t?(this.instanceId=t.instanceId,t.status=="c"?(this.getPsQuestionStats(this._pollId),this.pollService.getAnswerStatsDetails(t.instanceId).then(n=>{this.cookieAnswered=n.answer,this.showLoader=!1,this.getUniqueUrl(),this.isAleradyTaken=!0,this.showPercentage=!0})):this.showLoader=!1):this.showLoader=!1}):console.log("instanceId is not define")}set poll(e){if(e&&e.pollId&&(this.pollDetails=e,this.options=this.pollDetails.options,this._pollId=e.pollId,this.showLoader=!1,this.getPollSetting(),this.getRandomStats(this.pollDetails),this.pollDetails.htOptionWithImage&&!nt.isEmpty(this.pollDetails.htOptionWithImage))){let t=this.pollDetails.htOptionWithImage;for(let n in t)n===this.options[0]?this.img.one=t[n]:n===this.options[1]?(this.img.two=t[n],this.img22=!0):n===this.options[2]&&(this.img.three=t[n])}}ngOnInit(){this.isBrowser&&this.getpsdetails(this._pollId)}language(e){e==null?this.translate.use("en"):this.translate.use(e)}onAnswerSelected(e){e&&(this.answer=e)}chnageData(e){this.mode==="p"&&this.showPercentage==!1&&(this.getRandomStats(this.pollDetails),this.showPercentage=!0),this.showPercentage===!1&&this.mode!=="p"&&(this.options[0]==e&&(this.onAnswerSelected(this.options[0]),this.answer=[this.options[0]],this.addAnswer()),this.options[1]===e&&(this.onAnswerSelected(this.options[1]),this.answer=[this.options[1]],this.addAnswer()),this.options[2]===e&&(this.onAnswerSelected(this.options[2]),this.answer=[this.options[2]],this.addAnswer()),this.showPercentage=!0)}percentage(e,t){return 100*e/t}local(){let e={value:this.value,value1:this.value1,value2:this.value2,show:this.showPercentage};var t=JSON.stringify(e);window.localStorage.setItem("valueObj",t)}localget(){if(this.isBrowser){let e=window.localStorage.getItem("valueObj");e=JSON.parse(e),this.showPercentage=e.show}}addAnswer(){let e={refPsId:this._pollId,refQuestionId:this._pollId,answer:this.answer,refPsInstanceId:this.instanceId,refContentId:this.contentId,refAccountId:this.pollDetails.refAccountId,creationDate:O()};this.pollService.addPsAnswer(e).then(t=>{if(t==!0&&this.mode=="u"){let n;this.chainDetails?n=JSON.parse(this.cookieService.get(this.chainDetails.chainId)).instance:n=this.instanceId;let o={status:"c",completedOn:O()};this.pollService.updatePsInstance(n,o).then(r=>{this.pollSettings?.showPollStats&&this.refreshStats()})}})}addVote(){this.disabledOptions=!0,this.cookieAnswered=this.answer,this.mode=="u"&&this.addAnswer()}callToAction(){this.pollSettings&&this.pollSettings.requiresSignIn?this.activeRegistration=!0:this.activeSelectOptionPage=!0}refreshStats(){this.mode=="u"&&this.getPsQuestionStats(this._pollId)}redirectTo(){window.open("https://gospring.ai","_blank")}openWorkbench(){window.open("https://gospring.ai/projects","_blank")}getPsQuestionStats(e){this.pollService.getPsQuestionStatsDetails(e).then(t=>w(this,null,function*(){t?(this.getPsQuestionDetails=t,this.completedCount=this.getPsQuestionDetail
1s.answeredCount):this.completedCount=this.getPsQuestionDetails.answeredCount|0}))}calculateValue(e){if(this.showPercentage){let t=e+"_totalCount",n=this.getPsQuestionDetails[t]|0,o=this.getPsQuestionDetails.answeredCount;return o?n/o:0}else return 1}calculateWidth(e){let t=e+"_totalCount",n=this.getPsQuestionDetails[t]|0,o=this.getPsQuestionDetails.answeredCount;return o?n/o:0}calculateRatingWidth(e){let t=e+"_totalCount",n=this.getPsQuestionDetails[t]|0,o=this.getPsQuestionDetails.answeredCount;return o?n/o:0}getPsStats(e){e&&this.pollService.getPsStatsDetails(e).then(t=>{t&&t.completedCount?this.completedCount=t.completedCount:this.completedCount=0})}getPollDetails(){this._pollId=this.route.snapshot.paramMap.get("id"),this._pollId&&this.route.queryParams.subscribe(e=>{this.contentId=e.cid,this.pollService.plGetPollDetailsById(this._pollId,this.contentId).then(t=>{this.pollDetails=t,this.options=this.pollDetails.options,this.optionsWithUrl=this.pollDetails.htOptionWithImage;let n=this.optionsWithUrl;for(let o in n)o===this.options[0]?this.img.one=n[o]:o===this.options[1]?(this.img.two=n[o],this.img22=!0):o===this.options[2]&&(this.img.three=n[o]);this.cookieService.get(this._pollId)&&this.mode=="u"||(this.showLoader=!1),this.initializePoll(this.contentId),this.getPollSetting(),this.mode=="p"&&this.getRandomStats(this.pollDetails)})})}getImageUrl(e){return"url('"+e+"')"}getPollSetting(){return w(this,null,function*(){this.pollDetails&&(this.pollDetails.isTemplate||this.pollDetails.hasOwnsettings)?this.pollSettings=yield this.pollSettingService.getPsSettingsById(this.pollDetails.pollId):this.pollDetails.refTemplateId&&this.pollDetails.pollId&&(this.pollSettings=yield this.pollSettingService.getPsSettingsById(this.pollDetails.refTemplateId)),this.pollSettings&&!this.pollSettings.showCoverPage&&(this.activeSelectOptionPage=!0),this.language(this.pollSettings.language)})}initializePoll(e){this.mode=="u"?this.startPsInstance(this._pollId,e):console.log("preview screen ")}startPsInstance(e,t){this.helperService.getLocationAndDeviceInfo().then(n=>{let o;if(this.cookieService.get(e)&&(o=JSON.parse(this.cookieService.get(e))),n&&!o){this.locationAndDeviceInfo=n.data;let r={refPsId:e,refContentId:t,refAccountId:this.pollDetails.refAccountId,deviceInfo:n.data.deviceInfo,locationInfo:n.data.locationInfo};this.pollService.createPsInstance(r).then(p=>{this.instanceId=p;var g=JSON.stringify(this.instanceId);this.cookieService.set(this._pollId,g,60,"/",void 0,!1,"None")})}})}getRandomStats(e){if(e.pollType=="p"){this.getUniqueUrl(),this.getPsQuestionDetails={};let t=0;for(let n of e.options){let o=parseInt((Math.random()*100).toFixed(0));this.getPsQuestionDetails[n+"_totalCount"]=o,t=t+o}this.getPsQuestionDetails.answeredCount=t,this.completedCount=t}if(e.pollType=="5sr"){this.getUniqueUrl(),this.getPsQuestionDetails={};let t=0,n=0;for(let o of e.options){n=n+1;let r=n.toString(),p=parseInt((Math.random()*100).toFixed(0));this.getPsQuestionDetails[r+"_totalCount"]=p,t=t+p}this.getPsQuestionDetails.answeredCount=t,this.completedCount=t}if(e.pollType=="ht"){this.getUniqueUrl(),this.getPsQuestionDetails={};let t=0;for(let n of e.options){let o=parseInt((Math.random()*100).toFixed(0));this.getPsQuestionDetails[n+"_totalCount"]=o,t=t+o}this.getPsQuestionDetails.answeredCount=t,this.completedCount=t}}getUniqueUrl(){this.helper.getShortUrl(this.pollDetails).then(this.onShortUrl).catch(e=>{console.log(e),this.onShortUrl(null)})}onShortUrl=e=>{if(e&&(this.shortUrl=e),!this.shortUrl&&this.isBrowser){let t=Ot.playerUrl;this.shortUrl=t+"/pl/p/u/"+this._pollId+"?cid="+this.pollDetails.refContentId+"&t=false"}};getUniqueLink(){let t=new URLSearchParams(window.location.href).get("embedparenturl");return t?(t=t.replace("#","%23"),t):this.shortUrl?this.shortUrl:this.isBrowser?Ot.playerUrl+"/pl/p/u/"+this._pollId+"?cid="+this.pollDetails.refContentId+"&t=false":void 0}getFacebookLink(){var e=this.getUniqueLink();let t="https://www.facebook.com/sharer/sharer.php?u="+e;window.open(t,"_blank")}getTwitterLink(){var e=this.getUniqueLink();let t;t="http://twitter.com/share?text="+e,window.open(t,"_blank")}getLinkedInLink(){var e=this.getUniqueLink();let t="http://www.linkedin.com/shareArticle?mini=true&url="+e;window.open(t,"_blank")}getWhatsAppLink(){var e=this.getUniqueLink();let t;
1t="https://api.whatsapp.com/send?text="+e,window.open(t,"_blank")}copyLink(){var e=document.createElement("textarea"),t=this.getUniqueLink();t=t.replace("%23","#"),e.value=t,e.setAttribute("readonly",""),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e);var n="Copied to clipboard.";this.snackBar.open(n,"",{duration:2e3})}onRegister(e){e.started&&(this.activeSelectOptionPage=!0,this.activeRegistration=!1)}pollChain(e){return w(this,null,function*(){let t;if(this.cookieService.get(this._pollId)&&(t=JSON.parse(this.cookieService.get(this._pollId))),e&&t&&t.instances){var n,o,r;let p=[];for(n=0,o=t.instances.length;n<o;n+=10){r=t.instances.slice(n,n+10);let g=yield this.pollService.getCompletedInstanceDetails(r);p=p.concat(g)}this.instanceId=t.instance,this.pollIdForChain(e,"cookies");return}else this.pollIdForChain(this.chainDetails,"no-cookie")})}getChainPollDetails(){this._pollId&&this.route.queryParams.subscribe(e=>{this.contentId=e.cid,localStorage.setItem(`${this._pollId}`,"ChainTrue"),this.pollService.plGetPollDetailsById(this._pollId,this.contentId).then(t=>{this.pollDetails=t,this.pollDetails.pollType!=="ht"?this.options=nt.shuffle(this.pollDetails.options):(this.options=this.pollDetails.options,this.img.one=this.pollDetails.htOptionWithImage_1,this.img.three=this.pollDetails.htOptionWithImage_2),this.startChainInstance(),this.getPollSetting()})})}startChainInstance(){return w(this,null,function*(){if(this.cookieService.check(this.chainDetails.chainId)){var e=this.cookieService.get(this.chainDetails.chainId),t=JSON.parse(e);this.instanceId=t.instance;let n=yield this.pollService.getPsInstancesDetails(t.instance);if(n&&n.refPsId&&n.refPsId==this._pollId){this.instanceId=n.instanceId,this.showLoader=!1;return}}this.helperService.getLocationAndDeviceInfo().then(n=>{let o;if(this.cookieService.get(this.chainDetails.chainId)&&(o=JSON.parse(this.cookieService.get(this.chainDetails.chainId))),n){this.locationAndDeviceInfo=n.data;let r={refPsId:this._pollId,refContentId:this.contentId,refAccountId:this.pollDetails.refAccountId,deviceInfo:n.data.deviceInfo,locationInfo:n.data.locationInfo};this.pollService.createPsInstance(r).then(p=>{this.showLoader=!1,this.instanceId=p;let g=[];o&&o.instances&&(g=o.instances),g.push(p);var _={instance:this.instanceId,instances:g},b=JSON.stringify(_);this.cookieService.set(this.chainDetails.chainId,b,60,"/",void 0,!1,"None")})}})})}getPollById(){this._pollId&&this.route.queryParams.subscribe(e=>{this.contentId=e.cid,this.pollService.plGetPollDetailsById(this._pollId,this.contentId).then(t=>w(this,null,function*(){this.pollDetails=t,this.pollDetails.pollType!=="ht"?this.options=nt.shuffle(this.pollDetails.options):(this.options=this.pollDetails.options,this.img.one=this.pollDetails.htOptionWithImage_1,this.img.three=this.pollDetails.htOptionWithImage_2),this.getPollSetting(),this.instanceId?this.checkAns(this.instanceId):(this.startChainInstance(),this.checkAns(this.instanceId))}))})}pollIdForChain(e,t){let n=0,o,r=Date.now(),p=!1,g=Number.MAX_VALUE;for(;n<e.nodes.length;){let _=e.nodes[n]?.startTime,b=e.nodes[n]?.endTime,$=_.seconds*1e3+Math.floor(_.nanoseconds/1e6),E=b.seconds*1e3+Math.floor(b.nanoseconds/1e6);if(r>=$&&r<=E){this._pollId=e.nodes[n].pollId,p=!0,o=localStorage.getItem(`${this._pollId}`);break}else{let G=Math.abs(r-E);g>G&&(g=G,this._pollId=e.nodes[n].pollId)}n++}p?o===null?this.getChainPollDetails():this.getPollById():console.log(" time is up show them result==>",this._pollId)}getRating(e){e&&(this.ratingValue=e,this.answer=e,e==1&&(this.isNoRating=!0,this.rating1=!0,this.rating2=!1,this.rating3=!1,this.rating4=!1,this.rating5=!1),e==2&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!0,this.rating3=!1,this.rating4=!1,this.rating5=!1),e==3&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!1,this.rating3=!0,this.rating4=!1,this.rating5=!1),e==4&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!1,this.rating3=!1,this.rating4=!0,this.rating5=!1),e==5&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!1,this.rating3=!1,this.rating4=!1,this.rating5=!0))}removedRating(e){e&&(e==1&&(this.isNoRating=!1,this.rating1=!1,this.rating2=!1,this.rating3=!1,this.rating4=!1,this.rating5=!1),e==2&&(this.isNoRating=!0,this.rating1=!0,this.rating2=!1,this.rating3=!1,this.rating4=!1,this.rating5=!1),e==3&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!0,this.rating3=!1,this.rating4=!1,this.rating5=!1),e==4&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!1,this.rating3=!0,this.rating4=!1,this.rating5=!1),e==5&&(this.isNoRating=!0,this.rating1=!1,this.rating2=!1,this.rating3=!1,this.rating4=!0,this.rating5=!1))}getRatingValue(){this.disabledOptions=!0,this.cookieAnswered=this.ratingV
1alue,this.answer=[this.ratingValue],this.mode=="u"&&this.addAnswer()}getpsdetails(e){let t=V(this.firestore,"ps_question_stats"),n=R(t,M("refPsId","==",e)),o=Lt(n,r=>w(this,null,function*(){yield r.docChanges().forEach(p=>w(this,null,function*(){p.type==="added"&&(this.getPsQuestionDetails=p.doc.data()),p.type==="modified"&&(this.getPsQuestionDetails=p.doc.data())}))}))}static \u0275fac=function(t){return new(t||i)(S(X),S(Ht),S(Et),S(tt),S(_t),S(J),S(ht),S(J),S(Y),S(Wt),S(yt))};static \u0275cmp=st({type:i,selectors:[["app-poll"]],inputs:{poll:"poll"},decls:3,vars:3,consts:[[3,"ngClass","ngStyle",4,"ngIf"],["class","overlay",4,"ngIf"],["nb","","id","praent","class","scratch",4,"ngIf"],[3,"ngClass","ngStyle"],["class","container",4,"ngIf"],[4,"ngIf"],[1,"container"],["class","register-container",4,"ngIf"],["class","poll-container set-content-margin",4,"ngIf"],["class","poll-button-container set-content-margin",4,"ngIf"],["class","total-responses",4,"ngIf"],["class","image-container",4,"ngIf"],["class","userdetails",4,"ngIf"],["class","set-content-margin",4,"ngIf"],["class","question-text","style"," font-weight: normal;",3,"innerHtml",4,"ngIf"],["class","poll-button-container start set-content-margin",4,"ngIf"],[1,"image-container"],[1,"cover-image",3,"src"],["class","logo-image logo",3,"ngStyle",4,"ngIf"],[1,"logo-image","logo",3,"ngStyle"],[1,"userdetails"],["class","creator-image","alt","",3,"ngStyle",4,"ngIf"],[1,"creator-name"],["alt","",1,"creator-image",3,"ngStyle"],[1,"set-content-margin"],[1,"PeoplePulse",2,"font-size","20px"],[1,"question-text",2,"font-weight","normal",3,"innerHtml"],[1,"poll-button-container","start","set-content-margin"],["mat-raised-button","",1,"vote-button","submit",3,"click","ngClass"],[1,"register-container"],[3,"change","pollSetting","poll","instanceId"],[1,"Rectangle-901",2,"display","flex","justify-content","flex-start"],[1,"PeoplePulse"],["class","taken-poll",4,"ngIf"],[1,"question-text"],[1,"taken-poll"],[1,"poll-container","set-content-margin"],[3,"ngModelChange","multiple","ngModel"],[4,"ngFor","ngForOf"],[1,"option-list",3,"value","disabled"],[2,"display","flex"],["class","option-icon",3,"ngClass",4,"ngIf"],[2,"margin","2px 0px 0px 26px"],[1,"option-icon",3,"ngClass"],[3,"multiple","ngModel","ngModelChange",4,"ngIf"],[1,"responces-page-icon",2,"margin","-23px -14px 0px"],["class","responces-page-option-icon",3,"ngClass",4,"ngIf"],["class","progress-bar",4,"ngIf"],[1,"vote-percents"],[1,"responces-page-option-icon",3,"ngClass"],[1,"progress-bar"],[1,"poll-container","set-content-margin","star-rating"],[1,"poll-container","set-content-margin","display-rating-msg","dark-msg"],["style","display: -webkit-inline-flex;","class","rating-img",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"rating-img",2,"display","-webkit-inline-flex",3,"click","ngClass"],["src","assets/images/star_rating/poor.svg",1,"rating-img",3,"click"],["src","assets/images/star_rating/average.svg",1,"rating-img",3,"click"],["class","rating-img","src","assets/images/star_rating/good.svg",3,"click",4,"ngFor","ngForOf"],["src","assets/images/star_rating/good.svg",1,"rating-img",3,"click"],["class","rating-img","src","assets/images/star_rating/very-good.svg",3,"click",4,"ngFor","ngForOf"],["src","assets/images/star_rating/very-good.svg",1,"rating-img",3,"click"],["style","display: -webkit-inline-flex;","class","rating-img","src","assets/images/star_rating/excellent.svg",3,"click",4,"ngFor","ngForOf"],["src","assets/images/star_rating/excellent.svg",1,"rating-img",3,"click"],["src","assets/images/star_rating/excellent.svg",1,"rating-img",2,"display","-webkit-inline-flex",3,"click"],[1,"poll-button-container","set-content-margin"],["mat-raised-button","",1,"vote-button",3,"click","ngClass","ngStyle","disabled"],[1,"average-score-bar","total-poor"],[1,"average-score-bar","total-average"],[1,"average-score-bar","total-good"],[1,"average-score-bar","total-very-good"],[1,"average-score-bar","total-excellent"],[1,"poll-stats"],[1,"rating-responses","total-poor"],[1,"rating-title","dark-msg"],[1,"rating-percent","dark-msg"],[1,"rating-hr","dark-msg"],[1,"rating-responses","total-average"],[1,"rating-responses","total-good"],[1,"rating-responses","total-very-good"],[1,"rating-responses","total-excellent"],[1,"total-responses"],["class","share-option",4,"ngIf"],[1,"share-option"],["mat-button","","class","background",3,"click",4,"ngIf"],["mat-button","",1,"background",3,"click"],[1,"copy"],[1,"whatsapp"],[1,"facebook"],[1,"twitter"],[1,"linkedin"],[1,"hr_"],[3,"mode"],[1,"overlay"],[1,"loader"],["nb","","id","praent",1,"scratch"],["class","question-HT",4,"ngIf"],[1,"style-eight"],[1,"pollContainer"],[1,"optionContainer"],[3,"click","ngStyle"],["alt","",1,"poll-ps-img-ht-poll",2,"z-index","2",3,"src"],[1,"teamName",3,"ngStyle"],["value","100","strokeWidth","4.1",1,"backS
1pinner",3,"color"],["strokeWidth","4.1",1,"frontSpinner",3,"color","value"],[1,"perc22"],[1,"tieTag",2,"z-index","2"],[1,"question-HT"]],template:function(t,n){t&1&&v(0,Li,3,8,"div",0)(1,Wi,2,0,"div",1)(2,$i,28,27,"div",2),t&2&&(l("ngIf",n.pollDetails&&n.pollDetails.pollType!=="ht"),a(),l("ngIf",n.showLoader),a(),l("ngIf",n.pollDetails&&n.pollDetails.pollType==="ht"))},dependencies:[dt,Nt,gt,Ut,ne,ie,Zt,ut,ae,re,$t,vt,xt,Ct,Ft,ft],styles:['.container[_ngcontent-%COMP%]{width:100%;min-height:calc(var(--vh, 1vh) * 100 - 50px);background-color:var(--white);max-width:550px;margin:auto;overflow:hidden}.image-container[_ngcontent-%COMP%]{width:100%;position:relative;z-index:100}.cover-image[_ngcontent-%COMP%]{height:195px;margin:10px 14px 0;padding:0;border-radius:4px;background-color:var(--ice-blue);width:-webkit-fill-available}.logo-image[_ngcontent-%COMP%]{height:inherit;width:inherit;object-fit:cover;z-index:1;background-repeat:no-repeat;background-size:cover;background-position:50%}.logo[_ngcontent-%COMP%]{height:33px;width:83px;z-index:2;position:absolute;left:10px;background-size:contain;margin-top:-50px}.userdetails[_ngcontent-%COMP%]{width:55%;display:flex}.creator-image[_ngcontent-%COMP%]{height:48px;width:48px;border-radius:28px;object-fit:cover;z-index:1;background-repeat:no-repeat;background-size:cover;background-position:50%;margin:10px 6px 10px 10px}.creator-name[_ngcontent-%COMP%]{margin:auto auto auto 0;opacity:.9;font-family:var(--selected-font);font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.38;letter-spacing:.19px;text-align:left;color:var(--black)}.set-content-margin[_ngcontent-%COMP%]{margin:10px 16px}.Rectangle-901[_ngcontent-%COMP%]{width:92%;padding:11px 16px 10px;border-radius:4px;background-color:var(--ice-blue)}.PeoplePulse[_ngcontent-%COMP%]{font-family:Roboto;font-size:14px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.79;letter-spacing:.17px;text-align:left;color:#0e0e17;margin:0 32px 0 0}.question-text[_ngcontent-%COMP%]{margin:16px 16px 10px;font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;color:#0e0e17}.perc22[_ngcontent-%COMP%]{position:absolute;top:71px!important;left:24px!important;height:17px;width:27px;font-weight:600}div#praent[_ngcontent-%COMP%]{margin:10px auto;border:2px solid #0075eb;border-radius:6px;box-shadow:0 0 6px #4040404d;width:100%;max-width:530px;height:140px}hr[_ngcontent-%COMP%]{width:4%;background:#00b1cd;height:1px;border-radius:4px}hr.style-eight[_ngcontent-%COMP%]{height:2px;box-shadow:inset 0 9px 9px -3px #1cb4ce;border-radius:5px;width:3%;border:aliceblue}@media only screen and (max-width:600px){.Rectangle-901[_ngcontent-%COMP%]{border-radius:4px;background-color:var(--ice-blue)}div#praent[_ngcontent-%COMP%]{width:100%;max-width:90%}}.selectedAnswer[_ngcontent-%COMP%]{background-image:url(/assets/images/vote.png);border:solid 1px var(--very-light-pink);background-repeat:no-repeat;background-size:cover;background-position:0 -3px}.option-icon[_ngcontent-%COMP%]{border-radius:100%;width:20px;height:20px;text-align:center;background-color:var(--pale-grey);border:solid 1px var(--very-light-pink)}  .poll-container .mat-list-base .mat-list-item, .mat-list-base[_ngcontent-%COMP%]   .mat-list-option[_ngcontent-%COMP%]{display:block;height:46px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;border-radius:4px;background-color:var(--ice-blue);margin:10px 0 0}  .poll-container .mat-list-base{padding-top:0!important;display:block;-webkit-tap-highlight-color:transparent}.vote-button[_ngcontent-%COMP%]{font-size:16px;border-radius:4px;background-color:var(--primary);text-align:center;box-shadow:none}  .poll-button-container .mat-button, .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px;font-weight:500;width:100%;height:46px}  .poll-button-container .mat-button-disabled{opacity:.5}  .dark-mode-background .container.mat-button-disabled{opacity:1!important}.voteBtn[_ngcontent-%COMP%]{background-color:#fff;border:solid 1px #0e0e17;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;color:#0e0e17}.hr_[_ngcontent-%COMP%]{height:1px;background-color:var(--ice-blue);width:100%}.total-responses[_ngcontent-%COMP%]{font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;text-align:left;color:#0e0e17;margin:29px;text-align:center}.vote-percents[_ngcontent-%COMP%]{font-family:Roboto;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;text-align:left;color:#0e0e17}.responces-page-option-icon[_ngcontent-%COMP%]{border-radius:100%;width:20px;height:20px;text-align:center}.responces-page-icon[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}
1.progress-bar[_ngcontent-%COMP%]{margin-top:-4px}  .progress-bar .mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform .25s ease;background-color:var(--primary);border-radius:4px}.Powered-by[_ngcontent-%COMP%]{height:16px;margin:3px 5px 3px 0;opacity:.5;font-family:Roboto;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:2.08;letter-spacing:.14px;text-align:center;color:#0e0e17}.overlay[_ngcontent-%COMP%]{position:absolute;top:0;width:100vw;height:100vh;text-align:center;vertical-align:middle;opacity:.5;background-color:var(--primary);left:0;z-index:1}.loader[_ngcontent-%COMP%]{margin:auto;top:calc(50% - 50px)}.share-option[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-top:16px}.share-option[_ngcontent-%COMP%]   .background[_ngcontent-%COMP%]{height:46px;width:46px;max-width:46px;border-radius:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;min-width:unset}.share-option[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding:10px}.facebook[_ngcontent-%COMP%]{background-color:#365899;background:url(/assets/images/facebook.svg) no-repeat 50%}.twitter[_ngcontent-%COMP%]{background-color:#1da1f2;background:url(/assets/images/twitter.svg) no-repeat 50%}.whatsapp[_ngcontent-%COMP%]{background-color:#07bc4c;background:url(/assets/images/whatsapp.svg) no-repeat 50%}.linkedin[_ngcontent-%COMP%]{background-color:#33aada;background:url(/assets/images/linkedin.svg) no-repeat 50%}.copy[_ngcontent-%COMP%]{opacity:.5;background:url(/assets/images/content_copy_black_24dp.svg) no-repeat 50%}.dark-mode-background[_ngcontent-%COMP%]   .facebook[_ngcontent-%COMP%]{background-color:#365899;background:url("/assets/images/MDI _ facebook.svg") no-repeat 50%}.dark-mode-background[_ngcontent-%COMP%]   .twitter[_ngcontent-%COMP%]{background-color:#1da1f2;background:url("/assets/images/MDI _ twitter.svg") no-repeat 50%}.dark-mode-background[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{background-color:#07bc4c;background:url("/assets/images/MDI _ whatsapp.svg") no-repeat 50%}.dark-mode-background[_ngcontent-%COMP%]   .linkedin[_ngcontent-%COMP%]{background-color:#33aada;background:url("/assets/images/MDI _ linkedin.svg") no-repeat 50%}.dark-mode-background[_ngcontent-%COMP%]   .copy[_ngcontent-%COMP%]{opacity:.5;background:url("/assets/images/MDI _ content-copy.svg") no-repeat 50%}.dark-mode-background[_ngcontent-%COMP%]   .add-bg-color[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .share-option[_ngcontent-%COMP%]   .background[_ngcontent-%COMP%]{box-shadow:#0000007f 0 0 0 2000px inset}.dark-mode-background[_ngcontent-%COMP%]{background-size:cover;box-shadow:#000000b3 0 0 0 2000px inset;height:auto;min-height:100vh;width:100%;background-repeat:no-repeat!important;background-size:cover!important;background-position:50%!important;color:var(--white)!important}.dark-mode-background[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{background-color:transparent!important}.dark-mode-background[_ngcontent-%COMP%]   .PeoplePulse[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .creator-name[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .question-text[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .vote-percents[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .total-responses[_ngcontent-%COMP%]{color:var(--white)}.dark-mode-background[_ngcontent-%COMP%]   .option-list[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .Rectangle-901[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .hr_[_ngcontent-%COMP%]{background-color:#ffffff4d!important;color:var(--white);border-radius:4px;-webkit-backdrop-filter:brightness(.5);backdrop-filter:brightness(.5);background-color:var(--white)}.dark-mode-background[_ngcontent-%COMP%]   .option-icon[_ngcontent-%COMP%]{background-color:transparent}.dark-mode-background[_ngcontent-%COMP%]   .mat-button-disabled[_ngcontent-%COMP%]{background-color:var(--primary)!important}
1.taken-poll[_ngcontent-%COMP%]{font-size:14px;font-weight:700;margin:16px 16px 10px;font-family:Roboto}.dark-mode-background[_ngcontent-%COMP%]   .taken-poll[_ngcontent-%COMP%], .dark-mode-background[_ngcontent-%COMP%]   .dark-msg[_ngcontent-%COMP%]{color:var(--white)}.star-rating[_ngcontent-%COMP%]{margin:47px 0 112px;text-align:center}.rating-img[_ngcontent-%COMP%]{width:24px;height:24px;margin:0 30px 0 0;object-fit:contain;cursor:pointer}.display-rating-msg[_ngcontent-%COMP%]{margin:50px 38px 41px 16px;opacity:.7;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.56;letter-spacing:.19px;text-align:left;color:#0e0e17}.rating-responses[_ngcontent-%COMP%]{width:14px;height:14px;margin:3px 22px 2px 0;border-radius:100px}.total-poor[_ngcontent-%COMP%]{background-color:#ff4545}.total-average[_ngcontent-%COMP%]{background-color:#ffa534}.total-good[_ngcontent-%COMP%]{background-color:#ffe234}.total-very-good[_ngcontent-%COMP%]{background-color:#b7dd29}.total-excellent[_ngcontent-%COMP%]{background-color:#4f903b}.rating-hr[_ngcontent-%COMP%]{height:1px;margin:8px 0}.average-score-bar[_ngcontent-%COMP%]{height:36px;margin:20px 0 16px}.rating-title[_ngcontent-%COMP%]{margin:0 0 0 -5px;opacity:.9;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;letter-spacing:.2px;text-align:left;color:#0e0e17}.rating-percent[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:-22px;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;letter-spacing:.2px;text-align:left;color:#0e0e17}.dark-star-Img[_ngcontent-%COMP%]{background-image:url(/assets/images/star_rating/darkmode-star_outline.svg)}.light-star-Img[_ngcontent-%COMP%]{background-image:url(/assets/images/star_rating/MDI_star-outline.svg)}.poll-stats[_ngcontent-%COMP%]{display:-webkit-inline-flex}.vote-refresh[_ngcontent-%COMP%]{background-color:var(--white)!important;border:solid 1px #0e0e17!important}.mat-progress-spinner[_ngcontent-%COMP%]{display:block;position:relative;overflow:inherit;z-index:1}  .mat-progress-spinner circle, .mat-spinner[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%]{stroke:#0075eb}#spin[_ngcontent-%COMP%]{position:absolute;left:81px;z-index:0}#spin1[_ngcontent-%COMP%]{position:absolute;left:195px;z-index:0}#spin2[_ngcontent-%COMP%]{position:absolute;left:309px;z-index:0}img[_ngcontent-%COMP%]{height:53%;border-radius:95px;width:60px}img#one[_ngcontent-%COMP%]{position:relative;top:22%;left:126%}img#two[_ngcontent-%COMP%]{position:relative;top:22%;left:254%}img#three[_ngcontent-%COMP%]{position:relative;top:22%;left:233%}.imgD2[_ngcontent-%COMP%], .imgD3[_ngcontent-%COMP%]{width:15px}span#aus[_ngcontent-%COMP%]{position:relative;top:73%;left:71%}span#tie[_ngcontent-%COMP%]{position:relative;top:40%;left:401%}span#ind[_ngcontent-%COMP%]{position:relative;top:73%;left:7%}#percentage[_ngcontent-%COMP%]{position:absolute;top:161px;right:73%}#percentage1[_ngcontent-%COMP%]{position:absolute;top:161px;right:52%}#percentage2[_ngcontent-%COMP%]{position:absolute;top:161px;right:31%}.pr1[_ngcontent-%COMP%]{position:relative;top:79px}.question-HT[_ngcontent-%COMP%]{font-size:medium;font-weight:600;margin-top:10px;display:flex;justify-content:center}p[_ngcontent-%COMP%]{font-size:xx-large;border-radius:69px;color:#00b1cd;position:relative;left:41%;top:-20px}.foreground[_ngcontent-%COMP%]{display:inline;position:relative;top:-100px;left:0}@media (max-width:360px){  .mat-progress-spinner svg{width:70px!important}  .mat-progress-spinner svg{width:70px!important;top:0}.pr1[_ngcontent-%COMP%]{position:relative;top:79px;left:-4%;display:flex;flex-direction:column}img[_ngcontent-%COMP%]{height:38%;border-radius:95px;width:47px}span#aus[_ngcontent-%COMP%]{position:relative;top:63%;left:71%}#spin[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:absolute;left:64px;z-index:0}#percentage[_ngcontent-%COMP%]{position:relative;top:91px;right:10%}mat-progress-spinner#cSpin1[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;left:-4%}#percentage1[_ngcontent-%COMP%]{position:relative;top:89px;right:27%}img#one[_ngcontent-%COMP%]{position:relative;top:26%;left:117%}#spin2[_ngcontent-%COMP%]{position:absolute;
1left:237px;z-index:0}mat-progress-spinner#cSpin2[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;left:-18%}img#three[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:25%;left:-321%}span#ind[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:62%;left:-89px}#percentage2[_ngcontent-%COMP%]{position:relative;top:89px;right:28%}#percentage[_ngcontent-%COMP%]{position:relative;top:90px;right:8%}span#tie[_ngcontent-%COMP%]{position:relative;top:40%;left:168%}#spin1[_ngcontent-serverApp-c294][_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;left:-13%;z-index:0}mat-progress-spinner#cSpin1[_ngcontent-serverApp-c294][_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;left:3%}#percentage1[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:89px;right:23%}span#tie[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:40%;left:331%}#percentage[_ngcontent-%COMP%]{position:absolute;top:149px;right:70%}}@media (min-width:400px) and (max-width:420px){.pr1[_ngcontent-%COMP%]{position:relative;top:90px;right:34px;margin-right:-40px}mat-progress-spinner#cSpin1[_ngcontent-%COMP%]{position:relative;left:-3%}mat-progress-spinner#cSpin2[_ngcontent-%COMP%]{position:relative;left:-7%}img#three[_ngcontent-%COMP%]{position:relative;top:22%;left:42%}span#ind[_ngcontent-%COMP%]{position:relative;top:73%;left:-34px}span#tie[_ngcontent-%COMP%]{position:relative;top:40%;left:275%}#percentage1[_ngcontent-%COMP%]{position:relative;top:106px;right:13%}#percentage2[_ngcontent-%COMP%]{position:relative;top:106px;right:16%}#percentage[_ngcontent-%COMP%]{position:relative;top:105px;right:11%}}@media screen and (min-width:420px) and (max-width:545px){#percentage[_ngcontent-%COMP%]{position:relative!important;top:105px;right:8%}#percentage1[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:106px;right:16%}#percentage2[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:106px;right:22%}mat-progress-spinner#cSpin1[_ngcontent-%COMP%]{position:relative;left:-5%}mat-progress-spinner#cSpin2[_ngcontent-%COMP%]{position:relative;left:-11%}img#three[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:22%;left:-130%}span#ind[_ngcontent-%COMP%]{position:relative;top:73%;left:-57px}span#tie[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{position:relative;top:40%;left:222%}.question-HT[_ngcontent-serverApp-c294][_ngcontent-%COMP%]{font-size:medium;font-weight:600;margin-bottom:8px;position:relative;display:flex;justify-content:center}p[_ngcontent-%COMP%]{font-size:xx-large;border-radius:69px;color:#00b1cd;position:relative;left:43%;top:-20px}}@media screen and (max-width:480px){.pr1[_ngcontent-%COMP%]{position:relative;top:90px;right:14px;margin-right:-40px}.question-HT[_ngcontent-%COMP%]{font-size:medium;font-weight:600;margin-bottom:8px;position:relative;left:0;display:flex;justify-content:center}p[_ngcontent-%COMP%]{font-size:xx-large;border-radius:69px;color:#00b1cd;position:relative;left:43%;top:-20px}}.pollContainer[_ngcontent-%COMP%]{height:95px;margin:auto;display:flex;align-items:flex-start;justify-content:space-evenly}.optionContainer[_ngcontent-%COMP%]{width:70px;height:70px;display:inline-block;position:relative;display:flex;justify-content:center;text-align:center}.poll-ps-img-ht-poll[_ngcontent-%COMP%]{max-width:100%;position:absolute;max-height:100%;top:12px!important;left:21px!important;height:32px;width:32px;clip-path:circle(45% at 50% 49%)}.teamName[_ngcontent-%COMP%]{position:absolute;top:41px!important;left:23.5px;height:17px;width:27px;text-align:center}.tieTag[_ngcontent-%COMP%]{position:absolute;top:27px!important;left:21.5px!important;height:17px;width:27px}.backSpinner[_ngcontent-%COMP%]{width:68px!important;height:68px!important}.frontSpinner[_ngcontent-%COMP%]{width:68px!important;height:68px!important;position:relative;top:-68px}  .mat-progress-spinner svg{width:73px!important;height:70px!important}@media screen and (max-width:550px){.pollContainer[_ngcontent-%COMP%]{width:317px;height:95px}}@media screen and (max-width:350px){.pollContainer[_ngcontent-%COMP%]{width:308px;height:95px}}@media screen and (max-width:321px){.pollContainer[_ngcontent-%COMP%]{width:228px;
1height:95px}}  .mat-progress-spinner circle .pollContainer{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear;stroke-width:4px!important}']})};var Gi=[{path:"",component:Pt}],wt=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pt({type:i});static \u0275inj=lt({imports:[It.forChild(Gi),It]})};var ve=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pt({type:i});static \u0275inj=lt({imports:[Bt,wt,le,se,te,ee,Jt.forRoot({loader:{provide:Qt,useFactory:pe,deps:[jt]}})]})};export{ve as PollModule};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.