PageSourceSearch

https://www.weighbook.com/4999.c3ae1c147b86b87e.js

js weighbook.com collected 2026-09-24 12:28:49 UTC 172,737 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbass_kingdom=self.webpackChunkbass_kingdom||[]).push([[4999],{54999:(Jt,T,p)=>{p.r(T),p.d(T,{StaffManagementModule:()=>zt});var g=p(96814),b=p(56223),q=p(40840),N=p(15656),L=p(6176),M=p(35420),d=p(15861),C=p(269),O=p(34317),e=p(65879),x=p(69293),z=p(85890),Z=p(30617),A=p(92596),U=p(76216),y=p(43181),I=p(53337);const J=["searchInput"];function D(i,a){if(1&i&&(e.TgZ(0,"span",15),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.unfilteredStaff.length)}}function E(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"label",16)(1,"span",17),e._uU(2,"search"),e.qZA(),e.TgZ(3,"input",18,19),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.onSearchInput(o))}),e.qZA(),e.TgZ(5,"kbd",20),e._uU(6,"/"),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.searchText)}}function R(i,a){if(1&i&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.rolesLabel)}}function Y(i,a){if(1&i&&(e.TgZ(0,"span",56)(1,"span",57),e._uU(2),e.qZA(),e.TgZ(3,"span",58),e._uU(4),e.ALo(5,"titlecase"),e.qZA(),e._uU(6),e.qZA()),2&i){const t=a.$implicit,n=e.oxw(5);e.Q6J("ngClass",n.moduleClass(t.moduleType)),e.xp6(2),e.Oqu(n.moduleIcon(t.moduleType)),e.xp6(2),e.hij("",e.lcZ(5,4,t.moduleType),":"),e.xp6(2),e.hij(" ",t.recordName||"All"," ")}}function Q(i,a){if(1&i&&(e.TgZ(0,"div",54),e.YNc(1,Y,7,6,"span",55),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",t.accessLevels)}}function G(i,a){1&i&&(e.TgZ(0,"div",59),e._uU(1,"No roles assigned"),e.qZA())}function j(i,a){1&i&&(e.TgZ(0,"span",60),e._uU(1,"Active"),e.qZA())}function K(i,a){1&i&&(e.TgZ(0,"span",61),e._uU(1,"Awaiting"),e.qZA())}function B(i,a){1&i&&(e.TgZ(0,"span",62),e._uU(1,"Revoked"),e.qZA())}function H(i,a){if(1&i&&(e.TgZ(0,"span",63),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.status||"Unknown")}}function $(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",64),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw().$implicit;return e.oxw(3).resendInvite(r),e.KtG(o.stopPropagation())}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.Q6J("disabled",n.resendingId===t._id),e.xp6(1),e.Oqu(n.resendingId===t._id?"Sending\u2026":"Resend")}}function V(i,a){1&i&&(e.TgZ(0,"span",65),e._uU(1,"Re-invite"),e.qZA())}function W(i,a){if(1&i&&(e.TgZ(0,"span",66),e._uU(1),e.ALo(2,"relativeTime"),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.lastActiveDate?e.lcZ(2,1,t.lastActiveDate):"Never signed in"," ")}}function X(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",34),e.NdJ("click",function(){const r=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.viewRecord(r))}),e.TgZ(1,"div",35),e._uU(2),e.qZA(),e.TgZ(3,"div",36)(4,"span",37)(5,"span",38),e._uU(6),e.qZA(),e.YNc(7,R,2,1,"span",39),e.qZA(),e.TgZ(8,"span",40),e._uU(9),e.qZA()(),e.YNc(10,Q,2,1,"div",41),e.YNc(11,G,2,0,"ng-template",null,42,e.W1O),e.TgZ(13,"div",43),e.YNc(14,j,2,0,"span",44),e.YNc(15,K,2,0,"span",45),e.YNc(16,B,2,0,"span",46),e.YNc(17,H,2,1,"span",47),e.qZA(),e.TgZ(18,"div",48),e.YNc(19,$,2,2,"button",49),e.YNc(20,V,2,0,"span",50),e.YNc(21,W,3,3,"span",51),e.TgZ(22,"button",52),e.NdJ("click",function(o){const s=e.CHM(t).$implicit;return e.oxw(3).viewRecord(s),e.KtG(o.stopPropagation())}),e.TgZ(23,"mat-icon"),e._uU(24,"arrow_forward"),e.qZA()()()()}if(2&i){const t=a.$implicit,n=e.MAs(12),o=e.oxw(3);e.ekj("is-active","active"===t.status)("is-pending","pending"===t.status)("is-revoked","revoked"===t.status),e.xp6(2),e.hij(" ",o.getInitials(t)," "),e.xp6(4),e.AsE(" ",null==t||null==t.user?null:t.user.first_name," ",null==t||null==t.user?null:t.user.last_name," "),e.xp6(1),e.Q6J("ngIf",t.rolesLabel),e.xp6(2),e.Oqu(null==t||null==t.user?null:t.user.email),e.xp6(1),e.Q6J("ngIf",null==t.accessLevels?null:t.accessLevels.length)("ngIfElse",n),e.xp6(3),e.Q6J("ngSwitch",t.status),e.xp6(1),e.Q6J("ngSwitchCase","active"),e.xp6(1),e.Q6J("ngSwitchCase","pending"),e.xp6(1),e.Q6J("ngSwitchCase","revoked"),e.xp6(3),e.Q6J("ngIf","pending"===t.status),e.xp6(1),e.Q6J("ngIf","revoked"===t.status),e.xp6(1),e.Q6J("ngIf","active"===t.status)}}function ee(i,a){1&i&&(e.TgZ(0,"div",67),e._uU(1," No matching staff found "),e.qZA())}const te=function(i){return[i]},ne=function(){return[]};function oe(i,a){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",24)(2,"admin-grid-chips",25),e.NdJ("chipToggle",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.onStaffChipToggle(o))}),e.qZA()(),e.TgZ(3,"div",26)(4,"span",27),e._uU(5,"Staff member"),e.qZA(),e.TgZ(6,"span",28),e._uU(7,"Access"),e.qZA(),e.TgZ(8,"span",29),e._uU(9,"Status"),e.qZA(),e._UZ(10,"span",30),e.qZA(),e.TgZ(11,"div",31),e.YNc(12,X,25,20,"div",32),e.qZA(),e.YNc(13,ee,2,0,"div",33),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("chips",t.staffChips)("counts",t.staffChipCounts)("activeKeys",t.statusFilter?e.VKq(5,te,t.statusFilter):e.DdM(7,ne)),e.xp6(10),e.Q6J("ngForOf",t.staffMembers),e.xp6(1),e.Q6J("ngIf",!(null!=t.staffMembers&&t.staffMembers.length))}}function ie(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",68)(1,"span",69),e._uU(2,"group_add"),e.qZA(),e.TgZ(3,"div",70),e._uU(4,"No Staff Members Yet"),e.qZA(),e.TgZ(5,"div",71),e._uU(6,"Invite assistants to help manage your tours, divisions, and seasons."),e.qZA(),e.TgZ(7,"button",72),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.createStaffMember())}),e.TgZ(8,"span",5),e._uU(9,"person_add"),e.qZA(),e._uU(10," Add Your First Staff Member "),e.qZA()()}}function re(i,a){if(1&i&&(e.TgZ(0,"div",21),e.YNc(1,oe,14,8,"ng-container",22),e.YNc(2,ie,11,0,"ng-template",null,23,e.W1O),e.qZA()),2&i){const t=e.MAs(3),n=e.oxw();e.xp6(1),e.Q6J("ngIf",null==n.unfilteredStaff?null:n.unfilteredStaff.length)("ngIfElse",t)}}function ae(i,a){1&i&&(e.TgZ(0,"div",21),e._UZ(1,"section-loading-displayer",73),e.qZA()),2&i&&(e.xp6(1),e.Q6J("loadingLabel","Loading Staff")("loadingText","Fetching your staff members..."))}let se=(()=>{class i{constructor(t,n,o,r,s){this._networkService=t,this._userService=n,this._staffMembersService=o,this._sharedUtilsService=r,this.router=s,this.staffMembers=null,this.unfilteredStaff=null,this.baseRoute="/",this.initialized=!1,this.searchText="",this.statusFilter=null,this.staffChips=[{key:"active",label:"Active",color:"#059669"},{key:"pending",label:"Awaiting",color:"#d97706"},{key:"revoked",label:"Revoked",color:"#C2382F"}],this.resendingId=null}ngOnInit(){this.init()}init(){var t=this;return(0,d.Z)(function*(){t.currentUser&&("Director"!==t.currentUser.userType||t.currentUser.isAssistant)&&(t._sharedUtilsService.showErrorDialog("Sorry, you do not have permission to edit users."),t.router.navigate([t.baseRoute])),yield t.initUser(),yield t.getStaffMembers(),t.initialized=!0})()}initUser(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){t.currentUser=t._userService.getCurrentlyLoggedInUser(),t.baseRoute=t._userService.getCurrentUsersBaseRoute(),o(null)});return function(o){return n.apply(this,arguments)}}())}getStaffMembers(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){if(t._networkService.isOnLine(!0)){const r=new C.e6;r.parentDirector=t.currentUser._id,t.staffMembers=(yield t._sharedUtilsService.timeoutObservable(t._staffMembersService.search(r),5e3))??[]}t.staffMembers=t.withoutSelf(t.staffMembers),t.stampLastActive(t.staffMembers),t.unfilteredStaff=t.staffMembers?.length?t.staffMembers.slice(0):[],t.staffMembers=t.unfilteredStaff.slice(0),o(null)});return function(o){return n.apply(this,arguments)}}())}withoutSelf(t){const n=this.currentUser?._id,o=(this.currentUser?.email||"").trim().toLowerCase();return(t||[]).filter(r=>{const s=r?.user,l=s&&s._id?s._id:s,v=(s?.email||"").trim().toLowerCase();return!(n&&l&&String(l)===String(n)||o&&v&&v===o)})}onSearchInput(t){this.searchText=t||"",this.runFilters()}get staffChipCounts(){const t=this.unfilteredStaff||[];return{all:t.length,active:t.filter(n=>"active"===n.status).length,pending:t.filter(n=>"pending"===n.status).length,revoked:t.filter(n=>"revoked"===n.status).length}}onStaffChipToggle(t){this.statusFilter="all"===t||this.statusFilter===t?null:t,this.runFilters()}runFilters(){const t=this.searchText.toLowerCase().trim();this.staffMembers=(this.unfilteredStaff||[]).filter(n=>{const o=`${n.user?.first_name||""} ${n.user?.last_name||""}`.toLowerCase(),r=(n.user?.email||"").toLowerCase();return(!t||o.includes(t)||r.includes(t))&&(!this.statusFilter||n.status===this.statusFilter)})}onKeydown(t){if("/"!==t.key||t.ctrlKey||t.metaKey||t.altKey)return;const n=t.target,o=(n?.tagName||"").toLowerCase();
1"input"===o||"textarea"===o||n?.isContentEditable||(t.preventDefault(),this.searchInput?.nativeElement?.focus())}moduleClass(t){return"access-tag--"+(t||"default").toLowerCase()}moduleIcon(t){switch((t||"").toLowerCase()){case"tour":return"shield";case"division":return"lan";case"season":return"event_note";case"school":return"school";default:return"key"}}getInitials(t){return((t?.user?.first_name?.[0]||"")+(t?.user?.last_name?.[0]||"")).toUpperCase()||"?"}stampLastActive(t){(t||[]).forEach(n=>{n.lastActiveDate=n?.user?.last_login?new Date(n.user.last_login):null,n.rolesLabel=this.rolesLabelFor(n)})}rolesLabelFor(t){const n=new Set,o=[],r=s=>{const l=(s||"").trim().toLowerCase();!l||n.has(l)||(n.add(l),o.push(s.trim()))};return r(t?.role),(t?.accessLevels||[]).forEach(s=>r(s?.role)),o.join(" \xb7 ")}resendInvite(t){var n=this;return(0,d.Z)(function*(){if(n.resendingId)return;const o=t?.user?.email;if(o)if(n._networkService.isOnLine(!0)){if(!0===(yield n._sharedUtilsService.confirmationDialogPromise({title:"Resend Invite",textToDisplay:"Resend the invite email to:",items:[{name:o}],buttonsInfo:{confirmText:"Resend",confirmBtnColor:"primary",denyText:"Cancel",denyBtnColor:""}}))){n.resendingId=t._id;try{yield n._staffMembersService.sendInviteEmail({email:o,first_name:t.user?.first_name}),n._sharedUtilsService.showNotification("Invite re-sent to "+o)}catch(s){console.error("Failed to resend invite: ",s),n._sharedUtilsService.showErrorDialog((0,O.l)(s,"Could not resend the invite. Please try again."))}finally{n.resendingId=null}}}else n._sharedUtilsService.showErrorDialog("You must be online to resend an invite.");else n._sharedUtilsService.showErrorDialog("No email on file for this staff member. Cannot resend the invite.")})()}createStaffMember(){this.router.navigateByUrl(this.baseRoute+"/staff/create")}viewRecord(t){this._staffMembersService.setCurrentBeingViewed(t),this.router.navigateByUrl(this.baseRoute+"/staff/"+t._id)}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(x.SL),e.Y36(x.KD),e.Y36(x.Py),e.Y36(x.n3),e.Y36(M.F0))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["staff-grid"]],viewQuery:function(n,o){if(1&n&&e.Gf(J,5),2&n){let r;e.iGM(r=e.CRH())&&(o.searchInput=r.first)}},hostBindings:function(n,o){1&n&&e.NdJ("keydown",function(s){return o.onKeydown(s)},!1,e.evT)},decls:22,vars:4,consts:[[1,"staff-container","admin-grid-page"],[1,"tg-header"],[1,"tg-header-left"],[1,"tg-title"],["aria-hidden","true",1,"tg-entity-badge"],[1,"material-symbols-outlined"],["class","tg-title-count",4,"ngIf"],["pageKey","Staff","pageLabel","staff"],[1,"tg-subtitle"],[1,"tg-header-right"],["class","tg-search",4,"ngIf"],["type","button",1,"tg-action-btn",3,"click"],[1,"tg-action-label"],["class","staff-body tg-card",4,"ngIf","ngIfElse"],["loadingTemplate",""],[1,"tg-title-count"],[1,"tg-search"],[1,"material-symbols-outlined","tg-search-icon"],["type","text","placeholder","Search staff\u2026",1,"tg-search-input",3,"ngModel","ngModelChange"],["searchInput",""],["aria-hidden","true","title","Press / to search",1,"tg-search-kbd"],[1,"staff-body","tg-card"],[4,"ngIf","ngIfElse"],["noCurrentStaffTemplate",""],[1,"tg-toolbar","staff-toolbar"],[1,"tg-chips",3,"chips","counts","activeKeys","chipToggle"],[1,"staff-list-header"],[1,"staff-list-label","staff-list-label--member"],[1,"staff-list-label","staff-list-label--access"],[1,"staff-list-label","staff-list-label--status"],[1,"staff-list-label-spacer"],[1,"staff-rows"],["class","staff-row",3,"is-active","is-pending","is-revoked","click",4,"ngFor","ngForOf"],["class","no-results",4,"ngIf"],[1,"staff-row",3,"click"],[1,"staff-row__avatar"],[1,"staff-row__identity"],[1,"staff-row__identity-top"],[1,"staff-row__name"],["class","staff-row__role",4,"ngIf"],[1,"staff-row__email"],["class","staff-row__access",4,"ngIf","ngIfElse"],["noAccessBlock",""],[1,"staff-row__status",3,"ngSwitch"],["class","status-pill pill-active",4,"ngSwitchCase"],["class","status-pill pill-pending",4,"ngSwitchCase"],["class","status-pill pill-revoked",4,"ngSwitchCase"],["class","status-pill",4,"ngSwitchDefault"],[1,"staff-row__actions"],["type","button","class","row-link",3,"disabled","click",4,"ngIf"],["class","row-link row-link--quiet",4,"ngIf"],["class","row-lastactive",4,"ngIf"],["matTooltip","Manage",1,"manage-btn",3,"click"],[1,"staff-row__role"],[1,"staff-row__access"],["class","access-tag",3,"ngClass",4,"ngFor","ngForOf"],[1,"access-tag",3,"ngClass"],[1,"material-symbols-outlined","access-tag-icon"],[1,"access-tag-type"],[1,"staff-row__access","
1staff-row__access--empty"],[1,"status-pill","pill-active"],[1,"status-pill","pill-pending"],[1,"status-pill","pill-revoked"],[1,"status-pill"],["type","button",1,"row-link",3,"disabled","click"],[1,"row-link","row-link--quiet"],[1,"row-lastactive"],[1,"no-results"],[1,"empty-state"],[1,"material-symbols-outlined","empty-state-icon"],[1,"empty-state-title"],[1,"empty-state-sub"],[1,"cta-btn",3,"click"],[3,"loadingLabel","loadingText"]],template:function(n,o){if(1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1",3)(4,"span",4)(5,"span",5),e._uU(6,"badge"),e.qZA()(),e._uU(7," Staff Members "),e.YNc(8,D,2,1,"span",6),e._UZ(9,"page-tutorial-launcher",7),e.qZA(),e.TgZ(10,"p",8),e._uU(11,"Invite people to help run your tours, divisions, or seasons."),e.qZA()(),e.TgZ(12,"div",9),e.YNc(13,E,7,1,"label",10),e.TgZ(14,"button",11),e.NdJ("click",function(){return o.createStaffMember()}),e.TgZ(15,"span",5),e._uU(16,"person_add"),e.qZA(),e.TgZ(17,"span",12),e._uU(18,"Add Staff"),e.qZA()()()(),e.YNc(19,re,4,2,"div",13),e.YNc(20,ae,2,2,"ng-template",null,14,e.W1O),e.qZA()),2&n){const r=e.MAs(21);e.xp6(8),e.Q6J("ngIf",o.initialized&&o.unfilteredStaff),e.xp6(5),e.Q6J("ngIf",null==o.unfilteredStaff?null:o.unfilteredStaff.length),e.xp6(6),e.Q6J("ngIf",o.initialized)("ngIfElse",r)}},dependencies:[g.mk,g.sg,g.O5,g.RF,g.n9,g.ED,z.q,Z.Hw,A.gM,b.Fj,b.JJ,b.On,U.z,y.O,g.rS,I.a],styles:['.admin-grid-page[_ngcontent-%COMP%]{padding:24px 24px 16px}@media (max-width: 720px){.admin-grid-page[_ngcontent-%COMP%]{padding:14px 12px 8px}}.admin-grid-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}.admin-grid-title-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.admin-grid-title[_ngcontent-%COMP%]{display:inline-flex;align-items:baseline;gap:10px;font-size:22px;font-weight:700;color:#0f172a;margin:0}.admin-grid-title-count[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#94a3b8;font-variant-numeric:tabular-nums}.admin-grid-subtitle[_ngcontent-%COMP%]{font-size:12.5px;color:#6b7280}.admin-grid-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px}.admin-grid-search[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;height:36px;padding:0 10px 0 36px;min-width:280px;transition:border-color .12s,background .12s}.admin-grid-search[_ngcontent-%COMP%]:focus-within{border-color:#2563eb;background:#ffffff}.admin-grid-search[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;color:#9ca3af;font-size:18px;pointer-events:none}.admin-grid-search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{flex:1;border:none;outline:none;background:transparent;font-size:13px;color:#1f2937;height:100%;font-family:inherit;min-width:0}.admin-grid-search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.admin-grid-search[_ngcontent-%COMP%]   .search-shortcut[_ngcontent-%COMP%]{margin-left:8px;font-size:11px;font-weight:500;color:#9ca3af;border:1px solid #e5e7eb;border-radius:4px;padding:1px 6px;background:#fafbfc;font-family:SFMono-Regular,Menlo,Consolas,monospace}.admin-grid-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;font-size:13px;font-weight:500;color:#374151;cursor:pointer;font-family:inherit;transition:background .12s,border-color .12s}.admin-grid-btn[_ngcontent-%COMP%]:hover{background:#f9fafb;border-color:#d1d5db}.admin-grid-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px;color:#6b7280}.admin-grid-btn.is-primary[_ngcontent-%COMP%]{background:#2563eb;border-color:#2563eb;color:#fff}.admin-grid-btn.is-primary[_ngcontent-%COMP%]:hover{background:#1d4ed8;border-color:#1d4ed8}.admin-grid-btn.is-primary[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:#fff}.admin-grid-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 10px;flex-wrap:wrap}.admin-grid-toolbar-left[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;flex:1;min-width:0}.admin-grid-toolbar-right[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px}.cell-primary[_ngcontent-%COMP%]{font-size:13.5px;font-weight:600;color:#0f172a;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.cell-secondary[_ngcontent-%COMP%]{font-size:11.5px;color:#94a3b8;line-height:1.3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-stack[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:#f3f4f6;font-size:12px;font-weight:500;color:#4b5563;line-height:1.4}
1.status-pill[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#9ca3af}.status-pill.is-active[_ngcontent-%COMP%]{background:#ecfdf5;color:#047857}.status-pill.is-active[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#10b981}.status-pill.is-upcoming[_ngcontent-%COMP%]{background:#eff6ff;color:#1d4ed8}.status-pill.is-upcoming[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#3b82f6}.status-pill.is-completed[_ngcontent-%COMP%]{background:#f3f4f6;color:#4b5563}.status-pill.is-completed[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#9ca3af}.status-pill.is-archived[_ngcontent-%COMP%]{background:#fef2f2;color:#b91c1c}.status-pill.is-archived[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#ef4444}.status-pill.is-inactive[_ngcontent-%COMP%]{background:#f3f4f6;color:#4b5563}.status-pill.is-inactive[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#9ca3af}.status-pill.is-empty[_ngcontent-%COMP%]{background:#fff7ed;color:#c2410c}.status-pill.is-empty[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#f97316}.status-pill.is-draft[_ngcontent-%COMP%]{background:#f3f4f6;color:#6b7280}.status-pill.is-draft[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#9ca3af}.status-pill.is-scheduled[_ngcontent-%COMP%]{background:#eff6ff;color:#2563eb}.status-pill.is-scheduled[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#3b82f6}.status-pill.is-open[_ngcontent-%COMP%]{background:#ecfdf5;color:#059669}.status-pill.is-open[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#10b981}.status-pill.is-in-progress[_ngcontent-%COMP%]{background:#fffbeb;color:#b45309}.status-pill.is-in-progress[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#f59e0b;animation:_ngcontent-%COMP%_pill-pulse 1.6s ease-in-out infinite}.status-pill.is-closed[_ngcontent-%COMP%]{background:#fef2f2;color:#dc2626}.status-pill.is-closed[_ngcontent-%COMP%]   .pill-dot[_ngcontent-%COMP%]{background:#ef4444}@keyframes _ngcontent-%COMP%_pill-pulse{0%,to{box-shadow:0 0 #f59e0b8c}50%{box-shadow:0 0 0 4px #f59e0b00}}.count-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 8px;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}.count-chip.is-zero[_ngcontent-%COMP%]{background:#f3f4f6;color:#9ca3af}.admin-grid-cell.align-right[_ngcontent-%COMP%]   .count-chip[_ngcontent-%COMP%]{background:transparent;padding:0;min-width:0;height:auto;font-size:13px}.admin-grid-cell.align-right[_ngcontent-%COMP%]   .count-chip.is-zero[_ngcontent-%COMP%]{background:transparent}.dates-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.dates-cell[_ngcontent-%COMP%]   .dates-range[_ngcontent-%COMP%]{font-size:13px;color:#0f172a;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dates-cell[_ngcontent-%COMP%]   .dates-rel[_ngcontent-%COMP%]{font-size:11.5px;margin-top:2px}.dates-cell[_ngcontent-%COMP%]   .dates-rel.is-active[_ngcontent-%COMP%]{color:#047857}.dates-cell[_ngcontent-%COMP%]   .dates-rel.is-upcoming[_ngcontent-%COMP%]{color:#1d4ed8}.dates-cell[_ngcontent-%COMP%]   .dates-rel.is-completed[_ngcontent-%COMP%]{color:#94a3b8}.dates-cell[_ngcontent-%COMP%]   .dates-rel.is-archived[_ngcontent-%COMP%]{color:#b91c1c}.row-chevron[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:18px}.row-chevron[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center;color:#6b7280}.empty-state[_ngcontent-%COMP%]   .empty-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:50%;background:#f3f4f6;display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px}.empty-state[_ngcontent-%COMP%]   .empty-icon[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:28px;color:#9ca3af}.empty-state[_ngcontent-%COMP%]   .empty-title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#1f2937;margin-bottom:4px}.empty-state[_ngcontent-%COMP%]   .empty-desc[_ngcontent-%COMP%]{font-size:13px;color:#6b7280;max-width:380px}
1.tour-avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;border-radius:7px;color:var(--wb-text-2);background:var(--wb-neutral-soft);margin-right:10px}.tour-avatar[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:17px}.tour-avatar.is-empty[_ngcontent-%COMP%]{background:#f3f4f6;color:#9ca3af}[_nghost-%COMP%]{display:block;background:var(--fc-bg);--wb-page-max: 1560px;--wb-admin-chrome: 300px;--wb-tg-bg-canvas: var(--wb-canvas, #F4F5F7);--wb-tg-bg-surface: var(--wb-surface, #FFFFFF);--wb-tg-bg-surface-elevated: var(--wb-surface, #FFFFFF);--wb-tg-bg-surface-glow: var(--wb-warning-soft, #FFF8E8);--wb-tg-shadow: var(--wb-e1, 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06));--wb-tg-border-soft: rgba(15, 23, 42, .1);--wb-tg-border-emphasis: rgba(15, 23, 42, .18);--wb-tg-text-primary: var(--wb-text, #111827);--wb-tg-text-secondary: var(--wb-text-2, #5B6370);--wb-tg-text-tertiary: var(--wb-text-3, #6B7280);--wb-tg-text-quaternary: var(--wb-text-4, #9AA1AC);--wb-tg-status-draft: var(--wb-status-draft-fg);--wb-tg-status-scheduled: var(--wb-status-scheduled-fg);--wb-tg-status-open: var(--wb-status-open-fg);--wb-tg-status-live: var(--wb-status-live-fg);--wb-tg-status-live-glow: var(--wb-status-live-glow);--wb-tg-status-closed: var(--wb-status-closed-fg);--wb-tg-status-completed: var(--wb-status-completed-fg);--wb-tg-status-active: var(--wb-status-active-fg);--wb-tg-status-upcoming: var(--wb-status-upcoming-fg);--wb-tg-status-archived: var(--wb-status-archived-fg);--wb-tg-status-inactive: var(--wb-status-inactive-fg);--wb-tg-status-empty: var(--wb-status-empty-fg);--wb-tg-accent-blue: var(--wb-accent);background:var(--wb-tg-bg-canvas);color:var(--wb-tg-text-primary);-webkit-font-smoothing:antialiased}.admin-grid-page[_ngcontent-%COMP%]{max-width:1440px;margin:0 auto;padding:32px}@media (max-width: 720px){.admin-grid-page[_ngcontent-%COMP%]{padding:20px 16px}}.tg-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;margin-bottom:28px;flex-wrap:wrap}@media (max-width: 720px){.tg-header[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:20px}}.tg-header-left[_ngcontent-%COMP%]{flex:1;min-width:0}.tg-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin:0;font-size:28px;font-weight:600;letter-spacing:-.4px;color:var(--wb-tg-text-primary);flex-wrap:wrap}@media (max-width: 720px){.tg-title[_ngcontent-%COMP%]{font-size:22px;gap:10px;letter-spacing:-.3px}}.tg-title-count[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:var(--wb-tg-text-tertiary);font-variant-numeric:tabular-nums;letter-spacing:0}.tg-title-live[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;font-size:11px;font-weight:700;letter-spacing:1.2px;color:var(--wb-tg-status-live);background:rgba(217,119,6,.1);border:.5px solid rgba(217,119,6,.3);border-radius:6px;font-variant-numeric:tabular-nums;white-space:nowrap}@media (max-width: 720px){.tg-title-live[_ngcontent-%COMP%]{display:none}}.tg-live-dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:var(--wb-tg-status-live);box-shadow:0 0 8px var(--wb-tg-status-live-glow);animation:_ngcontent-%COMP%_tg-live-pulse 1.6s ease-in-out infinite}.tg-subtitle[_ngcontent-%COMP%]{margin:8px 0 0;font-size:13px;color:var(--wb-tg-text-secondary)}.tg-subtitle[_ngcontent-%COMP%]   .tg-subtitle-emph[_ngcontent-%COMP%]{color:var(--wb-tg-status-live);font-weight:500}.tg-subtitle[_ngcontent-%COMP%]   .tg-subtitle-sep[_ngcontent-%COMP%]{margin:0 8px;color:var(--wb-tg-text-quaternary)}.tg-header-right[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px}@media (max-width: 720px){.tg-header-right[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap}}.tg-search[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;margin:0;width:320px;height:40px;background:var(--wb-tg-bg-surface);border:1px solid var(--wb-tg-border-soft);border-radius:8px;transition:border-color .12s,box-shadow .12s}.tg-search[_ngcontent-%COMP%]:focus-within{border-color:var(--wb-tg-accent-blue);box-shadow:0 0 0 3px var(--wb-tg-accent-blue-glow, rgba(37, 99, 235, .15))}@media (max-width: 720px){.tg-search[_ngcontent-%COMP%]{width:100%}}.tg-search-icon[_ngcontent-%COMP%]{font-size:18px;color:var(--wb-tg-text-tertiary);margin:0 8px 0 12px}.tg-header-right[_ngcontent-%COMP%]     .tg-date-range .dropdown-trigger{height:40px;min-height:40px;padding-top:0;padding-bottom:0}.tg-search-input[_ngcontent-%COMP%]{flex:1;height:100%;background:transparent;border:none;outline:none;color:var(--wb-tg-text-primary);font-size:13px;font-family:inherit;min-width:0}.tg-search-input[_ngcontent-%COMP%]::placeholder{color:var(--wb-tg-text-tertiary)}.tg-search-kbd[_ngcontent-%COMP%]{margin:0 10px 0 0;padding:3px 7px;line-height:1;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:11px;font-weight:600;color:var(--wb-tg-text-tertiary);background:#F3F4F6;border:1px solid var(--wb-tg-border-soft);border-radius:4px}@media (hover: none){.tg-search-kbd[_ngcontent-%COMP%]{display:none}}.tg-action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;background:var(--wb-tg-text-primary);color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .12s,transform .05s}.tg-action-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.tg-action-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#1E293B}.tg-action-btn[_ngcontent-%COMP%]:not(:disabled):active{transform:translateY(1px)}
1.tg-action-btn[_ngcontent-%COMP%]:disabled{background:var(--wb-n-200, #E3E6EA);color:var(--wb-n-500, #6B7280);cursor:not-allowed}.tg-ghost-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;background:transparent;color:var(--wb-tg-text-secondary);border:1px solid var(--wb-tg-border-soft);border-radius:8px;cursor:pointer;transition:background .12s,color .12s}.tg-ghost-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:19px}.tg-ghost-btn[_ngcontent-%COMP%]:hover{background:var(--wb-tg-bg-surface-hover, #F3F4F6);color:var(--wb-tg-text-primary)}.is-embedded[_ngcontent-%COMP%]   .tg-action-btn[_ngcontent-%COMP%]{background:var(--fc-action, #008afc)}.is-embedded[_ngcontent-%COMP%]   .tg-action-btn[_ngcontent-%COMP%]:hover{background:#0079DE}.is-embedded[_ngcontent-%COMP%]   .tg-action-btn[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--fc-action, #008afc) 88%,#000)}.tg-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table{background:var(--wb-tg-bg-surface);border:1px solid var(--wb-tg-border-hairline);border-radius:var(--tg-table-radius, 16px);box-shadow:var(--wb-tg-shadow);overflow:clip}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-header{background:transparent;border-bottom:1px solid var(--wb-tg-border-hairline);color:var(--wb-tg-text-tertiary);font-size:10px;letter-spacing:1.6px;font-weight:600;text-transform:uppercase;min-height:40px}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row{border-bottom:1px solid var(--wb-tg-border-hairline);background:transparent;min-height:64px;transition:background .12s ease}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row:hover{background:#F7F9FB}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row:last-child{border-bottom:none}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row.is-in-progress-row{background:#F9F9F9;border-bottom-color:var(--wb-tg-border-hairline);box-shadow:inset 2px 0 0 var(--wb-tg-status-live);position:relative}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row.is-in-progress-row:hover{background:#F1F3F5}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row.is-past-row{background:#F9FAFB}.admin-grid-page[_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row.is-past-row:hover{background:#F1F3F5}.tg-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:12px 16px;min-width:0}.tg-cell-actions[_ngcontent-%COMP%], .tg-cell.col-act[_ngcontent-%COMP%], .tg-cell.col-actions[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.tg-cell-name[_ngcontent-%COMP%]{gap:4px}.tg-cell-name[_ngcontent-%COMP%]   .tg-name[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:var(--wb-tg-text-primary);letter-spacing:-.2px;text-decoration:none;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tg-cell-name[_ngcontent-%COMP%]   .tg-name[_ngcontent-%COMP%]:hover{color:var(--wb-tg-accent-blue)}.tg-cell-name[_ngcontent-%COMP%]   .tg-name-context[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-tg-text-tertiary);letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tg-tour-avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;border-radius:8px;font-size:12px;font-weight:700;flex-shrink:0;background:var(--wb-neutral-soft);color:var(--wb-text-2)}.tg-cell-members[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:flex-start}.tg-member-stack[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.tg-member-avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;border-radius:50%;font-size:10px;font-weight:700;background:var(--wb-neutral-soft);color:var(--wb-text-2);box-shadow:0 0 0 2px var(--wb-tg-bg-surface, #fff)}
1.tg-member-avatar[_ngcontent-%COMP%] + .tg-member-avatar[_ngcontent-%COMP%]{margin-left:-8px}.tg-cell-status[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:flex-start}.tg-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:2px 2px 2px 0;font-size:12.5px;font-weight:500}.tg-status[_ngcontent-%COMP%]:before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:currentColor;box-sizing:border-box}.tg-status[data-status=draft][_ngcontent-%COMP%]{color:var(--wb-tg-status-draft)}.tg-status[data-status=scheduled][_ngcontent-%COMP%]{color:var(--wb-tg-status-scheduled)}.tg-status[data-status=open][_ngcontent-%COMP%]{color:var(--wb-tg-status-open)}.tg-status[data-status=in_progress][_ngcontent-%COMP%]{color:var(--wb-tg-status-live)}.tg-status[data-status=closed][_ngcontent-%COMP%]{color:var(--wb-tg-status-closed)}.tg-status[data-status=completed][_ngcontent-%COMP%]{color:var(--wb-tg-status-completed)}.tg-status[data-status=active][_ngcontent-%COMP%]{color:var(--wb-tg-status-active)}.tg-status[data-status=upcoming][_ngcontent-%COMP%]{color:var(--wb-tg-status-upcoming)}.tg-status[data-status=archived][_ngcontent-%COMP%]{color:var(--wb-tg-status-archived)}.tg-status[data-status=inactive][_ngcontent-%COMP%]{color:var(--wb-tg-status-inactive)}.tg-status[data-status=empty][_ngcontent-%COMP%]{color:var(--wb-tg-status-empty)}.tg-status[data-status=draft][_ngcontent-%COMP%]:before, .tg-status[data-status=empty][_ngcontent-%COMP%]:before, .tg-status[data-status=inactive][_ngcontent-%COMP%]:before, .tg-status[data-status=archived][_ngcontent-%COMP%]:before, .tg-status[data-status=completed][_ngcontent-%COMP%]:before, .tg-status[data-status=closed][_ngcontent-%COMP%]:before{width:8px;height:8px;background:transparent;border:1.2px solid currentColor}.tg-status[data-status=empty][_ngcontent-%COMP%]:before{border-width:1.5px;border-style:dashed}.tg-status[data-status=in_progress][_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_tg-live-icon-pulse 1.6s ease-in-out infinite;box-shadow:0 0 8px var(--wb-tg-status-live-glow)}.tg-status[_ngcontent-%COMP%]   .tg-status-icon[_ngcontent-%COMP%]{display:none}.tg-status-icon[_ngcontent-%COMP%]{width:12px;height:12px;flex-shrink:0}.tg-status-icon.tg-status-icon-live[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_tg-live-icon-pulse 1.6s ease-in-out infinite;filter:drop-shadow(0 0 6px var(--wb-tg-status-live-glow))}.tg-status-label[_ngcontent-%COMP%]{color:inherit;text-transform:lowercase}.tg-cell-date[_ngcontent-%COMP%]{gap:3px}.tg-cell-date[_ngcontent-%COMP%]   .tg-date-primary[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:var(--wb-tg-text-primary);font-variant-numeric:tabular-nums;letter-spacing:.1px}.tg-cell-date[_ngcontent-%COMP%]   .tg-date-secondary[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-tg-text-tertiary);display:inline-flex;align-items:center}.tg-cell-date[_ngcontent-%COMP%]   .tg-date-secondary[_ngcontent-%COMP%]   .tg-date-time[_ngcontent-%COMP%]{font-variant-numeric:tabular-nums}.tg-cell-date[_ngcontent-%COMP%]   .tg-date-secondary[_ngcontent-%COMP%]   .tg-date-sep[_ngcontent-%COMP%]{margin:0 5px;color:var(--wb-tg-text-quaternary)}.tg-cell-location[_ngcontent-%COMP%]{gap:3px}.tg-cell-location[_ngcontent-%COMP%]   .tg-location-primary[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:var(--wb-tg-text-primary);letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tg-cell-location[_ngcontent-%COMP%]   .tg-location-secondary[_ngcontent-%COMP%]{font-size:10px;color:var(--wb-tg-text-tertiary);letter-spacing:1.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tg-cell-number[_ngcontent-%COMP%]{align-items:flex-end}.tg-cell-number[_ngcontent-%COMP%]   .tg-number[_ngcontent-%COMP%]{font-size:15.5px;font-weight:600;color:var(--wb-tg-text-primary);font-variant-numeric:tabular-nums;line-height:1}.tg-cell-number[_ngcontent-%COMP%]   .tg-number.is-zero[_ngcontent-%COMP%]{color:var(--wb-tg-text-quaternary)}.tg-cell-number[_ngcontent-%COMP%]   .tg-number.is-draft-test[_ngcontent-%COMP%]{font-style:italic;color:var(--wb-tg-text-tertiary)}.tg-cell-number[_ngcontent-%COMP%]   .tg-number.is-muted[_ngcontent-%COMP%]{color:var(--wb-tg-text-secondary);font-weight:600}.tg-cell-tertiary[_ngcontent-%COMP%]{align-items:flex-end}.tg-cell-tertiary[_ngcontent-%COMP%]   .tg-tertiary[_ngcontent-%COMP%]{font-size:12px;color:var(--wb-tg-text-tertiary);font-variant-numeric:tabular-nums}.tg-cell-chevron[_ngcontent-%COMP%]{align-items:center}.tg-chevron[_ngcontent-%COMP%]{width:12px;height:12px;color:var(--wb-tg-text-quaternary);transition:color .12s}  .admin-grid-table-row:hover .tg-chevron{color:var(--wb-tg-text-secondary)}.tg-cell-empty[_ngcontent-%COMP%]{color:var(--wb-tg-text-quaternary);font-size:13px}.empty-state[_ngcontent-%COMP%]{padding:60px 24px;color:var(--wb-tg-text-secondary)}.empty-state[_ngcontent-%COMP%]   .empty-title[_ngcontent-%COMP%]{color:var(--wb-tg-text-primary)}.empty-state[_ngcontent-%COMP%]   .empty-desc[_ngcontent-%COMP%]{color:var(--wb-tg-text-secondary)}  .tg-pagination{margin-top:20px}  .tg-pagination .grid-pagination{padding-top:16px}@keyframes _ngcontent-%COMP%_tg-live-pulse{0%,to{opacity:1;box-shadow:0 0 8px var(--wb-tg-status-live-glow)}50%{opacity:.6;box-shadow:0 0 16px var(--wb-tg-status-live-glow)}}@keyframes _ngcontent-%COMP%_tg-live-icon-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(.9)}}@keyframes _ngcontent-%COMP%_tg-live-row-breathe{0%,to{opacity:1}50%{opacity:.5}}
1@media (prefers-reduced-motion: reduce){.tg-live-dot[_ngcontent-%COMP%], .tg-status-icon-live[_ngcontent-%COMP%], .tg-status[data-status=in_progress][_ngcontent-%COMP%]:before{animation:none!important}  .admin-grid-table-row.is-in-progress-row:after{animation:none!important}}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)     .admin-grid-table .admin-grid-table-header{background:var(--wb-ink, #14110F);border-bottom:none;min-height:34px;color:var(--wb-text-3)}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)     .admin-grid-table .admin-grid-table-header .admin-grid-cell.is-head{color:var(--wb-text-3);font-size:11px;font-weight:600;letter-spacing:.08em;padding-top:0;padding-bottom:0}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)     .admin-grid-table .admin-grid-table-header .is-sort:hover{color:var(--wb-text-2)}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)     .admin-grid-table .admin-grid-table-header .is-sort.is-active{color:var(--wb-text-2)}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)     .admin-grid-table .admin-grid-table-header .sort-indicator{color:var(--wb-text-2)}.admin-grid-page[data-density=dense][_ngcontent-%COMP%]     .admin-grid-table .admin-grid-table-row{min-height:52px}.admin-grid-page[data-density=dense][_ngcontent-%COMP%]     .admin-grid-table .admin-grid-cell{padding:8px 16px}.admin-grid-page[data-density=dense][_ngcontent-%COMP%]     .admin-grid-table .tg-cell-name-with-avatar{gap:10px}.admin-grid-page[data-density=dense][_ngcontent-%COMP%]     .admin-grid-table .tg-name{font-size:13.5px;line-height:1.25}.admin-grid-page[data-density=dense][_ngcontent-%COMP%]     .admin-grid-table .tg-name-context{font-size:12px;line-height:1.25}.tg-name-featured[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;margin-left:10px;flex-shrink:0}.tg-cell-name[_ngcontent-%COMP%]   .tg-name[_ngcontent-%COMP%]{font-weight:700}.tg-cell-name[_ngcontent-%COMP%]   .tg-name-context[_ngcontent-%COMP%]{color:var(--wb-tg-text-quaternary)}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel){max-width:none;padding-left:16px;padding-right:16px;padding-top:0}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-header[_ngcontent-%COMP%]{min-height:0!important;max-width:var(--wb-page-max, 1560px)!important;margin:0 auto!important;padding:16px 22px var(--tg-hero-pad, 16px)!important;border-radius:var(--tg-hero-radius, 14px) var(--tg-hero-radius, 14px) var(--tg-hero-radius-btm, var(--tg-hero-radius, 14px)) var(--tg-hero-radius-btm, var(--tg-hero-radius, 14px))!important;border:1px solid rgba(255,255,255,.06)!important;background:var(--wb-flagship-band)!important;align-items:var(--tg-hero-align, center);position:relative;overflow:visible;box-shadow:inset 0 1px #ffffff0d}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-header[_ngcontent-%COMP%]:after{content:var(--tg-watermark, none)!important;font-family:Material Symbols Outlined;font-size:170px;font-weight:300;line-height:1;color:#ffffff0a;position:absolute;right:60px;top:0;bottom:0;width:200px;display:flex;align-items:center;justify-content:center;overflow:hidden;transform:rotate(-8deg);pointer-events:none;-webkit-user-select:none;user-select:none}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-header[_ngcontent-%COMP%]   .tg-header-left[_ngcontent-%COMP%], .admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-header[_ngcontent-%COMP%]   .tg-header-right[_ngcontent-%COMP%]{position:relative;z-index:1}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-entity-badge[_ngcontent-%COMP%]{flex:none;width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--wb-blue-500),var(--wb-blue-700));box-shadow:0 2px 12px #0059a880,0 0 0 5px #008afc1f}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-entity-badge[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:23px;color:#fff}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-card[_ngcontent-%COMP%], .admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .empty-state[_ngcontent-%COMP%]{max-width:var(--wb-page-max, 1560px);margin-left:auto;margin-right:auto}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-card[_ngcontent-%COMP%]{position:relative;z-index:1;margin-top:var(--tg-hero-tuck, 0);box-shadow:var(--tg-card-shadow, var(--wb-tg-shadow))!important}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-title[_ngcontent-%COMP%]{color:#fff}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-title-count[_ngcontent-%COMP%]{color:#ffffff80}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-subtitle[_ngcontent-%COMP%]{margin-left:56px;color:#fff9}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-subtitle[_ngcontent-%COMP%]   .tg-subtitle-emph[_ngcontent-%COMP%]{color:#fff}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-subtitle[_ngcontent-%COMP%]   .tg-subtitle-sep[_ngcontent-%COMP%]{color:#ffffff59}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-search[_ngcontent-%COMP%]{background:rgba(255,255,255,.08);border-color:#ffffff29}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-search[_ngcontent-%COMP%]:focus-within{border-color:#ffffff80;box-shadow:0 0 0 3px #ffffff1a}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-search-icon[_ngcontent-%COMP%]{color:#fff9}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-search-input[_ngcontent-%COMP%]{color:#fff}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-search-input[_ngcontent-%COMP%]::placeholder{color:#ffffff80}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-search-kbd[_ngcontent-%COMP%]{background:rgba(255,255,255,.1);border-color:#fff3;color:#fff9}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-action-btn[_ngcontent-%COMP%]{background:#fff;color:#14110f}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-action-btn[_ngcontent-%COMP%]:hover{background:#ececec}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-action-btn[_ngcontent-%COMP%]:disabled:hover{background:#fff}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-ghost-btn[_ngcontent-%COMP%]{background:rgba(255,255,255,.06);border-color:#ffffff2e;color:#ffffffc7}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-ghost-btn[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.12);color:#fff}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-ghost-btn.is-active[_ngcontent-%COMP%]{background:rgba(0,138,252,.22);border-color:#008afc8c;color:#fff}@media (max-width: 720px){.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-header[_ngcontent-%COMP%]{min-height:132px!important}}@media (max-width: 640px){.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-action-btn[_ngcontent-%COMP%]{gap:0;padding:0;width:40px;min-width:40px;height:40px;border-radius:10px;justify-content:center}.admin-grid-page[_ngcontent-%COMP%]:not(.is-embedded):not(.is-panel)   .tg-action-btn[_ngcontent-%COMP%]   .tg-action-label[_ngcontent-%COMP%]{display:none}}.staff-container[_ngcontent-%COMP%]{--tg-watermark: "badge";--tg-hero-pad: 22px;--tg-hero-tuck: 0px;--tg-hero-radius: 16px;--tg-hero-radius-btm: 0px;padding-bottom:20px}.staff-container[_ngcontent-%COMP%]   .tg-header[_ngcontent-%COMP%]{margin-bottom:0}.cta-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:0 16px;height:36px;border-radius:10px;border:none;background:#087277;color:var(--wb-surface, #fff);font-size:.85rem;font-weight:600;cursor:pointer;transition:background .15s ease;white-space:nowrap}.cta-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.cta-btn[_ngcontent-%COMP%]:hover{background:#065a5e}.staff-body[_ngcontent-%COMP%]{position:relative;z-index:1;max-width:var(--wb-page-max, 1560px);margin:0 auto;padding:0;background:var(--wb-surface, #fff);border:1px solid var(--wb-tg-border-hairline, #eceef3);border-top:none;border-radius:0 0 16px 16px;overflow:hidden;box-shadow:0 12px 28px #060a121f,0 1px 3px #1018280f}.staff-toolbar[_ngcontent-%COMP%]{margin-bottom:0;padding:14px 16px}.staff-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;min-height:38px;background:var(--wb-ink, #14110F);padding:0 33px}.staff-list-label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#ffffff8c}.staff-list-label--member[_ngcontent-%COMP%]{flex:1;min-width:0}.staff-list-label--access[_ngcontent-%COMP%]{flex:none;width:300px}.staff-list-label--status[_ngcontent-%COMP%]{flex:none;width:120px}.staff-list-label-spacer[_ngcontent-%COMP%]{flex:none;width:110px}.staff-rows[_ngcontent-%COMP%]{padding:4px 16px 16px;display:flex;flex-direction:column;gap:8px}.staff-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;background:var(--wb-surface, #fff);border:1px solid #e2e8f0;border-radius:10px;padding:12px 16px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.staff-row.is-active[_ngcontent-%COMP%]{border-left:3px solid #16a34a}.staff-row.is-pending[_ngcontent-%COMP%]{border-left:3px solid #d97706}.staff-row.is-revoked[_ngcontent-%COMP%]{border-left:3px solid var(--wb-danger, #C2382F)}.staff-row[_ngcontent-%COMP%]:hover{border-color:#087277;box-shadow:0 2px 12px #08727714}
1.staff-row__avatar[_ngcontent-%COMP%]{width:40px;height:40px;min-width:40px;border-radius:50%;background:linear-gradient(135deg,#087277,#0a9098);color:var(--wb-surface, #fff);display:flex;align-items:center;justify-content:center;font-size:.82rem;font-weight:600;letter-spacing:.5px}.staff-row__identity[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.staff-row__identity-top[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}.staff-row__name[_ngcontent-%COMP%]{font-size:.95rem;font-weight:700;color:#1a1a2e}.staff-row__role[_ngcontent-%COMP%]{font-size:.78rem;font-weight:500;color:var(--wb-blue-700, #0059a8)}.staff-row__email[_ngcontent-%COMP%]{font-size:.8rem;color:#64748b}.staff-row__status[_ngcontent-%COMP%]{flex:none;width:120px}.status-pill[_ngcontent-%COMP%]{font-size:.7rem;font-weight:600;padding:3px 10px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.3px;background:#e2e8f0;color:#64748b}.pill-active[_ngcontent-%COMP%]{background:#e6f7ed;color:#16a34a}.pill-pending[_ngcontent-%COMP%]{background:#fef3c7;color:#d97706}.staff-row__access[_ngcontent-%COMP%]{flex:none;width:300px;display:flex;flex-wrap:wrap;gap:6px}.staff-row__access--empty[_ngcontent-%COMP%]{font-size:.8rem;color:#94a3b8;font-style:italic}.access-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;background:#f1f5f9;color:#475569;font-size:.73rem;font-weight:500;padding:3px 10px;border-radius:12px;white-space:nowrap}.access-tag--tour[_ngcontent-%COMP%]{background:#ede9fe;color:#6d28d9}.access-tag--division[_ngcontent-%COMP%]{background:#e8f4fd;color:#1565c0}.access-tag--season[_ngcontent-%COMP%]{background:#ecfdf5;color:#059669}.access-tag--school[_ngcontent-%COMP%]{background:#fff3e0;color:#b45309}.access-tag-type[_ngcontent-%COMP%]{font-weight:600;opacity:.7}.access-tag-icon[_ngcontent-%COMP%]{font-size:14px}.staff-row__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:none;width:110px;justify-content:flex-end}.row-link[_ngcontent-%COMP%]{border:none;background:none;padding:0;font-family:inherit;font-size:.78rem;font-weight:600;color:var(--wb-blue-700, #0059a8);cursor:pointer;white-space:nowrap}.row-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.row-link[_ngcontent-%COMP%]:disabled{color:#94a3b8;cursor:default;text-decoration:none}.row-link--quiet[_ngcontent-%COMP%]{color:#94a3b8;cursor:inherit}.row-link--quiet[_ngcontent-%COMP%]:hover{text-decoration:none}.row-lastactive[_ngcontent-%COMP%]{font-size:.75rem;color:#94a3b8;white-space:nowrap}.manage-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;color:#087277;cursor:pointer;padding:4px;border-radius:6px;transition:color .12s ease,background .12s ease}.manage-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}.manage-btn[_ngcontent-%COMP%]:hover{color:#065a5e;background:#ecfdf5}.no-results[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#78909c;font-size:.9rem}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:48px 24px;text-align:center}.empty-state[_ngcontent-%COMP%]   .empty-state-icon[_ngcontent-%COMP%]{font-size:48px;color:#b0bec5;margin-bottom:16px}.empty-state[_ngcontent-%COMP%]   .empty-state-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;color:#37474f;margin-bottom:6px}.empty-state[_ngcontent-%COMP%]   .empty-state-sub[_ngcontent-%COMP%]{font-size:.9rem;color:#78909c;margin-bottom:24px;max-width:360px}@media (max-width: 1000px){.staff-list-header[_ngcontent-%COMP%]{display:none}.staff-row[_ngcontent-%COMP%]{flex-wrap:wrap;row-gap:10px}.staff-row__identity[_ngcontent-%COMP%]{flex:1 1 220px}.staff-row__access[_ngcontent-%COMP%]{flex:1 1 100%;width:auto;order:4}.staff-row__status[_ngcontent-%COMP%]{width:auto}}@media (max-width: 680px){.staff-row__actions[_ngcontent-%COMP%]{width:auto;margin-left:auto}.cta-btn[_ngcontent-%COMP%]{padding:0 12px;font-size:.8rem}.cta-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{display:none}}@media (max-width: 420px){.cta-btn[_ngcontent-%COMP%]{height:32px;font-size:.75rem}}.status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;background:#f1f5f9;color:#64748b}.status-pill[_ngcontent-%COMP%]:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.pill-active[_ngcontent-%COMP%]{background:#ecfdf5;color:#059669}.pill-pending[_ngcontent-%COMP%]{background:#fffbeb;color:#d97706}.pill-revoked[_ngcontent-%COMP%]{background:var(--wb-danger-soft, #FBEAE8);color:var(--wb-danger, #C2382F)}']})}}return i})();var _=p(10708),S=p(78645),F=p(59773),ce=p(49538);function le(i,a){1&i&&(e.TgZ(0,"span",33),e._uU(1," Please enter a valid email address "),e.qZA())}function de(i,a){1&i&&(e.TgZ(0,"span",33),e._uU(1," That is your own email address. You already have access to everything you would be granting. "),e.qZA())}function pe(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){const r=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.setRole(r.key))}),e._UZ(1,"span",35),e.TgZ(2,"span",36),e._uU(3),e.qZA(),e.TgZ(4,"span",37)(5,"span",38),e._uU(6),e.qZA(),e.TgZ(7,"span",39),e._uU(8),e.qZA()()()}if(2&i){const t=a.$implicit,n=e.oxw(3);e.ekj("is-selected",n.currentStaffMember.role===t.key),e.uIk("aria-checked",n.currentStaffMember.role===t.key),e.xp6(3),e.Oqu(t.icon),e.xp6(3),e.Oqu(t.key),e.xp6(2),e.Oqu(t.de
1sc)}}function fe(i,a){1&i&&(e.TgZ(0,"span",46),e._uU(1,"check_circle"),e.qZA())}function ge(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){const r=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.pickScopeType(r.key))}),e.TgZ(1,"span",41)(2,"span",15),e._uU(3),e.qZA()(),e.TgZ(4,"span",42)(5,"span",43),e._uU(6),e.qZA(),e.TgZ(7,"span",44),e._uU(8),e.qZA()(),e.YNc(9,fe,2,0,"span",45),e.qZA()}if(2&i){const t=a.$implicit,n=e.oxw(3);e.ekj("is-selected",n.newAccessLevel.moduleType===t.key),e.uIk("aria-pressed",n.newAccessLevel.moduleType===t.key),e.xp6(1),e.Q6J("ngClass","st-tile__icon--"+t.key),e.xp6(2),e.Oqu(t.icon),e.xp6(3),e.Oqu(t.label),e.xp6(2),e.Oqu(t.desc),e.xp6(1),e.Q6J("ngIf",n.newAccessLevel.moduleType===t.key)}}function _e(i,a){if(1&i&&(e.TgZ(0,"option",53),e._uU(1),e.qZA()),2&i){const t=a.$implicit;e.Q6J("ngValue",t),e.xp6(1),e.AsE(" ",null!=t.division&&t.division.name?t.division.name+" - ":"","",t.name," ")}}function ue(i,a){if(1&i&&(e.TgZ(0,"span",54),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" Grants access to ",t.newAccessLevel.recordName," ")}}function me(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",47)(1,"span",48),e._uU(2),e.qZA(),e.TgZ(3,"select",49),e.NdJ("change",function(o){e.CHM(t);const r=e.oxw(3);return e.KtG(r.onScopeRecordPicked(o.target.selectedIndex))}),e.TgZ(4,"option",50),e._uU(5),e.qZA(),e.YNc(6,_e,2,3,"option",51),e.qZA(),e.YNc(7,ue,2,1,"span",52),e.qZA()}if(2&i){const t=e.oxw(3);e.xp6(2),e.hij("Which ",t.newAccessLevel.moduleType,""),e.xp6(3),e.hij("Choose a ",t.newAccessLevel.moduleType,"\u2026"),e.xp6(1),e.Q6J("ngForOf",t.scopeOptions),e.xp6(1),e.Q6J("ngIf",t.newAccessLevel.recordName)}}function be(i,a){if(1&i&&(e.TgZ(0,"div",55)(1,"span",15),e._uU(2,"info"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.hij(" ",t.scopeGrantNote," ")}}function xe(i,a){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",7)(2,"span",8),e._uU(3,"1"),e.qZA(),e.TgZ(4,"div",9)(5,"div",10),e._uU(6,"Who are you inviting?"),e.qZA(),e.TgZ(7,"div",11)(8,"label",12)(9,"span",13),e._uU(10,"First name"),e.qZA(),e.TgZ(11,"span",14)(12,"span",15),e._uU(13,"person"),e.qZA(),e.TgZ(14,"input",16),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.newInvite.first_name=o)}),e.qZA()()(),e.TgZ(15,"label",12)(16,"span",13),e._uU(17,"Last name"),e.qZA(),e.TgZ(18,"span",14)(19,"span",15),e._uU(20,"person"),e.qZA(),e.TgZ(21,"input",17),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.newInvite.last_name=o)}),e.qZA()()(),e.TgZ(22,"label",12)(23,"span",13),e._uU(24,"Email address"),e.qZA(),e.TgZ(25,"span",14)(26,"span",15),e._uU(27,"mail"),e.qZA(),e.TgZ(28,"input",18,19),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.newInvite.email=o)}),e.qZA()(),e.YNc(30,le,2,0,"span",20),e.YNc(31,de,2,0,"span",20),e.qZA()()()(),e.TgZ(32,"div",7)(33,"span",8),e._uU(34,"2"),e.qZA(),e.TgZ(35,"div",9)(36,"div",10),e._uU(37,"What is their role?"),e.qZA(),e.TgZ(38,"div",21),e.YNc(39,pe,9,6,"button",22),e.qZA()()(),e.TgZ(40,"div",7)(41,"span",8),e._uU(42,"3"),e.qZA(),e.TgZ(43,"div",9)(44,"div",10),e._uU(45,"What can they reach?"),e.qZA(),e.TgZ(46,"div",23),e._uU(47,"Higher levels include everything below them. You can add more scopes later."),e.qZA(),e.TgZ(48,"div",24),e.YNc(49,ge,10,8,"button",25),e.qZA(),e.YNc(50,me,8,4,"div",26),e.YNc(51,be,4,1,"div",27),e.qZA()(),e.TgZ(52,"div",28)(53,"span",29),e._uU(54),e.qZA(),e.TgZ(55,"div",30)(56,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.cancel())}),e._uU(57,"Cancel"),e.qZA(),e.TgZ(58,"button",32)(59,"span",15),e._uU(60,"send"),e.qZA(),e._uU(61),e.qZA()()(),e.BQk()}if(2&i){const t=e.MAs(29),n=e.oxw(2);e.xp6(14),e.Q6J("ngModel",n.newInvite.first_name),e.xp6(7),e.Q6J("ngModel",n.newInvite.last_name),e.xp6(4),e.ekj("is-error",(null==t?null:t.invalid)&&(null==t||null==t.value?null:t.value.length)>0||n.isSelfInvite),e.xp6(3),e.Q6J("ngModel",n.newInvite.email),e.xp6(2),e.Q6J("ngIf",(null==t?null:t.invalid)&&(null==t||null==t.value?null:t.value.length)>0),e.xp6(1),e.Q6J("ngIf",n.isSelfInvite),e.xp6(8),e.Q6J("ngForOf",n.pickerRoles),e.xp6(10),e.Q6J("ngForOf",n.scopeChoices),e.xp6(1),e.Q6J("ngIf",n.newAccessLevel.moduleType),e.xp6(1),e.Q6J("ngIf",n.scopeGrantNote),e.xp6(3),e.Oqu(n.inviteeEmailNote),e.xp6(2),e.Q6J("disabled",n.saving),e.xp6(2),e.Q6J("disabled",!n.canSendInvite),e.xp6(3),e.hij(" ",n.saving?"Sending\u2026":"Send Invite"," ")}}function he(i,a){1&i&&e.GkF(0)}function ve(i,a){if(1&i&&(e.TgZ(0,"div",65)(1,"div",59),e._uU(2,"New staff member"),e.qZA(),e.YNc(3,he,1,0,"ng-container",66),e.qZA()),2&i){e.oxw(2);const t=e.MAs(5);e.xp6(3),e.Q6J("ngTemplateOutlet",t)}}function Ce(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",67),e.NdJ("click",function(){const r=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.setRole(r.key))}),e.TgZ(1,"span",15),e._uU(2),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=a.$implicit,n=e.oxw(3);e.ekj("is-active",n.currentStaffMember.role===t.key),e.uIk("aria-pressed",n.currentStaffMember.role===t.key),e.xp6(2),e.Oqu(t.icon),e.xp6(1),e.hij("",t.key," ")}}function we(i,a){1&i&&(e.TgZ(0,"span",91),e._uU(1,"Added \u2014 not saved yet"),e.qZA())}function Me(i,a){1&i&&(e.TgZ(0,"span",92),e._uU(1," Using the default role "),e.qZA())}function Pe(i,a){if(1&i&&(e.TgZ(0,"option",93),e._uU(1),e.qZA()),2&i){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function Oe(i,a){1&i&&(e.TgZ(0,"span",94)(1,"span",95),e._uU(2,"check_circle"),e.qZA(),e._uU(3,"Always on "),e.qZA())}const P=function(){return{standalone:!0}};function ye(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"label",96)(1,"input",97),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(4);return e.KtG(s.setPaymentEmails(r,o))}
1),e.qZA(),e._UZ(2,"span",98),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngModel",!!t.receivesPaymentEmails)("ngModelOptions",e.DdM(3,P)),e.uIk("aria-label","Payment receipts for "+(t.recordName||"this scope"))}}function Se(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",77)(1,"span",78)(2,"span",79),e.ALo(3,"titlecase"),e.TgZ(4,"span",15),e._uU(5),e.qZA()(),e.TgZ(6,"span",80)(7,"span",81),e._uU(8),e.qZA(),e.YNc(9,we,2,0,"span",82),e.YNc(10,Me,2,0,"span",83),e.qZA()(),e.TgZ(11,"span",84)(12,"select",85),e.NdJ("ngModelChange",function(o){const s=e.CHM(t).$implicit,l=e.oxw(4);return e.KtG(l.setScopeRole(s,o))}),e.YNc(13,Pe,2,2,"option",86),e.qZA()(),e.TgZ(14,"span",87),e.YNc(15,Oe,4,0,"span",88),e.YNc(16,ye,3,4,"label",89),e.qZA(),e.TgZ(17,"button",90),e.NdJ("click",function(){const o=e.CHM(t),r=o.$implicit,s=o.index,l=e.oxw(4);return e.KtG(l.confirmRemoveRole(r,s))}),e.TgZ(18,"span",15),e._uU(19,"close"),e.qZA()()()}if(2&i){const t=a.$implicit,n=e.oxw(4);e.ekj("is-unsaved",n.isUnsavedScope(t)),e.xp6(2),e.Q6J("ngClass",n.moduleClass(t.moduleType))("title",e.lcZ(3,14,t.moduleType)),e.xp6(3),e.Oqu(n.moduleIcon(t.moduleType)),e.xp6(3),e.Oqu(t.recordName||"Unnamed record"),e.xp6(1),e.Q6J("ngIf",n.isUnsavedScope(t)),e.xp6(1),e.Q6J("ngIf",!n.isUnsavedScope(t)&&!t.role),e.xp6(2),e.Q6J("ngModel",n.roleForScope(t))("ngModelOptions",e.DdM(16,P)),e.uIk("aria-label","Role on "+(t.recordName||"this scope")),e.xp6(1),e.Q6J("ngForOf",n.roleOptionsFor(t)),e.xp6(2),e.Q6J("ngIf",n.isNotifyingRole(t)),e.xp6(1),e.Q6J("ngIf",!n.isNotifyingRole(t))}}function ke(i,a){1&i&&(e.TgZ(0,"div",99)(1,"span",15),e._uU(2,"badge"),e.qZA(),e._uU(3," No scopes granted yet \u2014 this staff member cannot see anything until you add one. "),e.qZA())}function Te(i,a){if(1&i&&(e.TgZ(0,"div",100)(1,"span",15),e._uU(2,"info"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(4);e.xp6(3),e.hij(" ",t.receiptsTruth," ")}}function Ze(i,a){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",68)(2,"span"),e._uU(3,"Scope"),e.qZA(),e.TgZ(4,"span",69),e._uU(5,"Role"),e.qZA(),e.TgZ(6,"span",70),e._uU(7,"Payment receipts"),e.qZA(),e._UZ(8,"span"),e.qZA(),e.YNc(9,Se,20,17,"div",71),e.YNc(10,ke,4,0,"div",72),e.YNc(11,Te,4,1,"div",73),e.TgZ(12,"div",74)(13,"button",75),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addingRole=!0)}),e.TgZ(14,"span",15),e._uU(15,"add"),e.qZA(),e._uU(16," Add a scope "),e.qZA(),e.TgZ(17,"span",76),e._uU(18),e.qZA()(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(9),e.Q6J("ngForOf",t.currentStaffMember.accessLevels)("ngForTrackBy",t.trackAccessLevel),e.xp6(1),e.Q6J("ngIf",!(null!=t.currentStaffMember.accessLevels&&t.currentStaffMember.accessLevels.length)),e.xp6(1),e.Q6J("ngIf",null==t.currentStaffMember.accessLevels?null:t.currentStaffMember.accessLevels.length),e.xp6(7),e.Oqu(t.scopeSummary)}}function Ae(i,a){if(1&i&&(e.ynx(0),e.YNc(1,ve,4,1,"div",56),e.TgZ(2,"div",57)(3,"div",58)(4,"div",59),e._uU(5,"Default role"),e.qZA(),e.TgZ(6,"div",60),e._uU(7," Applied to scopes that carry no role of their own. Each row below can override it \u2014 grant the same record twice to give someone two roles on it. "),e.qZA(),e.TgZ(8,"div",61),e._uU(9),e.qZA()(),e.TgZ(10,"div",62),e.YNc(11,Ce,4,5,"button",63),e.qZA()(),e.YNc(12,Ze,19,5,"ng-container",64),e.BQk()),2&i){e.oxw();const t=e.MAs(7),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!n.currentStaffMember.user),e.xp6(8),e.Oqu(n.accessTruth),e.xp6(2),e.Q6J("ngForOf",n.pickerRoles),e.xp6(1),e.Q6J("ngIf",!n.addingRole)("ngIfElse",t)}}function Ue(i,a){1&i&&(e.TgZ(0,"span",110),e._uU(1,"Please enter a valid email address"),e.qZA())}function Ie(i,a){1&i&&(e.TgZ(0,"span",110),e._uU(1,"That is your own email address. You already have access to everything you would be granting."),e.qZA())}function Fe(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",101)(1,"div",102)(2,"label",103),e._uU(3,"First Name"),e.qZA(),e.TgZ(4,"div",104)(5,"span",105),e._uU(6,"person"),e.qZA(),e.TgZ(7,"input",106),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.newInvite.first_name=o)}),e.qZA()()(),e.TgZ(8,"div",102)(9,"label",103),e._uU(10,"Last Name"),e.qZA(),e.TgZ(11,"div",104)(12,"span",105),e._uU(13,"person"),e.qZA(),e.TgZ(14,"input",107),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.newInvite.last_name=o)}),e.qZA()()(),e.TgZ(15,"div",102)(16,"label",103),e._uU(17,"Email Address"),e.qZA(),e.TgZ(18,"div",104)(19,"span",105),e._uU(20,"mail"),e.qZA(),e.TgZ(21,"input",108,19),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.newInvite.email=o)}),e.qZA()(),e.YNc(23,Ue,2,0,"span",109),e.YNc(24,Ie,2,0,"span",109),e.qZA()()}if(2&i){const t=e.MAs(22),n=e.oxw(2);e.xp6(7),e.Q6J("ngModel",n.newInvite.first_name),e.xp6(7),e.Q6J("ngModel",n.newInvite.last_name),e.xp6(4),e.ekj("input-group--error",(null==t?null:t.invali
1d)&&(null==t||null==t.value?null:t.value.length)>0||n.isSelfInvite),e.xp6(3),e.Q6J("ngModel",n.newInvite.email),e.xp6(2),e.Q6J("ngIf",(null==t?null:t.invalid)&&(null==t||null==t.value?null:t.value.length)>0),e.xp6(1),e.Q6J("ngIf",n.isSelfInvite)}}function qe(i,a){1&i&&(e.TgZ(0,"span",127),e._uU(1,"check_circle"),e.qZA())}function Ne(i,a){1&i&&(e.TgZ(0,"span",127),e._uU(1,"check_circle"),e.qZA())}function Le(i,a){1&i&&(e.TgZ(0,"span",127),e._uU(1,"check_circle"),e.qZA())}function ze(i,a){if(1&i&&(e.TgZ(0,"option",53),e._uU(1),e.qZA()),2&i){const t=a.$implicit;e.Q6J("ngValue",t),e.xp6(1),e.Oqu(t.name)}}function Je(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"div",131)(2,"mat-icon"),e._uU(3,"info_outline"),e.qZA(),e.TgZ(4,"span"),e._uU(5,"This grants access to the tour and "),e.TgZ(6,"strong"),e._uU(7,"all"),e.qZA(),e._uU(8," divisions, seasons, and tournaments under it."),e.qZA()(),e.TgZ(9,"div",132)(10,"label",133),e._uU(11,"Select a Tour"),e.qZA(),e.TgZ(12,"select",134),e.NdJ("change",function(o){e.CHM(t);const r=e.oxw(4);return e.KtG(r.setRoleRecordAndType(r.tours[o.target.selectedIndex-1],"Tour"))}),e.TgZ(13,"option",50),e._uU(14,"Choose a tour..."),e.qZA(),e.YNc(15,ze,2,2,"option",51),e.qZA()()()}if(2&i){const t=e.oxw(4);e.xp6(15),e.Q6J("ngForOf",t.tours)}}function De(i,a){if(1&i&&(e.TgZ(0,"option",53),e._uU(1),e.qZA()),2&i){const t=a.$implicit;e.Q6J("ngValue",t),e.xp6(1),e.Oqu(t.name)}}function Ee(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"div",131)(2,"mat-icon"),e._uU(3,"info_outline"),e.qZA(),e.TgZ(4,"span"),e._uU(5,"This grants access to the division and "),e.TgZ(6,"strong"),e._uU(7,"all"),e.qZA(),e._uU(8," seasons and tournaments under it."),e.qZA()(),e.TgZ(9,"div",132)(10,"label",133),e._uU(11,"Select a Division"),e.qZA(),e.TgZ(12,"select",135),e.NdJ("change",function(o){e.CHM(t);const r=e.oxw(4);return e.KtG(r.setRoleRecordAndType(r.availableDivisions[o.target.selectedIndex-1],"Division"))}),e.TgZ(13,"option",50),e._uU(14,"Choose a division..."),e.qZA(),e.YNc(15,De,2,2,"option",51),e.qZA()()()}if(2&i){const t=e.oxw(4);e.xp6(15),e.Q6J("ngForOf",t.availableDivisions)}}function Re(i,a){if(1&i&&(e.TgZ(0,"option",53),e._uU(1),e.qZA()),2&i){const t=a.$implicit;e.Q6J("ngValue",t),e.xp6(1),e.AsE("",t.division?t.division.name+" - ":"","",t.name,"")}}function Ye(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"div",131)(2,"mat-icon"),e._uU(3,"info_outline"),e.qZA(),e.TgZ(4,"span"),e._uU(5,"This grants access to the season and "),e.TgZ(6,"strong"),e._uU(7,"all"),e.qZA(),e._uU(8," tournaments under it."),e.qZA()(),e.TgZ(9,"div",132)(10,"label",133),e._uU(11,"Select a Season"),e.qZA(),e.TgZ(12,"select",136),e.NdJ("change",function(o){e.CHM(t);const r=e.oxw(4);return e.KtG(r.setRoleRecordAndType(r.availableSeasons[o.target.selectedIndex-1],"Season"))}),e.TgZ(13,"option",50),e._uU(14,"Choose a season..."),e.qZA(),e.YNc(15,Re,2,3,"option",51),e.qZA()()()}if(2&i){const t=e.oxw(4);e.xp6(15),e.Q6J("ngForOf",t.availableSeasons)}}function Qe(i,a){if(1&i&&(e.TgZ(0,"div",128)(1,"div",129),e.YNc(2,Je,16,1,"div",130),e.YNc(3,Ee,16,1,"div",130),e.YNc(4,Ye,16,1,"div",130),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngSwitch",t.newAccessLevel.moduleType),e.xp6(1),e.Q6J("ngSwitchCase","tour"),e.xp6(1),e.Q6J("ngSwitchCase","division"),e.xp6(1),e.Q6J("ngSwitchCase","season")}}function Ge(i,a){if(1&i&&(e.TgZ(0,"option",93),e._uU(1),e.qZA()),2&i){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function je(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"label",140)(1,"input",97),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(4);return e.KtG(r.newAccessLevel.receivesPaymentEmails=o)}),e.qZA(),e._uU(2," Email them a receipt for every payment on this scope (entry fees, tour and season memberships) "),e.qZA()}if(2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngModel",!!t.newAccessLevel.receivesPaymentEmails)("ngModelOptions",e.DdM(2,P))}}function Ke(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",137)(1,"label",133),e._uU(2,"Role at this scope"),e.qZA(),e.TgZ(3,"select",138),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(3);return e.KtG(r.newAccessLevel.role=o)}),e.YNc(4,Ge,2,2,"option",86),e.qZA(),e.YNc(5,je,3,3,"label",139),e.qZA()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngModel",t.newAccessLevel.role||t.currentStaffMember.role)("ngModelOptions",e.DdM(4,P)),e.xp6(1),e.Q6J("ngForOf",t.roleOptionsFor(t.newAccessLevel)),e.xp6(1),e.Q6J("ngIf","Accountant"!==(t.newAccessLevel.role||t.currentStaffMember.role))}}function Be(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",111)(1,"p",112),e._uU(2,"Choose what level of access to grant. Higher levels include everything below them."),e.qZA(),e.TgZ(3,"div",113)(4,"div",114),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.newAccessLevel.moduleType="tour")}),e.TgZ(5,"div",115)(6,"span",15),e._uU(7,"public"),e.qZA()(),e.TgZ(8,"div",116)(9,"span",117),e._uU(10,"Tour"),e.qZA(),e.TgZ(11,"span",118),e._uU(12,"Full access to tour + all divisions, seasons & tournaments"),e.qZA()(),e.YNc(13,qe,2,0,"span",119),e.qZA(),e.TgZ(14,"div",114),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.newAccessLevel.moduleType="division")}),e.TgZ(15,"div",120)(16,"span",15),e._uU(17,"account_tree"),e.qZA()(),e.TgZ(18,"div",116)(19,"span",117),e._uU(20,"Division"),e.qZA(),e.TgZ(21,"span",118),e._uU(22,"Access to a division + all its seasons & tournaments"),e.qZA()(),e.YNc(23,Ne,2,0,"span",119),e.qZA(),e.TgZ(24,"div",114),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.newAccessLevel.moduleType="season")}),e.TgZ(25,"div",121)(26,"span",15),e._uU(27,"event_note"),e.qZA()(),e.TgZ(28,"div",116)(29,"span",117),e._uU(30,"Season"),e.qZA(),e.TgZ(31,"span",118),e._uU(32,"Access to a season + all its tournaments"),e.qZA()(),e.YNc(33,Le,2,0,"span",119),e.qZA()(),e.YNc(34,Qe,5,4,"div",122),e.YNc(35,Ke,6,5,"div",123),e.TgZ(36,"div",124)(37,"button",125),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.saveRole())}),e._uU(38,"Save Role"),e.qZA(),e.TgZ(39,"button",126),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.cancelNewRole())}),e._uU(40,"Cancel"),e.qZA()()()}if(2&i){const t=e.oxw(2);e.ekj("add-role-flow--matrix","matrix"===t.chrome),e.xp6(4),e.ekj("selected","tour"===t.newAccessLevel.moduleType),e.xp6(9),e.Q6J("ngIf","tour"===t.newAccessLevel.moduleType),e.xp6(1),e.ekj("selected","division"===t.newAccessLevel.moduleType),e.xp6(9),e.Q6J("ngIf","division"===t.newAccessLevel.moduleType),e.xp6(1),e.ekj("selected","season"===t.newAccessLevel.moduleType),e.xp6(9),e.Q6J("ngIf","season"===t.newAccessLevel.moduleType),e.xp6(1),e.Q6J("ngIf",t.newAccessLevel.moduleType),e.xp6(1),e.Q6J("ngIf",t.newAccessLevel.recordId),e.xp6(2),e.Q6J("disabled",!t.newAccessLevel.moduleType||!t.newAccessLevel.recordId)}}function He(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save())}),e.YNc(2,xe,62,15,"ng-container",4),e.YNc(3,Ae,13,5,"ng-container",4),e.YNc(4,Fe,25,7,"ng-template",null,5,e.W1O),e.YNc(6,Be,41,14,"
1ng-template",null,6,e.W1O),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.ekj("staff-form--matrix","matrix"===t.chrome),e.xp6(1),e.Q6J("ngIf","steps"===t.chrome),e.xp6(1),e.Q6J("ngIf","matrix"===t.chrome)}}function $e(i,a){1&i&&(e.TgZ(0,"div",141)(1,"span",15),e._uU(2,"person_off"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"No staff member found."),e.qZA()())}let k=(()=>{class i{constructor(t,n,o,r,s,l,v,u){this._authService=t,this._sharedUtilsService=n,this._staffMembersService=o,this._tourService=r,this._userService=s,this._networkService=l,this._seasonService=v,this._divisionService=u,this.ngUnsubscribe=new S.x,this.chrome="steps",this.newItemCreated=new e.vpe,this.addCancelled=new e.vpe,this.itemDeleted=new e.vpe,this.dirtyStateChanged=new e.vpe,this.staffChanged=new e.vpe,this.pickerRoles=[{key:"Assistant Director",icon:"supervisor_account",desc:"Runs your events. No financial screens, no payment emails."},{key:"Accountant",icon:"account_balance",desc:"Runs your events too, plus the financial screens and a receipt for every payment."}],this.scopeChoices=[{key:"tour",icon:"shield",label:"Tour",desc:"Everything under a tour"},{key:"division",icon:"account_tree",label:"Division",desc:"A division and its seasons"},{key:"season",icon:"event_note",label:"Season",desc:"A season and its tournaments"}],this.accessTruth="Every staff role runs the events under the scopes you grant. An Accountant also gets the financial screens, and a receipt for every payment on that scope.",this.baselineRole=null,this.baselineScopeKeys=[],this.baselineAccessLevels=[],this.newInvite=null,this.errorMessage="",this.isLoaded=!1,this.tours=null,this.availableDivisions=null,this.availableSeasons=null,this.currentStaffMember=null,this.newAccessLevel=null,this.addingRole=!1,this.staffDataSource=null,this.accessLevelColumns=["recordName","moduleType","delete"],this.rolesUpdated=!1,this.saving=!1,this.receiptsTruth="Every role runs the events under its scope. Accountant adds the financial screens and always receives payment receipts; the toggle switches receipts on for any other role. The director is always copied.",this.trackAccessLevel=(m,c)=>this.scopeKey(c)||m,this.roleOptionsCache=new Map,this.staffDataSource=new ce.by}ngOnInit(){this.init()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}init(){var t=this;return(0,d.Z)(function*(){if(!t._networkService.isOnLine(!0))return console.log("You cannot assign staff members offline."),void(t.isLoaded=!0);t.staffMemberPassedIn&&(t.currentStaffMember=t.staffMemberPassedIn),t.resetInvite(),t.currentUser=t._authService.getCurrentlyLoggedInUser(),yield t.initStaffMember(),yield t.getDirectorsTours(),t.getDivisions(),t.getSeasons(),t.isLoaded=!0})()}setStaffTableData(t){this.staffDataSource.data=t}resetInvite(){this.newAccessLevel=new C.Ud,this.newAccessLevel.personToCharge="parent",this.newInvite=new C.n5,this.newInvite.tours=[],this.newInvite.seasons=[],this.newInvite.divisions=[]}confirmRemoveRole(t,n){var o=this;return(0,d.Z)(function*(){console.log("Access level removal request for index: ",n),console.log("Confirm removal of the following access level: ",t);const r={title:"Confirm Deletion",textToDisplay:"Are you sure you want to delete the following:",items:[{_id:t._id,name:t.recordName}],buttonsInfo:{confirmText:"Delete",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}};!0===(yield o._sharedUtilsService.confirmationDialogPromise(r))&&(o.currentStaffMember.accessLevels.splice(n,1),o.rolesUpdated=!0,yield o.removeUserFromDirectors(t),o.setStaffTableData(o.currentStaffMember.accessLevels),o.emitDirtyState())})()}setRoleRecordAndType(t,n){var o=this;return(0,d.Z)(function*(){o.newAccessLevel.recordId=t._id;let r=t.name;if("Division"===n){let s="";t?.tour?.name&&(s=t.tour.name),s+=` - ${t?.name}`,r=s}else if("Season"===n){let s="";t?.tour?.name&&(s=t.tour.name),t.division?.name&&(s+=` - ${t.division?.name}`),s+=` - ${t?.name}`,r=s}o.newAccessLevel.recordName=r})()}initStaffMember(){var t=this;return(0,d.Z)(function*(){return new Promise(function(){var n=(0,d.Z)(function*(o){if(t.uneditedStaffMember={...t.currentStaffMember},!t.currentStaffMember&&"create"!==t.formMode&&(t.currentStaffMember=t._staffMembersService.getCurrentBeingViewed()),t.currentStaffMember?._id)t.currentStaffMember.user&&t.currentStaffMember.user._id&&(t.newInvite.email=t.currentStaffMember.user.email,t.newInvite.first_name=t.currentStaffMember.user.first_name,t.newInvite.last_name=t.currentStaffMember.user.last_name);else{const r=new C.e6,s=new C.Ud;t.newAccessLevel=s,r.accessLevels=[],r.role="Assistant Director",r.parentDirector="Director"===t.currentUser?.userType?t.currentUser?.isAssistant?t.currentUser?.director:t.currentUser?._id:null,t.currentStaffMember=r,t.addingRole=!0}t.setStaffTableData(t.currentStaffMember.accessLevels),t.uneditedStaffMember={...t.currentStaffMember},t.captureBaseline(),o(null)});return function(o){return n.apply(this,arguments)}}())})()}scopeKey(t){return`${t?.moduleType||""}:${t?.recordId||""}:${(this.roleForScope(t)||"").trim().toLowerCase()}`}levelId(t){return t?._id?String(t._id):""}captureBaseline(){this.baselineRole=this.currentStaffMember?.role||null,this.baselineAccessLevels=(this.currentStaffMember?.accessLevels||[]).map(t=>({...t})),this.baselineScopeKeys=this.baselineAccessLevels.map(t=>this.scopeKey(t)),this.rolesUpdated=!1,this.emitDirtyState()}get roleDirty(){return(this.currentStaffMember?.role||null)!==this.baselineRole}get currentScopes(){return(this.currentStaffMember?.accessLevels||[]).filter(t=>t?.recordId)}get addedScopeCount(){return this.currentScopes.filter(t=>!this.levelId(t)).length}get removedScopeCount(){const t=this.currentScopes.map(n=>
1this.levelId(n)).filter(Boolean);return this.baselineAccessLevels.filter(n=>this.levelId(n)&&!t.includes(this.levelId(n))).length}get changedScopeRoleCount(){return this.currentScopes.filter(t=>{const n=this.levelId(t);if(!n)return!1;const o=this.baselineAccessLevels.find(r=>this.levelId(r)===n);return o&&(o.role||"").trim().toLowerCase()!==(t.role||"").trim().toLowerCase()}).length}get changedScopeFlagCount(){return this.currentScopes.filter(t=>{const n=this.levelId(t);if(!n)return!1;const o=this.baselineAccessLevels.find(r=>this.levelId(r)===n);return o&&!!o.receivesPaymentEmails!=!!t.receivesPaymentEmails}).length}get dirtyCount(){return(this.roleDirty?1:0)+this.addedScopeCount+this.removedScopeCount+this.changedScopeRoleCount+this.changedScopeFlagCount}get isDirty(){return this.dirtyCount>0}isUnsavedScope(t){return!this.levelId(t)}emitDirtyState(){this.dirtyStateChanged.next({dirty:this.isDirty,count:this.dirtyCount})}discardChanges(){var t=this;return(0,d.Z)(function*(){if(t.saving)return;const n=(t.currentStaffMember?.accessLevels||[]).map(r=>t.levelId(r)).filter(Boolean),o=t.baselineAccessLevels.filter(r=>t.levelId(r)&&!n.includes(t.levelId(r)));if(t.currentStaffMember.role=t.baselineRole,t.currentStaffMember.accessLevels=t.baselineAccessLevels.map(r=>({...r})),t.setStaffTableData(t.currentStaffMember.accessLevels),t.cancelNewRole(),t.rolesUpdated=!1,t.emitDirtyState(),o.length){if(!t._networkService.isOnLine(!0))return void t._sharedUtilsService.showErrorDialog("Your changes were discarded on screen, but restoring the removed access needs a connection. Reload this page once you are back online.");t.saving=!0;try{for(const r of o)yield t.addUserToDirectorsFor(r)}catch(r){console.error("Failed to restore access on discard: ",r),t._sharedUtilsService.showErrorDialog("Could not fully restore the removed access. Please reload and check the scopes.")}finally{t.saving=!1}}})()}setRole(t){this.currentStaffMember.role=this.currentStaffMember.role===t?null:t,this.rolesUpdated=!0,this.emitDirtyState()}get scopeOptions(){switch(this.newAccessLevel?.moduleType){case"tour":return this.tours||[];case"division":return this.availableDivisions||[];case"season":return this.availableSeasons||[];default:return[]}}pickScopeType(t){this.newAccessLevel.moduleType!==t&&(this.newAccessLevel.moduleType=t,this.newAccessLevel.recordId=null,this.newAccessLevel.recordName=null)}onScopeRecordPicked(t){const n=this.scopeOptions[t-1];if(!n)return;const o=this.newAccessLevel.moduleType;this.setRoleRecordAndType(n,o.charAt(0).toUpperCase()+o.slice(1))}article(t){return/^[aeiou]/i.test(t||"")?"An":"A"}get scopeGrantNote(){const t=this.currentStaffMember?.role,n=this.newAccessLevel?.moduleType;if(!t||!n)return"";const o=`${this.article(t)} ${t} on a ${n}`;return"Accountant"===t?`${o} can run everything under it, gets the financial screens, and is emailed a receipt for every payment taken on it: entry fees, tour memberships and season memberships.`:`${o} can run everything under it. The financial screens belong to Accountants, but the payment receipt emails can be switched on for any role below.`}get inviteeEmailNote(){const t=(this.newInvite?.first_name||"").trim();return t?`${t} gets one email \xb7 you can change any of this after they accept`:"They get one email \xb7 you can change any of this after they accept"}get isSelfInvite(){if(this.currentStaffMember?.user)return!1;const t=(this.newInvite?.email||"").trim().toLowerCase(),n=(this.currentUser?.email||"").trim().toLowerCase();return!!t&&!!n&&t===n}get canSendInvite(){return!this.saving&&!!this.newInvite?.first_name?.trim()&&!!this.newInvite?.email?.trim()&&this.newInvite.email.indexOf("@")>0&&!this.isSelfInvite&&!!this.currentStaffMember?.role&&!!this.newAccessLevel?.recordId}commitPendingScope(){if(!this.newAccessLevel?.recordId)return;this.newAccessLevel.role||(this.newAccessLevel.role=this.currentStaffMember.role||null);const t=this.scopeKey(this.newAccessLevel);(this.currentStaffMember.accessLevels||[]).some(o=>this.scopeKey(o)===t)||(this.currentStaffMember.accessLevels||(this.currentStaffMember.accessLevels=[]),this.currentStaffMember.accessLevels.push(this.newAccessLevel),this.setStaffTableData(this.currentStaffMember.accessLevels))}roleForScope(t){return t?.role||this.currentStaffMember?.role||""}isNotifyingRole(t){return"Accountant"===this.roleForScope(t)}receivesPaymentEmailsAt(t){return this.isNotifyingRole(t)||!0===t?.receivesPaymentEmails}setPaymentEmails(t,n){t&&(t.receivesPaymentEmails=!!n,this.rolesUpdated=!0,this.emitDirtyState())}get scopeSummary(){const t=(this.currentStaffMember?.accessLevels||[]).filter(r=>r?.recordId);if(!t.length)return"";const n=new Set(t.map(r=>
1this.roleForScope(r)).filter(Boolean)),o=t.filter(r=>this.receivesPaymentEmailsAt(r)).length;return`${t.length} scope${1===t.length?"":"s"} \xb7 ${n.size} role${1===n.size?"":"s"} \xb7 receipts on ${o} of ${t.length}`}moduleClass(t){return"mx-chip--"+(t||"default").toLowerCase()}moduleIcon(t){switch((t||"").toLowerCase()){case"tour":return"shield";case"division":return"lan";case"season":return"event_note";case"school":return"school";default:return"key"}}getDirectorsTours(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){const r=new C.Oj;r.director=t.currentUser._id,t.tours=yield(0,_.lastValueFrom)(t._tourService.search(r)),o(null)});return function(o){return n.apply(this,arguments)}}())}saveRole(){this.newAccessLevel.role||(this.newAccessLevel.role=this.currentStaffMember.role||null);const t=this.scopeKey(this.newAccessLevel);(this.currentStaffMember.accessLevels||[]).some(o=>this.scopeKey(o)===t)?this._sharedUtilsService.showErrorDialog(`${this.newAccessLevel.recordName} is already granted with the ${this.newAccessLevel.role||"default"} role. Pick a different role to add a second one on the same record.`):(this.currentStaffMember.accessLevels.push(this.newAccessLevel),this.pinImplicitRolesFor(this.newAccessLevel.recordId),this.setStaffTableData(this.currentStaffMember.accessLevels),this.cancelNewRole(),this.rolesUpdated=!0,this.emitDirtyState())}pinImplicitRolesFor(t){const n=(this.currentStaffMember.accessLevels||[]).filter(o=>String(o.recordId)===String(t));n.length<2||n.forEach(o=>{o.role||(o.role=this.currentStaffMember.role||null)})}roleOptionsFor(t){const n=this.roleForScope(t)||"",o=n.trim().toLowerCase();let r=this.roleOptionsCache.get(o);if(r)return r;const s=this.pickerRoles.map(l=>l.key);return n&&!s.some(l=>l.toLowerCase()===o)&&s.push(n),this.roleOptionsCache.set(o,s),s}setScopeRole(t,n){if(!t)return;const o={...t,role:n};(this.currentStaffMember.accessLevels||[]).some(s=>s!==t&&this.scopeKey(s)===this.scopeKey(o))?this._sharedUtilsService.showErrorDialog(`${t.recordName} already has a ${n} row. Two rows on one record must hold different roles.`):(t.role=n,this.rolesUpdated=!0,this.emitDirtyState())}cancelNewRole(){this.newAccessLevel=new C.Ud,this.addingRole=!1}getDivisions(){var t=this;return(0,d.Z)(function*(){const n=new C.dJ;"Director"===t.currentUser.userType&&(n.directors=t.currentUser._id),t.availableDivisions=(yield(0,_.lastValueFrom)(t._divisionService.search(n))).sort((o,r)=>(o.name||"").localeCompare(r.name||""))})()}getSeasons(){var t=this;return(0,d.Z)(function*(){const n=new C.y_;"Director"===t.currentUser.userType&&(n.directors=t.currentUser._id),t.availableSeasons=(yield(0,_.lastValueFrom)(t._seasonService.search(n))).sort((o,r)=>(o.name||"").localeCompare(r.name||""))})()}save(){var t=this;return(0,d.Z)(function*(){if(t.saving)return;if("steps"===t.chrome&&t.commitPendingScope(),!t.currentStaffMember?.user&&(!t.newInvite?.first_name||!t.newInvite?.email||t.newInvite.email.length<4))return void t._sharedUtilsService.showErrorDialog("A first name and a valid email address are required to invite a staff member.");if(t.isSelfInvite)return void t._sharedUtilsService.showErrorDialog("That is your own email address. You already have full access to everything you would be granting, so there is no staff record to create.");t.saving=!0;const n=!!t.currentStaffMember._id;let o=null;const r=[],s=[],l=[];for(let u=0;u<t.currentStaffMember.accessLevels.length;u++){const m=t.currentStaffMember.accessLevels[u];if("tour"===m.moduleType.toLowerCase())r.push(m.recordId);else if("division"===m.moduleType.toLowerCase()){s.push(m.recordId);const c=t.availableDivisions.find(h=>h._id==m.recordId);c?.tour&&r.push(c.tour?._id?c.tour._id:c.tour)}else if("season"===m.moduleType.toLowerCase()){l.push(m.recordId);const c=t.availableSeasons.find(h=>h._id==m.recordId);c?.division&&s.push(c.division?._id?c.division._id:c.division),c?.tour&&r.push(c.tour?._id?c.tour._id:c.tour)}}let v=t.currentStaffMember.user;if(v)yield t.updateUserWithAccess(v,r,s,l);else{const u=new C.n5;u.email=t.newInvite.email;const m=yield(0,_.lastValueFrom)(t._userService.search(u));if(console.log("Check for existing user with this email returned: ",m),m?.length){console.log("Existing user found with this email. Adding season or tour indicated...");const c=m[0];yield t.updateUserWithAccess(c,r,s,l),v=c,t.currentStaffMember.status="active"}else{const c=new C.n5;c.active=!0,c.userType="Director",c.isAssistant=!0,c.email=t.newInvite.email,c.first_name=t.newInvite.first_name,c.last_name=t.newInvite.last_name,c.tours=r,c.divisions=s,c.seasons=l,c.skipActivation=!0,console.log("Creating new user: ",c),v=yield(0,_.lastValueFrom)(t._userService.createTempUserAccount(c)),t.currentStaffMember.status="active"}t.currentStaffMember.user=v}o=t.currentStaffMember._id?yield(0,_.lastValueFrom)(t._staffMembersService.update(t.currentStaffMember)):yield(0,_.lastValueFrom)(t._staffMembersService.create(t.currentStaffMember)),yield t.addUserToDirectors(),n||(yield t.sendInviteEmail()),t._sharedUtilsService.showNotification(n?"Staff member updated successfully.":"Invite successfully sent."),t.currentStaffMember=o,t._staffMembersService.setCurrentBeingViewed(t.currentStaffMember),t.setStaffTableData(t.currentStaffMember.accessLevels),t.saving=!1,t.captureBaseline(),"matrix"===t.chrome&&n?t.staffChanged.next(o):t.newItemCreated.next(o)})()}revokeInvite(){var t=this;return(0,d.Z)(function*(){if(!t.saving)if(t._networkService.isOnLine(!0)){if(!0===(yield t._sharedUtilsService.confirmationDialogPromise({title:"Revoke Invite",textToDisplay:"Revoke the outstanding invite for:",items:[{name:t.currentStaffMember?.user?.email||"this staff member"}],buttonsInfo:{confirmText:"Revoke",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}}))){t.saving=!0;try{yield t.removeForAllAccessLevels(),t.currentStaffMember.status="revoked";const o=yield(0,_.lastValueFrom)(t._staffMembersService.update(t.currentStaffMember));t.currentStaffMember=o,t._staffMembersService.setCurrentBeingViewed(t.currentStaffMember),t.setStaffTableData(t.currentStaffMember.accessLevels),t.captureBaseline(),t._sharedUtilsService.showNotification("Invite revoked."),t.staffChanged.next(t.currentStaffMember)}catch(o){console.error("Failed to revoke invite: ",o),t._sharedUtilsService.showErrorDialog((0,O.l)(o,"Could not revoke the invite. Please try again."))}finally{t.saving=!1}}}else t._sharedUtilsService.showErrorDialog("You must be online to revoke an invite.")})()}updateUserWithAccess(t,n,o,r){var s=this;return new Promise(function(){var l=(0,d.Z)(function*(v){const u=yield(0,_.lastValueFrom)(s._userService.getUser(t._id));u.isAssistant=!0,"Director"!==u.userType&&(u.userType="Director");const m=u.tours.map(f=>f&&f._id?f._id:f),c=u.divisions.map(f=>f&&f._id?f._id:f),h=u.seasons.map(f=>f&&f._id?f._id:f);for(let f=0;f<n.length;f++){const w=n[f];m.includes(w)||m.push(w)}for(let f=0;f<o.length;f++){const w=o[f];c.includes(w)||c.push(w)}for(let f=0;f<r.length;f++){const w=r[f];h.includes(w)||h.push(w)}u.tours=m,u.divisions=c,u.seasons=h,yield(0,_.lastValueFrom)(s._userService.updateUser(u)),v(null)});return function(v){return l.apply(this,arguments)}}())}addUserToDirectors(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){if(t.currentStaffMember.user){if(!(t.currentStaffMember.user?._id?t.currentStaffMember.user?._id:t.currentStaffMember.user))return console.error("Cannot add user to directors - user ID is null/undefined."),t._sharedUtilsService.showErrorDialog("C
1ould not determine the user ID. Please try again."),void o(null);for(let s=0;s<t.currentStaffMember.accessLevels.length;s++)yield t.addUserToDirectorsFor(t.currentStaffMember.accessLevels[s])}else t._sharedUtilsService.showErrorDialog("No user found on this staff member. Cannot add user to directors on these.");o(null)});return function(o){return n.apply(this,arguments)}}())}addUserToDirectorsFor(t){var n=this;return(0,d.Z)(function*(){if(!n.currentStaffMember?.user)return;const o=n.currentStaffMember.user?._id?n.currentStaffMember.user._id:n.currentStaffMember.user;if(!o)return;const r=t.recordId;"tour"===t.moduleType.toLowerCase()?yield(0,_.lastValueFrom)(n._tourService.addUserToDirectorsForTour({_id:r,userToAddAsDirector:o})):"division"===t.moduleType.toLowerCase()?yield(0,_.lastValueFrom)(n._divisionService.addUserToDirectorsForDivision({_id:r,userToAddAsDirector:o})):"season"===t.moduleType.toLowerCase()&&(yield(0,_.lastValueFrom)(n._seasonService.addUserToDirectorsForSeason({_id:r,userToAddAsDirector:o})))})()}removeUserFromDirectors(t){var n=this;return new Promise(function(){var o=(0,d.Z)(function*(r){if(n.currentStaffMember.user){const s=n.currentStaffMember.user?._id?n.currentStaffMember.user?._id:n.currentStaffMember.user,l=t.recordId;"tour"===t.moduleType.toLowerCase()?yield(0,_.lastValueFrom)(n._tourService.removeUserFromDirectorsForTour({_id:l,userToAddAsDirector:s})):"division"===t.moduleType.toLowerCase()?yield(0,_.lastValueFrom)(n._divisionService.removeUserFromDirectorsForDivision({_id:l,userToAddAsDirector:s})):"season"===t.moduleType.toLowerCase()&&(yield(0,_.lastValueFrom)(n._seasonService.removeUserFromDirectorsForSeason({_id:l,userToAddAsDirector:s})))}else n._sharedUtilsService.showErrorDialog("No user found on this staff member. Cannot remove this user from directors on these.");r(null)});return function(r){return o.apply(this,arguments)}}())}resendInvite(){var t=this;return(0,d.Z)(function*(){if(!t.saving)if(t.newInvite?.email){if(!0===(yield t._sharedUtilsService.confirmationDialogPromise({title:"Resend Invite",textToDisplay:"Resend the invite email to:",items:[{name:t.newInvite.email}],buttonsInfo:{confirmText:"Resend",confirmBtnColor:"primary",denyText:"Cancel",denyBtnColor:""}}))){t.saving=!0;try{if("revoked"===(t.currentStaffMember?.status||"").toLowerCase()){yield t.addUserToDirectors(),t.currentStaffMember.status="pending";const o=yield(0,_.lastValueFrom)(t._staffMembersService.update(t.currentStaffMember));t.currentStaffMember=o,t._staffMembersService.setCurrentBeingViewed(t.currentStaffMember),t.setStaffTableData(t.currentStaffMember.accessLevels),t.captureBaseline(),t.staffChanged.next(t.currentStaffMember)}yield t.sendInviteEmail(),t._sharedUtilsService.showNotification("Invite re-sent to "+t.newInvite.email)}catch(o){console.error("Failed to resend invite: ",o),t._sharedUtilsService.showErrorDialog("Could not resend the invite. Please try again.")}finally{t.saving=!1}}}else t._sharedUtilsService.showErrorDialog("No email on file for this staff member. Cannot resend the invite.")})()}sendInviteEmail(){var t=this;return(0,d.Z)(function*(){yield t._staffMembersService.sendInviteEmail({email:t.newInvite.email,first_name:t.newInvite.first_name})})()}requestDelete(){var t=this;return(0,d.Z)(function*(){const n={title:"Confirm Deletion",textToDisplay:"Are you sure you want to delete this staff member?",items:[{_id:t.currentStaffMember._id,name:t.currentStaffMember?.user?.first_name}],buttonsInfo:{confirmText:"Delete",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}};!0===(yield t._sharedUtilsService.confirmationDialogPromise(n))&&(yield t.removeForAllAccessLevels(),yield(0,_.lastValueFrom)(t._staffMembersService.delete(t.currentStaffMember._id)),t.itemDeleted.next(null))})()}removeForAllAccessLevels(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){const r=t.currentStaffMember.accessLevels.slice(0);for(let s=0;s<r.length;s++)yield t.removeUserFromDirectors(r[s]);o(null)});return function(o){return n.apply(this,arguments)}}())}cancel(){this.addCancelled.next(null)}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(x.e8),e.Y36(x.n3),e.Y36(x.Py),e.Y36(x.QL),e.Y36(x.KD),e.Y36(x.SL),e.Y36(x.tq),e.Y36(x.E))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["staff-form"]],inputs:{formMode:"formMode",staffMemberPassedIn:"staffMemberPassedIn",chrome:"chrome"},outputs:{newItemCreated:"newItemCreated",addCancelled:"addCancelled",itemDeleted:"itemDeleted",dirtyStateChanged:"dirtyStateChanged",staffChanged:"staffChanged"},decls:3,vars:2,consts:[["class","outer-form-wrap",4,"ngIf","ngIfElse"],["noStaffMemberTemplate",""],[1,"outer-form-wrap"],["novalidate","",1,"full-width","staff-form",3,"ngSubmit"],[4,"ngIf"],["inviteFields",""],["addingRoleTemplate",""],[1,"st-step"],["aria-hidden","true",1,"st-num"],[1,"st-body"],[1,"st-q"],[1,"st-fields"],[1,"st-field"],[1,"st-field__label"],[1,"st-field__control"],[1,"material-symbols-outlined"],["type","text","name","first-name","placeholder","First name",3,"ngModel","ngModelChange"],["type","text","name","last-name","placeholder","Last name",3,"ngModel","ngModelChange"],["type","email","email","","required","","name","invite-email","placeholder","[email protected]",3,"ngModel","ngModelChange"],["inviteEmail","ngModel"],["class","st-field__error",4,"ngIf"],["role","radiogroup","aria-label","Staff role",1,"st-roles"],["type","button","class","st-role","role","radio",3,"is-selected","click",4,"ngFor","ngForOf"],[1,"st-sub"],[1,"st-tiles"],["type","button","class","st-tile",3,"is-selected","click",4,"ngFor","ngForOf"],["class","st-picker",4,"ngIf"],["class","st-note",4,"ngIf"],[1,"st-foot"],[1,"st-foot__note"],[1,"st-foot__actions"],["type","button",1,"st-btn","st-btn--ghost",3,"disabled","click"],["type","submit",1,"st-btn","st-btn--send",3,"disabled"],[1,"st-field__error"],["type","button","role","radio",1,"st-role",3,"click"],["aria-hidden","true",1,"st-radio"],[1,"material-symbols-outlined","st-role__icon"],[1,"st-role__text"],[1,"st-role__name"],[1,"st-role__desc"],["type","button",1,"st-tile",3,"click"],[1,"st-tile__icon",3,"ngClass"],[1,"st-tile__text"],[1,"st-tile__name"],[1,"st-tile__desc"],["class","material-symbols-outlined st-tile__check",4,"ngIf"],[1,"material-symbols-outlined","st-tile__check"],[1,"st-picker"],[1,"st-picker__label"],["name","scopeRecordPicker",1,"st-select",3,"change"],["value","","disabled","","selected",""],[3,"ngValue",4,"ngFor","ngForOf"],["class","st-picker__hint",4,"ngIf"],[3,"ngValue"],[1,"st-picker__hint"],[1,"st-note"],["class","mx-invite-fields",4,"ngIf"],[1,"mx-role-row"],[1,"mx-role-row__text"],[1,"mx-label"],[1,"mx-sub"],[1,"mx-sub","mx-sub--truth"],["role","group","aria-label","Staff role",1,"mx-segmented"],["type","button","class","mx-seg",3,"is-active","click",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"mx-invite-fields"],[4,"ngTemplateOutlet"],["type","button",1,"mx-seg",3,"click"],[1,"mx-head","mx-grid"],[1,"mx-cap","mx-cap--role"],[1,"mx-cap","mx-cap--receipts"],["class","mx-row mx-grid",3,"is-unsaved",4,"ngFor","ngForOf","ngForTrackBy"],["class","mx-empty",4,"ngIf"],["class","mx-info",4,"ngIf"],[1,"mx-foot"],["type","button",1,"mx-add",3,"click"],[1,"mx-foot__note"],[1,"mx-row","mx-grid"],[1,"mx-scope"],["aria-hidden","true",1,"mx-chip",3,"ngClass","title"],[1,"mx-scope__text"],[1,"mx-scope__name"],["class","mx-scope__meta is-new",4,"ngIf"],["class","mx-scope__meta",4,"ngIf"],[1,"mx-cell","mx-cell--role"],[1,"mx-role-select",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mx-cell","mx-cell--receipts"],["class","mx-always",4,"ngIf"],["class","mx-toggle",4,"ngIf"],["type","button","matTooltip","Remove this scope",1,"mx-remove",3,"click"],[1,"mx-scope__meta","is-new"],[1,"mx-scope__meta"],[3,"value"],[1,"mx-always"],["aria-hidden","true",1,"material-symbols-outlined"],[1,"mx-toggle"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange"],["aria-hidden","true",1,"mx-toggle__track"],[1,"mx-empty"],[1,"mx-info"],[1,"invite-fields"],[1,"input-col"],[1,"input-label"],[1,"input-group"],[1,"material-symbols-outlined","input-icon"],["type","text","placeholder","First Name","name","first-name",1,"staff-input",3,"ngModel","ngModelChange"],["type","text","placeholder","Last Name","name","last-name",1,"staff-input",3,"ngModel","ngModelChange"],["type","email","email","","required","","placeholder","Email Address","name","invite-email",1,"staff-input",3,"ngModel","ngModelChange"],["class","input-error",4,"ngIf"],[1,"input-error"],[1,"add-role-flow"],[1,"flow-instructions"],[1,"pick-cards"],[1,"pick-card",3,"click"],[1,"pick-card-icon","icon-blue"],[1,"pick-card-info"],[1,"pick-card-name"],[1,"pick-card-meta"],["class","material-symbols-outlined pick-card-check",4,"ngIf"],[1,"pick-card-icon","icon-teal"],[1,"pick-card-icon","icon-orange"],["class","record-picker",4,"ngIf"],["class","select-wrapper flow-role",4,"ngIf"],[1,"flow-actions"],["type","button",1,"btn-primary",3,"disabled","click"],["type","button",1,"btn-secondary",3,"click"],[1,"material-symbols-outlined","pick-card-check"],[1,"record-picker"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"info-banner"],[1,"select-wrapper"],[1,"select-label"],["name","tourPicker",1,"staff-select",3,"change"],["name","divisionPicker",1,"staff-select",3,"change"],["name","seasonPicker",1,"staff-select",3,"change"],[1,"select-wrapper","flow-role"],[1,"staff-select",3,"ngModel","ngModelOptions","ngModelChange"],["class","mx-payflag",4,"ngIf"],[1,"mx-payflag"],[1,"empty-state"]],template:function(n,o){if(1&n&&(e.YNc(0,He,8,4,"div",0),e.YNc(1,$e,5,0,"ng-template",null,1,e.W1O)),2&n){const r=e.MAs(2);e.Q6J("ngIf",o.currentStaffMember)("ngIfElse",r)}},dependencies:[g.mk,g.sg,g.O5,g.tP,g.RF,g.n9,Z.Hw,A.gM,b._Y,b.YN,b.Kr,b.Fj,b.Wl,b.EJ,b.JJ,b.JL,b.Q7,b.on,b.On,b.F,g.rS],styles:[".invite-fields[_ngcontent-%COMP%]{display:flex;gap:16px;flex-wrap:wrap}.invite-fields[_ngcontent-%COMP%]   .input-col[_ngcontent-%COMP%]{flex:1;min-width:220px;display:flex;flex-direction:column;gap:6px}.invite-fields[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#6b7a8a;letter-spacing:.3px;padding-left:2px}.invite-fields[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;border:1px solid #e0e4e8;border-radius:8px;padding:0 14px;background:var(--wb-surface, #fff);transition:border-color .15s ease,box-shadow .15s ease}.invite-fields[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]:focus-within{border-color:#1091fd;box-shadow:0 0 0 3px #1091fd14}.invite-fields[_ngcontent-%COMP%]   .input-group--error[_ngcontent-%COMP%]{border-color:#e53935}.invite-fields[_ngcontent-%COMP%]   .input-group--error[_ngcontent-%COMP%]:focus-within{border-color:#e53935;box-shadow:0 0 0 3px #e5393514}.invite-fields[_ngcontent-%COMP%]   .input-group--error[_ngcontent-%COMP%]   .input-icon[_ngcontent-%COMP%]{color:#e53935}.invite-fields[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .input-icon[_ngcontent-%COMP%]{font-size:20px;color:#6b7a8a;transition:color .15s ease}.invite-fields[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .staff-input[_ngcontent-%COMP%]{flex:1;border:none;outline:none;padding:12px 0;font-size:.95rem;
1color:#1a1a2e;background:transparent}.invite-fields[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .staff-input[_ngcontent-%COMP%]::placeholder{color:#aab4be}.invite-fields[_ngcontent-%COMP%]   .input-error[_ngcontent-%COMP%]{font-size:12px;color:#e53935;padding-left:2px}.add-role-flow[_ngcontent-%COMP%]   .flow-instructions[_ngcontent-%COMP%]{font-size:.9rem;color:#6b7a8a;margin:0 0 16px}.pick-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.pick-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e0e4e8;border-radius:10px;cursor:pointer;transition:all .15s ease;background:var(--wb-surface, #fff)}.pick-card[_ngcontent-%COMP%]:hover{border-color:#1091fd;background:#fafcff;box-shadow:0 2px 8px #1091fd14}.pick-card.selected[_ngcontent-%COMP%]{border-color:#1091fd;background:rgba(16,145,253,.04);box-shadow:0 2px 8px #1091fd1a}.pick-card[_ngcontent-%COMP%]   .pick-card-icon[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.pick-card[_ngcontent-%COMP%]   .pick-card-icon[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.pick-card[_ngcontent-%COMP%]   .pick-card-icon.icon-blue[_ngcontent-%COMP%]{background:#e3f2fd}.pick-card[_ngcontent-%COMP%]   .pick-card-icon.icon-blue[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:#1565c0}.pick-card[_ngcontent-%COMP%]   .pick-card-icon.icon-teal[_ngcontent-%COMP%]{background:#e0f2f1}.pick-card[_ngcontent-%COMP%]   .pick-card-icon.icon-teal[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:#00796b}.pick-card[_ngcontent-%COMP%]   .pick-card-icon.icon-orange[_ngcontent-%COMP%]{background:#fff3e0}.pick-card[_ngcontent-%COMP%]   .pick-card-icon.icon-orange[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:#e65100}.pick-card[_ngcontent-%COMP%]   .pick-card-info[_ngcontent-%COMP%]{flex:1;min-width:0}.pick-card[_ngcontent-%COMP%]   .pick-card-name[_ngcontent-%COMP%]{display:block;font-size:.9rem;font-weight:600;color:#1a1a2e}.pick-card[_ngcontent-%COMP%]   .pick-card-meta[_ngcontent-%COMP%]{display:block;font-size:.78rem;color:#6b7a8a;margin-top:1px}.pick-card[_ngcontent-%COMP%]   .pick-card-check[_ngcontent-%COMP%]{font-size:22px;color:#1091fd;flex-shrink:0}.info-banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;background:#fff8e1;border:1px solid #ffe082;border-radius:8px;margin-bottom:16px;font-size:.85rem;color:#5d4037;line-height:1.4}.info-banner[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:#f9a825;flex-shrink:0;margin-top:1px}.record-picker[_ngcontent-%COMP%]{margin-bottom:8px}.select-wrapper[_ngcontent-%COMP%]   .select-label[_ngcontent-%COMP%]{display:block;font-size:.78rem;font-weight:600;color:#6b7a8a;text-transform:uppercase;letter-spacing:.4px;margin-bottom:6px}.select-wrapper[_ngcontent-%COMP%]   .staff-select[_ngcontent-%COMP%]{width:100%;padding:11px 14px;border:1px solid #e0e4e8;border-radius:8px;font-size:.92rem;color:#1a1a2e;background:var(--wb-surface, #fff);-webkit-appearance:none;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 14px center;cursor:pointer;transition:border-color .15s ease}.select-wrapper[_ngcontent-%COMP%]   .staff-select[_ngcontent-%COMP%]:focus{outline:none;border-color:#1091fd;box-shadow:0 0 0 3px #1091fd14}.flow-actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin-top:20px}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.btn-primary[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;background:#1091fd;color:var(--wb-surface, #fff);border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .15s ease}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#0282ec;box-shadow:0 2px 8px #1091fd33}.btn-primary[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.btn-secondary[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:10px 22px;background:var(--wb-surface, #fff);
1color:#1a1a2e;border:1px solid #e0e4e8;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .15s ease}.btn-secondary[_ngcontent-%COMP%]:hover{background:#f8f9fb;border-color:#ced5db}.btn-danger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:10px 22px;background:var(--wb-surface, #fff);color:#e53935;border:1px solid rgba(229,57,53,.3);border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .15s ease}.btn-danger[_ngcontent-%COMP%]:hover{background:rgba(229,57,53,.04);border-color:#e53935}.empty-state[_ngcontent-%COMP%]{text-align:center;padding:40px 20px;color:#6b7a8a}.empty-state[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:48px;opacity:.3;display:block;margin-bottom:8px}.empty-state[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:.9rem}@media (max-width: 600px){.invite-fields[_ngcontent-%COMP%]{flex-direction:column}.pick-card-meta[_ngcontent-%COMP%]{display:none}}.st-step[_ngcontent-%COMP%]{display:flex;gap:18px;padding:22px;border-bottom:1px solid var(--wb-canvas-sunk, #f1efe8)}.st-step[_ngcontent-%COMP%]:last-of-type{border-bottom:none}.st-num[_ngcontent-%COMP%]{width:26px;height:26px;flex:none;display:grid;place-items:center;border-radius:999px;background:var(--wb-ink, #14110F);color:var(--wb-surface, #fff);font-size:13px;font-weight:600}.st-body[_ngcontent-%COMP%]{flex:1;min-width:0}.st-q[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:var(--wb-text, #1a1a2e)}.st-sub[_ngcontent-%COMP%]{margin-top:4px;font-size:13px;color:var(--wb-text-3, #6b6862)}.st-fields[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:14px}.st-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;min-width:0}.st-field__label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:var(--wb-text-3, #6b7a8a)}.st-field__control[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border:1px solid var(--wb-border, #e0e4e8);border-radius:8px;background:var(--wb-surface, #fff);transition:border-color .15s ease,box-shadow .15s ease}.st-field__control[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px;color:var(--wb-text-3, #6b7a8a);flex:none}.st-field__control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;min-width:0;border:none;outline:none;background:none;font-family:inherit;font-size:14px;color:var(--wb-text, #1F2024)}.st-field__control[_ngcontent-%COMP%]:focus-within{border-color:var(--wb-brand-blue, #008afc);box-shadow:0 0 0 3px #008afc1f}.st-field__control[_ngcontent-%COMP%]:focus-within   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-brand-blue, #008afc)}.st-field__control.is-error[_ngcontent-%COMP%]{border-color:var(--wb-danger, #C2382F)}.st-field__control.is-error[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-danger, #C2382F)}.st-field__control.is-error[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 3px #c2382f1f}.st-field__error[_ngcontent-%COMP%]{font-size:12px;color:var(--wb-danger, #C2382F)}.st-roles[_ngcontent-%COMP%]{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}.st-role[_ngcontent-%COMP%]{flex:1;min-width:260px;display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid var(--wb-border, #e0e4e8);border-radius:10px;background:var(--wb-surface, #fff);font-family:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease;white-space:normal}.st-role[_ngcontent-%COMP%]:hover{border-color:var(--wb-brand-blue, #008afc)}.st-role.is-selected[_ngcontent-%COMP%]{border-color:var(--wb-brand-blue, #008afc);background:rgba(0,138,252,.06)}.st-role.is-selected[_ngcontent-%COMP%]   .st-radio[_ngcontent-%COMP%]{border-width:5px;border-color:var(--wb-brand-blue, #008afc)}.st-role.is-selected[_ngcontent-%COMP%]   .st-role__icon[_ngcontent-%COMP%]{color:var(--wb-brand-blue, #008afc)}.st-role.is-selected[_ngcontent-%COMP%]   .st-role__name[_ngcontent-%COMP%]{color:var(--wb-blue-700, #0059a8)}.st-radio[_ngcontent-%COMP%]{width:18px;height:18px;flex:none;border-radius:999px;border:1px solid #bdb7ac;background:var(--wb-surface, #fff);box-sizing:border-box;transition:border-width .12s ease,border-color .12s ease}.st-role__icon[_ngcontent-%COMP%]{font-size:24px;flex:none;color:var(--wb-text-3, #6b7a8a)}.st-role__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.st-role__name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--wb-text, #1a1a2e)}.st-role__desc[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.35;color:var(--wb-text-3, #6b7a8a)}.st-tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.st-tile[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--wb-border, #e0e4e8);border-radius:10px;background:var(--wb-surface, #fff);font-family:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease;white-space:normal}.st-tile[_ngcontent-%COMP%]:hover{border-color:var(--wb-border-strong, #b4b2a9)}.st-tile.is-selected[_ngcontent-%COMP%]{border-color:var(--wb-success, #059669);background:var(--wb-success-soft, #ecfdf5)}.st-tile.is-selected[_ngcontent-%COMP%]   .st-tile__name[_ngcontent-%COMP%]{color:#04724d}.st-tile.is-selected[_ngcontent-%COMP%]   .st-tile__desc[_ngcontent-%COMP%]{color:#0b7a58}.st-tile__icon[_ngcontent-%COMP%]{width:36px;height:36px;flex:none;border-radius:8px;display:grid;place-items:center}.st-tile__icon[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.st-tile__icon--tour[_ngcontent-%COMP%]{background:#ede9fe}.st-tile__icon--tour[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-tour-5, #6d28d9)}.st-tile__icon--division[_ngcontent-%COMP%]{background:#e8f4fd}.st-tile__icon--division[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-accent, #1565c0)}.st-tile__icon--season[_ngcontent-%COMP%]{background:#d7f5e6}.st-tile__icon--season[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-success, #059669)}.st-tile__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.st-tile__name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--wb-text, #1a1a2e)}.st-tile__desc[_ngcontent-%COMP%]{font-size:12px;line-height:1.35;color:var(--wb-text-3, #6b7a8a)}.st-tile__check[_ngcontent-%COMP%]{margin-left:auto;font-size:22px;color:var(--wb-success, #059669);flex:none}.st-picker[_ngcontent-%COMP%]{margin-top:14px;display:flex;flex-direction:column;gap:6px;max-width:520px}.st-picker__label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--wb-text-3, #6b7a8a)}.st-select[_ngcontent-%COMP%]{height:44px;padding:0 14px;border:1px solid var(--wb-border, #e0e4e8);border-radius:8px;background:var(--wb-surface, #fff);font-family:inherit;font-size:14px;color:var(--wb-text, #1F2024);cursor:pointer}.st-select[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--wb-brand-blue, #008afc);box-shadow:0 0 0 3px #008afc1f}.st-picker__hint[_ngcontent-%COMP%]{font-size:12px;color:var(--wb-text-3, #6b6862)}.st-note[_ngcontent-%COMP%]{margin-top:16px;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #E8C879;border-radius:8px;background:var(--wb-warning-soft, #FFF4DE);font-size:13px;color:var(--wb-text-2, #5d4037)}.st-note[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px;color:var(--wb-warning, #8A5A00);flex:none}.st-foot[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-top:1px solid var(--wb-tg-border-hairline, #eceef3);background:var(--wb-canvas, #faf8f5)}.st-foot__note[_ngcontent-%COMP%]{font-size:13px;color:var(--wb-text-3, #6b6862)}.st-foot__actions[_ngcontent-%COMP%]{display:flex;gap:10px;flex:none}.st-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 22px;border:1px solid transparent;border-radius:8px;font-family:inherit;font-size:14px;cursor:pointer;white-space:nowrap;transition:background .15s ease,border-color .15s ease}.st-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.st-btn--ghost[_ngcontent-%COMP%]{background:var(--wb-surface, #fff);border-color:var(--wb-border, #e0e4e8);color:var(--wb-text, #1a1a2e);font-weight:500}.st-btn--ghost[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk, #f1efe8)}.st-btn--send[_ngcontent-%COMP%]{background:var(--wb-green, #3B6D11);color:var(--wb-surface, #fff);font-weight:600}.st-btn--send[_ngcontent-%COMP%]:hover{background:#2f570d}.st-btn--send[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}.st-btn[_ngcontent-%COMP%]:disabled{cursor:default}@media (max-width: 900px){.st-fields[_ngcontent-%COMP%], .st-tiles[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}.st-roles[_ngcontent-%COMP%]{flex-direction:column}.st-role[_ngcontent-%COMP%]{min-width:0}}@media (max-width: 600px){.st-step[_ngcontent-%COMP%]{gap:12px;padding:18px 16px}.st-foot[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:12px}.st-foot__actions[_ngcontent-%COMP%]   .st-btn[_ngcontent-%COMP%]{flex:1;justify-content:center}}.staff-form--matrix[_ngcontent-%COMP%]{display:block}.mx-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--wb-text-3, #6b7a8a)}.mx-sub[_ngcontent-%COMP%]{margin-top:5px;font-size:13px;color:var(--wb-text-3, #6b6862)}.mx-sub--truth[_ngcontent-%COMP%]{margin-top:8px;padding-left:10px;border-left:2px solid var(--wb-border, #e5e3db);font-size:12.5px;color:var(--wb-text-2, #5F5E5A)}.mx-invite-fields[_ngcontent-%COMP%]{padding:18px 22px;border-bottom:1px solid var(--wb-canvas-sunk, #f1efe8)}.mx-role-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--wb-canvas-sunk, #f1efe8)}.mx-role-row__text[_ngcontent-%COMP%]{min-width:0}.mx-segmented[_ngcontent-%COMP%]{display:inline-flex;padding:3px;border-radius:10px;background:var(--wb-canvas-sunk, #f4f1ec);border:1px solid var(--wb-border, #e9e5de);flex:none}.mx-seg[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border:none;border-radius:8px;background:none;font-family:inherit;font-size:13px;font-weight:500;color:var(--wb-text-3, #6b6862);cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.mx-seg[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.mx-seg[_ngcontent-%COMP%]:hover{color:var(--wb-ink, #14110F)}.mx-seg.is-active[_ngcontent-%COMP%]{background:var(--wb-surface, #fff);box-shadow:0 1px 2px #14110f0f;font-weight:600;color:var(--wb-blue-700, #0059a8)}.mx-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 190px 170px 52px;align-items:center;padding:0 22px}.mx-head[_ngcontent-%COMP%]{min-height:40px;background:var(--wb-ink, #14110F)}.mx-head[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#ffffff8c}.mx-head[_ngcontent-%COMP%]   .mx-cap[_ngcontent-%COMP%]{text-align:center}.mx-head[_ngcontent-%COMP%]   .mx-cap--role[_ngcontent-%COMP%], .mx-head[_ngcontent-%COMP%]   .mx-cap--receipts[_ngcontent-%COMP%]{text-align:left}.mx-row[_ngcontent-%COMP%]{min-height:56px;border-bottom:1px solid var(--wb-canvas-sunk, #f1efe8)}.mx-row[_ngcontent-%COMP%]:nth-child(odd){background:var(--wb-canvas, #faf8f5)}.mx-row.is-unsaved[_ngcontent-%COMP%]{background:var(--wb-success-soft, #ecfdf5)}.mx-scope[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 0}.mx-chip[_ngcontent-%COMP%]{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;flex:none;background:var(--wb-neutral-soft, #f1f5f9);color:var(--wb-text-2, #475569)}.mx-chip[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.mx-chip--tour[_ngcontent-%COMP%]{background:#ede9fe;color:var(--wb-tour-5, #6d28d9)}.mx-chip--division[_ngcontent-%COMP%]{background:#e8f4fd;color:var(--wb-accent, #1565c0)}.mx-chip--season[_ngcontent-%COMP%]{background:var(--wb-success-soft, #ecfdf5);color:var(--wb-success, #059669)}.mx-chip--school[_ngcontent-%COMP%]{background:var(--wb-warning-soft, #fff3e0);color:#b45309}.mx-scope__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.mx-scope__name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--wb-text, #1a1a2e);overflow:hidden;text-overflow:ellipsis}.mx-scope__meta[_ngcontent-%COMP%]{font-size:12px;color:var(--wb-text-4, #94a3b8)}
1.mx-scope__meta.is-new[_ngcontent-%COMP%]{color:var(--wb-success, #059669)}.mx-cell[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.mx-cell--role[_ngcontent-%COMP%]{padding:10px 12px 10px 0}.mx-cell--receipts[_ngcontent-%COMP%]{padding:10px 0}.mx-always[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--wb-success, #059669)}.mx-always[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:17px}.mx-toggle[_ngcontent-%COMP%]{position:relative;display:inline-flex;cursor:pointer}.mx-toggle[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.mx-toggle[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:focus-visible + .mx-toggle__track[_ngcontent-%COMP%]{outline:2px solid var(--wb-brand-blue, #008afc);outline-offset:2px}.mx-toggle[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + .mx-toggle__track[_ngcontent-%COMP%]{background:var(--wb-green, #3B6D11)}.mx-toggle[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + .mx-toggle__track[_ngcontent-%COMP%]:after{transform:translate(16px)}.mx-toggle[_ngcontent-%COMP%]   .mx-toggle__track[_ngcontent-%COMP%]{display:block;width:38px;height:22px;border-radius:999px;background:var(--wb-border-strong, #cfcdc4);transition:background .15s ease;pointer-events:none}.mx-toggle[_ngcontent-%COMP%]   .mx-toggle__track[_ngcontent-%COMP%]:after{content:\"\";display:block;width:18px;height:18px;margin:2px;border-radius:50%;background:var(--wb-surface, #fff);box-shadow:0 1px 2px #14110f40;transition:transform .15s ease}.mx-payflag[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;color:var(--wb-text-3, #6b6862);cursor:pointer}.mx-payflag[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{flex:none;width:14px;height:14px;margin:1px 0 0;accent-color:var(--wb-green, #3B6D11);cursor:pointer}.flow-role[_ngcontent-%COMP%]   .mx-payflag[_ngcontent-%COMP%]{margin-top:10px}.mx-role-select[_ngcontent-%COMP%]{width:100%;height:32px;padding:0 8px;border:1px solid var(--wb-border, #e0e4e8);border-radius:7px;background:var(--wb-surface, #fff);font-family:inherit;font-size:12.5px;font-weight:500;color:var(--wb-text, #1F2024);cursor:pointer}.mx-role-select[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--wb-brand-blue, #008afc);box-shadow:0 0 0 3px #008afc1f}.mx-remove[_ngcontent-%COMP%]{display:grid;place-items:center;width:32px;height:32px;margin:0 auto;border:none;border-radius:8px;background:none;color:var(--wb-border-strong, #b9c2cc);cursor:pointer;transition:color .12s ease,background .12s ease}.mx-remove[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.mx-remove[_ngcontent-%COMP%]:hover{color:var(--wb-danger, #C2382F);background:var(--wb-danger-soft, #fdf3f2)}.mx-empty[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:24px 22px;border-bottom:1px solid var(--wb-canvas-sunk, #f1efe8);font-size:13px;color:var(--wb-text-4, #94a3b8)}.mx-empty[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px;color:var(--wb-border-strong, #b9c2cc)}.mx-info[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:12px 22px;border-bottom:1px solid var(--wb-canvas-sunk, #f1efe8);background:var(--wb-canvas, #faf8f5);font-size:12.5px;line-height:1.5;color:var(--wb-text-2, #5F5E5A)}.mx-info[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px;color:var(--wb-text-4, #a8a69e);flex:none}.mx-foot[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px}.mx-add[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px dashed var(--wb-brand-blue, #008afc);border-radius:8px;background:rgba(0,138,252,.04);font-family:inherit;font-size:13px;font-weight:600;color:var(--wb-brand-blue, #008afc);cursor:pointer}.mx-add[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.mx-add[_ngcontent-%COMP%]:hover{background:rgba(0,138,252,.1)}.mx-foot__note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--wb-text-4, #94a3b8);text-align:right}.add-role-flow--matrix[_ngcontent-%COMP%]{padding:18px 22px 22px}@media (max-width: 1100px){.mx-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) 160px 140px 44px;padding:0 16px}.mx-head[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:10px}}@media (max-width: 860px){.mx-head[_ngcontent-%COMP%]{display:none}.mx-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px}.mx-scope[_ngcontent-%COMP%]{flex:1 1 100%;padding:0}.mx-cell--role[_ngcontent-%COMP%]{flex:1 1 100%;order:-1}.mx-role-select[_ngcontent-%COMP%]{max-width:240px}.mx-cell--receipts[_ngcontent-%COMP%]{flex:1 1 auto;padding:0}.mx-remove[_ngcontent-%COMP%]{margin:0 0 0 auto}.mx-role-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}.mx-segmented[_ngcontent-%COMP%]{width:100%}.mx-seg[_ngcontent-%COMP%]{flex:1;justify-content:center}.mx-foot[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.mx-foot__note[_ngcontent-%COMP%]{text-align:left}}"]})}}return i})();function We(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",14)(1,"staff-form",15),e.NdJ("newItemCreated",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.newCreated(o))})("addCancelled",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.newCancelled(o))}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("formMode",t.formMode)("staffMemberPassedIn",t.currentStaffMember)}}function Xe(i,a){1&i&&(e.TgZ(0,"div",14),e._UZ(1,"section-loading-displayer",16),e.qZA()),2&i&&(e.xp6(1),e.Q6J("loadingLabel","Loading")("loadingText","Getting your tours and seasons ready..."))}let et=(()=>{class i{constructor(t,n,o,r){this._authService=t,this.location=n,this._staffMembersService=o,this.route=r,this.ngUnsubscribe=new S.x,this.currentUser=null,this.currentStaffMember=null,this.currentStaffMemberId=null,this.formMode="edit",this.initComplete=!1,this.route.params.pipe((0,F.R)(this.ngUnsubscribe)).subscribe(s=>this.currentStaffMemberId=s.id)}ngOnInit(){this.currentUser=this._authService.getCurrentlyLoggedInUser(),(!["System Admin","Director"].includes(this.currentUser?.userType)||"Director"===this.currentUser?.userType&&this.currentUser?.isAssistant)&&this.newCancelled(null),this.init()}ngOnDestroy(){this.ngUnsubscribe.next(null),this.ngUnsubscribe.complete()}init(){var t=this;return(0,d.Z)(function*(){yield t.initStaff(),t.initComplete=!0})()}initStaff(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){const r=t._staffMembersService.getCurrentBeingViewed();let s=null;t.currentStaffMemberId&&t.currentStaffMemberId.length&&(s=r?._id===t.currentStaffMemberId?r:yield(0,_.lastValueFrom)(t._staffMembersService.get(t.currentStaffMemberId))),s?._id||(s=new C.e6,"Director"===t.currentUser?.userType&&(s.parentDirector=t.currentUser?.isAssistant?t.currentUser?.director:t.currentUser?._id),t.formMode="create"),t.currentStaffMember=s,o(null)});return function(o){return n.apply(this,arguments)}}())}newCreated(t){this.location.back()}
1newCancelled(t){this.location.back()}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(x.e8),e.Y36(g.Ye),e.Y36(x.Py),e.Y36(M.gz))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["create-staff"]],decls:22,vars:2,consts:[[1,"cs-page"],[1,"cs-band"],["aria-hidden","true",1,"material-symbols-outlined","cs-band__watermark"],[1,"cs-band__inner"],[1,"cs-band__left"],["type","button","aria-label","Back to staff list",1,"cs-back",3,"click"],[1,"material-symbols-outlined"],["aria-hidden","true",1,"cs-badge"],[1,"cs-band__text"],[1,"cs-eyebrow"],[1,"cs-title"],[1,"cs-band__note"],["class","cs-card",4,"ngIf","ngIfElse"],["loadingTemplate",""],[1,"cs-card"],["chrome","steps",3,"formMode","staffMemberPassedIn","newItemCreated","addCancelled"],[3,"loadingLabel","loadingText"]],template:function(n,o){if(1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"person_add"),e.qZA(),e.TgZ(4,"div",3)(5,"div",4)(6,"button",5),e.NdJ("click",function(){return o.newCancelled(null)}),e.TgZ(7,"span",6),e._uU(8,"arrow_back"),e.qZA()(),e.TgZ(9,"span",7)(10,"span",6),e._uU(11,"person_add"),e.qZA()(),e.TgZ(12,"div",8)(13,"div",9),e._uU(14,"Staff"),e.qZA(),e.TgZ(15,"h1",10),e._uU(16,"Invite a staff member"),e.qZA()()(),e.TgZ(17,"span",11),e._uU(18,"They get an email invite \xb7 nothing is charged for staff"),e.qZA()()(),e.YNc(19,We,2,2,"div",12),e.YNc(20,Xe,2,2,"ng-template",null,13,e.W1O),e.qZA()),2&n){const r=e.MAs(21);e.xp6(19),e.Q6J("ngIf",o.initComplete)("ngIfElse",r)}},dependencies:[g.O5,y.O,k],styles:["[_nghost-%COMP%]{display:block;--wb-page-max: 1560px}.cs-page[_ngcontent-%COMP%]{padding:20px 16px 28px}.cs-band[_ngcontent-%COMP%]{position:relative;overflow:hidden;max-width:var(--wb-page-max, 1560px);margin:0 auto;padding:16px 22px;border:1px solid rgba(255,255,255,.06);border-bottom:none;border-radius:16px 16px 0 0;background:var(--wb-flagship-band, linear-gradient(120deg, #14110F 0%, #26211B 100%));box-shadow:inset 0 1px #ffffff0d}.cs-band__watermark[_ngcontent-%COMP%]{position:absolute;right:60px;top:50%;transform:translateY(-46%) rotate(-8deg);font-size:170px;font-weight:300;color:#ffffff0a;pointer-events:none;-webkit-user-select:none;user-select:none}.cs-band__inner[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px}.cs-band__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;min-width:0}.cs-back[_ngcontent-%COMP%]{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#fffc;cursor:pointer;transition:background .15s ease,color .15s ease}.cs-back[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.cs-back[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.08);color:var(--wb-surface, #fff)}.cs-badge[_ngcontent-%COMP%]{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--wb-brand-blue, #008afc),var(--wb-blue-700, #0059a8));box-shadow:0 2px 12px #0059a880,0 0 0 5px #008afc1f}.cs-badge[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:23px;color:var(--wb-surface, #fff)}.cs-band__text[_ngcontent-%COMP%]{min-width:0}.cs-eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#ffffff8c}.cs-title[_ngcontent-%COMP%]{margin:4px 0 0;font-size:26px;line-height:1.1;font-weight:600;letter-spacing:-.4px;color:var(--wb-surface, #fff)}.cs-band__note[_ngcontent-%COMP%]{flex:none;font-size:13px;color:#fff9}.cs-card[_ngcontent-%COMP%]{position:relative;z-index:1;max-width:var(--wb-page-max, 1560px);margin:0 auto;background:var(--wb-surface, #fff);border:1px solid var(--wb-tg-border-hairline, #eceef3);border-top:none;border-radius:0 0 16px 16px;overflow:hidden;box-shadow:0 12px 28px #060a121f,0 1px 3px #1018280f}@media (max-width: 860px){.cs-band__watermark[_ngcontent-%COMP%]{display:none}.cs-band__inner[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}}@media (max-width: 600px){.cs-band[_ngcontent-%COMP%]{padding:14px 16px}.cs-title[_ngcontent-%COMP%]{font-size:21px}}"]})}}return i})();var tt=p(22601),nt=p(98773),ot=p(2368);function it(i,a){if(1&i&&(e.TgZ(0,"span",27)(1,"span",6),e._uU(2,"mail"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.hij("",t.currentStaffMember.user.email," ")}}function rt(i,a){if(1&i&&(e.TgZ(0,"span",27)(1,"span",6),e._uU(2,"call"),e.qZA(),e._uU(3),e.ALo(4,"phone"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.hij("",e.lcZ(4,1,t.currentStaffMember.user.phone)," ")}}function at(i,a){if(1&i&&(e.TgZ(0,"span",27)(1,"span",6),e._uU(2,"schedule"),e.qZA(),e._uU(3),e.ALo(4,"date"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.hij("Invited ",e.xi3(4,1,t.invitedOn,"MMM d, y")," ")}}function st(i,a){if(1&i&&(e.TgZ(0,"div",25),e.YNc(1,it,4,1,"span",26),e.YNc(2,rt,5,3,"span",26),e.YNc(3,at,5,4,"span",26),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.currentStaffMember.user.email),e.xp6(1),e.Q6J("ngIf",t.currentStaffMember.user.phone),e.xp6(1),e.Q6J("ngIf",t.invitedOn)}}function ct(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewAsStaffMember())}),e.TgZ(1,"span",6),e._uU(2,"visibility"),e.qZA(),e._uU(3),e.ALo(4,"nameCase"),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.hij(" View as ",e.lcZ(4,1,null==t.currentStaffMember||null==t.currentStaffMember.user?null:t.currentStaffMember.user.first_name)||"member"," ")}}function lt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",29),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.resendInvite())}),e.TgZ(1,"span",6),e._uU(2,"forward_to_inbox"),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.hij(" ",t.isRevoked?"Re-invite":"Resend Invite"," ")}}function dt(i,a){if(1&i&&(e.TgZ(0,"a",30)(1,"span",6),e._uU(2,"mail"),e.qZA(),e._uU(3," Message "),e.qZA()),2&i){const t=e.oxw();e.Q6J("href","mailto:"+t.currentStaffMember.user.email,e.LSH)}}function pt(i,a){if(1&i&&(e.TgZ(0,"div",31)(1,"div",32)(2,"div",33),e._uU(3,"Roles"),e.qZA(),e.TgZ(4,"div",34),e._uU(5),e.qZA()(),e.TgZ(6,"div",32)(7,"div",33),e._uU(8,"Scopes granted"),e.qZA(),e.TgZ(9,"div",34),e._uU(10),e.qZA()(),e.TgZ(11,"div",32)(12,"div",33),e._uU(13,"Invited by"),e.qZA(),e.TgZ(14,"div",35),e._uU(15),e.ALo(16,"nameCase"),e.qZA()(),e.TgZ(17,"div",32)(18,"div",33),e._uU(19,"Last active"),e.qZA(),e.TgZ(20,"div",35),e._uU(21),e.ALo(22,"relativeTime"),e.qZA()()()),2&i){const t=e.oxw();
1e.xp6(5),e.Oqu(t.distinctRoles.length),e.xp6(5),e.Oqu(t.scopeCount),e.xp6(5),e.Oqu(e.lcZ(16,6,t.invitedBy)),e.xp6(5),e.ekj("is-muted",!t.lastActive),e.xp6(1),e.hij(" ",t.lastActive?e.lcZ(22,8,t.lastActive):"Never signed in"," ")}}function ft(i,a){if(1&i&&(e.ynx(0),e._uU(1),e.ALo(2,"date"),e.BQk()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" on ",e.xi3(2,1,t.invitedOn,"MMM d, y"),"")}}function gt(i,a){if(1&i&&(e.TgZ(0,"span",49),e._uU(1," Invite sent to "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.YNc(4,ft,3,4,"ng-container",50),e._uU(5," \u2014 not accepted yet. Access starts the moment they sign in. "),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(null==t.currentStaffMember||null==t.currentStaffMember.user?null:t.currentStaffMember.user.email),e.xp6(1),e.Q6J("ngIf",t.invitedOn)}}function _t(i,a){1&i&&(e.TgZ(0,"span",49),e._uU(1," Invite revoked. The record is kept \u2014 re-invite to restore access to the scopes below. "),e.qZA())}function ut(i,a){1&i&&e._UZ(0,"span",51)}function mt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.revokeInvite())}),e._uU(1,"Revoke invite"),e.qZA()}}function bt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",42)(1,"span",43),e._uU(2,"schedule_send"),e.qZA(),e.YNc(3,gt,6,2,"span",44),e.YNc(4,_t,2,0,"ng-template",null,45,e.W1O),e.TgZ(6,"button",46),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.resendInvite())}),e._uU(7),e.qZA(),e.YNc(8,ut,1,0,"span",47),e.YNc(9,mt,2,0,"button",48),e.qZA()}if(2&i){const t=e.MAs(5),n=e.oxw(2);e.xp6(3),e.Q6J("ngIf",n.isPending)("ngIfElse",t),e.xp6(4),e.Oqu(n.isRevoked?"Re-invite":"Resend"),e.xp6(1),e.Q6J("ngIf",n.isPending),e.xp6(1),e.Q6J("ngIf",n.isPending)}}function xt(i,a){if(1&i&&(e.TgZ(0,"div",61)(1,"span",62),e._uU(2),e.ALo(3,"date"),e.qZA(),e.TgZ(4,"span",63)(5,"span",64),e._uU(6),e.qZA(),e._uU(7),e.qZA(),e.TgZ(8,"span",65),e._uU(9),e.qZA()()),2&i){const t=a.$implicit;e.xp6(2),e.Oqu(e.xi3(3,5,t.when,"MMM d, h:mm a")),e.xp6(3),e.Q6J("ngClass",t.iconClass),e.xp6(1),e.Oqu(t.icon),e.xp6(1),e.hij("",t.action," "),e.xp6(2),e.Oqu(t.where)}}function ht(i,a){1&i&&(e.TgZ(0,"div",66),e._uU(1," Nothing recorded on this staff record yet. "),e.qZA())}function vt(i,a){if(1&i&&(e.TgZ(0,"div",53)(1,"div",54)(2,"div")(3,"div",55),e._uU(4,"Activity"),e.qZA(),e.TgZ(5,"div",56),e._uU(6),e.ALo(7,"nameCase"),e.qZA()()(),e.TgZ(8,"div",57)(9,"span"),e._uU(10,"When"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Action"),e.qZA(),e.TgZ(13,"span"),e._uU(14,"Where"),e.qZA()(),e.YNc(15,xt,10,8,"div",58),e.YNc(16,ht,2,0,"div",59),e.TgZ(17,"div",60)(18,"span",6),e._uU(19,"info"),e.qZA(),e._uU(20),e.ALo(21,"nameCase"),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(6),e.hij(" Milestones recorded on ",e.lcZ(7,5,null==t.currentStaffMember||null==t.currentStaffMember.user?null:t.currentStaffMember.user.first_name),"'s staff record, newest first. "),e.xp6(9),e.Q6J("ngForOf",t.milestones)("ngForTrackBy",t.trackMilestone),e.xp6(1),e.Q6J("ngIf",!t.milestones.length),e.xp6(4),e.hij(" Payment receipts listed here are the payments on the scopes where ",e.lcZ(21,7,null==t.currentStaffMember||null==t.currentStaffMember.user?null:t.currentStaffMember.user.first_name)," receives receipts today \u2014 changing a role or receipts toggle changes this view. WeighBook does not yet log other individual actions, like weigh-ins closed or entries registered, against the staff member who performed them. ")}}function Ct(i,a){1&i&&(e.TgZ(0,"span",90),e._uU(1,"Changing this sends a fresh invite to the new address."),e.qZA())}function wt(i,a){1&i&&(e.TgZ(0,"span",90),e._uU(1," This member has signed in, so their email is their login and cannot be changed here. "),e.qZA())}function Mt(i,a){if(1&i&&(e.TgZ(0,"span",91),e._UZ(1,"span",92),e._uU(2),e.ALo(3,"date"),e.ALo(4,"nameCase"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(2),e.lnq(" ",e.xi3(3,3,t.invitedOn,"MMM d, y")," \u2014 invited as ",t.primaryRole," by ",e.lcZ(4,6,t.invitedBy)," ")}}function Pt(i,a){if(1&i&&(e.TgZ(0,"span",91),e._UZ(1,"span",93),e._uU(2),e.ALo(3,"lowercase"),e.qZA()),2&i){const t=a.$implicit;e.xp6(2),e.AsE(" Granted ",e.lcZ(3,2,t.moduleType)," access to ",t.recordName||"a record"," ")}}function Ot(i,a){if(1&i&&(e.TgZ(0,"span",94),e._UZ(1,"span",95),e._uU(2),e.ALo(3,"nameCase"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(2),e.hij(" Waiting on ",e.lcZ(3,1,null==t.currentStaffMember||null==t.currentStaffMember.user?null:t.currentStaffMember.user.first_name)," to sign in \u2014 the invite does not expire ")}}
1function yt(i,a){if(1&i&&(e.TgZ(0,"span",91),e._UZ(1,"span",96),e._uU(2),e.ALo(3,"relativeTime"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(2),e.hij(" Last signed in ",e.lcZ(3,1,t.lastActive)," ")}}function St(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",97)(1,"button",98),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.resendInvite())}),e.TgZ(2,"span",6),e._uU(3,"forward_to_inbox"),e.qZA(),e._uU(4),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(4),e.hij(" ",t.isRevoked?"Re-invite":"Resend invite"," ")}}function kt(i,a){1&i&&(e.ynx(0),e._uU(1," Revoking the invite keeps the record and lets you re-send later. "),e.BQk())}function Tt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",99),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.revokeInvite())}),e._uU(1,"Revoke invite"),e.qZA()}}function Zt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",67)(1,"div",68)(2,"div",55),e._uU(3,"Contact"),e.qZA(),e.TgZ(4,"div",69)(5,"label",70)(6,"span",71),e._uU(7,"First name"),e.qZA(),e.TgZ(8,"span",72)(9,"span",6),e._uU(10,"person"),e.qZA(),e.TgZ(11,"input",73),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.contact.first_name=o)}),e.qZA()()(),e.TgZ(12,"label",70)(13,"span",71),e._uU(14,"Last name"),e.qZA(),e.TgZ(15,"span",72)(16,"span",6),e._uU(17,"person"),e.qZA(),e.TgZ(18,"input",74),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.contact.last_name=o)}),e.qZA()()(),e.TgZ(19,"label",70)(20,"span",71),e._uU(21,"Email address"),e.qZA(),e.TgZ(22,"span",72)(23,"span",6),e._uU(24,"mail"),e.qZA(),e.TgZ(25,"input",75),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.contact.email=o)}),e.qZA()(),e.YNc(26,Ct,2,0,"span",76),e.YNc(27,wt,2,0,"span",76),e.qZA(),e.TgZ(28,"label",70)(29,"span",71),e._uU(30,"Phone"),e.qZA(),e.TgZ(31,"span",72)(32,"span",6),e._uU(33,"call"),e.qZA(),e.TgZ(34,"input",77),e.NdJ("ngModelChange",function(o){e.CHM(t);const r=e.oxw(2);return e.KtG(r.contact.phone=o)}),e.qZA()()()()(),e.TgZ(35,"div",68)(36,"div",78)(37,"div",55),e._uU(38,"Invite"),e.qZA(),e.TgZ(39,"div",79),e.YNc(40,Mt,5,8,"span",80),e.YNc(41,Pt,4,4,"span",81),e.YNc(42,Ot,4,3,"span",82),e.YNc(43,yt,4,3,"span",80),e.qZA(),e.YNc(44,St,5,1,"div",83),e.qZA(),e.TgZ(45,"div",84)(46,"div",85),e._uU(47,"Danger zone"),e.qZA(),e.TgZ(48,"div",86),e.YNc(49,kt,2,0,"ng-container",50),e._uU(50),e.ALo(51,"nameCase"),e.qZA(),e.TgZ(52,"div",87),e.YNc(53,Tt,2,0,"button",88),e.TgZ(54,"button",89),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.removeFromStaff())}),e._uU(55,"Remove from staff"),e.qZA()()()()()}if(2&i){const t=e.oxw(2);e.xp6(8),e.ekj("is-readonly",!t.contactEditable),e.xp6(3),e.Q6J("ngModel",t.contact.first_name)("readonly",!t.contactEditable),e.xp6(4),e.ekj("is-readonly",!t.contactEditable),e.xp6(3),e.Q6J("ngModel",t.contact.last_name)("readonly",!t.contactEditable),e.xp6(4),e.ekj("is-readonly",!t.contactEditable),e.xp6(3),e.Q6J("ngModel",t.contact.email)("readonly",!t.contactEditable),e.xp6(1),e.Q6J("ngIf",t.contactEditable),e.xp6(1),e.Q6J("ngIf",!t.contactEditable),e.xp6(4),e.ekj("is-readonly",!t.contactEditable),e.xp6(3),e.Q6J("ngModel",t.contact.phone)("readonly",!t.contactEditable),e.xp6(6),e.Q6J("ngIf",t.invitedOn),e.xp6(1),e.Q6J("ngForOf",null==t.currentStaffMember?null:t.currentStaffMember.accessLevels),e.xp6(1),e.Q6J("ngIf",t.isPending),e.xp6(1),e.Q6J("ngIf",t.lastActive),e.xp6(1),e.Q6J("ngIf",t.isPending||t.isRevoked),e.xp6(5),e.Q6J("ngIf",t.isPending),e.xp6(1),e.hij(" Removing ",e.lcZ(51,26,null==t.currentStaffMember||null==t.currentStaffMember.user?null:t.currentStaffMember.user.first_name)," deletes the staff record and every scope attached to it. "),e.xp6(3),e.Q6J("ngIf",t.isPending)}}function At(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",36)(1,"div",37),e.YNc(2,bt,10,5,"div",38),e.TgZ(3,"staff-form",39),e.NdJ("dirtyStateChanged",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.onAccessDirtyChange(o))})("staffChanged",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.onStaffChanged(o))})("newItemCreated",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.newCreated(o))})("addCancelled",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.newCancelled(o))})("itemDeleted",function(o){e.CHM(t);const r=e.oxw();return e.KtG(r.newCancelled(o))}),e.qZA()(),e.YNc(4,vt,22,9,"div",40),e.YNc(5,Zt,56,28,"div",41),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("hidden","access"!==t.activeTab),e.xp6(1),e.Q6J("ngIf",t.isPending||t.isRevoked),e.xp6(1),e.Q6J("formMode",t.formMode)("staffMemberPassedIn",t.currentStaffMember),e.xp6(1),e.Q6J("ngIf","activity"===t.activeTab),e.xp6(1),e.Q6J("ngIf","details"===t.activeTab)}}function Ut(i,a){if(1&i){const t=e.EpF();
1e.TgZ(0,"div",100)(1,"span",101),e._UZ(2,"span",102),e._uU(3),e.qZA(),e.TgZ(4,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.discardAccess())}),e._uU(5,"Discard"),e.qZA(),e.TgZ(6,"button",104),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.saveAccess())}),e._uU(7,"Save changes"),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(3),e.AsE(" ",t.accessDirtyCount," unsaved change",1===t.accessDirtyCount?"":"s"," ")}}function It(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",100)(1,"span",101),e._UZ(2,"span",102),e._uU(3," Unsaved contact changes "),e.qZA(),e.TgZ(4,"button",105),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.discardContact())}),e._uU(5,"Discard"),e.qZA(),e.TgZ(6,"button",106),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.saveContact())}),e._uU(7),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(4),e.Q6J("disabled",t.savingContact),e.xp6(2),e.Q6J("disabled",t.savingContact),e.xp6(1),e.hij(" ",t.savingContact?"Saving\u2026":"Save changes"," ")}}function Ft(i,a){1&i&&(e.TgZ(0,"div",36),e._UZ(1,"section-loading-displayer",107),e.qZA()),2&i&&(e.xp6(1),e.Q6J("loadingLabel","Loading Staff Member")("loadingText","Fetching this staff record..."))}const qt=[{path:"",children:[{path:"",component:se},{path:"create",component:et},{path:":id",component:(()=>{class i{constructor(t,n,o,r,s,l,v,u,m){this._authService=t,this.location=n,this._networkService=o,this._sharedUtilsService=r,this._staffMembersService=s,this._userService=l,this._userRolesService=v,this.route=u,this.router=m,this.ngUnsubscribe=new S.x,this.currentUser=null,this.currentStaffMember=null,this.currentStaffMemberId=null,this.formMode="edit",this.initComplete=!1,this.activeTab="access",this.accessDirty=!1,this.accessDirtyCount=0,this.contact={first_name:"",last_name:"",email:"",phone:""},this.contactBaseline={first_name:"",last_name:"",email:"",phone:""},this.savingContact=!1,this.milestones=[],this.trackMilestone=(c,h)=>h.when.getTime()+h.action,this.receiptRows=[],this.route.params.pipe((0,F.R)(this.ngUnsubscribe)).subscribe(c=>this.currentStaffMemberId=c.id)}ngOnInit(){this.currentUser=this._authService.getCurrentlyLoggedInUser(),(!["System Admin","Director"].includes(this.currentUser?.userType)||"Director"===this.currentUser?.userType&&this.currentUser?.isAssistant)&&this.newCancelled(null),this.init()}ngOnDestroy(){this.ngUnsubscribe.next(null),this.ngUnsubscribe.complete()}init(){var t=this;return(0,d.Z)(function*(){yield t.initStaff(),t.initComplete=!0,t.loadReceiptActivity()})()}initStaff(){var t=this;return new Promise(function(){var n=(0,d.Z)(function*(o){let r=t._staffMembersService.getCurrentBeingViewed();null==r&&t.currentStaffMemberId&&t.currentStaffMemberId.length&&(r=yield(0,_.lastValueFrom)(t._staffMembersService.get(t.currentStaffMemberId))),r?._id||(r=new C.e6,"Director"===t.currentUser?.userType&&(r.parentDirector=t.currentUser?.isAssistant?t.currentUser?.director:t.currentUser?._id),t.formMode="edit"),t.currentStaffMember=r,t.resetContactFromRecord(),t.milestones=t.buildMilestones(),o(null)});return function(o){return n.apply(this,arguments)}}())}get initials(){return((this.currentStaffMember?.user?.first_name?.[0]||"")+(this.currentStaffMember?.user?.last_name?.[0]||"")).toUpperCase()||"?"}get fullName(){const t=this.currentStaffMember?.user;return t&&`${t.first_name||""} ${t.last_name||""}`.trim()||"New Member"}get statusKey(){return(this.currentStaffMember?.status||"").toLowerCase()}get statusLabel(){switch(this.statusKey){case"active":return"Active";case"pending":return"Awaiting invite";case"revoked":return"Invite revoked";default:return this.currentStaffMember?.status||"Unknown"}}get isPending(){return"pending"===this.statusKey}get isRevoked(){return"revoked"===this.statusKey}get primaryRole(){return this.currentStaffMember?.role||this.distinctRoles[0]||"Staff"}get distinctRoles(){const t=new Set;return this.currentStaffMember?.role&&t.add(this.currentStaffMember.role),(this.currentStaffMember?.accessLevels||[]).forEach(n=>{n?.role&&t.add(n.role)}),Array.from(t)}get scopeCount(){return(this.currentStaffMember?.accessLevels||[]).filter(t=>t?.recordId).length}
1get invitedBy(){const t=this.currentStaffMember?.parentDirector;return t&&"string"!=typeof t&&`${t.first_name||""} ${t.last_name||""}`.trim()||"Unknown"}get lastActive(){const t=this.currentStaffMember?.user?.last_login;return t?new Date(t):null}get invitedOn(){const t=this.currentStaffMember?.createdAt;return t?new Date(t):null}loadReceiptActivity(){var t=this;return(0,d.Z)(function*(){if(t.currentStaffMember?._id)try{const n=yield(0,_.lastValueFrom)(t._staffMembersService.getReceiptActivity(t.currentStaffMember._id));t.receiptRows=(n?.events||[]).map(o=>t.receiptMilestone(o)),t.milestones=t.buildMilestones()}catch(n){console.log("Could not load receipt activity: ",n)}})()}receiptMilestone(t){const n="number"==typeof t.amount?`$${t.amount.toFixed(2)}`:"",o=t.payerName?` from ${t.payerName}`:"",r="Tour"===t.paymentForType?"Tour membership":"Season"===t.paymentForType?"Season membership":"Tournament payment";return{when:new Date(t.when),icon:"receipt_long",iconClass:"is-green",action:`Payment receipt \xb7 ${n}${o}`.trim(),where:t.scopeName||r}}buildMilestones(){const t=[],n=this.currentStaffMember;if(!n)return t;const o=(n.accessLevels||[]).filter(r=>r?.recordName).map(r=>r.recordName).join(", ");return n.createdAt&&t.push({when:new Date(n.createdAt),icon:"person_add",iconClass:"is-teal",action:`Invited as ${this.primaryRole} by ${this.invitedBy}`,where:o||"\u2014"}),n.updatedAt&&n.createdAt&&new Date(n.updatedAt).getTime()-new Date(n.createdAt).getTime()>1e3&&t.push({when:new Date(n.updatedAt),icon:"edit_note",iconClass:"is-teal",action:"Staff record updated \xb7 role or scopes changed",where:o||"\u2014"}),this.lastActive&&t.push({when:this.lastActive,icon:"verified_user",iconClass:"is-green",action:"Signed in",where:"WeighBook"}),t.push(...this.receiptRows),t.sort((r,s)=>s.when.getTime()-r.when.getTime())}resetContactFromRecord(){const t=this.currentStaffMember?.user;this.contact={first_name:t?.first_name||"",last_name:t?.last_name||"",email:t?.email||"",phone:t?.phone||""},this.contactBaseline={...this.contact}}get contactDirty(){return Object.keys(this.contact).some(t=>this.contact[t]!==this.contactBaseline[t])}get emailChanged(){return this.contact.email.trim().toLowerCase()!==this.contactBaseline.email.trim().toLowerCase()}get contactEditable(){return this.isPending||this.isRevoked}discardContact(){this.contact={...this.contactBaseline}}saveContact(){var t=this;return(0,d.Z)(function*(){if(t.savingContact||!t.contactDirty)return;if(!t._networkService.isOnLine(!0))return void t._sharedUtilsService.showErrorDialog("You must be online to update this staff member.");const n=t.contact.email.trim();if(!n||n.indexOf("@")<1)t._sharedUtilsService.showErrorDialog("Please enter a valid email address.");else{t.savingContact=!0;try{const o=t.currentStaffMember?.user?._id,r=yield(0,_.lastValueFrom)(t._userService.getUser(o));r.first_name=t.contact.first_name.trim(),r.last_name=t.contact.last_name.trim(),r.email=n,r.phone=t.contact.phone.trim(),yield(0,_.lastValueFrom)(t._userService.updateUser(r));const s=t.emailChanged;t.currentStaffMember.user={...t.currentStaffMember.user,first_name:r.first_name,last_name:r.last_name,email:r.email,phone:r.phone},t._staffMembersService.setCurrentBeingViewed(t.currentStaffMember),t.contactBaseline={...t.contact},s&&t.isPending&&t.staffForm?(yield t.staffForm.sendInviteEmail(),t._sharedUtilsService.showNotification("Contact updated and a fresh invite sent to "+n)):t._sharedUtilsService.showNotification("Contact details updated.")}catch(o){console.error("Failed to update staff contact: ",o),t._sharedUtilsService.showErrorDialog((0,O.l)(o,"Could not update the contact details. Please try again."))}finally{t.savingContact=!1}}})()}get canViewAs(){return!!this.currentStaffMember?._id&&!this.isRevoked}viewAsStaffMember(){this.canViewAs&&(this._userRolesService.startViewAs({staffMemberId:this.currentStaffMember._id,name:this.fullName,roles:this.distinctRoles}),this.router.navigate(["/director"]))}onAccessDirtyChange(t){this.accessDirty=t.dirty,this.accessDirtyCount=t.count}onStaffChanged(t){t&&(this.currentStaffMember=t,this.resetContactFromRecord(),this.milestones=this.buildMilestones())}resendInvite(){this.staffForm&&this.staffForm.resendInvite()}revokeInvite(){this.staffForm&&this.staffForm.revokeInvite()}removeFromStaff(){this.staffForm&&this.staffForm.requestDelete()}saveAccess(){this.staffForm&&this.staffForm.save()}discardAccess(){this.staffForm&&this.staffForm.discardChanges()}newCreated(t){this.location.back()}
1newCancelled(t){this.location.back()}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(x.e8),e.Y36(g.Ye),e.Y36(x.SL),e.Y36(x.n3),e.Y36(x.Py),e.Y36(x.KD),e.Y36(tt._),e.Y36(M.gz),e.Y36(M.F0))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["staff-profile"]],viewQuery:function(n,o){if(1&n&&e.Gf(k,5),2&n){let r;e.iGM(r=e.CRH())&&(o.staffForm=r.first)}},decls:43,vars:27,consts:[[1,"sp-page"],[1,"sp-band"],["aria-hidden","true",1,"material-symbols-outlined","sp-band__watermark"],[1,"sp-band__top"],[1,"sp-identity"],["type","button","aria-label","Back to staff list",1,"sp-back",3,"click"],[1,"material-symbols-outlined"],["aria-hidden","true",1,"sp-avatar"],[1,"sp-identity__text"],[1,"sp-crumbs"],[1,"material-symbols-outlined","sp-crumbs__sep"],[1,"sp-nameline"],[1,"sp-name"],[1,"sp-status",3,"ngClass"],["class","sp-contactline",4,"ngIf"],[1,"sp-band__actions"],["type","button","class","sp-btn sp-btn--light","title","Preview the portal with this member's roles - the menu and money screens filter exactly as they do for them. You stay signed in as yourself.",3,"click",4,"ngIf"],["type","button","class","sp-btn sp-btn--light",3,"click",4,"ngIf"],["class","sp-btn sp-btn--ghost",3,"href",4,"ngIf"],["class","sp-stats",4,"ngIf"],["role","tablist",1,"sp-tabs"],["type","button","role","tab",1,"sp-tab",3,"click"],["class","sp-card",4,"ngIf","ngIfElse"],["class","sp-savebar",4,"ngIf"],["loadingTemplate",""],[1,"sp-contactline"],["class","sp-contactline__item",4,"ngIf"],[1,"sp-contactline__item"],["type","button","title","Preview the portal with this member's roles - the menu and money screens filter exactly as they do for them. You stay signed in as yourself.",1,"sp-btn","sp-btn--light",3,"click"],["type","button",1,"sp-btn","sp-btn--light",3,"click"],[1,"sp-btn","sp-btn--ghost",3,"href"],[1,"sp-stats"],[1,"sp-stat"],[1,"sp-stat__label"],[1,"sp-stat__value","is-numeric"],[1,"sp-stat__value","is-text"],[1,"sp-card"],["role","tabpanel",1,"sp-tabpanel",3,"hidden"],["class","sp-invite-strip",4,"ngIf"],["chrome","matrix",3,"formMode","staffMemberPassedIn","dirtyStateChanged","staffChanged","newItemCreated","addCancelled","itemDeleted"],["class","sp-tabpanel","role","tabpanel",4,"ngIf"],["class","sp-tabpanel sp-details","role","tabpanel",4,"ngIf"],[1,"sp-invite-strip"],[1,"material-symbols-outlined","sp-invite-strip__icon"],["class","sp-invite-strip__text",4,"ngIf","ngIfElse"],["revokedText",""],["type","button",1,"sp-link",3,"click"],["class","sp-invite-strip__divider",4,"ngIf"],["type","button","class","sp-link sp-link--danger",3,"click",4,"ngIf"],[1,"sp-invite-strip__text"],[4,"ngIf"],[1,"sp-invite-strip__divider"],["type","button",1,"sp-link","sp-link--danger",3,"click"],["role","tabpanel",1,"sp-tabpanel"],[1,"sp-section-head"],[1,"sp-section-label"],[1,"sp-section-sub"],[1,"sp-ink-head","sp-activity-grid"],["class","sp-activity-row sp-activity-grid",4,"ngFor","ngForOf","ngForTrackBy"],["class","sp-activity-empty",4,"ngIf"],[1,"sp-note"],[1,"sp-activity-row","sp-activity-grid"],[1,"sp-activity__when"],[1,"sp-activity__action"],[1,"material-symbols-outlined",3,"ngClass"],[1,"sp-activity__where"],[1,"sp-activity-empty"],["role","tabpanel",1,"sp-tabpanel","sp-details"],[1,"sp-details__col"],[1,"sp-fields"],[1,"sp-field"],[1,"sp-field__label"],[1,"sp-field__control"],["type","text","name","detail-first",3,"ngModel","readonly","ngModelChange"],["type","text","name","detail-last",3,"ngModel","readonly","ngModelChange"],["type","email","name","detail-email",3,"ngModel","readonly","ngModelChange"],["class","sp-field__hint",4,"ngIf"],["type","tel","name","detail-phone",3,"ngModel","readonly","ngModelChange"],[1,"sp-details__block"],[1,"sp-timeline"],["class","sp-timeline__row",4,"ngIf"],["class","sp-timeline__row",4,"ngFor","ngForOf"],["class","sp-timeline__row is-muted",4,"ngIf"],["class","sp-details__actions",4,"ngIf"],[1,"sp-danger"],[1,"sp-danger__label"],[1,"sp-danger__text"],[1,"sp-danger__actions"],["type","button","class","sp-btn sp-btn--danger-ghost",3,"click",4,"ngIf"],["type","button",1,"sp-btn","sp-btn--danger",3,"click"],[1,"sp-field__hint"],[1,"sp-timeline__row"],[1,"sp-timeline__dot","is-amber"],[1,"sp-timeline__dot","is-grey"],[1,"sp-timeline__row","is-muted"],[1,"sp-timeline__dot","is-
1hollow"],[1,"sp-timeline__dot","is-green"],[1,"sp-details__actions"],["type","button",1,"sp-btn","sp-btn--primary",3,"click"],["type","button",1,"sp-btn","sp-btn--danger-ghost",3,"click"],[1,"sp-savebar"],[1,"sp-savebar__count"],[1,"sp-savebar__dot"],["type","button",1,"sp-savebar__discard",3,"click"],["type","button",1,"sp-savebar__save",3,"click"],["type","button",1,"sp-savebar__discard",3,"disabled","click"],["type","button",1,"sp-savebar__save",3,"disabled","click"],[3,"loadingLabel","loadingText"]],template:function(n,o){if(1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"badge"),e.qZA(),e.TgZ(4,"div",3)(5,"div",4)(6,"button",5),e.NdJ("click",function(){return o.newCancelled(null)}),e.TgZ(7,"span",6),e._uU(8,"arrow_back"),e.qZA()(),e.TgZ(9,"span",7),e._uU(10),e.qZA(),e.TgZ(11,"div",8)(12,"div",9)(13,"span"),e._uU(14,"Staff"),e.qZA(),e.TgZ(15,"span",10),e._uU(16,"chevron_right"),e.qZA(),e.TgZ(17,"span"),e._uU(18),e.qZA()(),e.TgZ(19,"div",11)(20,"h1",12),e._uU(21),e.ALo(22,"nameCase"),e.qZA(),e.TgZ(23,"span",13),e._uU(24),e.qZA()(),e.YNc(25,st,4,3,"div",14),e.qZA()(),e.TgZ(26,"div",15),e.YNc(27,ct,5,3,"button",16),e.YNc(28,lt,4,1,"button",17),e.YNc(29,dt,4,1,"a",18),e.qZA()(),e.YNc(30,pt,23,10,"div",19),e.TgZ(31,"nav",20)(32,"button",21),e.NdJ("click",function(){return o.activeTab="access"}),e._uU(33,"Access"),e.qZA(),e.TgZ(34,"button",21),e.NdJ("click",function(){return o.activeTab="activity"}),e._uU(35,"Activity"),e.qZA(),e.TgZ(36,"button",21),e.NdJ("click",function(){return o.activeTab="details"}),e._uU(37,"Details"),e.qZA()()(),e.YNc(38,At,6,6,"div",22),e.YNc(39,Ut,8,2,"div",23),e.YNc(40,It,8,3,"div",23),e.YNc(41,Ft,2,2,"ng-template",null,24,e.W1O),e.qZA()),2&n){const r=e.MAs(42);e.xp6(1),e.ekj("sp-band--compact","details"===o.activeTab),e.xp6(9),e.Oqu(o.initials),e.xp6(8),e.Oqu(o.primaryRole),e.xp6(3),e.Oqu(e.lcZ(22,25,o.fullName)),e.xp6(2),e.Q6J("ngClass","sp-status--"+(o.statusKey||"unknown")),e.xp6(1),e.Oqu(o.statusLabel),e.xp6(1),e.Q6J("ngIf",null==o.currentStaffMember?null:o.currentStaffMember.user),e.xp6(2),e.Q6J("ngIf",o.canViewAs),e.xp6(1),e.Q6J("ngIf",o.isPending||o.isRevoked),e.xp6(1),e.Q6J("ngIf",!o.isPending&&!o.isRevoked&&(null==o.currentStaffMember||null==o.currentStaffMember.user?null:o.currentStaffMember.user.email)),e.xp6(1),e.Q6J("ngIf","details"!==o.activeTab),e.xp6(2),e.ekj("is-active","access"===o.activeTab),e.uIk("aria-selected","access"===o.activeTab),e.xp6(2),e.ekj("is-active","activity"===o.activeTab),e.uIk("aria-selected","activity"===o.activeTab),e.xp6(2),e.ekj("is-active","details"===o.activeTab),e.uIk("aria-selected","details"===o.activeTab),e.xp6(2),e.Q6J("ngIf",o.initComplete)("ngIfElse",r),e.xp6(1),e.Q6J("ngIf","access"===o.activeTab&&o.accessDirty),e.xp6(1),e.Q6J("ngIf","details"===o.activeTab&&o.contactDirty)}},dependencies:[g.mk,g.sg,g.O5,b.Fj,b.JJ,b.On,y.O,k,g.i8,g.uU,nt.E,I.a,ot.u],styles:['[_nghost-%COMP%]{display:block;--wb-page-max: 1560px;--sp-ink: var(--wb-ink, #14110F);--sp-hairline: var(--wb-canvas-sunk, #f1efe8);--sp-accent: var(--wb-brand-blue, #008afc);--sp-accent-deep: var(--wb-blue-700, #0059a8);--sp-danger: var(--wb-danger, #C2382F);--sp-muted: var(--wb-text-3, #6b6862);--sp-caption: var(--wb-text-2, #5F5E5A)}.sp-page[_ngcontent-%COMP%]{padding:20px 16px 28px}[hidden][_ngcontent-%COMP%]{display:none!important}.sp-band[_ngcontent-%COMP%]{position:relative;overflow:hidden;max-width:var(--wb-page-max, 1560px);margin:0 auto;padding:18px 22px 0;border:1px solid rgba(255,255,255,.06);border-bottom:none;border-radius:16px 16px 0 0;background:var(--wb-flagship-band, linear-gradient(120deg, #14110F 0%, #26211B 100%));box-shadow:inset 0 1px #ffffff0d}.sp-band__watermark[_ngcontent-%COMP%]{position:absolute;right:60px;top:50%;transform:translateY(-46%) rotate(-8deg);font-size:170px;font-weight:300;color:#ffffff0a;pointer-events:none;-webkit-user-select:none;user-select:none}.sp-band__top[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start;gap:32px}.sp-identity[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;align-items:flex-start;gap:14px}.sp-back[_ngcontent-%COMP%]{width:36px;height:36px;flex:none;margin-top:4px;display:grid;place-items:center;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#fffc;
1cursor:pointer;transition:background .15s ease,color .15s ease}.sp-back[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.sp-back[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.08);color:var(--wb-surface, #fff)}.sp-avatar[_ngcontent-%COMP%]{width:52px;height:52px;flex:none;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,var(--wb-brand-blue, #008afc),var(--wb-blue-700, #0059a8));box-shadow:0 2px 12px #0059a880,0 0 0 5px #008afc1f;color:var(--wb-surface, #fff);font-size:17px;font-weight:700;letter-spacing:.5px}.sp-identity__text[_ngcontent-%COMP%]{min-width:0}.sp-crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#fff9}.sp-crumbs__sep[_ngcontent-%COMP%]{font-size:12px;color:#ffffff59}.sp-nameline[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:5px}.sp-name[_ngcontent-%COMP%]{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.4px;color:var(--wb-surface, #fff)}.sp-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;background:rgba(255,255,255,.1);color:#ffffffbf}.sp-status[_ngcontent-%COMP%]:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.sp-status--pending[_ngcontent-%COMP%]{background:rgba(217,119,6,.18);color:#f0b357}.sp-status--active[_ngcontent-%COMP%]{background:rgba(46,125,50,.2);color:#8fd79c}.sp-status--revoked[_ngcontent-%COMP%]{background:rgba(194,56,47,.2);color:#f0a09a}.sp-contactline[_ngcontent-%COMP%]{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:#ffffffb8}.sp-contactline__item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}.sp-contactline__item[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px;color:#5da9ff;flex:none}.sp-band__actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;flex:none}.sp-stats[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:20px -22px 0;background:rgba(255,255,255,.08);border-top:1px solid rgba(255,255,255,.08)}.sp-stat[_ngcontent-%COMP%]{background:#191512;padding:14px 22px;min-width:0}.sp-stat__label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#ffffff80}.sp-stat__value[_ngcontent-%COMP%]{color:var(--wb-surface, #fff);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-stat__value.is-numeric[_ngcontent-%COMP%]{margin-top:5px;font-size:22px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums}.sp-stat__value.is-text[_ngcontent-%COMP%]{margin-top:8px;font-size:15px;line-height:1.4;font-weight:500}.sp-stat__value.is-muted[_ngcontent-%COMP%]{color:#ffffff8c}.sp-tabs[_ngcontent-%COMP%]{position:relative;display:flex;gap:26px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08)}.sp-tab[_ngcontent-%COMP%]{padding:0 2px 12px;border:none;background:none;font-size:13.5px;font-weight:500;color:#fff9;cursor:pointer;transition:color .15s ease,box-shadow .15s ease}.sp-tab[_ngcontent-%COMP%]:hover{color:#ffffffd9}.sp-tab.is-active[_ngcontent-%COMP%]{font-weight:600;color:var(--wb-surface, #fff);box-shadow:inset 0 -2px 0 var(--sp-accent)}.sp-card[_ngcontent-%COMP%]{position:relative;z-index:1;max-width:var(--wb-page-max, 1560px);margin:0 auto;background:var(--wb-surface, #fff);border:1px solid var(--wb-tg-border-hairline, #eceef3);border-top:none;border-radius:0 0 16px 16px;overflow:hidden;box-shadow:0 12px 28px #060a121f,0 1px 3px #1018280f}.sp-section-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px 14px}.sp-section-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--sp-caption)}.sp-section-sub[_ngcontent-%COMP%]{margin-top:5px;font-size:13px;color:var(--sp-muted)}.sp-ink-head[_ngcontent-%COMP%]{min-height:38px;align-items:center;background:var(--sp-ink);padding:0 22px}.sp-ink-head[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#ffffff8c}.sp-invite-strip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 22px;background:var(--wb-warning-soft, #fffbeb);border-bottom:1px solid var(--wb-border, #f5e6bf)}.sp-invite-strip__icon[_ngcontent-%COMP%]{font-size:20px;color:var(--wb-warning, #d97706);flex:none}.sp-invite-strip__text[_ngcontent-%COMP%]{flex:1;min-width:0;font-size:13px;color:var(--wb-text-2, #5d4037)}.sp-invite-strip__text[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:600}.sp-invite-strip__divider[_ngcontent-%COMP%]{width:1px;height:16px;background:var(--wb-border, #e6d7ab);flex:none}.sp-link[_ngcontent-%COMP%]{border:none;background:none;padding:0;font-size:13px;font-weight:600;color:var(--sp-accent-deep);
1cursor:pointer;white-space:nowrap}.sp-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.sp-link--danger[_ngcontent-%COMP%]{color:var(--sp-danger)}.sp-activity-grid[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.sp-activity-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(1){width:120px;flex:none}.sp-activity-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(2){flex:1;min-width:0}.sp-activity-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(3){width:260px;flex:none}.sp-activity-row[_ngcontent-%COMP%]{padding:14px 22px;border-bottom:1px solid var(--sp-hairline)}.sp-activity__when[_ngcontent-%COMP%], .sp-activity__where[_ngcontent-%COMP%]{font-size:12.5px;color:var(--sp-muted)}.sp-activity__action[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--wb-text, #1F2024)}.sp-activity__action[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px;flex:none}.sp-activity__action[_ngcontent-%COMP%]   .is-teal[_ngcontent-%COMP%]{color:var(--wb-tour-2, #087277)}.sp-activity__action[_ngcontent-%COMP%]   .is-green[_ngcontent-%COMP%]{color:var(--wb-success, #2E7D32)}.sp-activity-empty[_ngcontent-%COMP%]{padding:28px 22px;text-align:center;font-size:13px;color:var(--wb-text-4, #94a3b8)}.sp-note[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;margin:16px 22px 20px;padding:12px 14px;border:1px solid var(--wb-border, #e9e5de);border-radius:10px;background:var(--wb-canvas, #faf8f5);font-size:12.5px;line-height:1.55;color:var(--sp-muted)}.sp-note[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px;color:var(--wb-text-4, #94a3b8);flex:none}.sp-details[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1px;background:var(--sp-hairline)}.sp-details__col[_ngcontent-%COMP%]{background:var(--wb-surface, #fff);padding:20px 22px;display:flex;flex-direction:column;gap:22px}.sp-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px}.sp-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.sp-field__label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:var(--sp-caption)}.sp-field__control[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border:1px solid var(--wb-border, #e0e4e8);border-radius:8px;background:var(--wb-surface, #fff);transition:border-color .15s ease,box-shadow .15s ease}.sp-field__control[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px;color:var(--sp-caption);flex:none}.sp-field__control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;min-width:0;border:none;outline:none;background:none;font-family:inherit;font-size:14px;color:var(--wb-text, #1F2024)}.sp-field__control[_ngcontent-%COMP%]:focus-within{border-color:var(--sp-accent);box-shadow:0 0 0 3px #008afc1f}.sp-field__control.is-readonly[_ngcontent-%COMP%]{background:var(--wb-surface-hover, #f8f9fb)}.sp-field__control.is-readonly[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:var(--sp-muted)}.sp-field__control.is-readonly[_ngcontent-%COMP%]:focus-within{border-color:var(--wb-border, #e0e4e8);box-shadow:none}.sp-field__hint[_ngcontent-%COMP%]{font-size:12px;color:var(--wb-text-4, #94a3b8)}.sp-details__block[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sp-timeline[_ngcontent-%COMP%]{margin-top:12px;display:flex;flex-direction:column;gap:10px}.sp-timeline__row[_ngcontent-%COMP%]{display:flex;gap:10px;font-size:13px;line-height:1.5;color:var(--wb-text-2, #5F5E5A)}.sp-timeline__row.is-muted[_ngcontent-%COMP%]{color:var(--wb-text-4, #94a3b8)}.sp-timeline__dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;margin-top:6px;flex:none}.sp-timeline__dot.is-amber[_ngcontent-%COMP%]{background:var(--wb-warning, #d97706)}.sp-timeline__dot.is-grey[_ngcontent-%COMP%]{background:var(--wb-border-strong, #d8d3ca)}.sp-timeline__dot.is-green[_ngcontent-%COMP%]{background:var(--wb-success, #2E7D32)}.sp-timeline__dot.is-hollow[_ngcontent-%COMP%]{border:1px solid var(--wb-border-strong, #d8d3ca)}.sp-details__actions[_ngcontent-%COMP%]{margin-top:14px;display:flex;gap:10px}.sp-danger[_ngcontent-%COMP%]{padding:16px 18px;border:1px solid rgba(194,56,47,.25);border-radius:10px;background:var(--wb-danger-soft, #FBEAE8)}.sp-danger__label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--sp-danger)}.sp-danger__text[_ngcontent-%COMP%]{margin-top:8px;font-size:13px;line-height:1.55;color:var(--wb-text-2, #5d3330)}.sp-danger__actions[_ngcontent-%COMP%]{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}.sp-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border:1px solid transparent;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}.sp-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.sp-btn--light[_ngcontent-%COMP%]{background:var(--wb-surface, #fff);color:var(--wb-ink, #14110f)}.sp-btn--light[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk, #f1efe8)}.sp-btn--ghost[_ngcontent-%COMP%]{background:rgba(255,255,255,.06);border-color:#ffffff2e;color:var(--wb-surface, #fff)}.sp-btn--ghost[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.14)}.sp-btn--primary[_ngcontent-%COMP%]{height:38px;padding:0 16px;background:var(--sp-accent);color:var(--wb-surface, #fff)}.sp-btn--primary[_ngcontent-%COMP%]:hover{background:var(--sp-accent-deep)}.sp-btn--danger[_ngcontent-%COMP%]{height:38px;padding:0 16px;background:var(--sp-danger);color:var(--wb-surface, #fff)}.sp-btn--danger[_ngcontent-%COMP%]:hover{background:#a32d25}.sp-btn--danger-ghost[_ngcontent-%COMP%]{height:38px;padding:0 16px;background:var(--wb-surface, #fff);border-color:#c2382f4d;color:var(--sp-danger)}.sp-btn--danger-ghost[_ngcontent-%COMP%]:hover{background:var(--wb-danger-soft, #fdf3f2)}.sp-savebar[_ngcontent-%COMP%]{position:sticky;bottom:16px;z-index:3;margin:16px auto 0;width:-moz-fit-content;width:fit-content;display:flex;align-items:center;gap:18px;padding:12px 14px 12px 20px;border-radius:999px;background:var(--sp-ink);box-shadow:0 20px 48px #1f202447}.sp-savebar__count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:500;color:var(--wb-surface, #fff);white-space:nowrap}.sp-savebar__dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background:var(--wb-warning-mark, #FFA800);flex:none}.sp-savebar__discard[_ngcontent-%COMP%]{border:none;background:none;padding:0;font-family:inherit;font-size:13px;font-weight:500;color:#fff9;cursor:pointer}.sp-savebar__discard[_ngcontent-%COMP%]:hover{color:var(--wb-surface, #fff)}.sp-savebar__discard[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}
1.sp-savebar__save[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:38px;padding:0 20px;border:none;border-radius:999px;background:var(--wb-green, #3B6D11);font-family:inherit;font-size:13.5px;font-weight:600;color:var(--wb-surface, #fff);cursor:pointer;white-space:nowrap}.sp-savebar__save[_ngcontent-%COMP%]:hover{background:#2f570d}.sp-savebar__save[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}@media (max-width: 1100px){.sp-details[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}.sp-activity-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(3){width:180px}}@media (max-width: 860px){.sp-stats[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-band__watermark[_ngcontent-%COMP%]{display:none}.sp-band__top[_ngcontent-%COMP%]{flex-direction:column;gap:16px}.sp-band__actions[_ngcontent-%COMP%]{width:100%}}@media (max-width: 680px){.sp-band[_ngcontent-%COMP%]{padding:14px 16px 0}.sp-stats[_ngcontent-%COMP%]{margin-left:-16px;margin-right:-16px}.sp-stat[_ngcontent-%COMP%]{padding:12px 16px}.sp-name[_ngcontent-%COMP%]{font-size:24px}.sp-avatar[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:12px;font-size:15px}.sp-contactline[_ngcontent-%COMP%]{gap:8px;flex-direction:column;align-items:flex-start}.sp-activity-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(1){width:90px}.sp-activity-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(3){display:none}.sp-activity-row[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.sp-invite-strip[_ngcontent-%COMP%]{flex-wrap:wrap;row-gap:8px;padding-left:16px;padding-right:16px}.sp-invite-strip__text[_ngcontent-%COMP%]{flex:1 1 100%}.sp-invite-strip__icon[_ngcontent-%COMP%]{order:-1}.sp-details__col[_ngcontent-%COMP%]{padding:16px}.sp-savebar[_ngcontent-%COMP%]{gap:12px;padding:10px 12px 10px 16px}}']})}}return i})()}]}];let Nt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.oAB({type:i})}static{this.\u0275inj=e.cJS({imports:[M.Bz.forChild(qt),M.Bz]})}}return i})();var Lt=p(83192);let zt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.oAB({type:i})}static{this.\u0275inj=e.cJS({imports:[g.ez,Lt.X,q.h,Nt,b.u5,U.z,N.D,L.d]})}}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.