PageSourceSearch

https://web.tide.co/17243.f20aa3175d43877d.js

js tide.co collected 2026-10-02 03:14:02 UTC 113,125 bytes, 1 lines download raw bytes

1(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[17243],{84003(G,R,r){r.d(R,{Fw:()=>o,M4:()=>f,XD:()=>y,_k:()=>w,eF:()=>O});var o=function(i){return i.SELF_ASSESSMENT="SELF_ASSESSMENT",i.CUSTOM="CUSTOM",i.CORPORATION_TAX="CORPORATION_TAX",i}(o||{}),f=function(i){return i.SELF_ASSESSMENT="Self assessment",i.CORPORATION_TAX="Corporation tax",i.TAX_TARGET_PROGRESS="Tax target progress",i.TAX_GOAL="Your tax goal",i.TAX_GOAL_PROGRESS="Tax goal progress",i}(f||{}),y=function(i){return i.INIT="INITIATED",i.FAILED="FAILED",i.ENABLED="ENABLED",i}(y||{}),w=function(i){return i.Inprogress="IN_PROGRESS",i.Enabled="ENABLED",i.Closed="CLOSED",i}(w||{}),O=function(i){return i.MainTaxBand="Main",i.SmallTaxBand="Small",i.MarginalTaxBand="Marginal relief",i}(O||{})},3849(G,R,r){r.d(R,{Z:()=>i});var o=r(66992),f=r(88830),d=r(59868),v=r(63880),y=r(93164),w=r(44238),O=r(1346);let i=(()=>{class S{constructor(m,P){this._apiService=m,this._environment=P}createTaxAccount(m={taxAccountSaverEnabled:!1}){const P=(0,d.getApiV4RequestOptions)({accept:"application/vnd.tide.tax-account-svc.open-account-response+json;version=1",addIdempotencyKey:!0});return P.context=(new o.HttpContext).set(y.ct,!1),this._apiService.post(`${this._environment.API_V4_URL}/tax-account`,{data:m},P)}getTaxAccount(){const m=(0,d.getApiV4RequestOptions)({accept:"application/vnd.tide.tax-account-svc.tax-account-response+json;version=1"});return m.context=(new o.HttpContext).set(y.ct,!1),this._apiService.get(`${this._environment.API_V4_URL}/tax-account/mine`,m).pipe((0,f.retry)({count:3,delay:2e3}))}updateGoal(m){const P=(0,d.getApiV4RequestOptions)({contentType:"application/vnd.tide.tax-account-svc.update-goal-request+json;version=1",addIdempotencyKey:!0}),L={data:{goal:m.goal,endDate:m.endDate,type:m.type}};return P.context=(new o.HttpContext).set(y.ct,!1),this._apiService.put(`${this._environment.API_V4_URL}/tax-account/mine/goal`,L,P)}enableAutoSweeping(m){const P=(0,d.getApiV4RequestOptions)({contentType:"application/vnd.tide.tax-account-svc.enable-sweep-request+json;version=1",addIdempotencyKey:!0});return P.context=(new o.HttpContext).set(y.ct,!1),this._apiService.put(`${this._environment.API_V4_URL}/tax-account/mine/sweep`,{data:{percentage:m}},P)}disableAutoSweeping(){const m=(0,d.getApiV4RequestOptions)({accept:"application/vnd.tide.tax-account-svc.disable-sweep-response+json;version=1"});return m.context=(new o.HttpContext).set(y.ct,!1),this._apiService.delete(`${this._environment.API_V4_URL}/tax-account/mine/sweep`,m)}getPrefillData(){return this._apiService.get(`${this._environment.API_V4_URL}/tax-account/notification`)}initiateInterestBearingMigration(){const m=(0,d.getApiV4RequestOptions)({accept:"application/vnd.tide.business-services.tax-account.initiate-migration+json;version=1",addIdempotencyKey:!0});return this._apiService.post(`${this._environment.API_V4_URL}/tax-account/interest-bearing/migration`,{},m)}retryInterestBearingMigration(){const m=(0,d.getApiV4RequestOptions)({accept:"application/vnd.tide.business-services.tax-account.retry-migration+json;version=1",addIdempotencyKey:!0});return this._apiService.post(`${this._environment.API_V4_URL}/tax-account/interest-bearing/migration/retry`,{},m)}getInterestBearingMigrationStatus(){const m=(0,d.getApiV4RequestOptions)({accept:"application/vnd.tide.business-services.tax-account.migration-status+json;version=1"});return this._apiService.get(`${this._environment.API_V4_URL}/tax-account/interest-bearing/migration`,m)}static{this.\u0275fac=function(P){return new(P||S)(w.\u0275\u0275inject(O.G),w.\u0275\u0275inject(v.ENVIRONMENT))}}static{this.\u0275prov=w.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},17243(G,R,r){r.d(R,{TaxesShellComponent:()=>Zo});var o=r(44238),f=r(29604),d=r(61803),v=r(81380),y=r(90526),w=r(72743),O=r(8275),i=r(88830),S=r(3849),D=r(79934),m=r(52252),P=r(89756),L=r(20402),n=r(36351),A=function(t){return t.TaxAccount="taxAccount",t.PrefillInfo="prefillInfo",t}(A||{}),V=r(26764),I=r(55888),b=r(23918),C=r(66992),p=r(66319),c=r(63880),s=r(85184),g=r(1346),_=r(81517);let h=(()=>{class t{constructor(e,a,l){this._apiService=e,this._transactionService=a,this._httpClient=l}getOpenSubmissions(e){return this._httpClient.get(`${c.globalEnvironments.API_V4_URL}/vat/obligations/pending`,{params:{size:e.size,page:e.page}}).pipe((0,i.map)(({data:a,meta:l})=>({data:a,meta:l})))}getOpenSubmissionTotalNumberOfUnmanagedTransactions(e){return this.getOpenSubmissionTransactionsCount(e,{transactionView:s.fP.DETAILS_MISSING})}getOpenSubmissionTransactionsCount(e,a){const{startDate:l,endDate:x}=e.obligation,T={...a,startDate:l,endDate:x,pageNumber:0};return this._transactionService.getTransactionsTAS(T,[]).pipe((0,i.map)(({totalItems:k})=>k))}getVatStatus(e){const a=new C.HttpHeaders({"content-type":"application/vnd.tide.business-services.vat-status+json;
1version=1"});return this._apiService.get(`${c.globalEnvironments.API_V4_URL}/vat/companies/${e}`,{headers:a})}getHmrcAuthenticationDetails(e){const a=new C.HttpHeaders({"content-type":"application/vnd.tide.business-services.hmrc.auth-code+json;version=1","idempotency-key":(0,p.A)()});return this._apiService.post(`${c.globalEnvironments.API_V4_URL}/hmrc/companies/${e}/auth/requests`,{data:{authenticationTypes:["VAT"]}},{headers:a})}static{this.\u0275fac=function(a){return new(a||t)(o.\u0275\u0275inject(g.G),o.\u0275\u0275inject(_.k),o.\u0275\u0275inject(C.HttpClient))}}static{this.\u0275prov=o.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var M=r(41025),E=r(57858),U=r(5567);const j=(t,u,e)=>{if(!t)return"";const a=new Date(t),l=new Date(u);return`${e.transform(a,"dd MMM yyyy")} - ${e.transform(l,"dd MMM yyyy")}`};function $(t,u){return`business/${u}/tools/tide-accounting/taxes/${t}`}var F=r(99992),Q=r(44098),N=r(94673),W=r(67930);function H(t){return t?new Date(+t[0],+t[1]-1,+t[2]):null}var X=r(12109),Z=r(51390),so=r(89301);const ao=(0,d.Eu)(function B(){return(0,d.Mj)((0,d.Q2)({[A.TaxAccount]:{data:null,error:null},[A.PrefillInfo]:{data:null,error:null},taxAccountLoading:!1}),(0,d.QO)((t,u=(0,o.inject)(L.AccessService),e=(0,o.inject)(v.Store))=>({taxAccountHasError:(0,o.computed)(()=>t[A.TaxAccount]().error||t[A.PrefillInfo]().error),taxAccountNavigation:(0,o.computed)(()=>{const l=`business/${e.selectSignal((0,V.selectRouteParam)("businessId"))()??""}`,x=t[A.TaxAccount]().data;return{viewAllUrl:`${l}/tools/tide-accounting/taxes/tax-account-onboard/view-all-accounts?pathFrom=tide-accounting`,actionUrl:x?`${l}/accounts/${x?.accountId}/funds/add-deposit`:`${l}/tools/tide-accounting/taxes/tax-account-onboard/open-account?pathFrom=tide-accounting`,editTaxAccountUrl:`${l}/accounts/${x?.accountId}/${P.a$.Goals}/${P.a$.GoalInfo}`,trackingEvent:I.S.AccountingBulkCategoryUpdateSaved}}),taxAccountInfo:(0,o.computed)(()=>{const a=t[A.TaxAccount]().data,l=t[A.PrefillInfo]().data;let x=Number(a?.goal?.value||0);return a&&(u.hasAccess({flags:[n.S.AccountingCorporationTax]})&&a.corporationTax?x=+a.corporationTax.taxEstimate.taxDue.amount:a.selfAssessment&&(x=+a.selfAssessment.taxEstimate.taxDue.amount)),a?{balance:+(a?.balance?.amount||0),goal:x,endDate:a?.selfAssessment?a.selfAssessment.finYearEndDate:a?.goal?.endDate||"",currency:a?.balance?.currency||"GBP",endDateDetails:{formatedDate:a?.selfAssessment?a.selfAssessment.finYearEndDate:a?.goal?.endDate||"",isOverDue:!1},preFillAmount:+l?.amount,showBanner:l?.showBanner,type:a?.goal?.type}:null}),isPremiumSubscribed:(0,o.computed)(()=>e.selectSignal(m.r.selectIsPremiumSubscribed)())})),(0,d.RI)((t,u=(0,o.inject)(S.Z))=>({loadTaxAccountData:(0,O.o)((0,i.pipe)((0,i.tap)(()=>(0,d.M8)(t,{taxAccountLoading:!0,[A.TaxAccount]:{data:null,error:null},[A.PrefillInfo]:{data:null,error:null}})),(0,i.switchMap)(()=>(0,i.combineLatest)([u.getTaxAccount().pipe((0,w.Hn)({next:e=>(0,d.M8)(t,{[A.TaxAccount]:{data:e,error:null}}),error:e=>(0,d.M8)(t,{[A.TaxAccount]:{data:null,error:e}})})),u.getPrefillData().pipe((0,w.Hn)({next:e=>(0,d.M8)(t,{[A.PrefillInfo]:{data:e,error:null}}),error:e=>(0,d.M8)(t,{[A.PrefillInfo]:{data:null,error:e}})}))])),(0,i.tap)(()=>(0,d.M8)(t,{taxAccountLoading:!1}))))})),(0,d.TK)({onInit(t,u=(0,o.inject)(v.Store)){t.loadTaxAccountData(),u.dispatch(D.K.getAccountingSubscription())}}))}(),function K(){return(0,d.Mj)((0,d.Q2)({openSubmissions:null,vatManagerLoading:!1,vatManagerHasError:!1,vatStatusInfo:null}),(0,Q.w)({businessId:t=>t}),(0,d.QO)((t,u=(0,o.inject)(v.Store),e=(0,o.inject)(f.DatePipe))=>({isHMRCAuthenticated:(0,o.computed)(()=>t.vatStatusInfo()?.registrationStatus===N.AV.Registered),vatManagerNavigation:(0,o.computed)(()=>{const a=t.openSubmissions(),l=u.selectSignal(b.D.selectFinancialYears)?.()??[],x=u.selectSignal((0,V.selectRouteParam)("businessId"))()??"";if(u.selectSignal(F.De)()?.eligibilityCheck.vatAccountingScheme===W.De.STANDARD_ACCOUNTING)return{trackingEvent:I.S.TaxesVatManagerPageViewed,actionUrl:$("vat-submission/accrual-accounting",x)};const Y=(0,E.YN)(a??[],l)[0],no=Y?.unmanagedTransactions>0?{origin:"CASH_VAT",financialYear:(0,U.lx)(H(Y?.obligation?.startDate)?.toISOString()??"",H(Y?.obligation?.endDate)?.toISOString()??""),transactionView:"DETAILS_MISSING"}:void 0,Jo=$(Y?.unmanagedTransactions>0?"vat-submission/bookkeeping/transactions":`vat-submission/submissions/open/${Y?.obligation.periodKey}`,x);return{queryParams:no,trackingEvent:I.S.TaxesVatManagerPageViewed,viewAllUrl:$("vat-submission/submissions",x),actionUrl:Jo}}),vatManagerConfig:(0,d.G6)(()=>{const a=t.openSubmissions(),l=u.selectSignal(b.D.selectFinancialYears)?.()??[],T=(0,E.YN)(a??[],l)[0],k=T?.unmanagedTransactions>0?`Update ${T.unmanagedTransactions} items`:"Review report";return{headerLabel:"VAT Returns",image:M.b.VatCategory,amount:T?.review.vatToBePaidOrReclaimed.amount.amount??0,dueDate:H(T?.obligation?.dueDate)?.toISOString(),submitBy:H(T?.obligation?.dueDate)?.toISOString(),taxPeriod:T?.obligation?.periodKey??"",isPrimaryButton:0===T?.unmanagedTransactions,buttonLabel:k,currency:T?.review.vatToBePaidOrReclaimed.amount.currency??"",taxPeriodLabel:j(T?.obligation?.startDate.toString()??"",T?.obligation?.endDate.toString()??"",e)}})})),(0,d.RI)((t,u=(0,o.inject)(h))=>({loadVatManagerData:(0,O.o)((0,i.pipe)((0,i.tap)(()=>(0,d.M8)(t,{vatManagerLoading:!0,vatManagerHasError:!1})),(0,i.switchMap)(()=>(0,i.combineLatest)([u.getOpenSubmissions({size:6,page:0}).pipe((0,i.switchMap)(({data:e})=>(0,i.forkJoin)(e.content.map(a=>u.getOpenSubmissionTotalNumberOfUnmanagedTransactions(a).pipe((0,i.map)(l=>(0,E.QM)(a,l)))))))]).pipe((0,w.Hn)({next:([e])=>{(0,d.M8)(t,{openSubmissions:e,vatManagerLoading:!1,vatManagerHasError:!1})},error:e=>{(0,d.M8)(t,{openSubmissions:null,vatManagerLoading:!1,vatManagerHasError:!0})}}))))),getVatStatusInfo:(0,O.o)((0,i.pipe)((0,i.switchMap)(e=>u.getVatStatus(e).pipe((0,w.Hn)({next:a=>{(0,d.M8)(t,{vatStatusInfo:a})},error:a=>(0,d.M8)(t,{vatStatusInfo:null,vatManagerHasError:!0})}
1)))))})),(0,d.TK)({onInit(t,u=(0,o.inject)(v.Store)){t.getVatStatusInfo(t.businessId()??""),u.selectSignal(F.De)()?.eligibilityCheck.vatRegistered&&t.loadVatManagerData()}}))}(),function q(){return(0,d.Mj)((0,d.Q2)({taxEstimate:null,corporationTaxLoading:!1,corporationTaxHasError:!1}),(0,d.QO)((t,u=(0,o.inject)(v.Store),e=(0,o.inject)(f.DatePipe))=>({corporationTaxNavigation:(0,o.computed)(()=>{const a=u.selectSignal((0,V.selectRouteParam)("businessId"))()??"";return{trackingEvent:I.S.TaxesCorporationTaxPageViewed,actionUrl:$(Z.i.CORPORATION_TAX,a)}}),corporationTaxConfig:(0,d.G6)(()=>{const a=t.taxEstimate();return{headerLabel:"Corporation Tax",image:M.b.Taxes,taxPeriodLabel:j(a?.finYearStartDate??"",a?.dueDate??"",e),amount:a?.taxEstimate.taxDue.amount.amount??0,currency:a?.taxEstimate.taxDue.amount.currency,dueDate:a?.dueDate,submitBy:a?.dueDate,buttonLabel:"View upcoming estimate"}})})),(0,d.RI)((t,u=(0,o.inject)(X.r),e=(0,o.inject)(v.Store))=>({loadCorporationTaxEstimate:(0,O.o)((0,i.pipe)((0,i.tap)(()=>(0,d.M8)(t,{corporationTaxLoading:!0,corporationTaxHasError:!1})),(0,i.withLatestFrom)(e.select(b.D.selectDefaultFinancialYear)),(0,i.switchMap)(([a,l])=>u.getCorporationTaxEstimate(l.endDate).pipe((0,w.Hn)({next:({data:x})=>{(0,d.M8)(t,{taxEstimate:x,corporationTaxLoading:!1,corporationTaxHasError:!1})},error:x=>{(0,d.M8)(t,{corporationTaxLoading:!1,corporationTaxHasError:!0})}})))))})),(0,d.TK)({onInit(t,u=(0,o.inject)(v.Store)){u.selectSignal(y.fj)()&&t.loadCorporationTaxEstimate()}}))}(),function fo(){return(0,d.Mj)((0,so.Y)(),(0,d.QO)((t,u=(0,o.inject)(v.Store),e=(0,o.inject)(f.DatePipe))=>({selfAssessmentNavigation:(0,o.computed)(()=>{const a=u.selectSignal((0,V.selectRouteParam)("businessId"))()??"",l=u.selectSignal(b.D.selectFinancialYears)()[0];return{trackingEvent:I.S.TaxesSelfAssessmentPageViewed,actionUrl:$("self-assessment",a),queryParams:{financialYear:`${l?.startDate}|${l?.endDate}`}}}),selfAssessmentConfig:(0,d.G6)(()=>{const a=t.estimatedLiability(),l=u.selectSignal(b.D.selectFinancialYears)()[0];return{headerLabel:"Self Assessment",image:M.b.Taxes,taxPeriodLabel:j(l?.startDate??"",l?.endDate??"",e),amount:+(a?.taxEstimate?.totalTaxDue?.amount||0),currency:a?.taxEstimate?.totalTaxDue?.currency??"",dueDate:l?.estimatedLiabilityDueDate,submitBy:l?.estimatedLiabilityDueDate,buttonLabel:"View upcoming estimate"}}),isPremiumSubscribed:(0,o.computed)(()=>u.selectSignal(m.r.selectIsPremiumSubscribed)())})),(0,d.RI)(t=>({taxesLoadSelfAssessmentData:(0,O.o)((0,i.pipe)((0,i.switchMap)(()=>t.loadSelfAssessmentData())))})))}(),(0,d.QO)((t,u=(0,o.inject)(v.Store),e=(0,o.inject)(L.AccessService))=>({isRegisteredBusiness:(0,o.computed)(()=>u.selectSignal(y.fj)()),isVatRegistered:(0,o.computed)(()=>u.selectSignal(F.De)?.()?.eligibilityCheck.vatRegistered),hasTaxAccountAccess:(0,o.computed)(()=>e.hasAccess({flags:[n.S.TaxesTaxAccount]})),isAdminPhase1Enabled:(0,o.computed)(()=>e.hasAccess({flags:[n.S.AdminPhase1]}))})),(0,d.TK)({onInit(t){t.isRegisteredBusiness()||t.taxesLoadSelfAssessmentData()}}));var z=r(84003),oo=r(33928),uo=r(14937),co=r(56334),lo=r(26354),bo=r(20468),eo=r(12652),to=r(51908),J=r(41134),go=r(84039),ro=r(82490);const mo=t=>({overdue:t}),po=()=>({icon:"information"});function vo(t,u){1&t&&(o.\u0275\u0275elementStart(0,"div",4),o.\u0275\u0275element(1,"mat-spinner",6),o.\u0275\u0275elementEnd()),2&t&&(o.\u0275\u0275advance(),o.\u0275\u0275property("diameter",45))}function xo(t,u){if(1&t&&o.\u0275\u0275text(0),2&t){const e=o.\u0275\u0275nextContext(3);o.\u0275\u0275textInterpolate1(" ",e.selfAssessment===e.taxAccountInfo()?.type?"Self assessment completed":"Goal complete"," ")}}function Co(t,u){if(1&t&&(o.\u0275\u0275text(0),o.\u0275\u0275pipe(1,"currency")),2&t){const e=o.\u0275\u0275nextContext(3);o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(1,1,((e.taxAccountInfo()?.goal||0)-(e.taxAccountInfo()?.balance||0)).toFixed(2),e.taxAccountInfo()?.currency||"GBP")," left ")}}function _o(t,u){if(1&t&&(o.\u0275\u0275elementStart(0,"div")(1,"tide-alert",20),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"currency"),o.\u0275\u0275elementEnd()()),2&t){let e;const a=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(),o.\u0275\u0275property("data",o.\u0275\u0275pureFunction0(5,po)),o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(" Add ",o.\u0275\u0275pipeBind2(3,2,null==(e=a.taxAccountInfo())?null:e.preFillAmount,null==(e=a.taxAccountInfo())?null:e.currency)," this month to stay on track ")}}function ho(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();
1o.\u0275\u0275elementStart(0,"div",5)(1,"div",7),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.onEditTaxAccountClick())}),o.\u0275\u0275elementStart(2,"div",8),o.\u0275\u0275element(3,"twa-key-date",9),o.\u0275\u0275elementStart(4,"div")(5,"p",10),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"p",11),o.\u0275\u0275text(8),o.\u0275\u0275pipe(9,"formatDueDate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(10,"div",12)(11,"p",10),o.\u0275\u0275text(12),o.\u0275\u0275pipe(13,"currency"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(14,"div",13)(15,"div")(16,"div",14)(17,"div",15)(18,"span",16),o.\u0275\u0275text(19),o.\u0275\u0275pipe(20,"currency"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(21," added "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(22,"div",17),o.\u0275\u0275conditionalCreate(23,xo,1,1)(24,Co,2,4),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(25,"mat-progress-bar",18),o.\u0275\u0275elementEnd()(),o.\u0275\u0275conditionalCreate(26,_o,4,6,"div"),o.\u0275\u0275elementStart(27,"div")(28,"button",19),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.onMainActionClick())}),o.\u0275\u0275text(29," Add funds "),o.\u0275\u0275elementEnd()()()}if(2&t){let e,a,l,x,T;const k=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275property("keyDate",null==(e=k.taxAccountInfo())?null:e.endDate),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",k.taxLabel()," "),o.\u0275\u0275advance(),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(18,mo,null==(a=k.taxAccountInfo())||null==a.endDateDetails?null:a.endDateDetails.isOverDue)),o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(" Due in ",o.\u0275\u0275pipeBind1(9,10,null==(l=k.taxAccountInfo())||null==l.endDateDetails?null:l.endDateDetails.formatedDate)," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(13,12,null==(x=k.taxAccountInfo())?null:x.goal,null==(x=k.taxAccountInfo())?null:x.currency)," "),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(20,15,k.taxAccountInfo()?.balance||0,null==(T=k.taxAccountInfo())?null:T.currency)),o.\u0275\u0275advance(4),o.\u0275\u0275conditional((k.taxAccountInfo()?.balance||0)>=(k.taxAccountInfo()?.goal||0)?23:24),o.\u0275\u0275advance(2),o.\u0275\u0275property("value",(k.taxAccountInfo()?.balance||0)/(k.taxAccountInfo()?.goal||0)*100),o.\u0275\u0275advance(),o.\u0275\u0275conditional(k.taxAccountInfo()?.showBanner&&!1!==k.isPremiumSubscribed()?26:-1),o.\u0275\u0275advance(2),o.\u0275\u0275property("disabled",!1===k.isPremiumSubscribed())}}function yo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(l.onViewClick())}),o.\u0275\u0275elementStart(1,"div",3),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"a"),o.\u0275\u0275text(4," View account"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275conditionalCreate(5,vo,2,1,"div",4)(6,ho,30,20,"div",5)}if(2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",e.taxGoalProgressLabel," "),o.\u0275\u0275advance(3),o.\u0275\u0275conditional(e.isLoading()?5:6)}}function wo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",1),o.\u0275\u0275element(1,"img",21),o.\u0275\u0275elementStart(2,"span",15),o.\u0275\u0275text(3,"We're ran into an error loading your Tax Account"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"button",22),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(l.onRetryClick())}),o.\u0275\u0275text(5,"Retry"),o.\u0275\u0275elementEnd()()}if(2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275property("src",e.errorIllustration,o.\u0275\u0275sanitizeUrl)}}let Mo=(()=>{class t{constructor(){this.taxAccountInfo=(0,o.input)(null),this.isPremiumSubscribed=(0,o.input)(!1),this.navigation=(0,o.input)(null),this.isLoading=(0,o.input)(!0),this.hasError=(0,o.input)(!1),this.navigationClick=(0,o.output)(),this.retryClick=(0,o.output)(),this.errorIllustration=oo.A.Feedback.Empty.Picto.Empty,this.selfAssessment=z.Fw.SELF_ASSESSMENT,this.selfAssessmentLabel=z.M4.SELF_ASSESSMENT,this.corporationTaxLabel=z.M4.CORPORATION_TAX,this.taxGoalLabel=z.M4.TAX_GOAL,this.taxGoalProgressLabel=z.M4.TAX_GOAL_PROGRESS,this.ePdsIcons=M.b,this.taxLabel=(0,o.computed)(()=>{const e=this.taxAccountInfo()?.type;return e===z.Fw.SELF_ASSESSMENT?this.selfAssessmentLabel:e===z.Fw.CORPORATION_TAX?this.corporationTaxLabel:this.taxGoalLabel})}onOpenTaxAccount(){this.navigationClick.emit({url:this.navigation()?.actionUrl,trackingEvent:this.navigation()?.trackingEvent})}onMainActionClick(){this.navigationClick.emit({url:this.navigation()?.actionUrl,trackingEvent:this.navigation()?.trackingEvent})}onViewClick(){this.navigationClick.emit({url:this.navigation()?.viewAllUrl,trackingEvent:this.navigation()?.trackingEvent})}onEditTaxAccountClick(){this.navigationClick.emit({url:this.navigation()?.editTaxAccountUrl,trackingEvent:this.navigation()?.trackingEvent})}onRetryClick(){this.retryClick.emit()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:t,selectors:[["twa-tax-account"]],inputs:{taxAccountInfo:[1,"taxAccountInfo"],isPremiumSubscribed:[1,"isPremiumSubscribed"],navigation:[1,"navigation"],isLoading:[1,"isLoading"],hasError:[1,"hasError"]},outputs:{navigationClick:"navigationClick",retryClick:"retryClick"},decls:3,vars:2,consts:[[1,"goal-progress-container"],[1,"error-container"],[1,"header-section",3,"click"],[1,"tide-sub-1"],[1,"loader-container"],[1,"goal-container"],[3,"diameter"],[1,"goal-progress-info",3,"click"],[1,"content"],[3,"keyDate"],[1,"tide-body-1"],[1,"tide-body-2",3,"ngClass"],[1,"goal-info"],[1,"goal-progress"],[1,"progress-bar-container"],[1,"tide-body-2"],[1,"mr-4"],[1,"tide-body-2","amt-left"],["mode","determinate",3,"value"],["type","button","size","full-width","variant","secondary","tide-button","",3,"click","disabled"],["color","primary",3,"data"],["alt","Error",3,"src"],["type","button","size","full-width","variant","secondary","tide-button","",3,"click"]],template:function(a,l){1&a&&(o.\u0275\u0275elementStart(0,"section",0),o.\u0275\u0275conditionalCreate(1,yo,7,2),o.\u0275\u0275conditionalCreate(2,wo,6,1,"div",1),o.\u0275\u0275elementEnd()),2&a&&(o.\u0275\u0275advance(),o.\u0275\u0275conditional(l.hasError()?-1:1),o.\u
10275\u0275advance(),o.\u0275\u0275conditional(l.hasError()?2:-1))},dependencies:[f.CommonModule,f.NgClass,uo.H,lo.PO,lo.HM,bo.Z,go.C,eo.MatIconModule,to.t,ro.o,J.D6,J.LG,f.CurrencyPipe,co.g],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;
1--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%]   .mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%]   .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]   .goal-progress-container[_ngcontent-%COMP%]{border-radius:.75rem;border:.0625rem solid var(--color-border-subtle);background-color:var(--color-background-inverse);display:flex;flex-direction:column;gap:1rem;width:100%;height:100%}[_nghost-%COMP%]   .goal-progress-container[_ngcontent-%COMP%]   .loader-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:14.3125rem;width:350px}[_nghost-%COMP%]   .goal-progress-container[_ngcontent-%COMP%]   .goal-container[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;gap:1rem}[_nghost-%COMP%]   .goal-progress-container[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]{padding:1rem 1rem 0;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%]   .goal-progress-info[_ngcontent-%COMP%]{cursor:pointer;min-height:3.1875rem;gap:1rem;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%]   .empty-image[_ngcontent-%COMP%]{width:2rem;height:2rem;padding:.5rem;border-radius:100%;background-color:var(--color-blue-100)}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;gap:.75rem;
1align-items:center}[_nghost-%COMP%]   .tax-info[_ngcontent-%COMP%]{height:2rem;width:2rem}[_nghost-%COMP%]   .goal-info[_ngcontent-%COMP%]{text-align:end}[_nghost-%COMP%]   .tide-body-1[_ngcontent-%COMP%]{color:var(--color-grey-1000)}[_nghost-%COMP%]   .tide-body-2[_ngcontent-%COMP%]{color:var(--color-grey-600)}[_nghost-%COMP%]   .overdue[_ngcontent-%COMP%]{color:var(--color-red-500)}[_nghost-%COMP%]   .progress-bar-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:.25rem}[_nghost-%COMP%]   .goal-progress[_ngcontent-%COMP%]   .amt-left[_ngcontent-%COMP%]{color:var(--color-grey-700)}[_nghost-%COMP%]   .error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:0 1rem 1rem}[_nghost-%COMP%]   .error-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:6rem}']})}}return t})();var Po=r(58554),Oo=r(84175);let To=(()=>{class t{transform(e,a="default",l="short"){if(!e)return"";const x=e instanceof Date?e:new Date(e),T=x.getDate();return`${T}${this._getOrdinalSuffix(T)} ${x.toLocaleString(a,{month:l})} ${x.getFullYear()}`}_getOrdinalSuffix(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275pipe=o.\u0275\u0275definePipe({name:"ordinalDate",type:t,pure:!0})}}return t})();var io=r(14102);const Ao=["*"],Io=["taxPeriod",""];function Eo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"a",4),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(l.onViewAll())}),o.\u0275\u0275text(1," View all"),o.\u0275\u0275elementEnd()}}function Do(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275element(1,"img",5),o.\u0275\u0275elementStart(2,"span",6),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"button",7),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(l.onRetryClick())}),o.\u0275\u0275text(5,"Retry"),o.\u0275\u0275elementEnd()()}if(2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275property("src",e.errorIllustration,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("We've ran into an error loading your ",e.model()?.headerLabel)}}function So(t,u){1&t&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275element(1,"mat-spinner",9),o.\u0275\u0275elementEnd()),2&t&&(o.\u0275\u0275advance(),o.\u0275\u0275property("diameter",45))}function ko(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",10)(1,"div")(2,"div",11)(3,"div",12),o.\u0275\u0275element(4,"mat-icon",13),o.\u0275\u0275elementStart(5,"div")(6,"p",14),o.\u0275\u0275text(7,"Upcoming estimate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"p",6),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"formatDueDate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(11,"div",15)(12,"p",14),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"currency"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(15,"div")(16,"p",6),o.\u0275\u0275projection(17,0,Io),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(18,"div",16)(19,"div",17)(20,"div",14),o.\u0275\u0275text(21,"Submit before"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(22,"div",6),o.\u0275\u0275text(23),o.\u0275\u0275pipe(24,"ordinalDate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(25,"mat-divider"),o.\u0275\u0275elementStart(26,"div",17)(27,"div",14),o.\u0275\u0275text(28,"Tax period"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(29,"div",6),o.\u0275\u0275text(30),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(31,"div",18)(32,"button",19),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.redirectUrl())}),o.\u0275\u0275text(33),o.\u0275\u0275elementEnd()()}if(2&t){let e,a,l,x;const T=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(4),o.\u0275\u0275property("svgIcon",null==(e=T.model())?null:e.image),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1("Due in ",o.\u0275\u0275pipeBind1(10,7,null==(a=T.model())?null:a.dueDate)),o.\u
10275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(14,9,null==(l=T.model())?null:l.amount,null==(l=T.model())?null:l.currency)," "),o.\u0275\u0275advance(10),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(24,12,null==(x=T.model())?null:x.dueDate)," "),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" ",T.model()?.taxPeriodLabel," "),o.\u0275\u0275advance(2),o.\u0275\u0275property("variant",T.model()?.isPrimaryButton?"primary":"secondary"),o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(" ",T.model()?.buttonLabel," ")}}function Ro(t,u){if(1&t&&o.\u0275\u0275conditionalCreate(0,So,2,1,"div",8)(1,ko,34,14),2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275conditional(e.isLoading()?0:1)}}let Lo=(()=>{class t{constructor(){this.hasError=(0,o.input)(!1),this.model=(0,o.input)(null),this.navigation=(0,o.input)(null),this.isLoading=(0,o.input)(!0),this.retryClick=(0,o.output)(),this.navigationClick=(0,o.output)(),this.openTaxAccount=(0,o.output)(),this.errorIllustration=oo.A.Feedback.Empty.Picto.Empty}redirectUrl(){this.navigationClick.emit({url:this.navigation()?.actionUrl,trackingEvent:this.navigation()?.trackingEvent,queryParams:this.navigation()?.queryParams})}onViewAll(){this.navigationClick.emit({url:this.navigation()?.viewAllUrl,trackingEvent:this.navigation()?.trackingEvent,queryParams:this.navigation()?.queryParams})}onRetryClick(){this.retryClick.emit()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:t,selectors:[["twa-accounting-widget"]],inputs:{hasError:[1,"hasError"],model:[1,"model"],navigation:[1,"navigation"],isLoading:[1,"isLoading"]},outputs:{retryClick:"retryClick",navigationClick:"navigationClick",openTaxAccount:"openTaxAccount"},ngContentSelectors:Ao,decls:7,vars:4,consts:[[1,"accounting-widget-container"],[1,"header-section"],[1,"tide-sub-1"],[1,"error-container"],[3,"click"],["alt","Error",3,"src"],[1,"tide-body-2"],["type","button","size","full-width","variant","secondary","tide-button","",3,"click"],[1,"loader-container"],[3,"diameter"],[1,"widget-container"],[1,"widget-info"],[1,"content"],[3,"svgIcon"],[1,"tide-body-1"],[1,"amount-info"],[1,"tax-details-container"],[1,"tax-details-row"],[1,"action-button-container"],["type","button","size","full-width","tide-button","",3,"click","variant"]],template:function(a,l){1&a&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"section",0)(1,"div",1)(2,"div",2),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(4,Eo,2,0,"a"),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(5,Do,6,2,"div",3),o.\u0275\u0275conditionalCreate(6,Ro,2,1),o.\u0275\u0275elementEnd()),2&a&&(o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",l.model()?.headerLabel," "),o.\u0275\u0275advance(),o.\u0275\u0275conditional(l.navigation()?.viewAllUrl?4:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(l.hasError()&&!l.isLoading()?5:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(l.hasError()?-1:6))},dependencies:[f.CommonModule,eo.MatIconModule,eo.MatIcon,to.t,ro.o,Po.x,Oo.Hl,J.D6,J.LG,io.w,io.q,f.CurrencyPipe,co.g,To],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%]   .mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%]   .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]   .accounting-widget-container[_ngcontent-%COMP%]{border-radius:.75rem;border:.0625rem solid var(--color-border-subtle);background-color:var(--color-background-inverse);width:100%;height:100%}[_nghost-%COMP%]   .accounting-widget-container[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}[_nghost-%COMP%]   .accounting-widget-container[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:6rem}[_nghost-%COMP%]   .accounting-widget-container[_ngcontent-%COMP%]   .error-container[_ngcontent-%COMP%]{padding:0 1rem 1rem}[_nghost-%COMP%]   .accounting-widget-container[_ngcontent-%COMP%]   .loader-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:14.3125rem;width:100%}[_nghost-%COMP%]   .header-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem}[_nghost-%COMP%]   .header-section[_ngcontent-%COMP%]   .tide-sub-1[_ngcontent-%COMP%]{color:var(--color-grey-900)}[_nghost-%COMP%]   .widget-info[_ngcontent-%COMP%]{cursor:pointer;min-height:3.1875rem;gap:1rem;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%]   .widget-info[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:2rem;width:2rem}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;gap:.75rem;
1align-items:center}[_nghost-%COMP%]   .tax-info[_ngcontent-%COMP%]{height:2rem;width:2rem}[_nghost-%COMP%]   .amount-info[_ngcontent-%COMP%]{text-align:end}[_nghost-%COMP%]   .tide-body-1[_ngcontent-%COMP%]{color:var(--color-grey-1000)}[_nghost-%COMP%]   .tide-body-2[_ngcontent-%COMP%]{color:var(--color-grey-600)}[_nghost-%COMP%]   .overdue[_ngcontent-%COMP%]{color:var(--color-red-500)}[_nghost-%COMP%]   .progress-bar-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:.25rem}[_nghost-%COMP%]   .goal-progress[_ngcontent-%COMP%]   .amt-left[_ngcontent-%COMP%]{color:var(--color-grey-700)}.widget-container[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;gap:1rem}.tax-details-container[_ngcontent-%COMP%]{background-color:var(--color-grey-100);border-radius:.75rem}.tax-details-container[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{margin:0 .5rem}.tax-details-container[_ngcontent-%COMP%]   .tax-details-row[_ngcontent-%COMP%]{padding:.5rem;display:flex;justify-content:space-between;align-items:center}.action-button-container[_ngcontent-%COMP%]{padding:0 .5rem;margin-top:auto;margin-bottom:1rem}']})}}return t})();var Vo=r(74224),No=r(81128),Uo=r(43604),jo=r(36988);const Bo=["*"];let Fo=(()=>{class t{constructor(){this.navigation=(0,o.output)(),this.label=(0,o.input)()}onMainActionClick(){this.navigation.emit()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:t,selectors:[["twa-tax-info"]],inputs:{label:[1,"label"]},outputs:{navigation:"navigation"},ngContentSelectors:Bo,decls:6,vars:1,consts:[[1,"header-section"],[1,"action-button-container"],["type","button","size","full-width","variant","secondary","tide-button","",3,"click"]],template:function(a,l){1&a&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0)(1,"div"),o.\u0275\u0275projection(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",1)(4,"button",2),o.\u0275\u0275listener("click",function(){return l.onMainActionClick()}),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd()()()),2&a&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(l.label()))},dependencies:[to.t,ro.o],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;
1--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%]   .mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%]   .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}.header-section[_ngcontent-%COMP%]{border-radius:.75rem;border:.0625rem solid var(--color-border-subtle);background-color:var(--color-background-inverse);display:flex;flex-direction:column;width:100%;height:100%}.header-section[_ngcontent-%COMP%]   .action-button-container[_ngcontent-%COMP%]{padding:0 .5rem;margin-top:auto;margin-bottom:1rem}']})}}return t})();function Go(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"twa-accounting-widget",4),o.\u0275\u0275listener("navigationClick",function(l){o.\u0275\u0275restoreView(e);const x=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(x.onNavigationClick(l))})("retryClick",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.vatManagerRetryClick())}),o.\u0275\u0275elementEnd()}if(2&t){const e=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("model",e.store.vatManagerConfig())("isLoading",e.store.vatManagerLoading())("navigation",e.store.vatManagerNavigation())("hasError",e.store.vatManagerHasError())}}function $o(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"twa-tax-info",5),o.\u0275\u0275listener("navigation",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.onNavigationClick({url:l.store.vatManagerNavigation().actionUrl,trackingEvent:l.store.vatManagerNavigation().trackingEvent}))}),o.\u0275\u0275elementStart(1,"div",6)(2,"span",7),o.\u0275\u0275text(3,"VAT returns"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(4,"div",8)(5,"div")(6,"div",9),o.\u0275\u0275element(7,"img",10),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"div",11),o.\u0275\u0275text(9," Track your VAT return amounts, due dates and file all your submissions directly to HMRC. "),o.\u0275\u0275elementEnd()()()()}if(2&t){const e=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("label","Connect to HMRC"),o.\u0275\u0275advance(7),o.\u0275\u0275property("src",e.illustration,o.\u0275\u0275sanitizeUrl)}}function Ho(t,u){if(1&t&&o.\u0275\u0275conditionalCreate(0,Go,1,4,"twa-accounting-widget",2)(1,$o,10,2,"twa-tax-info",3),2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275conditional(e.store.isHMRCAuthenticated()?0:1)}}function Qo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"twa-accounting-widget",12),o.\u0275\u0275listener("retryClick",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(l.corporationTaxRetryClick())})("navigationClick",function(l){o.\u0275\u0275restoreView(e);const x=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(x.onNavigationClick(l))}),o.\u0275\u0275elementEnd()}if(2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275property("model",e.store.corporationTaxConfig())("isLoading",e.store.corporationTaxLoading())("hasError",e.store.corporationTaxHasError())("navigation",e.store.corporationTaxNavigation())}}function zo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"twa-accounting-widget",12),o.\u0275\u0275listener("retryClick",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.selfAssessmentRetryClick())})("navigationClick",function(l){o.\u0275\u0275restoreView(e);const x=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(x.onNavigationClick(l))}),o.\u0275\u0275elementEnd()}if(2&t){const e=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("model",e.store.selfAssessmentConfig())("isLoading",e.store.selfAssessmentLoading())("hasError",e.store.selfAssessmentHasError())("navigation",e.store.selfAssessmentNavigation())}}function Yo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"twa-tax-account",14),o.\u0275\u0275listener("navigationClick",function(l){o.\u0275\u0275restoreView(e);const x=o.\u0275\u0275nextContext(2);
1return o.\u0275\u0275resetView(x.onNavigationClick(l))})("retryClick",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.taxAccountRetryClick())}),o.\u0275\u0275elementEnd()}if(2&t){const e=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("taxAccountInfo",e.store.taxAccountInfo())("isPremiumSubscribed",e.store.isPremiumSubscribed())("isLoading",e.store.taxAccountLoading())("hasError",e.store.taxAccountHasError())("navigation",e.store.taxAccountNavigation())}}function Wo(t,u){if(1&t){const e=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"twa-tax-info",5),o.\u0275\u0275listener("navigation",function(){o.\u0275\u0275restoreView(e);const l=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(l.onNavigationClick({url:l.store.taxAccountNavigation().actionUrl,trackingEvent:l.store.taxAccountNavigation().trackingEvent}))}),o.\u0275\u0275elementStart(1,"div",15)(2,"div")(3,"p",7),o.\u0275\u0275text(4,"Save for tax season with your dedicated tax account"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"p",16),o.\u0275\u0275text(6,"Set money aside, track goals and pay HMRC directly."),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(7,"img",10),o.\u0275\u0275elementEnd()()}if(2&t){const e=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("label","Open tax account"),o.\u0275\u0275advance(7),o.\u0275\u0275property("src",e.illustration,o.\u0275\u0275sanitizeUrl)}}function Ko(t,u){if(1&t&&(o.\u0275\u0275conditionalCreate(0,zo,1,4,"twa-accounting-widget",1),o.\u0275\u0275conditionalCreate(1,Yo,1,5,"twa-tax-account",13)(2,Wo,8,2,"twa-tax-info",3)),2&t){const e=o.\u0275\u0275nextContext();o.\u0275\u0275conditional(e.store.selfAssessmentConfig()?0:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(e.store.taxAccountInfo()&&e.store.hasTaxAccountAccess()?1:2)}}let Zo=(()=>{class t{constructor(e){this.store=(0,o.inject)(ao),this.router=(0,o.inject)(No.Router),this.illustration=oo.A.Feature.Account.Picto.Current,this.#o=(0,o.inject)(Uo.TrackingService),this.store.isAdminPhase1Enabled()&&e.dispatch((0,jo.setPageTitle)({title:"Taxes"}))}#o;onNavigationClick({url:e,trackingEvent:a,queryParams:l}){a&&this.#o.trackEvent(a,{from:"Taxes tab"}),e&&this.router.navigate([e],{queryParams:l})}vatManagerRetryClick(){this.store.loadVatManagerData()}corporationTaxRetryClick(){this.store.loadCorporationTaxEstimate()}selfAssessmentRetryClick(){this.store.taxesLoadSelfAssessmentData()}taxAccountRetryClick(){this.store.loadTaxAccountData()}static{this.\u0275fac=function(a){return new(a||t)(o.\u0275\u0275directiveInject(v.Store))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:t,selectors:[["twa-taxes-shell"]],features:[o.\u0275\u0275ProvidersFeature([ao,Vo.I,f.DatePipe])],decls:4,vars:2,consts:[[1,"wrapper"],[3,"model","isLoading","hasError","navigation"],[3,"model","isLoading","navigation","hasError"],[3,"label"],[3,"navigationClick","retryClick","model","isLoading","navigation","hasError"],[3,"navigation","label"],[1,"vat-header-text"],[1,"tide-sub-1"],[1,"vat-info-container"],[1,"vat-info-illustration-container"],["alt","Tax account illustration",1,"tax-info-illustration",3,"src"],[1,"tide-body-2","vat-info-text"],[3,"retryClick","navigationClick","model","isLoading","hasError","navigation"],[3,"taxAccountInfo","isPremiumSubscribed","isLoading","hasError","navigation"],[3,"navigationClick","retryClick","taxAccountInfo","isPremiumSubscribed","isLoading","hasError","navigation"],[1,"tax-info-container"],[1,"tide-body-2"]],template:function(a,l){1&a&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275conditionalCreate(1,Ho,2,1),o.\u0275\u0275conditionalCreate(2,Qo,1,4,"twa-accounting-widget",1)(3,Ko,3,2),o.\u0275\u0275elementEnd()),2&a&&(o.\u0275\u0275advance(),o.\u0275\u0275conditional(l.store.isVatRegistered()?1:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(l.store.isRegisteredBusiness()?2:3))},dependencies:[Mo,Lo,Fo],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%]   .mat-mdc-tooltip-panel[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%]   .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%]   .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:392px}[_nghost-%COMP%]   .vat-info-illustration-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;max-width:344px}[_nghost-%COMP%]   .tide-body-1[_ngcontent-%COMP%]{color:var(--color-grey-1000)}[_nghost-%COMP%]   .tide-body-2[_ngcontent-%COMP%]{color:var(--color-grey-600);font-size:.75rem}[_nghost-%COMP%]   .tax-info-container[_ngcontent-%COMP%]{display:flex;padding:1rem}[_nghost-%COMP%]   .tax-info-illustration[_ngcontent-%COMP%]{width:88px;height:95px}.vat-info-container[_ngcontent-%COMP%]{padding:0 1rem;display:flex;flex-direction:column;align-items:center;gap:.5rem}.vat-info-container[_ngcontent-%COMP%]   .vat-info-text[_ngcontent-%COMP%]{text-align:center}.vat-header-text[_ngcontent-%COMP%]{padding:1rem 1rem 0}']})}}return t})()},56334(G,R,r){r.d(R,{g:()=>d});var o=r(66595),f=r(44238);let d=(()=>{class v{transform(w){if(w)return(0,o.A)(new Date(w),{roundingMethod:"round",unit:"month"})}static{this.\u0275fac=function(O){return new(O||v)}}static{this.\u0275pipe=f.\u0275\u0275definePipe({name:"formatDueDate",type:v,pure:!0})}}return v})()},81517(G,R,r){r.d(R,{k:()=>B});var o=r(66992),f=r(2814),d=r(59868),v=r(48703),y=r(50094),w=r(27419),O=r(13264),i=r(85184),S=r(5567),D=r(63880);const m=`${D.globalEnvironments.API_V4_URL}/accounting-tool`,P=`${D.globalEnvironments.API_V4_URL}/transaction-aggregator`,L={getTransactions:{endPoint:`${P}/transactions`,contentType:"application/vnd.tide.business-services.transaction-aggregator.get-transactions-response+json;
1version=1",accept:"application/vnd.tide.business-services.transaction-aggregator.get-transactions-response+json;version=1"},getLedgerTransactionById:{endpoint:`${P}/transactions/ledger`,contentType:"application/vnd.tide.business-services.transaction-aggregator.get-ledger-transaction-response+json;version=1",accept:"application/vnd.tide.business-services.transaction-aggregator.get-ledger-transaction-response+json;version=1"},getManualTransactionById:{endpoint:`${P}/transactions/manual`,contentType:"application/vnd.tide.business-services.transaction-aggregator.get-manual-transaction-response+json;version=1",accept:"application/vnd.tide.business-services.transaction-aggregator.get-manual-transaction-response+json;version=1"}},n={getTransactions:{endPoint:`${m}/transactions`,contentType:"application/vnd.tide.business-services.accounting-tool.transactions-list+json;version=2",accept:"application/vnd.tide.business-services.accounting-tool.transactions-list+json;version=2"},getLedgerTransactionById:{endPoint:b=>`${m}/transactions/${b}`,contentType:"application/vnd.tide.business-services.accounting-tool.transaction+json;version=1"},getManualTransactionById:{endPoint:b=>`${m}/transactions/manual/${b}`,contentType:"application/vnd.tide.business-services.accounting-tool.transaction+json;version=1"},updateTransactionVat:{endPoint:(b,C)=>`${D.globalEnvironments.API_V4_URL}/vat/accounts/${b}/transactions/${C}/vat`,accept:"application/vnd.tide.business-services.vat.transaction+json;version=1",contentType:"application/vnd.tide.business-services.vat.transaction+json;version=1"},updateTransactionCategoryV4:{endPoint:(b,C)=>`${D.globalEnvironments.API_V4_URL}/categorisation/transactions/${encodeURI(b.toString())}/schemes/${encodeURI(C.toString())}`,accept:"application/vnd.tide.business-services.categorisation.transaction-category+json;version=1",contentType:"application/vnd.tide.business-services.categorisation.set-category-request+json;version=1"},bulkAddCategory:{endPoint:`${D.globalEnvironments.API_V4_URL}/categorisation/transactions`,accept:"application/vnd.tide.business-services.categorisation.bulk-transaction-categorisation-response+json;version=1",contentType:"application/vnd.tide.business-services.categorisation.bulk-transaction-categorisation-request+json;version=1"},bulkApplyVAT:{endPoint:`${D.globalEnvironments.API_V4_URL}/vat/transactions`,accept:"application/vnd.tide.business-services.vat.bulk-transaction-vat-response+json;version=1",contentType:"application/vnd.tide.business-services.vat.bulk-transaction-vat-request+json;version=1"},addManualTransaction:{endPoint:`${D.globalEnvironments.API_V4_URL}/manual-transaction/transactions`,accept:"application/vnd.tide.business-services.manual-transaction.transaction-create-response+json;version=1",contentType:"application/vnd.tide.business-services.manual-transaction.transaction-create-request+json;version=1"},deleteManualTransaction:{endPoint:b=>`${D.globalEnvironments.API_V4_URL}/manual-transaction/transactions/${b}`,accept:"application/vnd.tide.business-services.manual-transaction.transaction-delete-response+json;version=1"}};var A=r(62853),V=r(44238),I=r(1346);let B=(()=>{class b{constructor(p,c){this._httpClient=p,this._apiService=c}getAllTransactionsCount(p){const{endPoint:c,accept:s,contentType:g}=L.getTransactions,{startDate:_,endDate:h}=p,M={page:0,size:1,from_date:(0,y.A)((0,w.A)((0,v.fm)(_))),to_date:(0,y.A)((0,O.A)((0,v.fm)(h))),scope:i.fP.ALL,category_ids:[],transaction_type:i.Yw.ALL,credit_debit:i.dv.ALL},E=(0,d.getApiV4RequestOptions)({accept:s,contentType:g},M);return this._httpClient.get(c,E).pipe((0,f.map)(({meta:U})=>({totalItems:U.totalItems,transactionsList:[]})))}getTransactions(p,c){return this.getTransactionsTAS(p,c)}getTransactionsTAS(p,c){const{endPoint:s,accept:g,contentType:_}=L.getTransactions,{pageNumber:h,startDate:M,endDate:E,transactionView:U,transactionType:j,creditDebit:$,categoryIds:F}=p,Q={page:h,size:A.cA,from_date:(0,y.A)((0,w.A)((0,v.fm)(M))),to_date:(0,y.A)((0,O.A)((0,v.fm)(E))),scope:U,category_ids:F||[],transaction_type:j||i.Yw.ALL,credit_debit:$||i.dv.ALL},N=(0,d.getApiV4RequestOptions)({accept:g,contentType:_},Q);return this._httpClient.get(s,N).pipe((0,f.map)(({data:W,meta:K})=>({totalItems:K.totalItems,transactionsList:W.transactions.map(H=>(0,S.uV)(H,c))})))}
1getTransactionDetails(p,c,s){return this._getTransactionDetailsTAS(p,c,s)}_getTransactionDetailsTAS(p,c,s){const{endpoint:g,..._}=c===i.wV.LEDGER?L.getLedgerTransactionById:L.getManualTransactionById,h=(0,d.getApiV4RequestOptions)(_,new o.HttpParams({fromObject:{transaction_id:p}}));return this._httpClient.get(g,h).pipe((0,f.map)(M=>(0,S.uV)(M.data,s)))}categoriseTransactions(p,c){const{contentType:s,accept:g,endPoint:_}=n.bulkAddCategory,h=(0,d.getApiV4RequestOptions)({contentType:s,accept:g,addIdempotencyKey:!0}),M={categoryId:p,transactions:[...c]};return this._apiService.post(_,M,h)}updateSchemeCategory(p,c,s){const{contentType:g,accept:_,endPoint:h}=n.updateTransactionCategoryV4,M=(0,d.getApiV4RequestOptions)({contentType:g,accept:_,addIdempotencyKey:!0});return this._apiService.put(h(p,c),{categoryId:s},M)}updateVat(p,c,s){const{endPoint:g,accept:_,contentType:h}=n.updateTransactionVat,M=(0,d.getApiV4RequestOptions)({accept:_,contentType:h,addIdempotencyKey:!0});return this._apiService.put(g(p,c),{data:s},M)}updateVatForBulk(p,c){const{endPoint:s,accept:g,contentType:_}=n.bulkApplyVAT,h=(0,d.getApiV4RequestOptions)({accept:g,contentType:_,addIdempotencyKey:!0});return this._apiService.put(s,{data:{vat:{rate:{id:p}},transactions:c}},h)}addManualTransaction(p){const{endPoint:c,accept:s,contentType:g}=n.addManualTransaction,_=(0,d.getApiV4RequestOptions)({accept:s,contentType:g,addIdempotencyKey:!0});return this._apiService.post(c,p,_)}deleteManualTransaction(p){const{endPoint:c,accept:s}=n.deleteManualTransaction,g=(0,d.getApiV4RequestOptions)({accept:s,addIdempotencyKey:!0});return this._apiService.delete(c(p),g)}static{this.\u0275fac=function(c){return new(c||b)(V.\u0275\u0275inject(o.HttpClient),V.\u0275\u0275inject(I.G))}}static{this.\u0275prov=V.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac,providedIn:"root"})}}return b})()},5427(G,R,r){r.d(R,{Hz:()=>S,JN:()=>P,Ri:()=>v,SF:()=>O,SI:()=>L,Zm:()=>D,c1:()=>w,cA:()=>d}),r(41025);var f=r(85184);const d=20,v="|",y={[f.fP.ALL]:"All",[f.fP.DETAILS_MISSING]:"Details missing"},w=[{value:f.Yw.ALL,label:"All transactions"},{value:f.Yw.MANUAL,label:"Manual transactions"},{value:f.Yw.LEDGER,label:"Tide transactions"}],O=[{value:f.dv.ALL,label:"All transactions"},{value:f.dv.OUTGOING,label:"Outgoing transactions"},{value:f.dv.INCOMING,label:"Incoming transactions"}],i=n=>n>0?` (${n})`:"",S=[{value:f.fP.ALL,label:n=>y[f.fP.ALL]+i(n)},{value:f.fP.DETAILS_MISSING,label:n=>y[f.fP.DETAILS_MISSING]+i(n)}],D=[{value:f.fP.ALL,label:n=>y[f.fP.ALL]+i(n)},{value:f.fP.VAT_ADDED,label:n=>y[f.fP.DETAILS_MISSING]+i(n)}],P=[{label:"I paid money",value:f.iz.DEBIT},{label:"I received money",value:f.iz.CREDIT}],L={[f.ME.CATEGORY_N_VAT]:"Details missing",[f.ME.CATEGORY]:"Category missing",[f.ME.VAT]:"VAT missing"}},5567(G,R,r){r.d(R,{lx:()=>n,Hv:()=>A,Wc:()=>B,he:()=>L,wP:()=>I,uV:()=>m});var o=r(88830),f=r(93587),d=r(60130),v=r(95656),y=r(5427),w=r(23918),O=r(47472),i=r(71093),D=r(85184);function m(b,C){const{type:p,salesTax:c,currencyAmount:s,counterParty:g,description:_,...h}=b,M=p===D.wV.MANUAL,E=M?_:g||_,U=function P(b,C){if(!b)return null;const{salesTaxAmount:p,salesTaxId:c,salesTaxCustom:s}=b;if(s)return{amount:p,rate:null};const g=C?.find(({id:_})=>_===c);return{amount:p,rate:g||null}}(c,C);return{...h,...s,manualTransaction:M,description:E,vat:U}}function L(b,C=y.Ri){return b.split(C)}function n(b,C,p=y.Ri,c=i.dY.DateFnsFormatYearMonthDate){return b instanceof Date&&C instanceof Date&&(b=(0,d.A)(b,c),C=(0,d.A)(C,c)),`${b}${p}${C}`}function A(b){return b.reduce((C,p)=>({...C,[p.value]:p.label}),{})}const I={financialYear:(b,C)=>(0,o.of)(function V(b){const[C,p]=L(b);if(C&&p){const c=s=>!!(0,v.A)(s,i.dY.DateFnsFormatYearMonthDate,new Date);return c(C)&&c(p)}return!1}(C)),transactionView:(b,C)=>(0,o.of)(function S(b,C){return Object.values(b).includes(C)}(O.fP,C))},B={financialYear:b=>b.select(w.D.selectDefaultFinancialYear).pipe((0,f.u5)(),(0,o.take)(1),(0,o.map)(C=>n(C.startDate,C.endDate))),transactionView:()=>(0,o.of)(O.fP.DETAILS_MISSING)}},57858(G,R,r){r.d(R,{Mj:()=>L,Od:()=>I,QM:()=>B,YN:()=>p,Yq:()=>n,dZ:()=>C,fm:()=>m,gH:()=>P,kb:()=>S,o8:()=>V});var f=r(60130),d=r(65220),v=r(70606),y=r(47576),w=r(12208),O=r(19247),i=r(94673);function S(c){const s=c.reduce((g,_)=>{const h=(0,f.A)(new Date(_.transactionDateTime),"iiii do MMMM yyyy");return g[h]=[...g[h]||[],_],g},{});return Object.keys(s).map(g=>({transactionsDate:g,groupTransactions:s[g]}))}function m(c){return(0,O.A)(c)?new Date(`${c[0].toString()}-${c[1]?.toString()?.padStart(2,"0")}-${c[2]?.toString()?.padStart(2,"0")}`):new Date(c)}function P(c){const s=new Date;return(0,d.A)(m([s.getFullYear(),s.getMonth()+1,s.getDate()]),c)}
1function L(c,s){if(!s||0===s.length)return null;const{startDate:g}=s[s.length-1],_=c?.filter(({submissionDate:h})=>!h)?.filter(({startDate:h})=>function A(c,s){return(0,v.A)(c,s)||(0,d.A)(c,s)}(m(h),m(g))).sort((h,M)=>+m(h.dueDate)-+m(M.dueDate));return _?.length>0?_[0]:null}function n(c,s){return c?(0,y.A)(new Date(c))?(0,f.A)(new Date(c),s||"yyyy-MM-dd"):"Invalid date":""}function V(c){const{liability:s,obligation:g}=c;return{liability:s,obligation:g,status:i.Kf.SUBMITTED}}function I(c){return!!c?.submissionDate}function B(c,s){const{numberOfCreditTransactionWithVAT:g,numberOfDebitTransactionWithVAT:_,numberOfManualCreditTransactionWithVAT:h,numberOfManualDebitTransactionWithVAT:M}=c,E=g+h,U=_+M;return{obligation:c.obligation,liability:c.liability,unmanagedTransactions:s??c.transactionCountWithNoVatSpecified+c.numberOfManualTransactionWithNoVatSpecified,review:{vatCharged:{transactionCount:E,amount:c.liability.grossVatDue},vatPaid:{transactionCount:U,amount:c.liability.totalVatOnExpenses},vatToBePaidOrReclaimed:{transactionCount:E+U,amount:c.liability.netVatToBePaidOrReclaimed,status:b(c.liability.totalVatOnExpenses.amount,c.liability.grossVatDue.amount)}}}}function b(c,s){let g=null;return c>s?g=i._9.Credit:c<s&&(g=i._9.Debit),g}function C(c){return{id:c.id,submissionDate:c.submissionDate,returnStatus:c.returnStatus,obligation:c.obligation,liability:c.liability,hmrcSubmissionReference:c.mtdVatReturnConfirmationId,review:{vatToBePaidOrReclaimed:{amount:{amount:c.liability?.netVatToBePaidOrReclaimed.amount,currency:"GBP"},status:b(c.liability?.totalVatOnExpenses.amount,c.liability?.grossVatDue.amount)}}}}function p(c,s){return s&&0!==s.length?c.filter(_=>s.some(h=>{if(_?.obligation?.startDate?.length){const M=m(_?.obligation?.startDate||""),E=m(h.startDate),U=m(h.endDate);return(0,v.A)(E,M)||(0,w.A)(M,{start:E,end:U})}return!1})):c}},94673(G,R,r){r.d(R,{AV:()=>v,Be:()=>S,Dk:()=>w,F6:()=>f,Ij:()=>O,Kf:()=>m,T$:()=>o,_9:()=>d,dV:()=>P,g9:()=>D,oP:()=>L});var o=function(n){return n[n.LOADING=0]="LOADING",n[n.LOADED=1]="LOADED",n[n.ERROR=2]="ERROR",n}(o||{}),f=function(n){return n.Credit="CREDIT",n.Debit="DEBIT",n.Both="BOTH",n}(f||{}),d=function(n){return n.Debit="DEBIT",n.Credit="CREDIT",n}(d||{}),v=function(n){return n.Registered="REGISTERED",n.DeRegistered="DE_REGISTERED",n.NotRegistered="NOT_REGISTERED",n.PendingRegistration="PENDING_REGISTRATION",n.RegistrationFailed="REGISTRATION_FAILED",n.RegistrationExpired="REGISTRATION_EXPIRED",n}(v||{}),w=function(n){return n.VatOnRevenue="vatOnRevenue",n.UnpaidVatOnEcAcquisitions="unpaidVatOnEcAcquisitions",n.GrossVatDue="grossVatDue",n.TotalVatOnExpenses="totalVatOnExpenses",n.NetVatToBePaidOrReclaimed="netVatToBePaidOrReclaimed",n.TotalRevenueExVat="totalRevenueExVat",n.TotalExpensesExVat="totalExpensesExVat",n.TotalEcRevenueExVat="totalEcRevenueExVat",n.TotalEcExpensesExVat="totalEcExpensesExVat",n}(w||{}),O=function(n){return n.Pending="PENDING",n.Submitted="SUBMITTED",n.Failed="FAILED",n}(O||{}),S=function(n){return n.HMRC_SYNC="hmrc-sync",n.TIDE_ACCOUNTING="tide-accounting",n.VAT_SUBMISSION="vat-submission",n.NOT_REGISTERED="not-registered",n.SUMMARY="summary",n.OBLIGATION_DETAILS="obligation-details",n.HOW_TO_USE="how-to-use",n.ACCRUAL_ACCOUNTING="accrual-accounting",n.SUBMISSIONS="submissions",n}(S||{}),D=function(n){return n.VAT_APPLIED="VAT applied",n.REFRESH_HMRC="Refreshed successfully",n}(D||{}),m=function(n){return n.YET_TO_CREATE="YET_TO_CREATE",n.PENDING_CREATION="PENDING_CREATION",n.CREATED="CREATED",n.CREATION_FAILED="CREATION_FAILED",n.PENDING_DELETION="PENDING_DELETION",n.DELETION_PENDING="DELETION_PENDING",n.DELETION_FAILED="DELETION_FAILED",n.SUBMITTED="SUBMITTED",n}(m||{}),P=function(n){return n.NOT_YET_STARTED="NOT_YET_STARTED",n.IN_PROGRESS="IN_PROGRESS",n.DONE="DONE",n.ERROR="ERROR",n.ITEMS_MISSING_DATA="ITEMS_MISSING_DATA",n.PRE_FILING_PERIOD_END="PRE_FILING_PERIOD_END",n}(P||{}),L=function(n){return n.OPEN="open",n.PAST="past",n}(L||{})},66595(G,R,r){r.d(R,{A:()=>n});var o=r(98990),f=r(22552),d=r(95370),v=r(59103),y=r(87979),w=r(67774),O=r(85516),i=r(64507),D=1440,m=30*D,P=365*D;function n(A,V){return(0,i.A)(1,arguments),function L(A,V,I){var B,b,C;(0,i.A)(2,arguments);var p=(0,o.q)(),c=null!==(B=null!==(b=I?.locale)&&void 0!==b?b:p.locale)&&void 0!==B?B:O.A;if(!c.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=(0,d.A)(A,V);if(isNaN(s))throw new RangeError("Invalid time value");var _,h,g=(0,w.A)((0,y.A)(I),{addSuffix:!!I?.addSuffix,comparison:s});s>0?(_=(0,v.A)(V),h=(0,v.A)(A)):(_=(0,v.A)(A),h=(0,v.A)(V));var E,M=String(null!==(C=I?.roundingMethod)&&void 0!==C?C:"round");if("floor"===M)E=Math.floor;else if("ceil"===M)E=Math.ceil;else{if("round"!==M)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");E=Math.round}var N,U=h.getTime()-_.getTime(),j=U/6e4,F=(U-((0,f.A)(h)-(0,f.A)(_)))/6e4,Q=I?.unit;if("second"===(N=Q?String(Q):j<1?"second":j<60?"minute":j<D?"hour":F<m?"day":F<P?"month":"year")){var W=E(U/1e3);return c.formatDistance("xSeconds",W,g)}if("minute"===N){var K=E(j);return c.formatDistance("xMinutes",K,g)}if("hour"===N){var H=E(j/60);return c.formatDistance("xHours",H,g)}if("day"===N){var X=E(F/D);return c.formatDistance("xDays",X,g)}if("month"===N){var Z=E(F/m);return 12===Z&&"month"!==Q?c.formatDistance("xYears",1,g):c.formatDistance("xMonths",Z,g)}if("year"===N){var q=E(F/P);return c.formatDistance("xYears",q,g)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(A,Date.now(),V)}},65220(G,R,r){r.d(R,{A:()=>d});var o=r(59103),f=r(64507);function d(v,y){(0,f.A)(2,arguments);var w=(0,o.A)(v),O=(0,o.A)(y);return w.getTime()>O.getTime()}}}]);

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.