PageSourceSearch

https://members.pipacampaign.org/9074.1a1763770a95d756.js

js pipacampaign.org collected 2026-10-02 17:41:54 UTC 5,941 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[9074],{47365:(z,f,s)=>{s.r(f),s.d(f,{SchedulerAdminModule:()=>X});var c=s(72922),S=s(15859),T=s(70460),A=s(60611),C=s(4962),h=s(50245),r=(()=>{return(t=r||(r={})).RECURRING="recurring",t.SCHEDULED="scheduled",t.COMPLETED="completed",t.FAILED="failed",r;var t})(),b=s(25111),y=s(662),F=s(74174),g=s(49389),x=s(85960),e=s(14026);const v=new e.OlP("stats"),u=new e.OlP("type");var m=s(58799),a=s(64177),O=s(10218),D=s(78798),E=s(22009),I=s(65624),L=s(74647);const U=["scheduler-list-tr",""];function R(t,l){1&t&&e._uU(0),2&t&&e.Oqu(l.$implicit)}function Z(t,l){1&t&&(e._uU(0),e.ALo(1,"date")),2&t&&e.Oqu(e.xi3(1,1,l.$implicit,"short"))}const M=function(t){return{$implicit:t}};function J(t,l){if(1&t&&(e.TgZ(0,"td"),e.GkF(1,3),e.qZA()),2&t){const n=l.$implicit,o=e.oxw(),d=e.MAs(3),p=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",o.isDate(o.job[n])?d:p)("ngTemplateOutletContext",e.VKq(2,M,o.job[n]))}}let N=(()=>{class t{isDate(n){return n instanceof Date}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["tr","scheduler-list-tr",""]],inputs:{job:["scheduler-list-tr","job"],fields:"fields"},attrs:U,decls:5,vars:1,consts:[["textField",""],["dateField",""],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(e.YNc(0,R,1,1,"ng-template",null,0,e.W1O),e.YNc(2,Z,2,4,"ng-template",null,1,e.W1O),e.YNc(4,J,2,4,"td",2)),2&n&&(e.xp6(4),e.Q6J("ngForOf",o.fields))},dependencies:[a.sg,a.tP,a.uU],encapsulation:2,changeDetection:0}),t})();function Y(t,l){1&t&&e._UZ(0,"th",7),2&t&&e.Q6J("translate","field_"+l.$implicit)}function j(t,l){if(1&t&&e._UZ(0,"tr",8),2&t){const n=l.$implicit,o=e.oxw(2);e.Q6J("scheduler-list-tr",n)("fields",o.fields[o.type])}}function P(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"table",3)(1,"thead")(2,"tr"),e.YNc(3,Y,1,1,"th",4),e.qZA()(),e.TgZ(4,"tbody",5),e.NdJ("scrolled",function(){e.CHM(n);const d=e.oxw();return e.KtG(d.scroller.scrolled())}),e.YNc(5,j,1,2,"tr",6),e.qZA()()}if(2&t){const n=e.oxw();e.xp6(3),e.Q6J("ngForOf",n.fields[n.type]),e.xp6(1),e.Q6J("immediateCheck",!0)("scrollWindow",!0)("infiniteScrollDisabled",n.busy||n.done),e.xp6(1),e.Q6J("ngForOf",n.jobs)("ngForTrackBy",n.trackFn)}}function Q(t,l){1&t&&e._UZ(0,"div",9),2&t&&e.Q6J("translate","noJobs")}function B(t,l){1&t&&e._UZ(0,"tg-loader-spinner-lg")}class i{constructor(l,n,o,d,p){this.scroller=l,this.cdr=n,this.jobs=o,this.type=d,this.res=p,this.busy=!1,this.done=!1,this.trackFn=x.trackById}ngOnInit(){this.fields={[r.RECURRING]:["name","lastRunAt","nextRunAt","repeatInterval"],[r.COMPLETED]:["name","lastRunAt"],[r.SCHEDULED]:["name","nextRunAt"],[r.FAILED]:["name","failedAt","failCount","failReason"]},this.scroller.setCallable(l=>this.res.query({params:{...l,type:this.type}})).setParams(i.PARAMS),this.scroller.mirrorDoneBusy(this.cdr,this,"busy","done"),this.scroller.alertOnErrors(),this.scroller.getData(50,this.jobs).subscribe((0,y.e)(l=>{this.jobs=l,this.cdr.markForCheck()}))}}i.PARAMS=Object.freeze({limit:50}),i.\u0275fac=function(l){return new(l||i)(e.Y36(g.TgInfiniteScroller),e.Y36(e.sBO),e.Y36(F.wp),e.Y36(u),e.Y36(m.w))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tg-scheduler-list"]],features:[e._Bn([g.TgInfiniteScroller])],decls:4,vars:3,consts:[["class","table table-striped table-hover",4,"ngIf","ngIfElse"],["tplNoJobs",""],[4,"ngIf"],[1,"table","table-striped","table-hover"],[3,"translate",4,"ngFor","ngForOf"],["infiniteScroll","",3,"immediateCheck","scrollWindow","infiniteScrollDisabled","scrolled"],[3,"scheduler-list-tr","fields",4,"ngFor","ngForOf","ngForTrackBy"],[3,"translate"],[3,"scheduler-list-tr","fields"],[1,"alert","alert-info","text-center",3,"translate"]],template:function(l,n){if(1&l&&(e.YNc(0,P,6,6,"table",0),e.YNc(1,Q,1,1,"ng-template",null,1,e.W1O),e.YNc(3,B,1,0,"tg-loader-spinner-lg",2)),2&l){const o=e.MAs(2);e.Q6J("ngIf",n.jobs.length)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",n.busy)}},dependencies:[a.sg,a.O5,O.P,D.Z,E.a,I.N,L.Ry,N],encapsulation:2,changeDetection:0});var H=s(97482),V=s(50339),$=s(64683);const G=function(t){return{type:t}};function W(t,l){if(1&t&&(e.TgZ(0,"li",4)(1,"a",5)(2,"span",6),e._uU(3),e.qZA(),e._uU(4),e.ALo(5,"tr"),e.qZA()()),2&t){const n=l.$implicit,o=e.oxw();e.Q6J("uiSrefActive","active"),e.xp6(1),e.Q6J("uiSref","admin.scheduler.list")("uiParams",e.VKq(7,G,n)),e.xp6(2),e.Oqu(o.stats[n]),e.xp6(1),e.hij("\xa0",e.lcZ(5,5,n),"")}}const K=[{component:(()=>{class t{constructor(n){this.stats=n}ngOnInit(){this.tabs=Object.values(r).filter(n=>n!==r.FAILED)}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(v))},t.\u0275cmp=e.Xpm({type:t,selectors:[["tg-scheduler-tabs"]],features:[e._Bn([],[{provide:H.z,useValue:"scheduler.admin"}])],decls:4,vars:2,consts:[[1,"nav","nav-tabs"],["role","presentation",3,"uiSrefActive",4,"ngFor","ngForOf"],[1,"panel","panel-default"],[1,"panel-body",3,"ui-view"],["role","presentation",3,"uiSrefActive"],[3,"uiSref","uiParams"],[1,"badge"]],template:function(n,o){1&n&&(e.TgZ(0,"ul",0),e.YNc(1,W,6,9,"li",1),e.qZA(),e.TgZ(2,"div",2),e._UZ(3,"div",3),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",o.tabs),e.xp6(2),e.Q6J("ui-view",""))},dependencies:[a.sg,V.k,c.UISref,c.AnchorUISref,c.UIView,c.UISrefActive,c.UISrefStatus,$.H],encapsulation:2,changeDetection:0}),t})(),name:"admin.scheduler",redirectTo:{params:{type:r.RECURRING},state:"admin.scheduler.list"},resolve:[{deps:[m.w],resolveFn:t=>(0,h.n)(t.stats()),token:v}],url:"/scheduler"},{component:i,name:"admin.scheduler.list",resolve:[(0,b.b)([m.w,u],(t,l)=>(0,h.n)(t.query({params:{...i.PARAMS,type:l}}))),{deps:[C.Transition],resolveFn:t=>t.params().type,token:u}],url:"/:type"}];let X=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[S.GlobalModule,c.UIRouterModule.forChild({config:A.Z.config(K)}),T.TgInfiniteScrollModule]}),t})()}}]);

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.