PageSourceSearch

https://www.aat.org.uk/csr/chunk-3GAQXZMO.js

js aat.org.uk collected 2026-10-03 21:40:05 UTC 5,096 bytes, 4 lines download raw bytes

1import{a}from"./chunk-NB22OXBH.js";import{Kb as Y,Lb as j,Mb as q,Nb as y,Ob as N,Ua as E,W as h,ib as f,q as L}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import{K as m,L as p}from"./chunk-76O7YCWW.js";import{e as W}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as T,g as H,t as O}from"./chunk-PO2RDVKE.js";import{J as g,Lc as P,Wb as d,Xb as c,Yb as I,Zb as k,bb as D,da as v,db as u,ec as F,jc as l,oa as b,pa as w,pb as n,pc as _,qc as x,rc as M,ub as C,vb as S}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var A={title:"My details",expanded:!1,toplineLink:null,authorline:null,sponsorshipDetails:null,isContentDetail:!1,isContentArticle:!1,align:"left"};var V=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=S({type:i}),i.\u0275inj=v({providers:[O],imports:[T,p,m,y,f,h,p,m,E,y,f,h]});let o=i;return o})();var R=["editDetailsForm"],ae=(()=>{let i=class i{canDeactivate(){return this.preventDoubleConfirmation?!0:this.editDetailsForm.form.pristine}constructor(e,t,s,r){this.authService=e,this.router=t,this.location=s,this.editDetailsCanDeactivate=r,this.editDetailsFormContent={floatingConfirmButton:!0,introCopy:"intro copy",isScud:!1},this.editDetailsInfo=`<p>You can use this service to view and update the details we hold about you. It's important to ensure your data is kept up to date so we can make sure important information reaches you. For details about how we process your data, see our <a href="/policies/privacy" target="_blank">privacy notice</a>.</p>
2    <p>Once you've made an update, you'll need to confirm it by clicking the "Confirm my details" button at the bottom of the page. Your updates won't be saved until they've been confirmed. You can make more than one update and then confirm all updates collectively.</p>`,this.scudDetailsInfo=`<p>Please view and update the details we hold about you. It's important to ensure your data is kept up to date so we can make sure important information reaches you. For details about how we process your data, see our <a href="/policies/privacy" target="_blank">privacy policy</a>.</p> 
3    <p>You'll need to click the "Confirm my details" button at the bottom of the page. If you've made any updates, they won't be saved until they've been confirmed. You can make more than one update and then confirm all updates collectively.</p>`,this.isLoading=!1,this.isScud=!1,this.isStudent=!1,this.isMember=!1,this.isLicensed=!1,this.standardHeroData=A,this.preventDoubleConfirmation=!1}ngOnInit(){this.authService.logoutInitiated$.subscribe(e=>{e&&this.editDetailsCanDeactivate.canDeactivate(this)&&(this.preventDoubleConfirmation=!0,this.authService.logout().subscribe())}),this.authService.getCurrentUser().pipe(g(1)).subscribe(e=>{this.isStudent=e["cognito:groups"].includes("student"),this.isMember=e["cognito:groups"].includes("member"),this.isLicensed=this._checkIfLicensed(e),this.isStudent&&this.location.path().includes("confirm-details")&&(this.isScud=!0,sessionStorage.getItem("redirect")!==void 0&&sessionStorage.getItem("redirect")!==null&&(this.redirectPathFromScud=sessionStorage.getItem("redirect"))),this._contentSetUp()})}afterConfirm(e){e&&this.redirectPathFromScud&&(this.editDetailsForm.form.markAsPristine(),this.authService.refresh().subscribe(t=>{t&&this.redirectPathFromScud&&setTimeout(()=>{this.router.navigate([this.redirectPathFromScud])},50)}))}_contentSetUp(){this.editDetailsFormContent.introCopy=this.isScud?this.scudDetailsInfo:this.editDetailsInfo,this.editDetailsFormContent.isScud=this.isScud,this.standardHeroData.title=this.isScud?"Review and confirm your details":"My details"}_checkIfLicensed(e){return e["custom:membership_type"]!==void 0&&e["cognito:groups"].includes("member")?e["custom:membership_type"].includes("licensed"):!1}};i.\u0275fac=function(t){return new(t||i)(n(L),n(W),n(H),n(a))},i.\u0275cmp=C({type:i,selectors:[["app-details"]],viewQuery:function(t,s){if(t&1&&_(R,5),t&2){let r;x(r=M())&&(s.editDetailsForm=r.first)}},hostBindings:function(t,s){t&1&&l("beforeunload",function(){return s.canDeactivate()},D)},features:[P([a])],decls:5,vars:2,consts:[["editDetailsForm",""],[1,"details-container"],[1,"standard-hero",3,"content"],[1,"main__container","col-lg-6","col-lg-offset-3","col-md-8","col-md-offset-2","col-xs-10","col-xs-offset-1"],[3,"confirm","content"]],template:function(t,s){if(t&1){let r=F();c(0,"div",1),k(1,"fab-standard-hero",2),c(2,"div",3)(3,"fab-edit-details-form",4,0),l("confirm",function(B){return b(r),w(s.afterConfirm(B))}),I()()()}
3t&2&&(u(),d("content",s.standardHeroData),u(2),d("content",s.editDetailsFormContent))},dependencies:[V,q,Y,N,j],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.details-container .standard-hero{background-color:#e6e6e6;text-align:start;justify-content:flex-start}.main-panel{background-color:#f9f9f9;max-height:initial;height:initial}
4`],encapsulation:2});let o=i;return o})();export{ae as DetailsComponent};

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.