1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1400],{51400:(R,f,n)=>{n.r(f),n.d(f,{NotificationsPageModule:()=>Y});var c=n(91368),d=n(44716),a=n(83068),g=n(89192),u=n(73448),t=n(32116),p=n(87264),v=n(77816),h=n(2132),y=n(62319);function C(i,r){if(1&i){const e=t.KQA();t.I0R(0,"div",18)(1,"div",14)(2,"h6"),t.OEk(3),t.C$Y(),t.I0R(4,"p"),t.OEk(5),t.C$Y()(),t.I0R(6,"div",15)(7,"div",16)(8,"ion-checkbox",19),t.iHE("ngModelChange",function(o){const l=t.usT(e).$implicit;return t.kNx(l.sms,o)||(l.sms=o),t.CGJ(o)}),t.C$Y()(),t.I0R(9,"div",16)(10,"ion-checkbox",19),t.iHE("ngModelChange",function(o){const l=t.usT(e).$implicit;return t.kNx(l.email,o)||(l.email=o),t.CGJ(o)}),t.C$Y()()()()}if(2&i){const e=r.$implicit;t.yG2(3),t.cNF(e.header),t.yG2(2),t.cNF(e.disclaimer),t.yG2(3),t.E7m("name",e.key+"-sms"),t.OKB("ngModel",e.sms),t.yG2(2),t.E7m("name",e.key+"-email"),t.OKB("ngModel",e.email)}}function P(i,r){if(1&i&&(t.I0R(0,"div",11)(1,"div",12)(2,"div",13),t.wR5(3,"div",14),t.I0R(4,"div",15)(5,"div",16)(6,"h6"),t.OEk(7,"SMS"),t.C$Y()(),t.I0R(8,"div",16)(9,"h6"),t.OEk(10,"Email"),t.C$Y()()()(),t.yuY(11,C,11,6,"div",17),t.C$Y()()),2&i){const e=t.GaO();t.yG2(11),t.E7m("ngForOf",e.settings)}}function x(i,r){1&i&&(t.I0R(0,"span"),t.OEk(1,"Save Settings"),t.C$Y())}function I(i,r){1&i&&t.wR5(0,"ion-spinner",20)}function M(i,r){1&i&&(t.I0R(0,"div",21)(1,"div",22),t.wR5(2,"div")(3,"div")(4,"div"),t.C$Y()())}const O=[{path:"",component:(()=>{class i{firebaseApi;userProvider;util;pageLoading=!1;submittingSpinner=!1;settings=[{header:"New Document",disclaimer:"Send when a user uploads a new document",key:"new-document",sms:!1,email:!1},{header:"New Lead Auto Purchased",disclaimer:"Sent when the system purchases a new lead for you",key:"new-lead-auto",sms:!1,email:!1},{header:"New Lead Arrives",disclaimer:"Sent when a new lead is distributed to you and is available for purchase",key:"new-lead-arrives",sms:!1,email:!1},{header:"Unfinished Profile",disclaimer:"Sent once in a while when your profile is not completed",key:"unfinished-profile",sms:!1,email:!1}];constructor(e,s,o){this.firebaseApi=e,this.userProvider=s,this.util=o}ngOnInit(){this.userProvider.loggedInUser.notifVendor&&(this.settings=[...this.userProvider.loggedInUser.notifVendor])}saveSettings(){var e=this;return(0,u.c)(function*(){e.submittingSpinner=!0;try{yield e.firebaseApi.updateOne("users",e.userProvider.loggedInUser.id,{notifVendor:e.settings}),e.userProvider.loggedInUser.notifVendor=e.settings,e.util.createErrorAlert(null,"Notification settings were saved!")}catch{e.util.createErrorAlert(null,"Could not save settings")}finally{e.submittingSpinner=!1}})()}static \u0275fac=function(s){return new(s||i)(t.GI1(p.H),t.GI1(v.e),t.GI1(h.e))};static \u0275cmp=t.In1({type:i,selectors:[["app-notifications"]],decls:13,vars:7,consts:[[1,"app-container"],[3,"contentWidth","hero","headerText"],["class","not-loading",4,"ngIf"],["button",""],[1,"ion-justify-content-center"],["sizeLg","10","size","10"],["size","12",1,"ion-text-center"],["type","button",1,"custom-btn",3,"click"],[4,"ngIf"],["color","light","name","circles",4,"ngIf"],["class","loading",4,"ngIf"],[1,"not-loading"],["id","notifList"],[1,"notif-list-item","no-border"],[1,"notif-text"],[1,"notif-toggles"],[1,"notif-set-item","sms"],["class","notif-list-item",4,"ngFor","ngForOf"],[1,"notif-list-item"],[3,"name","ngModel","ngModelChange"],["color","light","name","circles"],[1,"loading"],[1,"lds-facebook","app"]],template:function(s,o){1&s&&(t.I0R(0,"ion-content")(1,"div",0)(2,"app-split-page",1),t.yuY(3,P,12,1,"div",2),t.I0R(4,"section",3)(5,"ion-row",4)(6,"ion-col",5)(7,"ion-row",4)(8,"ion-col",6)(9,"button",7),t.qCj("click",function(){return o.saveSettings()}),t.yuY(10,x,2,0,"span",8)(11,I,1,0,"ion-spinner",9),t.C$Y()()()()()(),t.yuY(12,M,5,0,"div",10),t.C$Y()()()),2&s&&(t.yG2(2),t.E7m("contentWidth",75)("hero","assets/stripehero.svg")("headerText","Notification Settings"),t.yG2(),t.E7m("ngIf",!o.pageLoading),t.yG2(7),t.E7m("ngIf",!o.submittingSpinner),t.yG2(),t.E7m("ngIf",o.submittingSpinner),t.yG2(),t.E7m("ngIf",o.pageLoading))},dependencies:[c.ay,c.u_,d.ue,d._G,a.ew,a.Kk,a._i,a.qo,a.YA,a.UJ,y.g],styles:[".notif-list-item[_ngcontent-%COMP%]{border:1px solid rgb(209,209,209);display:flex;align-items:center;padding:10px;border-radius:8px;justify-content:space-between;margin-bottom:10px}.notif-list-item.no-border[_ngcontent-%COMP%]{border:0}.notif-list-item[_ngcontent-%COMP%] .notif-toggles[_ngcontent-%COMP%]{display:flex}.notif-list-item[_ngcontent-%COMP%] .notif-set-item[_ngcontent-%COMP%]{width:60px;display:flex;flex-direction:column;align-items:center;justify-content:center}.notif-list-item[_ngcontent-%COMP%] .notif-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.notif-list-item[_ngcontent-%COMP%] .notif-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.notif-list-item[_ngcontent-%COMP%] .notif-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:gray}"]})}return i})()}];let N=(()=>
1{class i{static \u0275fac=function(s){return new(s||i)};static \u0275mod=t.a4G({type:i});static \u0275inj=t.s3X({imports:[g.qQ.forChild(O),g.qQ]})}return i})();var G=n(59952),E=n(87560),S=n(48396),b=n(60338);let Y=(()=>{class i{static \u0275fac=function(s){return new(s||i)};static \u0275mod=t.a4G({type:i});static \u0275inj=t.s3X({imports:[c.MD,d.y,a.wZ,N,G.S,E.l,S.S,b.W]})}return i})()}}]);
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.