PageSourceSearch

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

js aat.org.uk collected 2026-10-03 21:40:08 UTC 14,916 bytes, 1 lines download raw bytes

1import{a as M}from"./chunk-6U57NXXN.js";import{a as ot,b as at}from"./chunk-2L7BC3FF.js";import"./chunk-JEL6HJ7P.js";import{$a as F,Hc as R,Mb as it,Nb as L,_a as et,fb as nt,gb as O,ib as I,n as k,o as tt,sa as P}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import{ra as X,sa as Z}from"./chunk-WPHW6CRH.js";import{K as W,h as J,o as K}from"./chunk-76O7YCWW.js";import"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as H,q,t as v}from"./chunk-PO2RDVKE.js";import{Ab as A,Bc as b,Pb as m,Rb as p,Tb as D,Tc as h,Ub as T,Uc as x,Vb as E,Vc as U,Wb as y,Xb as a,Yb as r,Yc as G,Zb as _,da as V,db as l,ec as B,ha as j,jc as g,lc as s,oa as u,pa as f,pb as $,pc as Y,qc as N,rc as Q,ub as w,vb as z,zc as d}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var S=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=z({type:n}),n.\u0275inj=V({providers:[M,v],imports:[H,R,L,I,F,P,H,R,L,I,F]});let t=n;return t})();function mt(t,n){if(t&1&&(a(0,"div",2)(1,"p",10),d(2),r(),a(3,"p",11),d(4),r()()),t&2){let i=n.$implicit;l(2),b(" ",i.product," "),l(2),b("\xA3",i.amount)}}function pt(t,n){if(t&1&&_(0,"fab-loader",8),t&2){let i=s(3);y("size",i.LoaderSize.SMALL)}}function yt(t,n){if(t&1&&_(0,"fab-button",9),t&2){let i=s().$implicit,o=s(2);y("button",o.btn(i))}}function _t(t,n){if(t&1&&_(0,"fab-button",9),t&2){let i=s().$implicit,o=s(2);y("button",o.btnResend(i))}}function ut(t,n){if(t&1&&(a(0,"div",1),T(1,mt,5,2,"div",2,D),a(3,"div",3)(4,"h5",4)(5,"strong",5),d(6," Payment date: "),_(7,"br"),d(8),h(9,"date"),r()(),a(10,"h5",6)(11,"strong"),d(12," Total amount paid: "),_(13,"br"),d(14),r()(),a(15,"div",7),m(16,pt,1,1,"fab-loader",8),m(17,yt,1,1,"fab-button",9),m(18,_t,1,1,"fab-button",9),r()()()),t&2){let i=n.$implicit;l(),E(i.transactions),l(4),y("tooltip","dd/mm/yyyy")("positionInput","follow"),l(3),b("",U(9,7,i.paymentDate,"dd/MM/yyyy")," "),l(6),b(" \xA3",i.total," "),l(2),p(i.buttonClicked?16:-1),l(),p(i.buttonClicked===void 0?17:-1),l(),p(i.buttonClicked===!1?18:-1)}}function ft(t,n){if(t&1&&(a(0,"div",0),T(1,ut,19,10,"div",1,D),r()),t&2){let i=s();l(),E(i.payments)}}var lt=(()=>{let n=class n{constructor(o){this._paymentService=o,this.LoaderSize=nt,this.btn=e=>({text:"Email my receipt",type:"text",action:{type:"callback",callback:()=>{e.buttonClicked=!0,this._paymentService.getReceipt(e.financialAdjustmentId).subscribe({next:()=>{e.buttonClicked=!1},error:()=>{e.buttonClicked=!1}})}},aria:"Email my receipt"}),this.btnResend=e=>({text:"Resend email receipt",type:"text",action:{type:"callback",callback:()=>{e.buttonClicked=!0,this._paymentService.getReceipt(e.financialAdjustmentId).subscribe({next:()=>{e.buttonClicked=!1},error:()=>{e.buttonClicked=!1}})}},aria:"Resend email receipt"})}};n.\u0275fac=function(e){return new(e||n)($(M))},n.\u0275cmp=w({type:n,selectors:[["app-display-fee"]],inputs:{payments:"payments"},decls:1,vars:1,consts:[[1,"display-fee__container"],[1,"display-fee__entry","info-container","context"],[1,"display-fee__footer"],[1,"display-fee__header"],[1,"display-fee__header__entry__date"],[3,"tooltip","positionInput"],[1,"display-fee__header__entry__amount"],[1,"display-fee__header__entry__button"],[3,"size"],[3,"button"],[1,"display-fee__footer__name"],[1,"display-fee__footer__amount"]],template:function(e,c){e&1&&m(0,ft,3,0,"div",0),e&2&&p(c.payments?0:-1)},dependencies:[S,O,et,P,v],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.payment-history-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.payment-history-container[_ngcontent-%COMP%]   .payment-history-error[_ngcontent-%COMP%]{margin-bottom:0}.payment-history-container[_ngcontent-%COMP%]   .sub-header[_ngcontent-%COMP%]{padding-bottom:3%}.payment-history-container[_ngcontent-%COMP%]   .date-range-picker[_ngcontent-%COMP%]{display:block;width:261px;margin-left:10px;margin-top:10px}.payment-history-container[_ngcontent-%COMP%]   .standard-hero[_ngcontent-%COMP%]{background-color:#e6e6e6;text-align:start;justify-content:flex-start}.payment-history-container[_ngcontent-%COMP%]   .standard-hero[_ngcontent-%COMP%]     .standard-hero{background:inherit}.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{padding-top:18px;display:flex;flex-direction:column-reverse;justify-content:space-between}.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{margin-bottom:12px}@media (min-width: 992px){.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{align-items:center;flex-direction:row}.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{margin-bottom:0}}.payment-history-container[_ngcontent-%COMP%]   .payment-history[_ngcontent-%COMP%]{display:flex;flex-direction:column}  .main-panel{background-color:#f9f9f9!important;max-height:initial!important;height:initial!important}.info-container[_ngcontent-%COMP%]{margin-bottom:5%;background-color:#fff}.context[_ngcontent-%COMP%]{padding:20px;border:thin solid rgb(229.5,229.5,229.5)}.display-fee__entry[_ngcontent-%COMP%]{margin-bottom:5%}.display-fee__header[_ngcontent-%COMP%]{display:flex;border:solid 1px rgb(229.5,229.5,229.5);border-radius:3px 3px 0 0;margin-top:-1px}.display-fee__header__entry[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:12px}.display-fee__header__entry__date[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:12px;display:flex;flex-direction:column;min-width:40%;padding-right:2%;padding-left:2%}.display-fee__header__entry__date[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{width:fit-content}
1.display-fee__header__entry__amount[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:12px;display:flex;flex-direction:column;min-width:30%;padding-right:2%;max-width:30%}.display-fee__header__entry__button[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:12px;padding-right:2%;min-width:22%;max-width:22%;display:flex;justify-content:center}.display-fee__footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;border:solid 1px rgb(229.5,229.5,229.5);border-radius:0 0 3px 3px;padding:2%}.display-fee__footer__name[_ngcontent-%COMP%]{min-width:40%;max-width:40%}.display-fee__footer__amount[_ngcontent-%COMP%]{width:30%;padding-right:2%}"]});let t=n;return t})();function gt(t,n){if(t&1){let i=B();a(0,"div",16)(1,"div",17)(2,"p-button",18),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(0,"days"))}),r()(),a(3,"div",19)(4,"p-button",20),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(7,"days"))}),r(),a(5,"p-button",21),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(30,"days"))}),r()(),a(6,"div",19)(7,"p-button",22),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(3,"months"))}),r(),a(8,"p-button",23),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(6,"months"))}),r()(),a(9,"div",19)(10,"p-button",24),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(1,"years"))}),r(),a(11,"p-button",25),g("click",function(){u(i);let e=s();return f(e.onPresetRangeSelection(5,"years"))}),r()()()}}function ht(t,n){t&1&&(a(0,"div"),_(1,"fab-loader"),r())}function Ct(t,n){if(t&1&&(a(0,"div",12),d(1),r()),t&2){let i=s();l(),b(" ",i.formatErrorMessage(n)," ")}}function bt(t,n){if(t&1&&_(0,"app-display-fee",27),t&2){let i=s();y("payments",i)}}function xt(t,n){t&1&&m(0,bt,1,1,"app-display-fee",27),t&2&&p(n.length>0?0:-1)}function Pt(t,n){if(t&1&&(a(0,"div",26),m(1,xt,1,1),h(2,"async"),r()),t&2){let i,o=s(2);l(),p((i=x(2,1,o.paymentHistory$))?1:-1,i)}}function Mt(t,n){if(t&1&&(a(0,"div"),m(1,Pt,3,3,"div",26),h(2,"async"),r()),t&2){let i=s();l(),p(x(2,1,i.paymentLoading$)?-1:1)}}var Gt=(()=>{let n=class n{constructor(){this._paymentService=j(M),this.todayDate=new Date,this.paymentHistory$=this._paymentService.paymentHistory$,this.paymentLoading$=this._paymentService.paymentHistoryLoading$,this.error$=this._paymentService.error$,this.cancelButton={action:{type:"link",useRouterLink:!0,link:"/myaat/dashboards"},text:"Go back to MyAAT dashboard",type:"text",aria:"Go back to MyAAT dashboard"},this.submitButton={text:"Pay outstanding fees",type:"primary",action:{type:"link",link:"/my-account/pay-fees",useRouterLink:!0,openInNewTab:!1},aria:"Pay outstanding fees"},this.standardHeroData={title:"Payment history",expanded:!1,toplineLink:null,authorline:null,sponsorshipDetails:null,isContentDetail:!1,isContentArticle:!1,align:"left"}}ngOnInit(){this.onPresetRangeSelection(1,"years")}dateChanged(o){this.dateSelection=o,this.getPaymentHistory()}onPresetRangeSelection(o,e){let c=new Date;switch(e){case"days":c.setDate(this.todayDate.getDate()-(o>0?o-1:o)),c.setUTCHours(0,0,0,0);break;case"months":c.setMonth(this.todayDate.getMonth()-o);break;case"years":c.setFullYear(this.todayDate.getFullYear()-o);break}this._datePicker&&(this._datePicker.overlayVisible=!1),this.dateChanged([c,this.todayDate])}getPaymentHistory(){if(this.dateSelection?.length!==2)return;let o=new Date(this.dateSelection[0]);o.setUTCHours(0,0,0,0);let e=new Date(this.dateSelection[1]);e.setUTCHours(0,0,0,0),this._paymentService.setPaymentHistoryObservables({from:o.toISOString(),to:e.toISOString()})}formatErrorMessage(o){return o.status===404?"You have no payment history for the selected dates.":"Something went wrong. Please try again later."}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=w({type:n,selectors:[["app-payment-history"]],viewQuery:function(e,c){if(e&1&&Y(k,5),e&2){let C;N(C=Q())&&(c._datePicker=C.first)}},decls:35,vars:16,consts:[["datePicker",""],["buttonbar",""],[1,"payment-history-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"],[1,"info-container","context"],["href","tel:+442037352468"],["href","mailto:[email protected]","target","_blank"],[1,"my-5","w-3/4","sm:w-md","md:w-sm"],["variant","on"],["dateFormat","dd/mm/yy","inputId","date_range_selection","data-auto","dateRangeSelection","selectionMode","range","fluid","",3,"ngModelChange","ngModel","showIcon","showOnFocus","showButtonBar"],["for","date_range_selection"],[1,"info-container","context","payment-history-error"],[1,"action-buttons"],[3,"button"],[1,"submit-button",3,"button"],[1,"flex","flex-col","gap-2","w-full"],[1,"flex","justify-end","w-full"],["size","small","label","Today","data-auto","todayButton",1,"w-3/7",3,"click"],[1,"flex","justify-between","w-full"],["size","small","label","Last 7 days","data-auto","last7daysButton",1,"w-3/7",3,"click"],["size","small","label","Last 30 days","data-auto","last30daysButton",1,"w-3/7",3,"click"],["size","small","label","Last 3 months","data-auto","last3monthsButton",1,"w-3/7",3,"click"],["size","small","label","Last 6 months","data-auto","last6monthsButton",1,"w-3/7",3,"click"],["size","small","label","Last year","data-auto","lastYearButton",1,"w-3/7",3,"click"],["size","small","label","Last 5 years","data-auto","last5YearsButton",1,"w-3/7",3,"click"],[1,"payment-history"],[3,"payments"]],template:function(e,c){if
1(e&1){let C=B();a(0,"div",2),_(1,"fab-standard-hero",3),a(2,"div",4)(3,"div",5)(4,"p"),d(5," You can view the payments you\u2019ve made over the last five years below and select the payment date range you\u2019d like to view. The initial load will display your payment history for the last year. By clicking on \u201CEmail receipt\u201D, the receipt will be emailed to your registered email address. Please check your junk or spam folder if you can\u2019t see the email in your inbox. "),r(),a(6,"p"),d(7," Please be aware that only card and Direct Debit payments will be displayed below. BACS payments won\u2019t be displayed. "),r(),a(8,"p"),d(9," If you\u2019ve recently made a payment, the payment may not show below just yet. Please allow 24 hours for the payment to be processed. If it\u2019s still not showing after 24 hours, please contact us on "),a(10,"a",6),d(11,"+44 (0)20 3735 2468"),r(),d(12," or "),a(13,"a",7),d(14,"[email protected]"),r(),d(15,". "),r()(),a(16,"h3"),d(17,"My payment history"),r(),a(18,"div",8)(19,"p-floatlabel",9)(20,"p-datepicker",10,0),g("ngModelChange",function(st){return u(C),f(c.dateChanged(st))}),A(22,gt,12,0,"ng-template",null,1,G),r(),a(24,"label",11),d(25,"Payment date range"),r()()(),m(26,ht,2,0,"div"),h(27,"async"),m(28,Ct,2,1,"div",12),h(29,"async"),m(30,Mt,3,3,"div"),h(31,"async"),a(32,"div",13),_(33,"fab-button",14)(34,"fab-button",15),r()()()}if(e&2){let C;l(),y("content",c.standardHeroData),l(19),y("ngModel",c.dateSelection)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0),l(6),p(x(27,10,c.paymentLoading$)?26:-1),l(2),p((C=x(29,12,c.error$))?28:-1,C),l(2),p(x(31,14,c.error$)?-1:30),l(3),y("button",c.cancelButton),l(),y("button",c.submitButton)}},dependencies:[S,it,O,P,lt,tt,k,at,ot,Z,X,W,J,K,q],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.payment-history-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.payment-history-container[_ngcontent-%COMP%]   .payment-history-error[_ngcontent-%COMP%]{margin-bottom:0}.payment-history-container[_ngcontent-%COMP%]   .sub-header[_ngcontent-%COMP%]{padding-bottom:3%}.payment-history-container[_ngcontent-%COMP%]   .date-range-picker[_ngcontent-%COMP%]{display:block;width:261px;margin-left:10px;margin-top:10px}.payment-history-container[_ngcontent-%COMP%]   .standard-hero[_ngcontent-%COMP%]{background-color:#e6e6e6;text-align:start;justify-content:flex-start}.payment-history-container[_ngcontent-%COMP%]   .standard-hero[_ngcontent-%COMP%]     .standard-hero{background:inherit}.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{padding-top:18px;display:flex;flex-direction:column-reverse;justify-content:space-between}.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{margin-bottom:12px}@media (min-width: 992px){.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{align-items:center;flex-direction:row}.payment-history-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .submit-button[_ngcontent-%COMP%]{margin-bottom:0}}.payment-history-container[_ngcontent-%COMP%]   .payment-history[_ngcontent-%COMP%]{display:flex;flex-direction:column}  .main-panel{background-color:#f9f9f9!important;max-height:initial!important;height:initial!important}.info-container[_ngcontent-%COMP%]{margin-bottom:5%;background-color:#fff}.context[_ngcontent-%COMP%]{padding:20px;border:thin solid rgb(229.5,229.5,229.5)}"]});let t=n;return t})();export{Gt as PaymentHistoryComponent};

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.