PageSourceSearch

https://stymie.com.au/chunk-M42HETY3.js

js stymie.com.au collected 2026-10-04 22:48:06 UTC 74,279 bytes, 1 lines download raw bytes

1import{a as ae}from"./chunk-YRBW32H5.js";import{a as le,b as ce,c as de}from"./chunk-KBWWTYIK.js";import{a as se}from"./chunk-W6SN2AMW.js";import{c as me}from"./chunk-J45MX5JD.js";import{a as re}from"./chunk-4UNKTEUP.js";import{a as te,b as ne}from"./chunk-Q6NX3K2M.js";import"./chunk-67ZNWMTK.js";import{a as ie}from"./chunk-75Q6UXVP.js";import{e as F}from"./chunk-2QH2GRAO.js";import{a as oe}from"./chunk-IKLOQSCJ.js";import{b as z}from"./chunk-XOGGRUHV.js";import"./chunk-22DMWHJU.js";import{a as ue}from"./chunk-JL4W2EBL.js";import"./chunk-5MVC5IFU.js";import{Ac as U,Fb as I,Gb as s,Ha as O,Hb as y,Ib as x,Ja as W,Jb as w,Kc as Z,Ma as l,Mb as C,Na as M,Nb as v,Nc as Y,Ob as S,Oc as B,Qb as L,Qc as j,Rc as $,Sc as G,Wb as k,Xc as q,Yc as K,Za as h,Zc as J,_c as Q,cb as d,dd as X,eb as P,ed as ee,fa as H,fb as V,nb as r,ob as o,pa as p,pb as m,qa as g,qb as A,rb as N,tb as b,u as E,vb as _,wb as c,zb as T,zc as D}from"./chunk-3JIBNPJF.js";import{f as ge}from"./chunk-TSRGIXR5.js";var f=ge(ue());function _e(n,t){if(n&1){let e=b();r(0,"div",25),s(1),r(2,"button",26),_("click",function(){p(e);let i=c(2);return g(i.errorMessage="")}),o()()}if(n&2){let e=c(2);l(),x(" ",e.errorMessage," ")}}function he(n,t){if(n&1){let e=b();r(0,"div",27),s(1),r(2,"button",26),_("click",function(){p(e);let i=c(2);return g(i.successMessage="")}),o()()}if(n&2){let e=c(2);l(),x(" ",e.successMessage," ")}}function fe(n,t){if(n&1&&(r(0,"div",22),h(1,_e,3,1,"div",23)(2,he,3,1,"div",24),o()),n&2){let e=c();l(),d("ngIf",e.errorMessage!=""),l(),d("ngIf",e.successMessage!=""&&!e.isLoading)}}function be(n,t){if(n&1){let e=b();r(0,"button",28),_("click",function(){p(e);let i=c();return g(i.openSchoolSelectorModal())}),m(1,"i",29)(2,"i",30),o()}if(n&2){let e=c();P("snr-school-fab--active",e.showSchoolSelectorModal)}}function xe(n,t){if(n&1&&m(0,"a",36),n&2){let e=t.$implicit;d("innerHTML",e.siteName+(e.active?" [Active]":" [Inactive]"),O)}}function Ce(n,t){if(n&1&&m(0,"div",36),n&2){let e=t.$implicit;d("innerHTML",e,O)}}function ve(n,t){if(n&1){let e=b();r(0,"section",31)(1,"div",32)(2,"label"),m(3,"i",33),s(4,"Select a School to manage SNR's"),o(),r(5,"ng-autocomplete",34),_("selected",function(i){p(e);let u=c();return g(u.onSchoolSelected(i.siteId))})("inputCleared",function(){p(e);let i=c();return g(i.onSchoolInputCleared())})("inputChanged",function(i){p(e);let u=c();return g(u.onChangeSchoolSearch(i))}),o(),r(6,"div",35),s(7," Please select the school to view/manage Stymie Notification Recipients. "),o(),h(8,xe,1,1,"ng-template",null,0,k)(10,Ce,1,1,"ng-template",null,1,k),o()()}if(n&2){let e=I(9),a=I(11),i=c();l(5),d("data",i.schools)("searchKeyword",i.keyword)("itemTemplate",e)("notFoundTemplate",a)("isLoading",i.isSchoolSearchLoading)("minQueryLength",2)}}function Se(n,t){if(n&1&&m(0,"a",36),n&2){let e=t.$implicit;d("innerHTML",e.siteName+(e.active?" [Active]":" [Inactive]"),O)}}function Me(n,t){if(n&1&&m(0,"div",36),n&2){let e=t.$implicit;d("innerHTML",e,O)}}function ye(n,t){if(n&1){let e=b();r(0,"div",37),_("click",function(){p(e);let i=c();return g(i.closeSchoolSelectorModal())}),r(1,"div",38),_("click",function(i){return p(e),g(i.stopPropagation())}),r(2,"div",39)(3,"h6",40),m(4,"i",33),s(5,"Search School"),o(),r(6,"button",41),_("click",function(){p(e);let i=c();return g(i.closeSchoolSelectorModal())}),m(7,"i",42),o()(),r(8,"div",43)(9,"ng-autocomplete",34),_("selected",function(i){p(e);let u=c();return g(u.onSchoolSelected(i.siteId))})("inputCleared",function(){p(e);let i=c();return g(i.onSchoolInputCleared())})("inputChanged",function(i){p(e);let u=c();return g(u.onChangeSchoolSearch(i))}),o(),h(10,Se,1,1,"ng-template",null,2,k)(12,Me,1,1,"ng-template",null,3,k),o()()()}if(n&2){let e=I(11),a=I(13),i=c();P("snr-school-overlay--open",i.showSchoolSelectorModal),l(9),d("data",i.schools)("searchKeyword",i.keyword)("itemTemplate",e)("notFoundTemplate",a)("isLoading",i.isSchoolSearchLoading)("minQueryLength",2)}}function we(n,t){if(n&1&&(r(0,"section",44)(1,"div",45)(2,"div",46),m(3,"i",47),o(),r(4,"p",48),s(5),o()()()),n&2){let e=c();l(5),w(" Hi ",e.globalUtils.getLoggedInUserFullName(),", you are the Principal Account Holder (PAH) for ",e.globalUtils.getLoggedInUserSiteName(),". ")}}function Oe(n,t){n&1&&(r(0,"div",49),m(1,"div",50),r(2,"h6",51),s(3,"Stymie Notification Recipients Loading"),o()())}function Pe(n,t){if(n&1&&(r(0,"li",60),s(1),o()),n&2){let e=c(3);l(),x("Notifications sent on out-of-hours are suspended automatically. [",e.getOutOfHoursDisplayText(),"]")}}function Ie(n,t){if(n&1&&(r(0,"li",60),s(1),o()),n&2){let e=c(3);l(),x(" All recipients of ",e.selectedSchoolName," are currently suspended. Notifications will be suspended until activated.")}}function ke(n,t){if(n&1&&(r(0,"li",60),s(1),o()),n&2){let e=c(3);l(),x(" No one at ",e.selectedSchoolName," are currently receiving attachments.")}}function Re(n,t){if(n&1&&(r(0,"li",60),s(1),o()),n&2){let e=c(3);l(),x(" ",e.selectedSchoolName," is inactive and not searchable on the notification page.")}}function Te(n,t){if(n&1&&(r(0,"div",53)(1,"h2",87)(2,"button",88),m(3,"
1i",89),s(4,"Warning "),o()(),r(5,"div",90)(6,"div",58)(7,"ul",91),h(8,Pe,2,1,"li",92)(9,Ie,2,1,"li",92)(10,ke,2,1,"li",92)(11,Re,2,1,"li",92),o()()()()),n&2){let e=c(2);l(8),d("ngIf",e.outOfHourNotificationsSuspended),l(),d("ngIf",e.siteSuspended),l(),d("ngIf",!e.canReceiveImageAttachments),l(),d("ngIf",!e.selectedSchoolActive)}}function Ae(n,t){if(n&1&&(r(0,"option",93),s(1),o()),n&2){let e=t.$implicit;d("value",e.id),l(),y(e.label)}}function Ne(n,t){if(n&1&&(r(0,"option",93),s(1),o()),n&2){let e=t.$implicit;d("value",e.outOfHoursStart+"|"+e.outOfHoursEnd),l(),y(e.label)}}function Ee(n,t){if(n&1&&(r(0,"div",94),s(1),o()),n&2){let e=c(2);l(),x(" Current window: ",e.getOutOfHoursDisplayText()," ")}}function He(n,t){if(n&1){let e=b();r(0,"a",95),_("click",function(){p(e);let i=c(2);return g(i.enableSuspendOutOfHours())}),m(1,"span",96)(2,"i",97),s(3," Enable Out-of-hours Notifications "),o()}if(n&2){let e=c(2);d("title","Enable Out-of-hours Notifications ("+(e.selectedOutOfHoursWindowLabel||"5:00 PM to 6:00 AM")+" and Weekends)")}}function We(n,t){if(n&1){let e=b();r(0,"a",98),_("click",function(){p(e);let i=c(2);return g(i.enableSuspendOutOfHours())}),m(1,"span",96)(2,"i",99),s(3," Suspend Out-of-hours Notifications "),o()}if(n&2){let e=c(2);d("title","Suspend Out-of-hours Notifications ("+(e.selectedOutOfHoursWindowLabel||"5:00 PM to 6:00 AM")+" and Weekends)")}}function Ve(n,t){if(n&1){let e=b();r(0,"a",100),_("click",function(){p(e);let i=c(2);return g(i.enableDisableAllAttachment())}),m(1,"span",96)(2,"i",101),s(3," Enable All Image Attachments "),o()}}function Le(n,t){if(n&1){let e=b();r(0,"a",102),_("click",function(){p(e);let i=c(2);return g(i.enableDisableAllAttachment())}),m(1,"span",96)(2,"i",101),s(3," Disable All Image Attachments "),o()}}function De(n,t){n&1&&m(0,"span",106)}function Ue(n,t){n&1&&m(0,"i",99)}function Fe(n,t){if(n&1){let e=b();r(0,"a",103),_("click",function(){p(e);let i=c(2);return g(i.suspendAllRecipientNotifications())}),h(1,De,1,0,"span",104)(2,Ue,1,0,"i",105),s(3," Suspend All Notifications "),o()}if(n&2){let e=c(2);P("disabled",e.bulkNotificationUpdateInProgress),l(),d("ngIf",e.bulkNotificationUpdateInProgress&&e.bulkNotificationUpdateTarget),l(),d("ngIf",!(e.bulkNotificationUpdateInProgress&&e.bulkNotificationUpdateTarget))}}function ze(n,t){n&1&&m(0,"span",106)}function Ze(n,t){n&1&&m(0,"i",97)}function Ye(n,t){if(n&1){let e=b();r(0,"a",107),_("click",function(){p(e);let i=c(2);return g(i.activateAllRecipientNotifications())}),h(1,ze,1,0,"span",104)(2,Ze,1,0,"i",108),s(3," Activate All Notifications "),o()}if(n&2){let e=c(2);P("disabled",e.bulkNotificationUpdateInProgress),l(),d("ngIf",e.bulkNotificationUpdateInProgress&&!e.bulkNotificationUpdateTarget),l(),d("ngIf",!(e.bulkNotificationUpdateInProgress&&!e.bulkNotificationUpdateTarget))}}function Be(n,t){if(n&1){let e=b();A(0),r(1,"section",44)(2,"div",52)(3,"div",53)(4,"h2",54)(5,"button",55),m(6,"i",56),s(7,"Information "),o()(),r(8,"div",57)(9,"div",58)(10,"ul",59)(11,"li"),s(12,"You can Add, edit and delete staff who are responsible for receiving Stymie Notification emails."),o(),r(13,"li"),s(14,"Due to security reasons, you cannot modify an email address. You must delete and create a new Recipient with the correct email address."),o(),r(15,"li"),s(16,"Personal email addresses are "),r(17,"span",60),s(18,"not permitted"),o(),s(19,"."),o(),r(20,"li",60),s(21,"It is a requirement that you have at least two Stymie Notification Recipients (this includes the PAH and at least one other SNR)."),o(),r(22,"li"),s(23,"As the PAH, you will receive all notifications."),o(),r(24,"li"),s(25,"A staff member can have multiple Year Levels (year groups, house groups etc.). You can manage Year Levels for your School "),r(26,"a",61),s(27,"here"),o(),s(28,"."),o(),r(29,"li"),s(30,"You can suspend all Stymie Notifications to your school during periods when SNR's are unavailable to attend to their email. When your account is in suspended mode, any new Notifications will be held in a backlog and delivered when your account is activated again."),o()()()()(),h(31,Te,12,4,"div",62),o()(),r(32,"section",63)(33,"div",64)(34,"div",65)(35,"label",66),m(36,"i",67),s(37,"Your School's Time Zone"),o(),r(38,"select",68),S("ngModelChange",function(i){p(e);let u=c();return v(u.siteTimeZone,i)||(u.siteTimeZone=i),g(i)}),_("ngModelChange",function(){p(e);let i=c();return g(i.setSiteTimeZone())}),r(39,"option",69),s(40,"-- Not Set --"),o(),h(41,Ae,2,2,"option",70),o()(),r(42,"div",65)(43,"label",71),m(44,"i",72),s(45,"Out-of-hours Window"),o(),r(46,"select",73),S("ngModelChange",function(i){p(e);let u=c();return v(u.selectedOutOfHoursWindow,i)||(u.selectedOutOfHoursWindow=i),g(i)}),_("ngModelChange",function(){p(e);let i=c();return g(i.setOutOfHoursWindow())}),r(47,"option",74),s(48,"-- Select an Out-of-hours Window --"),o(),h(49,Ne,2,2,"option",70),o(),h(50,Ee,2,1,"div",75),o()(),r(51,"div",76)(52,"a",77),_("click",function(){p(e);let i=c();return g(i.displayCreateForm("SNR"))}),m(53,"i",78),s(54," Create New Recipient "),o(),r(55,"a",79),_("click",function(){p(e);let i=c();return g(i.displayCreateForm("Counsellor"))}),m(56,"i",80),s(57," Create New Counsellor "),o(),h(58,He,4,1,"a",81)(59,We,4,1,"a",82)(60,Ve,4,0,"a",83)(61,Le,4,0,"a",84)(62,Fe,4,4,"a",85)(63,Ye,4,4,"a",86),o()(),N()}if(n&2){let e=c();l(31),d("ngIf",e.outOfHourNotificationsSuspended||e.siteSuspended||!e.canReceiveImageAttachments),l(7),C("ngModel",e.siteTimeZone),l(3),d("ngForOf",e.schoolTimeZones),l(5),C("ngModel",e.selectedOutOfHoursWindow),l(3),d("ngForOf",e.outOfHoursWindowOptions),l(),d("ngIf",e.selectedOutOfHoursWindowLabel),l(8),d("ngIf",e.outOfHourNotificationsSuspended),l(),d("ngIf",!e.outOfHourNotificationsSuspended),l(),d("ngIf",!e.canReceiveImageAttachments),l(),d("ngIf",e.canReceiveImageAttachments),l(),d("ngIf",!e.siteSuspended),l(),d("ngIf",e.siteSuspended)}}function je(n,t){if(n&1&&(r(0,"span",116),s(1),o()),n&2){let e=c(2);l(),y(e.selectedSchoolName)}}function $e(n,t){if(n&1){let e=b();A(0),r(1,"section",109)(2,"div",110)(3,"h6",111),m(4,"i",112),s(5,"Recipients"),o(),h(6,je,2,1,"span",113),r(7,"span",114),s(8),o()(),r(9,"ag-grid-angular",115),_("gridReady",function(i){p(e);let u=c();return g(u.onGridReady(i))})("modelUpdated",function(){p(e);let i=c();return g(i.onGridModelUpdated())}),o()(),N()}if(n&2){let e=c();l(6),d("ngIf",e.selectedSchoolName),l(2),x("Total Records: ",e.rowData.length,""),l(),V(e.gridStyle),d("rowData",e.rowData)("columnDefs",e.colDefs)("defaultColDef",e.defaultColDef)("pagination",e.pagination)("paginationPageSize",e.paginationPageSize)("paginationPageSizeSelector",e.paginationPageSizeSelector)}}function Ge(n,t){n&1&&(r(0,"h6"),s(1," Students who may be experiencing harm will not be heard until your recipeints are activated again. Are you sure you want to suspend notifications for all recipients ? "),o())}function qe(n,t){n&1&&(r(0,"h6"),s(1," Are you sure you want to activate notifications for all recipients ? "),o())}function Ke(n,t){if(n&1){let e=b();r(0,"div",117)(1,"div",118)(2,"div",119)(3,"div",120)(4,"h2",121),s(5,"!! Attention !!"),o()(),r(6,"div",122),h(7,Ge,2,0,"h6",19)(8,qe,2,0,"h6",19),o(),r(9,"div",123)(10,"button",124),_("click",function(){p(e);let i=c();return g(i.hideBulkNotificationWarning())}),m(11,"i",125),s(12,"Back "),o(),r(13,"button",126),_("click",function(){p(e);let i=c();return g(i.confirmBulkNotificationAction())}),m(14,"i",127),s(15,"Yes "),o()()()()()}if(n&2){let e=c();l(7),d("ngIf",e.bulkNotificationUpdateTarget),l(),d("ngIf",!e.bulkNotificationUpdateTarget)}}function Je(n,t){n&1&&(r(0,"h3",142),m(1,"i",143),s(2,"Recipient Details "),o())}function Qe(n,t){n&1&&(r(0,"h3",142),m(1,"i",144),s(2,"Create New Counsellor "),o())}function Xe(n,t){n&1&&(r(0,"h3",142),m(1,"i",145),s(2,"Create New Recipient "),o())}function et(n,t){n&1&&(r(0,"div",49),m(1,"div",50),r(2,"h6",51),s(3,"Processing..."),o()())}function tt(n,t){if(n&1&&(r(0,"div",146),s(1),o()),n&2){let e=c(2);l(),x(" ",e.errorMessage," ")}}function nt(n,t){if(n&1&&(r(0,"div",147),s(1),o()),n&2){let e=c(2);l(),x(" ",e.successMessage," ")}}function it(n,t){if(n&1){let e=b();r(0,"div",153)(1,"label",183),m(2,"i",184),s(3,"Active"),o(),r(4,"select",185),S("ngModelChange",function(i){p(e);let u=c(3);return v(u.selectedRecipient.active,i)||(u.selectedRecipient.active=i),g(i)}),r(5,"option",186),s(6,"Yes"),o(),r(7,"option",187),s(8,"No"),o()(),m(9,"div",35),o()}if(n&2){let e=c(3);l(4),C("ngModel",e.selectedRecipient.active)}}function ot(n,t){if(n&1&&(r(0,"option",93),s(1),o()),n&2){let e=t.$implicit;T("value",e.siteCategoryId),l(),y(e.description)}}function rt(n,t){if(n&1){let e=b();r(0,"div",174)(1,"label",188),m(2,"i",189),s(3,"Available Year Levels"),o(),r(4,"div",190)(5,"div",178)(6,"select",191),S("ngModelChange",function(i){p(e);let u=c(3);return v(u.selectedCategoryIdForAdd,i)||(u.selectedCategoryIdForAdd=i),g(i)}),h(7,ot,2,2,"option",70),o(),r(8,"div",35),s(9," Please select year level. "),o()(),r(10,"div",192)(11,"div",193)(12,"i",194),_("click",function(){p(e);let i=c(3);return g(i.addCategory())}),o(),r(13,"i",195),_("click",function(){p(e);let i=c(3);return g(i.addCategory())}),o()()()()()}if(n&2){let e=c(3);l(6),C("ngModel",e.selectedCategoryIdForAdd),l(),d("ngForOf",e.availableSiteCategories)}}function st(n,t){n&1&&(r(0,"option",196),s(1," All Year Levels"),o())}function at(n,t){if(n&1&&(r(0,"option",93),s(1),o()),n&2){let e=t.$implicit;T("value",e.siteCategoryId),l(),y(e.description)}}function lt(n,t){n&1&&(r(0,"div",197),s(1," Counsellors receive all year levels by default."),o())}function ct(n,t){n&1&&(r(0,"div",197),s(1," Principal Account Holders (PAH\u2019s
1) receive all year levels by default."),o())}function dt(n,t){if(n&1){let e=b();r(0,"div",192)(1,"div",193)(2,"i",198),_("click",function(){p(e);let i=c(3);return g(i.removeCategory())}),o()()()}}function mt(n,t){if(n&1){let e=b();r(0,"div")(1,"div",148)(2,"div",149)(3,"div",150)(4,"h6",151),m(5,"i",152),s(6,"Recipient Profile "),o(),r(7,"div",153)(8,"label",154),m(9,"i",155),s(10,"Email"),o(),r(11,"input",156),S("ngModelChange",function(i){p(e);let u=c(2);return v(u.selectedRecipient.email,i)||(u.selectedRecipient.email=i),g(i)}),o(),r(12,"div",35),s(13," Please provide the email address. "),o()(),r(14,"div",153)(15,"label",157),m(16,"i",158),s(17,"Title"),o(),r(18,"select",159),S("ngModelChange",function(i){p(e);let u=c(2);return v(u.selectedRecipient.title,i)||(u.selectedRecipient.title=i),g(i)}),r(19,"option",69),s(20,"-- Select a Title --"),o(),r(21,"option",160),s(22,"Mr"),o(),r(23,"option",161),s(24,"Mrs"),o(),r(25,"option",162),s(26,"Ms"),o(),r(27,"option",163),s(28,"Miss"),o(),r(29,"option",164),s(30,"Dr"),o(),r(31,"option",165),s(32,"Professor"),o()(),r(33,"div",35),s(34," Please select Title. "),o()(),r(35,"div",153)(36,"label",166),m(37,"i",167),s(38,"First Name"),o(),r(39,"input",168),S("ngModelChange",function(i){p(e);let u=c(2);return v(u.selectedRecipient.firstName,i)||(u.selectedRecipient.firstName=i),g(i)}),o(),r(40,"div",35),s(41," Please provide a valid first name. "),o()(),r(42,"div",153)(43,"label",169),m(44,"i",167),s(45,"Surname"),o(),r(46,"input",170),S("ngModelChange",function(i){p(e);let u=c(2);return v(u.selectedRecipient.surname,i)||(u.selectedRecipient.surname=i),g(i)}),o(),r(47,"div",35),s(48," Please provide a valid surname. "),o()(),h(49,it,10,1,"div",171),o()(),r(50,"div",149)(51,"div",150)(52,"h6",151),m(53,"i",172),s(54,"Year Level Access "),o(),h(55,rt,14,2,"div",173),r(56,"div",174)(57,"label",175),m(58,"i",176),s(59,"Assigned Year Levels"),o(),r(60,"div",177)(61,"div",178)(62,"select",179),S("ngModelChange",function(i){p(e);let u=c(2);return v(u.selectedCategoryIdForRemove,i)||(u.selectedCategoryIdForRemove=i),g(i)}),h(63,st,2,0,"option",180)(64,at,2,2,"option",70),o(),r(65,"div",35),s(66," Please select year level. "),o(),h(67,lt,2,0,"div",181)(68,ct,2,0,"div",181),o(),h(69,dt,3,0,"div",182),o()()()()()()}if(n&2){let e=c(2);l(11),T("disabled",!e.isCreate),C("ngModel",e.selectedRecipient.email),l(7),C("ngModel",e.selectedRecipient.title),l(21),C("ngModel",e.selectedRecipient.firstName),l(7),C("ngModel",e.selectedRecipient.surname),l(3),d("ngIf",!e.isCreate),l(6),d("ngIf",e.selectedRecipient.role!="Counsellor"&&e.selectedRecipient.role!="Principal Account Holder"),l(7),C("ngModel",e.selectedCategoryIdForRemove),l(),d("ngIf",e.assignedSiteCategories.length==0),l(),d("ngForOf",e.assignedSiteCategories),l(3),d("ngIf",e.selectedRecipient.role=="Counsellor"),l(),d("ngIf",e.selectedRecipient.role=="Principal Account Holder"),l(),d("ngIf",e.selectedRecipient.role!="Counsellor"&&e.selectedRecipient.role!="Principal Account Holder")}}function pt(n,t){n&1&&(r(0,"button",199),m(1,"i",200),s(2,"Save Recipient "),o())}function gt(n,t){if(n&1){let e=b();r(0,"div",128)(1,"div",129)(2,"form",130),_("ngSubmit",function(){p(e);let i=c();return g(i.saveRecipient())}),r(3,"div",131)(4,"div",132)(5,"div",133),h(6,Je,3,0,"h3",134)(7,Qe,3,0,"h3",134)(8,Xe,3,0,"h3",134),r(9,"p",135),s(10,"Manage recipient details and year-level allocations."),o()(),r(11,"button",136),_("click",function(){p(e);let i=c();return g(i.hideSelectedRecipientModal())}),o()(),r(12,"div",137),h(13,et,4,0,"div",18)(14,tt,2,1,"div",138)(15,nt,2,1,"div",139)(16,mt,70,13,"div",19),o(),r(17,"div",140)(18,"button",124),_("click",function(){p(e);let i=c();return g(i.hideSelectedRecipientModal())}),m(19,"i",125),s(20,"Back "),o(),h(21,pt,3,0,"button",141),o()()()()()}if(n&2){let e=c();l(6),d("ngIf",e.selectedRecipient.email!=""),l(),d("ngIf",e.selectedRecipient.email==""&&e.selectedRecipient.role=="Counsellor"),l(),d("ngIf",e.selectedRecipient.email==""&&e.selectedRecipient.role!="Counsellor"),l(5),d("ngIf",e.isLoading),l(),d("ngIf",e.errorMessage!=""&&!e.isLoading),l(
1),d("ngIf",e.successMessage!=""&&!e.isLoading),l(),d("ngIf",!e.isLoading&&e.successMessage==""),l(5),d("ngIf",e.successMessage=="")}}function ut(n,t){n&1&&m(0,"span",202)}function _t(n,t){if(n&1){let e=b();r(0,"div",117)(1,"div",118)(2,"div",119)(3,"div",120)(4,"h2",121),s(5,"!! Attention !!"),o()(),r(6,"div",122)(7,"h6"),s(8,"WOAH NELLY! Are you very sure you want to delete "),r(9,"span",60),s(10),o(),s(11,"? This cannot be undone."),o()(),r(12,"div",123)(13,"button",124),_("click",function(){p(e);let i=c();return g(i.hideDeleteWarning())}),m(14,"i",125),s(15,"Back "),o(),r(16,"button",126),_("click",function(){p(e);let i=c();return g(i.deleteSnr())}),h(17,ut,1,0,"span",201),m(18,"i",127),s(19,"Yes "),o()()()()()}if(n&2){let e=c();l(10),w(" ",e.selectedRecipient.firstName," ",e.selectedRecipient.surname," "),l(7),d("ngIf",e.isLoading)}}function ht(n,t){n&1&&m(0,"span",202)}function ft(n,t){if(n&1){let e=b();r(0,"div",117)(1,"div",118)(2,"div",119)(3,"div",120)(4,"h2",121),s(5,"!! Attention !!"),o()(),r(6,"div",122)(7,"h6"),s(8,"Students who may be experiencing harm will not be heard by this recipient until activated again. Are you sure you want to suspend notifications for "),r(9,"span",60),s(10),o()()(),r(11,"div",123)(12,"button",124),_("click",function(){p(e);let i=c();return g(i.hideSuspendWarning())}),m(13,"i",125),s(14,"Back "),o(),r(15,"button",126),_("click",function(){p(e);let i=c();return g(i.activateOrSuspendRecipient())}),h(16,ht,1,0,"span",201),m(17,"i",127),s(18,"Yes "),o()()()()()}if(n&2){let e=c();l(10),w(" ",e.selectedRecipient.firstName," ",e.selectedRecipient.surname," "),l(6),d("ngIf",e.isLoading)}}function bt(n,t){n&1&&m(0,"span",202)}function xt(n,t){if(n&1){let e=b();r(0,"div",117)(1,"div",118)(2,"div",119)(3,"div",120)(4,"h2",121),s(5,"!! Attention !!"),o()(),r(6,"div",122)(7,"h6"),s(8,"Are you sure you want to disable email attachments for "),r(9,"span",60),s(10),o(),s(11," ? "),o()(),r(12,"div",123)(13,"button",124),_("click",function(){p(e);let i=c();return g(i.hideDisableAttachmentWarning())}),m(14,"i",125),s(15,"Back "),o(),r(16,"button",126),_("click",function(){p(e);let i=c();return g(i.enableDisableAttachment())}),h(17,bt,1,0,"span",201),m(18,"i",127),s(19,"Yes "),o()()()()()}if(n&2){let e=c();l(10),w(" ",e.selectedRecipient.firstName," ",e.selectedRecipient.surname," "),l(7),d("ngIf",e.isLoading)}}function Ct(n,t){n&1&&(r(0,"span"),s(1,"You will be logged out and you won't be able to view this page or administer SNR's if you do so."),o())}function vt(n,t){n&1&&m(0,"span",202)}function St(n,t){if(n&1){let e=b();r(0,"div",117)(1,"div",118)(2,"div",119)(3,"div",120)(4,"h2",121),s(5,"!! Attention !!"),o()(),r(6,"div",122)(7,"h6"),s(8,"Are you sure you want to make "),r(9,"span",60),s(10),o(),s(11," the Principal Account holder? "),h(12,Ct,2,0,"span",19),o()(),r(13,"div",123)(14,"button",124),_("click",function(){p(e);let i=c();return g(i.hideMakePAHWarning())}),m(15,"i",125),s(16,"Back "),o(),r(17,"button",126),_("click",function(){p(e);let i=c();return g(i.makePAH())}),h(18,vt,1,0,"span",201),m(19,"i",127),s(20,"Yes "),o()()()()()}if(n&2){let e=c();l(10),w(" ",e.selectedRecipient.firstName," ",e.selectedRecipient.surname," "),l(2),d("ngIf",!e.isAdminMode),l(6),d("ngIf",e.isLoading)}}le.registerModules([ce]);var pe=class n{constructor(t,e,a,i,u,R){this.siteService=t;this.globalUtils=e;this.snrService=a;this.router=i;this.authService=u;this.appComponent=R;this.setGridSize()}pagination=!1;paginationPageSize=10;paginationPageSizeSelector=[10,20,30,40,50];gridStyle="height: 500px";maxGridHeight=500;isLoading=!1;errorMessage="";colDefs=[];defaultColDef={flex:1};rowData=[];countries;successMessage="";showSelectedRecipientModal;gridApi;selectedRecipient;showDeleteWarning=!1;isCreate=!1;schools;keyword="siteName";isSchoolSearchLoading=!1;showSchoolSelectorModal=!1;selectedSchoolId=0;selectedSchoolActive=!1;loggedInRole="";snrList=[];isSnrFetchComplete=!1;availableSiteCategories=[];assignedSiteCategories=[];StymieRoles=ie;selectedCategoryIdForAdd;selectedCategoryIdForRemove;showSuspendWarning=!1;showMakePAHWarning=!1;showDisableAttachmentWarning=!1;selectedRowData;isAdminMode=!1;outOfHourNotificationsSuspended=!1;canReceiveImageAttachments=!1;selectedSchoolName="";siteSuspended=!1;siteTimeZone="";schoolTimeZones=[];outOfHoursWindowOptions=[];selectedOutOfHoursWindow="";selectedOutOfHoursWindowLabel="";bulkNotificationUpdateInProgress=!1;bulkNotificationUpdateTarget=!1;showBulkNotificationWarning=!1;regex=new RegExp("^[a-zA-Z0-9_ ]*$");setGridSize(){this.maxGridHeight=Math.max(window.innerHeight-315,260),this.updateDynamicGridHeight()}ngOnInit(){(0,f.default)("#indexPreloader").hide(),this.loggedInRole=this.globalUtils.getLoggedInUserRole(),this.countries=this.globalUtils.getCountries();let t=this.globalUtils.getLoggedInUserSiteId();this.isAdminMode=this.loggedInRole=="GlobalAdmin"||this.loggedInRole=="StymieAdmin",this.loadOutOfHoursWindowOptions(),this.loggedInRole=="Member"&&this.setSchoolId(t?Number(t):0),this.prepareColumnDefinitions()}onGridReady(t){this.gridApi=t.api,this.updateDynamicGridHeight()}onGridModelUpdated(){this.updateDynamicGridHeight()}setSchoolId(t){this.selectedSchoolId=t;let e=this.isAdminMode?this.schools?.find(i=>i.siteId===this.selectedSchoolId):null,a=this.isAdminMode?Number(e?.countryId??this.globalUtils.getCountryId()):this.globalUtils.getCountryId();this.selectedSchoolName=this.isAdminMode?e?.siteName??"":this.globalUtils.getLoggedInUserSiteName(),this.selectedSchoolActive=this.isAdminMode?!!e?.active:!0,this.setSchoolTimeZones(a),this.fetchSnrList(),this.selectedSchoolId>0?(this.availableSiteCategories=[],this.outOfHourNotificationsSuspended=!1,this.canReceiveImageAttachments=!0,this.siteSuspended=!1,this.siteTimeZone="",this.selectedOutOfHoursWindow="",this.selectedOutOfHoursWindowLabel="",this.siteService.getSiteCategories(this.selectedSchoolId).subscribe({next:i=>{this.availableSiteCategories=i},error:i=>{console.log(i),this.availableSiteCategories=[]}}),this.siteService.getOutOfHours(this.selectedSchoolId).subscribe({next:i=>{this.outOfHourNotificationsSuspended=!!i?.normalHoursOnly;let u=i?.outOfHoursStart??"17:00:00",R=i?.outOfHoursEnd??"06:00:00";this.selectedOutOfHoursWindow=this.getOutOfHoursWindowKey(u,R),this.setSelectedOutOfHoursWindowLabel()},error:i=>{console.log(i)}}),this.siteService.getCanReceiveAttachment(this.selectedSchoolId).subscribe({next:i=>{this.canReceiveImageAttachments=i},error:i=>{console.log(i)}}),this.siteService.getSiteSuspended(this.selectedSchoolId).subscribe({next:i=>{this.siteSuspended=i},error:i=>{console.log(i)}}),this.siteService.getSiteTimeZone(this.selectedSchoolId).subscribe({next:i=>{this.siteTimeZone=i.timezone,this.ensureCurrentSiteTimeZoneOption()},error:i=>{console.log(i)}})):(this.siteTimeZone="",this.schoolTimeZones=[],this.selectedOutOfHoursWindow="",this.selectedOutOfHoursWindowLabel="")}onSchoolSelected(t){this.setSchoolId(t),this.selectedSchoolId>0&&(this.showSchoolSelectorModal=!1)}onSchoolInputCleared(){this.setSchoolId(0),this.showSchoolSelectorModal=!1}openSchoolSelectorModal(){this.showSchoolSelectorModal=!0}closeSchoolSelectorModal(){this.showSchoolSelectorModal=!1}showInlineSchoolSelector(){return this.isAdminMode&&this.selectedSchoolId===0}showSchoolSelectorFab(){return this.isAdminMode&&this.selectedSchoolId>0}onChangeSchoolSearch(t){this.isSchoolSearchLoading=!0,t.length>=2&&this.siteService.searchAllSitesByName(t).subscribe({next:e=>{this.schools=e,this.isSchoolSearchLoading=!1},error:e=>{console.log(e)}})}prepareColumnDefinitions(){this.colDefs=[{headerName:"Recipient Name",field:"recipientName",filter:"agTextColumnFilter",filterParams:{buttons:["reset"]},cellStyle:t=>t.data.role=="Principal Account Holder"?{color:"red"}:{color:"black"},onCellClicked:t=>{this.editRecipient(t.data)}},{headerName:"Email",field:"email",filter:"agTextColumnFilter",filterParams:{buttons:["reset"]},onCellClicked:t=>{this.editRecipient(t.data)}},{headerName:"Recipient Type",field:"role",filter:"agTextColumnFilter",filterParams:{buttons:["reset"]},onCellClicked:t=>{this.editRecipient(t.data)}},{headerName:"Year Level",field:"categoriesDisplayValue",filter:"agTextColumnFilter",filterParams:{buttons:["reset"],values:["Australia","NewZealand"]},onCellClicked:t=>{this.editRecipient(t.data)}},{headerName:"Image Attachment ?",field:"canReceiveAttachments",filter:!1,minWidth:200,onCellClicked:t=>{this.selectedRowData=t,this.selectedRecipient=t.data,this.selectedRecipient.canReceiveAttachments?this.showDisableAttachmentWarning=!0:this.enableDisableAttachment()},cellRenderer:t=>t.value?'<button type="button" class="btn btn-danger" id="disableAttachments"> <span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>Disable Attachments</button>':'<button type="button" class="btn btn-success" id="enableAttachments"><span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>Enable Attachments</button>'},{headerName:"Suspended ?",field:"suspended",filter:!1,minWidth:200,cellRenderer:t=>{if(this.bulkNotificationUpdateInProgress){let e=this.bulkNotificationUpdateTarget;return'<button type="button" class="btn '+(e?"btn-danger":"btn-success")+'" disabled><span class="spinner-border spinner-border-sm me-1" role="status" aria-hidden="true"></span>'+(e?"Suspending Notifications":"Activating Notifications")+"</button>"}return t.value?'<button type="button" class="btn btn-success" id="activateNotifications"> <span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>Activate Notifications</button>':'<button type="button" class="btn btn-danger" id="suspendNotifications">  <span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>Suspend Notifications</button>'},onCellClicked:t=>{this.bulkNotificationUpdateInProgress||(this.selectedRowData=t,this.selectedRecipient=t.data,this.selectedRecipient.suspended?this.activateOrSuspendRecipient():this.showSuspendWarning=!0)}},{headerName:"PAH ?",field:"role",maxWidth:130,minWidth:130,filter:!1,cellRenderer:t=>t.value=="SNR"?'<button type="button" class="btn btn-info" id="makePah"> <span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>Make PAH</button>':"",onCellClicked:t=>{this.selectedRowData=t,this.selectedRecipient=t.data,this.selectedRecipient.role=="SNR"&&(this.showMakePAHWarning=!0)}},{headerName:"Action",field:"role",maxWidth:120,minWidth:120,filter:!1,cellRenderer:t=>t.value!="Principal Account Holder"?'<button type="button" class="btn btn-danger" id="deleteRecipient"> <span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>
1Delete</button>':"",onCellClicked:t=>{this.selectedRowData=t,this.selectedRecipient=t.data,this.selectedRecipient.role!="Principal Account Holder"&&(this.showDeleteWarning=!0)}},{headerName:"Action",field:"recipientId",maxWidth:100,minWidth:80,filter:!1,onCellClicked:t=>{this.editRecipient(t.data)},cellRenderer:t=>'<button type="button" class="btn btn-secondary">Edit</button>'}]}editRecipient(t){this.assignedSiteCategories=[],this.selectedRecipient=t,this.isCreate=!1,this.errorMessage="",this.successMessage="",t.role=="Counsellor"||t.role=="Principal Account Holder"?this.assignedSiteCategories=[]:this.assignedSiteCategories=this.selectedRecipient.assignedSiteCategories,this.showSelectedRecipientModal=!0}hideSelectedRecipientModal(){this.showSelectedRecipientModal=!1}saveRecipient(){this.validateRecipientForm()&&(this.isLoading=!0,this.errorMessage="",this.successMessage="",this.selectedRecipient.active=JSON.parse(this.selectedRecipient.active),this.selectedRecipient.SiteCategories=this.assignedSiteCategories,this.snrService.saveSnr(this.selectedRecipient).subscribe({next:t=>{this.successMessage=`The ${this.selectedRecipient.role} has been `+(this.isCreate?"added":"updated")+" successfully.",this.errorMessage="",this.isLoading=!1,this.fetchSnrList(),this.hideSelectedRecipientModal(),this.hideSuccessMessageTimeout()},error:t=>{this.successMessage="",this.errorMessage="Unable to save the recipient. Error: "+t.message,console.log(t),this.isLoading=!1}}))}hideDeleteWarning(){this.showDeleteWarning=!1}hideDisableAttachmentWarning(){this.showDisableAttachmentWarning=!1}deleteSnr(){this.errorMessage="",this.successMessage="",(0,f.default)("span",this.selectedRowData.event.srcElement).removeClass("d-none"),(0,f.default)(this.selectedRowData.event.srcElement).addClass("disabled"),this.hideDeleteWarning(),this.snrService.deleteSnr(this.selectedRecipient.userId,this.selectedRecipient.recipientId,this.selectedRecipient.siteId).subscribe({next:t=>{this.successMessage=`${this.selectedRecipient.firstName} ${this.selectedRecipient.surname} has been deleted successfully.`,this.showDeleteWarning=!1,this.errorMessage="",this.isLoading=!1,this.fetchSnrList(),this.hideSuccessMessageTimeout()},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to delete ${this.selectedRecipient.firstName}${this.selectedRecipient.surname}`+t.message,console.log(t),this.isLoading=!1,(0,f.default)(this.selectedRowData.event.srcElement).removeClass("disabled")}})}makePAH(){this.errorMessage="",this.successMessage="",(0,f.default)("span",this.selectedRowData.event.srcElement).removeClass("d-none"),(0,f.default)(this.selectedRowData.event.srcElement).addClass("disabled"),this.hideMakePAHWarning(),this.authService.promoteUserToPAH(this.selectedRecipient.userId,this.selectedRecipient.siteId).subscribe({next:t=>{this.successMessage=`${this.selectedRecipient.firstName} ${this.selectedRecipient.surname} has been updated as a Principal Account Holder. ${this.isAdminMode?"":"You will be logged out soon."}`,this.showDeleteWarning=!1,this.errorMessage="",this.isLoading=!1,this.fetchSnrList(),this.hideSuccessMessageTimeout(),setTimeout(()=>{this.isAdminMode||this.signOut()},2e3)},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to update ${this.selectedRecipient.firstName}${this.selectedRecipient.surname}`+t.message,console.log(t),(0,f.default)(this.selectedRowData.event.srcElement).removeClass("disabled"),this.isLoading=!1}})}activateOrSuspendRecipient(){this.errorMessage="",this.successMessage="",(0,f.default)("span",this.selectedRowData.event.srcElement).removeClass("d-none"),(0,f.default)(this.selectedRowData.event.srcElement).addClass("disabled"),this.hideSuspendWarning(),this.snrService.suspendActiveSnr(this.selectedRecipient.userId,!this.selectedRecipient.suspended).subscribe({next:t=>{this.successMessage=`${this.selectedRecipient.firstName} ${this.selectedRecipient.surname} has been ${this.selectedRecipient.suspended?"activated":"suspended"} to receive notifications.`,this.showDeleteWarning=!1,this.errorMessage="",this.isLoading=!1,this.setSchoolId(this.selectedSchoolId),this.fetchSnrList(),this.hideSuccessMessageTimeout()},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to ${this.selectedRecipient.suspended?"activate":"suspend"}the recipient. ${this.selectedRecipient.firstName} ${this.selectedRecipient.surname}`+t.message,console.log(t),(0,f.default)("span",this.selectedRowData.event.srcElement).addClass("d-none"),(0,f.default)(this.selectedRowData.event.srcElement).removeClass("disabled"),this.isLoading=!1}})}validateRecipientForm(){return this.selectedRecipient.title==""?((0,f.default)("#title+.invalid-feedback").addClass("d-block"),!1):((0,f.default)("#title+.invalid-feedback").removeClass("d-block"),this.selectedRecipient.firstName==""||!this.regex.test(this.selectedRecipient.firstName)?((0,f.default)("#firstName+.invalid-feedback").addClass("d-block"),!1):((0,f.default)("#firstName+.invalid-feedback").removeClass("d-block"),this.selectedRecipient.surname==""||!this.regex.test(this.selectedRecipient.surname)?((0,f.default)("#surname+.invalid-feedback").addClass("d-block"),!1):((0,f.default)("#surname+.invalid-feedback").removeClass("d-block"),this.selectedRecipient.email!="")))}fetchSnrList(){this.selectedSchoolId>0&&(this.rowData=[],this.isSnrFetchComplete=!1,this.isLoading=!0,this.errorMessage="",this.snrService.fetchRecipients(this.selectedSchoolId).subscribe({next:t=>{this.isLoading=!1,this.snrList=t.siteRecipients,this.rowData=this.snrList.sort(function(e,a){return e.role<a.role?-1:e.role>a.role?1:0}),this.processRowData(),this.isSnrFetchComplete=!0,this.updateDynamicGridHeight()},error:t=>{this.isLoading=!1,this.errorMessage=t.message,this.isSnrFetchComplete=!0,this.updateDynamicGridHeight()}}))}processRowData(){this.rowData.forEach(t=>{t.recipientName=t.user.title+" "+t.user.firstName+" "+t.user.surname,t.yearLevel=t.siteCategory?t.siteCategory.description:"All Year Levels",t.suspended=t.user.suspended,t.active=t.user.active,t.title=t.user.title,t.f
1irstName=t.user.firstName,t.surname=t.user.surname})}updateDynamicGridHeight(){let t=this.gridApi?this.gridApi.getDisplayedRowCount():Array.isArray(this.rowData)?this.rowData.length:0,e=43,a=56,i=180,u=a+Math.max(t,1)*e+2,R=Math.min(this.maxGridHeight,Math.max(i,u));this.gridStyle=`height: ${R}px`}displayCreateForm(t){this.successMessage="",this.errorMessage="",this.isCreate=!0,this.selectedRecipient={},this.selectedRecipient.recipientId=0,this.selectedRecipient.siteId=this.selectedSchoolId,this.selectedRecipient.email="",this.selectedRecipient.title="",this.selectedRecipient.firstName="",this.selectedRecipient.surname="",this.selectedRecipient.UserId="",this.selectedRecipient.active=!0,this.selectedRecipient.suspended=!1,this.selectedRecipient.AdminMode=this.isAdminMode,this.selectedRecipient.CanReceiveAttachments=!0,this.selectedRecipient.role=t,this.showSelectedRecipientModal=!0,this.assignedSiteCategories=[]}removeCategory(){this.errorMessage="";let t=this.assignedSiteCategories.filter(e=>e.siteCategoryId==this.selectedCategoryIdForRemove)[0];if(t){let e=this.assignedSiteCategories.indexOf(t,0);e>-1&&this.assignedSiteCategories.splice(e,1)}else this.errorMessage="Please select a year level from the assigned list before clicking the delete button."}addCategory(){this.errorMessage="";let t=this.availableSiteCategories.filter(e=>e.siteCategoryId==this.selectedCategoryIdForAdd)[0];t?this.assignedSiteCategories.indexOf(t)==-1?this.assignedSiteCategories.push(t):this.errorMessage="Year level already assigned.":this.errorMessage="Please select a year level from the available list before clicking the plus button."}enableDisableAttachment(){this.errorMessage="",this.successMessage="",(0,f.default)("span",this.selectedRowData.event.srcElement).removeClass("d-none"),(0,f.default)(this.selectedRowData.event.srcElement).addClass("disabled"),this.hideDisableAttachmentWarning(),this.snrService.enableDisableAttachment(this.selectedRecipient.userId,!this.selectedRecipient.canReceiveAttachments).subscribe({next:t=>{this.successMessage=`Image attachments has been  ${this.selectedRecipient.canReceiveAttachments?"disabled":"enabled"} for ${this.selectedRecipient.firstName} ${this.selectedRecipient.surname}.`,this.showDeleteWarning=!1,this.errorMessage="",this.isLoading=!1,this.fetchSnrList()},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to ${this.selectedRecipient.canReceiveAttachments?"disable":"enable"} image attachment for the recipient. ${this.selectedRecipient.firstName} ${this.selectedRecipient.surname}`+t.message,console.log(t),(0,f.default)("span",this.selectedRowData.event.srcElement).addClass("d-none"),(0,f.default)(this.selectedRowData.event.srcElement).removeClass("disabled"),this.isLoading=!1}})}hideSuspendWarning(){this.showSuspendWarning=!1}hideMakePAHWarning(){this.showMakePAHWarning=!1}signOut(){this.authService.signOut().subscribe(t=>{}),this.globalUtils.clearSessionStorage(),this.router.navigate(["/portal"])}enableSuspendOutOfHours(){this.errorMessage="",this.successMessage="",(0,f.default)("#enableOutOfHours span").removeClass("d-none").addClass("disabled"),(0,f.default)("#disableOutOfHours span").removeClass("d-none").addClass("disabled"),this.siteService.setOutOfHours(!this.outOfHourNotificationsSuspended,this.selectedSchoolId,this.isAdminMode).subscribe({next:t=>{this.successMessage=`Out-of-hours notifications have been  ${this.outOfHourNotificationsSuspended?"enabled":"disabled"} [${this.selectedOutOfHoursWindowLabel||"5:00 PM to 6:00 AM"} and Weekends].`,this.errorMessage="",this.isLoading=!1,this.outOfHourNotificationsSuspended=!this.outOfHourNotificationsSuspended,this.hideSuccessMessageTimeout()},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to ${this.outOfHourNotificationsSuspended?"enable":"disable"} out-of-hours notifications.`+t.message,console.log(t),(0,f.default)("#enableOutOfHours span").addClass("d-none").removeClass("disabled"),(0,f.default)("#disableOutOfHours span").addClass("d-none").removeClass("disabled"),this.isLoading=!1}})}setOutOfHoursWindow(){if(this.errorMessage="",this.successMessage="",this.selectedSchoolId<=0||this.selectedOutOfHoursWindow==="")return;let t=this.outOfHoursWindowOptions.find(e=>this.getOutOfHoursWindowKey(e.outOfHoursStart,e.outOfHoursEnd)===this.selectedOutOfHoursWindow);t&&this.siteService.setOutOfHoursWindow(t.outOfHoursStart,t.outOfHoursEnd,this.selectedSchoolId,this.isAdminMode).subscribe({next:()=>{this.setSelectedOutOfHoursWindowLabel(),this.successMessage=`Out-of-hours window has been updated to ${this.selectedOutOfHoursWindowLabel||t.label}.`,this.hideSuccessMessageTimeout()},error:e=>{this.successMessage="",this.errorMessage="Unable to update out-of-hours window."+e.message,console.log(e)}})}hideSuccessMessageTimeout(){setTimeout(()=>{this.successMessage=""},5e3)}enableDisableAllAttachment(){this.errorMessage="",this.successMessage="",(0,f.default)("#enableImageAttachments span").removeClass("d-none").addClass("disabled"),(0,f.default)("#disableImageAttachments span").removeClass("d-none").addClass("disabled"),this.siteService.setCanReceiveAttachment(!this.canReceiveImageAttachments,this.selectedSchoolId,this.isAdminMode).subscribe({next:t=>{this.successMessage=`Image attachments for all recipients have been  ${this.canReceiveImageAttachments?"disabled.":"enabled."} `,this.errorMessage="",this.isLoading=!1,this.canReceiveImageAttachments=!this.canReceiveImageAttachments,this.hideSuccessMessageTimeout(),this.fetchSnrList()},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to ${this.canReceiveImageAttachments?"disabled":"enabled"} image attachments.`+t.message,console.log(t),(0,f.default)("#enableImageAttachments span").addClass("d-none").removeClass("disabled"),(0,f.default)("#disableImageAttachments span").addClass("d-none").removeClass("disabled"),this.isLoading=!1}})}suspendAllRecipientNotifications(){this.showBulkNotificationWarning=!0,this.bulkNotificationUpdateTarget=!0}activateAllRecipientNotifications(){this.showBulkNotificationWarning=!0,this.bulkNotificationUpdateTarget=!1}hideBulkNotificationWarning(){this.showBulkNotificationWarning=!1}confirmBulkNotificationAction(){this.hideBulkNotificationWarning(),this.setAllRecipientNotifications(this.bulkNotificationUpdateTarget)}setAllRecipientNotifications(t){if(this.selectedSchoolId<=0||this.bulkNotificationUpdateInProgress||!Array.isArray(this.rowData)||this.rowData.length===0)return;this.errorMessage="",this.successMessage="",this.bulkNotificationUpdateInProgress=!0,this.bulkNotificationUpdateTarget=t,this.refreshNotificationButtons();let e=this.rowData.map(a=>this.snrService.suspendActiveSnr(a.userId,t));E(e).subscribe({next:()=>{this.successMessage=`All notifications for ${this.selectedSchoolName||"the selected school"} have been ${t?"suspended":"activated"}.`,this.errorMessage="",this.bulkNotificationUpdateInProgress=!1,this.bulkNotificationUpdateTarget=!1,this.siteSuspended=t,this.refreshNotificationButtons(),this.fetchSnrList(),this.hideSuccessMessageTimeout()},error:a=>{this.successMessage="",this.errorMessage=`Unable to ${t?"suspend":"activate"}
1 all notifications. `+a.message,console.log(a),this.bulkNotificationUpdateInProgress=!1,this.bulkNotificationUpdateTarget=!1,this.refreshNotificationButtons(),this.fetchSnrList()}})}refreshNotificationButtons(){this.gridApi&&this.gridApi.refreshCells({force:!0,columns:["suspended"]})}setSiteTimeZone(){this.errorMessage="",this.successMessage="",this.siteService.setSiteTimeZone(this.siteTimeZone,this.selectedSchoolId,this.isAdminMode).subscribe({next:t=>{this.successMessage=`TimeZone has been updated for ${this.selectedSchoolName}`,this.errorMessage="",this.isLoading=!1,this.hideSuccessMessageTimeout()},error:t=>{this.successMessage="",this.showDeleteWarning=!1,this.errorMessage=`Unable to update TimeZone has been for ${this.selectedSchoolName}`+t.message,console.log(t),this.isLoading=!1}})}setSchoolTimeZones(t){let a=this.getCountryList().find(i=>Number(i.countryId)===Number(t));if(!a){this.schoolTimeZones=[];return}try{let i=typeof a.timeZonesJson=="string"?JSON.parse(a.timeZonesJson):a.timeZonesJson;this.schoolTimeZones=Array.isArray(i)?i:[]}catch(i){console.log(i),this.schoolTimeZones=[]}this.ensureCurrentSiteTimeZoneOption()}ensureCurrentSiteTimeZoneOption(){if(this.siteTimeZone==="")return;this.schoolTimeZones.some(e=>e.id===this.siteTimeZone)||(this.schoolTimeZones=[{id:this.siteTimeZone,label:this.siteTimeZone},...this.schoolTimeZones])}loadOutOfHoursWindowOptions(){this.siteService.getOutOfHoursWindowOptions().subscribe({next:t=>{this.outOfHoursWindowOptions=Array.isArray(t)?t:[],this.setSelectedOutOfHoursWindowLabel()},error:t=>{console.log(t),this.outOfHoursWindowOptions=[],this.setSelectedOutOfHoursWindowLabel()}})}setSelectedOutOfHoursWindowLabel(){let t=this.outOfHoursWindowOptions.find(e=>this.getOutOfHoursWindowKey(e.outOfHoursStart,e.outOfHoursEnd)===this.selectedOutOfHoursWindow);this.selectedOutOfHoursWindowLabel=t?.label??""}getOutOfHoursWindowKey(t,e){return`${t}|${e}`}getOutOfHoursWeekdayWindowText(){return this.selectedOutOfHoursWindowLabel||"5:00 PM to 6:00 AM"}getOutOfHoursDisplayText(){return`Weekends and ${this.getOutOfHoursWeekdayWindowText()} on weekdays`}getCountryList(){return Array.isArray(this.countries)?this.countries:this.countries&&Array.isArray(this.countries.countries)?this.countries.countries:[]}static \u0275fac=function(e){return new(e||n)(M(se),M(z),M(ae),M(F),M(oe),M(re))};static \u0275cmp=H({type:n,selectors:[["app-content"]],hostBindings:function(e,a){e&1&&_("resize",function(u){return a.setGridSize(u)},!1,W)},standalone:!0,features:[L],decls:26,vars:14,consts:[["itemTemplateInline",""],["notFoundTemplateInline",""],["itemTemplateModal",""],["notFoundTemplateModal",""],[1,"container-fluid","snr-page","py-3"],[1,"snr-shell"],[1,"snr-top-row","col-lg-10","mx-auto","mb-2"],["aria-label","SNR Page Header",1,"snr-header"],["aria-hidden","true",1,"snr-header__icon"],[1,"fa","fa-users"],[1,"snr-header__title"],["aria-hidden","true",1,"snr-header__divider"],[1,"snr-header__subtitle","mb-0"],["class","snr-floating-messages",4,"ngIf"],["class","snr-school-fab","type","button","title","Search school",3,"snr-school-fab--active","click",4,"ngIf"],["class","col-lg-10 mx-auto mb-1 snr-school-inline",4,"ngIf"],["class","snr-school-overlay",3,"snr-school-overlay--open","click",4,"ngIf"],["class","col-lg-10 mx-auto mb-1",4,"ngIf"],["class","row d-flex justify-content-center",4,"ngIf"],[4,"ngIf"],["class","modal d-block","tabindex","-1","role","dialog",4,"ngIf"],["class","modal d-block snr-recipient-modal","tabindex","-1","role","dialog",4,"ngIf"],[1,"snr-floating-messages"],["class","alert alert-danger alert-dismissible fade show shadow","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show shadow","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","shadow"],["type","button","aria-label","Close",1,"btn-close",3,"click"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show","shadow"],["type","button","title","Search school",1,"snr-school-fab",3,"click"],["aria-hidden","true",1,"fa","fa-school"],["aria-hidden","true",1,"fa","fa-search"],[1,"col-lg-10","mx-auto","mb-1","snr-school-inline"],["id","schoolSearch",1,"form-group","col-lg-8","mx-auto"],["aria-hidden","true",1,"fa","fa-school","me-1"],["placeholder","Type school name to search...","notFoundText","School not found",3,"selected","inputCleared","inputChanged","data","searchKeyword","itemTemplate","notFoundTemplate","isLoading","minQueryLength"],[1,"invalid-feedback"],[3,"innerHTML"],[1,"snr-school-overlay",3,"click"],[1,"snr-school-modal",3,"click"],[1,"snr-school-modal__header"],[1,"mb-0","text-red","fw-bold"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa","fa-times"],[1,"snr-school-modal__body"],[1,"col-lg-10","mx-auto","mb-1"],["role","note","aria-label","Principal account holder information",1,"snr-member-note"],["aria-hidden","true",1,"snr-member-note__icon"],[1,"fa","fa-user-shield"],[1,"snr-member-note__text","mb-0"],[1,"row","d-flex","justify-content-center"],["role","status",1,"spinner-border","text-red"],[1,"text-center","text-red","mt-2"],["id","snrInfoAccordion",1,"accordion","snr-info-accordion"],[1,"accordion-item"],["id","headingOne",1,"accordion-header","w-100"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseOne","aria-expanded","fal
1se","aria-controls","collapseOne",1,"accordion-button"],["aria-hidden","true",1,"fa","fa-circle-info","me-2"],["id","collapseOne","aria-labelledby","headingOne","data-bs-parent","#snrInfoAccordion",1,"accordion-collapse","collapse"],[1,"accordion-body"],[1,"fs-14","alert","alert-info","mb-0"],[1,"text-red"],["href","./portal/yearLevels"],["class","accordion-item",4,"ngIf"],[1,"snr-panel","col-lg-10","mx-auto"],[1,"snr-settings-grid"],[1,"text-start"],["for","timeZone"],["aria-hidden","true",1,"fa","fa-clock","me-1"],["id","timeZone","name","timeZone",1,"form-control","shadow",3,"ngModelChange","ngModel"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["for","outOfHoursWindow"],["aria-hidden","true",1,"fa","fa-moon","me-1"],["id","outOfHoursWindow","name","outOfHoursWindow",1,"form-control","shadow",3,"ngModelChange","ngModel"],["value","","disabled",""],["class","small text-muted mt-1",4,"ngIf"],[1,"snr-actions","mt-2"],["role","button","title","Create New Recipient",1,"btn","btn-info","slick-btn",3,"click"],["aria-hidden","true",1,"fa","fa-user-plus","me-1"],["role","button","title","Create New Counsellor",1,"btn","btn-info","slick-btn",2,"background-color","#c67fc6",3,"click"],["aria-hidden","true",1,"fa","fa-user-md","me-1"],["class","btn btn-success slick-btn","role","button","id","enableOutOfHours",3,"title","click",4,"ngIf"],["class","btn btn-primary slick-btn","role","button","id","disableOutOfHours",3,"title","click",4,"ngIf"],["class","btn btn-success slick-btn","role","button","title","Enable All Image Attachments","id","enableImageAttachments",3,"click",4,"ngIf"],["class","btn btn-primary slick-btn","role","button","title","Disable All Image Attachments","id","disableImageAttachments",3,"click",4,"ngIf"],["class","btn btn-danger slick-btn","role","button","title","Suspend notifications for all recipients","id","suspendAllRecipientNotifications",3,"disabled","click",4,"ngIf"],["class","btn btn-success slick-btn","role","button","title","Activate notifications for all recipients","id","activateAllRecipientNotifications",3,"disabled","click",4,"ngIf"],["id","headingTwo",1,"accordion-header","w-100"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseTwo","aria-expanded","true","aria-controls","collapseTwo",1,"accordion-button"],["aria-hidden","true",1,"fa","fa-triangle-exclamation","me-2"],["id","collapseTwo","aria-labelledby","headingTwo","data-bs-parent","#snrInfoAccordion",1,"accordion-collapse","collapse","show"],[1,"alert","alert-warning","snr-warning-list"],["class","text-red",4,"ngIf"],[3,"value"],[1,"small","text-muted","mt-1"],["role","button","id","enableOutOfHours",1,"btn","btn-success","slick-btn",3,"click","title"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","d-none"],["aria-hidden","true",1,"fa","fa-bell","me-1"],["role","button","id","disableOutOfHours",1,"btn","btn-primary","slick-btn",3,"click","title"],["aria-hidden","true",1,"fa","fa-bell-slash","me-1"],["role","button","title","Enable All Image Attachments","id","enableImageAttachments",1,"btn","btn-success","slick-btn",3,"click"],["aria-hidden","true",1,"fa","fa-paperclip","me-1"],["role","button","title","Disable All Image Attachments","id","disableImageAttachments",1,"btn","btn-primary","slick-btn",3,"click"],["role","button","title","Suspend notifications for all recipients","id","suspendAllRecipientNotifications",1,"btn","btn-danger","slick-btn",3,"click"],["class","spinner-border spinner-border-sm me-1","role","status","aria-hidden","true",4,"ngIf"],["class","fa fa-bell-slash me-1","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","me-1"],["role","button","title","Activate notifications for all recipients","id","activateAllRecipientNotifications",1,"btn","btn-success","slick-btn",3,"click"],["class","fa fa-bell me-1","aria-hidden","true",4,"ngIf"],[1,"snr-grid-card","snr-grid-card--full"],[1,"snr-grid-header"],[1,"snr-grid-title"],["aria-hidden","true",1,"fa","fa-table","me-1"],["class","snr-selected-school",4,"ngIf"],[1,"snr-record-count"],[3,"gridReady","modelUpdated","rowData","columnDefs","defaultColDef","pagination","paginationPageSize","paginationPageSizeSelector"],[1,"snr-selected-school"],["tabindex","-1","role","dialog",1,"modal","d-block"],["role","document",1,"modal-dialog","modal
1-dialog-centered"],[1,"modal-content"],[1,"modal-header","justify-content-center"],[1,"modal-title","text-red","fw-bold"],[1,"modal-body","text-center"],[1,"modal-footer","justify-content-center"],["type","button",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left","me-1"],["type","button",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-check","me-1"],["tabindex","-1","role","dialog",1,"modal","d-block","snr-recipient-modal"],["role","document",1,"modal-dialog","modal-xl","snr-recipient-modal__dialog"],["name","schoolForm",1,"snr-recipient-modal__form",3,"ngSubmit"],[1,"modal-content","snr-recipient-modal__content"],[1,"modal-header","snr-recipient-modal__header"],[1,"snr-recipient-modal__title-wrap"],["class","modal-title text-red fw-bold mb-0",4,"ngIf"],[1,"snr-recipient-modal__subtitle","mb-0"],["type","button","aria-label","Close",1,"btn-close","snr-recipient-modal__close","shadow-none",3,"click"],[1,"modal-body","snr-recipient-modal__body","text-center"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"modal-footer","justify-content-center","snr-recipient-modal__footer"],["type","submit","class","btn btn-primary",4,"ngIf"],[1,"modal-title","text-red","fw-bold","mb-0"],["aria-hidden","true",1,"fa","fa-user-circle","me-1","text-red"],["aria-hidden","true",1,"fa","fa-user-md","me-1","text-red"],["aria-hidden","true",1,"fa","fa-user-plus","me-1","text-red"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-success"],[1,"row","g-3"],[1,"col-md-6","d-flex"],[1,"snr-recipient-modal__section","w-100"],[1,"snr-recipient-modal__section-title"],["aria-hidden","true",1,"fa","fa-id-card","me-1","text-red"],[1,"mb-3","text-start"],["for","email",1,"required"],["aria-hidden","true",1,"fa","fa-envelope","me-1","text-red"],["type","email","id","email","name","email","required","",1,"form-control","shadow",3,"ngModelChange","ngModel","disabled"],["for","title",1,"required"],["aria-hidden","true",1,"fa","fa-id-badge","me-1","text-red"],["id","title","name","title","required","",1,"form-control","shadow",3,"ngModelChange","ngModel"],["value","Mr"],["value","Mrs"],["value","Ms"],["value","Miss"],["value","Dr"],["value","Professor"],["for","firstName",1,"required"],["aria-hidden","true",1,"fa","fa-user","me-1","text-red"],["type","text","id","firstName","name","firstName","required","",1,"form-control","shadow",3,"ngModelChange","ngModel"],["for","surname",1,"required"],["type","text","id","surname","name","surname","required","",1,"form-control","shadow",3,"ngModelChange","ngModel"],["class","mb-3 text-start",4,"ngIf"],["aria-hidden","true",1,"fa","fa-layer-group","me-1","text-red"],["class","snr-recipient-modal__subsection",4,"ngIf"],[1,"snr-recipient-modal__subsection"],["for","assignedYearLevels",1,""],["aria-hidden","true",1,"fa","fa-list-alt","me-1","text-red"],[1,"row","g-2","align-items-start"],[1,"col-10"],["id","assignedYearLevels","name","assignedYearLevels","size","7",1,"form-control","shadow","h-auto",3,"ngModelChange","ngModel"],["value","",4,"ngIf"],["class","alert alert-info mt-1",4,"ngIf"],["class","col-2 d-flex justify-content-center",4,"ngIf"],["for","active",1,""],["aria-hidden","true",1,"fa","fa-check-circle","me-1","text-red"],["id","active","name","active",1,"form-control","shadow",3,"ngModelChange","ngModel"],["value","true"],["value","false"],["for","availableYearLevels",1,""],["aria-hidden","true",1,"fa","fa-list","me-1","text-red"],[1,"row","g-2","align-items-center"],["id","availableYearLevels","name","availableYearLevels","size","10",1,"form-control","shadow","h-auto",3,"ngModelChange","ngModel"],[1,"col-2","d-flex","justify-content-center"],[1,"snr-recipient-modal__move-controls"],["aria-hidden","true","title","Click to assign the selected category to this recipient.",1,"fa","fa-plus-circle","c-p","text-red","snr-recipient-modal__icon-action",3,"click"],["aria-hidden","true","title","Click to assign the selected category to this recipient.",1,"fa","fa-angle-double-down","c-p","text-red","snr-recipient-modal__icon-action",3,"click"],["value",""],[1,"alert","alert-info","mt-1"],["aria-hidden","true","title","Click to remove the selected category from this recipient.",1,"fa","fa-tras
1h","c-p","text-red","snr-recipient-modal__icon-action",3,"click"],["type","submit",1,"btn","btn-primary"],["aria-hidden","true",1,"fa","fa-floppy-disk","me-1"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(e,a){e&1&&(r(0,"div",4)(1,"div",5)(2,"div",6)(3,"header",7)(4,"div",8),m(5,"i",9),o(),r(6,"div")(7,"h1",10),s(8,"Stymie Notification Recipients"),o(),m(9,"div",11),r(10,"p",12),s(11,"Manage SNRs, out-of-hours settings, and recipient delivery controls."),o()()()(),h(12,fe,3,2,"div",13)(13,be,3,2,"button",14)(14,ve,12,6,"section",15)(15,ye,14,8,"div",16)(16,we,6,2,"section",17)(17,Oe,4,0,"div",18)(18,Be,64,12,"ng-container",19),o(),h(19,$e,10,10,"ng-container",19),o(),h(20,Ke,16,2,"div",20)(21,gt,22,8,"div",21)(22,_t,20,3,"div",20)(23,ft,19,3,"div",20)(24,xt,20,3,"div",20)(25,St,21,4,"div",20)),e&2&&(l(12),d("ngIf",a.errorMessage!=""||a.successMessage!=""&&!a.isLoading),l(),d("ngIf",a.showSchoolSelectorFab()),l(),d("ngIf",a.showInlineSchoolSelector()),l(),d("ngIf",a.isAdminMode),l(),d("ngIf",!a.isLoading&&a.loggedInRole==a.StymieRoles.Member),l(),d("ngIf",a.isLoading),l(),d("ngIf",!a.isLoading&&a.isSnrFetchComplete),l(),d("ngIf",!a.isLoading&&a.isSnrFetchComplete),l(),d("ngIf",a.showBulkNotificationWarning),l(),d("ngIf",a.showSelectedRecipientModal),l(),d("ngIf",a.showDeleteWarning),l(),d("ngIf",a.showSuspendWarning),l(),d("ngIf",a.showDisableAttachmentWarning),l(),d("ngIf",a.showMakePAHWarning))},dependencies:[X,G,K,J,Z,q,Y,B,Q,$,j,ee,U,de,D,ne,te,me],styles:[".snr-page[_ngcontent-%COMP%]{--snr-surface: #ffffff;--snr-muted: #f7f8fa;--snr-border: #e7e9ef}.snr-page[_ngcontent-%COMP%]   .snr-shell[_ngcontent-%COMP%]{max-width:1320px;margin:0 auto}.snr-page[_ngcontent-%COMP%]   .snr-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.7rem;padding:.2rem}.snr-page[_ngcontent-%COMP%]   .snr-top-row[_ngcontent-%COMP%]{position:relative;min-height:66px;display:flex;align-items:center;justify-content:center}.snr-page[_ngcontent-%COMP%]   .snr-school-inline[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_snr-selector-drop .22s ease-out}.snr-page[_ngcontent-%COMP%]   .snr-school-fab[_ngcontent-%COMP%]{position:fixed;top:18px;right:18px;z-index:1900;border:0;width:48px;height:48px;border-radius:50%;background:#dc3545;color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px #00000038;transition:transform .18s ease,box-shadow .18s ease;animation:_ngcontent-%COMP%_snr-fab-enter .26s ease-out}.snr-page[_ngcontent-%COMP%]   .snr-school-fab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:first-child{font-size:.98rem}.snr-page[_ngcontent-%COMP%]   .snr-school-fab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:last-child{font-size:.66rem;margin-left:-.2rem;margin-top:.65rem;opacity:.95}.snr-page[_ngcontent-%COMP%]   .snr-school-fab[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 10px 22px #00000042}.snr-page[_ngcontent-%COMP%]   .snr-school-fab--active[_ngcontent-%COMP%]{transform:scale(.96)}.snr-page[_ngcontent-%COMP%]   .snr-school-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:2100;background:#0e111738;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .2s ease;display:flex;align-items:flex-start;justify-content:center;padding:72px 1rem 1rem}.snr-page[_ngcontent-%COMP%]   .snr-school-overlay--open[_ngcontent-%COMP%]{opacity:1;pointer-events:auto}.snr-page[_ngcontent-%COMP%]   .snr-school-modal[_ngcontent-%COMP%]{width:min(660px,100%);border-radius:12px;background:#fff;border:1px solid var(--snr-border);box-shadow:0 18px 38px #00000038;transform:translateY(-8px) scale(.98);opacity:0;transition:transform .21s ease,opacity .21s ease}.snr-page[_ngcontent-%COMP%]   .snr-school-overlay--open[_ngcontent-%COMP%]   .snr-school-modal[_ngcontent-%COMP%]{transform:translateY(0) scale(1);opacity:1}.snr-page[_ngcontent-%COMP%]   .snr-school-modal__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.7rem .8rem;border-bottom:1px solid var(--snr-border)}.snr-page[_ngcontent-%COMP%]   .snr-school-modal__body[_ngcontent-%COMP%]{padding:.8rem}.snr-page[_ngcontent-%COMP%]   .snr-header__icon[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#dc354514;border:1px solid rgba(220,53,69,.45);color:#dc3545;flex:0 0 auto}.snr-page[_ngcontent-%COMP%]   .snr-header__title[_ngcontent-%COMP%]{margin:0;font-size:1.03rem;line-height:1.2;font-weight:700;color:#dc3545;text-align:center}.snr-page[_ngcontent-%COMP%]   .snr-header__subtitle[_ngcontent-%COMP%]{font-size:.82rem;color:#a7a9ac;line-height:1.2;text-align:center}.snr-page[_ngcontent-%COMP%]   .snr-header__divider[_ngcontent-%COMP%]{width:100%;max-width:360px;margin:.25rem auto .35rem;border-top:1px solid rgba(220,53,69,.35)}.snr-page[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:inherit!important}.snr-page[_ngcontent-%COMP%]   .snr-panel[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .snr-page[_ngcontent-%COMP%]   .snr-grid-title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .snr-page[_ngcontent-%COMP%]   .snr-info-accordion[_ngcontent-%COMP%]   .accordion-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#7a1025}.snr-page[_ngcontent-%COMP%]   .snr-panel[_ngcontent-%COMP%]{background:var(--snr-surface);border:1px solid var(--snr-border);border-radius:12px;padding:.75rem;margin-bottom:.7rem;max-width:1160px;margin-left:auto;margin-right:auto}.snr-page[_ngcontent-%COMP%]   .snr-settings-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:.65rem}.snr-page[_ngcontent-%COMP%]   .snr-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}.snr-page[_ngcontent-%COMP%]   .snr-floating-messages[_ngcontent-%COMP%]{position:fixed;top:14px;left:50%;transform:translate(-50%);width:min(760px,100vw - 1.5rem);z-index:2000;pointer-events:none}.snr-page[_ngcontent-%COMP%]   .snr-floating-messages[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:.55rem;pointer-events:auto;animation:_ngcontent-%COMP%_snr-toast-fade 5s ease-in-out forwards}@keyframes _ngcontent-%COMP%_snr-toast-fade{0%{opacity:0;transform:translateY(-10px)}10%{opacity:1;transform:translateY(0)}82%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-8px)}}@keyframes _ngcontent-%COMP%_snr-selector-drop{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_snr-fab-enter{0%{opacity:0;transform:translateY(-12px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.snr-page[_ngcontent-%COMP%]   .snr-grid-card[_ngcontent-%COMP%]{background:var(--snr-surface);border:1px solid var(--snr-border);border-radius:12px;padding:.6rem;max-width:1160px;margin-left:auto;margin-right:auto}.snr-page[_ngcontent-%COMP%]   .snr-grid-card--full[_ngcontent-%COMP%]{max-width:none;width:100%;margin-top:.7rem}.snr-page[_ngcontent-%COMP%]   .snr-grid-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem;border-bottom:1px solid var(--snr-border);margin-bottom:.55rem;padding-bottom:.5rem}.snr-page[_ngcontent-%COMP%]   .snr-grid-title[_ngcontent-%COMP%]{font-weight:600;margin:0}.snr-page[_ngcontent-%COMP%]   .snr-record-count[_ngcontent-%COMP%]{justify-self:end;color:#4f5768;font-size:.9rem}.snr-page[_ngcontent-%COMP%]   .snr-selected-school[_ngcontent-%COMP%]{justify-self:center;font-size:.9rem;font-weight:600;color:#4f5768;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snr-page[_ngcontent-%COMP%]   .snr-info-accordion[_ngcontent-%COMP%]   .accordion-item[_ngcontent-%COMP%]{border:1px solid var(--snr-border);margin-bottom:.35rem;border-radius:10px;overflow:hidden}.snr-page[_ngcontent-%COMP%]   .snr-info-accordion[_ngcontent-%COMP%]   .accordion-button[_ngcontent-%COMP%]{font-weight:600;background-color:var(--snr-muted);box-shadow:none;color:#293146}.snr-page[_ngcontent-%COMP%]   .snr-info-accordion[_ngcontent-%COMP%]   .accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#eef2fb;color:#293146}.snr-page[_ngcontent-%COMP%]   .snr-info-accordion[_ngcontent-%COMP%]   .accordion-body[_ngcontent-%COMP%]{background:#fff}.snr-page[_ngcontent-%COMP%]   .snr-warning-list[_ngcontent-%COMP%]{margin-bottom:0}.snr-page[_ngcontent-%COMP%]   .snr-member-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.65rem;margin:0 auto;max-width:1160px;padding:.62rem .75rem;border:1px solid rgba(220,53,69,.2);border-radius:10px;background:#fff;box-shadow:0 8px 18px #0f172a0f}.snr-page[_ngcontent-%COMP%]   .snr-member-note__icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#dc35451a;color:#dc3545;flex:0 0 auto}.snr-page[_ngcontent-%COMP%]   .snr-member-note__text[_ngcontent-%COMP%]{font-size:.9rem;color:#4f5768;line-height:1.3;text-align:left;flex:1}.snr-page[_ngcontent-%COMP%]   .snr-member-note__arrow[_ngcontent-%COMP%]{color:#dc3545;opacity:.8;flex:0 0 auto}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal[_ngcontent-%COMP%]{background:#0e111757;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);padding:1rem;overflow-y:auto;z-index:1900}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__dialog[_ngcontent-%COMP%]{margin:1rem auto}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__content[_ngcontent-%COMP%]{border:1px solid var(--snr-border);border-radius:14px;overflow:hidden;box-shadow:0 22px 40px #0003}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative;padding:.85rem 3rem .85rem 1rem;border-bottom:1px solid var(--snr-border);background:linear-gradient(180deg,#fff,#fafbfe)}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__title-wrap[_ngcontent-%COMP%]{text-align:center}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__subtitle[_ngcontent-%COMP%]{font-size:.82rem;color:#6b7280}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__close[_ngcontent-%COMP%]{position:absolute;top:.85rem;right:.85rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__body[_ngcontent-%COMP%]{max-height:calc(100vh - 220p
1x);overflow-y:auto;padding:1rem;background:#fcfdff}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__section[_ngcontent-%COMP%]{height:100%;border:1px solid var(--snr-border);border-radius:10px;background:#fff;padding:.75rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__subsection[_ngcontent-%COMP%]{border:1px solid var(--snr-border);border-radius:8px;background:#fcfdff;padding:.55rem;margin-bottom:.65rem;text-align:left}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__subsection[_ngcontent-%COMP%]:last-child{margin-bottom:0}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__section-title[_ngcontent-%COMP%]{text-align:left;color:#dc3545;border-bottom:1px solid var(--snr-border);padding-bottom:.4rem;margin-bottom:.75rem;font-weight:700}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:.95rem;text-align:center}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__move-controls[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.25rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__icon-action[_ngcontent-%COMP%]{font-size:1.35rem;line-height:1}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__footer[_ngcontent-%COMP%]{border-top:1px solid var(--snr-border);background:#fff;gap:.45rem}@media (max-width: 991.98px){.snr-page[_ngcontent-%COMP%]   .snr-header[_ngcontent-%COMP%]{padding:.4rem .6rem;gap:.6rem}.snr-page[_ngcontent-%COMP%]   .snr-settings-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.snr-page[_ngcontent-%COMP%]   .snr-school-fab[_ngcontent-%COMP%]{top:12px;right:12px;width:44px;height:44px}.snr-page[_ngcontent-%COMP%]   .snr-top-row[_ngcontent-%COMP%]{min-height:auto;display:block}.snr-page[_ngcontent-%COMP%]   .snr-grid-header[_ngcontent-%COMP%]{grid-template-columns:1fr;justify-items:center}.snr-page[_ngcontent-%COMP%]   .snr-record-count[_ngcontent-%COMP%]{justify-self:center}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__body[_ngcontent-%COMP%]{max-height:calc(100vh - 190px)}}@media (max-width: 575.98px){.snr-page[_ngcontent-%COMP%]   .snr-header[_ngcontent-%COMP%]{align-items:center}.snr-page[_ngcontent-%COMP%]   .snr-header__title[_ngcontent-%COMP%]{font-size:.95rem}.snr-page[_ngcontent-%COMP%]   .snr-header__subtitle[_ngcontent-%COMP%]{font-size:.78rem}.snr-page[_ngcontent-%COMP%]   .snr-panel[_ngcontent-%COMP%], .snr-page[_ngcontent-%COMP%]   .snr-grid-card[_ngcontent-%COMP%]{border-radius:10px;padding:.75rem}.snr-page[_ngcontent-%COMP%]   .snr-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100%}.snr-page[_ngcontent-%COMP%]   .snr-school-overlay[_ngcontent-%COMP%]{padding-top:56px}.snr-page[_ngcontent-%COMP%]   .snr-member-note[_ngcontent-%COMP%]{align-items:flex-start;padding:.58rem .62rem;gap:.5rem}.snr-page[_ngcontent-%COMP%]   .snr-member-note__text[_ngcontent-%COMP%]{font-size:.86rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal[_ngcontent-%COMP%]{padding:.75rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__header[_ngcontent-%COMP%]{padding:.75rem 2.7rem .75rem .75rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__close[_ngcontent-%COMP%]{top:.72rem;right:.72rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__body[_ngcontent-%COMP%]{max-height:calc(100vh - 170px);padding:.85rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__subtitle[_ngcontent-%COMP%]{font-size:.76rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__move-controls[_ngcontent-%COMP%]{gap:.3rem}.snr-page[_ngcontent-%COMP%]   .snr-recipient-modal__icon-action[_ngcontent-%COMP%]{font-size:1.2rem}}.snr-recipient-modal[_ngcontent-%COMP%]{background:#0e111757;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);padding:1rem;overflow-y:auto;z-index:1900}.snr-recipient-modal__dialog[_ngcontent-%COMP%]{margin:1rem auto}.snr-recipient-modal__content[_ngcontent-%COMP%]{border:1px solid var(--snr-border, #e7e9ef);border-radius:14px;overflow:hidden;box-shadow:0 22px 40px #0003}.snr-recipient-modal__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative;padding:.85rem 3rem .85rem 1rem;border-bottom:1px solid var(--snr-border, #e7e9ef);background-color:#fff4f4;background-image:linear-gradient(180deg,#fff9f9,#fff1f3)}
1.snr-recipient-modal[_ngcontent-%COMP%]   .modal-header.snr-recipient-modal__header[_ngcontent-%COMP%]{background-color:#fff4f4;background-image:linear-gradient(180deg,#fff9f9,#fff1f3)}.snr-recipient-modal__title-wrap[_ngcontent-%COMP%]{text-align:center}.snr-recipient-modal__subtitle[_ngcontent-%COMP%]{font-size:.82rem;color:#6b7280}.snr-recipient-modal__close[_ngcontent-%COMP%]{position:absolute;top:.85rem;right:.85rem}.snr-recipient-modal__body[_ngcontent-%COMP%]{max-height:calc(100vh - 220px);overflow-y:auto;padding:1rem;background:#fcfdff}.snr-recipient-modal__section[_ngcontent-%COMP%]{height:100%;border:1px solid var(--snr-border, #e7e9ef);border-radius:10px;background:#fff;padding:.75rem}.snr-recipient-modal__subsection[_ngcontent-%COMP%]{border:1px solid var(--snr-border, #e7e9ef);border-radius:8px;background:#fcfdff;padding:.55rem;margin-bottom:.65rem}.snr-recipient-modal__subsection[_ngcontent-%COMP%]:last-child{margin-bottom:0}.snr-recipient-modal__section-title[_ngcontent-%COMP%]{text-align:left;color:#dc3545;border-bottom:1px solid var(--snr-border, #e7e9ef);padding-bottom:.4rem;margin-bottom:.75rem;font-weight:700}.snr-recipient-modal__body[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:.95rem;text-align:center}.snr-recipient-modal__move-controls[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.25rem}.snr-recipient-modal__icon-action[_ngcontent-%COMP%]{font-size:1.35rem;line-height:1}.snr-recipient-modal__footer[_ngcontent-%COMP%]{border-top:1px solid var(--snr-border, #e7e9ef);background:#fff;gap:.45rem}@media (max-width: 991.98px){.snr-recipient-modal__body[_ngcontent-%COMP%]{max-height:calc(100vh - 190px)}}@media (max-width: 575.98px){.snr-recipient-modal[_ngcontent-%COMP%]{padding:.75rem}.snr-recipient-modal__header[_ngcontent-%COMP%]{padding:.75rem 2.7rem .75rem .75rem}.snr-recipient-modal__close[_ngcontent-%COMP%]{top:.72rem;right:.72rem}.snr-recipient-modal__body[_ngcontent-%COMP%]{max-height:calc(100vh - 170px);padding:.85rem}.snr-recipient-modal__subtitle[_ngcontent-%COMP%]{font-size:.76rem}.snr-recipient-modal__move-controls[_ngcontent-%COMP%]{gap:.3rem}.snr-recipient-modal__icon-action[_ngcontent-%COMP%]{font-size:1.2rem}}"]})};export{pe as SnrComponent};

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.