PageSourceSearch

https://cdn.6figr.com/app/src_app_pages_account-notifications_acco…notifications_module_ts.0d544b287b60cf62.js

js 6figr.com collected 2026-09-25 23:37:10 UTC 6,709 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknewRasal=self.webpackChunknewRasal||[]).push([["src_app_pages_account-notifications_account-notifications_module_ts"],{65765:(x,u,r)=>{r.r(u),r.d(u,{AccountNotificationsModule:()=>y});var l=r(69808),i=r(6016),f=r(99491),p=r(45801),c=r(35357),t=r(5e3),m=r(15797);function h(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",10),t.\u0275\u0275listener("click",function(){const d=t.\u0275\u0275restoreView(e).$implicit;return t.\u0275\u0275nextContext(2).select(d.value)}),t.\u0275\u0275element(1,"i"),t.\u0275\u0275elementStart(2,"span",11),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"span",12),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()()}if(2&n){const e=a.$implicit,o=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("selected",o.frequency===e.value),t.\u0275\u0275property("disabled",o.saving),t.\u0275\u0275advance(1),t.\u0275\u0275classMapInterpolate1("fas ",e.icon,""),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e.label),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e.hint)}}function g(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"nb-card-body")(1,"div",5),t.\u0275\u0275template(2,h,6,8,"button",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",7)(4,"button",8),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(e),t.\u0275\u0275nextContext().select("NEVER")}),t.\u0275\u0275element(5,"i",9),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()()()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.options),t.\u0275\u0275advance(2),t.\u0275\u0275classProp("stopped","NEVER"===e.frequency),t.\u0275\u0275property("disabled",e.saving),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ","NEVER"===e.frequency?"You are unsubscribed from these emails":"Stop these emails"," ")}}const b=[{path:"",component:(()=>{class n{constructor(e,o,s,d){this.apiService=e,this.router=o,this.route=s,this.toastrService=d,this.options=[{value:"DAILY",label:"Daily",icon:"fa-calendar-day",hint:"Get updates every day"},{value:"WEEKLY",label:"Weekly",icon:"fa-calendar-week",hint:"A summary once a week"},{value:"MONTHLY",label:"Monthly",icon:"fa-calendar",hint:"Just once a month"}],this.token="",this.frequency="WEEKLY",this.loading=!0,this.saving=!1}ngOnInit(){this.route.queryParams.subscribe(e=>{this.token=e.token,this.token?this.apiService.getNotificationPreferences(this.token).subscribe(o=>{o&&o.frequency&&(this.frequency=o.frequency),this.loading=!1},o=>{this.showToast("danger","This link is invalid or has expired","Error"),this.loading=!1}):this.router.navigate(["/auth/login"])})}select(e){if(this.saving||e===this.frequency)return;const o=this.frequency;this.frequency=e,this.saving=!0,this.apiService.saveNotificationPreferences(this.token,e).subscribe(s=>{this.saving=!1,this.showToast("success","Your email preferences have been updated","Saved")},s=>{this.frequency=o,this.saving=!1,this.showToast("danger","Could not save your preferences. Please try again","Error")})}showToast(e,o,s){this.toastrService.show(s,o,{status:e})}}return n.\u0275fac=function(e){return new(e||n)(t.\u0275\u0275directiveInject(m.s),t.\u0275\u0275directiveInject(c.F0),t.\u0275\u0275directiveInject(c.gz),t.\u0275\u0275directiveInject(i.quB))},n.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["ngx-account-notifications"]],decls:10,vars:2,consts:[[1,"notif-wrap"],["nbSpinnerStatus","primary",1,"notif-card",3,"nbSpinner"],[1,"notif-title"],[1,"notif-sub"],[4,"ngIf"],[1,"freq-options"],["type","button","class","freq-option",3,"selected","disabled","click",4,"ngFor","ngForOf"],[1,"stop-row"],["nbButton","","status","basic","size","small",3,"disabled","click"],[1,"fas","fa-bell-slash"],["type","button",1,"freq-option",3,"disabled","click"],[1,"freq-label"],[1,"freq-hint"]],template:function(e,o){1&e&&(t.\u0275\u0275elementStart(0,"nb-layout")(1,"nb-layout-column")(2,"div",0)(3,"nb-card",1)(4,"nb-card-header")(5,"h4",2),t.\u0275\u0275text(6,"Email preferences"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"p",3),t.\u0275\u0275text(8,"How often would you like to hear from us about jobs and recommendations?"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(9,g,7,5,"nb-card-body",4),t.\u0275\u0275elementEnd()()()()),2&e&&(t.\u0275\u0275advance(3),t.\u0275\u0275property("nbSpinner",o.loading),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",!o.loading))},directives:[i.Aqw,i.dP_,i.Asz,i.Q7R,i.ndF,l.NgIf,i.yKW,l.NgForOf,i.DPz],styles:[".notif-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2.5rem 1rem}.notif-card[_ngcontent-%COMP%]{width:100%;max-width:560px}.notif-title[_ngcontent-%COMP%]{margin:0 0 .25rem}.notif-sub[_ngcontent-%COMP%]{margin:0;color:var(--text-hint-color);font-size:.9rem}.freq-options[_ngcontent-%COMP%]{display:flex;gap:.75rem;flex-wrap:wrap}.freq-option[_ngcontent-%COMP%]{flex:1 1 140px;
1display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:1.25rem .75rem;border:1px solid var(--border-basic-color-4);border-radius:.5rem;background:var(--card-background-color);cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.freq-option[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--text-hint-color)}.freq-option[_ngcontent-%COMP%]   .freq-label[_ngcontent-%COMP%]{font-weight:600}.freq-option[_ngcontent-%COMP%]   .freq-hint[_ngcontent-%COMP%]{font-size:.75rem;color:var(--text-hint-color);text-align:center}.freq-option[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--color-primary-default)}.freq-option.selected[_ngcontent-%COMP%]{border-color:var(--color-primary-default);background:var(--color-primary-transparent-100);box-shadow:0 0 0 1px var(--color-primary-default) inset}.freq-option.selected[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--color-primary-default)}.freq-option[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.7}.stop-row[_ngcontent-%COMP%]{margin-top:1.5rem;display:flex;justify-content:center}.stop-row[_ngcontent-%COMP%]   .stopped[_ngcontent-%COMP%]{color:var(--color-danger-default)}"]}),n})()}];let v=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=t.\u0275\u0275defineInjector({imports:[[c.Bz.forChild(b)],c.Bz]}),n})(),y=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=t.\u0275\u0275defineInjector({imports:[[l.CommonModule,v,f.O,p.m,i.BW0,i.zyh,i.T2N,i.Qry,i.uuI]]}),n})()}}]);

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.