PageSourceSearch

https://gtmly.ai/src-3ZRICPGO.js

js gtmly.ai collected 2026-10-05 12:01:42 UTC 5,323 bytes, 1 lines download raw bytes

1import{Aa as j,C,Ca as U,Da as P,G as z,Ja as V,La as E,g as Z,j as L,l as y,m as O,o as I}from"./chunk-ZBB2XUJK.js";import"./chunk-YZT2N6C3.js";import{$d as A,Aa as v,Ac as g,Bc as h,Fb as n,Lb as b,Lc as _,Qc as a,Rb as S,Rc as M,Sc as T,ae as R,fd as F,kc as p,lc as r,mc as s,pa as m,qb as c,re as w,ta as u,uc as D,w as f,za as d}from"./chunk-TBS6UBBK.js";import"./chunk-AP5KEWPN.js";var N=class t{constructor(i){this.http=i}updateFirebaseDetails(i,e){return this.http.post(i,e).pipe(f(o=>o))}static \u0275fac=function(e){return new(e||t)(u(C))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})};var $=class t{constructor(i,e,o,l){this.fbs=i;this.router=e;this.ls=o;this.as=l}options;message;fbTokenKey="fbToken";ngOnInit(){let i="user001";this.ls.getItem(this.fbTokenKey)||this.requestPermission(),this.receiveMessage()}ngOnDestroy(){}requestPermission(){try{if(window.FirebasePlugin==null)return;window.FirebasePlugin.getToken(i=>{console.warn("FCMPlugin token --->",i),this.ls.setItem(this.fbTokenKey,i),this.onReceiveToken(i)})}catch(i){console.warn("FCMPlugin error --->",i)}}onReceiveToken(i){let e={};window.device?(e.deviceId=window.device.uuid,e.deviceInfo=window.device):(e.deviceId="",e.deviceInfo={}),e.clientBuildVersion="1.1",e.firebaseToken=i,this.fbs.updateFirebaseDetails("updateFirebaseToken",e).subscribe(o=>{o.success})}requestPermission1(){if(window.fb&&window.fb.token){let i={};window.device?(i.deviceId=window.device.uuid,i.deviceInfo=window.device):(i.deviceId="",i.deviceInfo={}),i.clientBuildVersion="1.1",i.firebaseToken=window.fb.token,this.fbs.updateFirebaseDetails("updateFirebaseToken",i).subscribe(e=>{e.success})}}receiveMessage(){try{window.FirebasePlugin.onMessageReceived(i=>{i.tap&&this.myReceiveMessage(i)})}catch{}}myReceiveMessage(i){if(i.actions)this.as.execActions(i.actions,{data:i});else if(i.action)this.as.action(i.action,{data:i});else{let e="";i.url&&(e=i.url),i.uid&&(e?e=e+"/"+i.uid:e=i.uid),this.router.navigate(["/"+e])}}static \u0275fac=function(e){return new(e||t)(n(N),n(y),n(z),n(E))};static \u0275cmp=b({type:t,selectors:[["zc-fb-notifications"]],inputs:{options:"options"},decls:0,vars:0,template:function(e,o){},dependencies:[w,I],encapsulation:2})};var k=class t{constructor(i){this.http=i}getNotificationList(i,e){return this.http.post(i,e).pipe(f(o=>o))}readAll(){let i={zcWorkflowProcess:"get-notification-info",readAll:!0};return this.http.post("workflowprocess/init",i)}static \u0275fac=function(e){return new(e||t)(u(C))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})};var q=t=>[t];function Y(t,i){if(t&1&&(r(0,"span",10),a(1),s()),t&2){let e=h();c(),M(e.notificationsCount)}}function ii(t,i){if(t&1){let e=D();r(0,"li",11)(1,"a",12),g("click",function(){d(e),h();let l=_(1);return v(l.close())}),a(2),s()()}if(t&2){let e=i.$implicit,o=h();p("routerLink",F(2,q,o.notificationUrl+e.uid)),c(2),T(" ",e.subject)}}var B=class t{constructor(i,e,o){this.router=i;this.route=e;this.notificationService=o}options;paramsSubscribe$;notifications=[];notificationsCount=0;appName="zcbase";allUrl;notificationUrl;ngOnInit(){this.route.snapshot.params.app&&(this.appName=this.route.snapshot.params.app),this.allUrl="/"+this.appName+"/account/notification-list",this.notificationUrl="/"+this.appName+"/account/notification-view/",zcGlobal.notificationList=this,this.options.allUrl&&(this.allUrl=this.options.allUrl),this.options.notificationUrl&&(this.notificationUrl=this.options.notificationUrl),this.paramsSubscribe$=this.router.events.subscribe(i=>{i instanceof Z&&this.notificationsList()}),this.notificationsList()}notificationsList(){let i={};i.rows=5,i.dynaFilters=[{fieldName:"status",key:"status",value:"unread",matchType:"any"}],this.notificationService.getNotificationList("zc-notification/notificationList",i).subscribe(e=>{e.success&&(this.notifications=e.data.listData.rows,this.notificationsCount=e.data.listData.records)})}ngOnDestroy(){this.paramsSubscribe$&&this.paramsSubscribe$.unsubscribe()}readAll(){this.notificationService.readAll().subscribe(i=>{i.success&&this.reload()})}reload(){this.ngOnInit()}static \u0275fac=function(e){return new(e||t)(n(y),n(L),n(k))};static \u0275cmp=b({type:t,selectors:[["zc-notifications"]],inputs:{options:"options"},decls:14,vars:5,consts:[["myDrop","ngbDropdown"],["ngbDropdown","","placement","bottom-right"],["id","dropdownBasic1","ngbDropdownToggle","",1,"icon","icon-bell"],["class","zc-number",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],[1,"zc-notifications-list"],[3,"routerLink",4,"ngFor","ngForOf"],[1,"notification-footer"],[1,"read-all",3,"click"],[1,"see-all",3,"click","routerLink"],[1,"zc-number"],[3,"routerLink"],[3,"click"]],template:function(e,o){if(e&1){let l=D();r(0,"div",1,0)(2,"a",2),S(3,Y,2,1,"span",3),s(),r(4,"div",4)(5,"h4"),a(6,"Notifications"),s(),r(7,"ul",5),S(8,ii,3,4,"li",6),s(),r(9,"div",7)(10,"a",8),g("click",function(){return d(l),v(o.readAll(
1))}),a(11,"Read All"),s(),r(12,"a",9),g("click",function(){d(l);let G=_(1);return v(G.close())}),a(13,"See All"),s()()()()}e&2&&(c(3),p("ngIf",o.notificationsCount>0),c(5),p("ngForOf",o.notifications),c(4),p("routerLink",F(3,q,o.allUrl)))},dependencies:[w,A,R,I,O,V,P,U,j],encapsulation:2})};export{B as ZcNotificationComponent,$ as ZcNotificationsComponent};

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.