PageSourceSearch

https://cdn.bulan.sorsu.edu.ph/assets/NotificationSettings-ac18b7c9.js

js sorsu.edu.ph collected 2026-09-25 05:16:45 UTC 8,057 bytes, 1 lines download raw bytes

1var y=(k,o,_)=>new Promise((m,t)=>{var r=c=>{try{p(_.next(c))}catch(g){t(g)}},l=c=>{try{p(_.throw(c))}catch(g){t(g)}},p=c=>c.done?m(c.value):Promise.resolve(c.value).then(r,l);p((_=_.apply(k,o)).next())});import{d as x,p as N,o as w,ad as v,a as e,c as s,e as i,W as d,aw as u,g as n,b as f,w as b,Z as h,x as a,ae as S,r as V}from"./index-df5d7310.js";import{B as A}from"./BaseLoading-be12a28f.js";import"./doc-pdf-02375ae1.js";const I={key:0,class:"card mb-5 mb-xl-10"},T={class:"card-body p-9"},j={class:"form-group row align-items-center"},U={class:"col-lg-9 col-xl-6"},C={key:0,class:"form-check form-switch"},E={key:1},B={class:"form-group row align-items-center"},L={class:"col-lg-9 col-xl-6"},M={class:"col-lg-9 col-xl-6"},P={key:0,class:"form-check form-switch"},D={key:1},W={class:"form-group row"},Z={class:"col-lg-9 col-xl-6 col-form-label"},q={class:"checkbox-list"},z={key:0,class:"form-check mb-3"},F={key:1},G={key:2,class:"form-check mb-3"},H={key:3},J={key:4},K={class:"form-group row"},O={class:"col-lg-9 col-xl-6 col-form-label"},Q={class:"checkbox-list"},R={key:0,class:"form-check mb-3"},X={key:1},Y={key:2,class:"form-check mb-3"},$={key:3},tt={key:4},ot={class:"form-group row"},it={class:"col-lg-9 col-xl-6 col-form-label"},et={class:"checkbox-list"},st={key:0,class:"form-check mb-3"},lt={key:1},nt={key:2},at={class:"card-footer"},mt=["disabled"],rt={key:1},bt=x({__name:"NotificationSettings",setup(k){const o=N({email:"",mobileNo:"",emailNotification:!1,mobileNotification:!1,setting:{email_notif_important:!1,sms_notif_important:!1,email_notif_system:!1,sms_notif_system:!1,email_notif_news:!1},_isLoading:!0,_isProcessing:!1});function _(){return y(this,null,function*(){o._isProcessing=!0,yield v.put("profile/notification-settings",{email_notification:o.emailNotification,sms_notification:o.mobileNotification,email_notif_important:o.setting.email_notif_important,email_notif_system:o.setting.email_notif_system,email_notif_news:o.setting.email_notif_news,sms_notif_important:o.setting.sms_notif_important,sms_notif_system:o.setting.sms_notif_system}).then(({data:m})=>{S.fire("Success",m.message,"success")}),o._isProcessing=!1})}return w(()=>y(this,null,function*(){o._isLoading=!0,yield v.get("profile/notification-settings").then(({data:m})=>{o.setting=m.settings,o.email=m.email,o.mobileNo=m.mobile_no,o.emailNotification=m.settings.email_notification,o.mobileNotification=m.settings.sms_notification}),o._isLoading=!1})),(m,t)=>{const r=V("router-link");return o._isLoading?(e(),s("div",rt,[f(A)])):(e(),s("div",I,[t[33]||(t[33]=i("div",{class:"card-header"},[i("div",{class:"card-title m-0"},[i("h3",{class:"fw-bold m-0"},"Notification Settings")])],-1)),i("div",T,[t[31]||(t[31]=i("div",{class:"row"},[i("label",{class:"col-xl-5"}),i("div",{class:"col-lg-6 col-xl-6"},[i("h5",{class:"fw-bold mb-6"},"Setup Notification")])],-1)),i("div",j,[t[9]||(t[9]=i("label",{class:"col-xl-5 col-lg-3 col-form-label fw-bold text-left text-lg-right"},"Email Notification",-1)),i("div",U,[o.email?(e(),s("div",C,[d(i("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>o.emailNotification=l),class:"form-check-input",name:"email_notification",type:"checkbox"},null,512),[[u,o.emailNotification]])])):(e(),s("div",E,[t[8]||(t[8]=n(" To enable this feature, just update your email under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[7]||(t[7]=[n("Account Information")])),_:1})]))])]),i("div",B,[t[12]||(t[12]=i("label",{class:"col-xl-5 col-lg-3 col-form-label fw-bold text-left text-lg-right"},"SMS Notification",-1)),i("div",L,[i("div",M,[o.mobileNo?(e(),s("div",P,[d(i("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>o.mobileNotification=l),class:"form-check-input",name:"sms_notification",type:"checkbox"},null,512),[[u,o.mobileNotification]])])):(e(),s("div",D,[t[11]||(t[11]=n(" To enable this feature, just update your mobile number under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[10]||(t[10]=[n("Account Information")])),_:1})]))])])]),t[32]||(t[32]=h('<div class="separator separator-dashed my-10"></div><div class="row"><label class="col-xl-5"></label><div class="col-lg-9 col-xl-6"><h5 class="fw-bold mb-6">Preferences</h5></div></div>',2)),i("div",W,[t[19]||(t[19]=i("label",{class:"col-xl-5 col-lg-3 col-form-label fw-bold text-left text-lg-right"},"Important Announcement",-1)),i("div",Z,[i("div",q,[o.email&&o.emailNotification?(e(),s("div",z,[d(i("input",{id:"email-notif-important","onUpdate:modelValue":t[2]||(t[2]=l=>
1o.setting.email_notif_important=l),class:"form-check-input",name:"email_notif_important",type:"checkbox"},null,512),[[u,o.setting.email_notif_important]]),t[13]||(t[13]=i("label",{class:"form-check-label",for:"email-notif-important"},"Email",-1))])):a("",!0),o.email?a("",!0):(e(),s("label",F,[t[15]||(t[15]=n(" To enable this feature, just update your email under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[14]||(t[14]=[n("Account Information")])),_:1})])),o.mobileNo&&o.mobileNotification?(e(),s("div",G,[d(i("input",{id:"sms-notif-important","onUpdate:modelValue":t[3]||(t[3]=l=>o.setting.sms_notif_important=l),class:"form-check-input",name:"sms_notif_important",type:"checkbox"},null,512),[[u,o.setting.sms_notif_important]]),t[16]||(t[16]=i("label",{class:"form-check-label",for:"sms-notif-important"},"SMS",-1))])):a("",!0),o.mobileNo?a("",!0):(e(),s("label",H,[t[18]||(t[18]=n(" To enable this feature, just update your mobile number under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[17]||(t[17]=[n("Account Information")])),_:1})])),!o.emailNotification&&!o.mobileNotification?(e(),s("label",J,"Disabled")):a("",!0)])])]),i("div",K,[t[26]||(t[26]=i("label",{class:"col-xl-5 col-lg-3 col-form-label fw-bold text-left text-lg-right"},"System-related Announcement",-1)),i("div",O,[i("div",Q,[o.email&&o.emailNotification?(e(),s("div",R,[d(i("input",{id:"email-notif-system","onUpdate:modelValue":t[4]||(t[4]=l=>o.setting.email_notif_system=l),class:"form-check-input",name:"email_notif_system",type:"checkbox"},null,512),[[u,o.setting.email_notif_system]]),t[20]||(t[20]=i("label",{class:"form-check-label",for:"email-notif-system"},"Email",-1))])):a("",!0),o.email?a("",!0):(e(),s("label",X,[t[22]||(t[22]=n(" To enable this feature, just update your email under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[21]||(t[21]=[n("Account Information")])),_:1})])),o.mobileNo&&o.mobileNotification?(e(),s("div",Y,[d(i("input",{id:"sms-notif-system","onUpdate:modelValue":t[5]||(t[5]=l=>o.setting.sms_notif_system=l),class:"form-check-input",name:"sms_notif_system",type:"checkbox"},null,512),[[u,o.setting.sms_notif_system]]),t[23]||(t[23]=i("label",{class:"form-check-label",for:"sms-notif-system"},"SMS",-1))])):a("",!0),o.mobileNo?a("",!0):(e(),s("label",$,[t[25]||(t[25]=n(" To enable this feature, just update your mobile number under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[24]||(t[24]=[n("Account Information")])),_:1})])),!o.emailNotification&&!o.mobileNotification?(e(),s("label",tt,"Disabled")):a("",!0)])])]),i("div",ot,[t[30]||(t[30]=i("label",{class:"col-xl-5 col-lg-3 col-form-label fw-bold text-left text-lg-right"},"News and Events",-1)),i("div",it,[i("div",et,[o.email&&o.emailNotification?(e(),s("div",st,[d(i("input",{id:"email-notif-news","onUpdate:modelValue":t[6]||(t[6]=l=>o.setting.email_notif_news=l),class:"form-check-input",name:"email_notif_news",type:"checkbox"},null,512),[[u,o.setting.email_notif_news]]),t[27]||(t[27]=i("label",{class:"form-check-label",for:"email-notif-news"},"Email",-1))])):a("",!0),o.email?a("",!0):(e(),s("label",lt,[t[29]||(t[29]=n(" To enable this feature, just update your email under ")),f(r,{to:{name:"general-profile-account-info"}},{default:b(()=>t[28]||(t[28]=[n("Account Information")])),_:1})])),o.emailNotification?a("",!0):(e(),s("label",nt,"Disabled"))])])])]),i("div",at,[i("button",{disabled:o._isProcessing,class:"btn btn-primary",onClick:_},"Save",8,mt)])]))}}});
1export{bt as default};

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.