PageSourceSearch

https://www.arabianshield.com/birthday-card.component-AAE7ZGAH.js

js arabianshield.com collected 2026-10-08 05:35:45 UTC 3,156 bytes, 1 lines download raw bytes

1import{a as N}from"./chunk-AUZ4DS7T.js";import"./chunk-ZZRV5ZVI.js";import{a as B}from"./chunk-XAVED4QJ.js";import"./chunk-D4FFNISE.js";import"./chunk-OGJXIMJ3.js";import"./chunk-OJ25ACI2.js";import"./chunk-5YRQAJDA.js";import{m as M,z as O}from"./chunk-6HYWAW76.js";import{Aa as v,Ba as b,Fb as E,Lb as _,Lc as g,Mc as h,Xb as p,ea as D,f,mb as C,mc as c,nc as r,oc as l,pb as S,pc as x,qc as I,sc as w,tb as o,x as m,xc as T,yc as y,zb as d}from"./chunk-HGT463J2.js";import{a as u}from"./chunk-Z2O5QKTL.js";function H(s,i){if(s&1){let e=w();x(0),c(1,"div",1)(2,"div",2)(3,"h1",3),g(4),r(),c(5,"h4",4),g(6),r(),l(7,"p",5),r(),c(8,"div",6)(9,"button",7),T("click",function(){v(e);let n=y();return b(n.dismissFireworks())}),r()(),l(10,"iframe",8),r(),I()}if(s&2){let e=y();o(4),h(e.settings.heading),o(2),h(e.employeeName),o(),p("innerHTML",e.settings.message,C)}}var Y=class s{constructor(i,e){this.employeesDataService=i;this.storageService=e}pageDestroy$=new f;ngOnDestroy(){this.pageDestroy$.next()}data;settings;employeesDataServiceSubscription;isBirthdayGuy=!1;isCardDismissed=!0;employeeName="";ngOnInit(){let i=this.data.authService.getLoggedUser().username;i&&(this.employeesDataService.getEmployees(this.settings.employeeDataSourceId),this.employeesDataService.employees$.pipe(D(this.pageDestroy$),m(e=>e&&e.map(t=>{let n=u({},t);if(typeof t.BIRTHDATE=="string"){let a=t.BIRTHDATE.split("/");Object.assign(n,{BIRTHDATE:new Date(a[1]+"/"+a[0]+"/"+a[2])})}return n})),m(e=>{if(i&&e)return e.find(t=>t?.USERNAME?.toLowerCase()==i.toLowerCase())})).subscribe(e=>{if(e){this.pageDestroy$.next();let t=new Date().getDate(),n=new Date().getMonth(),a=new Date().getFullYear();e.BIRTHDATE.getDate()===t&&e.BIRTHDATE.getMonth()===n&&(this.isBirthdayGuy=!0,this.employeeName=e.FL_NAME,this.storageService.get("birthdayDismissYear")?JSON.parse(this.storageService.get("birthdayDismissYear"))!==a?(this.storageService.removeItem("birthdayDismissYear"),this.isCardDismissed=!1):this.isCardDismissed=!0:this.isCardDismissed=!1)}}))}dismissFireworks(){let i=new Date().getFullYear();this.storageService.set("birthdayDismissYear",JSON.stringify(i)),this.isCardDismissed=!0}static \u0275fac=function(e){return new(e||s)(d(N),d(B))};static \u0275cmp=E({type:s,selectors:[["lib-birthday-card"]],inputs:{data:"data",settings:"settings"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"birthday-card-container"],[1,"content-container"],[1,"birthday-heading"],[1,"birthday-person"],[1,"birthday-message",3,"innerHTML"],[1,"cta-container"],["role","button",1,"dismiss-btn",3,"click"],["src",S`./assets/css/fireworks.html`]],template:function(e,t){e&1&&_(0,H,11,3,"ng-container",0),e&2&&p("ngIf",t.isBirthdayGuy&&!t.isCardDismissed)},dependencies:[O,M],styles:[".birthday-card-container[_ngcontent-%COMP%]{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center}iframe[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:100vh;top:0;left:0}.content-container[_ngcontent-%COMP%], .cta-container[_ngcontent-%COMP%]{position:relative;z-index:1}"]})};export{Y as BirthdayCardComponent};

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.