PageSourceSearch

https://cccc-mobile-portal.firebaseapp.com/chunk-6Q3MQ4Z7.js

js cccc-mobile-portal.firebaseapp.com collected 2026-10-03 14:06:21 UTC 7,954 bytes, 1 lines download raw bytes

1import{a as Y}from"./chunk-G5GEMT35.js";import"./chunk-XVEXVSHY.js";import{j as C,l as X}from"./chunk-LQAJVVFO.js";import"./chunk-FHRX5ITS.js";import"./chunk-UWKFGWZA.js";import"./chunk-CB2ES4ID.js";import{$a as q,Ba as G,Ga as U,Ha as z,L as D,Ma as j,T as W,Za as K,_ as k,ab as J,bb as Q,e as R,ea as H,g as V,p as F}from"./chunk-GKK7I2HG.js";import{Da as E,Ja as M,N as v,Oa as i,Pa as n,Qa as O,T as g,Tb as L,U as m,Ua as P,Va as I,Wa as p,db as d,eb as B,fb as c,ib as u,jb as T,ka as o,kb as h,n as _,qb as r,ra as y,rb as l,xa as b}from"./chunk-Y5LJR3O3.js";import"./chunk-Y6RRHSU5.js";import"./chunk-7KGURMOZ.js";import{c as w}from"./chunk-72VIP7DC.js";import"./chunk-6FHAKEBC.js";import"./chunk-XCWWZPNY.js";import"./chunk-YKDYFRO7.js";import"./chunk-G3CV3VGG.js";import"./chunk-7JEWJNYV.js";import"./chunk-LZRXDEP2.js";import"./chunk-6RNTMJIT.js";import"./chunk-4U6PRYVA.js";import"./chunk-IL4VJRLA.js";import"./chunk-JWIEPCRG.js";import"./chunk-QPVVTFFW.js";import"./chunk-J6ICYO4L.js";import"./chunk-LF5XB4YN.js";import{a as f,b as A,o as x}from"./chunk-2ULHPW3F.js";function Z(N,S){N&1&&(i(0,"div",3),O(1,"ion-spinner"),n())}function $(N,S){if(N&1){let t=P();i(0,"div",4)(1,"div",5),d(2),r(3,"translate"),n(),i(4,"div",6)(5,"div",7)(6,"div")(7,"div",8),d(8),r(9,"translate"),n(),i(10,"div",9),d(11),r(12,"translate"),n()(),i(13,"ion-toggle",10),h("ngModelChange",function(e){g(t);let s=p();return T(s.pushNotificationsEnabled,e)||(s.pushNotificationsEnabled=e),m(e)}),I("ionChange",function(){g(t);let e=p();return m(e.updatePushPermissions())}),n()()(),i(14,"div",6)(15,"div",7)(16,"div")(17,"div",8),d(18),r(19,"translate"),n(),i(20,"div",9),d(21),r(22,"translate"),n()(),i(23,"ion-toggle",11),h("ngModelChange",function(e){g(t);let s=p();return T(s.settings.pushNotifications.announcements.enabled,e)||(s.settings.pushNotifications.announcements.enabled=e),m(e)}),I("ionChange",function(){g(t);let e=p();return m(e.updateSettings())}),n()()(),i(24,"div",6)(25,"div",7)(26,"div")(27,"div",8),d(28),r(29,"translate"),n(),i(30,"div",9),d(31),r(32,"translate"),n()(),i(33,"ion-toggle",11),h("ngModelChange",function(e){g(t);let s=p();return T(s.settings.pushNotifications.sermons.enabled,e)||(s.settings.pushNotifications.sermons.enabled=e),m(e)}),I("ionChange",function(){g(t);let e=p();return m(e.updateSettings())}),n()()(),i(34,"div",6)(35,"div",7)(36,"div")(37,"div",8),d(38),r(39,"translate"),n(),i(40,"div",9),d(41),r(42,"translate"),n()(),i(43,"ion-toggle",11),h("ngModelChange",function(e){g(t);let s=p();return T(s.settings.pushNotifications.events.enabled,e)||(s.settings.pushNotifications.events.enabled=e),m(e)}),I("ionChange",function(){g(t);let e=p();return m(e.updateSettings())}),n()()(),i(44,"div",5),d(45),r(46,"translate"),n(),i(47,"div",6)(48,"div",7)(49,"div")(50,"div",8),d(51),r(52,"translate"),n(),i(53,"div",9),d(54),r(55,"translate"),n()(),i(56,"ion-toggle",10),h("ngModelChange",function(e){g(t);let s=p();return T(s.settings.emailNotifications.eventReminders.enabled,e)||(s.settings.emailNotifications.eventReminders.enabled=e),m(e)}),I("ionChange",function(){g(t);let e=p();return m(e.updateSettings())}),n()()()()}if(N&2){let t=p();o(2),c(" ",l(3,25,"NOTIFICATIONS.HEADERS.PUSH")," "),o(6),c(" ",l(9,27,"NOTIFICATIONS.LABELS.ENABLE_PUSH")," "),o(3),c(" ",l(12,29,"NOTIFICATIONS.DESCRIPTIONS.PUSH")," "),o(2),u("ngModel",t.pushNotificationsEnabled),E("color",t.isDarkMode?"secondary":"primary"),o(5),c(" ",l(19,31,"NOTIFICATIONS.LABELS.ANNOUNCEMENTS")," "),o(3),c(" ",l(22,33,"NOTIFICATIONS.DESCRIPTIONS.ANNOUNCEMENTS")," "),o(2),u("ngModel",t.settings.pushNotifications.announcements.enabled),E("disabled",!t.pushNotificationsEnabled)("color",t.isDarkMode?"secondary":"primary"),o(5),c(" ",l(29,35,"NOTIFICATIONS.LABELS.SERMONS")," "),o(3),c(" ",l(32,37,"NOTIFICATIONS.DESCRIPTIONS.SERMONS")," "),o(2),u("ngModel",t.settings.pushNotifications.sermons.enabled),E("disabled",!t.pushNotificationsEnabled)("color",t.isDarkMode?"secondary":"primary"),o(5),c(" ",l(39,39,"NOTIFICATIONS.LABELS.EVENTS")," "),o(3),c(" ",l(42,41,"NOTIFICATIONS.DESCRIPTIONS.EVENTS")," "),o(2),u("ngModel",t.settings.pushNotifications.events.enabled),E("disabled",!t.pushNotificationsEnabled)("color",t.isDarkMode?"secondary":"primary"),o(2),c(" ",l(46,43,"NOTIFICATIONS.HEADERS.EMAIL")," "),o(6),c(" ",l(52,45,"NOTIFICATIONS.LABELS.EVENT_REMINDERS")," "),o(3),c(" ",l(55,47,"NOTIFICATIONS.DESCRIPTIONS.EVENT_REMINDERS")," "),o(2),u("ngModel",t.settings.emailN
1otifications.eventReminders.enabled),E("color",t.isDarkMode?"secondary":"primary")}}var Se=(()=>{let S=class S{constructor(){this.notificationService=v(X),this.alertController=v(j),this.translate=v(q),this.appearanceService=v(Y),this.isLoading=!0,this.pushNotificationsEnabled=!1,this.settings=C,this.initializeSettings()}get isDarkMode(){return this.appearanceService.isDarkMode}initializeSettings(){return x(this,null,function*(){try{let a=yield this.notificationService.getPermissionStatus();this.pushNotificationsEnabled=a==="granted";let e=yield this.notificationService.getUserNotificationSettings();this.settings=A(f(f({},C),e),{pushNotifications:f(f({},C.pushNotifications),e.pushNotifications),emailNotifications:f(f({},C.emailNotifications),e.emailNotifications)})}catch(a){console.error("Error loading notification settings:",a),this.settings=C}finally{this.isLoading=!1}})}updatePushPermissions(){return x(this,null,function*(){this.pushNotificationsEnabled&&((yield this.notificationService.getPermissionStatus())==="denied"?yield(yield this.alertController.create({header:yield _(this.translate.get("NOTIFICATIONS.ALERTS.ENABLE.HEADER")),message:yield _(this.translate.get("NOTIFICATIONS.ALERTS.ENABLE.MESSAGE")),cssClass:"custom-alert",buttons:[{text:yield _(this.translate.get("NOTIFICATIONS.ALERTS.ENABLE.NOT_NOW")),role:"destructive",cssClass:"alert-blue-button",handler:()=>{this.pushNotificationsEnabled=!1}},{text:yield _(this.translate.get("NOTIFICATIONS.ALERTS.ENABLE.OPEN_SETTINGS")),cssClass:"alert-blue-button",handler:()=>x(this,null,function*(){if(w.isNativePlatform()){let s=w.getPlatform();yield(yield this.alertController.create({header:yield _(this.translate.get("NOTIFICATIONS.ALERTS.SETTINGS.HEADER")),message:yield _(this.translate.get(s==="ios"?"NOTIFICATIONS.ALERTS.SETTINGS.IOS_MESSAGE":"NOTIFICATIONS.ALERTS.SETTINGS.ANDROID_MESSAGE")),buttons:["OK"]})).present()}this.pushNotificationsEnabled=!1})}]})).present():(yield this.notificationService.requestPermissions())||(this.pushNotificationsEnabled=!1))})}updateSettings(){return x(this,null,function*(){try{let{pushNotifications:a,emailNotifications:e}=this.settings;yield this.notificationService.updateNotificationSettings({pushNotifications:a,emailNotifications:e})}catch(a){console.error("Error updating notification settings:",a)}})}};S.\u0275fac=function(e){return new(e||S)},S.\u0275cmp=y({type:S,selectors:[["app-notifications"]],decls:11,vars:7,consts:[["color","primary"],["slot","start"],["defaultHref","/tabs/settings",3,"text"],[1,"flex","justify-center","items-center","h-full"],[1,"flex","flex-col"],[1,"text-sm","font-semibold","px-4","py-2","bg-zinc-200","dark:bg-zinc-800"],[1,"flex","flex-col","px-4","py-3","border-b","border-zinc-200","dark:border-zinc-800"],[1,"flex","flex-row","justify-between","items-center","gap-2"],[1,"text-base"],[1,"text-sm","text-complimentary"],[3,"ngModelChange","ionChange","ngModel","color"],[3,"ngModelChange","ionChange","ngModel","disabled","color"]],template:function(e,s){e&1&&(i(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-buttons",1),O(3,"ion-back-button",2),r(4,"translate"),n(),i(5,"ion-title"),d(6),r(7,"translate"),n()()(),i(8,"ion-content"),b(9,Z,2,0,"div",3)(10,$,57,49,"div",4),n()),e&2&&(o(3),E("text",l(4,3,"COMMON.BUTTONS.BACK")),o(3),B(l(7,5,"COMMON.HEADERS.NOTIFICATIONS")),o(3),M(s.isLoading?9:10))},dependencies:[L,F,R,V,H,z,U,k,W,D,K,G,Q,J],encapsulation:2});let N=S;return N})();export{Se as NotificationsPage};

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.