PageSourceSearch

https://members.myiep.uk/5693.c47191ef5b2acb63.js

js myiep.uk collected 2026-10-04 08:46:42 UTC 19,503 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[5693],{72099:(X,A,e)=>{e.r(A),e.d(A,{PollAdminModule:()=>Ft});var p=e(72922),f=e(74831),_=e(28905),C=e(15859),S=e(42608),Z=e(3999),P=e(70460),y=e(22855),c=e(60611),b=e(8239),g=e(4962),E=e(50245),z=e(45302),t=e(14026),j=e(23055),x=e(89969),r=e(5526),q=e(20173),tt=e(12743),G=e(19807),O=e(97482),L=e(52805),R=e(51248),h=e(92606),Y=e(72284),ot=e(77700),lt=e(14901),d=e(64177),nt=e(39989),B=e(10218),D=e(22009),et=e(63715);function st(l,i){if(1&l&&t._UZ(0,"div",7),2&l){const o=i.ngIf;t.Q6J("ngClass",o.type)("translate",o.message)}}function it(l,i){if(1&l){const o=t.EpF();t.TgZ(0,"button",8),t.NdJ("click.passive",function(){t.CHM(o);const s=t.oxw();return t.KtG(s.save(s.PollStatus.OPEN))}),t.qZA()}if(2&l){const o=t.oxw();t.Q6J("disabled",o.controlsDisabled)("translate",o.isNewOrDraft?"savePublish":"save")}}function at(l,i){if(1&l){const o=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click.passive",function(){t.CHM(o);const s=t.oxw();return t.KtG(s.save(s.PollStatus.DRAFT))}),t.qZA(),t.GkF(2,11),t.qZA()}if(2&l){const o=t.oxw(),n=t.MAs(6);t.xp6(1),t.Q6J("disabled",o.controlsDisabled)("translate","saveDraft"),t.xp6(1),t.Q6J("ngTemplateOutlet",n)}}const I="pollAdmin";let K=(()=>{class l{constructor(){this.PollStatus=r.G,this.submitting=!1,this._subs=[],this.fb=(0,t.f3M)(L.qu),this.cdr=(0,t.f3M)(t.sBO),this.alert=(0,t.f3M)(G.c),this.routing=(0,t.f3M)(c.Z),this.pollRes=(0,t.f3M)(h.Xu)}get controlsDisabled(){return this.submitting||this._pollControlsDisabled}getInputPoll(){return this.poll??null}ngOnDestroy(){(0,R.unsubscribeFromAll)(this._subs)}ngOnInit(){this.onPollChange(this.poll),this.initCtrl()}save(o){if(this.controlRef.markAllAsTouched(),this.controlsDisabled||!this.ctrl.valid)return void this.cdr.detectChanges();let n;const s={...this.ctrl.value,status:o};if(this.poll)s.id=this.poll.id,n=this.pollRes.update;else if(n=this.pollRes.create,s.questions){s.questions=(0,j.Z)(s.questions);for(const a of s.questions)delete a.id}this.submitting=!0,this.cdr.markForCheck(),this._subs.push(n.call(this.pollRes,s).pipe((0,x.b)({error:()=>{this.alert.alertError({key:"unableSavePoll",ns:I})},next:a=>{this.alert.alertSuccess({key:"savePollOk",ns:I}),this.poll?this.onPollChange(a):this.routing.go("admin.polls.one.edit",{id:a.id}).catch(console.error)}})).subscribe((0,z.d)(()=>{this.submitting=!1,this.cdr.markForCheck()})))}initCtrl(){const o={answers_editable:Boolean(this.poll?.answers_editable),close_date:this.poll?.close_date||null,description:this.poll?.description||null,questions:this.poll?.questions||[],subtype:this.poll?.subtype||q.PollSubType.TEXT,summary_after_vote:Boolean(this.poll?.summary_after_vote),title:this.poll?.title||null,visibility:this.poll?.visibility||tt.PollVisibility.PUBLIC};this.ctrl=this.fb.control(o,ot.m)}onPollChange(o){this.poll=o,this.isNewOrDraft=!o||o.status===r.G.DRAFT,this._pollControlsDisabled=null!=o&&(o.status===r.G.CLOSED||o.status===r.G.MANUALLY_CLOSED),this.questionEditsDisabled=null!=o&&o.status!==r.G.DRAFT,this.updateStatusAlert()}updateStatusAlert(){this.pollStatusAlert=this.poll&&this.poll.status!==r.G.DRAFT?this.poll.status===r.G.OPEN?{message:"pollOpenAlert",type:"alert-warning"}:[r.G.CLOSED,r.G.MANUALLY_CLOSED].includes(this.poll.status)?{message:"pollClosedAlert",type:"alert-warning"}:void 0:{message:"pollDraftAlert",type:"alert-info"}}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["tg-poll-edit"]],viewQuery:function(o,n){if(1&o&&t.Gf(Y.u,7),2&o){let s;t.iGM(s=t.CRH())&&(n.controlRef=s.first)}},inputs:{poll:"poll"},exportAs:["tgPollEdit"],features:[t._Bn([{provide:lt.K,useExisting:(0,t.Gpc)(()=>l)}],[{provide:O.z,useValue:I}])],decls:8,vars:6,consts:[["class","alert text-center",3,"ngClass","translate",4,"ngIf"],[1,"container-fluid"],[3,"formControl","disableControl","disableQuestionEdits"],[1,"form-group"],[1,"col-xs-12","text-right"],["tplSaveBtn",""],["class","btn-toolbar",4,"ngIf","ngIfElse"],[1,"alert","text-center",3,"ngClass","translate"],["type","button",1,"btn","btn-success",3,"disabled","translate","click.passive"],[1,"btn-toolbar"],["type","button",1,"btn","btn-primary",3,"disabled","translate","click.passive"],[3,"ngTemplateOutlet"]],template:function(o,n){if(1&o&&(t.YNc(0,st,1,2,"div",0),t.TgZ(1,"div",1)(2,"tg-poll-editor",2)(3,"div",3)(4,"div",4),t.YNc(5,it,1,2,"ng-template",null,5,t.W1O),t.YNc(7,at,3,3,"div",6),t.qZA()()()()),2&o){const s=t.MAs(6);t.Q6J("ngIf",n.pollStatusAlert),t.xp6(2),t.Q6J("formControl",n.ctrl)("disableControl",n.controlsDisabled)("disableQuestionEdits",n.questionEditsDisabled),t.xp6(5),t.Q6J("ngIf",n.isNewOrDraft)("ngIfElse",s)}},dependencies:[L.JJ,L.oH,d.mk,d.O5,d.tP,nt.d,B.P,D.a,et.r,Y.u],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),l})();var v=e(74174),H=e(25111),V=e(87638),w=e(97574),M=e(92194),rt=e(662),U=e(5296),J=e(3811),$=e(49389),ct=e(85960),pt=e(43061),Q=e(85868),dt=e(90237),k=e(5830),F=e(50339),mt=e(56380),ut=e(65624),ft=e(74647),N=e(64683);function gt(l,i){if(1&l&&(t.TgZ(0,"a",1),t.ALo(1,"tr"),t._UZ(2,"i",2),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&l){const o=t.oxw();t.Q6J("tooltip",t.lcZ(1,4,"forumPost"))("uiSref","forums.category.topic.view")("uiParams",o.forumPostParams),t.xp6(4),t.hij(" ",o.forumPostTopic.name,"")}}let ht=(()=>{class l{ngOnChanges(){this.forumPostTopic=this.poll.forumpost.topic,this.forumPostParams={cat:this.poll.forumpost.category.slug,index:this.poll.forumpost.index,topicSlug:this.forumPostTopic.slug}}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["tg-poll-association"]],inputs:{poll:"poll"},features:[t._Bn([{provide:O.z,useValue:"pollAdmin"}]),t.TTD],decls:1,vars:1,consts:[[3,"tooltip","uiSref","uiParams",4,"ngIf"],[3,"tooltip","uiSref","uiParams"],[1,"fa","fa-comments-o"]],template:function(o,n){1&o&&t.YNc(0,gt,5,6,"a",0),2&o&&t.Q6J("ngIf",null==n.poll?null:n.poll.forumpost)},dependencies:[d.O5,Q.G,k.K,F.k,p.UISref,p.AnchorUISref,f.i9,N.H],encapsulation:2,changeDetection:0}),l})();function At(l,i){1&l&&t._UZ(0,"th",4),2&l&&t.Q6J("translate","association")}function _t(l,i){if(1&l&&t._UZ(0,"time",22),2&l){const o=t.oxw().$implicit;t.Q6J("tgLocalTime",o.close_date)("dateFormat","mediumDate")("timezone",o.timezone)}}function Pt(l,i){if(1&l&&t._UZ(0,"tg-poll-association",24),2&l){const o=t.oxw(2).$implicit;t.Q6J("poll",o)}}function bt(l,i){if(1&l&&(t.TgZ(0,"td"),t.YNc(1,Pt,1,1,"tg-poll-association",23),t.qZA()),2&l){const o=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.hasAssociation(o))}}const T=function(l){return{id:l}};function xt(l,i){if(1&l&&(t.TgZ(0,"a",25),t.ALo(1,"tr"),t._UZ(2,"i",26),t.qZA()),2&l){const o=t.oxw().$implicit,n=t.oxw(2);t.Q6J("uiSref","admin.polls.one.edit")("uiParams",t.VKq(6,T,o.id))("tooltip",t.lcZ(1,4,"edit"))("placement",n.ttPosition)}}function vt(l,i){if(1&l&&(t.TgZ(0,"a",25),t.ALo(1,"tr"),t._UZ(2,"i",27),t.qZA()),2&l){const o=t.oxw().$implicit,n=t.oxw(2);t.Q6J("uiSref","admin.polls.one.edit")("uiParams",t.VKq(6,T,o.id))("tooltip",t.lcZ(1,4,"pollViewSettings"))("placement",n.ttPosition)}}function Tt(l,i){if(1&l&&(t.TgZ(0,"a",28),t.ALo(1,"tr"),t._UZ(2,"i",29),t.qZA()),2&l){const o=t.oxw().$implicit,n=t.oxw(2);t.Q6J("uiSref","admin.polls.one.stats")("uiParams",t.VKq(6,T,o.id))("tooltip",t.lcZ(1,4,"stats"))("placement",n.ttPosition)}}
1function Ct(l,i){if(1&l){const o=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(o);const s=t.oxw(2).$implicit,a=t.oxw(2);return t.KtG(a.close(s))}),t.ALo(1,"tr"),t._UZ(2,"i",33),t.qZA()}if(2&l){const o=t.oxw(4);t.Q6J("tooltip",t.lcZ(1,2,"close"))("placement",o.ttPosition)}}function St(l,i){if(1&l){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",30),t.NdJ("cbOnSuccess",function(){t.CHM(o);const s=t.oxw(3);return t.KtG(s.linkCopied(!0))})("cbOnError",function(){t.CHM(o);const s=t.oxw(3);return t.KtG(s.linkCopied(!1))}),t.ALo(2,"tr"),t._UZ(3,"i",31),t.qZA(),t.YNc(4,Ct,3,4,"button",19),t.BQk()}if(2&l){const o=t.oxw().$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("cbContent",o.pollUrl)("tooltip",t.lcZ(2,4,"pollUrlCopyTT"))("placement",n.ttPosition),t.xp6(3),t.Q6J("ngIf",o.status===n.PollStatus.OPEN)}}function Zt(l,i){if(1&l){const o=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(o);const s=t.oxw().$implicit,a=t.oxw(2);return t.KtG(a.rmAssociation(s))}),t.ALo(1,"tr"),t._UZ(2,"i",34),t.qZA()}if(2&l){const o=t.oxw(3);t.Q6J("tooltip",t.lcZ(1,2,"removeAssociation"))("placement",o.ttPosition)}}function yt(l,i){if(1&l){const o=t.EpF();t.TgZ(0,"tr",9)(1,"td")(2,"a",10),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"tr"),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"tr"),t.qZA(),t.TgZ(10,"td"),t.YNc(11,_t,1,3,"time",11),t.qZA(),t.YNc(12,bt,2,1,"td",12),t.TgZ(13,"td")(14,"div",13),t.YNc(15,xt,3,8,"a",14),t.YNc(16,vt,3,8,"ng-template",null,15,t.W1O),t.YNc(18,Tt,3,8,"a",16),t.TgZ(19,"a",17),t.ALo(20,"tr"),t._UZ(21,"i",18),t.qZA(),t.YNc(22,St,5,6,"ng-container",12),t.YNc(23,Zt,3,4,"button",19),t.TgZ(24,"button",20),t.NdJ("click",function(){const a=t.CHM(o).$implicit,u=t.oxw(2);return t.KtG(u.rm(a))}),t.ALo(25,"tr"),t._UZ(26,"i",21),t.qZA()()()()}if(2&l){const o=i.$implicit,n=t.MAs(17),s=t.oxw(2);t.Q6J("ngClass",s.rowClassFor(o)),t.xp6(2),t.Q6J("uiSref","polls.poll")("uiParams",t.VKq(26,T,o.id)),t.xp6(1),t.Oqu(o.title),t.xp6(2),t.Oqu(t.lcZ(6,18,"POLL_TYPE_"+o.type)),t.xp6(3),t.Oqu(t.lcZ(9,20,"POLL_STATUS_"+o.status)),t.xp6(3),t.Q6J("ngIf",o.close_date),t.xp6(1),t.Q6J("ngIf",s.showAssociations),t.xp6(3),t.Q6J("ngIf",!o.isClosed)("ngIfElse",n),t.xp6(3),t.Q6J("ngIf",o.status!==s.PollStatus.DRAFT),t.xp6(1),t.Q6J("href",s.csvUrl(o),t.LSH)("tooltip",t.lcZ(20,22,"exportCSV"))("placement",s.ttPosition),t.xp6(3),t.Q6J("ngIf",o.status===s.PollStatus.OPEN),t.xp6(1),t.Q6J("ngIf",s.hasAssociation(o)),t.xp6(1),t.Q6J("tooltip",t.lcZ(25,24,"delete"))("placement",s.ttPosition)}}function Et(l,i){if(1&l){const o=t.EpF();t.TgZ(0,"table",3)(1,"thead")(2,"tr"),t._UZ(3,"th",4)(4,"th",4)(5,"th",4)(6,"th",4),t.YNc(7,At,1,1,"th",5),t._UZ(8,"th",6),t.qZA()(),t.TgZ(9,"tbody",7),t.NdJ("scrolled",function(){t.CHM(o);const s=t.oxw();return t.KtG(s.scroller.scrolled())}),t.YNc(10,yt,27,28,"tr",8),t.qZA()()}if(2&l){const o=t.oxw();t.xp6(3),t.Q6J("translate","title"),t.xp6(1),t.Q6J("translate","type"),t.xp6(1),t.Q6J("translate","status"),t.xp6(1),t.Q6J("translate","closeDate"),t.xp6(1),t.Q6J("ngIf",o.showAssociations),t.xp6(1),t.Q6J("translate","actions"),t.xp6(1),t.Q6J("immediateCheck",!0)("scrollWindow",!0)("infiniteScrollDisabled",o.busy||o.done),t.xp6(1),t.Q6J("ngForOf",o.data)("ngForTrackBy",o.TRACK_BY_ID)}}function Ot(l,i){1&l&&(t.TgZ(0,"div",35),t._UZ(1,"tg-loader-spinner"),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"tr"),t.qZA()()),2&l&&(t.xp6(3),t.hij(" ",t.xi3(4,1,"loading","common"),""))}function Lt(l,i){if(1&l&&t._UZ(0,"div",36),2&l){const o=t.oxw();t.Q6J("translate",o.data.length?"noMorePolls":"noPolls")}}const m="pollAdmin";let W=(()=>{class l{constructor(o,n,s,a,u,Nt,Gt){this.pollRes=o,this.alert=n,this.data=s,this.tgModal=u,this.cdr=Nt,this.scroller=Gt,this.PollStatus=r.G,this.TRACK_BY_ID=ct.trackById,this.busy=!1,this.done=!1,this.ttPosition="left",this._subs=[],this.showAssociations=a.enable&&a.polls.enable}close(o){const n={poll:o.title};this._subs.push(this.tgModal.confirmTranslated("confirmClose",m,n).pipe((0,J.w)(()=>this.pollRes.update({id:o.id,status:r.G.MANUALLY_CLOSED}).pipe((0,x.b)({error:()=>{this.alert.alertError({key:"pollCloseFail",ns:m,placeholders:n})},next:s=>{this.alert.alertSuccess({key:"pollClosed",ns:m,placeholders:n});const a=this.data.findIndex(u=>u.id===o.id);-1!==a&&(this.data[a]=o.$clone({status:s.status}),this.data=[...this.data],this.cdr.markForCheck())}}))),(0,U.H)("[AdminPollList.close]")).subscribe(M.V))}csvUrl(o){return`/api/v1/poll/${o.id}/csv`}hasAssociation(o){return Boolean(o.forumpost)}linkCopied(o){o?this.alert.alertSuccess({key:"pollUrlCopyOk",ns:m}):this.alert.alertError({key:"pollUrlCopyErr",ns:m})}ngOnDestroy(){(0,R.unsubscribeFromAll)(this._subs)}ngOnInit(){this.scroller.useCursor(!0).setParams(l.PARAMS).setCallable(
1o=>this.pollRes.query({params:o})).getData(20,this.data).subscribe((0,rt.e)(o=>{this.data=o,this.cdr.markForCheck()})),this.scroller.mirrorDoneBusy(this.cdr,this,"busy","done"),this.scroller.alertOnErrors()}rm(o){const n={poll:o.title};this._subs.push(this.tgModal.confirmTranslated("confirmDelete",m,n).pipe((0,J.w)(()=>this.pollRes.delete(o.id).pipe((0,x.b)({error:()=>{this.alert.alertError({key:"pollDeleteFail",ns:m,placeholders:n})},next:()=>{this.alert.alertSuccess({key:"pollDeleted",ns:m,placeholders:n});const s=this.data.findIndex(a=>a.id===o.id);-1!==s&&(this.data.splice(s,1),this.data=[...this.data],this.cdr.markForCheck())}}))),(0,U.H)("[PollAdmin.rm]")).subscribe(M.V))}rmAssociation(o){const n="forums";this._subs.push(this.tgModal.confirmTranslated("confirmDetach",n).pipe((0,J.w)(()=>this.pollRes.detach({poll:o.id,post:o.forumpost.id}).pipe((0,x.b)({error:()=>{this.alert.alertError({key:"pollDetachFail",ns:n})},next:()=>{this.alert.alertSuccess({key:"pollDetached",ns:n});const s=this.data.findIndex(u=>u.id===o.id);if(-1===s)return;const a=this.data[s];delete a.forumpost,this.data[s]=a.$clone(),this.data=[...this.data],this.cdr.markForCheck()}}))),(0,U.H)("[PollAdmin.rmAssociation]")).subscribe(M.V))}rowClassFor(o){return o.isClosed?"warning":o.status===r.G.OPEN?"success":o.status===r.G.DELETED?"danger":[]}}return l.PARAMS={skip_user_vote:1},l.\u0275fac=function(o){return new(o||l)(t.Y36(h.Xu),t.Y36(G.c),t.Y36(v.wp),t.Y36(v.GL),t.Y36(pt.U),t.Y36(t.sBO),t.Y36($.TgInfiniteScroller))},l.\u0275cmp=t.Xpm({type:l,selectors:[["tg-admin-poll-list"]],features:[t._Bn([{provide:O.z,useValue:m},$.TgInfiniteScroller])],decls:3,vars:3,consts:[["class","table table-condensed table-bordered table-striped table-hover",4,"ngIf"],["class","alert alert-info text-center",4,"ngIf"],["class","alert alert-info text-center",3,"translate",4,"ngIf"],[1,"table","table-condensed","table-bordered","table-striped","table-hover"],[3,"translate"],[3,"translate",4,"ngIf"],[1,"col-xs-3",3,"translate"],["infiniteScroll","",3,"immediateCheck","scrollWindow","infiniteScrollDisabled","scrolled"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngClass"],[3,"uiSref","uiParams"],[3,"tgLocalTime","dateFormat","timezone",4,"ngIf"],[4,"ngIf"],[1,"btn-group","btn-group-xs"],["class","btn btn-primary",3,"uiSref","uiParams","tooltip","placement",4,"ngIf","ngIfElse"],["viewClosed",""],["class","btn btn-default",3,"uiSref","uiParams","tooltip","placement",4,"ngIf"],["type","button","target","_blank",1,"button","btn","btn-primary",3,"href","tooltip","placement"],[1,"fa","fa-fw","fa-file-excel-o"],["class","btn btn-warning","type","button",3,"tooltip","placement","click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"tooltip","placement","click"],[1,"fa","fa-fw","fa-tras
1h"],[3,"tgLocalTime","dateFormat","timezone"],[3,"poll",4,"ngIf"],[3,"poll"],[1,"btn","btn-primary",3,"uiSref","uiParams","tooltip","placement"],[1,"fa","fa-fw","fa-pencil"],[1,"fa","fa-fw","fa-info"],[1,"btn","btn-default",3,"uiSref","uiParams","tooltip","placement"],[1,"fa","fa-bar-chart","fa-fw"],["type","button","ngxClipboard","",1,"btn","btn-default",3,"cbContent","tooltip","placement","cbOnSuccess","cbOnError"],[1,"fa","fa-fw","fa-link"],["type","button",1,"btn","btn-warning",3,"tooltip","placement","click"],[1,"fa","fa-fw","fa-times"],[1,"fa","fa-sign-out"],[1,"alert","alert-info","text-center"],[1,"alert","alert-info","text-center",3,"translate"]],template:function(o,n){1&o&&(t.YNc(0,Et,11,11,"table",0),t.YNc(1,Ot,5,4,"div",1),t.YNc(2,Lt,1,1,"div",2)),2&o&&(t.Q6J("ngIf",n.data.length),t.xp6(1),t.Q6J("ngIf",n.busy),t.xp6(1),t.Q6J("ngIf",n.done))},dependencies:[d.mk,d.sg,d.O5,Q.G,B.P,dt.I,k.K,D.a,F.k,p.UISref,p.AnchorUISref,mt.j,ut.N,ft.Ry,f.i9,_.ClipboardDirective,ht,N.H],styles:[".btn-group[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin:2px}"],changeDetection:0}),l})();var Dt=e(88696);function It(l,i){1&l&&(t.TgZ(0,"a",4),t._UZ(1,"i",5),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"tr"),t.qZA()()),2&l&&(t.Q6J("uiSref","admin.polls.list"),t.xp6(3),t.hij(" ",t.xi3(4,2,"backToList","pollAdmin"),""))}function Mt(l,i){1&l&&(t.TgZ(0,"div",6),t._uU(1),t.ALo(2,"tr"),t.qZA()),2&l&&(t.xp6(1),t.Oqu(t.xi3(2,1,"unableToLoadPoll","poll")))}function Ut(l,i){if(1&l&&(t.TgZ(0,"h1"),t._uU(1),t.qZA(),t.TgZ(2,"header",7),t.GkF(3,1),t.TgZ(4,"a",8),t._UZ(5,"i",9),t.TgZ(6,"span"),t._uU(7),t.ALo(8,"tr"),t.qZA()()(),t._UZ(9,"tg-poll-stats-summary-vis",10),t.TgZ(10,"footer",7),t.GkF(11,1),t.qZA()),2&l){const o=t.oxw(),n=t.MAs(1);t.xp6(1),t.Oqu(o.poll.title),t.xp6(2),t.Q6J("ngTemplateOutlet",n),t.xp6(1),t.Q6J("href",o.csvUrl,t.LSH),t.xp6(3),t.hij(" ",t.xi3(8,7,"exportCSV","pollAdmin"),""),t.xp6(2),t.Q6J("poll",o.poll)("stats",o.stats),t.xp6(2),t.Q6J("ngTemplateOutlet",n)}}let Jt=(()=>{class l{constructor(o,n){this.poll=o,this.stats=n,this.errored=!o||!n,o&&n?(this.errored=!1,this.csvUrl=`/api/v1/poll/${o.id}/csv`):this.errored=!1}}return l.\u0275fac=function(o){return new(o||l)(t.Y36(v.wp),t.Y36(w.POLL_ADMIN_STATS_PAGE_STATS))},l.\u0275cmp=t.Xpm({type:l,selectors:[["tg-admin-poll-stats-page"]],decls:6,vars:3,consts:[["backlink",""],[3,"ngTemplateOutlet"],["class","alert alert-danger",4,"ngIf","ngIfElse"],["notErrored",""],[1,"btn","btn-default",3,"uiSref"],[1,"fa","fa-arrow-circle-o-left"],[1,"alert","alert-danger"],[1,"text-right"],["target","_blank",1,"btn","btn-default",3,"href"],[1,"fa","fa-file-excel-o"],[3,"poll","stats"]],template:function(o,n){if(1&o&&(t.YNc(0,It,5,5,"ng-template",null,0,t.W1O),t.GkF(2,1),t.YNc(3,Mt,3,4,"div",2),t.YNc(4,Ut,12,10,"ng-template",null,3,t.W1O)),2&o){const s=t.MAs(1),a=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(1),t.Q6J("ngIf",n.errored)("ngIfElse",a)}},dependencies:[d.O5,d.tP,Q.G,D.a,F.k,p.UISref,p.AnchorUISref,Dt.H,N.H],styles:["tg-loader-spinner[_ngcontent-%COMP%]{height:4em;width:4em}.btn[_ngcontent-%COMP%]{margin-left:3px}"],changeDetection:0}),l})();const Qt=[{abstract:!0,component:V.J9,name:"admin.polls",url:"/polls"},{component:K,name:"admin.polls.create",url:"/create"},{abstract:!0,component:V.J9,name:"admin.polls.one",resolve:[(0,H.b)([g.Transition,h.Xu],function(){var l=(0,b.Z)(function*(i,o){try{return yield(0,E.n)(o.get(i.params().id))}catch{return null}});return function(i,o){return l.apply(this,arguments)}}())],url:"/{id:ObjectId}"},{bindings:{poll:"_poll"},component:K,name:"admin.polls.one.edit",resolve:{_poll:[v.wp,g.Transition,c.Z,(l,i,o)=>(l||(i.abort(),o.go("admin.polls.list").catch(console.error)),l)]},url:"/edit"},{component:Jt,name:"admin.polls.one.stats",resolve:[{deps:[g.Transition,h.Xu],resolveFn:(l,i)=>(0,b.Z)(function*(){try{return yield(0,E.n)(i.stats({id:l.params().id}))}catch{return null}})(),token:w.POLL_ADMIN_STATS_PAGE_STATS}],url:"/stats"},{component:W,name:"admin.polls.list",resolve:[(0,H.b)([h.Xu],l=>(0,E.n)(l.query({params:W.PARAMS})))],url:""}];let Ft=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[C.GlobalModule,p.UIRouterModule.forChild({config:c.Z.config(Qt)}),y.o,S.K,P.TgInfiniteScrollModule,f.z8,Z.b,_.ClipboardModule]}),l})()},95877:(X,A,e)=>{e.d(A,{Q:()=>y});var p=e(52805),f=e(74831),_=e(36818),C=e(15859),S=e(62598),Z=e(84793),P=e(14026);let y=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275mod=P.oAB({type:c}),c.\u0275inj=P.cJS({imports:[C.GlobalModule,S.H,f.z8,_.H3,Z.r,p.UX]}),c})()}}]);

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.