PageSourceSearch

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

js aat.org.uk collected 2026-10-03 21:40:07 UTC 28,692 bytes, 1 lines download raw bytes

1import{a as S}from"./chunk-6U57NXXN.js";import{a as te}from"./chunk-JEL6HJ7P.js";import{$a as Y,Ac as K,Dc as xe,Ec as Pe,F as he,Fc as Se,Gc as Oe,Hc as Z,L as ye,Mb as j,Nb as J,Rc as ee,U as ve,V as _e,W as U,_a as ge,dc as Ce,ec as X,gb as N,ib as V,q as fe,sa as be,zc as we}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{c as z,e as me}from"./chunk-YYIIKC2W.js";import{f as pe}from"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as Q,q as ue,t as L}from"./chunk-PO2RDVKE.js";import{Bc as $,J as w,Pb as y,Rb as v,Tc as g,Uc as C,Wb as m,Xb as c,Y as D,Yb as s,Za as se,Zb as b,da as re,db as l,ec as M,f as ae,ib as ce,jc as E,lc as f,oa as x,pa as P,pb as _,pc as F,qc as T,rc as k,s as B,ub as I,vb as le,xb as de,zc as d}from"./chunk-3URBZWPM.js";import{a as ie,b as oe}from"./chunk-ODN5LVDJ.js";var R=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=le({type:t}),t.\u0275inj=re({providers:[S,L],imports:[X,Z,Q,J,V,K,U,V,Y,X,Z,Q,J,V,K,U,V,Y]}
vendor: 6,012 bytes, line 1
1);let e=t;return e})();var Me=(function(){if(typeof Map<"u")return Map;function e(t,i){var o=-1;return t.some(function(a,n){return a[0]===i?(o=n,!0):!1}),o}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(i){var o=e(this.__entries__,i),a=this.__entries__[o];return a&&a[1]},t.prototype.set=function(i,o){var a=e(this.__entries__,i);~a?this.__entries__[a][1]=o:this.__entries__.push([i,o])},t.prototype.delete=function(i){var o=this.__entries__,a=e(o,i);~a&&o.splice(a,1)},t.prototype.has=function(i){return!!~e(this.__entries__,i)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(i,o){o===void 0&&(o=null);for(var a=0,n=this.__entries__;a<n.length;a++){var r=n[a];i.call(o,r[1],r[0])}},t})()})(),ne=typeof window<"u"&&typeof document<"u"&&window.document===document,W=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ne=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(W):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),je=2;function He(e,t){var i=!1,o=!1,a=0;function n(){i&&(i=!1,e()),o&&p()}function r(){Ne(n)}function p(){var u=Date.now();if(i){if(u-a<je)return;o=!0}else i=!0,o=!1,setTimeout(r,t);a=u}return p}var We=20,Ge=["top","right","bottom","left","width","height","size","weight"],qe=typeof MutationObserver<"u",Qe=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=He(this.refresh.bind(this),We)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var i=this.observers_,o=i.indexOf(t);~o&&i.splice(o,1),!i.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(i){return i.gatherActive(),i.hasActive()});return t.forEach(function(i){return i.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ne||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ne||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var i=t.propertyName,o=i===void 0?"":i,a=Ge.some(function(n){return!!~o.indexOf(n)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Ee=function(e,t){for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},A=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||W},Fe=q(0,0,0,0);function G(e){return parseFloat(e)||0}function Ie(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce(function(o,a){var n=e["border-"+a+"-width"];return o+G(n)},0)}function Ue(e){for(var t=["top","right","bottom","left"],i={},o=0,a=t;o<a.length;o++){var n=a[o],r=e["padding-"+n];i[n]=G(r)}return i}function Ye(e){var t=e.getBBox();return q(0,0,t.width,t.height)}function Je(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return Fe;var o=A(e).getComputedStyle(e),a=Ue(o),n=a.left+a.right,r=a.top+a.bottom,p=G(o.width),u=G(o.height);if(o.boxSizing==="border-box"&&(Math.round(p+n)!==t&&(p-=Ie(o,"left","right")+n),Math.round(u+r)!==i&&(u-=Ie(o,"top","bottom")+r)),!Ke(e)){var h=Math.round(p+n)-t,O=Math.round(u+r)-i;Math.abs(h)!==1&&(p-=h),Math.abs(O)!==1&&(u-=O)}return q(a.left,a.top,p,u)}var Xe=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof A(e).SVGGraphicsElement}:function(e){return e instanceof A(e).SVGElement&&typeof e.getBBox=="function"}})();function Ke(e){return e===A(e).document.documentElement}function Ze(e){return ne?Xe(e)?Ye(e):Je(e):Fe}function et(e){var t=e.x,i=e.y,o=e.width,a=e.height,n=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,r=Object.create(n.prototype);return Ee(r,{x:t,y:i,width:o,height:a,top:i,right:t+o,bottom:a+i,left:t}),r}function q(e,t,i,o){return{x:e,y:t,width:i,height:o}}var tt=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=q(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ze(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),nt=(function(){function e(t,i){var o=et(i);Ee(this,{target:t,contentRect:o})}return e})(),it=(function(){function e(t,i,o){if(this.activeObservations_=[],this.observations_=new Me,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=i,this.callbackCtx_=o}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>
1"u"||!(Element instanceof Object))){if(!(t instanceof A(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)||(i.set(t,new tt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof A(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)&&(i.delete(t),i.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(i){i.isActive()&&t.activeObservations_.push(i)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,i=this.activeObservations_.map(function(o){return new nt(o.target,o.broadcastRect())});this.callback_.call(t,i,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Te=typeof WeakMap<"u"?new WeakMap:new Me,ke=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Qe.getInstance(),o=new it(t,i,this);Te.set(this,o)}return e})();["observe","unobserve","disconnect"].forEach(function(e){ke.prototype[e]=function(){var t;return(t=Te.get(this))[e].apply(t,arguments)}});var ot=(function(){return typeof W.ResizeObserver<"u"?W.ResizeObserver:ke})(),Re=ot;var rt=["payFees"],st=["payFeesTable"];function ct(e,t){if(e&1&&(c(0,"div",3)(1,"p",4)(2,"strong"),d(3),s()()()),e&2){let i=f();l(3),$(" Total balance outstanding \xA3",i.totalAmount," ")}}var Ve=(()=>{let t=class t{constructor(o,a){this._paymentService=o,this._datePipe=a,this.selectedPaymentsChange=new ce,this.tooltipVisible=!1,this.btn=n=>({text:"Download invoice",type:"text",theme:"default",action:{type:"callback",callback:()=>{n.data.buttonClicked=!0,n.api.refreshCells({force:!0}),this.getInvoice(n.data,n)}},gtmData:{event:"invoice_click"},aria:"Download invoice"}),this.columnDefs=[{minWidth:50,maxWidth:50,field:"value",headerName:"",cellRenderer:Se,cellRendererParams:n=>({isDisabled:!n.data.allowPayment})},{minWidth:145,maxWidth:145,headerName:"Invoice date",field:"transactionDate",sortable:!0,showDisabledCheckboxes:!0,valueFormatter:n=>this._datePipe.transform(n.value,"dd/MM/yyyy"),headerTooltip:"dd/mm/yyyy",wrapHeaderText:!0},{minWidth:300,headerName:"Product purchased",field:"productName",sortable:!0},{headerName:"Amount",minWidth:100,maxWidth:200,field:"totalAmount",sortable:!0,valueFormatter:n=>`\xA3${n.value.toFixed(2)}`},{headerName:"Total paid",minWidth:120,maxWidth:200,field:"amountPaid",sortable:!0,valueFormatter:n=>`\xA3${n.value.toFixed(2)}`},{headerName:"Balance outstanding",field:"outstandingAmount",minWidth:170,maxWidth:250,sortable:!0,valueFormatter:n=>`\xA3${n.value.toFixed(2)}`},{headerName:"",field:"buttonClicked",minWidth:220,width:220,maxWidth:220,resizable:!1,cellRenderer:Pe,cellRendererParams:n=>({buttonConfig:this.btn(n),loading:n.data.buttonClicked??!1}),cellStyle:{textAlign:"center"}}],this.gridOptions={rowSelection:"multiple",suppressMovableColumns:!0,onCellClicked:n=>{this.tooltipRowIndex=n.rowIndex;let r=n.event?.sourceCapabilities?n.event?.sourceCapabilities?.firesTouchEvents:!0;!n.data.allowPayment&&r&&(this.tooltip=n.data.disallowPaymentReason,this.startPosition={x:n.event.clientX,y:n.event.clientY},n.event.clientX,this.tooltipVisible=!this.tooltipVisible)},onCellMouseOver:n=>{this.tooltipRowIndex!=n.rowIndex&&(this.tooltipVisible=!1),this.tooltipRowIndex=n.rowIndex;let r=n.event?.sourceCapabilities?n.event?.sourceCapabilities?.firesTouchEvents:!1;!n.data.allowPayment&&r===!1&&(this.tooltip=n.data.disallowPaymentReason,this.tooltipVisible=!0)},onCellMouseOut:n=>{let r=n.event.relatedTarget;r=[...r?.classList],r.includes("ag-cell-value")||(this.tooltipVisible=!1)},onSelectionChanged:n=>{this.selectedPaymentsChange.next(n.api.getSelectedNodes().map(r=>r.data))},isRowSelectable:n=>n.data.allowPayment,tooltipMouseTrack:!0,getRowStyle:n=>{if(!n.data.allowPayment)return{background:"#eee"}},rowMultiSelectWithClick:!0,onFirstDataRendered:n=>
1{let r=sessionStorage.getItem("selectedFees");if(r){let p=JSON.parse(r);this.table.agGrid.api.forEachNode(u=>{p.products.find(h=>h.transactionId===u.data.transactionId)&&u.setSelected(!0)})}},onRowSelected:n=>{n.node.setDataValue("value",n.node.isSelected())},suppressCellFocus:!0,suppressMenuHide:!0,tooltipShowDelay:200,rowHeight:47,defaultColDef:{resizable:!0},loadingOverlayComponent:Oe,suppressDragLeaveHidesColumns:!0,suppressRowHoverHighlight:!0}}elementObserver(){new Re(()=>{this.table.agGrid.api.sizeColumnsToFit()}).observe(this.payFeesElement.nativeElement)}ngAfterViewInit(){this.elementObserver()}getInvoice(o,a){this._paymentService.generateInvoice({invoiceId:o.invoiceId,outstandingFeesId:this.outstandingFeesId}).pipe(w(1)).subscribe({next:n=>{a.node.setDataValue("buttonClicked",!1);let r=`invoice-${this._datePipe.transform(new Date,he)}.pdf`,p=window.URL.createObjectURL(n.body),u=document.createElement("a");u.href=p,u.download=r,u.click()},error:n=>{a.node.setDataValue("buttonClicked",!1)}})}onCellValueChanged(o){}};t.\u0275fac=function(a){return new(a||t)(_(S),_(L))},t.\u0275cmp=I({type:t,selectors:[["app-display-select-fees"]],viewQuery:function(a,n){if(a&1&&(F(rt,5),F(st,5)),a&2){let r;T(r=k())&&(n.payFeesElement=r.first),T(r=k())&&(n.table=r.first)}},inputs:{memberId:"memberId",outstandingFeesId:"outstandingFeesId",outStandingPayments:"outStandingPayments",totalAmount:"totalAmount"},outputs:{selectedPaymentsChange:"selectedPaymentsChange"},decls:5,vars:7,consts:[["payFees",""],["payFeesTable",""],["positionInput","follow","backgroundColor","#fac05c",1,"pay-fees__table",3,"mouseleave","cellValueChanged","tooltip","visible","startPosition","columnDefs","rowData","gridOptions"],[1,"pay-fees__total-balance"],[1,"pay-fees__total-balance__text","info"]],template:function(a,n){if(a&1){let r=M();c(0,"div",null,0)(2,"fab-table",2,1),E("mouseleave",function(){return x(r),P(n.tooltipVisible=!1)})("cellValueChanged",function(u){return x(r),P(n.onCellValueChanged(u))}),s(),y(4,ct,4,1,"div",3),s()}a&2&&(l(2),m("tooltip",n.tooltip)("visible",n.tooltipVisible)("startPosition",n.startPosition)("columnDefs",n.columnDefs)("rowData",n.outStandingPayments)("gridOptions",n.gridOptions),l(2),v(n.totalAmount?4:-1))},dependencies:[R,xe,ge],styles:[".pay-fees__total-balance[_ngcontent-%COMP%]{display:flex;flex-direction:row}.pay-fees__total-balance__text[_ngcontent-%COMP%]{width:100%}.pay-fees__total-balance__number[_ngcontent-%COMP%]{justify-self:flex-end;align-self:flex-end}"]});let e=t;return e})();var Be=(()=>{let t=class t{transform(o){return o.products.map(a=>({name:a.name,price:a.price,productId:a.productNumber}))}};t.\u0275fac=function(a){return new(a||t)},t.\u0275pipe=de({name:"formatToBasket",type:t,pure:!0});let e=t;return e})();var dt=["displaySelectFeesSection"],ut=["displaySelectFees"];function pt(e,t){e&1&&(c(0,"div"),b(1,"fab-loader"),s())}function mt(e,t){if(e&1&&(c(0,"div",6),d(1),s()),e&2){let i=f(3);l(),$(" ",i.formatErrorMessage(t)," ")}}function ft(e,t){if(e&1){let i=M();c(0,"div",20)(1,"app-display-select-fees",24,1),g(3,"async"),g(4,"async"),g(5,"async"),g(6,"async"),E("selectedPaymentsChange",function(a){x(i);let n=f(3);return P(n.setSelectedPayments(a))}),s()()}if(e&2){let i=f(3);l(),m("memberId",C(3,4,i.memberId$))("outStandingPayments",C(4,6,i.invoices$))("totalAmount",C(5,8,i.outstandingTotalAmount$))("outstandingFeesId",C(6,10,i.outstandingFeesId$))}}function ht(e,t){if(e&1&&b(0,"fab-button",23),e&2){let i=f(3);m("button",i.payButton)("enabled",(i.selectedItems==null||i.selectedItems.products==null?null:i.selectedItems.products.length)>0)}}function yt(e,t){if(e&1){let i=M();c(0,"div",4)(1,"div",6)(2,"p"),d(3," View and pay your outstanding fees under "),c(4,"a",7),E("click",function(){x(i);let a=f(2);return P(a.scrollToTable())}),d(5,"My outstanding fees"),s(),d(6," below. You also have the option to download your invoice. To make a payment, select the relevant invoice line and then click \u201CPay selected invoices\u201D. You can pay for more than one invoice at a time. "),s(),c(7,"p"),d(8," If you've recently made a payment, the invoice may still show in the table. Please allow 24 hours for this payment to be processed. If it's still showing after 24 hours, please contact us on "),c(9,"a",8),d(10,"+44 (0)20 3735 2468"),s(),d(11," or "),c(12,"a",9),d(13,"[email protected]"),s(),d(14,". "),s(),c(15,"div",10)(16,"fab-accordion",11)(17,"div",12)(18,"p"),d(19," If you're a professional member, you'll need to complete your "),c(20,"a",13),d(21,"membership renewal"),s(),d(22," which includes payment. "),s(),c(23,"p"),d(24," If you're an AAT full or fellow member, you can check if you're eligible and apply for a fee reduction by using the "),c(25,"a",14),d(26," Reduced fee application service"),s(),d(27,". "),s()()(),c(28,"fab-accordion",15)(29,"div",12)(30,"p"),d(31," If you're a licensed member, your licence fee is paid when completing your "),c(32,"a",16),d(33,"licence renewal"),s(),d(34,". You can't pay your licence fees on this service. "),s()()(),c(35,"fab-accordion",17)(36,"div",12)(37,"p"),d(38," If you pay your renewal fees by Direct Debit, you won't be able to pay them using this service. However, you can download the invoice for them. You can view or amend your Direct Debit payment schedule on the "),c(39,"a",18),d(40,"Direct Debit service"),s(),d(41,". "),s()()()()(),c(42,"div",null,0)(44,"h2",19),d(45,"My outstanding fees"),s(),y(46,mt,2,1,"div",6),g(47,"async"),y(48,ft,7,12,"div",20),g(49,"async"),c(50,"div",21),b(51,"fab-button",22),y(52,ht,1,2,"fab-button",23),g(53,"async"),s(),b(54,"fab-button",22),s()()}if(e&2){let i,o=f(2);l(16),m("iconArrowLeft",!1),l(12),m("iconArrowLeft",!1),l(7),m("iconArrowLeft",!1),l(11),v((i=C(47,8,o.error$))?46:-1,i),l(2),v(C(49,10,o.error$)?-1:48),l(3),m("button",o.paymentHistory),l(),v(C(53,12,o.error$)?-1:52),l(2),m("button",o.cancelButton)}}function vt(e,t){if(e&1){let i=M();c(0,"div",5)(1,"fab-payment-page",25),E("onBackButtonClick",function(){x(i);let a=f(2);return P(a.goToStep(0))})("onFormSubmit",function(a){x(i);let n=f(2);return P(n.submit(a))}),s(),b(2,"fab-summary",26),g(3,"formatToBasket"),s()}if(e&2){let i=f(2);l(),m("paymentConfig",i.selectedItems),l(),m("basketItems",C(3,3,i.selectedItems))("total",i.selectedItems.totalPrice)}}
1function _t(e,t){if(e&1&&(c(0,"div"),y(1,yt,55,14,"div",4),y(2,vt,4,5,"div",5),s()),e&2){let i=f();l(),v(i.step===0?1:-1),l(),v(i.step===1?2:-1)}}var $e=(()=>{let t=class t{constructor(o,a,n,r){this._authService=o,this._paymentService=a,this._router=n,this._activatedRoute=r,this.step=0,this.loading=!1,this.destroy$=new ae,this.payButton={text:"Pay selected invoices",type:"primary",action:{type:"callback",callback:()=>{this.goToStep(1),window.scroll({top:0,behavior:"smooth"})}},aria:"Pay selected invoices"},this.cancelButton={text:"Go back to MyAAT dashboard",type:"text",action:{type:"link",useRouterLink:!0,link:"/myaat/dashboards"},aria:"Go back to MyAAT dashboard"},this.paymentHistory={text:"View my payment history",type:"secondary",action:{type:"link",useRouterLink:!0,link:"/my-account/payment-history"},aria:"View my payment history"},this.memberId$=this._authService.getCurrentUser().pipe(B(p=>p["custom:contact_id"])),this.outStandingPayments$=this._paymentService.outStandingPayments$.pipe(D(p=>!!p)),this.outstandingFeesId$=this._paymentService.outstandingFeesId$.pipe(D(p=>!!p)),this.outstandingTotalAmount$=this.outStandingPayments$.pipe(B(p=>p.invoices.reduce((u,h)=>u+h.outstandingAmount,0).toFixed(2))),this.error$=this._paymentService.error$,this.invoices$=this.outStandingPayments$.pipe(B(p=>p.invoices.map(u=>{let h=this.sessionSelectedItems?.products?.find(ze=>ze.transactionId===u.transactionId),O=oe(ie({},u),{buttonClicked:!1,value:!1});return h&&(O.value=!0),O}))),this.standardHeroData={title:"Pay outstanding fees",expanded:!1,toplineLink:null,authorline:null,sponsorshipDetails:null,isContentDetail:!1,isContentArticle:!1,align:"left"}}ngOnInit(){this._paymentService.setOutstandingPaymentsObservables();let o=sessionStorage.getItem("selectedFees");o&&(this.sessionSelectedItems=JSON.parse(o),this._activatedRoute.queryParams.subscribe(a=>{a.step&&(this.loading=!0,this.invoices$.pipe(w(1)).subscribe(n=>{let r=this.sessionSelectedItems.products.map(u=>u.transactionId),p=n.filter(u=>r.includes(u.transactionId));this.outStandingPayments$.pipe(w(1)).subscribe(u=>{this.selectedItems={totalPrice:p.reduce((h,O)=>h+O.outstandingAmount,0),outstandingFeesId:u.outstandingFeesId,products:p.map(h=>({name:h.productName,discount:0,invoiceId:h.invoiceId,productNumber:h.productNumber,price:h.outstandingAmount,transactionId:h.transactionId}))},this.loading=!1}),this.step=+a.step,this._router.navigate(["."],{relativeTo:this._activatedRoute})}))}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}submit(o){this.outstandingFeesId$.pipe(D(a=>!!a),w(1)).subscribe(a=>{let n={invoiceIds:this.selectedItems.products.map(r=>r.invoiceId),outstandingFeesId:a,destinationUrl:`${te.BASE_URL}${window.location.pathname}/confirmation`,failedPaymentUrl:`${te.BASE_URL}${window.location.pathname}/confirmation`,paymentAddress:{address:o.address}};this._paymentService.payment(n).pipe(w(1)).subscribe(r=>{window.location.href=r.paymentGatewayUrl})})}setSelectedPayments(o){this.outStandingPayments$.pipe(D(a=>!!a),w(1)).subscribe(a=>{this.selectedItems={totalPrice:o.reduce((n,r)=>n+r.outstandingAmount,0),outstandingFeesId:a.outstandingFeesId,products:o.map(n=>({name:n.productName,discount:0,invoiceId:n.invoiceId,productNumber:n.productNumber,price:n.outstandingAmount,transactionId:n.transactionId}))},sessionStorage.setItem("selectedFees",JSON.stringify(this.selectedItems))})}formatErrorMessage(o){return o.status===404?"You have no outstanding fees.":o.status===422&&o.error.message?o.error.message:"Something went wrong. Please try again later."}goToStep(o){this.step=o,window.scroll({top:0,behavior:"smooth"})}scrollToTable(){let o=this.displaySelectFeesSection.nativeElement.getBoundingClientRect().top-64;window.scrollTo({top:o,behavior:"smooth"})}};t.\u0275fac=function(a){return new(a||t)(_(fe),_(S),_(me),_(z))},t.\u0275cmp=I({type:t,selectors:[["app-pay-fees"]],viewQuery:function(a,n){if(a&1&&(F(dt,5),F(ut,5)),a&2){let r;T(r=k())&&(n.displaySelectFeesSection=r.first),T(r=k())&&(n.displaySelectFees=r.first)}},decls:4,vars:4,consts:[["displaySelectFeesSection",""],["displaySelectFees",""],[1,"pay-fees-container"],[1,"standard-hero",3,"content","colOffset"],[1,"main__container","col-lg-6","col-lg-offset-3","col-md-10","col-md-offset-1","col-xs-10","col-xs-offset-1"],[1,"payment","col-lg-6","col-lg-offset-3","col-md-10","col-md-offset-1","col-xs-10","col-xs-offset-1"],[1,"info-container","context"],[3,"click"],["href","tel:+442037352468"],["href","mailto:[email protected]"],[1,"accordion-container"],["title","Professional member information",3,"iconArrowLeft"],["body",""],["href","/registration/membership-renewal"],["href","/payments/reduced-fee"],["title","Licensed member information",3,"iconArrowLeft"],["href","/registration/licence-renewal"],["title","Direct Debit payments",3,"iconArrowLeft"],["href","/payments/direct-debit"],[1,"sub-header"],[1,"select-fees"],[1,"action-buttons"],[3,"button"],[1,"pay-selected-invoices-button",3,"button","enabled"],[3,"selectedPaymentsChange","memberId","outStandingPayments","totalAmount","outstandingFeesId"],[1,"payment__page",3,"onBackButtonClick","onFormSubmit","paymentConfig"],["headerText","Outstanding fees",1,"payment__summary",3,"basketItems","total"]],template:function(a,n){a&1&&(c(0,"div",2),b(1,"fab-standard-hero",3),y(2,pt,2,0,"div"),y(3,_t,3,2,"div"),s()),a&2&&(l(),m("content",n.standardHeroData)("colOffset",1),l(),v(n.loading?2:-1),l(),v(n.loading?-1:3))},dependencies:[R,Ce,j,N,we,_e,Ve,be,Be,ue],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.pay-fees-container[_ngcontent-%COMP%]{background-color:#f9f9f9;padding-bottom:5%}@media (min-width: 992px){.pay-fees-container[_ngcontent-%COMP%]{flex-direction:row}}.pay-fees-container[_ngcontent-%COMP%]   .standard-hero[_ngcontent-%COMP%]{background-color:#e6e6e6;text-align:start;justify-content:flex-start}.pay-fees-container[_ngcontent-%COMP%]   .standard-hero[_ngcontent-%COMP%]     .standard-hero{background:inherit}.pay-fees-container[_ngcontent-%COMP%]   .accordion-container[_ngcontent-%COMP%]{margin-top:3%;margin-bottom:1%}
1.pay-fees-container[_ngcontent-%COMP%]   .sub-header[_ngcontent-%COMP%]{padding-bottom:3%}.pay-fees-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{margin-top:50px;margin-bottom:20px;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 992px){.pay-fees-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{flex-direction:row}}.pay-fees-container[_ngcontent-%COMP%]   .select-fees[_ngcontent-%COMP%]{display:flex;flex-direction:column}.pay-fees-container[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.pay-fees-container[_ngcontent-%COMP%]   .payment__page[_ngcontent-%COMP%]{width:100%}.pay-fees-container[_ngcontent-%COMP%]   .payment__summary[_ngcontent-%COMP%]{width:96%;padding-left:2%}@media (min-width: 992px){.pay-fees-container[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{flex-direction:row}.pay-fees-container[_ngcontent-%COMP%]   .payment__page[_ngcontent-%COMP%]{width:50%}.pay-fees-container[_ngcontent-%COMP%]   .payment__summary[_ngcontent-%COMP%]{padding-top:24px;width:50%;padding-left:20px}}  .main-panel{background-color:#f9f9f9!important;max-height:initial!important;height:initial!important}"]});let e=t;return e})();function bt(e,t){e&1&&b(0,"fab-loader")}function gt(e,t){if(e&1&&(c(0,"div"),y(1,bt,1,0,"fab-loader"),s()),e&2){let i=f();l(),v(i.loading?1:-1)}}function Ct(e,t){e&1&&(c(0,"div",3)(1,"h2"),d(2,"Your payment has not been successful"),s(),c(3,"p"),d(4," You may need to update your payment details or try another method of payment. By clicking \u201CGo back\u201D, you\u2019ll be taken back to the payment summary page. "),b(5,"br")(6,"br"),c(7,"a",8),d(8,"Go back"),s()()())}function wt(e,t){if(e&1&&b(0,"div",4),e&2){let i=f(2);m("innerHTML",i.content,se)}}function xt(e,t){if(e&1&&(c(0,"div")(1,"div",2),y(2,Ct,9,0,"div",3),y(3,wt,1,1,"div",4),c(4,"div",5)(5,"a",6),d(6,"Go back to MyAAT dashboard"),s(),b(7,"fab-button",7),s()()()),e&2){let i=f();l(2),v(i.error?2:-1),l(),v(i.error?-1:3),l(4),m("button",i.printButton)}}var Le=(()=>{let t=class t{constructor(o,a,n,r){this._paymentService=o,this._domSanitizer=a,this._gtmService=n,this.activatedRoute=r,this.loading=!0,this.error=!1,this.printButton={text:"Print this page",action:{type:"callback",callback:()=>window.print()},type:"secondary",glyph:{icon:ye.PRINT},aria:"Print this page"},this.standardHeroData={title:"Pay outstanding fees",expanded:!1,toplineLink:null,authorline:null,sponsorshipDetails:null,isContentDetail:!1,isContentArticle:!1,align:"left"}}ngOnInit(){this.activatedRoute.queryParams.subscribe(o=>{o.state!=="ok"?(this.error=!0,this.loading=!1):this._paymentService.getPaymentConfirmation(o.recordId).subscribe({next:a=>{this.content=this._domSanitizer.bypassSecurityTrustHtml(a.content),this.loading=!1,this._gtmService.trigger("invoice_transaction_complete",{referenceNumber:a.paymentReference,value:a.amount})},error:a=>{this.error=!0,this.loading=!1}})})}};t.\u0275fac=function(a){return new(a||t)(_(S),_(pe),_(ve),_(z))},t.\u0275cmp=I({type:t,selectors:[["app-pay-fees-confirmation"]],decls:4,vars:3,consts:[[1,"pay-fees__confirmation-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"],[1,"info-container","context",3,"innerHTML"],[1,"action-buttons"],["href","/myaat/dashboards",1,"dont-print"],[1,"dont-print",3,"button"],["href","/my-account/pay-fees?step=1"]],template:function(a,n){a&1&&(c(0,"div",0),b(1,"fab-standard-hero",1),y(2,gt,2,1,"div"),y(3,xt,8,3,"div"),s()),a&2&&(l(),m("content",n.standardHeroData),l(),v(n.loading?2:-1),l(),v(n.loading?-1:3))},dependencies:[R,j,N],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.pay-fees__confirmation-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.standard-hero[_ngcontent-%COMP%]{background-color:#e6e6e6;text-align:start;justify-content:flex-start}.standard-hero[_ngcontent-%COMP%]     .standard-hero{background:inherit}  .main-panel{background-color:#f9f9f9!important;max-height:initial!important;height:initial!important}.action-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;justify-content:space-between}@media (min-width: 992px){.action-buttons[_ngcontent-%COMP%]{flex-direction:row}}"]});let e=t;return e})();var nn=[{path:"",component:$e,canActivate:[ee]},{path:"confirmation",component:Le,canActivate:[ee]}];export{nn as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.