1import{a as Bn,b as Nn}from"./chunk-FHSLOJYJ.js";import{a as Fn}from"./chunk-WHY7MHP3.js";import"./chunk-SJZG5TEF.js";import"./chunk-D5KUU6QT.js";import"./chunk-65WSLPL5.js";import"./chunk-QQGQ4ZDN.js";import"./chunk-NTBF65O4.js";import{b as fr,g as In}from"./chunk-ZP4SIV7R.js";import{a as Un}from"./chunk-NW4IAOO7.js";import{a as Dn}from"./chunk-PEHJZN23.js";import{g as _r,h as hr}from"./chunk-4WEG7IVJ.js";import"./chunk-TJYDWB3A.js";import{B as pr,d as lr,u as mr,z as Tn}from"./chunk-TCEBRUQ5.js";import"./chunk-EIXLYPJS.js";import{a as wn}from"./chunk-44R3TA2T.js";import"./chunk-MKJOXIZ4.js";import{a as En}from"./chunk-QOKQWWM3.js";import"./chunk-G3SVX2UQ.js";import"./chunk-XYOQOPJW.js";import"./chunk-REDAKXPD.js";import{c as nr,d as ir,e as or,f as rr,g as ar}from"./chunk-6ADGTBCH.js";import{a as cr,b as kn,c as sr}from"./chunk-4ZO4I4DG.js";import{a as Cr,b as br,c as An,d as xr}from"./chunk-VP7AVELC.js";import"./chunk-IRQIU4ZT.js";import"./chunk-7XEQOVF3.js";import{a as ur,b as gr}from"./chunk-6PGMTTVL.js";import{a as dr}from"./chunk-TMQFH4Z5.js";import"./chunk-HFF7LVJF.js";import"./chunk-6F3HNSV4.js";import"./chunk-GGMUMHXP.js";import"./chunk-7JFQDI7T.js";import"./chunk-F53BA2FT.js";import{a as tr}from"./chunk-XTKMCAUU.js";import"./chunk-HN522NUE.js";import{d as Zo,g as Xo,i as er}from"./chunk-2XJFAMKN.js";import{a as Ut}from"./chunk-MGJV63TY.js";import"./chunk-7V2NBRV4.js";import{a as Ae,b as te}from"./chunk-GM3GCIEZ.js";import{d as On,e as Sn}from"./chunk-SQZW67JE.js";import"./chunk-5JY4HLUN.js";import"./chunk-TXBYZEBC.js";import"./chunk-ILI3HH6J.js";import{a as Ue,b as Ie,d as Pn}from"./chunk-RVKYQXK5.js";import{a as z}from"./chunk-RCU3ZRIF.js";import"./chunk-QDHRA3RW.js";import{a as Je,b as yt,c as vt,d as bo,e as Mt}from"./chunk-4Z2TJCUB.js";import"./chunk-K5V3DMJX.js";import{a as Z}from"./chunk-C5DMIZAL.js";import"./chunk-VTZ4AW6U.js";import"./chunk-B73GKYRA.js";import{f as Qo,g as Ko,s as Jo}from"./chunk-XE6626LO.js";import{m as Co}from"./chunk-CYAWKZP2.js";import{a as go,e as _o,q as ho}from"./chunk-VNDR5JVA.js";import{a as X,d as Yo,e as Dt,h as $o,k as De,m as xn,p as yn,q as vn}from"./chunk-6Z5FNPGD.js";import{K as bn,L as xe,c as qo,d as Ht,j as jo,o as Ho,p as Go,v as fn,w as Cn}from"./chunk-53ZYRRKJ.js";import{a as Mn,b as Wo}from"./chunk-XWMBWOTN.js";import{$ as Ao,Aa as be,B as Do,D as jt,Fa as wt,Ga as Et,Ha as Ro,Ia as Tt,Ka as _n,L as Uo,La as hn,Ma as de,P as Le,T as Io,Ua as Lo,fa as Fo,gc as ze,l as fo,la as Bo,ma as Pt,na as tt,oa as No,oc as Vo,pc as zo,sa as fe,ta as Ce,tb as Ve,ua as Ot,ub as nt,wa as St,xa as q,yb as J,za as kt}from"./chunk-XPV7SQ5Y.js";import{$ as ji,$b as E,$c as mo,Ab as oe,Ac as S,Ad as uo,Ae as K,Ba as Ct,Bb as f,Bc as H,Be as st,Ca as zt,Cb as a,Ce as lt,Da as Wi,Db as c,Dc as xt,Dd as xo,De as un,Eb as C,Ec as _e,F as qi,Fa as T,Fb as ct,Gb as $e,Gc as he,Hb as Zi,Hd as Ze,Ia as rn,Id as yo,J as ue,Ja as we,Jc as so,Je as Xe,Kc as mn,Kd as se,La as Qi,Lb as O,Lc as me,Ld as le,Mb as Xi,Nb as y,Pb as m,Pd as vo,Pe as wo,Qb as cn,R as Me,Rb as sn,Sc as N,Ta as Ki,Tb as ge,Tc as Ke,Ua as Pe,Ub as re,Uc as lo,Vb as ae,Ve as et,Xa as l,Zb as qt,_b as eo,_c as ce,bb as Ye,bc as We,bd as po,bf as gn,ca as ke,cc as s,cd as pn,ce as Mo,da as R,dc as D,e as Ri,ec as P,fa as on,fc as Y,fe as ri,gb as M,hb as bt,hc as $,ic as W,jc as Q,ka as Hi,kb as ne,kc as to,la as ht,lb as Ee,lc as no,m as Li,ma as ft,mc as io,n as Vi,na as Gi,nc as Qe,oc as oo,oe as Te,pa as g,qc as ro,qe as Po,r as ve,rc as ln,rf as V,s as zi,sb as Ne,tc as L,ub as _,uc as Re,va as b,vb as an,vc as dn,ve as Oo,vf as Eo,wa as x,wb as h,wc as ao,we as So,wf as To,xa as Yi,xb as Ji,xe as ko,ya as $i,yb as Oe,yc as co,zb as ie,zc as v}from"./chunk-T5IFD54H.js";import"./chunk-TPRNI2PO.js";import"./chunk-OTBLCR3N.js";import{a as Ge,b as Ni,e as A,f as Xa,g as _t}from"./chunk-CS7K6LXP.js";var Ar=A((rp,Ir)=>{"use strict";Ir.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var it=A(dt=>{"use strict";var si,yc=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];dt.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};dt.getSymbolTotalCodewords=function(n){return yc[n]};dt.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n};dt.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');si=n};dt.isKanjiModeEnabled=function(){return typeof si<"u"};dt.toSJIS=function(n){return si(n)}});var zn=A(ye=>{"use strict";ye.L={bit:1};ye.M={bit:0};ye.Q={bit:3};ye.H={bit:2};
1function vc(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return ye.L;case"m":case"medium":return ye.M;case"q":case"quartile":return ye.Q;case"h":case"high":return ye.H;default:throw new Error("Unknown EC Level: "+i)}}ye.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4};ye.from=function(n,e){if(ye.isValid(n))return n;try{return vc(n)}catch(t){return e}}});var Nr=A((sp,Br)=>{"use strict";function Fr(){this.buffer=[],this.length=0}Fr.prototype={get:function(i){let n=Math.floor(i/8);return(this.buffer[n]>>>7-i%8&1)===1},put:function(i,n){for(let e=0;e<n;e++)this.putBit((i>>>n-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(i){let n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),i&&(this.buffer[n]|=128>>>this.length%8),this.length++}};Br.exports=Fr});var Lr=A((lp,Rr)=>{"use strict";function Qt(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=new Uint8Array(i*i),this.reservedBit=new Uint8Array(i*i)}Qt.prototype.set=function(i,n,e,t){let o=i*this.size+n;this.data[o]=e,t&&(this.reservedBit[o]=!0)};Qt.prototype.get=function(i,n){return this.data[i*this.size+n]};Qt.prototype.xor=function(i,n,e){this.data[i*this.size+n]^=e};Qt.prototype.isReserved=function(i,n){return this.reservedBit[i*this.size+n]};Rr.exports=Qt});var Vr=A(qn=>{"use strict";var Mc=it().getSymbolSize;qn.getRowColCoords=function(n){if(n===1)return[];let e=Math.floor(n/7)+2,t=Mc(n),o=t===145?26:Math.ceil((t-13)/(2*e-2))*2,r=[t-7];for(let d=1;d<e-1;d++)r[d]=r[d-1]-o;return r.push(6),r.reverse()};qn.getPositions=function(n){let e=[],t=qn.getRowColCoords(n),o=t.length;for(let r=0;r<o;r++)for(let d=0;d<o;d++)r===0&&d===0||r===0&&d===o-1||r===o-1&&d===0||e.push([t[r],t[d]]);return e}});var jr=A(qr=>{"use strict";var Pc=it().getSymbolSize,zr=7;qr.getPositions=function(n){let e=Pc(n);return[[0,0],[e-zr,0],[0,e-zr]]}});var Hr=A(F=>{"use strict";F.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var mt={N1:3,N2:3,N3:40,N4:10};F.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7};F.from=function(n){return F.isValid(n)?parseInt(n,10):void 0};F.getPenaltyN1=function(n){let e=n.size,t=0,o=0,r=0,d=null,p=null;for(let u=0;u<e;u++){o=r=0,d=p=null;for(let k=0;k<e;k++){let w=n.get(u,k);w===d?o++:(o>=5&&(t+=mt.N1+(o-5)),d=w,o=1),w=n.get(k,u),w===p?r++:(r>=5&&(t+=mt.N1+(r-5)),p=w,r=1)}o>=5&&(t+=mt.N1+(o-5)),r>=5&&(t+=mt.N1+(r-5))}return t};F.getPenaltyN2=function(n){let e=n.size,t=0;for(let o=0;o<e-1;o++)for(let r=0;r<e-1;r++){let d=n.get(o,r)+n.get(o,r+1)+n.get(o+1,r)+n.get(o+1,r+1);(d===4||d===0)&&t++}return t*mt.N2};F.getPenaltyN3=function(n){let e=n.size,t=0,o=0,r=0;for(let d=0;d<e;d++){o=r=0;for(let p=0;p<e;p++)o=o<<1&2047|n.get(d,p),p>=10&&(o===1488||o===93)&&t++,r=r<<1&2047|n.get(p,d),p>=10&&(r===1488||r===93)&&t++}return t*mt.N3};F.getPenaltyN4=function(n){let e=0,t=n.data.length;for(let r=0;r<t;r++)e+=n.data[r];return Math.abs(Math.ceil(e*100/t/5)-10)*mt.N4};function Oc(i,n,e){switch(i){case F.Patterns.PATTERN000:return(n+e)%2===0;case F.Patterns.PATTERN001:return n%2===0;case F.Patterns.PATTERN010:return e%3===0;case F.Patterns.PATTERN011:return(n+e)%3===0;case F.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(e/3))%2===0;case F.Patterns.PATTERN101:return n*e%2+n*e%3===0;case F.Patterns.PATTERN110:return(n*e%2+n*e%3)%2===0;case F.Patterns.PATTERN111:return(n*e%3+(n+e)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}F.applyMask=function(n,e){let t=e.size;for(let o=0;o<t;o++)for(let r=0;r<t;r++)e.isReserved(r,o)||e.xor(r,o,Oc(n,r,o))};F.getBestMask=function(n,e){let t=Object.keys(F.Patterns).length,o=0,r=1/0;for(let d=0;d<t;d++){e(d),F.applyMask(d,n);let p=F.getPenaltyN1(n)+F.getPenaltyN2(n)+F.getPenaltyN3(n)+F.getPenaltyN4(n);F.applyMask(d,n),p<r&&(r=p,o=d)}return o}});var di=A(li=>{"use strict";var ot=zn(),jn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Hn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
1192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];li.getBlocksCount=function(n,e){switch(e){case ot.L:return jn[(n-1)*4+0];case ot.M:return jn[(n-1)*4+1];case ot.Q:return jn[(n-1)*4+2];case ot.H:return jn[(n-1)*4+3];default:return}};li.getTotalCodewordsCount=function(n,e){switch(e){case ot.L:return Hn[(n-1)*4+0];case ot.M:return Hn[(n-1)*4+1];case ot.Q:return Hn[(n-1)*4+2];case ot.H:return Hn[(n-1)*4+3];default:return}}});var Gr=A(Yn=>{"use strict";var Kt=new Uint8Array(512),Gn=new Uint8Array(256);(function(){let n=1;for(let e=0;e<255;e++)Kt[e]=n,Gn[n]=e,n<<=1,n&256&&(n^=285);for(let e=255;e<512;e++)Kt[e]=Kt[e-255]})();Yn.log=function(n){if(n<1)throw new Error("log("+n+")");return Gn[n]};Yn.exp=function(n){return Kt[n]};Yn.mul=function(n,e){return n===0||e===0?0:Kt[Gn[n]+Gn[e]]}});var Yr=A(Jt=>{"use strict";var mi=Gr();Jt.mul=function(n,e){let t=new Uint8Array(n.length+e.length-1);for(let o=0;o<n.length;o++)for(let r=0;r<e.length;r++)t[o+r]^=mi.mul(n[o],e[r]);return t};Jt.mod=function(n,e){let t=new Uint8Array(n);for(;t.length-e.length>=0;){let o=t[0];for(let d=0;d<e.length;d++)t[d]^=mi.mul(e[d],o);let r=0;for(;r<t.length&&t[r]===0;)r++;t=t.slice(r)}return t};Jt.generateECPolynomial=function(n){let e=new Uint8Array([1]);for(let t=0;t<n;t++)e=Jt.mul(e,new Uint8Array([1,mi.exp(t)]));return e}});var Qr=A((hp,Wr)=>{"use strict";var $r=Yr();function pi(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}pi.prototype.initialize=function(n){this.degree=n,this.genPoly=$r.generateECPolynomial(this.degree)};pi.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(n.length+this.degree);e.set(n);let t=$r.mod(e,this.genPoly),o=this.degree-t.length;if(o>0){let r=new Uint8Array(this.degree);return r.set(t,o),r}return t};Wr.exports=pi});var ui=A(Kr=>{"use strict";Kr.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}});var gi=A(qe=>{"use strict";var Jr="[0-9]+",Sc="[A-Z $%*+\\-./:]+",Zt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Zt=Zt.replace(/u/g,"\\u");var kc="(?:(?![A-Z0-9 $%*+\\-./:]|"+Zt+`)(?:.|[\r 2]))+`;qe.KANJI=new RegExp(Zt,"g");qe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");qe.BYTE=new RegExp(kc,"g");qe.NUMERIC=new RegExp(Jr,"g");qe.ALPHANUMERIC=new RegExp(Sc,"g");var wc=new RegExp("^"+Zt+"$"),Ec=new RegExp("^"+Jr+"$"),Tc=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");qe.testKanji=function(n){return wc.test(n)};qe.testNumeric=function(n){return Ec.test(n)};qe.testAlphanumeric=function(n){return Tc.test(n)}});var rt=A(j=>{"use strict";var Dc=ui(),_i=gi();j.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};j.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};j.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};j.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};j.MIXED={bit:-1};j.getCharCountIndicator=function(n,e){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!Dc.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?n.ccBits[0]:e<27?n.ccBits[1]:n.ccBits[2]};j.getBestModeForData=function(n){return _i.testNumeric(n)?j.NUMERIC:_i.testAlphanumeric(n)?j.ALPHANUMERIC:_i.testKanji(n)?j.KANJI:j.BYTE};j.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")};j.isValid=function(n){return n&&n.bit&&n.ccBits};function Uc(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return j.NUMERIC;case"alphanumeric":return j.ALPHANUMERIC;case"kanji":return j.KANJI;case"byte":return j.BYTE;default:throw new Error("Unknown mode: "+i)}}j.from=function(n,e){if(j.isValid(n))return n;try{return Uc(n)}catch(t){return e}}});var na=A(pt=>{"use strict";var $n=it(),Ic=di(),Zr=zn(),at=rt(),hi=ui(),ea=7973,Xr=$n.getBCHDigit
2(ea);function Ac(i,n,e){for(let t=1;t<=40;t++)if(n<=pt.getCapacity(t,e,i))return t}function ta(i,n){return at.getCharCountIndicator(i,n)+4}function Fc(i,n){let e=0;return i.forEach(function(t){let o=ta(t.mode,n);e+=o+t.getBitsLength()}),e}function Bc(i,n){for(let e=1;e<=40;e++)if(Fc(i,e)<=pt.getCapacity(e,n,at.MIXED))return e}pt.from=function(n,e){return hi.isValid(n)?parseInt(n,10):e};pt.getCapacity=function(n,e,t){if(!hi.isValid(n))throw new Error("Invalid QR Code version");typeof t>"u"&&(t=at.BYTE);let o=$n.getSymbolTotalCodewords(n),r=Ic.getTotalCodewordsCount(n,e),d=(o-r)*8;if(t===at.MIXED)return d;let p=d-ta(t,n);switch(t){case at.NUMERIC:return Math.floor(p/10*3);case at.ALPHANUMERIC:return Math.floor(p/11*2);case at.KANJI:return Math.floor(p/13);case at.BYTE:default:return Math.floor(p/8)}};pt.getBestVersionForData=function(n,e){let t,o=Zr.from(e,Zr.M);if(Array.isArray(n)){if(n.length>1)return Bc(n,o);if(n.length===0)return 1;t=n[0]}else t=n;return Ac(t.mode,t.getLength(),o)};pt.getEncodedBits=function(n){if(!hi.isValid(n)||n<7)throw new Error("Invalid QR Code version");let e=n<<12;for(;$n.getBCHDigit(e)-Xr>=0;)e^=ea<<$n.getBCHDigit(e)-Xr;return n<<12|e}});var aa=A(ra=>{"use strict";var fi=it(),oa=1335,Nc=21522,ia=fi.getBCHDigit(oa);ra.getEncodedBits=function(n,e){let t=n.bit<<3|e,o=t<<10;for(;fi.getBCHDigit(o)-ia>=0;)o^=oa<<fi.getBCHDigit(o)-ia;return(t<<10|o)^Nc}});var sa=A((vp,ca)=>{"use strict";var Rc=rt();function At(i){this.mode=Rc.NUMERIC,this.data=i.toString()}At.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};At.prototype.getLength=function(){return this.data.length};At.prototype.getBitsLength=function(){return At.getBitsLength(this.data.length)};At.prototype.write=function(n){let e,t,o;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),o=parseInt(t,10),n.put(o,10);let r=this.data.length-e;r>0&&(t=this.data.substr(e),o=parseInt(t,10),n.put(o,r*3+1))};ca.exports=At});var da=A((Mp,la)=>{"use strict";var Lc=rt(),Ci=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ft(i){this.mode=Lc.ALPHANUMERIC,this.data=i}Ft.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};Ft.prototype.getLength=function(){return this.data.length};Ft.prototype.getBitsLength=function(){return Ft.getBitsLength(this.data.length)};Ft.prototype.write=function(n){let e;for(e=0;e+2<=this.data.length;e+=2){let t=Ci.indexOf(this.data[e])*45;t+=Ci.indexOf(this.data[e+1]),n.put(t,11)}this.data.length%2&&n.put(Ci.indexOf(this.data[e]),6)};la.exports=Ft});var pa=A((Pp,ma)=>{"use strict";var Vc=rt();function Bt(i){this.mode=Vc.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}Bt.getBitsLength=function(n){return n*8};Bt.prototype.getLength=function(){return this.data.length};Bt.prototype.getBitsLength=function(){return Bt.getBitsLength(this.data.length)};Bt.prototype.write=function(i){for(let n=0,e=this.data.length;n<e;n++)i.put(this.data[n],8)};ma.exports=Bt});var ga=A((Op,ua)=>{"use strict";var zc=rt(),qc=it();function Nt(i){this.mode=zc.KANJI,this.data=i}Nt.getBitsLength=function(n){return n*13};Nt.prototype.getLength=function(){return this.data.length};Nt.prototype.getBitsLength=function(){return Nt.getBitsLength(this.data.length)};Nt.prototype.write=function(i){let n;for(n=0;n<this.data.length;n++){let e=qc.toSJIS(this.data[n]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+` 3Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),i.put(e,13)}};ua.exports=Nt});var _a=A((Sp,bi)=>{"use strict";var Xt={single_source_shortest_paths:function(i,n,e){var t={},o={};o[n]=0;var r=Xt.PriorityQueue.make();r.push(n,0);for(var d,p,u,k,w,G,B,Se,je;!r.empty();){d=r.pop(),p=d.value,k=d.cost,w=i[p]||{};for(u in w)w.hasOwnProperty(u)&&(G=w[u],B=k+G,Se=o[u],je=typeof o[u]>"u",(je||Se>B)&&(o[u]=B,r.push(u,B),t[u]=p))}if(typeof e<"u"&&typeof o[e]>"u"){var He=["Could not find a path from ",n," to ",e,"."].join("");throw new Error(He)}return t},extract_shortest_path_from_predecessor_list:function(i,n){for(var e=[],t=n,o;t;)e.push(t),o=i[t],t=i[t];return e.reverse(),e},find_path:function(i,n,e){var t=Xt.single_source_shortest_paths(i,n,e);return Xt.extract_shortest_path_from_predecessor_list(t,e)},PriorityQueue:{make:function(i){var n=Xt.PriorityQueue,e={},t;i=i||{};for(t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e.queue=[],e.sorter=i.sorter||n.default_sorter,e},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var e={value:i,cost:n};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof bi<"u"&&(bi.exports=Xt)});var Ma=A(Rt=>{"use strict";var I=rt(),Ca=sa(),ba=da(),xa=pa(),ya=ga(),en=gi(),Wn=it(),jc=_a();function ha(i){return unescape(encodeURIComponent(i)).length}function tn(i,n,e){let t=[],o;for(;(o=i.exec(e))!==null;)t.push({data:o[0],index:o.index,mode:n,length:o[0].length});return t}function va(i){let n=tn(en.NUMERIC,I.NUMERIC,i),e=tn(en.ALPHANUMERIC,I.ALPHANUMERIC,i),t,o;return Wn.isKanjiModeEnabled()?(t=tn(en.BYTE,I.BYTE,i),o=tn(en.KANJI,I.KANJI,i)):(t=tn(en.BYTE_KANJI,I.BYTE,i),o=[]),n.concat(e,t,o).sort(function(d,p){return d.index-p.index}).map(function(d){return{data:d.data,mode:d.mode,length:d.length}})}function xi(i,n){switch(n){case I.NUMERIC:return Ca.getBitsLength(i);case I.ALPHANUMERIC:return ba.getBitsLength(i);case I.KANJI:return ya.getBitsLength(i);case I.BYTE:return xa.getBitsLength(i)}}function Hc(i){return i.reduce(function(n,e){let t=n.length-1>=0?n[n.length-1]:null;return t&&t.mode===e.mode?(n[n.length-1].data+=e.data,n):(n.push(e),n)},[])}function Gc(i){let n=[];for(let e=0;e<i.length;e++){let t=i[e];switch(t.mode){case I.NUMERIC:n.push([t,{data:t.data,mode:I.ALPHANUMERIC,length:t.length},{data:t.data,mode:I.BYTE,length:t.length}]);break;case I.ALPHANUMERIC:n.push([t,{data:t.data,mode:I.BYTE,length:t.length}]);break;case I.KANJI:n.push([t,{data:t.data,mode:I.BYTE,length:ha(t.data)}]);break;case I.BYTE:n.push([{data:t.data,mode:I.BYTE,length:ha(t.data)}])}}return n}function Yc(i,n){let e={},t={start:{}},o=["start"];for(let r=0;r<i.length;r++){let d=i[r],p=[];for(let u=0;u<d.length;u++){let k=d[u],w=""+r+u;p.push(w),e[w]={node:k,lastCount:0},t[w]={};for(let G=0;G<o.length;G++){let B=o[G];e[B]&&e[B].node.mode===k.mode?(t[B][w]=xi(e[B].lastCount+k.length,k.mode)-xi(e[B].lastCount,k.mode),e[B].lastCount+=k.length):(e[B]&&(e[B].lastCount=k.length),t[B][w]=xi(k.length,k.mode)+4+I.getCharCountIndicator(k.mode,n))}}o=p}for(let r=0;r<o.length;r++)t[o[r]].end=0;return{map:t,table:e}}function fa(i,n){let e,t=I.getBestModeForData(i);if(e=I.from(n,t),e!==I.BYTE&&e.bit<t.bit)throw new Error('"'+i+'" cannot be encoded with mode '+I.toString(e)+`. 4 Suggested mode is: `+I.toString(t));switch(e===I.KANJI&&!Wn.isKanjiModeEnabled()&&(e=I.BYTE),e){case I.NUMERIC:return new Ca(i);case I.ALPHANUMERIC:return new ba(i);case I.KANJI:return new ya(i);case I.BYTE:return new xa(i)}}Rt.fromArray=function(n){return n.reduce(function(e,t){return typeof t=="string"?e.push(fa(t,null)):t.data&&e.push(fa(t.data,t.mode)),e},[])};Rt.fromString=function(n,e){let t=va(n,Wn.isKanjiModeEnabled()),o=Gc(t),r=Yc(o,e),d=jc.find_path(r.map,"start","end"),p=[];for(let u=1;u<d.length-1;u++)p.push(r.table[d[u]].node);return Rt.fromArray(Hc(p))};Rt.rawSplit=function(n){return Rt.fromArray(va(n,Wn.isKanjiModeEnabled()))}});var Oa=A(Pa=>{"use strict";var Kn=it(),yi=zn(),$c=Nr(),Wc=Lr(),Qc=Vr(),Kc=jr(),Pi=Hr(),Oi=di(),Jc=Qr(
4),Qn=na(),Zc=aa(),Xc=rt(),vi=Ma();function es(i,n){let e=i.size,t=Kc.getPositions(n);for(let o=0;o<t.length;o++){let r=t[o][0],d=t[o][1];for(let p=-1;p<=7;p++)if(!(r+p<=-1||e<=r+p))for(let u=-1;u<=7;u++)d+u<=-1||e<=d+u||(p>=0&&p<=6&&(u===0||u===6)||u>=0&&u<=6&&(p===0||p===6)||p>=2&&p<=4&&u>=2&&u<=4?i.set(r+p,d+u,!0,!0):i.set(r+p,d+u,!1,!0))}}function ts(i){let n=i.size;for(let e=8;e<n-8;e++){let t=e%2===0;i.set(e,6,t,!0),i.set(6,e,t,!0)}}function ns(i,n){let e=Qc.getPositions(n);for(let t=0;t<e.length;t++){let o=e[t][0],r=e[t][1];for(let d=-2;d<=2;d++)for(let p=-2;p<=2;p++)d===-2||d===2||p===-2||p===2||d===0&&p===0?i.set(o+d,r+p,!0,!0):i.set(o+d,r+p,!1,!0)}}function is(i,n){let e=i.size,t=Qn.getEncodedBits(n),o,r,d;for(let p=0;p<18;p++)o=Math.floor(p/3),r=p%3+e-8-3,d=(t>>p&1)===1,i.set(o,r,d,!0),i.set(r,o,d,!0)}function Mi(i,n,e){let t=i.size,o=Zc.getEncodedBits(n,e),r,d;for(r=0;r<15;r++)d=(o>>r&1)===1,r<6?i.set(r,8,d,!0):r<8?i.set(r+1,8,d,!0):i.set(t-15+r,8,d,!0),r<8?i.set(8,t-r-1,d,!0):r<9?i.set(8,15-r-1+1,d,!0):i.set(8,15-r-1,d,!0);i.set(t-8,8,1,!0)}function os(i,n){let e=i.size,t=-1,o=e-1,r=7,d=0;for(let p=e-1;p>0;p-=2)for(p===6&&p--;;){for(let u=0;u<2;u++)if(!i.isReserved(o,p-u)){let k=!1;d<n.length&&(k=(n[d]>>>r&1)===1),i.set(o,p-u,k),r--,r===-1&&(d++,r=7)}if(o+=t,o<0||e<=o){o-=t,t=-t;break}}}function rs(i,n,e){let t=new $c;e.forEach(function(u){t.put(u.mode.bit,4),t.put(u.getLength(),Xc.getCharCountIndicator(u.mode,i)),u.write(t)});let o=Kn.getSymbolTotalCodewords(i),r=Oi.getTotalCodewordsCount(i,n),d=(o-r)*8;for(t.getLengthInBits()+4<=d&&t.put(0,4);t.getLengthInBits()%8!==0;)t.putBit(0);let p=(d-t.getLengthInBits())/8;for(let u=0;u<p;u++)t.put(u%2?17:236,8);return as(t,i,n)}function as(i,n,e){let t=Kn.getSymbolTotalCodewords(n),o=Oi.getTotalCodewordsCount(n,e),r=t-o,d=Oi.getBlocksCount(n,e),p=t%d,u=d-p,k=Math.floor(t/d),w=Math.floor(r/d),G=w+1,B=k-w,Se=new Jc(B),je=0,He=new Array(d),Fi=new Array(d),ni=0,Za=new Uint8Array(i.buffer);for(let gt=0;gt<d;gt++){let oi=gt<u?w:G;He[gt]=Za.slice(je,je+oi),Fi[gt]=Se.encode(He[gt]),je+=oi,ni=Math.max(ni,oi)}let ii=new Uint8Array(t),Bi=0,Fe,Be;for(Fe=0;Fe<ni;Fe++)for(Be=0;Be<d;Be++)Fe<He[Be].length&&(ii[Bi++]=He[Be][Fe]);for(Fe=0;Fe<B;Fe++)for(Be=0;Be<d;Be++)ii[Bi++]=Fi[Be][Fe];return ii}function cs(i,n,e,t){let o;if(Array.isArray(i))o=vi.fromArray(i);else if(typeof i=="string"){let k=n;if(!k){let w=vi.rawSplit(i);k=Qn.getBestVersionForData(w,e)}o=vi.fromString(i,k||40)}else throw new Error("Invalid data");let r=Qn.getBestVersionForData(o,e);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!n)n=r;else if(n<r)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+r+`. 7`);let d=rs(n,e,o),p=Kn.getSymbolSize(n),u=new Wc(p);return es(u,n),ts(u),ns(u,n),Mi(u,e,0),n>=7&&is(u,n),os(u,d),isNaN(t)&&(t=Pi.getBestMask(u,Mi.bind(null,u,e))),Pi.applyMask(t,u),Mi(u,e,t),{modules:u,version:n,errorCorrectionLevel:e,maskPattern:t,segments:o}}Pa.create=function(n,e){if(typeof n>"u"||n==="")throw new Error("No input text");let t=yi.M,o,r;return typeof e<"u"&&(t=yi.from(e.errorCorrectionLevel,yi.M),o=Qn.from(e.version),r=Pi.from(e.maskPattern),e.toSJISFunc&&Kn.setToSJISFunction(e.toSJISFunc)),cs(n,o,t,r)}});var Si=A(ut=>{"use strict";function Sa(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(t){return[t,t]}))),n.length===6&&n.push("F","F");let e=parseInt(n.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+n.slice(0,6).join("")}}ut.getOptions=function(n){n||(n={}),n.color||(n.color={});let e=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,t=n.width&&n.width>=21?n.width:void 0,o=n.scale||4;
7return{width:t,scale:t?4:o,margin:e,color:{dark:Sa(n.color.dark||"#000000ff"),light:Sa(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}};ut.getScale=function(n,e){return e.width&&e.width>=n+e.margin*2?e.width/(n+e.margin*2):e.scale};ut.getImageWidth=function(n,e){let t=ut.getScale(n,e);return Math.floor((n+e.margin*2)*t)};ut.qrToImageData=function(n,e,t){let o=e.modules.size,r=e.modules.data,d=ut.getScale(o,t),p=Math.floor((o+t.margin*2)*d),u=t.margin*d,k=[t.color.light,t.color.dark];for(let w=0;w<p;w++)for(let G=0;G<p;G++){let B=(w*p+G)*4,Se=t.color.light;if(w>=u&&G>=u&&w<p-u&&G<p-u){let je=Math.floor((w-u)/d),He=Math.floor((G-u)/d);Se=k[r[je*o+He]?1:0]}n[B++]=Se.r,n[B++]=Se.g,n[B++]=Se.b,n[B]=Se.a}}});var ka=A(Jn=>{"use strict";var ki=Si();function ss(i,n,e){i.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=e,n.width=e,n.style.height=e+"px",n.style.width=e+"px"}function ls(){try{return document.createElement("canvas")}catch(i){throw new Error("You need to specify a canvas element")}}Jn.render=function(n,e,t){let o=t,r=e;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),e||(r=ls()),o=ki.getOptions(o);let d=ki.getImageWidth(n.modules.size,o),p=r.getContext("2d"),u=p.createImageData(d,d);return ki.qrToImageData(u.data,n,o),ss(p,r,d),p.putImageData(u,0,0),r};Jn.renderToDataURL=function(n,e,t){let o=t;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),o||(o={});let r=Jn.render(n,e,o),d=o.type||"image/png",p=o.rendererOpts||{};return r.toDataURL(d,p.quality)}});var Ta=A(Ea=>{"use strict";var ds=Si();function wa(i,n){let e=i.a/255,t=n+'="'+i.hex+'"';return e<1?t+" "+n+'-opacity="'+e.toFixed(2).slice(1)+'"':t}function wi(i,n,e){let t=i+n;return typeof e<"u"&&(t+=" "+e),t}function ms(i,n,e){let t="",o=0,r=!1,d=0;for(let p=0;p<i.length;p++){let u=Math.floor(p%n),k=Math.floor(p/n);!u&&!r&&(r=!0),i[p]?(d++,p>0&&u>0&&i[p-1]||(t+=r?wi("M",u+e,.5+k+e):wi("m",o,0),o=0,r=!1),u+1<n&&i[p+1]||(t+=wi("h",d),d=0)):o++}return t}Ea.render=function(n,e,t){let o=ds.getOptions(e),r=n.modules.size,d=n.modules.data,p=r+o.margin*2,u=o.color.light.a?"<path "+wa(o.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",k="<path "+wa(o.color.dark,"stroke")+' d="'+ms(d,r,o.margin)+'"/>',w='viewBox="0 0 '+p+" "+p+'"',B='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+w+' shape-rendering="crispEdges">'+u+k+`</svg> 8`;return typeof t=="function"&&t(null,B),B}});var Ua=A(nn=>{"use strict";var ps=Ar(),Ei=Oa(),Da=ka(),us=Ta();function Ti(i,n,e,t,o){let r=[].slice.call(arguments,1),d=r.length,p=typeof r[d-1]=="function";if(!p&&!ps())throw new Error("Callback required as last argument");if(p){if(d<2)throw new Error("Too few arguments provided");d===2?(o=e,e=n,n=t=void 0):d===3&&(n.getContext&&typeof o>"u"?(o=t,t=void 0):(o=t,t=e,e=n,n=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(e=n,n=t=void 0):d===2&&!n.getContext&&(t=e,e=n,n=void 0),new Promise(function(u,k){try{let w=Ei.create(e,t);u(i(w,n,t))}catch(w){k(w)}})}try{let u=Ei.create(e,t);o(null,i(u,n,t))}catch(u){o(u)}}nn.create=Ei.create;nn.toCanvas=Ti.bind(null,Da.render);nn.toDataURL=Ti.bind(null,Da.renderToDataURL);nn.toString=Ti.bind(null,function(i,n,e){return us.render(i,e)})});function tc(i,n){if(i&1&&(a(0,"span",1),s(1),v(2,"firstLetter"),v(3,"firstLetter"),c()),i&2){let e=m();l(),Y("",S(2,2,e.user==null?null:e.user.firstname),"",S(3,4,e.user==null?null:e.user.lastname))}}function nc(i,n){if(i&1&&C(0,"img",3),i&2){let e=m();E("small",e.size==="small"),f("src",Qe(e.user==null||e.user.image==null||e.user.image.urls==null?null:e.user.image.urls.default),Pe)}}var Rn=(()=>{let n=class n{constructor(){this.user=null,this.size="regular"}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-avatar"]],inputs:{user:"user",size:"size"},standalone:!1,decls:3,vars:4,consts:[[1,"avatar-wrapper"],[1,"initials"],["alt","Avatar image",1,"avatar",3,"small","src"],["alt","Avatar image",1,"avatar",3,"src"]],template:function(o,r){o&1&&(a(0,"div",0),_(1,tc,4,6,"span",1),_(2,nc,1,4,"img",2),c()),o&2&&(E("small",r.size==="small"),l(),h(!(r.user==null||r.user.image==null||r.user.image.urls==null)&&r.user.image.urls.default?-1:1),l(),h(!(r.user==null||r.user.image==null||r.user.image.urls==null)&&r.user.image.urls.default?2:-1))},dependencies:[xn,jo],styles:[`@media screen and (max-width:768px){[_nghost-%COMP%]{margin-top:12px}}
8.avatar[_ngcontent-%COMP%]{width:120px;height:120px;border-radius:50%;object-fit:cover}@media screen and (max-width:768px){.avatar[_ngcontent-%COMP%]{width:72px;height:72px}}.avatar-wrapper[_ngcontent-%COMP%]{display:flex;place-content:center;width:120px;height:120px;background-color:#00818e;border-radius:50%;color:#fff}@media screen and (max-width:768px){.avatar-wrapper[_ngcontent-%COMP%]{width:72px;height:72px}}@media print{.avatar-wrapper[_ngcontent-%COMP%]{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.is_night[_ngcontent-%COMP%] .avatar-wrapper[_ngcontent-%COMP%]{background-color:#25a2af}.avatar-wrapper[_ngcontent-%COMP%] .initials[_ngcontent-%COMP%]{align-self:center;font-size:32px;font-weight:700}@media screen and (max-width:768px){.avatar-wrapper[_ngcontent-%COMP%] .initials[_ngcontent-%COMP%]{font-size:32px}}.small[_ngcontent-%COMP%]{width:48px;height:48px}@media screen and (max-width:768px){.small[_ngcontent-%COMP%]{width:48px;height:48px}}.small[_ngcontent-%COMP%] .initials[_ngcontent-%COMP%]{font-size:18px} 9/*# sourceMappingURL=user-avatar.component-REHF3US2.css.map */`],changeDetection:0});let i=n;return i})();var rc=["form"],Gt=()=>[],vr=i=>[i],ac=(i,n,e)=>({files:i,fileType:n,availableProviders:e,canDelete:!0});function cc(i,n){if(i&1&&(a(0,"div",7)(1,"div",47),C(2,"span"),c(),a(3,"div",48),s(4),c()()),i&2){let e=m();l(2),eo("width",e.user.profileCompletion,"%"),l(2),D(e.user.profileCompletion+"%")}}function sc(i,n){if(i&1){let e=O();a(0,"div",8)(1,"app-upload-file",49),y("saveFiles",function(o){b(e);let r=m();return x(r.setUserImage(o))})("deleteFile",function(){b(e);let o=m();return x(o.deleteUserImage((o.user.image==null?null:o.user.image.uuid)||null))}),c()()}if(i&2){let e=m();l(),f("options",ao(6,ac,e.user.image?Re(1,vr,e.user.image):L(3,Gt),e.fileTypeCodeEnum.USER_AVATAR,Re(4,vr,e.UploadProvider.FILE)))}}function lc(i,n){if(i&1){let e=O();a(0,"div",8)(1,"label",50),s(2,"Email Address "),a(3,"app-tooltip",51),s(4,"To change the email address please contact customer support. "),c()(),a(5,"div",14)(6,"input",52),Q("ngModelChange",function(o){b(e);let r=m();return W(r.user.email,o)||(r.user.email=o),x(o)}),c()()()}if(i&2){let e=m();l(6),$("ngModel",e.user.email),f("disabled",!0)}}function dc(i,n){if(i&1&&(a(0,"div",8)(1,"label",53),s(2),C(3,"app-svg-icon",54),c(),a(4,"div",14),C(5,"input",55),c()()),i&2){let e=n.$implicit,t=n.$index,o=m();l(),f("for","learning_goals"+(t+1)),l(),P("",e," "),l(3),f("id","learning_goals"+(t+1))("name","learningGoals"+(t+1))("ngModel",o.getAnswerByQuestion(e)),Ne("aria-label",e)}}var Mr=["Which of these best describes you?","What is your primary topic of interest?","Which of these finance careers are you interested in?"],Sr=(()=>{let n=class n extends X{constructor(){super(),this.userService=g(z),this.currentUserStorage=g(V),this.environment=g(et),this.route=g(Ze),this.notifierService=g(J),this.imageService=g(Fo),this.cdr=g(N),this.typeformSurveyService=g(Vo),this.DictionaryEnum=Te,this.user={},this.userSnapshot={},this.fileTypeCodeEnum=Po,this.deletedImageUuid=null,this.showPhotoUploader=!1,this.UploadProvider=br,this.buttonState=te.STANDBY,this.isDataCollectExpanded=!1,this.typeformSurveyEmbedId=null,this.form={},this.LIST_OF_ONBOARDING_VIEW_QUESTIONS=Mr,this.onboardingAnswersSignal=T([]),this.marketingSiteUrl=this.environment.marketingSiteUrl}get onboardingAnswers(){return this.onboardingAnswersSignal()}ngOnInit(){this.userService.getCountries().subscribe(),this.userService.syncProfile().pipe(ve(t=>t.data),on(t=>{this.user=Ge({},t),this.userSnapshot=Ge({},t),this.cdr.detectChanges()}),ke(()=>this.form.valueChanges||Li({})),R(this._destroy$$)).subscribe(t=>{this.isDirty=!Object.keys(t).every(o=>(t[o]||"")===(this.userSnapshot[o]||"")),this.cdr.detectChanges()}),this.route.fragment.pipe(R(this._destroy$$)).subscribe(t=>{this.scrollToFragment(t)}),this.loadOnboardingAnswers().subscribe()}ngAfterViewInit(){this.loadSurvey()}updateUser(t){this.buttonState=te.LOADING,this.showPhotoUploader=!1,this.deletedImageUuid&&this.imageService.deleteImage(this.deletedImageUuid).subscribe(()=>this.deletedImageUuid=null),this.userService.updateProfile(t,this.form.form).pipe(Me(()=>{this.buttonState=te.STANDBY,this.cdr.markForCheck()}),R(this._destroy$$)).subscribe(()=>{this.getUser(),this.isDirty=!1,this.buttonState=te.STANDBY,this.notifierService.success("Profile edited successfully"),this.cdr.markForCheck()})}setUserImage(t){this.user.image=t[0]?.image,this.isDirty=!0}deleteUserImage(t){t&&(this.deletedImageUuid=t,this.user.image=null,this.isDirty=!0,this.user=Ge({},this.user),this.cdr.markForCheck())}showHiddenContent(){this.showPhotoUploader=!this.showPhotoUploader}canDeactivate(){return this.isDirty}expand(t){t.preventDefault(),this.isDataCollectExpanded=!this.isDataCollectExpanded,this.cdr.markForCheck()}openSurvey(){this.typeformSurveyService.openPopupSurvey();let t=this.loadOnboardingAnswers();this.typeformSurveyService.initCloseSurveyObserver(t)}loadOnboardingAnswers(){return this.typeformSurveyService.getTypeformSurveyOnboardingAnswers().pipe(ve(t=>this.filterOnboardingAnswers(t)),on(t=>this.onboardingAnswersSignal.set(t)),ue(1))}getAnswerByQuestion(t){return this.onboardingAnswers.find(o=>o.question.trim()===t)?.answer||""}filterOnboardingAnswers(t){return t.filter(o=>Mr.includes(o.question.trim()))}loadSurvey(){this.typeformSurveyService.getTypeformSurvey(gn.WELCOME).pipe(ue(1)).subscribe(t=>{this.typeformSurveyEmbedId=t.embedId??null,this.typeformSurveyService.loadT
9ypeformScript(this.typeformSurveyEmbedId,"welcome","lms_account_link"),this.cdr.markForCheck()})}getUser(){this.userService.syncProfile().pipe(ve(t=>t.data),on(t=>{this.user=Ge({},t),this.userSnapshot=Ge({},t),this.cdr.detectChanges()})).subscribe()}scrollToFragment(t){if(t){let o=document.getElementById(t);o&&o.scrollIntoView({behavior:"smooth",block:"start"})}}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-edit-profile"]],viewQuery:function(o,r){if(o&1&&ge(rc,7),o&2){let d;re(d=ae())&&(r.form=d.first)}},standalone:!1,features:[ne],decls:135,vars:47,consts:[["form","ngForm"],[1,"sections"],[1,"section"],[1,"card_box"],["appPreventLossFormData","",1,"form_box",3,"ngSubmit","isDirty"],[1,"items","row"],[1,"title","col-12"],[1,"progress-wrapper"],[1,"item","col-12"],[1,"user-info-wrapper"],["size","small",3,"user"],["tabindex","0","role","button","aria-label","Edit Photo",3,"click","keyup.enter"],["for","form_user_first",1,"label"],["aria-hidden","true",1,"required"],[1,"field"],["appFocusVisible","","type","text","id","form_user_first","name","firstname","aria-required","true","aria-label","First Name","autocomplete","on","placeholder","First Name",3,"ngModelChange","ngModel"],["for","form_user_last",1,"label"],["appFocusVisible","","type","text","id","form_user_last","name","lastname","aria-required","true","aria-label","Last Name","autocomplete","on","placeholder","Last Name",3,"ngModelChange","ngModel"],["for","form_user_country",1,"label"],["appFocusVisible","","appSelectAttributesUpdate","","appFixNgSelectAutocomplete","","name","country","id","form_user_country","bindLabel","name","bindValue","id","groupBy","region","placeholder","Select Country",1,"country-select",3,"ngModelChange","items","ngModel"],["for","form_user_timezone",1,"label"],["id","form_user_timezone","name","timeZone","placeholder","Select Time Zone",3,"ngModelChange","items","ngModel","clearable"],["for","form_user_language",1,"label"],["id","form_user_language","name","language","placeholder","Select Language",3,"ngModelChange","items","ngModel","clearable"],["for","form_user_school",1,"label"],["appFocusVisible","","type","text","id","form_user_school","name","school","aria-required","true","aria-label","School (University)","autocomplete","on","placeholder","School (University)",3,"ngModelChange","ngModel"],["for","form_user_degree",1,"label"],["appFocusVisible","","type","text","id","form_user_degree","name","degree","aria-required","true","aria-label","Degree","autocomplete","on","placeholder","Degree",3,"ngModelChange","ngModel"],["for","form_user_industry",1,"label"],["id","form_user_industry","name","industry","placeholder","Select Industry",3,"ngModelChange","items","ngModel","clearable"],["for","form_user_company",1,"label"],["appFocusVisible","","type","text","id","form_user_company","name","company","aria-required","true","aria-label","Current Company","autocomplete","on","placeholder","Current Company",3,"ngModelChange","ngModel"],["for","form_user_job",1,"label"],["appFocusVisible","","type","text","id","form_user_job","name","job","aria-required","true","aria-label","Current Job Title","autocomplete","on","placeholder","Current Job Title",3,"ngModelChange","ngModel"],["appFocusVisible","","type","text","id","form_user_linkedin_profile_url","name","linkedinProfileUrl","aria-required","true","aria-label","LinkedIn profile URL","autocomplete","on","placeholder","LinkedIn profile URL",3,"ngModelChange","ngModel"],[1,"learning-goals-badge"],["tabindex","0","role","button","aria-label","Update your learning goals",1,"button","link",3,"click","keyup.enter"],[1,"expandable-item"],["tabindex","0","role","button","aria-label","Why do we collect this information?","aria-expanded","false",1,"expandable-text",3,"click","keyup.enter"],[1,"far","fa-chevron-down"],[1,"content-for-expand"],["target","_blank",3,"href"],[1,"col-12"],["for","form_user_share_feedback",1,"checkbox"],["appFocusVisible","","id","form_user_share_feedback","type","checkbox","name","shareFeedback","aria-label","Share Feedback option","autocomplete","on",3,"ngModelChange","keyup.enter","ngModel"],[1,"buttons"],["buttonText","Save Changes","type","button",3,"click","keyup.enter","state","isDisabled"],[1,"progress_bar"],[1,"progress_label"],[3,"saveFiles","deleteFile","options"],["for","form_user_email",1,"label"],["faIcon","fa fa-info-circle"],["appFocusVisible","","type","text","id","form_user_email","name","email","aria-required","true","aria-label","Email address","autocomplete","on","placeholder","Email Address",3,"ngModelChange","ngModel","disabled"],[1,"label",3,"for"],["icon","course_locked",1,"locked-state"],["appFocusVisible","","type","text","aria-required","true","placeholder","\u2014","readonly","","disabled","",3,"id","name","ngModel"]],template:function(o,r){if(o&1){let d=O();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"form",4,0),y("ngSubmit",function(){return r.updateUser(r.user)}),a(5,"div",5)(6,"div",6)(7,"h3"),s(8,"Profile Information"),c(),a(9,"p"),s(10,"The more complete your profile is, the more personalized guidance you will receive."),c(),_(11,cc,5,3,"div",7),c(),a(12,"div",8)(13,"div",9),C(14,"app-user-avatar",10),a(15,"a",11),y("click",function(){return r.showHiddenContent()})("keyup.enter",function(){return r.showHiddenContent()}),s(16," Edit Photo "),c()()(),_(17,sc,2,10,"div",8),_(18,lc,7,2,"div",8),a(19,"div",8)(20,"label",12),s(21,"First Name "),a(22,"span",13),s(23,"*"),c()(),a(24,"div",14)(25,"input",15),Q("ngModelChange",function(u){return b(d),W(r.user.firstname,u)||(r.user.firstname=u),x(u)}),c()()(),a(26,"div",8)(27,"label",16),s(28,"Last Name "),a(29,"span",13),s(30,"*"),c()(),a(31,"div",14)(32,"input",17),Q("ngModelChange",function(u){return b(d),W(r.user.lastname,u)||(r.user.lastname=u),x(u)}),c()()(),a(33,"div",8)(34,"label",18),s(35,"Country"),c(),a(36,"div",14)(37,"ng-select",19),v(38,"async"),Q("ngModelChange",function(u){return b(d),W(r.user.country,u)||(r.user.country=u),x(u)}),c()()(),a(39,"div",8)(40,"label",20),s(41,"Time Zone "),a(42,"span",13),s(43,"*"),c()(),a(44,"div",14)(45,"app-dropdown-select",21),v(46,"dictionary"),v(47,"async"),Q("ngModelChange",function(u){return b(d),W(r.user.timeZone,u)||(r.user.timeZone=u),x(u)}),c()()(),a(48,"div",8)(49,"label",22),s(50,"Preferred Language"),c(),a(51,"div",14)(52,"app-dropdown-select",23),v(53,"dictionary"),v(54,"async"),Q("ngModelChange",function(u){return b(d),W(r.user.language,u)||(r.user.language=u),x(u)}),c()()(),a(55,"div",6)(56,"h3"),s(57,"Education"),c()(),a(58,"div",8)(59,"label",24),s(60,"School (University)"),c(),a(61,"div",14)(62,"input",25),Q("ngModelChange",function(u){return b(d),W(r.user.school,u)||(r.user.school=u),x(u)}),c()()(),a(63,"div",8)(64,"label",26),s(65,"Degree"),c(),a(66,"div",14)(67,"input",27),Q("ngModelChange",function(u){return b(d),W(r.user.degree,u)||(r.user.degree=u),x(u)}),c()()(),a(68,"div",6)(69,"h3"),s(70,"Employment & Career"),c()(),a(71,"div",8)(72,"label",28),s(73,"Current Industry"),c(),a(74,"div",14)(75,"app-dropdown-select",29),v(76,"dictionary"),v(77,"async"),Q("ngModelChange",function(u){return b(d),W(r.user.industry,u)||(r.user.industry=u),x(u)}),c()()(),a(78,"div",8)(79,"label",30),s(80,"Current Company"),c(),a(81,"div",14)(82,"input",31),Q("ngModelChange",function(u){return b(d),W(r.user.company,u)||(r.user.company=u),x(u)}),c()()(),a(83,"div",8)(84,"label",32),s(85,"Current Job Title"),c(),a(86,"div",14)(87,"input",33),Q("ngModelChange",function(u){return b(d),W(r.user.job,u)||(r.user.job=u),x(u)}),c()()(),a(88,"div",8)(89,"label",32),s(90,"LinkedIn Profile"),c(),a(91,"div",14)(92,"input",34),Q("ngModelChange",function(u){return b(d),W(r.user.linkedinProfileUrl,u)||(r.user.linkedinProfileUrl=u),x(u)}),c()()(),a(93,"div",6)(94,"h3"),s(95,"Learning Goals "),a(96,"span",35),s(97,"Managed by Survey"),c()()(),ie(98,dc,6,6,"div",8,Ji),a(100,"div",8)(101,"a",36),y("click",function(){return r.openSurvey()})("keyup.enter",function(){return r.openSurvey()}),s(102," Update your learning goals "),c()(),a(103,"div",6)(104,"h3"),s(105,"Data Collection"),c()(),a(106,"div",8)(107,"div",37)(108,"a",38),y("click",function(u){return r.expand(u)})("keyup.enter",function(u){return r.expand(u)}),s(109," Why do we collect this information? "),C(110,"i",39),c(),a(111,"div",40)(112,"p"),s(113," Your personal data helps us address you by name, communicate with you, and send you event reminders based on your location. Your education and employment data helps us identify gaps in our offerings that can better enable CFI members to pursue their chosen careers. "),c(),a(114,"p"),s(115," In addition, our AI support (available to Full-Immersion subscribers) uses your location and employment data to provide localized examples and case studies of companies or concepts more familiar to you. "),c(),a(116,"p"),s(117," Please refer to our "),a(118,"a",41),s(119,"Privacy Policy"),c(),s(120,", which outlines how we
9collect, use, and protect your personal information. "),c()()()(),a(121,"div",42)(122,"h3"),s(123,"Share Your Feedback"),c(),a(124,"p"),s(125," We're always interested in speaking with our users. Hearing what you have to say helps us to continually improve CFI's learning content and user experience. "),c(),a(126,"p"),s(127,"Feedback may be collected via extra surveys, user interviews, beta testing, and more."),c(),a(128,"label",43)(129,"input",44),Q("ngModelChange",function(u){return b(d),W(r.user.shareFeedback,u)||(r.user.shareFeedback=u),x(u)}),y("keyup.enter",function(){return r.user.shareFeedback=!r.user.shareFeedback}),c(),a(130,"span"),s(131,"I'm interested in providing feedback to CFI."),c()()(),a(132,"div",42)(133,"div",45)(134,"app-button",46),y("click",function(){return r.updateUser(r.user)})("keyup.enter",function(){return r.updateUser(r.user)}),c()()()()()()()()}o&2&&(l(3),f("isDirty",r.isDirty),l(8),h(r.user.profileCompletion!==void 0?11:-1),l(3),f("user",r.user),l(3),h(r.showPhotoUploader?17:-1),l(),h((r.user==null?null:r.user.hideEmail)!==!0?18:-1),l(7),$("ngModel",r.user.firstname),l(7),$("ngModel",r.user.lastname),l(5),f("items",S(38,29,r.currentUserStorage.countries$)??L(43,Gt)),$("ngModel",r.user.country),l(8),f("items",S(47,33,S(46,31,r.DictionaryEnum.TIMEZONES_MAPPING))||L(44,Gt)),$("ngModel",r.user.timeZone),f("clearable",!1),l(7),f("items",S(54,37,S(53,35,r.DictionaryEnum.LANGUAGE))||L(45,Gt)),$("ngModel",r.user.language),f("clearable",!1),l(10),$("ngModel",r.user.school),l(5),$("ngModel",r.user.degree),l(8),f("items",S(77,41,S(76,39,r.DictionaryEnum.INDUSTRY))||L(46,Gt)),$("ngModel",r.user.industry),f("clearable",!1),l(7),$("ngModel",r.user.company),l(5),$("ngModel",r.user.job),l(5),$("ngModel",r.user.linkedinProfileUrl),l(6),oe(r.LIST_OF_ONBOARDING_VIEW_QUESTIONS),l(9),E("open",r.isDataCollectExpanded),l(11),f("href",r.marketingSiteUrl+"/about-cfi/privacy-policy/",Pe),l(11),$("ngModel",r.user.shareFeedback),l(5),f("state",r.buttonState)("isDisabled",!r.isDirty))},dependencies:[be,tt,Pt,fe,Ce,kt,St,On,Dt,Cr,Ie,Ue,De,vn,yn,Z,Ut,An,Ae,Rn,ce,qo],styles:[`.sections[_ngcontent-%COMP%]{max-width:736px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]{margin-bottom:0}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .locked-state[_ngcontent-%COMP%]{width:16px;height:16px;fill:#6b7280;position:relative;top:2px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#374151;opacity:.48}.is_night [_nghost-%COMP%] .sections .section .card_box form input:-ms-input-placeholder{color:#f3f3f3!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#374151;opacity:.48}.is_night [_nghost-%COMP%] .sections .section .card_box form input::-moz-placeholder{color:#f3f3f3!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#374151;opacity:.48}.is_night [_nghost-%COMP%] .sections .section .card_box form input::-webkit-input-placeholder{color:#f3f3f3!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]{background:#fff0f0;border:1px solid #e32a27}.is_night [_nghost-%COMP%] .sections .section .card_box form input.ng-invalid{background:#6e1616!important;color:#fff0f0!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] app-dropdown-select ng-select .ng-placeholder{color:#374151;opacity:.48}.is_night [_nghost-%COMP%] .sections .section .card_box app-dropdown-select ng-select .ng-placeholder{color:#f3f3f3!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] app-dropdown-select.ng-invalid ng-select .ng-select-container{background:#fff0f0;border:1px solid #e32a27}.is_night [_nghost-%COMP%] .sections .section .card_box app-dropdown-select.ng-invalid ng-select .ng-select-container{background:#6e1616!important;color:#fff0f0!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] ng-select .ng-placeholder{color:#374151;opacity:.48}.is_night [_nghost-%COMP%] .sections .section .card_box ng-select .ng-placeholder{color:#f3f3f3!important}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] .progress-wrapper[_ngcontent-%COMP%]{display:inline-flex;gap:8px;align-items:center}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] .progress-wrapper[_ngcontent-%COMP%] .progress_bar[_ngcontent-%COMP%]{width:100%}.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 35
9px}@media screen and (max-width:768px){.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 27px}}.user-info-wrapper[_ngcontent-%COMP%]{display:flex;margin:0 -8px}.user-info-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 8px}.user-info-wrapper[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{align-self:center}.user-info-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center}.item[_ngcontent-%COMP%]{margin:8px 0}.title[_ngcontent-%COMP%]{margin:32px 0 16px}.title[_ngcontent-%COMP%]:first-child{margin-top:0}.title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:16px}.title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .learning-goals-badge[_ngcontent-%COMP%]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:4px 8px;border-radius:2px;background:#1b3e70;color:#fff;font-weight:400;font-size:12px;margin-left:8px}@media print{.title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .learning-goals-badge[_ngcontent-%COMP%]{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.expandable-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.expandable-item[_ngcontent-%COMP%] .expandable-text[_ngcontent-%COMP%]{cursor:pointer;color:#004993;font-weight:700;margin-bottom:16px}.is_night [_nghost-%COMP%] .expandable-item .expandable-text{color:#93acfd}.expandable-item[_ngcontent-%COMP%] .expandable-text[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transition:all .2s;color:#004993;position:relative;margin-left:6px}.is_night [_nghost-%COMP%] .expandable-item .expandable-text i{color:#93acfd!important}.expandable-item[_ngcontent-%COMP%] .content-for-expand[_ngcontent-%COMP%]{display:none;font-size:16px;line-height:160%;margin-bottom:16px}.expandable-item.open[_ngcontent-%COMP%] .expandable-text[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transform:rotate(180deg);top:-2px}.expandable-item.open[_ngcontent-%COMP%] .content-for-expand[_ngcontent-%COMP%]{display:block}@media screen and (max-width:480px){.buttons[_ngcontent-%COMP%] .button{width:calc(100% - 16px)}}.button.link[_ngcontent-%COMP%]{align-self:flex-start}.is_night [_nghost-%COMP%] .ng-select .ng-select-container{background:#121418}p[_ngcontent-%COMP%]{font-size:16px}label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;color:#374151}.is_night [_nghost-%COMP%] label span{color:#f3f3f3}@media screen and (max-width:400px){.expandable-item[_ngcontent-%COMP%] .expandable-text[_ngcontent-%COMP%]{max-width:270px}}#survey-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:none}#survey-button[_ngcontent-%COMP%]:after{content:"Update your learning goals"} 10/*# sourceMappingURL=user-edit-profile.component-63MNCBYS.css.map */`],changeDetection:0});let i=n;return i})();var kr=[{link:"/user/edit/my-profile",name:"Personal Information",action:"Personal Information"},{link:"/user/edit/my-billing-and-orders",name:"Billing",action:"Billing"},{link:"/user/edit/my-password",name:"Password",action:"Password"}];var wr=(()=>{let n=class n{constructor(){this.TABS=kr}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-profile-top-menu"]],standalone:!1,decls:1,vars:1,consts:[[3,"tabs"]],template:function(o,r){o&1&&C(0,"app-tabs-routed",0),o&2&&f("tabs",r.TABS)},dependencies:[wn],encapsulation:2,changeDetection:0});let i=n;return i})();var pc=["button"],uc=()=>["../manage-2fa"];function gc(i,n){}function _c(i,n){if(i&1){let e=O();a(0,"div",3)(1,"div",4)(2,"form",17),y("ngSubmit",function(){b(e);let o=m();return x(o.updatePassword())}),a(3,"div",5)(4,"h3"),s(5,"Change Password"),c()(),a(6,"div",6)(7,"div",7)(8,"p"),s(9,"Your password must be at least 12 characters long and contain at least one letter and one number."),c()(),a(10,"div",7),C(11,"app-password-input",18),c(),a(12,"div",7),C(13,"app-password-input",19),c(),a(14,"div",7),C(15,"app-password-input",20),c(),a(16,"div",21)(17,"p",22),s(18,"Sorry, there are some issues. Please try again."),c(),Ee(19,gc,0,0,"ng-template",null,0,_e),c(),a(21,"div",7)(22,"div",10),C(23,"app-button",23,1),c()()()()()()}if(i&2){let e=m();l(2),f("formGroup",e.form)("isDirty",e.form.dirty),l(9),f("required",!0),l(2),f("required",!0),l(2),f("required",!0),l(8),f("isDisabled",!e.isDirty)}}var Er=(()=>{let n=class n extends X{constructor(){super(...arguments),this.userService=g(z),this.notifierService=g(J),this.cdr=g(N),this.user={},this.form=new Ot({oldPassword:new q("",{nonNullable:!0}),newPassword:new q("",{nonNullable:!0}),newPasswordAgain:new q("",{nonNullable:!0})}),this.button={}}ngOnInit(){this.userService.syncProfile().pipe(ve(t=>t.data)).subscribe(t=>{this.user=t,this.cdr.markForCheck()}),this.form.valueChanges?.pipe(R(this._destroy$$)).subscribe(t=>{this.isDirty=Object.values(t).some(o=>o!==null&&o!=="")})}updatePassword(){this.button.state=te.LOADING;let t=this.form.value;this.userService.updatePassword(t.oldPassword,t.newPassword,t.newPasswordAgain,this.form).pipe(qi(()=>(this.button.state=te.STANDBY,this.cdr.markForCheck(),Vi))).subscribe(()=>{this.button.state=te.STANDBY,this.notifierService.success("Password edited successfully"),this.cdr.markForCheck()})}canDeactivate(){return this.isDirty}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=we(n)))(r||n)}})(),n.\u0275cmp=M({type:n,selectors:[["app-user-edit-password"]],viewQuery:function(o,r){if(o&1&&ge(pc,5),o&2){let d;re(d=ae())&&(r.button=d.first)}},standalone:!1,features:[ne],decls:29,vars:4,consts:[["errorContainer",""],["button",""],[1,"sections"],[1,"section"],[1,"card_box"],[1,"content"],[1,"items","row"],[1,"item","col-12"],["for","enable_2fa",1,"label"],[1,"field"],[1,"buttons"],["
10id","enable_2fa","aria-label","Two-Factor Authentication",1,"button",3,"routerLink"],[1,"wrapping-content"],[1,"before"],[1,"hide-on-phone"],[1,"show-on-phone"],[1,"after"],["appPreventLossFormData","",1,"form_box",3,"ngSubmit","formGroup","isDirty"],["label","Old password","formControlName","oldPassword","placeholder","Type old password",3,"required"],["label","New password","formControlName","newPassword","placeholder","Create a password",3,"required"],["label","Confirm new password ","formControlName","newPasswordAgain","placeholder","Confirm new password",3,"required"],[1,"errors-list"],[1,"errors-list-title"],["buttonText","Save Changes",3,"isDisabled"]],template:function(o,r){o&1&&(a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h3"),s(5,"Two-Factor Authentication"),c()(),a(6,"div",6)(7,"div",7)(8,"p"),s(9," Two-factor authentication adds an additional layer of security to your account by requiring more than just a password to log in. "),c(),a(10,"label",8),s(11),c(),a(12,"div",9)(13,"div",10)(14,"button",11)(15,"span",12)(16,"span",13),s(17,"Manage "),a(18,"span",14),s(19,"Two-Factor Authentication"),c(),a(20,"span",15),s(21,"2FA"),c()(),a(22,"span",16),s(23,"Manage "),a(24,"span",14),s(25,"Two-Factor Authentication"),c(),a(26,"span",15),s(27,"2FA"),c()()()()()()()()()(),_(28,_c,25,6,"div",3),c()),o&2&&(l(11),P("Status: ",r.user.twoFaEnabled?"Enabled":"Disabled"),l(3),f("routerLink",L(3,uc)),l(14),h(r.user.passwordConfirmed?28:-1))},dependencies:[le,be,fe,Ce,Ro,Et,wt,Dt,Ie,Ue,Fn,Ae],styles:[`.sections[_ngcontent-%COMP%]{max-width:736px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]{margin-bottom:32px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 35px}@media screen and (max-width:768px){.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 27px}}@media screen and (max-width:480px){.buttons[_ngcontent-%COMP%] .button{width:calc(100% - 16px);white-space:normal}}@media screen and (max-width:768px){.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .errors-list[_ngcontent-%COMP%]{order:2}.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-of-type(1){order:1}.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-of-type(2){order:3}.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-of-type(3){order:4}.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-of-type(4){order:5}.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-of-type(5){order:6}.form_box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-of-type(6){order:7}} 11/*# sourceMappingURL=user-edit-password.component-P4OTX5KC.css.map */`],changeDetection:0});let i=n;return i})();var It=(()=>{let n=class n{constructor(){this.userService=g(z),this.refreshSubject=new Ri(void 0),this.student$=this.refreshSubject.pipe(ke(()=>this.userService.studentProfile()),ji({bufferSize:1,refCount:!0}))}refreshStudent(){this.refreshSubject.next()}};n.\u0275fac=function(o){return new(o||n)},n.\u0275prov=ht({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();var Tr=(()=>{let n=class n{constructor(){this.userPageService=g(It)}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-insight"]],standalone:!1,decls:6,vars:4,consts:[[1,"title_box"],[1,"title"],[3,"insightsExpanded","insights"]],template:function(o,r){if(o&1&&(a(0,"section",0)(1,"div",1)(2,"h3"),s(3,"My Insights"),c()()(),C(4,"app-insights-tiles",2),v(5,"async")),o&2){let d;l(4),f("insightsExpanded",!0)("insights",((d=S(5,2,r.userPageService.student$))==null?null:d.insights)??null)}},dependencies:[Nn,ce],styles:[`[_nghost-%COMP%]{display:block}@media screen and (max-width:768px){[_nghost-%COMP%]{margin-bottom:24px}} 12/*# sourceMappingURL=user-insight.component-RKB37MJE.css.map */`],changeDetection:0});let i=n;return i})();var fc=()=>[],Dr=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-achievement"]],inputs:{achievements:"achievements"},standalone:!1,decls:2,vars:2,consts:[["insightsAchievements",""],[3,"achievements"]],template:function(o,r){o&1&&C(0,"app-insights-achievements",1,0),o&2&&f("achievements",r.achievements||L(1,fc))},dependencies:[Bn],encapsulation:2,changeDetection:0});let i=n;return i})();function bc(i,n){if(i&1&&(a(0,"p",4),s(1),c()),i&2){let e=m();l(),D(e.user==null?null:e.user.email)}}var Ur=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)}
12,n.\u0275cmp=M({type:n,selectors:[["app-user-top"]],inputs:{user:"user"},standalone:!1,decls:13,vars:5,consts:[[1,"user-info-wrapper"],[3,"user"],[1,"user-info"],[1,"user-info-title"],[1,"user-info-email"],[1,"user-info-settings","button","outlined","secondary",3,"routerLink"],[1,"wrapping-content"],[1,"before"],[1,"after"]],template:function(o,r){o&1&&(a(0,"div",0),C(1,"app-user-avatar",1),a(2,"div",2)(3,"div",3)(4,"h1"),s(5),c()(),_(6,bc,2,1,"p",4),c(),a(7,"a",5)(8,"span",6)(9,"span",7),s(10,"Settings"),c(),a(11,"span",8),s(12,"Settings"),c()()()()),o&2&&(l(),f("user",r.user),l(4),Y("",r.user==null?null:r.user.firstname," ",r.user==null?null:r.user.lastname),l(),h((r.user==null?null:r.user.hideEmail)!==!0?6:-1),l(),f("routerLink","./edit/my-profile"))},dependencies:[le,Rn],styles:[`@media screen and (max-width:768px){.user-info[_ngcontent-%COMP%]{text-align:center}}.user-info-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:-16px;margin-left:-16px}@media screen and (max-width:768px){.user-info-wrapper[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.user-info-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]:not(:last-child){margin-top:16px}}.user-info-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:16px;margin-left:16px}.user-info-title[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;margin:0 -8px 8px}@media screen and (max-width:768px){.user-info-title[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.user-info-title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-top:16px}}.user-info-title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 8px}.user-info-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:0}.user-info-settings.button[_ngcontent-%COMP%]{margin-left:auto}@media screen and (max-width:768px){.user-info-settings.button[_ngcontent-%COMP%]{margin-top:24px;margin-left:unset;align-self:center}}@media screen and (max-width:768px){.user-info-email[_ngcontent-%COMP%]{margin-bottom:8px}} 13/*# sourceMappingURL=user-top.component-ELCPNHBD.css.map */`],changeDetection:0});let i=n;return i})();var Lt=Xa(Ua(),1);var gs=["qrcElement"],Zn=(()=>{class i{allowEmptyString=!1;colorDark="#000000ff";colorLight="#ffffffff";cssClass="qrcode";elementType="canvas";errorCorrectionLevel="M";imageSrc;imageHeight;imageWidth;margin=4;qrdata="";scale=4;version;width=10;alt;ariaLabel;title;qrCodeURL=new zt;qrcElement;context=null;centerImage;renderer=g(Ye);sanitizer=g(uo);ngOnChanges(){return _t(this,null,function*(){yield this.createQRCode()})}isValidQrCodeText(e){return this.allowEmptyString===!1?!(typeof e>"u"||e===""||e==="null"||e===null):!(typeof e>"u")}toDataURL(e){return new Promise((t,o)=>{(0,Lt.toDataURL)(this.qrdata,e,(r,d)=>{r?o(r):t(d)})})}toCanvas(e,t){return new Promise((o,r)=>{(0,Lt.toCanvas)(e,this.qrdata,t,d=>{d?r(d):o("success")})})}toSVG(e){return new Promise((t,o)=>{(0,Lt.toString)(this.qrdata,e,(r,d)=>{r?o(r):t(d)})})}renderElement(e){for(let t of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,t);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){return _t(this,null,function*(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):this.version!==void 0&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");this.isValidQrCodeText(this.qrdata)&&this.qrdata===""&&(this.qrdata=" ");let e={color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width}
13,t=this.imageSrc,o=this.imageHeight?+this.imageHeight:40,r=this.imageWidth?+this.imageWidth:40;switch(this.elementType){case"canvas":{let d=this.renderer.createElement("canvas");this.context=d.getContext("2d"),this.toCanvas(d,e).then(()=>{if(this.ariaLabel&&this.renderer.setAttribute(d,"aria-label",`${this.ariaLabel}`),this.title&&this.renderer.setAttribute(d,"title",`${this.title}`),t&&this.context){this.centerImage=new Image(r,o),t!==this.centerImage.src&&(this.centerImage.crossOrigin="anonymous",this.centerImage.src=t),o!==this.centerImage.height&&(this.centerImage.height=o),r!==this.centerImage.width&&(this.centerImage.width=r);let p=this.centerImage;p&&(p.onload=()=>{this.context?.drawImage(p,d.width/2-r/2,d.height/2-o/2,r,o)})}this.renderElement(d),this.emitQRCodeURL(d)}).catch(p=>{console.error("[angularx-qrcode] canvas error:",p)});break}case"svg":{let d=this.renderer.createElement("div");this.toSVG(e).then(p=>{this.renderer.setProperty(d,"innerHTML",p);let u=d.firstChild;this.renderer.setAttribute(u,"height",`${this.width}`),this.renderer.setAttribute(u,"width",`${this.width}`),this.renderElement(u),this.emitQRCodeURL(u)}).catch(p=>{console.error("[angularx-qrcode] svg error:",p)});break}default:{let d=this.renderer.createElement("img");this.toDataURL(e).then(p=>{this.alt&&d.setAttribute("alt",this.alt),this.ariaLabel&&d.setAttribute("aria-label",this.ariaLabel),d.setAttribute("src",p),this.title&&d.setAttribute("title",this.title),this.renderElement(d),this.emitQRCodeURL(d)}).catch(p=>{console.error("[angularx-qrcode] img/url error:",p)})}}}catch(e){console.error("[angularx-qrcode] Error generating QR Code:",e.message)}})}convertBase64ImageUrlToBlob(e){let t=e.split(";base64,"),o=t[0].split(":")[1],r=atob(t[1]),d=new Uint8Array(r.length);for(let p=0;p<r.length;++p)d[p]=r.charCodeAt(p);return new Blob([d],{type:o})}emitQRCodeURL(e){let t=e.constructor.name;if(t===SVGSVGElement.name){let u=e.outerHTML,k=new Blob([u],{type:"image/svg+xml"}),w=URL.createObjectURL(k),G=this.sanitizer.bypassSecurityTrustUrl(w);this.qrCodeURL.emit(G);return}let o="";t===HTMLCanvasElement.name&&(o=e.toDataURL("image/png")),t===HTMLImageElement.name&&(o=e.src);let r=this.convertBase64ImageUrlToBlob(o),d=URL.createObjectURL(r),p=this.sanitizer.bypassSecurityTrustUrl(d);this.qrCodeURL.emit(p)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["qrcode"]],viewQuery:function(t,o){if(t&1&&ge(gs,7),t&2){let r;re(r=ae())&&(o.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[rn],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,o){t&1&&Zi(0,"div",null,0),t&2&&We(o.cssClass)},encapsulation:2,changeDetection:0})}return i})();var hs=["f"],fs=["button"];function Cs(i,n){if(i&1&&(a(0,"div")(1,"p"),s(2,"Scan the image above with the two-factor authentication app on your phone."),c(),C(3,"qrcode",17),c()),i&2){let e=m();l(3),f("elementType",e.elementType)("errorCorrectionLevel",e.correctionLevel)("qrdata",e.qrContents)("alt","QR Code")}}function bs(i,n){i&1&&(a(0,"p"),s(1,"After scanning the barcode image, the app will display a six-digit code that you can enter below."),c())}var Ia=(()=>{let n=class n{constructor(){this.userService=g(z),this.notifierService=g(J),this.router=g(se),this.cdr=g(N),this.user={},this.qrContents="",this.pinCode="",this.twoFaEnabled=!1,this.elementType="url",this.correctionLevel="H",this.formData=null,this.button=new Ae}ngOnInit(){return _t(this,null,function*(){this.userService.syncProfile().subscribe(t=>{this.user=t.data,this.twoFaEnabled=!!this.user?.twoFaEnabled,this.cdr.markForCheck()}),this.userService.getTwoFaQrContents().subscribe(t=>{this.qrContents=t.data.qrContents||"",this.cdr.markForCheck()})})}setupTwoFa(){return _t(this,null,function*(){try{this.button.state=te.LOADING,yield this.userService.setupTwoFa(this.pinCode,!this.twoFaEnabled).toPromise();let t=this.twoFaEnabled?"disabled":"set";this.notifierService.success(`2FA was ${t} successfully`),this.router.navigate(["/user","edit","my-password"]),this.button.state=te.STANDBY}catch(t){throw Uo.mapViolations(t,this.formData?.form),this.button.state=te.STANDBY,t}})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-manage-2fa"]],viewQuery:function(o,r){if(o&1&&ge(hs,5)(fs,5),o&2){let d;re(d=ae())&&(r.formData=d.first),re(d=ae())&&(r.button=d.first)}},standalone:!1,decls:23,vars:7,consts:[["f","ngForm"],["pinCodeControl","ngModel"],["button",""],[1,"sections"],[1,"section"],[1,"card_box"],["appPreventLossFormData","",1,"form_box",3,"ngSubmit","isDirty"],[1,"content"],[1,"items","row"],[1,"item","col-12",3,"appHasErrorState"],["for","pin_code",1,"label"],["aria-hidden","true",1,"required"],[1,"field"],["appFocusVisible","","type","text","id","pin_code","name","pinCode","maxlength","6","aria-required","true","aria-label","Pin Code","autocomplete","off",3,"ngModelChange","ngModel"],[1,"item","col-12"],[1,"buttons"],["buttonText","Save Changes",3,"isDisabled"],[3,"elementType","errorCorrectionLevel","qrdata","alt"]],template:function(o,r){if(o&1){let d=O();a(0,"div",3)(1,"div",4)(2,"div",5)(3,"form",6,0),y("ngSubmit",function(){return r.setupTwoFa()}),a(5,"div",7)(6,"h3"),s(7),c()(),_(8,Cs,4,4,"div"),a(9,"div",8)(10,"div",9)(11,"label",10),s(12,"Enter pin-code "),a(13,"span",11),s(14,"*"),c()(),_(15,bs,2,0,"p"),a(16,"div",12)(17,"input",13,1),Q("ngModelChange",function(u){return b(d),W(r.pinCode,u)||(r.pinCode=u),x(u)}),c()()(),a(19,"div",14)(20,"div",15),C(21,"app-button",16,2),c()()()()()()()}if(o&2){let d=qt(4),p=qt(18);l(3),f("isDirty",d.dirty),l(4),P("",r.twoFaEnabled?"Disable":"Register"," Two-Factor Authenticator"),l(),h(r.twoFaEnabled?-1:8),l(2),f("appHasErrorState",p.control),l(5),h(r.twoFaEnabled?-1:15),l(2),$("ngModel",r.pinCode),l(4),f("isDisabled",!!d.pristine)}},dependencies:[be,tt,fe,Ce,Tt,kt,St,Zn,Yo,Dt,Ie,Ue,De,Ae],styles:[`.sections[_ngcontent-%COMP%]{max-width:736px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]{margin-bottom:32px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 35
13px}@media screen and (max-width:768px){.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 27px}}@media screen and (max-width:480px){.buttons[_ngcontent-%COMP%] .button{width:calc(100% - 16px)}} 14/*# sourceMappingURL=user-manage-2fa.component-ZWTGUMKE.css.map */`],changeDetection:0});let i=n;return i})();var pe=(()=>{let n=class n extends X{constructor(){super(...arguments),this.currentUserStorage=g(V),this.userPageService=g(It),this.courseService=g(Ao),this.notifierService=g(J),this.paymentService=g(de),this.userService=g(z),this.achievements$=this.userPageService.student$.pipe(ve(t=>t?.achievements||[])),this.user={},this.lastSubscription=T(null),this.lastSubscriptionSignal=this.lastSubscription.asReadonly(),this.PaymentStatusEnum=K,this.PaymentMethodChangeContextEnum=st,this.DictionaryEnum=Te,this.showActionsOrders=!1,this.showActionsSubscriptions=!1,this.showCards=!1,this.showEndsAt=!1,this.showDelayedDeletion=!1}getCourseData(t){return this.courseService.getCurriculum(t).pipe(ve(o=>o.data.courseCurriculum))}initBillingOrders(){this.currentUserStorage.getCurrentUserSubject().pipe(R(this._destroy$$)).subscribe(t=>{t&&(this.user=t,this.lastSubscription.set(t.managedSubscriptions.length?t.managedSubscriptions[0]:null),this.haveActionsOrders(t.orders),this.haveActionsSubscriptionsOrCardsOrEndsAt(t.managedSubscriptions))}),this.paymentService.paymentMethodAdded$.pipe(R(this._destroy$$)).subscribe(t=>{t.context===st.ADD_NEW&&this.notifierService.success("Payment method added to user account"),t.context===st.CHANGE_ENROLLMENT_PAYMENT_METHOD&&t.orderUuid&&this.notifierService.success("Payment method changed for enrollment"),t.context===st.CHANGE_ORDER_PAYMENT_METHOD&&t.orderUuid&&this.notifierService.success("Payment method changed for order"),this.userService.syncUser()})}onMakeDefault(t){t.default||confirm("Are you sure you want to make this payment method default?")&&this.paymentService.makeDefault(t.id,t.provider).subscribe(()=>{this.userService.syncUser(),this.notifierService.success("Successfully made payment method default.")})}haveActionsOrders(t){this.showActionsOrders=t.filter(o=>o.paymentStatus===K.PAST_DUE).length>0}haveActionsSubscriptionsOrCardsOrEndsAt(t){this.showActionsSubscriptions=t.filter(o=>!o?.expiresAt&&o?.paymentStatus!==K.INCOMPLETE).length>0,this.showCards=t.filter(o=>o?.paymentMethod?.provider===lt.STRIPE||o?.isPaypal||o?.paymentMethod?.provider===lt.MAXIO).length>0,this.showEndsAt=t.filter(o=>o?.expiresAt!==null||o.paymentStatus===K.CANCELLED).length>0}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=we(n)))(r||n)}})(),n.\u0275prov=ht({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();var xs=["mat-internal-form-field",""],ys=["*"],Aa=(()=>{class i{labelPosition="after";static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,o){t&2&&E("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:xs,ngContentSelectors:ys,decls:1,vars:0,template:function(t,o){t&1&&(cn(),sn(0))},styles:[`.mat-internal-form-field { 15 -moz-osx-font-smoothing: grayscale; 16 -webkit-font-smoothing: antialiased; 17 display: inline-flex; 18 align-items: center; 19 vertical-align: middle; 20} 21.mat-internal-form-field > label { 22 margin-left: 0; 23 margin-right: auto; 24 padding-left: 4px; 25 padding-right: 0; 26 order: 0; 27} 28[dir=rtl] .mat-internal-form-field > label { 29 margin-left: auto; 30 margin-right: 0; 31 padding-left: 0; 32 padding-right: 4px; 33} 34 35.mdc-form-field--align-end > label { 36 margin-left: auto; 37 margin-right: 0; 38 padding-left: 0; 39 padding-right: 4px; 40 order: -1; 41} 42[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label { 43 margin-left: 0; 44 margin-right: auto; 45 padding-left: 4px; 46 padding-right: 0; 47} 48`],encapsulation:2,changeDetection:0})}return i})();var vs=["input"],Ms=["label"],Ps=["*"],Di={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},Os=new Gi("mat-checkbox-default-options",{providedIn:"root",factory:()=>Di}),ee=(function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i})(ee||{}),Ui=class{source;checked},Ss=(()=>{class i{_elementRef=g(Qi);_changeDetectorRef=g(N);_ngZone=g(Wi);_animationsDisabled=Co();_options=g(Os,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new Ui;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;
48ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new zt;indeterminateChange=new zt;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){g(go).load(Ko);let e=g(new so("tabindex"),{optional:!0});this._options=this._options||Di,this.color=this._options.color||Di.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=g(ho).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let t=e!=this._indeterminate();this._indeterminate.set(e),t&&(e?this._transitionCheckState(ee.Indeterminate):this._transitionCheckState(this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=T(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,o=this._getAnimationTargetElement();if(!(t===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationsDisabled)return"";switch(e){case ee.Init:if(t===ee.Checked)return this._animationClasses.uncheckedToChecked;if(t==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return t===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return t===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return t===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-checkbox"]],viewQuery:function(t,o){if(t&1&&ge(vs,5)(Ms,5),t&2){let r;re(r=ae())&&(o._inputElement=r.first),re(r=ae())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,o){t&2&&(Xi("id",o.id
48),Ne("tabindex",null)("aria-label",null)("aria-labelledby",null),We(o.color?"mat-"+o.color:"mat-accent"),E("_mat-animation-noopable",o._animationsDisabled)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",Ke],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",Ke],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Ke],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:lo(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ke],checked:[2,"checked","checked",Ke],disabled:[2,"disabled","disabled",Ke],indeterminate:[2,"indeterminate","indeterminate",Ke]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[ln([{provide:Bo,useExisting:Hi(()=>i),multi:!0},{provide:No,useExisting:i,multi:!0}]),rn],ngContentSelectors:Ps,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,o){if(t&1&&(cn(),a(0,"div",3),y("click",function(d){return o._preventBubblingFromLabel(d)}),a(1,"div",4,0)(3,"div",5),y("click",function(){return o._onTouchTargetClick()}),c(),a(4,"input",6,1),y("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(d){return o._onInteractionEvent(d)}),c(),C(6,"div",7),a(7,"div",8),Yi(),a(8,"svg",9),C(9,"path",10),c(),$i(),C(10,"div",11),c(),C(11,"div",12),c(),a(12,"label",13,2),sn(14),c()()),t&2){let r=qt(2);f("labelPosition",o.labelPosition),l(4),E("mdc-checkbox--selected",o.checked),f("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),Ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),l(7),f("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),l(),f("for",o.inputId)}},dependencies:[Qo,Aa],styles:[`.mdc-checkbox { 49 display: inline-block; 50 position: relative; 51 flex: 0 0 18px; 52 box-sizing: content-box; 53 width: 18px; 54 height: 18px; 55 line-height: 0; 56 white-space: nowrap; 57 cursor: pointer; 58 vertical-align: bottom; 59 padding: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 60 margin: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 61} 62.mdc-checkbox:hover > .mdc-checkbox__ripple { 63 opacity: var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 64 background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 65} 66.mdc-checkbox:hover > .mat-mdc-checkbox-ripple > .mat-ripple-element { 67 background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 68} 69.mdc-checkbox .mdc-checkbox__native-control:focus + .mdc-checkbox__ripple { 70 opacity: var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 71 background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface)); 72} 73.mdc-checkbox .mdc-checkbox__native-control:focus ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 74 background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface)); 75} 76.mdc-checkbox:active > .mdc-checkbox__native-control + .mdc-checkbox__ripple { 77 opacity: var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 78 background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary)); 79} 80.mdc-checkbox:active > .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 81 background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary)); 82} 83.mdc-checkbox:hover > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple { 84 opacity: var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 85 background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary)); 86} 87.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 88 background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary)); 89} 90.mdc-checkbox .mdc-checkbox__native-control:focus:checked + .mdc-checkbox__ripple { 91 opacity: var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 92 background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary)); 93} 94.mdc-checkbox .mdc-checkbox__native-control:focus:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 95 background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary)); 96} 97.mdc-checkbox:active > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple { 98 opacity: var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 99 background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface)); 100} 101.mdc-checkbox:active > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element { 102 background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface)); 103} 104.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element, 105.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control + .mdc-checkbox__ripple { 106 background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); 107} 108.mdc-checkbox .mdc-checkbox__native-control { 109 position: absolute; 110 margin: 0; 111 padding: 0; 112 opacity: 0; 113 cursor: inherit; 114 z-index: 1; 115 width: var(--mat-checkbox-state-layer-size, 40px); 116 height: var(--mat-checkbox-state-layer-size, 40px); 117 top: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 118 right: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 119 left: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2); 120} 121 122.mdc-checkbox--disabled { 123 cursor: default; 124 pointer-events: none; 125} 126 127.mdc-checkbox__background { 128 display: inline-flex; 129 position: absolute; 130 align-items: center; 131 justify-content: center; 132 box-sizing: border-box; 133 width: 18px; 134 height: 18px; 135 border: 2px solid currentColor; 136 border-radius: 2px; 137 background-color: transparent; 138 pointer-events: none; 139 will-change: background-color, border-color; 140 transition: background-color 90ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms cubic-bezier(0.4, 0, 0.6, 1); 141 -webkit-print-color-adjust: exact; 142 color-adjust: exact; 143 border-color: var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant)); 144 top: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 145 left: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2); 146} 147 148.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background, 149.mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background { 150 border-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary)); 151 background-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary)); 152} 153 154.mdc-checkbox--disabled .mdc-checkbox__background { 155 border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 156} 157@media (forced-colors: active) { 158 .mdc-checkbox--disabled .mdc-checkbox__background { 159 border-color: GrayText; 160 } 161} 162 163.mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background, 164.mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background { 165 background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 166 border-color: transparent; 167} 168@media (forced-colors: active) { 169 .mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background, 170 .mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background { 171 border-color: GrayText; 172 } 173} 174 175.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:checked) ~ .mdc-checkbox__background, 176.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:indeterminate) ~ .mdc-checkbox__background { 177 border-color: var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface)); 178 background-color: transparent; 179} 180 181.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 182.mdc-checkbox:hover > .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 183 border-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary)); 184 background-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary)); 185} 186 187.mdc-checkbox__native-control:focus:focus:not(:checked) ~ .mdc-checkbox__background, 188.mdc-checkbox__native-control:focus:focus:not(:indeterminate) ~ .mdc-checkbox__background { 189 border-color: var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface)); 190} 191 192.mdc-checkbox__native-control:focus:focus:checked ~ .mdc-checkbox__background, 193.mdc-checkbox__native-control:focus:focus:indeterminate ~ .mdc-checkbox__background { 194 border-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary)); 195 background-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary)); 196} 197 198.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background, 199.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background, 200.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background { 201 border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 202} 203@media (forced-colors: active) { 204 .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background, 205 .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background, 206 .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background { 207 border-color: GrayText; 208 } 209} 210.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 211.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 212 background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 213 border-color: transparent; 214} 215 216.mdc-checkbox__checkmark { 217 position: absolute; 218 top: 0; 219 right: 0; 220 bottom: 0; 221 left: 0; 222 width: 100%; 223 opacity: 0; 224 transition: opacity 180ms cubic-bezier(0.4, 0, 0.6, 1); 225 color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary)); 226} 227@media (forced-colors: active) { 228 .mdc-checkbox__checkmark { 229 color: CanvasText; 230 } 231} 232 233.mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark { 234 color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface)); 235} 236@media (forced-colors: active) { 237 .mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark { 238 color: GrayText; 239 } 240} 241 242.mdc-checkbox__checkmark-path { 243 transition: stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1); 244 stroke: currentColor; 245 stroke-width: 3.12px; 246 stroke-dashoffset: 29.7833385; 247 stroke-dasharray: 29.7833385; 248} 249 250.mdc-checkbox__mixedmark { 251 width: 100%; 252 height: 0; 253 transform: scaleX(0) rotate(0deg); 254 border-width: 1px; 255 border-style: solid; 256 opacity: 0; 257 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 258 border-color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary)); 259} 260@media (forced-colors: active) { 261 .mdc-checkbox__mixedmark { 262 margin: 0 1px; 263 } 264} 265 266.mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark { 267 border-color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface)); 268} 269@media (forced-colors: active) { 270 .mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark { 271 border-color: GrayText; 272 } 273} 274 275.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background, 276.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background, 277.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background, 278.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background { 279 animation-duration: 180ms; 280 animation-timing-function: linear; 281} 282 283.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path { 284 animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear; 285 transition: none; 286} 287 288.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark { 289 animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear; 290 transition: none; 291} 292 293.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path { 294 animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear; 295 transition: none; 296} 297 298.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark { 299 animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear; 300 transition: none; 301} 302.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark { 303 animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear; 304 transition: none; 305} 306 307.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark {
308 animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear; 309 transition: none; 310} 311.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark { 312 animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear; 313 transition: none; 314} 315 316.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark { 317 animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear; 318 transition: none; 319} 320 321.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background, 322.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background { 323 transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1); 324} 325.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 326.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path { 327 stroke-dashoffset: 0; 328} 329 330.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark { 331 transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1), transform 180ms cubic-bezier(0, 0, 0.2, 1); 332 opacity: 1; 333} 334.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark { 335 transform: scaleX(1) rotate(-45deg); 336} 337 338.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark { 339 transform: rotate(45deg); 340 opacity: 0; 341 transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1); 342} 343.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark { 344 transform: scaleX(1) rotate(0deg); 345 opacity: 1; 346} 347 348@keyframes mdc-checkbox-unchecked-checked-checkmark-path { 349 0%, 50% { 350 stroke-dashoffset: 29.7833385; 351 } 352 50% { 353 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 354 } 355 100% { 356 stroke-dashoffset: 0; 357 } 358} 359@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark { 360 0%, 68.2% { 361 transform: scaleX(0); 362 } 363 68.2% { 364 animation-timing-function: cubic-bezier(0, 0, 0, 1); 365 } 366 100% { 367 transform: scaleX(1); 368 } 369} 370@keyframes mdc-checkbox-checked-unchecked-checkmark-path { 371 from { 372 animation-timing-function: cubic-bezier(0.4, 0, 1, 1); 373 opacity: 1; 374 stroke-dashoffset: 0; 375 } 376 to { 377 opacity: 0; 378 stroke-dashoffset: -29.7833385; 379 } 380} 381@keyframes mdc-checkbox-checked-indeterminate-checkmark { 382 from { 383 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 384 transform: rotate(0deg); 385 opacity: 1; 386 } 387 to { 388 transform: rotate(45deg); 389 opacity: 0; 390 } 391} 392@keyframes mdc-checkbox-indeterminate-checked-checkmark { 393 from { 394 animation-timing-function: cubic-bezier(0.14, 0, 0, 1); 395 transform: rotate(45deg); 396 opacity: 0; 397 } 398 to { 399 transform: rotate(360deg); 400 opacity: 1; 401 } 402} 403@keyframes mdc-checkbox-checked-indeterminate-mixedmark { 404 from { 405 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 406 transform: rotate(-45deg); 407 opacity: 0; 408 } 409 to { 410 transform: rotate(0deg); 411 opacity: 1; 412 } 413} 414@keyframes mdc-checkbox-indeterminate-checked-mixedmark { 415 from { 416 animation-timing-function: cubic-bezier(0.14, 0, 0, 1); 417 transform: rotate(0deg); 418 opacity: 1; 419 } 420 to { 421 transform: rotate(315deg); 422 opacity: 0; 423 } 424} 425@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark { 426 0% { 427 animation-timing-function: linear; 428 transform: scaleX(1); 429 opacity: 1; 430 } 431 32.8%, 100% { 432 transform: scaleX(0); 433 opacity: 0; 434 } 435} 436.mat-mdc-checkbox { 437 display: inline-block; 438 position: relative; 439 -webkit-tap-highlight-color: transparent; 440} 441.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-touch-target, 442.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__native-control, 443.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__ripple, 444.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-ripple::before, 445.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background, 446.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark, 447.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path, 448.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__mixedmark { 449 transition: none !important; 450 animation: none !important; 451} 452.mat-mdc-checkbox label { 453 cursor: pointer; 454} 455.mat-mdc-checkbox .mat-internal-form-field { 456 color: var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface)); 457 font-family: var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font)); 458 line-height: var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height)); 459 font-size: var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size)); 460 letter-spacing: var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking)); 461 font-weight: var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight)); 462} 463.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive { 464 pointer-events: auto; 465} 466.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input { 467 cursor: default; 468} 469.mat-mdc-checkbox.mat-mdc-checkbox-disabled label { 470 cursor: default; 471 color: var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 472} 473@media (forced-colors: active) { 474 .mat-mdc-checkbox.mat-mdc-checkbox-disabled label { 475 color: GrayText; 476 } 477} 478.mat-mdc-checkbox label:empty { 479 display: none; 480} 481.mat-mdc-checkbox .mdc-checkbox__ripple { 482 opacity: 0; 483} 484 485.mat-mdc-checkbox .mat-mdc-checkbox-ripple, 486.mdc-checkbox__ripple { 487 top: 0; 488 left: 0; 489 right: 0; 490 bottom: 0; 491 position: absolute; 492 border-radius: 50%; 493 pointer-events: none; 494} 495.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty), 496.mdc-checkbox__ripple:not(:empty) { 497 transform: translateZ(0); 498} 499 500.mat-mdc-checkbox-ripple .mat-ripple-element { 501 opacity: 0.1; 502} 503 504.mat-mdc-checkbox-touch-target { 505 position: absolute; 506 top: 50%; 507 left: 50%; 508 height: var(--mat-checkbox-touch-target-size, 48px); 509 width: var(--mat-checkbox-touch-target-size, 48px); 510 transform: translate(-50%, -50%); 511 display: var(--mat-checkbox-touch-target-display, block); 512} 513 514.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before { 515 border-radius: 50%; 516} 517 518.mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { 519 content: ""; 520} 521`],encapsulation:2,changeDetection:0})}return i})(),Fa=(()=>
521{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=bt({type:i});static \u0275inj=ft({imports:[Ss,_o]})}return i})();function ks(i,n){if(i&1){let e=O();a(0,"mat-card-title")(1,"h3"),s(2,"Sorry to see you go!"),c()(),a(3,"mat-card-content")(4,"p"),s(5," Your account, along with all associated data, including course progress and certificates, will be permanently deleted. You will now be logged out of your CFI account. "),c()(),a(6,"mat-card-actions")(7,"button",3),y("click",function(){b(e);let o=m();return x(o.final())}),s(8,"Got it"),c()()}}function ws(i,n){if(i&1){let e=O();a(0,"mat-card-title")(1,"h3"),s(2,"Are you sure you want to delete your CFI account?"),c()(),a(3,"mat-card-content")(4,"p"),s(5," By deleting your account, all associated data, including course progress, will be permanently deleted and cannot be recovered. You will no longer be able to access Certificates earned through CFI. "),c(),a(6,"p"),s(7," For subscription holders, time remaining in any active subscription will be forfeited. CFI subscriptions and services are not refundable, and refunds will not be issued. "),c(),a(8,"form",4)(9,"label",5)(10,"input",6),Q("ngModelChange",function(o){b(e);let r=m();return W(r.confirmDelete,o)||(r.confirmDelete=o),x(o)}),y("keyup.enter",function(){b(e);let o=m();return x(o.confirmDelete=!o.confirmDelete)}),c(),a(11,"span"),s(12,"I understand that deleting my CFI account will delete all data associated with my account."),c()()()(),a(13,"mat-card-actions")(14,"button",7),y("click",function(){b(e);let o=m();return x(o.cancel())}),s(15,"Keep Account"),c(),a(16,"button",8),y("click",function(){b(e);let o=m();return x(o.confirm())}),s(17," Delete Account "),c()()}if(i&2){let e=m();l(10),$("ngModel",e.confirmDelete),l(4),f("disabled",e.isDeleting),l(2),E("outlined",e.confirmDelete)("is_loading",e.isDeleting),f("disabled",!e.confirmDelete||e.isDeleting)}}var Ba=(()=>{let n=class n{constructor(){this.confirmDelete=!1,this.lastStepActive=!1,this.isDeleting=!1,this.cdr=g(N),this.userService=g(z),this.currentUserStorage=g(V),this.notifierService=g(J),this.dialogRef=g(Je)}confirm(){this.isDeleting=!0,this.cdr.markForCheck(),this.userService.delete().pipe(ue(1)).subscribe(()=>{this.lastStepActive=!0,this.isDeleting=!1,this.cdr.markForCheck()})}final(){this.currentUserStorage.setCurrentUser(null),this.dialogRef.close(!1),this.notifierService.success("Your account has been successfully deleted.")}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-delete-account-modal"]],decls:6,vars:1,consts:[["appearance","outlined",1,"card_box"],["aria-label","close",1,"close-btn",3,"click"],["icon","close",1,"ico_close"],["aria-label","Got it",1,"button","secondary",3,"click"],[1,"form_box","checkbox-wrapper"],["for","delete_cfi_account",1,"checkbox"],["appFocusVisible","","id","delete_cfi_account","type","checkbox","name","deleteAccount","aria-label","delete CFI account","autocomplete","on",3,"ngModelChange","keyup.enter","ngModel"],["aria-label","Keep Account",1,"button",3,"click","disabled"],["aria-label","Delete Account",1,"button","danger",3,"click","disabled"]],template:function(o,r){o&1&&(a(0,"mat-card",0)(1,"button",1),y("click",function(){return r.cancel()}),C(2,"app-svg-icon",2),s(3," Close "),c(),_(4,ks,9,0)(5,ws,18,7),c()),o&2&&(l(4),h(r.lastStepActive?4:5))},dependencies:[Mt,De,ar,nr,rr,or,ir,Fa,_n,be,Pt,fe,Ce,kt,St,Z],styles:[`[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%]{width:100%;max-width:500px;padding:32px;position:relative}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:24px}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{color:#374151}.is_night [_nghost-%COMP%] .card_box[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] mat-card-actions[_ngcontent-%COMP%]{display:flex;gap:24px;justify-content:flex-start;padding:0;margin:0;min-height:unset}@media screen and (max-width:576px){[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] mat-card-actions[_ngcontent-%COMP%]{flex-wrap:wrap}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] mat-card-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}} 522/*# sourceMappingURL=delete-account-modal.component-HHTSRH2N.css.map */`],changeDetection:0});let i=n;return i})();var Es=i=>({id:i}),Ts=()=>["/user/cancel-subscription"];function Ds(i,n){i&1&&(a(0,"div",5),C(1,"img",9),c())}function Us(i,n){i&1&&(a(0,"h6"),s(1," Why do you want to cancel your subscription? Please select all reasons that apply. "),a(2,"span",10),s(3,"*"),c()())}function Is(i,n){if(i&1){let e=O();a(0,"label",12)(1,"input",14,0),y("keyup.enter",function(){let o=b(e).$implicit,r=m(2);return x(r.onKeyupEnterToggle(o.name))}),c(),a(3,"span"),s(4),c()()}if(i&2){let e=n.$implicit,t=n.$index,o=m(2);f("for","form_cancel_subscription"+t+o.id),l(),f("id","form_cancel_subscription"+t+o.id)("formControlName",e.name),l(3),D(e.text)}}function As(i,n){i&1&&C(0,"textarea",13)}function Fs(i,n){if(i&1){let e=O();a(0,"form",11),y("ngSubmit",function(){b(e);let o=m();return x(o.goToNextStep())}),ie(1,Is,5,4,"label",12,Oe),_(3,As,1,0,"textarea",13),c()}if(i&2){let e=m();f("formGroup",e.form),l(),oe(e.checkboxItems),l(2),h(e.otherControl!=null&&e.otherControl.value?3:-1)}}function Bs(i,n){i&1&&(a(0,"p"),s(1,"You can continue to enjoy your All-Access benefits until the final day of your membership."),c())}function Ns(i,n){i&1&&(a(0,"p"),s(1,"Your subscription is now canceled. You can continue to enjoy your All-Access benefits until the final day of your membership."),c(),a(2,"p"),s(3," Please take a 2-minute survey and let us know about your experience with CFI. This will help us improve the experience for other CFI learners. "),c())}function Rs(i,n){if(i&1){let e=O();a(0,"button",15),y("click",function(){b(e);let o=m();return x(o.continueToCancellation())}
522),a(1,"span",16)(2,"span",17),s(3,"Continue"),c(),a(4,"span",18),s(5,"Continue"),c()()()}if(i&2){let e=m();E("is_loading",e.loader),f("queryParams",Re(5,Es,e.subscriptionUuid))("routerLink",L(7,Ts))("disabled",!e.valid)}}function Ls(i,n){if(i&1){let e=O();a(0,"button",19),y("click",function(){b(e);let o=m();return x(o.openSurvey())}),a(1,"span",16)(2,"span",17),s(3,"Take Survey"),c(),a(4,"span",18),s(5,"Take Survey"),c()()(),a(6,"button",20),y("click",function(){b(e);let o=m();return x(o.closeModal())}),s(7,"Go to Dashboard"),c()}}var Xn=(()=>{let n=class n extends X{constructor(){super(),this.dialogRef=g(Je),this.router=g(se),this.userService=g(z),this.notifierService=g(J),this.paymentService=g(de),this.cdr=g(N),this.typeformLinkService=g(zo),this.renderer=g(Ye),this.environment=g(et),this.data=g(yt),this.cancelSubscriptionStep=this.data?.cancelSubscriptionStep??!1,this.subscriptionUuid="0",this.loader=!1,this.form=new Ot({achievedLearningGoal:new q(!1),pricingHigh:new q(!1),tooBusyOrNoTime:new q(!1),foundAlternative:new q(!1),lowQuality:new q(!1),notUsingEnough:new q(!1),coursesDifficultOrEasy:new q(!1),notAutorenew:new q(!1),other:new q(!1),comment:new q(null)}),this.otherControl=this.form.get("other"),this.commentControl=this.form.get("comment"),this.valid=!1,this.id=Do(),this.checkboxItems=[{text:"I achieved the learning goal I set for myself",name:"achievedLearningGoal"},{text:"Pricing is too high",name:"pricingHigh"},{text:"I am too busy or don't have time right now",name:"tooBusyOrNoTime"},{text:"Found an alternative",name:"foundAlternative"},{text:"Quality of courses was less than expected",name:"lowQuality"},{text:"I am not using it enough",name:"notUsingEnough"},{text:"Found CFI courses too difficult or too easy",name:"coursesDifficultOrEasy"},{text:"I don't want to autorenew",name:"notAutorenew"},{text:"Other (please specify below)",name:"other"}],this.subscriptionUuid=this.data?.subscriptionUuid,this.form.valueChanges.pipe(R(this._destroy$$)).subscribe(()=>{this.otherControl?.value||this.commentControl?.setValue(null,{emitEvent:!1}),this.valid=Object.values(this.form.value).some(Boolean),this.otherControl?.value&&(this.valid=!!this.commentControl?.value)})}ngAfterViewInit(){this.updateAttributes()}openSurvey(){this.typeformLinkService.openLink(gn.CANCELLATION)}closeDialog(){this.paymentService.cancelForm=this.form,this.dialogRef.close()}continueToCancellation(){this.paymentService.cancelForm=this.form,this.paymentService.createSubscriptionLeavingReason(this.subscriptionUuid,this.form.value,this.form).subscribe({error:()=>{}}),this.dialogRef.close()}goToNextStep(){this.loader=!0,this.paymentService.cancelSubscription(this.subscriptionUuid,this.form).pipe(Me(()=>{this.loader=!1,this.cdr.markForCheck()})).subscribe(()=>{this.userService.syncUser(),this.notifierService.success("Your subscriptions was successfully canceled."),this.cancelSubscriptionStep=!1,this.form.reset(),this.dialogRef.close(),this.cdr.markForCheck()})}closeModal(){this.dialogRef.close(),this.router.navigate(["/"])}onKeyupEnterToggle(t){let o=this.form.get(t);o?.setValue(!o.value)}updateAttributes(){let t=document.querySelectorAll(".cdk-visually-hidden");if(!t.length){setTimeout(()=>this.updateAttributes(),500);return}t.forEach(o=>{this.renderer.setAttribute(o,"role","presentation"),this.renderer.setAttribute(o,"tabindex","-1")})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-cancel-subscription-modal"]],standalone:!1,features:[ne],decls:15,vars:7,consts:[["checkboxInput",""],[1,"card_box","card_box_big"],["aria-label","close",1,"close-btn",3,"click"],["icon","close",1,"ico_close"],[1,"card_box_content"],[1,"card_box_image"],[1,"form_box",3,"formGroup"],[1,"buttons"],["type","button","aria-label","Continue",1,"button",3,"is_loading","queryParams","routerLink","disabled"],["src","/assets/images/img_canceled-subscription.svg","alt","cancel subscription illustration"],["aria-hidden","true",1,"required"],[1,"form_box",3,"ngSubmit","formGroup"],[1,"checkbox",3,"for"],["appFocusVisible","","formControlName","comment","id","form_cancel_subscription_custom_option","placeholder","Please share any of your feedback","maxlength","500","aria-required","false","autocomplete","on"],["appFocusVisible","","type","checkbox","aria-required","true","autocomplete","on",3,"keyup.enter","id","formControlName"],["type","button","aria-label","Continue",1,"button",3,"click","queryParams","routerLink","disabled"],[1,"wrapping-content"],[1,"before"],[1,"after"],["aria-label","Take Survey",1,"button",3,"click"],["aria-label","Go to Dashboard",1,"button","link",3,"click"]],template:function(o,r){o&1&&(a(0,"div",1)(1,"button",2),y("click",function(){return r.closeDialog()}),C(2,"app-svg-icon",3),s(3," Close "),c(),a(4,"div",4),_(5,Ds,2,0,"div",5),a(6,"h3"),s(7,"We'll miss you!"),c(),_(8,Us,4,0,"h6"),_(9,Fs,4,2,"form",6),_(10,Bs,2,0,"p"),_(11,Ns,4,0),c(),a(12,"div",7),_(13,Rs,6,8,"button",8),_(14,Ls,8,0),c()()),o&2&&(l(5),h(r.cancelSubscriptionStep?-1:5),l(3),h(r.cancelSubscriptionStep?8:-1),l(),h(r.cancelSubscriptionStep?9:-1),l(),h(r.cancelSubscriptionStep?10:-1),l(),h(r.cancelSubscriptionStep?-1:11),l(2),h(r.cancelSubscriptionStep?13:-1),l(),h(r.cancelSubscriptionStep?-1:14))},dependencies:[le,be,tt,Pt,fe,Ce,Tt,Et,wt,Ie,Ue,De,xn,Z],styles:[`.card_box[_ngcontent-%COMP%]{padding:48px}@media screen and (max-width:1200px){.card_box[_ngcontent-%COMP%]{padding:32px}}@media screen and (max-width:768px){.card_box[_ngcontent-%COMP%]{padding:24px}}.card_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .card_box[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-bottom:24px}.card_box[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:#e32a27}.card_box_big[_ngcontent-%COMP%]{max-width:637px}@media screen and (max-width:1200px){.card_box_big[_ngcontent-%COMP%]{max-width:100%}}.card_box_image[_ngcontent-%COMP%]{display:flex;justify-content:center}.card_box_image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}
522.card_box_content[_ngcontent-%COMP%]{max-height:calc(100vh - 200px);max-height:calc(100dvh - 200px);overflow-y:auto;overflow-x:hidden}@media screen and (max-width:1200px){.card_box_content[_ngcontent-%COMP%]{max-height:calc(100vh - 168px);max-height:calc(100dvh - 168px)}}@media screen and (max-width:768px){.card_box_content[_ngcontent-%COMP%]{max-height:calc(100vh - 152px);max-height:calc(100dvh - 152px)}}.card_box_content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin-bottom:24px}.card_box_content[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{margin-bottom:16px}.card_box[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:24px}.card_box[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]:last-child{margin-bottom:0}.card_box[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{margin-bottom:16px;width:calc(100% - 16px);justify-content:center}.card_box[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:last-child{margin-bottom:0} 523/*# sourceMappingURL=user-cancel-subscription-modal.component-QT5BAONL.css.map */`],changeDetection:0});let i=n;return i})();var Na=(()=>{let n=class n{constructor(){this.data=g(yt,{optional:!0}),this.renewalOfferData=this.data?.renewalOfferData??null,this.isFixedPriceOffer=he(()=>this.renewalOfferData?.offerType===Xe.FIXED_PRICE),this.currencyConversion=me(null),this.dialogRef=g(Je),this.userFacadeService=g(pe)}closeModal(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-discount-confirmation-modal"]],inputs:{currencyConversion:[1,"currencyConversion"]},decls:12,vars:11,consts:[[1,"card_box"],["aria-label","close","mat-dialog-close","",1,"close-btn"],["icon","close",1,"ico_close"],["aria-label","Okay",1,"button",3,"click"]],template:function(o,r){o&1&&(a(0,"div",0)(1,"button",1),C(2,"app-svg-icon",2),s(3," Close "),c(),a(4,"h3"),s(5,"Congrats! The discount has been applied"),c(),a(6,"p"),s(7),v(8,"localCurrencyPrice"),v(9,"price"),c(),a(10,"button",3),y("click",function(){return r.closeModal()}),s(11,"Okay"),c()()),o&2&&(l(7),P(" Your renewal offer will now be at a ",r.isFixedPriceOffer()?r.currencyConversion()?xt(8,1,r.renewalOfferData==null?null:r.renewalOfferData.fixedPrice,r.currencyConversion(),void 0,!0):xt(9,6,r.renewalOfferData==null?null:r.renewalOfferData.fixedPrice,"",0,!0):(r.renewalOfferData==null?null:r.renewalOfferData.discountPercent)+"% discount"," and auto renew has been turned on. "))},dependencies:[Mt,bo,Z,xe,Cn,fn],styles:["/*# sourceMappingURL=user-discount-confirmation-modal.component-SHNGEUZE.css.map */"],changeDetection:0});let i=n;return i})();function qs(i,n){i&1&&(ct(0,"span",2)(1,"span",3),s(2,"%"),$e(),ct(3,"span",4),s(4,"OFF"),$e()())}var ei=(()=>{let n=class n{constructor(){this.value=me.required(),this.isFixedPriceOffer=me.required()}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-discount-badge"]],inputs:{value:[1,"value"],isFixedPriceOffer:[1,"isFixedPriceOffer"]},decls:4,vars:2,consts:[[1,"discount-badge"],[1,"discount-number"],[1,"discount-suffix"],[1,"percent"],[1,"off"]],template:function(o,r){o&1&&(ct(0,"div",0)(1,"span",1),s(2),$e(),_(3,qs,5,0,"span",2),$e()),o&2&&(l(2),D(r.value()),l(),h(r.isFixedPriceOffer()?-1:3))},styles:[`[_nghost-%COMP%]{display:block;margin-bottom:8px}.discount-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.discount-number[_ngcontent-%COMP%]{font-size:118px;font-weight:700;line-height:1;font-family:Utopia Std,serif;background:linear-gradient(135deg,#bdbdbd,#fff 43.45%,#bdbdbd 68.2%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.02em}@media screen and (max-width:480px){.discount-number[_ngcontent-%COMP%]{font-size:66px}}.discount-suffix[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0}.discount-suffix[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%], .discount-suffix[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{font-family:Utopia Std,serif;font-weight:700;line-height:1;background:linear-gradient(135deg,#bdbdbd,#fff 43.45%,#bdbdbd 68.2%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.02em}.discount-suffix[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{font-size:55px}@media screen and (max-width:480px){.discount-suffix[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{font-size:24px;margin-bottom:3px}}.discount-suffix[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{font-size:28px}@media screen and (max-width:480px){.discount-suffix[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{font-size:21px}} 524/*# sourceMappingURL=discount-badge.component-XHZNGSM6.css.map */`],changeDetection:0});let i=n;return i})();var Ra=(()=>{let n=class n{constructor(){this.renewalOfferData=me(null),this.subscription=me(null),this.offerClaimed=mn(),this.dialog=g(vt),this.offerBadgeValuePipe=g(bn),this.notifierService=g(J),this.paymentService=g(de),this.userService=g(z),this.userFacadeService=g(pe),this.loading=T(!1),this.isFixedPriceOffer=he(()=>this.renewalOfferData()?.offerType===Xe.FIXED_PRICE),this.badgeV
524alue=he(()=>this.offerBadgeValuePipe.transform(this.renewalOfferData()?.offerType,this.renewalOfferData()?.discountPercent,this.renewalOfferData()?.fixedPrice?.amount,this.renewalOfferData()?.fixedPrice?.currency))}claimOffer(){this.subscription()&&(this.loading.set(!0),this.paymentService.claimRenewalOffer().pipe(Me(()=>{this.loading.set(!1)})).subscribe(()=>{this.userService.syncUser(),this.userFacadeService.initBillingOrders(),this.notifierService.success("Your subscription was successfully reactivated."),this.openUserDiscountConfirmationModal()}))}openUserDiscountConfirmationModal(){this.dialog.open(Na,{disableClose:!0,ariaLabel:"Discount Confirmation Dialog",data:{renewalOfferData:this.renewalOfferData()}}).afterClosed().subscribe(()=>{this.offerClaimed.emit()})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-discount-offer"]],inputs:{renewalOfferData:[1,"renewalOfferData"],subscription:[1,"subscription"]},outputs:{offerClaimed:"offerClaimed"},standalone:!1,decls:20,vars:5,consts:[[1,"card_box"],[1,"discount-content"],[3,"value","isFixedPriceOffer"],[1,"discount-subtitle"],[1,"discount-title"],[1,"discount-details"],["aria-label","Claim offer",1,"button",3,"click","disabled"],[1,"wrapping-content"],[1,"before"],[1,"after"],[1,"small"]],template:function(o,r){o&1&&(a(0,"div",0)(1,"div",1),C(2,"app-discount-badge",2),a(3,"p",3),s(4,"Your Exclusive Renewal Offer is Waiting"),c(),a(5,"h2",4),s(6,"Applied to all future renewals"),c()(),a(7,"div",5)(8,"h3"),s(9,"Keep Your Finance Career Moving Forward"),c(),a(10,"p"),s(11,"Gain AI-powered finance skills, earn globally recognized certifications, and stand out to employers."),c(),a(12,"button",6),y("click",function(){return r.claimOffer()}),a(13,"span",7)(14,"span",8),s(15,"Claim offer"),c(),a(16,"span",9),s(17,"Claim offer"),c()()(),a(18,"p",10),s(19,"Auto renewal will be turned on"),c()()()),o&2&&(l(2),f("value",r.badgeValue())("isFixedPriceOffer",r.isFixedPriceOffer()),l(10),E("is_loading",r.loading()),f("disabled",r.loading()))},dependencies:[ei],styles:[`[_nghost-%COMP%] .card_box[_ngcontent-%COMP%]{display:flex;margin-bottom:32px;padding:0;border-radius:0}@media screen and (max-width:768px){[_nghost-%COMP%] .card_box[_ngcontent-%COMP%]{flex-direction:column}}.discount-content[_ngcontent-%COMP%]{flex:1;padding:32px 24px;background-color:#000c3f;text-align:center}@media screen and (max-width:768px){.discount-content[_ngcontent-%COMP%]{padding:24px}}.discount-title[_ngcontent-%COMP%], .discount-subtitle[_ngcontent-%COMP%]{color:#fff}.discount-details[_ngcontent-%COMP%]{flex:1;padding:32px;text-align:center}@media screen and (max-width:768px){.discount-details[_ngcontent-%COMP%]{padding:24px}}.discount-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px}.discount-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:24px;line-height:1.6}.discount-details[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}.discount-details[_ngcontent-%COMP%] .small[_ngcontent-%COMP%]{margin-bottom:0;font-size:12px} 525/*# sourceMappingURL=user-discount-offer.component-37PXBYGG.css.map */`],changeDetection:0});let i=n;return i})();var Ys=(i,n,e,t,o,r)=>[i,n,e,t,o,r],$s=i=>({amount:i,currency:"USD"}),Ws=(i,n)=>["/my-receipts",i,n];function Qs(i,n){return this.trackBy(n)}function Ks(i,n){i&1&&C(0,"app-svg-icon",18)}function Js(i,n){if(i&1&&(s(0," Payment failed to process. "),a(1,"b"),s(2),v(3,"formatDate"),v(4,"formatDate"),c(),s(5,". ")),i&2){let e=m(3);l(2),Y("Update your payment details to renew your subscription for the upcoming term (",H(3,2,e==null||e.currentBillingPeriod==null?null:e.currentBillingPeriod.start,"America/Vancouver")," - ",H(4,5,e==null||e.currentBillingPeriod==null?null:e.currentBillingPeriod.end,"America/Vancouver"),")")}}function Zs(i,n){if(i&1&&(s(0," Your invoice is ready. "),a(1,"b"),s(2),v(3,"formatDate"),v(4,"formatDate"),c(),s(5,". ")),i&2){let e=m(3);l(2),Y("Please complete your payment to activate your subscription (",H(3,2,e==null||e.currentBillingPeriod==null?null:e.currentBillingPeriod.start,"America/Vancouver")," - ",H(4,5,e==null||e.currentBillingPeriod==null?null:e.currentBillingPeriod.end,"America/Vancouver"),")")}}function Xs(i,n){if(i&1&&(a(0,"span",19),_(1,Js,6,8)(2,Zs,6,8),c()),i&2){let e=m(2);l(),h(e!=null&&e.hasDuePayment?1:2)}}
525function el(i,n){if(i&1&&(a(0,"app-inline-notification",11),Ee(1,Ks,1,0,"ng-template",null,0,_e)(3,Xs,3,1,"ng-template",null,1,_e),c()),i&2){let e=m(2);f("closable",!1)("type",e.NotificationType.Error)}}function tl(i,n){if(i&1&&_(0,el,5,2,"app-inline-notification",11),i&2){let e=n;h(e!=null&&e.hasDuePayment||e!=null&&e.isLastInvoiceOpen?0:-1)}}function nl(i,n){i&1&&C(0,"app-loader")}function il(i,n){if(i&1){let e=O();a(0,"span")(1,"a",23),y("click",function(){b(e);let o=m(3),r=m(2);return x(r.openModal(r.PaymentMethodChangeContextEnum.CHANGE_ENROLLMENT_PAYMENT_METHOD,o==null?null:o.paymentMethodEditable,o==null?null:o.uuid,!0))})("keyup.enter",function(){b(e);let o=m(3),r=m(2);return x(r.openModal(r.PaymentMethodChangeContextEnum.CHANGE_ENROLLMENT_PAYMENT_METHOD,o==null?null:o.paymentMethodEditable,o==null?null:o.uuid,!0))}),s(2," update your payment method "),c(),s(3," or "),c()}}function ol(i,n){if(i&1&&(a(0,"span"),s(1,"Your subscription is currently on hold."),c(),C(2,"br"),a(3,"span"),s(4,"This may be due to a billing issue or an account-related matter. While on hold, your access to the subscription is temporarily suspended. "),c(),C(5,"br"),a(6,"span"),s(7,"To restore access, please "),_(8,il,4,0,"span"),s(9," contact support for assistance."),c()),i&2){let e=m(2),t=m(2);l(8),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.ON_HOLD&&(e!=null&&e.paymentMethodEditable)?8:-1)}}function rl(i,n){if(i&1&&(s(0),v(1,"price")),i&2){let e=m(3);P(" Your subscription includes a ",(e==null||e.coupon==null?null:e.coupon.couponType)==="PERCENT"?(e==null||e.coupon==null?null:e.coupon.couponValue)+"%":S(1,1,Re(3,$s,(e==null||e.coupon==null?null:e.coupon.couponValue)??null))," discount, which will be applied at every renewal. ")}}function al(i,n){if(i&1&&(a(0,"p"),s(1),v(2,"price"),c()),i&2){let e=m(3);l(),P("(A service credit of ",S(2,1,e==null?null:e.serviceCredits)," will automatically reduce your next payment)")}}function cl(i,n){if(i&1&&(a(0,"span"),_(1,rl,2,5),s(2),v(3,"formatDate"),v(4,"price"),_(5,al,3,3,"p"),c()),i&2){let e=m(2);l(),h((e==null?null:e.coupon)!==null?1:-1),l(),P(" ","Your "+(e==null?null:e.name)+" will renew on "+H(3,3,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver")+((e==null?null:e.renewAmount)!==null?", and you will be charged "+S(4,6,e==null?null:e.renewAmount):"")+"."," "),l(3),h(!(e==null||e.serviceCredits==null)&&e.serviceCredits.amount?5:-1)}}function sl(i,n){if(i&1&&(a(0,"span"),s(1),v(2,"formatDate"),v(3,"price"),c()),i&2){let e=m(2);l(),P(" ","Your "+(e==null?null:e.name)+" subscription expires on "+H(2,1,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver")+((e==null?null:e.renewAmount)!==null?", and you won't be charged "+S(3,4,e==null?null:e.renewAmount):"")+"."," ")}}function ll(i,n){if(i&1){let e=O();a(0,"span"),s(1," You can always "),a(2,"a",24),y("click",function(){b(e);let o=m(2),r=m(2);return x(r.openModal(r.PaymentMethodChangeContextEnum.CHANGE_ENROLLMENT_PAYMENT_METHOD,o==null?null:o.paymentMethodEditable,o==null?null:o.uuid,!0))})("keyup.enter",function(){b(e);let o=m(2),r=m(2);return x(r.openModal(r.PaymentMethodChangeContextEnum.CHANGE_ENROLLMENT_PAYMENT_METHOD,o==null?null:o.paymentMethodEditable,o==null?null:o.uuid,!0))}),s(3,"change payment method "),c(),s(4," for the subscription. "),c()}}function dl(i,n){if(i&1&&(a(0,"p",21),_(1,ol,10,1),_(2,cl,6,8,"span"),_(3,sl,4,6,"span"),_(4,ll,5,0,"span"),c()),i&2){let e=m(),t=m(2);l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.ON_HOLD?1:-1),l(),h((e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.CANCELLED&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.ON_HOLD&&(e!=null&&e.expiresAt||e!=null&&e.billingAt)?2:-1),l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.CANCELLED&&!t.resolveResume(e)&&!t.resolveReactivate(e)?3:-1),l(),h((e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.CANCELLED&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.ON_HOLD&&(e==null?null:e.type)!==t.OrderTypeEnum.MANUAL?4:-1)}}function ml(i,n){if(i&1&&(s(0),v(1,"formatDate")),i&2){let e=m(2);Y(" Your ",e==null?null:e.name," expired on ",H(1,2,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),". To reactivate your subscription, please visit your mobile store (Apple/Google). ")}}
525function pl(i,n){if(i&1&&(s(0),v(1,"formatDate")),i&2){let e=m(3);Y(" Your ",e==null?null:e.name," will end on ",H(1,2,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),". To resume your subscription, please visit your mobile store (Apple/Google). ")}}function ul(i,n){if(i&1&&(s(0),v(1,"formatDate")),i&2){let e=m(3);Y(" Your ",e==null?null:e.name," subscription will automatically renew on ",H(1,2,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),". To manage your subscription, please visit your mobile store (Apple/Google). ")}}function gl(i,n){if(i&1&&_(0,pl,2,5)(1,ul,2,5),i&2){let e=m(2),t=m(2);h((e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.ACTIVE?0:1)}}function _l(i,n){if(i&1&&(a(0,"p",21),_(1,ml,2,5)(2,gl,2,1),c()),i&2){let e=m(),t=m(2);l(),h(t.resolveReactivate(e)?1:2)}}function hl(i,n){if(i&1){let e=O();a(0,"p",22)(1,"a",25),y("click",function(){b(e);let o=m(),r=m(2);return x(r.cancelSubscription(o.uuid))})("keyup.enter",function(){b(e);let o=m(),r=m(2);return x(r.cancelSubscription(o.uuid))}),s(2," Cancel subscription "),c()()}}function fl(i,n){if(i&1){let e=O();a(0,"p",22)(1,"a",26),y("click",function(){b(e);let o=m(),r=m(2);return x(r.cancelSubscription(o.uuid))})("keyup.enter",function(){b(e);let o=m(),r=m(2);return x(r.cancelSubscription(o.uuid))}
525),s(2," Cancel renewal "),c(),a(3,"app-tooltip",27),s(4),v(5,"formatDate"),C(6,"br"),s(7),v(8,"formatDate"),c()()}if(i&2){let e=m();l(4),P("If you cancel renewal, you'll still have access to the subscription until ",H(5,2,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),"."),l(3),P("After ",H(8,5,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),", your subscription will end and will not automatically renew. ")}}function Cl(i,n){if(i&1&&(a(0,"p"),s(1),v(2,"price"),c()),i&2){let e=m(2);l(),P("(A service credit of ",S(2,1,e==null?null:e.serviceCredits)," will automatically reduce your next payment)")}}function bl(i,n){if(i&1){let e=O();a(0,"p",22),s(1),v(2,"formatDate"),c(),a(3,"p",22),s(4),v(5,"price"),c(),_(6,Cl,3,3,"p"),a(7,"div",13)(8,"a",28),y("click",function(){b(e);let o=m(),r=m(2);return x(r.resume(o))})("keyup.enter",function(){b(e);let o=m(),r=m(2);return x(r.resume(o))}),a(9,"span",15)(10,"span",16),s(11,"Resume Subscription"),c(),a(12,"span",17),s(13,"Resume Subscription"),c()()()()}if(i&2){let e=m();l(),Y(" Your ",e==null?null:e.name," is currently available and you can enjoy its benefits until your subscription expires on ",H(2,4,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),". "),l(3),P(" Resume your subscription for ",S(5,7,e==null?null:e.renewAmount)," today so your learning is not interrupted! "),l(2),h(!(e==null||e.serviceCredits==null)&&e.serviceCredits.amount?6:-1)}}function xl(i,n){if(i&1){let e=O();a(0,"p",22),s(1),v(2,"formatDate"),c(),a(3,"p",22),s(4),v(5,"price"),c(),a(6,"div",13)(7,"a",29),y("click",function(){b(e);let o=m(),r=m(2);return x(r.reactivate(o))})("keyup.enter",function(){b(e);let o=m(),r=m(2);return x(r.reactivate(o))}),a(8,"span",15)(9,"span",16),s(10),c(),a(11,"span",17),s(12),c()()(),a(13,"a",30)(14,"span",15)(15,"span",16),s(16,"Compare Plans"),c(),a(17,"span",17),s(18,"Compare Plans"),c()()()()}if(i&2){let e=m(),t=m(2);l(),Y(" Your ",e==null?null:e.name," expired on ",H(2,6,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver"),". "),l(3),P(" Reactivate your subscription for ",S(5,9,e==null?null:e.renewAmount)," today to continue learning! "),l(6),P("Reactivate ",e==null?null:e.name),l(2),P("Reactivate ",e==null?null:e.name),l(),f("href",t.marketingSiteUrl+"/upgrade/",Pe)}}function yl(i,n){if(i&1&&(_(0,dl,5,4,"p",21),_(1,_l,3,1,"p",21),_(2,hl,3,0,"p",22),_(3,fl,9,8,"p",22),_(4,bl,14,9),_(5,xl,19,11)),i&2){let e=n,t=m(2);h(!(t.userFacadeService.user==null||t.userFacadeService.user.managedSubscriptions==null)&&t.userFacadeService.user.managedSubscriptions.length&&!(e!=null&&e.isMobile)?0:-1),l(),h(!(t.userFacadeService.user==null||t.userFacadeService.user.managedSubscriptions==null)&&t.userFacadeService.user.managedSubscriptions.length&&(e!=null&&e.isMobile)?1:-1),l(),h(!(t.userFacadeService.user==null||t.userFacadeService.user.managedSubscriptions==null)&&t.userFacadeService.user.managedSubscriptions.length&&t.INACTIVE_SUBSCRIPTION_STATUSES.includes((e==null?null:e.paymentStatus)??t.PaymentStatusEnum.INCOMPLETE)&&!(e!=null&&e.isMobile)?2:-1),l(),h(!(t.userFacadeService.user==null||t.userFacadeService.user.managedSubscriptions==null)&&t.userFacadeService.user.managedSubscriptions.length&&t.ACTIVE_SUBSCRIPTION_STATUSES.includes((e==null?null:e.paymentStatus)??t.PaymentStatusEnum.INCOMPLETE)&&(e!=null&&e.expiresAt||e!=null&&e.billingAt)&&!(e!=null&&e.isMobile)?3:-1),l(),h(t.resolveResume(e)?4:-1),l(),h(t.resolveReactivate(e)&&!(e!=null&&e.isMobile)?5:-1)}}function vl(i,n){i&1&&(a(0,"p"),s(1,"You do not have any subscriptions yet."),c())}function Ml(i,n){i&1&&C(0,"app-svg-icon",31)}function Pl(i,n){if(i&1&&(a(0,"span",19)(1,"b"),s(2),v(3,"localCurrencyPrice"),v(4,"price"),c(),C(5,"br"),s(6," Turn on auto-renew to reclaim your offer. "),c()),i&2){let e,t=m(3);l(2),P("You have an exclusive renewal offer pending for ",t.isFixedPriceOffer()?t.currencyConversion()?xt(3,1,(e=t.renewalOfferData())==null||e.renewalOffer==null?null:e.renewalOffer.fixedPrice,t.currencyConversion(),void 0,!0):xt(4,6,(e=t.renew
525alOfferData())==null||e.renewalOffer==null?null:e.renewalOffer.fixedPrice,"",0,!0):((e=t.renewalOfferData())==null||e.renewalOffer==null?null:e.renewalOffer.discountPercent)+"% off",".")}}function Ol(i,n){if(i&1&&(a(0,"app-inline-notification",20),Ee(1,Ml,1,0,"ng-template",null,0,_e)(3,Pl,7,11,"ng-template",null,1,_e),c()),i&2){let e=m(2);f("closable",!1)("isAlert",!0)("type",e.NotificationType.Info)}}function Sl(i,n){if(i&1&&(a(0,"th",35),s(1),c()),i&2){let e=m(3);l(),D(e.titleForHeaderCellForRenews)}}function kl(i,n){i&1&&(a(0,"th",36),s(1,"Card"),c())}function wl(i,n){if(i&1&&(a(0,"span",41),s(1),c()),i&2){let e=m(),t=m(2);E("past-due",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.PAST_DUE)("expired",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.CANCELLED)("active",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.INCOMPLETE||(e==null||e.paymentMethod==null?null:e.paymentMethod.hasSubscriptions)&&(e==null?null:e.expiresAt)===null)("expires",(e==null||e.paymentMethod==null?null:e.paymentMethod.hasSubscriptions)&&(e==null?null:e.expiresAt)!==null||!(!(e==null||e.paymentMethod==null)&&e.paymentMethod.hasSubscriptions)),l(),P(" ",t.badgeText(e)," ")}}function El(i,n){i&1&&s(0," Past Due ")}function Tl(i,n){i&1&&s(0," On Hold ")}function Dl(i,n){i&1&&s(0," Active ")}function Ul(i,n){i&1&&s(0," Expired ")}function Il(i,n){i&1&&s(0," Expires ")}function Al(i,n){if(i&1&&_(0,Ul,1,0)(1,Il,1,0),i&2){let e=m(2),t=m(2);h(t.isSubscriptionExpired(e)?0:1)}}function Fl(i,n){i&1&&s(0," Completed ")}function Bl(i,n){i&1&&s(0," Expires ")}
525function Nl(i,n){if(i&1&&(a(0,"span",41),_(1,El,1,0),_(2,Tl,1,0),_(3,Dl,1,0),_(4,Al,2,1),_(5,Fl,1,0),_(6,Bl,1,0),c()),i&2){let e=m(),t=m(2);E("past-due",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.PAST_DUE)("active",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.ACTIVE||(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.INCOMPLETE)("expired",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.CANCELLED)("on-hold",(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.ON_HOLD)("expires",(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.ACTIVE&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.INCOMPLETE),l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.PAST_DUE?1:-1),l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.ON_HOLD?2:-1),l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.ACTIVE||(e==null?null:e.paymentStatus)===t.PaymentStatusEnum.INCOMPLETE?3:-1),l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.CANCELLED?4:-1),l(),h((e==null?null:e.paymentStatus)===t.PaymentStatusEnum.COMPLETE?5:-1),l(),h((e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.ACTIVE&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.INCOMPLETE&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.CANCELLED&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.COMPLETE&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.PAST_DUE&&(e==null?null:e.paymentStatus)!==t.PaymentStatusEnum.ON_HOLD?6:-1)}}function Rl(i,n){if(i&1&&C(0,"span",42),i&2){let e=m();E("active",(e==null?null:e.expiresAt)===null)("expires",(e==null?null:e.expiresAt)!==null),f("innerHTML",(e==null?null:e.expiresAt)===null?"Active":"Expires",Ki)}}function Ll(i,n){if(i&1&&(a(0,"td",35),s(1),v(2,"formatDate"),c()),i&2){let e=m();l(),P(" ",H(2,1,(e==null?null:e.expiresAt)||(e==null?null:e.billingAt),"America/Vancouver")," ")}}function Vl(i,n){if(i&1&&(s(0),C(1,"br"),s(2)),i&2){let e=m(2);P(" ****\xA0",e==null||e.paymentMethod==null||e.paymentMethod.card==null?null:e.paymentMethod.card.last4),l(2),Y("",e==null||e.paymentMethod==null||e.paymentMethod.card==null?null:e.paymentMethod.card.expiryMonth,"/",e==null||e.paymentMethod==null||e.paymentMethod.card==null?null:e.paymentMethod.card.expiryYear," ")}}function zl(i,n){if(i&1&&s(0),i&2){let e=m(2);P(" ",e==null||e.paymentMethod==null?null:e.paymentMethod.name," ")}}function ql(i,n){i&1&&s(0," PayPal ")}function jl(i,n){if(i&1&&(a(0,"td",36),_(1,Vl,3,3),_(2,zl,1,1),_(3,ql,1,0),c()),i&2){let e=m(),t=m(2);l(),h((e==null||e.paymentMethod==null?null:e.paymentMethod.provider)===t.PaymentProviderEnum.STRIPE&&!(!(e==null||e.paymentMethod==null)&&e.paymentMethod.name)?1:-1),l(),h((e==null||e.paymentMethod==null?null:e.paymentMethod.provider)===t.PaymentProviderEnum.STRIPE&&(!(e==null||e.paymentMethod==null)&&e.paymentMethod.name)||(e==null||e.paymentMethod==null?null:e.paymentMethod.provider)===t.PaymentProviderEnum.MAXIO?2:-1),l(),h(e!=null&&e.isPaypal?3:-1)}}function Hl(i,n){if(i&1&&(a(0,"div",12)(1,"table",32)(2,"thead")(3,"tr")(4,"th",33),s(5,"Name"),c(),a(6,"th",34),s(7,"Started at"),c(),_(8,Sl,2,1,"th",35),_(9,kl,2,0,"th",36),c()(),a(10,"tbody")(11,"tr")(12,"td",33)(13,"span",37),s(14),c(),_(15,wl,2,9,"span",38),_(16,Nl,7,16,"span",39),_(17,Rl,1,5,"span",40),c(),a(18,"td",34),s(19),v(20,"formatDate"),c(),_(21,Ll,3,4,"td",35),_(22,jl,4,3,"td",36),c()()()()),i&2){let e=n,t=m(2);l(8),h(t.userFacadeService.showEndsAt?8:-1),l(),h(t.userFacadeService.showCards?9:-1),l(5),D(e==null?null:e.name),l(),h((e==null||e.paymentMethod==null?null:e.paymentMethod.provider)===t.PaymentProviderEnum.STRIPE?15:-1),l(),h(e!=null&&e.isPaypal||(e==null||e.paymentMethod==null?null:e.paymentMethod.provider)===t.PaymentProviderEnum.MAXIO||e!=null&&e.isMobile?16:-1),l(),h((e==null||e.paymentMethod==null?null:e.paymentMethod.provider)!==t.PaymentProviderEnum.STRIPE&&!(e!=null&&e.isPaypal)&&(e==null||e.paymentMethod==null?null:e.paymentMethod.provider)!==t.PaymentProviderEnum.MAXIO&&!(e!=null&&e.isMobile)?17:-1),l(2),D(S(20,9,e==null?null:e.createdAt)),l(2),h(t.userFacadeService.showEndsAt?21:-1),l(),h(t.userFacadeService.showCards?22:-1)}}
525function Gl(i,n){if(i&1&&(_(0,yl,6,6),_(1,vl,2,0,"p"),_(2,Ol,5,3,"app-inline-notification",20),_(3,Hl,23,11,"div",12)),i&2){let e,t,o,r=m();h((e=r.lastSubscriptionSignal())?0:-1,e),l(),h(!(r.userFacadeService.user==null||r.userFacadeService.user.managedSubscriptions==null)&&r.userFacadeService.user.managedSubscriptions.length?-1:1),l(),h((t=r.renewalOfferData())!=null&&t.isClaimable?2:-1),l(),h((o=r.lastSubscriptionSignal())?3:-1,o)}}function Yl(i,n){if(i&1){let e=O();a(0,"app-user-discount-offer",43),y("offerClaimed",function(){b(e);let o=m();return x(o.onOfferClaimed())}),c()}if(i&2){let e=m(),t=io(10);f("renewalOfferData",t.renewalOffer)("subscription",e.lastSubscriptionSignal())}}function $l(i,n){i&1&&(a(0,"p"),s(1,"Please get in touch with our support team regarding the upgrade options."),c())}function Wl(i,n){if(i&1){let e=O();a(0,"app-button",45),y("click",function(){b(e);let o=m(2);return x(o.previewUpgradeToFi())}),c(),a(1,"p",46),s(2,"You won't be charged yet."),c()}if(i&2){let e=m(2);f("buttonText",Qe(e.isSmallMobile()?"Preview Upgrade":"Preview Upgrade to Full-Immersion"))("state",e.buttonState)}}function Ql(i,n){if(i&1&&(a(0,"div",8)(1,"div",4)(2,"h3"),s(3,"Upgrade to Full-Immersion"),c(),a(4,"p"),s(5,"With a Full-Immersion membership plan, you will receive access to everything included in the Self-Study plan, plus:"),c(),a(6,"ul")(7,"li"),C(8,"app-svg-icon",44),s(9,"Exclusive Partner offers"),c(),a(10,"li"),C(11,"app-svg-icon",44),s(12,"Course-integrated Al-chatbot"),c(),a(13,"li"),C(14,"app-svg-icon",44),s(15,"1-on-1 guidance, financial model review"),c()(),_(16,$l,2,0,"p")(17,Wl,3,3),c()()),i&2){let e,t=m();l(16),h((e=t.lastSubscriptionSignal())!=null&&e.isMobile?16:17)}}function Kl(i,n){if(i&1){let e=O();a(0,"button",47),y("click",function(){let o;b(e);let r=m();return x(r.openModal(r.userFacadeService.PaymentMethodChangeContextEnum.ADD_NEW,r.lastSubscriptionSignal()===null||((o=r.lastSubscriptionSignal())==null?null:o.paymentMethodEditable)))}),a(1,"span",15)(2,"span",16),s(3,"Add Payment Method"),c(),a(4,"span",17),s(5,"Add Payment Method"),c()()()}}function Jl(i,n){i&1&&(a(0,"span",19),s(1," Please note, it may take up to 30 days to fully remove your payment method from our systems. "),c())}function Zl(i,n){if(i&1){let e=O();a(0,"app-inline-notification",48),y("closeNotification",function(){b(e);let o=m();return x(o.userFacadeService.showDelayedDeletion=!1)}),Ee(1,Jl,2,0,"ng-template",null,1,_e),c()}if(i&2){let e=m();f("closable",!0)("type",e.NotificationType.Warning)}}function Xl(i,n){if(i&1){let e=O();a(0,"p"),s(1,"You do not have a stored credit cards."),c(),a(2,"div",13)(3,"button",47),y("click",function(){let o;b(e);let r=m();return x(r.openModal(r.userFacadeService.PaymentMethodChangeContextEnum.ADD_NEW,r.lastSubscriptionSignal()===null||((o=r.lastSubscriptionSignal())==null?null:o.paymentMethodEditable)))}),a(4,"span",15)(5,"span",16),s(6,"Add Payment Method"),c(),a(7,"span",17),s(8,"Add Payment Method"),c()()()()}}function ed(i,n){i&1&&(a(0,"app-tooltip",51),s(1,"This card is missing the billing info. To be able to use it for new payments, update card details. "),c())}function td(i,n){i&1&&(a(0,"span",52),s(1,"Default"),c())}function nd(i,n){if(i&1){let e=O();a(0,"a",61),y("click",function(){b(e);let o=m().$implicit,r=m(2);return x(r.onMakeDefault(o))})("keyup.enter",function(){b(e);let o=m().$implicit,r=m(2);return x(r.onMakeDefault(o))}),s(1,"Make default"),c()}if(i&2){let e=m().$implicit;E("disabled",e.default),f("tabindex",Qe(e.default?-1:0))}}function id(i,n){if(i&1){let e=O();a(0,"a",61),y("click",function(){b(e);let o=m(2).$implicit,r=m(2);return x(r.onMakeDefault(o))})("keyup.enter",function(){b(e);let o=m(2).$implicit,r=m(2);return x(r.onMakeDefault(o))}),s(1,"Make default"),c()}if(i&2){let e=m(2).$implicit;E("disabled",e.default),f("tabindex",Qe(e.default?-1:0))}}function od(i,n){if(i&1&&_(0,id,2,4,"a",57),i&2){let e,t=m(3);h(((e=t.lastSubscriptionSignal())==null?null:e.paymentStatus)===t.PaymentStatusEnum.ON_HOLD&&!((e=t.lastSubscriptionSignal())!=null&&e.paymentMethodEditable)?-1:0)}}function rd(i,n){if(i&1){let e=O();a(0,"a",62),y("click",function(){b(e);let o=m().$implicit,r=m(2);return x(r.navigateToEditTaxResidence(o))})("keyup.enter",function(){b(e);let o=m().$implicit,r=m(2);return x(r.navigateToEditTaxResidence(o))}),s(1,"Edit"),c()}}function ad(i,n){if(i&1){let e=O();a(0,"a",63),y("click",function(){b(e);let o=m().$implicit,r=m(2);return x(r.deletePaymentMethod(o))})("keyup.enter",function(){b(e);let o=m().$implicit,r=m(2);return x(r.deletePaymentMethod(o))}),C(1,"app-svg-icon",64),s(2," Delete card"),c()}}function cd(i,n){i&1&&(a(0,"a",65),s(1,"This payment method cannot be deleted because it is the default for an active subscription."),c()),i&2&&E("disabled",!0)}function sd(i,n){if(i&1){let e=O();a(0,"tr")(1,"td",33),s(2),_(3,ed,2,0,"app-tooltip",51),c(),a(4,"td"),_(5,td,2,0,"span",52),c(),a(6,"td",50)(7,"div",53),y("keyup.enter",function(){let o=b(e).$index,r=m(2);return x(r.toggleMenu(o))}),a(8,"div",54)(9,"span"),s(10,"action menu"),c(),C(11,"i",55),c(),a(12,"div",56),_(13,nd,2,4,"a",57)(14,od,1,1),_(15,rd,2,0,"a",58),_(16,ad,3,0,"a",59),_(17,cd,2,2,"a",60),c()()()()}if(i&2){let e=n.$implicit,t=n.$index,o=m(2);l(),E("has-badge",e.default),l(),P(" ",e.name," "),l(),h(e!=null&&e.taxResidenceValid?-1:3),l(2),h(e.default?5:-1),l(2),E("expand",o.expandedIndex===t),l(6),h(!(e==null||e.taxResidence==null)&&e.taxResidence.countryCode&&o.lastSubscriptionSignal()===null?13:o.lastSubscriptionSignal()!==null?14:-1),l(2),h(e!=null&&e.taxResidenceValid?-1:15),l(),h(e.hasSubscriptions?-1:16),l(),h(e.hasSubscriptions?17:-1)}}function ld(i,n){if(i&1&&(a(0,"div",12)(1,"table",49)(2,"thead")(3,"tr")(4,"th",33),s(5,"Name"),c(),a(6,"th",35),s(7,"Is default"),c(),C(8,"th",50),c()(),a(9,"tbody"),ie(10,sd,18,11,"tr",null,Qs,!0),c()()()),i&2){let e=m();l(10),oe(e.userFacadeService.user.paymentMethods)}}function dd(i,n){if(i&1&&(a(0,"tr")(1,"td",33),s(2),c(),a(3,"td",67),s(4),v(5,"date"),c(),a(6,"td",68),s(7),c(),a(8,"td",69),s(9),c(),a(10,"td",70)(11,"a",71),s(12,"View"),c()()()),i&2){let e=n.$implicit;l(2),D(e.productName),l(2),D(S(5,6,e.date)),l(3),D(e.status),l(2),Y("",e.totalAmount.amount," ",e.totalAmount.currency),l(2),f("routerLink",dn(8,Ws,e.orderUuid,e.id))}}function md(i,n){if(i&1&&(a(0,"div",12)(1,"table",66)(2,"thead")(3,"tr")(4,"th",33),s(5,"Name"),c(),a(6,"th",67),s(7,"Date"),c(),a(8,"th",68),s(9,"Status"),c(),a(10,"th",69),s(11,"Value"),c(),a(12,"th",70),s(13,"Receipt"),c()()(),a(14,"tbody"),ie(15,dd,13,11,"tr",null,Oe),c()()()),i&2){let e=m();l(15),oe(e)}}function pd(i,n){i&1&&(a(0,"p"),s(1,"You do not have any receipts yet."),c())}function ud(i,n){i&1&&_(0,md,17,0,"div",12)(1,pd,2,0,"p"),i&2&&h(n.length?0:1)}function gd(i,n){i&1&&C(0,"app-loader")}var Va=(()=>{let n=class n extends X{constructor(){super(),this.notifierService=g(J),this.paymentService=g(de),this.cdr=g(N),this.dialog=g(vt),this.userService=g(z),this.userFacadeService=g(pe),this.currentUserStorage=g(V),this.environment=g(et),this.layoutService=g(nt),this.receiptService=g(Lo),this.router=g(se),this.route=g(Ze),this.destroyRef=g(Ct),this.isFixedPriceOffer=he(()=>this.renewalOfferData()?.renewalOffer?.offerType===Xe.FIXED_PRICE),this.currencyConversion=me(null),this.user={},this.PaymentStatusEnum=K,this.PaymentProviderEnum=lt,this.PaymentMethodChangeContextEnum=st,this.DictionaryEnum=Te,this.OrderTypeEnum=ko,this.NotificationType=Oo,this.isLoading=!1,this.isSmallMobile=T(!1),this.isMobile=T(!1),this.renewalOfferData=T(null),this.expandedIndex=null,this.ACTIVE_SUBSCRIPTION_STATUSES=[K.ACTIVE,K.COMPLETE],this.INACTIVE_SUBSCRIPTION_STATUSES=[K.INCOMPLETE,K.TRIAL,K.PAST_DUE],this.subscriptionNotificationType=So,this.receiptList$=this.receiptService.getReceiptList(),this.buttonState=te.STANDBY,this.lastSubscriptionSignal=this.userFacadeService.lastSubscriptionSignal,this.marketingSiteUrl=this.environment.marketingSiteUrl}get titleForHeaderCellForRenews(){return this.lastSubscriptionSignal()&&this.isSubscriptionExpired(this.lastSubscriptionSignal())?"Ended at":"Ends at"}
525ngOnInit(){this.userFacadeService.initBillingOrders(),this.initRenewalOffer(),this.layoutService.subscribeToLayoutChanges().pipe(R(this._destroy$$)).subscribe(t=>{this.isSmallMobile.set(t.includes(Ve.smallPhone)),this.isMobile.set(t.includes(Ve.phone))})}ngAfterViewInit(){this.route.fragment.pipe(R(this._destroy$$)).subscribe(t=>{this.scrollToFragment(t)})}openModal(t,o,r,d){this.dialog.open(Xo,{data:{context:t,isPaymentMethodEditable:o,orderUuid:r,changePaymentMethod:d},ariaLabel:"Payment Form Dialog"}).afterClosed().pipe(ke(()=>this.userService.syncProfile())).subscribe(()=>{this.cdr.markForCheck()})}openModalDeleteAccount(){this.dialog.open(Ba,{ariaLabel:"Delete Account Dialog"}).afterClosed().pipe(ke(()=>this.userService.syncProfile())).subscribe(()=>{this.cdr.markForCheck()})}makePaymentMethodDefault(t){t.default||confirm("Are you sure you want to make this payment method default?")&&this.paymentService.makeDefault(t.id,t.provider).pipe(ke(()=>this.userService.syncProfile())).subscribe(()=>{this.cdr.markForCheck(),this.notifierService.success("Successfully made payment method default.")})}onMakeDefault(t){t.default||confirm("Are you sure you want to make this payment method default?")&&this.paymentService.makeDefault(t.id,t.provider).pipe(ke(()=>this.userService.syncProfile())).subscribe(()=>{this.notifierService.success("Successfully made payment method default."),this.cdr.markForCheck()})}deletePaymentMethod(t){let o=0;if(t.lastChargedAt){let d=new Date(t.lastChargedAt);o=Math.round(Math.abs((d-new Date)/864e5))}confirm("Are you sure you want to delete this payment method?")&&this.paymentService.deletePaymentMethod(t.id,t.provider).pipe(ke(()=>this.userService.syncProfile())).subscribe(()=>{this.notifierService.success("Successfully deleted payment method."),t.lastChargedAt&&o<30?this.userFacadeService.showDelayedDeletion=!0:this.userFacadeService.showDelayedDeletion=!1,this.cdr.markForCheck()})}previewUpgradeToFi(){this.paymentService.getFiData("full-immersion-subscription").subscribe(t=>{this.router.navigate(["programs","enroll","full-immersion-subscription","payment","payment"],{queryParams:{pricingPlanId:t.data.pricingPlan.id,migrate:1}})})}navigateToEditTaxResidence(t){this.router.navigate([`user/payment-method/${t.id}/tax-residence/edit`])}resume(t){this.isLoading=!0,this.paymentService.reactivateSubscription(t.uuid).subscribe(()=>{this.initRenewalOffer(),this.userService.syncUser(),this.userFacadeService.initBillingOrders(),this.isLoading=!1,this.cdr.markForCheck(),this.notifierService.success("Your subscription was successfully reactivated.")})}reactivate(t){this.paymentService.getFiData(t.slug).subscribe(o=>{let r=this.currentUserStorage.getCurrentUser()?.orders.filter(d=>d.id===t.id)||[];this.router.navigate(["programs","enroll",t.slug,"payment","payment"],{queryParams:{pricingPlanId:o.data.pricingPlan.id,coupon:r[0].couponCode,orderUuid:r[0].uuid}})})}badgeText(t){return t?.paymentMethod?.provider!==lt.STRIPE?"":t?.paymentStatus===K.INCOMPLETE?"Active":t?.paymentStatus===K.CANCELLED?this.isSubscriptionExpired(t)?"Expired":"Expires":t?.paymentStatus!==K.PAST_DUE&&t?.paymentMethod?.hasSubscriptions?t?.expiresAt===null?"Active":"Expires":t?.paymentStatus!==K.PAST_DUE&&!t?.paymentMethod?.hasSubscriptions?"Expires":"Past Due"}resolveResume(t){let o=this.isSubscriptionExpired(t);return t.paymentStatus===K.CANCELLED&&this.hasActiveMaxioPaymentMethod()&&!o}resolveReactivate(t){let o=this.isSubscriptionExpired(t);return t.paymentStatus===K.CANCELLED&&o}isSubscriptionExpired(t){return t?.expiresAt!==null&&new Date(t?.expiresAt||"")<new Date}toggleMenu(t){this.expandedIndex=this.expandedIndex===t?null:t}trackBy(t){return`${t.id}${t.default}`}cancelSubscription(t){this.openUserCancelSubscriptionModal(t)}onOfferClaimed(){this.renewalOfferData.set(null)}openUserCancelSubscriptionModal(t){this.dialog.open(Xn,{data:{subscriptionUuid:t,cancelSubscriptionStep:!0},ariaLabel:"User Cancel Dialog"})}scrollToFragment(t){if(t){let o=document.getElementById(t);o&&o.scrollIntoView({behavior:"smooth",block:"start"})}}hasActiveMaxioPaymentMethod(){return(this.currentUserStorage.getCurrentUser()?.paymentMethods||[]).some(({active:o,provider:r})=>o&&r===lt.MAXIO)}initRenewalOffer(){this.paymentService.getRenewalOffer().pipe(Le(this.destroyRef)).subscribe(t=>this.renewalOfferData.set(t))}};n.\u0275fac=function(o){return new(o||n)}
525,n.\u0275cmp=M({type:n,selectors:[["app-user-billing-orders"]],inputs:{currencyConversion:[1,"currencyConversion"]},standalone:!1,features:[ln([],[pe]),ne],decls:41,vars:20,consts:[["icon",""],["message",""],[1,"sections"],[1,"section","section-subscription"],[1,"card_box","table_box"],[1,"subscription-notification"],[3,"types"],[3,"renewalOfferData","subscription"],["id","fi-upgrade",1,"section"],[1,"section"],["aria-label","Add Payment Method",1,"button","outlined","secondary"],[3,"closable","type"],[1,"contents"],[1,"buttons"],["aria-label","Delete Account",1,"button","outlined","danger",3,"click"],[1,"wrapping-content"],[1,"before"],[1,"after"],["icon","error"],[1,"notification_message"],[3,"closable","isAlert","type"],[1,"subscription-hint"],[1,"subscription-cancel-link"],["tabindex","0","role","button","aria-label","update your payment method",3,"click","keyup.enter"],["tabindex","0","role","button","aria-label","change payment method",3,"click","keyup.enter"],["tabindex","0","role","button","aria-label","Cancel subscription",3,"click","keyup.enter"],["tabindex","0","role","button","aria-label","Cancel renewal",3,"click","keyup.enter"],["faIcon","fa fa-question-circle"],["tabindex","0","role","button","aria-label","Resume Subscription",1,"button",3,"click","keyup.enter"],["tabindex","0","role","button","aria-label","Reactivate",1,"button",3,"click","keyup.enter"],["target","_blank",1,"button","outlined",3,"href"],["icon","info"],[1,"table"],[1,"name"],[1,"started"],[1,"renews"],[1,"card"],[1,"subscription-name"],[1,"badge",3,"past-due","expired","active","expires"],[1,"badge",3,"past-due","active","expired","on-hold","expires"],[1,"badge",3,"innerHTML","active","expires"],[1,"badge"],[1,"badge",3,"innerHTML"],[3,"offerClaimed","renewalOfferData","subscription"],["icon","rounded-checkbox"],[3,"click","state","buttonText"],[1,"small"],["aria-label","Add Payment Method",1,"button","outlined","secondary",3,"click"],[3,"closeNotification","closable","type"],[1,"table","table-subscr"],[1,"actions"],["faIcon","fas fa-exclamation-triangle"],[1,"badge","rounded"],["tabindex","0","role","link",1,"menu",3,"keyup.enter"],[1,"icon"],[1,"fas","fa-ellipsis-v"],[1,"options"],["role","button","aria-label","Make default",1,"option",3,"disabled","tabindex"],["tabindex","0","role","button","aria-label","Edit",1,"option"],["tabindex","0","role","button","aria-label","Delete card",1,"option","red"],[1,"option",3,"disabled"],["role","button","aria-label","Make default",1,"option",3,"click","keyup.enter","tabindex"],["tabindex","0","role","button","aria-label","Edit",1,"option",3,"click","keyup.enter"],["tabindex","0","role","button","aria-label","Delete card",1,"option","red",3,"click","keyup.enter"],["icon","alert",1,"icon_alert"],[1,"option"],[1,"table","table-receipts"],[1,"date"],[1,"order-receipts"],[1,"value"],[1,"receipt"],[3,"routerLink"]],template:function(o,r){if(o&1&&(a(0,"div",2)(1,"div",3),_(2,tl,1,1),a(3,"div",4)(4,"h3"),s(5,"Manage Subscriptions"),c(),a(6,"div",5),C(7,"app-subscription-notifier",6),c(),_(8,nl,1,0,"app-loader")(9,Gl,4,4),c()(),to(10),_(11,Yl,1,2,"app-user-discount-offer",7),_(12,Ql,18,1,"div",8),a(13,"div",9)(14,"div",4)(15,"h3"),s(16," Payment Methods "),_(17,Kl,6,0,"button",10),c(),_(18,Zl,3,2,"app-inline-notification",11),_(19,Xl,9,0),_(20,ld,12,0,"div",12),c()(),a(21,"div",9)(22,"div",4)(23,"h3"),s(24,"Receipts"),c(),_(25,ud,2,1),v(26,"async"),an(27,gd,1,0,"app-loader"),c()(),a(28,"div",9)(29,"div",4)(30,"h3"),s(31,"Delete Account"),c(),a(32,"p"),s(33,"Permanently delete your Corporate Finance Institute Account."),c(),a(34,"div",13)(35,"button",14),y("click",function(){return r.openModalDeleteAccount()}),a(36,"span",15)(37,"span",16),s(38,"Delete Account"),c(),a(39,"span",17),s(40,"Delete Account"),c()()()()()()()),o&2){let d,p;l(2),h((d=r.lastSubscriptionSignal())?2:-1,d),l(5),f("types",co(13,Ys,r.subscriptionNotificationType.FIRST_PAYMENT_NOT_COMPLETED,r.subscriptionNotificationType.FIRST_PAYMENT_NOT_COMPLETED_POPUP,r.subscriptionNotificationType.RENEW_FAILS_DAY_1,r.subscriptionNotificationType.RENEW_FAILS_DAY_15,r.subscriptionNotificationType.RENEW_FAILS_DAY_30,r.subscriptionNotificationType.RENEW_FAILS_DAY_30_POPUP)),l(),h(r.isLoading?8:9),l(2);
525let u=no(r.renewalOfferData());l(),h(u&&u.isShowOffer&&u.renewalOffer?11:-1),l(),h(!(r.userFacadeService==null||r.userFacadeService.user==null||r.userFacadeService.user.actions==null)&&r.userFacadeService.user.actions.showUpgradeButton?12:-1),l(5),h(!(r.userFacadeService.user==null||r.userFacadeService.user.paymentMethods==null)&&r.userFacadeService.user.paymentMethods.length?17:-1),l(),h(r.userFacadeService.showDelayedDeletion?18:-1),l(),h(!(r.userFacadeService.user==null||r.userFacadeService.user.paymentMethods==null)&&r.userFacadeService.user.paymentMethods.length?-1:19),l(),h(!(r.userFacadeService.user==null||r.userFacadeService.user.paymentMethods==null)&&r.userFacadeService.user.paymentMethods.length?20:-1),l(5),h((p=S(26,11,r.receiptList$))?25:27,p)}},dependencies:[le,Mn,ur,Z,Ut,Ae,dr,Ra,ce,pn,Ht,Cn,fn],styles:[`[_nghost-%COMP%] app-tooltip .fa-exclamation-triangle{color:#e32a27}[_nghost-%COMP%] .tooltip_icon{color:#e32a27}.sections[_ngcontent-%COMP%]{max-width:736px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]{margin-bottom:32px}.sections[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 35px}@media screen and (max-width:768px){.title_box[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{margin:4px 0 27px}}.table_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}@media screen and (max-width:480px){.table_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.table_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{flex-shrink:0;margin-top:16px}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{font-size:16px}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{margin-bottom:24px;padding:24px;border-bottom:none;border-radius:8px;box-shadow:0 8px 24px #959da533}}@media screen and (max-width:768px)and (max-width:480px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{padding:16px}}@media screen and (max-width:768px){.is_night [_nghost-%COMP%] .table_box .table tbody tr{background:#191c26!important;box-shadow:0 0 0 1px #454b54!important}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-child{margin-top:0}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(.actions){margin:0 0 24px;padding:0}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{display:none}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{width:100%;font-size:18px;font-weight:700;color:#000c3f}.is_night [_nghost-%COMP%] .table_box .table .name{color:#fff!important}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .started[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .renews[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{width:100%}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .started[_ngcontent-%COMP%]:before, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .renews[_ngcontent-%COMP%]:before, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:before{display:inline-block;position:absolute;left:24px}}@media screen and (max-width:768px)and (max-width:480px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .started[_ngcontent-%COMP%]:before, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .renews[_ngcontent-%COMP%]:before, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:before{left:16px}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .started[_ngcontent-%COMP%]{padding-left:64px!important}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .started[_ngcontent-%COMP%]:before{content:"Started:"}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .renews[_ngcontent-%COMP%]{padding-left:66px!important;font-weight:700}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .renews[_ngcontent-%COMP%]:before{content:"Ends at:"}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{align-items:flex-start}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(.actions){margin-bottom:0!important}.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{width:unset;margin:0 0 24px auto}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:absolute;top:28px;right:16px;margin:0}}@media screen and (max-width:768px)and (max-width:480px){.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{top:20px}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:inline-block}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{width:calc(100% - 32px);margin-bottom:0!important}.table_box[_ngcontent-%COMP%] .table.table-subscr[_ngcontent-%COMP%] .name.has-badge[_ngcontent-%COMP%]{margin-bottom:8px!important}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .date[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .order-receipts[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{position:relative}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]:before, .table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .order-receipts[_ngcontent-%COMP%]:before, .table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]:before{display:inline-block;position:absolute;top:0;left:0;font-weight:700}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{padding-left:46px!important}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]:before{content:"Date:"}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .order-receipts[_ngcontent-%COMP%]{padding-left:60px!important}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .order-receipts[_ngcontent-%COMP%]:before{content:"Status:"}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{padding-left:54px!important}.table_box[_ngcontent-%COMP%] .table.table-receipts[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]:before{content:"Value:"}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .date[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{width:50%}}@media screen and (max-width:768px)and (max-width:420px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .date[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .order-status[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{width:50%;text-align:right}}@media screen and (max-width:768px)and (max-width:420px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .order-status[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{width:100%;text-align:left}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:left}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#25a2af}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{margin-left:16px}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{margin-left:0}}@media screen and (max-width:768px){.section-subscription[_ngcontent-%COMP%] .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{margin-left:0}}@media screen and (max-width:768px)and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{text-align:left}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0;padding:0;width:100%;text-align:left}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:focus{outline:none}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:focus-visible{outline:4px solid #93acfd;outline-offset:4px;border-radius:4px}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .menu.expand[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{transform:translateY(0);visibility:visible;opacity:1}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;text-indent:-600px;width:0;height:0;overflow:hidden}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:none}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:inline-block;text-align:left}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:8px}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:32px}.table_box[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{box-shadow:none}}@media screen and (max-width:480px){.buttons[_ngcontent-%COMP%] .button{width:calc(100% - 16px)}}.section-subscription[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:32px}.section-subscription[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{padding:0 8px}.section-subscription[_ngcontent-%COMP%] .badge.active[_ngcontent-%COMP%]{background-color:#00818e;color:#fff}.is_night[_ngcontent-%COMP%] .section-subscription[_ngcontent-%COMP%] .badge.active[_ngcontent-%COMP%]{background-color:#25a2af}.section-subscription[_ngcontent-%COMP%] .badge.on-hold[_ngcontent-%COMP%], .section-subscription[_ngcontent-%COMP%] .badge.expired[_ngcontent-%COMP%], .section-subscription[_ngcontent-%COMP%] .badge.expires[_ngcontent-%COMP%]{border-color:#9f1239;background-color:#9f1239;color:#fff}.section-subscription[_ngcontent-%COMP%] .badge.completed[_ngcontent-%COMP%]{background-color:#e5e7eb;color:#374151}.section-subscription[_ngcontent-%COMP%] .badge.past-due[_ngcontent-%COMP%]{background-color:#e32a27;color:#fff}.section-subscription[_ngcontent-%COMP%] .subscription-name[_ng
525content-%COMP%]{margin-right:8px}@media screen and (max-width:768px){.section-subscription[_ngcontent-%COMP%] .subscription-name[_ngcontent-%COMP%]{margin-right:24px}}a.disabled[_ngcontent-%COMP%]{opacity:.65}a.disabled[_ngcontent-%COMP%]:hover, a.disabled[_ngcontent-%COMP%]:focus, a.disabled[_ngcontent-%COMP%]:active{text-decoration:none}a.past-due-status[_ngcontent-%COMP%]{color:#e32a27}.subscription-hint[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .subscription-cancel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline;color:currentColor}.subscription-hint[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .subscription-cancel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.subscription-hint[_ngcontent-%COMP%]{font-size:18px}.subscription-cancel-link[_ngcontent-%COMP%] app-tooltip[_ngcontent-%COMP%]{margin-left:8px}.content_icon[_ngcontent-%COMP%]{width:18px;height:19px;fill:#1e40af}.content_icon[_ngcontent-%COMP%]:hover{fill:#fff}#fi-upgrade[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:24px}#fi-upgrade[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;align-items:flex-start}#fi-upgrade[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{margin-bottom:24px}#fi-upgrade[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] app-svg-icon[_ngcontent-%COMP%]{flex-shrink:0;margin-right:8px;width:24px;height:24px;stroke:#255bac}.is_night [_nghost-%COMP%] #fi-upgrade ul li app-svg-icon{stroke:#93acfd!important}#fi-upgrade[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{display:block;margin-bottom:16px} 526/*# sourceMappingURL=user-billing-orders.component-HFCNNQKJ.css.map */`],changeDetection:0});let i=n;return i})();var _d=(i,n)=>["/courses/take",i,n];function hd(i,n){if(i&1&&C(0,"app-course-catalog-exam-notifications",12),i&2){let e=m();f("course",e.course)}}function fd(i,n){if(i&1&&(a(0,"a",2),s(1),c()),i&2){let e=m().$implicit,t=m(2);f("routerLink",dn(2,_d,t.course.url,e.learningItemId)),l(),D(e.title)}}function Cd(i,n){if(i&1&&(a(0,"span"),s(1),c()),i&2){let e=m().$implicit;l(),D(e.title)}}function bd(i,n){if(i&1&&s(0),i&2){let e=m().$implicit;Y(" ",e.statistics.totalCompleted," from ",e.statistics.total," lessons ")}}function xd(i,n){i&1&&(C(0,"app-svg-icon",18),s(1," Chapter Completed "))}function yd(i,n){i&1&&(C(0,"i",19),s(1,"Chapter Failed "))}function vd(i,n){if(i&1&&(a(0,"tr")(1,"td",14),s(2),c(),a(3,"td",15),_(4,fd,2,5,"a",2),_(5,Cd,2,1,"span"),c(),a(6,"td",16),_(7,bd,1,2),_(8,xd,2,0),_(9,yd,2,0),c()()),i&2){let e=n.$implicit,t=n.$index,o=m(2);E("course-completed",e.statistics.totalCompleted===e.statistics.total)("course-failed",o.course.examStatus===o.examStatus.FAILED),l(2),D(t+1),l(2),h(o.course.enrollmentStatus!==o.EnrollmentStatusEnum.EXPIRED?4:-1),l(),h(o.course.enrollmentStatus===o.EnrollmentStatusEnum.EXPIRED?5:-1),l(2),h(e.statistics.totalCompleted!==e.statistics.total&&o.course.examStatus!==o.examStatus.FAILED?7:-1),l(),h(e.statistics.totalCompleted===e.statistics.total?8:-1),l(),h(o.course.examStatus===o.examStatus.FAILED?9:-1)}}function Md(i,n){i&1&&(a(0,"table",13)(1,"thead")(2,"tr")(3,"th",14),s(4,"#"),c(),a(5,"th",15),s(6,"Module name"),c(),a(7,"th",16),s(8,"Progress"),c()()(),a(9,"tbody"),ie(10,vd,10,10,"tr",17,Oe),c()()),i&2&&(l(10),oe(n))}function Pd(i,n){i&1&&C(0,"app-loader")}var Ii="opened",za=(()=>{let n=class n{constructor(){this.renderer=g(Ye),this.cdr=g(N),this.userFacade=g(pe),this.course={},this.examStatus=ri,this.DictionaryEnum=Te,this.EnrollmentStatusEnum=Mo}expand(t){t.preventDefault();let o=t.target.closest(".card_box");(o?.className.split(" ")||[]).some(d=>d===Ii)?this.renderer.removeClass(o,Ii):this.renderer.addClass(o,Ii),this.course$=this.userFacade.getCourseData(this.course.id),this.cdr.markForCheck()}get examInfo(){return this.course.hasExam?this.course.examStatus===ri.PASSED?"| Final exam completed":"| 1 Final exam to be completed":""}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-course"]],inputs:{course:"course"},standalone:!1,decls:26,vars:21,consts:[[1,"card_box"],[1,"card_box-title"],[3,"routerLink"],[1,"card_box-title-complexity"],[1,"icon-level","dark",3,"icon"],[3,"progress","progressInfo"],[1,"expandable-item"],["href","#","role","button","aria-label","See/Hide Details",1,"expandable-text",3,"click"],[1,"see-details"],[1,"hide-details"],["icon","dd_expander",1,"expander_icon"],[1,"content-for-expand","table_box"],[3,"course"],[1,"table","short-view"],[1,"number"],[1,"name"],[1,"progress"],[3,"course-completed","course-failed"],["icon","course_complete"],[1,"fas","fa-exclamation-triangle"]],template:function(o,r){if(o&1&&(a(0,"div",0)(1,"div",1)(2,"h5")(3,"a",2),s(4),c()(),a(5,"div",3)(6,"div"),C(7,"app-svg-icon",4),v(8,"lowercase"),s(9),v(10,"translateEnum"),v(11,"async"),c()()(),C(12,"app-course-progress",5),a(13,"div",6)(14,"a",7),y("click",function(p){return r.expand(p)}),a(15,"span",8),s(16,"See"),c(),a(17,"span",9),s(18,"Hide"),c(),s(19,"\xA0Details "),C(20,"app-svg-icon",10),c(),a(21,"div",11),_(22,hd,1,1,"app-course-catalog-exam-notifications",12),_(23,Md,12,0,"table",13),v(24,"async"),an(25,Pd,1,0,"app-loader"),c()()()),o&2){let d;l(3),f("routerLink","/course/"+r.course.url),l(),P(" ",r.course.name," "),l(3),f("icon",oo("complexity-",S(8,12,r.course==null?null:r.course.level))),l(2),P("",S(11,17,H(10,14,(r.course==null?null:r.course.level)??"",r.DictionaryEnum.COURSE_LEVEL))," "),l(3),f("progressInfo",ro("",r.course==null||r.course.userStatistics==null?null:r.course.userStatistics.requiredCompletedLessons," / ",r.course==null||r.course.userStatistics==null?null:r.course.userStatistics.requiredLessons," Lessons ",r.examInfo))("progress",(r.course==null?null:r.course.progress)||0),l(10),h(r.course?22:-1),l(),h((d=(d=S(24,19,r.course$))==null?null:d.children)?23:25,d)}},dependencies:[le,mr,Mn,Z,En,ce,mo,Go],styles:[`[_nghost-%COMP%] .card_box[_ngcontent-%COMP%]{margin-bottom:32px}@media screen and (max-width:768px){[_nghost-%COMP%] .card_box[_ngcontent-%COMP%]{margin-bottom:24px;padding:24px}}@media screen and (max-width:768px){[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] app-course-progress .progress_info{flex-basis:100%}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] app-course-progress .progress-s
526hort-view{display:flex;flex-wrap:wrap;flex-direction:row-reverse;justify-content:space-between;align-items:center;margin-bottom:24px}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] app-course-progress .progress_bar{flex:1 1 100%;max-width:calc(100% - 48px);margin:0}[_nghost-%COMP%] .card_box[_ngcontent-%COMP%] app-course-progress .progress_label{margin:0;font-size:14px}}[_nghost-%COMP%]:last-of-type .card_box[_ngcontent-%COMP%]{margin-bottom:0}.card_box-title[_ngcontent-%COMP%]{display:flex;margin:0 -12px 16px}.card_box-title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 12px}.card_box-title-complexity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}@media screen and (max-width:480px){.card_box-title-complexity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:14px}}@media screen and (max-width:480px){.card_box-title[_ngcontent-%COMP%]{flex-direction:column}.card_box-title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:8px 12px 0}}.card_box-title[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000c3f}@media screen and (max-width:768px){.card_box-title[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:18px}}.is_night [_nghost-%COMP%] .card_box-title h5 a{color:#fff!important}.card_box.opened[_ngcontent-%COMP%] .expander_icon[_ngcontent-%COMP%]{transform:rotate(0)}.card_box.opened[_ngcontent-%COMP%] .hide-details[_ngcontent-%COMP%]{display:inline-block}.card_box.opened[_ngcontent-%COMP%] .see-details[_ngcontent-%COMP%]{display:none}.card_box.opened[_ngcontent-%COMP%] .content-for-expand[_ngcontent-%COMP%]{display:block}.content-for-expand[_ngcontent-%COMP%]{display:none;margin:32px -32px -32px;transition:all .2s ease-in-out}@media screen and (max-width:992px){.content-for-expand[_ngcontent-%COMP%]{margin:24px -24px -24px}}.content-for-expand[_ngcontent-%COMP%] app-inline-notification .notification_holder{margin-bottom:0;align-items:flex-start}@media screen and (max-width:768px){.content-for-expand[_ngcontent-%COMP%] app-inline-notification .notification_holder{margin:0 24px 24px}}.content-for-expand[_ngcontent-%COMP%] app-inline-notification .notification_message{font-weight:400}.expandable-text[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:flex-start;position:relative;min-width:115px;padding-right:24px;text-align:right;font-weight:700;text-decoration:none;color:#004993;cursor:pointer}.is_night [_nghost-%COMP%] .expandable-text{color:#6184d5}@media(hover:hover){.expandable-text[_ngcontent-%COMP%]:hover{text-decoration:underline}}@media screen and (max-width:768px){.expandable-text[_ngcontent-%COMP%]{min-width:unset}}.expandable-text[_ngcontent-%COMP%] .expander_icon[_ngcontent-%COMP%]{margin-left:12px;width:16px;height:16px;fill:currentColor;transform:rotate(180deg);transition:transform .2s ease-in-out}.expandable-item[_ngcontent-%COMP%] .hide-details[_ngcontent-%COMP%]{display:none}.expandable-item[_ngcontent-%COMP%] .see-details[_ngcontent-%COMP%]{display:inline-block}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{table-layout:fixed;border-top:1px solid #e5e7eb}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{padding:0}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{margin-bottom:16px}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:none}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(:first-child):before{content:"";display:inline-block;top:0;left:50%;transform:translate(-50%);width:calc(100% - 40px);height:1px;background-color:#e5e7eb;position:absolute}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-child{margin-top:0}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:transparent}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:none}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{text-align:center}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding-left:32px}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:100%}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:11px 12px;
526height:64px}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{margin:0;padding:0 12px;height:unset;font-size:16px;line-height:inherit}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(:first-of-type){margin-top:16px}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-all}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{width:76px}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{display:none}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .score[_ngcontent-%COMP%]{width:230px}@media screen and (max-width:1200px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .score[_ngcontent-%COMP%]{width:unset}}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .score[_ngcontent-%COMP%]:before{content:"Score";display:inline-block;padding-right:16px;color:#374151}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .progress_bar{border-radius:4px}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .progress_bar span{border-radius:4px}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .progress_label{margin-bottom:18px}.table_box[_ngcontent-%COMP%] .table.short-view[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{display:flex;align-items:center}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-failed[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-failed[_ngcontent-%COMP%] .score[_ngcontent-%COMP%]{color:#9f1239}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-failed[_ngcontent-%COMP%] .fa-exclamation-triangle[_ngcontent-%COMP%]{margin-right:6px;font-size:18px}@media screen and (max-width:768px){.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-failed[_ngcontent-%COMP%] .fa-exclamation-triangle[_ngcontent-%COMP%]{font-size:16px}}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-failed[_ngcontent-%COMP%] .fa-exclamation-triangle[_ngcontent-%COMP%]:before{color:#9f1239}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%], .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .score[_ngcontent-%COMP%]{color:#1c7d87}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] svg, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .score[_ngcontent-%COMP%] svg{width:20px;height:20px;fill:#1c7d87}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] app-svg-icon, .table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .score[_ngcontent-%COMP%] app-svg-icon{margin-right:10px}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .content-icon[_ngcontent-%COMP%]{float:left;margin-right:8px;width:24px;height:24px;border-radius:50%;background-color:#25a2af}.table_box[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .course-completed[_ngcontent-%COMP%] .content-icon[_ngcontent-%COMP%] svg{width:16px;height:16px;box-sizing:border-box;fill:#fff} 527/*# sourceMappingURL=user-course.component-CLNFJ734.css.map */`]});let i=n;return i})();var Sd=()=>[];function kd(i,n){if(i&1&&C(0,"app-user-course",9),i&2){let e=n.$implicit;f("course",e)}}function wd(i,n){if(i&1&&(a(0,"div",6)(1,"section",7)(2,"div",8)(3,"h3"),s(4,"Currently Learning: Courses"),c()()(),a(5,"div"),ie(6,kd,1,1,"app-user-course",9,Oe),c()()),i&2){let e=m(2);l(6),oe(e.currentlyLearningCourses)}}function Ed(i,n){i&1&&(a(0,"section",7)(1,"div",8)(2,"h3"),s(3,"Completed Learning"),c()()())}function Td(i,n){if(i&1&&C(0,"app-user-course",9),i&2){let e=n.$implicit;f("course",e)}}function Dd(i,n){if(i&1&&(a(0,"div",3),_(1,Ed,4,0,"section",7),a(2,"div"),ie(3,Td,1,1,"app-user-course",9,Oe),c()()),i&2){let e=m(2);l(),h(e.completedCourses!=null&&e.completedCourses.length?1:-1),l(2),oe(e.completedCourses)}}function Ud(i,n){if(i&1&&(_(0,wd,8,0,"div",6),_(1,Dd,5,1,"div",3)),i&2){let e=m();h(e.currentlyLearningCourses&&e.currentlyLearningCourses.length>0?0:-1),l(),h(e.completedCourses&&e.completedCourses.length>0?1:-1)}}var qa=(()=>{let n=class n{constructor(){this.userFacade=g(pe),this.user=g(V),this.userPageService=g(It),this.cdr=g(N),this.achievements$=this.userFacade.achievements$,this.student=null,this.initStudentListener(),this.initStudentRefreshListener()}initStudentListener(){this.userPageService.student$.subscribe(t=>{this.student=t,this.completedCourses=t?.myCourses.completed,this.currentlyLearningCourses=t?.myCourses.currentlyLearning,this.cdr.markForCheck()})}initStudentRefreshListener(){this.user.refreshStudentProfile$.subscribe(t=>{t&&(this.userPageService.refreshStudent(),this.cdr.markForCheck())})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-page"]],standalone:!1,decls:11,vars:6,consts:[[1,"container_box"],[1,"container"],[1,"sections"],[1,"section"],[3,"user"],[3,"achievements"],[1,"section","section-learning"],[1,"title_box"],[1,"title"],[3,"course"]],template:function(o,r){o&1&&(a(0,"article",0)(1,"div",1)(2,"div",2)(3,"div",3),C(4,"app-user-top",4),c(),a(5,"div",3),C(6,"app-user-insight"),c(),a(7,"div",3),C(8,"app-user-achievement",5),v(9,"async"),c(),_(10,Ud,2,2),c()()()),o&2&&(l(4),f("user",r.user.getCurrentUser()),l(4),f("achievements",S(9,3,r.achievements$)||L(5,Sd)),l(2),h(-1))},dependencies:[Tr,Dr,Ur,za,ce],styles:[`.title[_ngcontent-%COMP%]{align-items:baseline;justify-content:space-between;margin:0 -8px}.title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 8px}@media screen and (max-width:420px){.title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.title[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-top:8px}}.title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.title[_ngcontent-%COMP%] .fa-long-arrow-right[_ngcontent-%COMP%]{margin-left:8px}.title_box[_ngcontent-%COMP%]{margin-bottom:24px}.section[_ngcontent-%COMP%]{margin-bottom:48px}.section[_ngcontent-%COMP%]:first-of-type{margin-top:12px}.section[_ngcontent-%COMP%]:last-of-type{margin-bottom:0} 528/*# sourceMappingURL=user-page.component-JBCW45SD.css.map */`],changeDetection:0});let i=n;return i})();var Id=["tabList"],Ad=()=>["/user"];function Fd(i,n){i&1&&(s(0),v(1,"formatDate")),i&2&&P(" ",S(1,1,n.createdAt)," ")}var Bd=80,ja=(()=>{let n=class n extends X{constructor(){super(...arguments),this.currentUserStorage=g(V),this.router=g(se),this.layoutService=g(nt),this.isMobile=T(!1)}ngAfterViewInit(){this.layoutService.subscribeToLayoutChanges().pipe(R(this._destroy$$)).subscribe(t=>{this.isMobile.set(!!t.includes(Ve.phone))}),this.router.events.pipe(R(this._destroy$$)).subscribe(t=>
528{if(this.isMobile()&&t instanceof xo){let o=this.tabList.nativeElement.getBoundingClientRect().top-Bd;requestAnimationFrame(()=>window.scroll(0,o))}})}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=we(n)))(r||n)}})(),n.\u0275cmp=M({type:n,selectors:[["app-user-edit-page"]],viewQuery:function(o,r){if(o&1&&ge(Id,5),o&2){let d;re(d=ae())&&(r.tabList=d.first)}},standalone:!1,features:[ne],decls:18,vars:5,consts:[["tabList",""],[1,"container_box"],[1,"title_box"],[1,"container"],[1,"back","button","tertiary","link",3,"routerLink"],[1,"far","fa-arrow-left"],[1,"title"],[1,"title_info"]],template:function(o,r){if(o&1&&(a(0,"article",1)(1,"section",2)(2,"div",3)(3,"a",4),C(4,"i",5),s(5,"Back to Account"),c(),a(6,"div",6)(7,"h1"),s(8,"Account Settings"),c()(),a(9,"div",7)(10,"b"),s(11,"Created on:"),c(),_(12,Fd,2,3),v(13,"async"),c()()(),a(14,"section",3,0),C(16,"app-user-profile-top-menu")(17,"router-outlet"),c()()),o&2){let d;l(3),f("routerLink",L(4,Ad)),l(9),h((d=S(13,2,r.currentUserStorage.getCurrentUserSubject()))?12:-1,d)}},dependencies:[yo,le,wr,ce,Ht],encapsulation:2});let i=n;return i})();var Ha=[{percentNum:"60%",text:"of learners report positive impact on their careers \u2014 including salary increases, promotions, increased recruiter outreach or a career change \u2014 within 6 months of completing a certification program",class:"insight1"},{percentNum:"90%",text:"of learners are working in a field that is related to their program of choice",class:"insight2"},{percentNum:"70%",text:"of professionals report an increase in on-the-job productivity through CFI's all-access content",class:"insight3"}],Vt="MARKETING_SITE_DOMAIN",Ga=[{title:"The depth and breadth of each course are remarkable.",content:"Since taking the CFI courses, I have been able to interact with more confidence in FP&A projects and gain additional expertise.",fullName:"Yves Seybel",jobPosition:"Supply Chain Consultant",linkOnMore:`${Vt}/learner-stories/view/yves-seybel/`,image:"yves_seybel.jpg"},{title:"The professional environment stimulates us to learn comfortably!",content:"Before continuing with my program, I think the FP&A course helped me make better decisions and improved my forecasting skills.",fullName:"Robert Sawadogo",jobPosition:"Senior Financial Analyst",linkOnMore:`${Vt}/learner-stories/view/robert-sawadogo/`,image:"robert_sawadogo.jpg"},{title:"I expanded my knowledge to apply for more advanced positions.",content:"I would advise all professionals, who are beginners or advanced, to enroll in this program as it will boost your learning and help you learn new techniques to do the job easier.",fullName:"Payal Chadha",jobPosition:"Financial Analyst",linkOnMore:`${Vt}/learner-stories/view/payal-chadha/`,image:"payal_chadha.jpg"},{title:"At CFI you develop valuable skills as an analyst.",content:"CFI has increased my pace in efficient use of Excel; from inputting data to data processing, navigating my way through Excel, Pitch & PowerPoint Presentations.",fullName:"George E. A Anang",jobPosition:"Financial Analyst",linkOnMore:`${Vt}/learner-stories/view/george-e-a-anang/`,image:"george_anang.jpg"}];function Nd(i,n){i&1&&s(0," Keep Your Current Discount ")}function Rd(i,n){i&1&&s(0," Exclusive Renewal Offer ")}var Ya=(()=>{let n=class n{constructor(){this.dialogRef=g(Je),this.paymentService=g(de),this.currentUserStorage=g(V),this.data=g(yt),this.layoutService=g(nt),this.renderer=g(Ye),this.destroyRef=g(Ct),this.offerBadgeValuePipe=g(bn),this.userSubscriptions=this.currentUserStorage.getCurrentUser()?.subscriptions||[],this.subscription=T(this.userSubscriptions.find(t=>t.uuid===this.data.subscriptionUuid)),this.isLoading=T(!1),this.discountPercent=T(this.data.cancellationProposal.discount||0),this.fixedPrice=T(this.data.cancellationProposal.fixedPrice?.amount||0),this.fixedPriceCurrency=T(this.data.cancellationProposal.fixedPrice?.currency),this.isFixedPriceOffer=T(this.data.cancellationProposal.offerType===Xe.FIXED_PRICE),this.badgeValue=he(()=>this.offerBadgeValuePipe.transform(this.data.cancellationProposal.offerType,this.discountPercent(),this.fixedPrice(),this.fixedPriceCurrency())),this.renewalDate=T(this.subscription()?.renewsAt),this.isKeepCurrentDiscount=T(this.data.cancellationProposal.scenarioOptionCode===wo.KEEP_CURRENT_DISCOUNT),this.isSmallMobile=T(!1),this.cancelButtonText=he(()=>this.isSmallMobile()?"Cancel membership":"No thanks, cancel my membership"),this.renewButtonText=he(()=>
528{let t=this.badgeValue();return this.isKeepCurrentDiscount()?this.isFixedPriceOffer()?`Keep my ${t} Price`:`Keep my ${t}% Discount`:this.isFixedPriceOffer()?`Lock in ${t} Price`:`Lock in ${t}% off`}),this.isSimpleProgram=he(()=>{let t=this.data.subscriptionUuid;if(!t)return!1;let o=this.currentUserStorage.getCurrentUser();if(!o)return!1;let r=o.orders.find(d=>d.uuid===t);return r?.name!==Eo&&r?.name!==To})}ngOnInit(){this.layoutService.subscribeToLayoutChanges().pipe(Le(this.destroyRef)).subscribe(t=>{this.isSmallMobile.set(t.includes(Ve.smallPhone))})}ngAfterViewInit(){this.updateAttributes()}cancelSubscription(){this.isLoading()||(this.isLoading.set(!0),this.paymentService.cancelSubscription(this.data.subscriptionUuid).pipe(Me(()=>this.isLoading.set(!1))).subscribe(()=>{this.dialogRef.close()}))}renewSubscription(){if(this.isLoading())return;this.isLoading.set(!0);let t=this.isSimpleProgram()?this.data.subscriptionUuid:void 0;this.paymentService.renewSubscriptionDiscount(t).pipe(Me(()=>{this.isLoading.set(!1)})).subscribe(()=>{this.dialogRef.close(!0)})}updateAttributes(){let t=document.querySelectorAll(".cdk-visually-hidden");if(!t.length){setTimeout(()=>this.updateAttributes(),500);return}t.forEach(o=>{this.renderer.setAttribute(o,"role","presentation"),this.renderer.setAttribute(o,"tabindex","-1")})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-discount-renew-modal"]],decls:34,vars:14,consts:[[1,"discount-modal"],[1,"header"],[1,"header-content"],[3,"value","isFixedPriceOffer"],[1,"header-title"],[1,"header-subtitle"],[1,"content"],[1,"body"],[1,"title"],[1,"description"],[1,"actions"],["aria-label","renew subscription button",1,"button","small",3,"click","keyup.enter","disabled"],[1,"wrapping-content"],[1,"before"],[1,"after"],[1,"helper-text"],["tabindex","0","aria-label","cancel membership",1,"button","link",3,"click","keyup.enter"]],template:function(o,r){o&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),C(3,"app-discount-badge",3),a(4,"h2",4),s(5,"Applied to all future renewals"),c(),a(6,"p",5),_(7,Nd,1,0)(8,Rd,1,0),c()()(),a(9,"div",6)(10,"div",7)(11,"h3",8),s(12,"Keep Your Finance Career Moving Forward"),c(),a(13,"p",9),s(14,"Gain AI-powered finance skills, earn globally recognized certifications, and stand out to employers."),c()(),a(15,"div",10)(16,"button",11),y("click",function(){return r.renewSubscription()})("keyup.enter",function(){return r.renewSubscription()}),a(17,"span",12)(18,"span",13),s(19),c(),a(20,"span",14),s(21),c()()(),a(22,"div",15)(23,"p"),s(24),v(25,"date"),c(),a(26,"p"),s(27,"By continuing, auto-renewal remains on."),c()(),a(28,"button",16),y("click",function(){return r.cancelSubscription()})("keyup.enter",function(){return r.cancelSubscription()}),a(29,"span",12)(30,"span",13),s(31),c(),a(32,"span",14),s(33),c()()()()()()),o&2&&(l(3),f("value",r.badgeValue())("isFixedPriceOffer",r.isFixedPriceOffer()),l(4),h(r.isKeepCurrentDiscount()?7:8),l(9),E("is_loading",r.isLoading()),f("disabled",r.isLoading()),l(3),P(" ",r.renewButtonText()," "),l(2),P(" ",r.renewButtonText()," "),l(3),P("Discount applied at next renewal ",H(25,11,r.renewalDate(),"MMMM d, y")),l(7),D(r.cancelButtonText()),l(2),D(r.cancelButtonText()))},dependencies:[xe,ei,pn],styles:[`.discount-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;box-shadow:0 8px 24px #959da533;border-radius:4px;overflow-y:auto;max-height:90vh}.discount-modal[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{background-color:#000c3f;color:#fff;padding:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.discount-modal[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%}.discount-modal[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:32px;font-weight:600;line-height:1.4;margin:0 0 8px;font-family:Utopia Std,serif;color:#fff}.discount-modal[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:1.6;margin:0}.discount-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background-color:#fff;text-align:center;padding:32px;display:flex;flex-direction:column;gap:24px;align-items:center}.is_night [_nghost-%COMP%] .discount-modal .content{background-color:#191c26}.discount-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;align-items:center;width:100%}.discount-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;font-weight:600;line-height:1.4;color:#000c3f;margin:0;font-family:Utopia Std,serif}.is_night [_nghost-%COMP%] .discount-modal .content .title{color:#f3f3f3!important}.discount-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:1.6;color:#374151;margin:0;max-width:436px}.is_night [_nghost-%COMP%] .discount-modal .content .description{color:#f3f3f3!important}.discount-modal[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{color:#374151;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;width:100%}.is_night [_nghost-%COMP%] .discount-modal .actions{color:#f3f3f3}.discount-modal[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:not(.link){align-self:center;width:min(300px,100%)}.discount-modal[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .button.link[_ngcontent-%COMP%]:focus{outline:4px solid #93acfd;outline-offset:4px}.discount-modal[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .helper-text[_ngcontent-%COMP%]{font-size:12px;line-height:1.6}.discount-modal[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .helper-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.discount-modal[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .helper-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}@media screen and (max-width:480px){.discount-modal[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:24px}.discount-modal[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:24px}.discount-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:24px}.discount-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:20px}}
529/*# sourceMappingURL=user-discount-renew-modal.component-I4Q56WHY.css.map */`],changeDetection:0});let i=n;return i})();function Ld(i,n){if(i&1&&(a(0,"div",0),C(1,"app-svg-icon",1),a(2,"div",2),s(3),c(),a(4,"div",3),s(5),c(),a(6,"div",4)(7,"div",5),C(8,"img",6),c(),a(9,"div",7)(10,"div",8),s(11),c(),a(12,"div",9),s(13),c(),a(14,"a",10),s(15," Read the story "),C(16,"app-svg-icon",11),c()()()()),i&2){let e=m();l(),f("icon","blockquote"),l(2),P(" ",e.userStoryData.title," "),l(2),P(" ",e.userStoryData.content," "),l(3),f("alt",Qe(e.userStoryData.fullName))("src","/assets/user-profile-images/"+e.userStoryData.image,Pe),l(3),D(e.userStoryData.fullName),l(2),D(e.userStoryData.jobPosition),l(),Ne("href",e.userStoryData.linkOnMore,Pe)}}var $a=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-story-card"]],inputs:{userStoryData:"userStoryData"},decls:1,vars:1,consts:[[1,"user-story-card"],[1,"user-story-card__blockquote",3,"icon"],[1,"user-story-card__title"],[1,"user-story-card__text"],[1,"user-story-card__person-info-wrapper"],[1,"user-story-card__image"],[3,"src","alt"],[1,"user-story-card__person-info"],[1,"user-story-card__name"],[1,"user-story-card__job-position"],[1,"button","tertiary","link"],["icon","thin_arrow",1,"icon_arrow"]],template:function(o,r){o&1&&_(0,Ld,17,9,"div",0),o&2&&h(r.userStoryData?0:-1)},dependencies:[Z],styles:[`.user-story-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;background:#fff;box-shadow:0 8px 24px #959da533;border-radius:8px!important;padding:48px;box-sizing:border-box;text-align:initial;position:relative}@media screen and (max-width:768px){.user-story-card[_ngcontent-%COMP%]{padding:24px}}.is_night [_nghost-%COMP%] .user-story-card{background:#191c26;box-shadow:0 0 0 1px #454b54}.user-story-card__blockquote[_ngcontent-%COMP%]{position:absolute;width:30px;height:19px;top:34px;left:28px;fill:#e5e7eb}@media screen and (max-width:768px){.user-story-card__blockquote[_ngcontent-%COMP%]{width:25px;height:15px;top:10px;left:10px}}.user-story-card__title[_ngcontent-%COMP%]{margin-bottom:24px;font-weight:700;font-size:24px;line-height:1.333;color:#000c3f}@media screen and (max-width:768px){.user-story-card__title[_ngcontent-%COMP%]{margin-top:8px;font-size:20px}}.is_night [_nghost-%COMP%] .user-story-card__title{color:#fff}.user-story-card__text[_ngcontent-%COMP%]{margin-bottom:48px;font-weight:400;font-size:18px;line-height:1.6;color:#374151}@media screen and (max-width:768px){.user-story-card__text[_ngcontent-%COMP%]{margin-bottom:24px;font-size:16px}}.is_night [_nghost-%COMP%] .user-story-card__text{color:#fff}.user-story-card__person-info-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:flex-start;margin-top:auto}@media screen and (max-width:768px){.user-story-card__person-info-wrapper[_ngcontent-%COMP%]{margin-top:unset}}.user-story-card__person-info[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{white-space:nowrap}.user-story-card__image[_ngcontent-%COMP%]{margin-right:32px;min-width:120px;height:120px;position:relative;overflow:hidden;border-radius:50%}@media screen and (max-width:1200px){.user-story-card__image[_ngcontent-%COMP%]{margin-right:24px;min-width:100px;height:100px}}@media screen and (max-width:480px){.user-story-card__image[_ngcontent-%COMP%]{margin-right:16px;min-width:60px;height:60px}}.user-story-card__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:100%;width:auto;border-radius:50%}.user-story-card__name[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:1.6;color:#000c3f}@media screen and (max-width:768px){.user-story-card__name[_ngcontent-%COMP%]{font-size:16px}}.is_night [_nghost-%COMP%] .user-story-card__name{color:#fff}.user-story-card__job-position[_ngcontent-%COMP%]{margin-bottom:16px;font-weight:400;font-size:18px;line-height:1.6;color:#00818e}@media screen and (max-width:768px){.user-story-card__job-position[_ngcontent-%COMP%]{font-size:16px}}.is_night [_nghost-%COMP%] .user-story-card__job-position{color:#fff} 530/*# sourceMappingURL=user-story-card.component-24WZOGYR.css.map */`],changeDetection:0});let i=n;return i})();var Wa=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-insight-box"]],inputs:{topText:"topText",bottomText:"bottomText"},decls:5,vars:2,consts:[[1,"insight-box"],[1,"insight-box__top"],[1,"insight-box__bottom"]],template:function(o,r){o&1&&(ct(0,"div",0)(1,"h3",1),s(2),$e(),ct(3,"div",2),s(4),$e()()),o&2&&(l(2),D(r.topText),l(2),D(r.bottomText))},styles:[`.insight-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.insight-box__top[_ngcontent-%COMP%], .insight-box__bottom[_ngcontent-%COMP%]{text-align:center;margin:auto 0} 531/*# sourceMappingURL=insight-box.component-2GUVATLY.css.map */`],changeDetection:0});let i=n;return i})();var qd=()=>[],jd=i=>["/",i];function Hd(i,n){if(i&1&&C(0,"app-program-box-row",6),i&2){let e=n.$implicit,t=m(4);f("course",e)("title",e.name)("simple",!1)("isCourseWithSidepanel",!0)("bundle",t.asBundle(t.programs[0]))("hideIcons",!t.is
531FreeLearner)}}function Gd(i,n){if(i&1&&(a(0,"div",4)(1,"div",5),s(2,"Most Recent Course:"),c(),ie(3,Hd,1,6,"app-program-box-row",6,Oe),c()),i&2){let e=m(3);l(3),oe(e.getRecentCoursesByBundleId(e.programs[0].id))}}function Yd(i,n){if(i&1){let e=O();a(0,"div",1)(1,"app-program-enrolled-title",3),y("saveClicked",function(){b(e);let o=m(2);return x(o.handleSavedBundle(o.programs[0]))})("noteChanged",function(o){b(e);let r=m(2);return x(r.handleSavedBundleNote(r.programs[0],o))}),c(),_(2,Gd,5,0,"div",4),c()}if(i&2){let e=m(2);l(),f("program",e.programs[0])("onlyTitle",!0)("canBeSaved",!0)("showActionButtons",!1)("isModifiedTitle",!0),l(),h(e.getRecentCoursesByBundleId(e.programs[0].id).length&&e.programs[0].progress?2:-1)}}function $d(i,n){if(i&1){let e=O();a(0,"div",1)(1,"div",7)(2,"h4")(3,"app-saved-content",8),y("savedClicked",function(){let o=b(e).$implicit,r=m(3);return x(r.handleSavedBundle(o))})("noteChanges",function(o){let r=b(e).$implicit,d=m(3);return x(d.handleSavedBundleNote(r,o))}),c(),s(4),v(5,"uppercase"),v(6,"trademark"),c(),C(7,"img",9),c(),a(8,"div",10),s(9),c(),C(10,"app-notches-progress",11),a(11,"a",12),s(12),C(13,"app-svg-icon",13),c()()}if(i&2){let e=n.$implicit,t=m(3);l(3),f("savedNote",e.savedBundle==null?null:e.savedBundle.note)("checked",!!e.savedBundle),l(),Y(" ",e.name," (",S(5,17,e.shortName)+S(6,19,e.slug),") Certification "),l(3),f("src",(e==null||e.badgeImage==null||e.badgeImage.urls==null?null:e.badgeImage.urls.origin)||"/assets/images/certificates/small/ico_"+e.slug+".svg",Pe)("alt",e.name),l(2),P(" ",t.getFacts((e==null?null:e.facts)||L(21,qd))," "),l(),f("progress",e==null?null:e.progress)("totalCoreCourses",e.totalCoreCourses)("totalCompletedCoreCourses",e.totalCompletedCoreCourses)("minElectiveCourses",e.minElectiveCourses)("totalElectiveCourses",e.totalElectiveCourses)("totalCompletedElectiveCourses",e.totalCompletedElectiveCourses)("status",e==null?null:e.enrollmentStatus)("progressInfo",t.getProgressInfo(e)),l(),f("routerLink",Re(22,jd,e.url)),l(),P(" ",e.startButtonClicked?"Continue Learning":"Learn More"," ")}}function Wd(i,n){if(i&1&&(a(0,"app-course-catalog-slider",2),Ee(1,$d,14,24,"ng-template",null,0,_e),c()),i&2){let e=m(2);f("options",e.programs)("itemsInView",e.isMobile()?1:2)("sliderHasDots",e.programs.length>2||e.programs.length>1&&e.isMobile())("uniteDotsAndArrows",!0)}}function Qd(i,n){if(i&1&&(a(0,"h3"),s(1),c(),_(2,Yd,3,6,"div",1),_(3,Wd,3,4,"app-course-catalog-slider",2)),i&2){let e=m();l(),D(e.sectionTitle),l(),h(e.programs.length===1&&e.programs[0].startButtonClicked?2:-1),l(),h(e.programs.length>1?3:-1)}}var Kd="Our most popular career-advancing certifications:",Jd="Continue with your enrolled programs:",ti=(()=>{let n=class n extends X{constructor(){super(...arguments),this.learningSavedContentService=g(sr),this.currentUserStorage=g(V),this.cdr=g(N),this.layoutService=g(nt),this.isMobile=T(!1),this.recommendedProgramsListing=me(),this.recentCourses=me([]),this.refreshRecommendedProgramsData=mn()}ngOnInit(){this.layoutService.subscribeToLayoutChanges().pipe(R(this._destroy$$)).subscribe(t=>{this.isMobile.set(t.includes(Ve.phone)),this.cdr.detectChanges()})}get programs(){return this.recommendedProgramsListing()?.programs??[]}get sectionTitle(){return this.recommendedProgramsListing()?.areRecommendedPrograms?Kd:Jd}get isFreeLearner(){return this.currentUserStorage.isFreeStudent()}getFacts(t){return t.map(o=>o.trim()).join(", ")+"."}getRecentCoursesByBundleId(t){return this.recentCourses()?.find(o=>o.bundleId===t)?.courses||[]}asBundle(t){return t}getExamInfo(t){return t.hasExam?t.finalExamScore>0?"| Final Exam Completed":"| 1 Final Exam to be Completed":""}getProgressInfo(t){let o=t.totalCoreCourses>0?`${t.totalCompletedCoreCourses}/${t.totalCoreCourses} ${t.totalCompletedCoreCourses>=t.totalCoreCourses?jt("Core Course",t.totalCompletedCoreCourses||0):jt("Core Course",t.totalCoreCourses||0)} Completed`:"",r=t.minElectiveCourses&&t.totalElectiveCourses>0?`${o?" | ":""}${t.totalCompletedElectiveCourses}/${t.minElectiveCourses} ${t.totalCompletedElectiveCourses>=t.minElectiveCourses?jt("Elective Course",t.totalCompletedElectiveCourses||0):jt("Elective Course",t.minElectiveCourses||0)} Completed`:"";return`${o}${r} ${this.getExamInfo(t)}`.trim()}handleSavedBundle(t){t&&(t.savedBundle?this.deleteSavedBundle(t):this.saveBundle(t))}handleSavedBundleNote(t,o){this.saveBundle(t,o)}saveBundle(t,o){this.learningSavedContentService.addSavedBundle(t.id.toString(),o).pipe(ue(1)).subscribe(()=>this.refreshRecommendedProgramsData.emit())}deleteSavedBundle(t){t.savedBundle&&this.learningSavedContentService.deleteSavedContent(t.savedBundle.uuid).pipe(ue(1)).subscribe(()=>this.refreshRecommendedProgramsData.emit())}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=we(n)))(r||n)}})(),n.\u0275cmp=M({type:n,selectors:[["app-user-recommended-programs"]],inputs:{recommendedProgramsListing:[1,"recommendedProgramsListing"],recentCourses:[1,"recentCourses"]},outputs:{refreshRecommendedProgramsData:"refreshRecommendedProgramsData"},features:[ne],decls:1,vars:1,consts:[["optionTemplate",""],[1,"card_box"],[3,"options","itemsInView","sliderHasDots","uniteDotsAndArrows"],[3,"saveClicked","noteChanged","program","onlyTitle","canBeSaved","showActionButtons","isModifiedTitle"],[1,"recently-viewed-box"],[1,"recently-viewed-title"],[3,"course","title","simple","isCourseWithSidepanel","bundle","hideIcons"],[1,"card_box_title"],[3,"savedClicked","noteChanges","savedNote","checked"],["width","48","height","48",3,"src","alt"],[1,"card_box_text"],[3,"progress","totalCoreCourses","totalCompletedCoreCourses","minElectiveCourses","totalElectiveCourses","totalCompletedElectiveCourses","status","progressInfo"],[1,"button","tert
531iary","small","link",3,"routerLink"],["icon","thin_arrow",1,"icon_arrow"]],template:function(o,r){o&1&&_(0,Qd,4,3),o&2&&h(r.programs.length?0:-1)},dependencies:[le,Tn,lr,In,fr,kn,cr,Dn,Un,Z,xe,po,Ho],styles:[`.card_box[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:left}.card_box_title[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.card_box_title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:flex-start}.card_box_title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] app-saved-content[_ngcontent-%COMP%]{margin-left:-6px}.card_box_title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:16px}.card_box_text[_ngcontent-%COMP%]{margin-bottom:16px}.card_box[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{align-self:flex-start;margin-top:auto}.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%]{border-top:1px solid #e5e7eb;margin:32px -32px -24px;padding:0 32px}@media screen and (max-width:768px){.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%]{border-top:none;margin:24px -24px -24px;padding:0 24px}}.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%] app-program-box-row:first-of-type{border:none}.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%] app-program-box-row.recently-viewed{position:relative}.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%] app-program-box-row.recently-viewed:after{content:"";display:inline-block;position:absolute;top:0;left:-32px;width:calc(100% + 64px);height:100%;background-color:#dceffd;z-index:1}@media screen and (max-width:1200px){.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%] app-program-box-row.recently-viewed:after{left:0;width:100%;border-radius:8px}}.is_night [_nghost-%COMP%] .card_box .recently-viewed-box app-program-box-row.recently-viewed:after{background-color:#132e57}@media print and (orientation:portrait){.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%] app-program-box-row.recently-viewed:after{left:0;width:100%;border-radius:8px}}.card_box[_ngcontent-%COMP%] .recently-viewed-box[_ngcontent-%COMP%] app-program-box-row.recently-viewed .box-row-wrapper{position:relative;z-index:2}.card_box[_ngcontent-%COMP%] .recently-viewed-title[_ngcontent-%COMP%]{margin:16px 0 8px;font-weight:700;font-size:14px} app-program-enrolled-title .card_title{text-align:left} app-course-catalog-slider .slider-line{align-items:stretch} app-course-catalog-slider .slider-slide{display:flex;height:auto}@media screen and (max-width:768px){ app-course-catalog-slider .slider-dots li button{width:16px!important} app-course-catalog-slider .slider-dots li button:before{width:16px!important}}@media screen and (max-width:768px){ app-course-catalog-slider .buttons-with-arrows-wrapper{display:flex!important}} 532/*# sourceMappingURL=user-recommended-programs.component-YFVAT255.css.map */`],changeDetection:0});let i=n;return i})();var Xd=()=>[];function em(i,n){if(i&1&&C(0,"app-user-story-card",19),i&2){let e=n.$implicit;f("userStoryData",e)}}var Qa=(()=>{let n=class n{constructor(){this.userFacadeService=g(pe),this.activatedRoute=g(Ze),this.paymentService=g(de),this.bundleService=g(Io),this.userService=g(z),this.dialog=g(vt),this.currentUserStorage=g(V),this.breakpointObserver=g(fo),this.cdr=g(N),this.router=g(se),this.environment=g(et),this.destroyRef=g(Ct),this.DictionaryEnum=Te,this.subscriptionUuid="0",this.user={},this.recommendedProgramsListing=T(void 0),this.isMobile=T(!1),this.isTablet=T(!1),this.isDesktop=T(!1),this.loading=T(!1),this.insightData=Ha,this.userStoriesData=Ga,this.marketingSiteUrl=this.environment.marketingSiteUrl,this.loadRecommendedProgramsListing()}loadRecommendedProgramsListing(){this.bundleService.getRecommendedProgramsListing().pipe(ue(1)).subscribe(t=>this.recommendedProgramsListing.set(t))}ngOnInit(){this.activatedRoute.queryParams.pipe(Le(this.destroyRef)).subscribe(o=>this.subscriptionUuid=o.id||"0"),this.breakpointObserver.observe(["(max-width: 1450px)","(max-width: 768px)"]).pipe(Le(this.destroyRef)).subscribe(o=>{this.isDesktop.set(o.breakpoints["(max-width: 1450px)"]&&!o.breakpoints["(max-width: 1200px)"]),this.isTablet.set(o.breakpoints["(max-width: 1200px)"]&&!o.breakpoints["(max-width: 768px)"]),this.isMobile.set(o.breakpoints["(max-width: 768px)"]),this.cdr.markForCheck()}),this.currentUserStorage.getCurrentUserSubject().pipe(Le(this.destroyRef)).subscribe(o=>this.user=o||{}),zi([this.activatedRoute.queryParams,this.currentUserStorage.getCurrentUserSubject()]).pipe(ue(1)).subscribe(([o,r])=>{this.subscriptionUuid=o.id||"0",this.user=r||{},this.activeSubscription=this.user.subscriptions.find(d=>d.uuid===this.subscriptionUuid)});let t=this.marketingSiteUrl;t&&(this.userStoriesData=this.userStoriesData.map(o=>Ni(Ge({},o),{linkOnMore:o.linkOnMore.replaceAll(Vt,t)})))}cancelSubscription(t){this.loading.set(!0),this.userService.getCancellationScenario().pipe(Le(this.destroyRef)).subscribe(o=>{o.scenarioOptionCode?this.openUserDiscountRenewModal(t,o):this.paymentService.cancelSubscription(t).subscribe(()=>{this.openUserCancelSubscriptionModal(t)})})}openUserDiscountRenewModal(t,o){let r=this.dialog.open(Ya,{data:{subscriptionUuid:t,cancellationProposal:o},disableClose:!0,ariaLabel:"User Discount Renew Dialog"});this.loading.set(!1),r.afterClosed().pipe(ue(1)).subscribe(d=>{d?this.goToAccountBilling():this.openUserCancelSubscriptionModal(t)})}openUserCancelSubscriptionModal(t){this.dialog.open(Xn,{data:{subscriptionUuid:t,cancelSubscriptionStep:!1}
532,ariaLabel:"User Cancel Dialog"}),this.loading.set(!1)}goToAccountBilling(){this.router.navigate(["/user/edit/my-billing-and-orders"])}goToDashboard(){this.router.navigate(["/"])}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-cancel-subscription"]],standalone:!1,decls:38,vars:20,consts:[["optionTemplate",""],[1,"container_box"],[1,"title_box"],[1,"container"],[1,"title"],[1,"container","insight-section"],[1,"insight-container"],[3,"topText","bottomText"],[1,"insight-container--break"],[3,"refreshRecommendedProgramsData","recommendedProgramsListing","recentCourses"],[1,"carousel-wrapper"],[3,"options","itemsInView"],[1,"card_box"],[1,"buttons"],["aria-label","Keep My Subscription",1,"button","small",3,"click"],[1,"wrapping-content"],[1,"before"],[1,"after"],["aria-label","Cancel Renewal",1,"button","small","secondary","outlined","danger",3,"click","keyup.enter","disabled"],[3,"userStoryData"]],template:function(o,r){if(o&1&&(a(0,"article",1)(1,"section",2)(2,"div",3)(3,"div",4)(4,"h1"),s(5,"Are you sure you want to cancel your renewal?"),c()()()(),a(6,"section",5)(7,"div",6),C(8,"app-insight-box",7)(9,"div",8)(10,"app-insight-box",7)(11,"app-insight-box",7),c()(),a(12,"section",3)(13,"app-user-recommended-programs",9),y("refreshRecommendedProgramsData",function(){return r.loadRecommendedProgramsListing()}),c()(),a(14,"section",3)(15,"div",10)(16,"app-course-catalog-infinity-slider",11),Ee(17,em,1,1,"ng-template",null,0,_e),c()()(),a(19,"section",3)(20,"div",12)(21,"h2"),s(22,"Cancel Renewal"),c(),a(23,"p"),s(24,"If you cancel your renewal, you will lose access to CFI's full library of on-demand courses and resources."),c(),a(25,"div",13)(26,"button",14),y("click",function(){return r.goToDashboard()}),a(27,"span",15)(28,"span",16),s(29,"Keep My Subscription"),c(),a(30,"span",17),s(31,"Keep My Subscription"),c()()(),a(32,"button",18),y("click",function(){return r.cancelSubscription(r.subscriptionUuid)})("keyup.enter",function(){return r.cancelSubscription(r.subscriptionUuid)}),a(33,"span",15)(34,"span",16),s(35,"Cancel Renewal"),c(),a(36,"span",17),s(37,"Cancel Renewal"),c()()()()()()()),o&2){let d;l(8),We(r.insightData[0]==null?null:r.insightData[0].class),f("topText",r.insightData[0]==null?null:r.insightData[0].percentNum)("bottomText",r.insightData[0]==null?null:r.insightData[0].text),l(2),We(r.insightData[1]==null?null:r.insightData[1].class),f("topText",r.insightData[1]==null?null:r.insightData[1].percentNum)("bottomText",r.insightData[1]==null?null:r.insightData[1].text),l(),We(r.insightData[2]==null?null:r.insightData[2].class),f("topText",r.insightData[2]==null?null:r.insightData[2].percentNum)("bottomText",r.insightData[2]==null?null:r.insightData[2].text),l(2),f("recommendedProgramsListing",r.recommendedProgramsListing())("recentCourses",((d=r.recommendedProgramsListing())==null?null:d.recentCourses)??L(19,Xd)),l(3),f("options",r.userStoriesData)("itemsInView",r.isMobile()?1:r.isTablet()||r.isDesktop()?2:3),l(16),E("is_loading",r.loading()),f("disabled",r.loading())}},dependencies:[_r,$a,Wa,ti],styles:[`.title_box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.blue_box[_ngcontent-%COMP%]{padding:48px;background-color:#e7f2ff}@media screen and (max-width:768px){.blue_box[_ngcontent-%COMP%]{padding:24px}}.is_night [_nghost-%COMP%] .blue_box{background-color:#121418}.blue_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:32px}@media screen and (max-width:768px){.blue_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:24px}}.blue_box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:32px}@media screen and (max-width:768px){.blue_box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:24px}}.blue_box[_ngcontent-%COMP%] .list-check[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:32px}@media screen and (max-width:768px){.blue_box[_ngcontent-%COMP%] .list-check[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:16px}}.blue_box[_ngcontent-%COMP%] .list-check[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{color:#1e40af}.is_night[_ngcontent-%COMP%] .blue_box[_ngcontent-%COMP%] .list-check[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{color:#f3f3f3}.blue_box[_ngcontent-%COMP%] .button.link[_ngcontent-%COMP%]{font-size:18px}@media screen and (max-width:768px){.blue_box[_ngcontent-%COMP%] .button.link[_ngcontent-%COMP%]{font-size:16px}}.insight-section[_ngcontent-%COMP%], .insight-container[_ngcontent-%COMP%]{display:flex;align-items:center}.insight-section[_ngcontent-%COMP%]{flex-direction:column}.insight-container[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:space-around}.insight-container--break[_ngcontent-%COMP%]{flex-basis:100%;height:0}.insight-container[_ngcontent-%COMP%] app-insight-box[_ngcontent-%COMP%]{margin:24px 0}.insight-container[_ngcontent-%COMP%] .insight1[_ngcontent-%COMP%], .insight-container[_ngcontent-%COMP%] .insight2[_ngcontent-%COMP%], .insight-container[_ngcontent-%COMP%] .insight3[_ngcontent-%COMP%]{text-align:center;flex-grow:1}.insight-container[_ngcontent-%COMP%] .insight1[_ngcontent-%COMP%]{max-width:570px}.insight-container[_ngcontent-%COMP%] .insight2[_ngcontent-%COMP%]{max-width:245px}.insight-container[_ngcontent-%COMP%] .insight3[_ngcontent-%COMP%]{max-width:262px}@media screen and (max-width:420px){.buttons[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{width:calc(100% - 16px)}} 533/*# sourceMappingURL=user-cancel-subscription.component-VILXF2JE.css.map */`],changeDetection:0});let i=n;return i})();var Ka=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=bt({type:n}),n.\u0275inj=ft({imports:[xe]});let i=n;return i})();var Ja=(()=>{let n=class n{constructor(){this.currentUserStorage=g(V),this.router=g(se)}canActivate(t){return this.currentUserStorage.getCurrentUserSubject().pipe(ve(o=>{let r=t?.queryParams?.id||"0";return(!r||!o?.subscriptions?.some(d=>d.uuid===r))&&this.router.navigate(["error","404"]),!0}))}};n.\u0275fac=function(o){return new(o||n)},n.\u0275prov=ht({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();var tm=()=>[];function nm(i,n){i&1&&(a(0,"div",6)(1,"label",18),s(2,"State or Province"),c(),C(3,"input",19),c())}
533function im(i,n){if(i&1){let e=O();a(0,"div",6)(1,"label",20),s(2,"State or Province "),a(3,"span",8),s(4,"*"),c()(),a(5,"div",21)(6,"ng-select",22),y("change",function(o){b(e);let r=m();return x(r.onStateChange(o))}),c()()()}if(i&2){let e=m();l(6),f("items",e.states)}}function om(i,n){i&1&&(a(0,"span",8),s(1,"*"),c())}var Ai=(()=>{let n=class n extends X{constructor(){super(...arguments),this.facade=g(Zo),this.paymentService=g(de),this.userService=g(z),this.currentUserStorage=g(V),this.router=g(se),this.activatedRoute=g(Ze),this.cdr=g(N),this.states=[],this.isFormProcessingPending=!1,this.taxResidenceFormGroup=new Ot({country:new q(null),zip:new q(null),city:new q(null),region:new q(null),state:new q(null)}),this.countryControl=this.taxResidenceFormGroup.controls.country,this.zipControl=this.taxResidenceFormGroup.controls.zip,this.stateControl=this.taxResidenceFormGroup.controls.state,this.regionControl=this.taxResidenceFormGroup.controls.region}ngOnInit(){this.initializePaymentMethod(),this.initializeForm(),this.loadStates(this.paymentMethod?.taxResidence?.countryCode),this.initFormControlsListeners()}loadStates(t){if(!t||t!=="US"&&t!=="CA"&&t!=="IN"){this.states=[];return}this.userService.getStateOrProvinceDropdownItems(t).subscribe(o=>{this.states=o})}initializePaymentMethod(){let t=+this.activatedRoute.snapshot.params.paymentMethodId,o=this.currentUserStorage.getCurrentUser(),r=t;if(!o||!r){this.navigateToAccountSettings();return}if(this.paymentMethod=o.paymentMethods.find(d=>d.id===r),!this.paymentMethod||this.paymentMethod.taxResidenceValid){this.navigateToAccountSettings();return}}initFormControlsListeners(){this.countryControl.valueChanges.pipe(R(this._destroy$$)).subscribe(t=>{this.stateControl.setValue(null),this.regionControl.setValue(null),this.modifyZip(),this.loadStates(t)}),this.stateControl.valueChanges.pipe(R(this._destroy$$)).subscribe(()=>{this.modifyZip()}),this.zipControl.valueChanges.pipe(R(this._destroy$$)).subscribe(()=>{this.modifyZip()})}onStateChange(t){this.taxResidenceFormGroup.patchValue({state:t.value,region:t.label})}submit(){this.paymentMethod&&(this.isFormProcessingPending=!0,this.paymentService.updateTaxResidence(this.paymentMethod.id,this.taxResidenceFormGroup).pipe(Me(()=>{this.isFormProcessingPending=!1,this.cdr.markForCheck()})).subscribe(()=>{this.userService.syncUser(),this.navigateToAccountSettings()}))}modifyZip(){let t=this.zipControl.value,o=this.countryControl.value;!t||!o||this.zipControl.setValue(this.facade.formatZip(t,o))}initializeForm(){if(!this.paymentMethod)return;let t=this.paymentMethod.taxResidence;this.taxResidenceFormGroup.patchValue({country:t.countryCode,zip:t.zipCode,city:t.city,region:t.region,state:t.stateCode})}navigateToAccountSettings(){this.router.navigate(["/user/edit/my-billing-and-orders"])}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=we(n)))(r||n)}})(),n.\u0275cmp=M({type:n,selectors:[["app-tax-residence-edit-page"]],features:[ne],decls:35,vars:13,consts:[[1,"container_box"],[1,"title_box"],[1,"container"],[1,"title"],[1,"card_box"],[1,"form_box",3,"formGroup"],[1,"form-field"],["for","country"],["aria-hidden","true",1,"required"],["appFocusVisible","","appSelectAttributesUpdate","","appFixNgSelectAutocomplete","","id","country","bindValue","value","formControlName","country","groupBy","region","placeholder","Country",1,"country-select",3,"items"],["for","city"],["id","city","placeholder","City","type","text","formControlName","city"],["for","zip"],["id","zip","placeholder","ZIP or Postal Code","maxlength","10","type","text","formControlName","zip","aria-label","ZIP or Postal Code","autocomplete","on"],["aria-label","Update",1,"button",3,"click","disabled"],[1,"wrapping-content"],[1,"before"],[1,"after"],["for","region"],["appFocusVisible","","type","text","id","region","formControlName","region","placeholder","State or Province","aria-label","State or Province","autocomplete","on","maxlength","255"],["for","state"],[1,"field"],["appFocusVisible","","appSelectAttributesUpdate","","appFixNgSelectAutocomplete","","id","state","formControlName","regi
533on","placeholder","State or Province","aria-label","State or Province","aria-required","true",3,"change","items"]],template:function(o,r){o&1&&(a(0,"article",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"h1"),s(5),c()()()(),a(6,"section",2)(7,"div",4)(8,"form",5)(9,"div",6)(10,"label",7),s(11,"Country "),a(12,"span",8),s(13,"*"),c()(),C(14,"ng-select",9),v(15,"async"),c(),_(16,nm,4,0,"div",6),_(17,im,7,1,"div",6),a(18,"div",6)(19,"label",10),s(20,"City "),a(21,"span",8),s(22,"*"),c()(),C(23,"input",11),c(),a(24,"div",6)(25,"label",12),s(26,"ZIP or Postal Code "),_(27,om,2,0,"span",8),c(),C(28,"input",13),c()(),a(29,"button",14),y("click",function(){return r.submit()}),a(30,"span",15)(31,"span",16),s(32,"Update"),c(),a(33,"span",17),s(34,"Update"),c()()()()()()),o&2&&(l(5),P('Update your tax residence "',r.paymentMethod==null?null:r.paymentMethod.name,'"'),l(2),E("is_loading",r.isFormProcessingPending),l(),f("formGroup",r.taxResidenceFormGroup),l(6),f("items",S(15,10,r.facade.countriesListing$)||L(12,tm)),l(2),h(r.countryControl.value!=="CA"&&r.countryControl.value!=="US"&&r.countryControl.value!=="IN"?16:-1),l(),h(r.countryControl.value==="CA"||r.countryControl.value==="US"||r.countryControl.value==="IN"?17:-1),l(10),h((r.countryControl==null?null:r.countryControl.value)==="CA"||(r.countryControl==null?null:r.countryControl.value)==="US"||(r.countryControl==null?null:r.countryControl.value)==="IN"?27:-1),l(),Ne("aria-required",(r.countryControl==null?null:r.countryControl.value)==="CA"||(r.countryControl==null?null:r.countryControl.value)==="US"||(r.countryControl==null?null:r.countryControl.value)==="IN"?"true":"false"),l(),f("disabled",r.taxResidenceFormGroup.invalid))},dependencies:[xe,De,vn,Sn,On,hn,be,tt,fe,Ce,Tt,Et,wt,Pn,Ie,Ue,yn,ce],styles:[`.card_box[_ngcontent-%COMP%]{min-width:600px;padding:32px}.card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:24px 0 48px}.card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .control-has-error{position:relative}.card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .control-has-error:after{content:"";display:inline-block;width:25px;height:24px;position:absolute;top:12px;right:16px;background-image:url(/assets/images/ico_alert_triangle.svg);z-index:20}.card_box[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .error{display:block;text-align:left;color:#e32a27;margin-top:8px;font-size:14px;font-weight:400;line-height:20px;word-break:break-word}.card_box[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] + .form-field[_ngcontent-%COMP%]{padding-top:24px}.card_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:16px}@media screen and (max-width:576px){.card_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px;padding:0 24px}}@media screen and (max-width:480px){.card_box[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{width:100%}}.card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%], .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid{padding-right:48px;background:#fff0f0;border-color:#e32a27;color:#6e1616}.is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%], .is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid{background:#6e1616;color:#fff0f0}.card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]:-ms-input-placeholder, .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid:-ms-input-placeholder{color:#6e1616}.is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]:-ms-input-placeholder, .is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid:-ms-input-placeholder{color:#fff0f0}.card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]::-moz-placeholder, .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid::-moz-placeholder{color:#6e1616}.is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]::-moz-placeholder, .is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid::-moz-placeholder{color:#fff0f0}.card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]::-webkit-input-placeholder, .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid::-webkit-input-placeholder{color:#6e1616}.is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input.ng-invalid[_ngcontent-%COMP%]::-webkit-input-placeholder, .is_night[_ngcontent-%COMP%] .card_box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus.ng-invalid::-webkit-input-placeholder{color:#fff0f0}@media screen and (max-width:768px){.card_box[_ngcontent-%COMP%]{min-width:unset}}@media screen and (max-width:480px){.card_box[_ngcontent-%COMP%]{padding:24px}} 534/*# sourceMappingURL=tax-residence-edit-page.component-5V7QW4MR.css.map */`],changeDetection:0});let i=n;return i})();var rm=[{path:"",data:{permissionObjects:[un.AUTHENTICATED]},children:[{path:"",data:{permissionObjects:[un.AUTHENTICATED],title:"Profile"},component:qa,resolve:{titleResolver:ze}},{path:"payment-method/:paymentMethodId/tax-residence/edit",component:Ai,data:{title:"Edit tax residence"},resolve:{titleResolver:ze}},{path:"edit/my-billing-and-orders/subscription/edit",component:Ai,data:{title:"Edit tax residence"},resolve:{titleResolver:ze}},{path:"edit",data:{permissionObjects:[un.AUTHENTICATED]},component:ja,children:[{path:"my-profile",component:Sr,canDeactivate:[tr],data:{title:"My account"},resolve:{titleResolver:ze}},{path:"my-password",component:Er,data:{title:"My password"},resolve:{titleResolver:ze}},{path:"manage-2fa",component:Ia,data:{title:"Manage 2fa"},resolve:{titleResolver:ze}},{path:"my-billing-and-orders",component:Va,data:{title:"Billing and Orders"},resolve:{titleResolver:ze}}]},{path:"cancel-subscription",pathMatch:"full",component:Qa,canActivate:[Ja],data:{title:"Cancel Subscription"},resolve:{titleResolver:ze}}]}],Df=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=bt({type:n}),n.\u0275inj=ft({imports:[vo.forChild(rm),_n,hn,Sn,Zn,Ka,er,$o,xe,xr,kn,Pn,pr,Wo,Mt,gr,Fn,Tn,hr,Jo,Ut,An,En,Un,Dn,wn,Nn,Bn,In,ti]});let i=n;return i})();export{pe as UserFacadeService,Df as UserModule,It as UserPageService}; 535//# sourceMappingURL=src-3T4URUO6.js.map
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.