From 0b995356c7f9bc2990a5dc2ce733826b0c4ac1ac Mon Sep 17 00:00:00 2001 From: build-pipeline <build-token> Date: Thu, 7 Mar 2024 09:51:36 +0000 Subject: [PATCH] publish: Revert "fix(deps): update dependency cozy-keys-lib & cozy-ui" generated from commit 3b0003aa86d504d2c4d6d10258aa883b4c1f9143 --- 83ef4de322a6ddf7034d4b1366d1c9fe.png | Bin 15336 -> 0 bytes 8751e4271e335d10b8e2d7ca83837d1b.png | Bin 301 -> 0 bytes bfca87187b6aff074f409395499acc1e.png | Bin 298 -> 0 bytes index.html | 2 +- ...deac.js => ecolyo.258bfb9d44fb4f887c90.js} | 2932 +- public/index.html | 2 +- ...a14e.js => ecolyo.a5828d47e107029845d0.js} | 32351 +++++++++------- 7 files changed, 18452 insertions(+), 16835 deletions(-) delete mode 100644 83ef4de322a6ddf7034d4b1366d1c9fe.png delete mode 100644 8751e4271e335d10b8e2d7ca83837d1b.png delete mode 100644 bfca87187b6aff074f409395499acc1e.png rename public/{ecolyo.b6af0ac9fcd71a5edeac.js => ecolyo.258bfb9d44fb4f887c90.js} (95%) rename vendors/{ecolyo.19a03d2ebcf9f20ea14e.js => ecolyo.a5828d47e107029845d0.js} (94%) diff --git a/83ef4de322a6ddf7034d4b1366d1c9fe.png b/83ef4de322a6ddf7034d4b1366d1c9fe.png deleted file mode 100644 index f6fb371da4bdb1fa365c824d2d0f30879075b22f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15336 zcmeAS@N?(olHy`uVBq!ia0y~yV5tUS4rT@h2KD}kI}8jAhXZ^<T>t<7&%nT-S@)@^ zs7NvO(CouMPu>3$JmagNY1-d^{~de3=rn#xTJY`L&;J*m{8@VPmqGLA%%$IMy!gw= z&gV7hi&@*}UDtkFcYc<O*%&qF>&Nf^TDSf9_2+-t+V79v{cYI%y<p|Hm!JN<{qm1P z%BXMm4=#C|XCMBpJpD_x?D5^#f7hM+CE?jC6|zXcFo8`(ee=cNEc~*Q_x(J4`*+vQ zAJrSatK?tf(+=TL_tL0-v;XGrc}IT=TNQ9CyNEhe8yg$TC+=3tIx|5?L7joY>Vc<= zV@SoVHwPOT7#J8D7W`c)zLE*VBo8N)y^`3@tI)CV1<S7K@9Wo?MBh%F*uZn|b*`ZD zTXwja`@X-fFTKzG?^pc&n(xw^YtFiEaj%Yw-1kiB)?(YWI`PGVZ!gXZo3?&u$F~fB z?bFv|T&lM$pZYXgZ;|b-%cnk>ieHp_o0<A^R(D4Kw=J87oc4K5tHtUU+xuw$dwwwe z`JPF;;$QWL|NT|+>yq5tm6`qFpUl_&+UY0%_Ts!*-zrqsMSbFXcRtrwd*9A)SM~~p z*OtjueBAPAcDDar?ZT_+&l|=4=_mC+Z8=}q>$WC^j!FOjzZ7`Z)UMNG-e%nYYHQ1^ z!0>}tAIyF(*Eeb1uOjw>9a1%)?;H-i6dM1IfiJu{e_pkP*REHmWe+^e`f#?G-`z93 zb|<q%4DY_mcMmmQuF@}OXkUHM{JgD<YV6mid=Cmte>~gSzIe&%eRmjT*0J5U`Cc%k z<mz<mhQkA8$*0}ne?QM|T))e{rI2C&-s0EOYyKBac{1<L<m!K_-zBCznRjyG!o%Mh zrtismBG)|Wj<Kal$ql&=lfrxNBnM2YR%>tLyUiT;Y1PDP9<QSFPcB?YtUll!XIj+n z==pA@jFeRlf5pkwZtn~=PTEd(c5Z*ms9$;Yge{xu&h(;;7aMFJsIHgVd3=G&cOO1p z*=_85o`fooT1sB<J_xyMd*Et9a=nh~fA#NA=B*FtICRqX9{=Bcx1Pt9+Rm&l@}KfY zW2gG}npP(fzjq(&UVOi5_kGptlXpH(pKIm9$iT2rqUwLNv}xx@<@}opr<U33ST3}^ zb=gHzs^{Ai+miUV??aC-`If=&?U&L2%_OjkZLw`7|K0H4)mIHy+TJ=mN%+=cTi+>* z4rch@bN+tyUtFnAR{ysRPg=fZ_zN%1Ft|1O`-R%A`@>}?-&#EEjP~Ccd|Zuz!H|df z<3I2JER5puCl<_BC|qd2+DYDdzL?(a<Z8a;)yvYVC35=TTK24+HS2BS2HS1V4Yp-v zZEHXH?Z&*rH&(5@DaSVK6;`~N;+Q29D8kIT6I7X22v1;cj-J7Ia($NmJ@>m>cbco? z46eQU9R6q?UjhHS%7YQB&&PLGTOF|7@tieztzEt9yO#{#AIuZ)+4}3x)E?-ZZ0 z&0l)M_WqKcvFcaz6IA;_O68~Lu|JTzliag4YLBDjD2EndFfab$yng$+H4o<b>)ox> zUh{-;|I6n89CtpSTzWfy>5t6#7f~lau>beEdf#Q1iS|$VJI&P|<x9&0S>7GAU9$Vq zZVjgI59BVzzKj)VtS;bxx$cWz*8$rd?Iqz=;;s+m?l|w#-rKEI!2eG1?$mp(f;-s1 zPk86`eh~*%jrqSR{J4csi-8Dh?f>9>uk;AvH``Zs-BzePGJEGL*Xk|DORjy1xw^>q zR<c!g)w-;Ua&Hain%ahM&FKF&<J_!ytE0BKSNo*<o)6W%wb*vq=4H=UiM_ojcRBKM zacK9qjQ*EvUXo^v&ga|wa(}vBsUNIY+tB<igFoh?+}lRhE$-D1y1r%b>nyOn#T>rH zy*h#M?M1mAi)?Q(b7%B_J0SY@qFjVS^%nMZARg1L#kK{m)mzxbF37!Y)V{UYc0&V& zMzu%&`z*Vo`j&9)?Y&$7hn&2&?_l`*b(6oTtWo{(p>M<1TKm4L=Joet)!%wXcz<{( zo0$E(PUb6H{NCMuw<d3x_TaGfp=;m%TD;=jS5-cDi+ZB&!S?c&wQqkHUXiZ(`pzoT z|4>vD|9g(;+ut9rF#qxDZt10YEn8XS?+I?(_WpQa{)el(UoWxc%;vP)qnwj_zkl() z2dm4kdsYiw`*hq-_OXFLi-E|~f6M!(aINZim-=D-#J!*Tc)RltB+Wh^!oI#LT>ZB4 z5vEZ-mBZuzqb&Y^-%Ssme|mhmZFIqprH5voUeEb&@rUeHtonPWrPq6Id+xpM`PcS; z``16c89(Xm&q;49|1SLhKD+YU^pxs-Db;cHFXYQkHLx)-G${U!uCL~HV{MD>4)c6( zx%ar7)poJ9lkOE)_1l)@=|-vUef~wR`o*27EnZdUU)p}Vuybq1)GzZcSHD?UoPAO2 zrS0<XH=LheTNHY!+VB0w_H%1pS1<WK=Uy`Z+#zgW`kN^mIT;KYnC{lU(%<KKK&gzY zT$tn4-hidcgcpV0d9uvQclW)+w)VdIR*JU{T`2UARqZ-p%eF|DNA~-b&_x_~k`+dU zk;0_r&5YZAhXO=g%B8Y*imqMoaFLh*i|&F7Moxjh|JP4C-aO68*C&1cxnGQFMzg0r zJK(FdazS-cf(dWC-**x?4MqKL7G!Q>{_vmwdh~lk#`x|fjqd_K+%Dn2v+%j8R6+i( z_IC@bb^6%u%zn49`h{HgV#e>ws$a<MI{ql*z}}Z~sqa3%Uta$DXG&1STC>?2UB{xO zcF*}EKkvDzwspz2mc-rn%kOS}n6gj8XMT1^JKrDqCDkwFBEElFb^4(W&#bt=mjVyI z`1_<-CYP&wx74YH%>UV6%I#u5Z@c!@<Lm(Ya*@v;uXb=XM?HgS)%gBndEW9T5r<c7 zjJ&SG8qqxKMHk3zj3xc?rP`^-?Or_$_3mTI4iJvL*ie1hHsjsL>E>Q>rT?6ER$iOB zxIyZQOSs8{dnNo+s=H1*e0_b+aEiA7J{h(wm<ES;FVE^!J@kCEsaCrkp}eO$@AkF& zPZBJlo(Q!H?_Tb^`D51{mk$b_4!l{5v_av;e#mxT_Q&6!>`o>6e`7XX(YX#BPz>Ki z))##`_j&T?nfkxs=K6noxAViCJ3&<wZQ%x}XMc~`U0MC&=F-cPA{MZjUKHisVSaaV zWA%@V$w5(GG666@pS)swbWZ&jm6~4&z24tTX7k+)+CL#4F7|x(-p#jtr8y40*d)}; zV<>T?-$_$5)YU~#s`bmV_y3bZ6@AN@dGEz)|F)b{{NHo)%$dTH&2ul>HgoUYTk2Dq zAE$gZV0zh9wVJ#;lh50h$K?NgT$Wk0MC#S0b(dPs_f{9}T>dBX;KQ_B8-$qA&h&%s zw(DQ4?dcA2j=dE+>%-1Mf4T2#^#5J^W%zkx;e@Oe-n+eo?abeud^GRskwb!)8!H`G zFVuUh<@@8#4)ylxV|N}{d72v6UqmQ;Fz+Dizl^<df5m@hm|j^LyOeXj^!GjctLx6_ z{%QYrPUZqs>Gz$tJ}s?15_f<0q<aMizp`C*_&7gf`Qi_|%<eQ-Pr7vf$Bdu8&!X=r zZ@w>=wDsY<3neGdel`9Qw!=MjzwME%!?uktAKf}6siyi)@Mb>$##;sc3BPu?Ztmf_ zvv?y!$A&LwoOpNba8HJ)cYLWE|7PWJzV9Aywzo&*?od~WE$Uvac3JdY;0=fY9>2O< zXWbFm;hq4|!T2&>EbH=7Tc+P{6~m<8t(+hCA-IcSmEpUS`yn<=E;u^%+*P6PDfht! zocG-ED62v5-N}7$>8lJ^#lA~`Jal=!E{oA2Tej~H=3V)+YLmbzzV8p@?o6KbFH3QT zC#bpl&eNM;$EBdXx`6+kr<eGi9__BmP7sIF^YiDgZ52mscd&n7vZOLBQRT7_NU!kx zdyyR}9Uvv0{-5Vu$*5v|chGi+y4l{X0%v)^DrVPh5;)5NX3mWJ<h_pNm-L<H>H`0_ zCgwM0FYX3uT{-vJPTRAEtsr)%mwu(Ws}w}dU6c5CnG+O2MlR2r#s1yo1jqN9fbTJ{ z<p19FdOSC#GvxH2#|nGcw2J?+-%-9gd26eS-BWq?ho%BEKilqbU!~43CRBOGp6^h$ zg3<Hpg8mTyJYAKdx%DzF*Bw&MeSaXga^8m@Jt@mvzZD9^F;BF--&{SVD(IW;l1*pr z_zq<+FnrEl&>!Sq5m3y0Cmm$&g&Cijcet-qcji86lZq@*vpL|&;b(o^?+)7P$zQg$ z*|dSN>gI9B3SN_Ee;D2czVbZpWX0WFz2*5IhIfLmP9Ab%=HYoaao*?jg8l&iV`5Sd z4nB~3X<5(qo#X2h^Xl)57MlpP7XCTYc_Cz7Xuv_e4Lk06>{;`GHF?qd{~^Z~rY3L6 z2~Rk8{p0Vw2j^M-Y}Z@*)R^0Uk!lYAmwDnh<Q5qJTvftUoLIf!`<?^e80K<*2!Av8 zqRQ<x>+5Ff?^1rTT)V9GZR5SqOt+a!)MhfhQkm`e+f{4->~G<(^)edW4t;ZYU)lJU z(Q0z%BF}ZVZC6gQlSpxHH5S{(UUi;3hyTLNguC}HpA7Tf8Tv1g`McXjx!cTppR;ab zf8jI1&RL~-<&`OU#%u21KYv5+g{}SuTZ{Cj;_Srdi}cHjZaV$?a5=qt!uLH#zCD<8 z(#Mczz24JvpG40kzmwl+d!jlnsk-1C%j1`}hrb5>^W+MiFM7Lq&vVsn?9Y8}aV30o z`WI<;;K#Mv1K$+hS9ZQVXerz<KSZV0@>J1chNv9=PxGeVkeg#1xpL#fQoZ9@%rO;f zZ^}Kf)!%4qk^U((S9SeUma1>>f6m+tv*}5cZ|u_|soTf1vJb+HoV+|M<Bx~mv!X@I zjJB~?p7+k-KQ}Yy%DD_R^(pyRF15UMy!Tn?c5|`X%vmq}Qq{Y*|LwUU_r&)9dj|ij zqVrZv?T+z#8|!|y=Few`|GQIH9r$+T<Nvj%%T0~^pMJ69xq3=_+jF+t$$S;7))n~Y zt_ikm-xgW3Z-cG*4Y}e2!KJP8QSw*r8Wem?tj^nD`>bL4D=zt~PSZ~9w0X6nw>{^) z99Zi)<1Byk>7OfCe%)Z3<9`ICYQ4#xCF=FpUqo-cIZryL-}1pqtMf~2`}Lph(Ytb} zdRuz`TSIo6(C{CN7M9*BO4~c}+JSEyYz3L;t<ugYh=2MfuHSUec9`*b&lg_1+_8Q~ z&isyVJ#RHP+J0+T{%X&Mw>#~p3OuXQ-q!xMQ{qF&T=9Lj(VUCQ<DIL|eVcMauKGZ5 zsr7r)HQbyjs~6TLS9|63+df!nrC(Alr>{Dt^<LB4#A+oro6zU2dFQP;(|$(qCs*H? z*TLw2wX*T{<RwAw#`By0&xBid;BBV2!%q+XB$%Sa+mk(gduzT*+}?cr+YRP<t3Dsv z_Pmj0s#+Dt?Ze+(cq&%qJzv|lc|z2zs`Ah3+m;`JC~DfaT)%OtvTXz0`keDFSy?Z< zi*L-c-F95=L&)56@9J4q`Ti@-uVv-%-xf9mxjLcx-SZ;xv(=A{;np#2dmhEJ=UTzN z4YsNfjp7?@jW<rnP=$xcI@`_}8JWm@T|>jmUQkna%}tNeZSr2{EFKFLv3eg+owVbL z)tBtDZS8L@!;1eKl}9veWXV21Ribji!aarVn_|?;r#uUr{I+wyZM5N}zO7uh4}aTW zdvW`6V^QsyVF}eY<hH5*`=(N)-utJWA1qh#_UFlaclDO?vL?#hw>5T{%-}nRg{@iN zLd<=C%9^^1zxQugwdHZs(k$7tmgnvMYZsJ$Q}^_^<dyGxSp2JRyjyjK|D5LE8<$VM z7bTYHzoq@#1-XjqWtZYhZwS9#XuE~|-n`B|>qY#{F3a6=u3ofReY)Ik&gw<BTiU-Z zxNSV`zsA<<p%*|>_daI-6tvsBXr0x|jhnk?uhKhwI)nf1LfZ}BuBhKV=%S<%eg2kJ zj(c?m|J%kb>2+7us;uHm&y}0E7-ZCgo5Az$>8c*ulxfYsA1t!qrt!N)78ib1pWdxy z;|kJsaMSWxUQcAVr*brYyC8RqImQ2`oHx_jbJDk*t26i~*e>@x@%ct#G}ti?ZzNso zx1{b~19k$(w==taE@e#vdtuV{<y~)X+vH~!Ie|>|ygl!k)1(};<sfIM<eX2^?c62@ zQMmQF*(rU){cGRM0ogZsne9=BN$*xIu-$!8?$+c6+p_^e`8O`io14M^w)6hHpN%T_ z3w^7%Ew<gFUR5pdLeO$`=J~KK?ca{%@w3?~t)BJm21wzZc{VeDZ;#8Kdsz+?yoI+f zH`Khk`M|k)-eTLm`5%`5%Mko?u>GO()RXZKH^rI--d=3|u|DU&tIf<?3~zS|t*8^* zl0JDh@6owFxfS2$a7QrT+I;eC+ateaW){`QR@xdpzPd^I*5@e@6&c@5PTsTIwf|(t zH=Ac^&V}m1(z9%h8Q&~eV9USrX26}3SJ=|duXQkkbK6q=Wj{*qunXF@z*Z^GOr+ds zYvRqxSArkjzntn>eFS2WMs**{HpaJt=F(l(GjC0Jqsh3w@Ned%%W^P*onjBHZas$B zH^J8OMdvf$n;qXOAQq<ht6$*F?4J(yg2lHh1?ItTLN3awgAFTq^Hc8uZ)X2wu&lv1 zlMCt9^Q11y$%ADR-ZbtzvGrxww;wk^Zf{HS-zoHCTJf#NNno#a*)A}jm{;yw9h0N+ zE+xx(Bl|1Kv%jM*%ZY<^JG?o0QGY{z)CD<yD8H~^+0TvDw;m^gwRhM$<Ujcpo(<!- z+4}MAbP?Nf{2(}Zd8(rdFWJ5=+^}%R<dwXK<xZ#{`JePYE?Ss<kwKrm+y&K6Ptz3# zy|Z|NHg53P`X=b+`~N$?J=#=ydzR@<8C$=3|6e;v&iyG_G_xker&?-*(_Puf*B0h) zG7t2&w(n7VTUg(^%X-tbLcbfv4#}@B%Y6@Dv0FJ?_IZnK?~au}17?5Qu^*yE{Y_;{ zQ1|YiB~urNJWMm+Tip;Od+YH(uD|Db);zd>_d$4AS>xJ;ldiuz*<V#XC1c8o{-(L? zQx82@R%V(dn*PK6OIzk5+v%H^KX+WJ{`2mpL(|^PWS?3C%0m63)pm|cR~)it7q@-; zcJXd-QK0=TB|vlShf4>y?dm9oswxXOIo<weXrGr;#ujk4iP-3#UVE15=j9Ejrkyf0 zk&670lXGTTSZ4<RTg%mbt?F7zD+}&i4&VPt9-Oh(+_>E6cK%b;{!=$+7@9<ZGwhlh z!p;jVCS0Fpv3csRk2iWiIWGC=JoYQ`Z%zlUY~TE8S<#gO?$#=>qm;irS+RGzxpvK- z1Cmc;f38kw{pAhL=x%RjE_nB@`qQ!}7Z2~hr83<@^eNcJo*Tl8-UU_0o4X~x-nS>e zC;p<`tze0_JAdUE72PRLYF}3ptKeT%6>faXx%!_VM0}t6bm3C>&HQVnzCLvktULPI zcFS^wTg88GhMb+pnx!{oGVkTUe{8D)XT^N_^?w4`y+`JmzRFW@{du!!>)RuR>AR!S zj@I9rz3|zd2B<VgX}P-ku79Vi)%I)$Y0>_+XTiI)*p*8g4?V4ihOS&-b)uI2>$hw{ ziu-M+%r7mz66XRcs5T~@7Z&N7f9d&dnTIi6)7xgOnYTHXeSIN6@2y|~kds$^yFJfo z^F;lnUS=28_(HWvtZLoua87TA--p0E##6tExKyvRo4xAhWQU!lYU$Vd7v7lxcG^+7 zNQd2}Qgf93S-uKsUgc8Vz3}EGEy1@7ZMDATEWCesvVQB&)73Aw3xFLdS$%7V%e}I9 z^IOvYJ$fkA3l96TH!mLt9sPZ#{<+__e%qK8vY^_-{eAuMpmj$Mvz}h;TRkuBZr-$W zw`Xe{SCs}w%bOd@hEhQ{z~#Nfru6={FG^e5zisK-eV704fgRqrFS|O=@;YfZeO`9k zn@rL4im7|LzwOBKH*i$`1WB=~)lUR_HH5&9(yacK;bIMD>Q*<&@Sgab395c(J&rrw zpZ99!$<tdz!IFm6Y#9zSr@Z5SYw1#*(Lc%dQsZY`Ca{!cwN$~jN=<MYyIOeP`)5<N zMV!SFP|a{-v-`7xJ$u1vmFL#uUyc4VJX-f%n&-Tw{o9J0%I6DqLF9aHDGSQz$zKB1 zh+B^TRhatg$-%op3qeLmY(4%|-Aj4pHS=4=9p5g<`Bn?1Z@=`x?jlI-m*aaUbooBa z&|YYJ|K{%R^R_HB=zILZyTQ@%^qxSy&&RH;EX;ePTHL+wfB4qaj5m`ePOw}4b<Vu^ z&;P6O-+I0}Kx0e$w<-U39RJnrAGYV$mc>nWm*=V8a<0B+7!bHO%I@{6G_6-NzUf?) zyS2G*C71NIk5SiSK>nQPCAU4UP<g)ntxm4pi)_8Ow0~Qp8k(5-cHipPE0#Z6mw8_3 z?Lyn^n}LOU54)}9F#<bQtLjd*(F-0a(@VA!j*7jFTx7c?UDr19%kth|GeADO6@2sY zy=f=c*op6s0=E=cF3X*jHZ9a!tOivqE9v{{<NWi>dgL<BbAy~Y>10+|`}LZrO;(F- z^)vY2MtaAm9e%LBtTaER%)2`7%1T?g{}=v?CKdCiT<8C@IQDYun|X)tDP5Si>h|Ud z%zGESUsyHiWTW~mVfkChGi#K@FI{%qaI3l~(WUy4bG6Ro`pMFp9pb;d+$LmM=m`<Z zKQ+;B!h9XuH>W3ZL$v*gS*P;(gWk6H?>fFUeB0w)UG~&ZeZ%h+b!VQOQ-0gY|8}F# zy=mT?C%YLOo9x0@yTJD2LfdI4&7Xv9l0RWv%eGe5veX@7cKxK}m%a@DfA>UJ7rmMH z?MVB#2sQcBJ5!$hjON|%6J%NL15)QRdAXKj`sWo7S023Xle%LW$h>7ItF>H>Y`z=V zKfc=>^7O_ch@kP*WuM>fc7I<sFK^2xmsCscKf*T`*iPM^zQRa#?$Na0OKw-hx4*so zS0{AlyiEU=jQ-3|ou{Vfq#r(-VwWG9V>e%??Pl4kPrVrsIr%1L@h$33TaKIjT=(FB z^4m^<w}!s|0t+7WeRJvfHbYIGn@{HQJdTTUx1ZP^%<BdT-cWnbowj{p{bQz#{@vex zluX?F&25Xi+m_>IKUXG{IaVjRROd|2=SVAu3Yv(nS(oA8lhI%JsV|{K?9cY!P2cu7 zSASz&Ecmul=&hmOzfgl;uGNcNs(U8ObGpsX^q-Q^U-~Kc;FHAeZ!RYv$5*IEZkhht zso+yl|MB$h<Mj(|;~q4)^DnWrXPwM1_a@=<{tW+l>D=?4-^{o=w>!P*=vH>?9gj3_ zO@4f{>3OADRO$0aOA|gkIn1}tqU+m}ifs=n=k<o&-C3b8Ve@N4vv%JiTg!R674y;; zPc1g_-xX86<69#8Z0!s4%;BQpyJB{KNkSG3t<a0(Y`t5(vH7fM#(C-UVm9YDUtDD) z?(XEcz3xpyvFNSOv-eu(`bqUHVwf}eU~0^&uUEUQ^py27n3^pT(u3Ik|6hMeY?b&~ zE?*1rbDw3O7u3GjR9X7RaoYp2$Sq}ZYvVueOf0u76L7s^TR%Z}hpX7y%bRa>r)nQQ zu(4TV$-A9yV1<6?AK6S>tK(57(0ax8`U$Z+O5NAqM#dc5)S9Sp(@`Y&`<jVhy|*`8 zbfj`CPm^^qEIluEvne{|;;rf}b`gcaRVLOQLa*kDZerbjVo_<0nELaLCZ&#>n>7}` zi&Ts*=+=qq?!TsQe!s`=Jl~?8UC+6|ns?cCJI;TV^`hp?=4Oq>?{+$YU1KJ{wtw^e zmYxjuK(D*SojC_}H)X7~i<&;We0$0*$B=;UE`ku<_T7nM-nq|{m&v-Ymimi8+<4Xf zb?o(XMyrs;o^D=I9=kiT=&i!471c^$H@<zW(>8zO6{9%?$bwIG`brn?oyWaN)<w0H zA8gAlyY5|2HaGX=vIqL!J-ihZuC{ZJy6Q{~+9m74`$}#V*vAE8U%v-$|7?8Wt-`B- z?*^dI%8gGqe335^HpBNvnLz1^>KWi*JsNrC>^fbZ;}32-URm@`F{+?j=hnY-k6iZO zk4ds%c*wU%uC!nJNO7j|E$O?N`X%+ZF8!DI7^(bEvU*3y^GjJ<8c!`h@OQJv-No;I z%HIspjlXDc?e@Bu{^b*Qx!;}KoU>}$`iuiE;&X~^tUIsRzM5x~61=s>_43+pG3V#I zypk*R*W0u*YTqJ8hYR6lf0Mtd1$|#p{b{1_)lZ_l)0_TP{b@_>0BK_aYdd_(<NoZ= z;Y=&4uh_btSeEs(t8HszUin(y=K<eWRChtNU2n3Bta|!f0%SNR*zkwzectbWWWfni zbZP?F>|;M(<ZnA)#{g2K30A~-!FzsoX2UM`yTOfMSKlzPcr@K^Gq=Ot#qU-+nT4JX zH~EuYx5Ru;TQ@^#|E}dyVBdb2KSB1P`|b0S89<IQg_v&XRFpHl_LAX(cY)upK(s!Y zB@_C42{YKRPO$kJ0%Gn(chhJ1fK4+4J7VDt*Qy`-b-zA?P2+`_mU^iF%Y^mT`tRAm z&Q%5nh4WO$YxYN`+iy;h1FNlex0$}Tq+ir7?ImOE-<{=E*}sb3J3qC_el;%(q9HcX z!0Xby*V_~N=g-^stLC@r#ekRRX2JY%Awc4fgzls*_h<9g?h&mndw;I`^7i|3bLZ|^ zE~|AuGWdIl^6XVlwWZ1g)Z+b?rN`Ub?<#$LyZwFs{e5-c-+eiFs@r;cmG#cxWB(qX z{^#{8dXh@F>$JPFwYIb8+5G%+;cmdna)Inua`Qluy>MRh?_Y8IopYOBYy7IcCk>9t zW$!+kT~XW7x9I-!y^siaC6`aE5+nQk{m&nYTc>6)Gw?KQc=Lbxb3tQc-A48WqI1gk zB-G!Hd%pGZo;wq3`5ks`mwvOSY}Rz^P45{!zLz!6z3%t9$o-ow!^?Yl8$RF4jC*%t zAG^Zc+q`9Q)@M)4-u%w6q<Z(kbJ@!)cPjsuYbeP#zft+tM87=cKJ$ckZ`rKZ&wci^ z?@cwsrM-6(Mv5izWv6a%BuH>1{?4B(RURW%v4oM~ziQP1TSoWyZ~6B9yqUT8eI3!f ze<yFw?|E9tQlGu|;laCH?;_*hHB@sQYThk+XY;;0jNe6C*vqwdq}T3bey7R7|1PZH z{I4SRJHY~Sch)|b_w^~?j^zqAJE9NTzCJBm;O|&bu)V4J+H~s&^O`<9$YcG!M!)=k zE$d)4*uL!5jZ=*RT}c{$!}or4IdJnyowBGw!k0DDS?3%252x3!v|WGyPunfy2aiA8 zjL$m%+I;`QZ#+LNYQ9as_4(J?{1vv$c6{^yF8#Kr?lbvX{!i}SotS=p?&-GqbG82b zZ*Ocp<-Fc@&ZJw$yb&vGzT7&jxzhG>!>Axp0dj1I{SPbl-*?S7zq7Y^a5ntS#%}@D zd@F4K&0c>a`R&4QG6B_p%;Ps6zvcYaa>2JB`TLUkx3=FZc6j^oe$7$2Z2qm!8*V+` z|Fg^Xnq1a-#;wQeKZ{ncvAr^nIjjHwGwp8?)hle-ugLu;$Kd|GM#l=ZI~LB6t69JI z|HeycvplrK7RYQew>wa|i2a7#zR#27uF2(`XSjX1JnqurTg`7J6RLll^R9}h-eAj| z!+*chlRuk(TYAIWht~Qp6W<>E#<Rh;=DDiv8rvK57`L^*-?OBBEBkHZ1K&Q(o&IIR zw}fgodKkK&tHQUQdGoCL&-<;`vo4>;weI-cXLavoZ_E>$5wgMbw()~2-Rm6YcD_C6 zYs$av__u_Owwyj%H)g$+EO_M_zTn)EZx5EuV!xeSz2U|@7B$hFv)_0uzAn-ZNKdLR z2tM2VcB5@Xjz806u5D@6Y;&qEimou;XuD(OvxDDm$mwiTZ}eo1-fYY4xAz6tm6<o> z?u2|!sLtURyFK~9lBTsc=P@piD`9=*lf$34s&a$vHumnfo(Vw*ujQO?2-e@lRI0X( z-TbP}4Y}LRN582UtW3z>mVRKRcx<DU@a^W=S#ml3Zx1F_3k@M}u<mJpcKw0%k6ZcX z``P|aY}|i$V%vQF$?~^9=YFsM?)m52`Yq3ceeAY9zy0q2yU9OtZzosl-T!}A{p0Oz z$G^qw`)~i|iXra-1|DX|srE0GPDGrHkL9Q+sJZKvvbo*%>ECkgiD%`$P5FL*t&3Up zjo^Fr+l6kvN%XJ$KU5WbGym38cX^BL{=M(I=G}cAc1Z5q9rLaA-!`<{zIkbDRsBpW zk-z%g>|6HLHxA2v`yw~jws`7>cH8g1Z|B>-N#w7t>OVJcr`L_c^L{V;c3uvoZLfR! z`54tViRWvBf2Z?T-#9$)-r~*a>x8~-c)oAt-_7l|Zxa3AU%Y7?&RKn<`2LlDHxJ8w z+pzrmi#Ib@x7fbfnV<C^WbTd2)g|A~gwn`4&r_H41u3&7X>i^8zQ06FO^hiu<HR%V zmD|PKE`%Mm<*dH(xj67U#6Q35O1>SzF7zqx%fE<Cv;LQEwcF!)Haq|O@f(}pu{HDC zRBW|7GtcnbhUK?P9~@l$HSt@|#&+AQ>zMiD*79#o@3DQevP`z(Lssn!+vGQi{##!k zXbyjU_>E*TfAy+ZcDX%K@@eNKs&53pwfgYj>Mw)pV>b@Z%evmkzW!SKP2*#7-$Hit zjaq>SsC{oa>n?s<8T#$dy5H-|Vi%?t#CAX3Wq%Bu9R1%Uo|mrf<E|3|N5Y%L^TO3P zJ|CO+xM_Y1DD?TOZ+t!?_ifL{=Q|##CxU|gu-rGBjqSGiZ!GnGc-{bo_l9;`Dj5_1 z=87ZNVFLjcN9TY4pUbc$@f~`xV{*v;gbmlWCh=F7z1f-fVe*FO65!mn=EmW9veoOP z|ERpNgm^~#+lKVx^Io&rb5{3l1m&djUAAv-ZhXG$p#PzH$>4mmnKWY-z4?6R&F9_r zH$UG?*va<);QwD&=N;UupUz+HwJh~bqW`gZZNYEnPTSaSD_Je&x3xU#nB2FNH<=b! z?`29>-<Z5{`NNRv<<wVLdvj&76axc8OX9!S&*zvtmp3$T+1PH|Ys(-0ckZ<thvyxe z*S`9nU-p|s|K#(BL+h8De%r8o<MW5B_FtB&zH#}+=Yp&EGka~{WWK4~@#_7SV{+e2 zzS+clEssj(ua>HoTldR)Eg8loFYoJ>XmFJ1T68+@X8oEi%baC@J@ic|nU+@_x80UA z-t>Fs`rGqv&%2)Me<=KH?XB0_*f-kVKks+{_B{LSi`kLSx`S6AbqVcXb45(N=HunO z>b&Z0D|W645WoJUb(i$)O3OuANe)X_v0ZUIyYStyw79+%vm^pmu3{_=C|<F9<IL&G ztJK&+R%JQJUXgi~m-Fmt$Er@osjH*{*iGB1qy1Cz{JvZU1_uF-Q~$i9Z#%whzun-^ zv0&9JhS~tTD|tDeJ@@SLWC#sqf6@GDVOjEQ|3_DSnO3Z_a*&_Gzg7BnjnMi$A&1bb zjK3DtthjsQ+2o4S$qcJj@m*kl>iqVY+597`XR`!^mNwXF$Y+^v`>7IlSEXUqD&{Ya zKLd7eJgffkl^SD6sO$p%Q|-5UbL~3A%{hmm)ghs9pj%y_0Nxw=<o_*>Rrr7xRHed+ i`&G@HT3}81hz3#f6{Zb#H#~lURC&7kxvX<aXaWGEt}|Z% diff --git a/8751e4271e335d10b8e2d7ca83837d1b.png b/8751e4271e335d10b8e2d7ca83837d1b.png deleted file mode 100644 index 9d8353225ea8d896cb86440d81e515a7b31afe6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 301 zcmeAS@N?(olHy`uVBq!ia0y~yVBi5^4rT@hhQ!rtt}-w%BnS9}xH2#>NOygeTJlwN z?swV#Z!(=<q<g<gt@<gs=a=-%?^1hy$xQerweF`v`4_46KV@frld1VE-S}Ci>$A)Z z5L>qPi}d_&G84Z@E&nM!|BLkYUovgqrTf21ZT%^|@P|yp7wP3cF1?CjWnf^CDGBlm zW_X|=Fu&o#g8TP3thYD#_x|1a1N-;SpD>|5A>Q7KDSa0M14FE*i(?4Kb=w|yz5@yZ z%;s;HG$-71KKVah(xJsNLN3zCWrAY!{B7%QE1kNvo8z^r*u?jmryqPfy;8^ba6v@U z<13PmB{TXgI<y=Qg%r<N_T@{3+@<^p5yu6jJ}+<Me|U!3>cE$Cu?!3h44$rjF6*2U FngG;;gpdFL diff --git a/bfca87187b6aff074f409395499acc1e.png b/bfca87187b6aff074f409395499acc1e.png deleted file mode 100644 index 7d5761bceb6c950f104aae423776eddd7033f6f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 298 zcmeAS@N?(olHy`uVBq!ia0y~yVBi5^4rT@hhQ!rtt}-w%WCr+zxH2#>IJJKIzKi+S zUKW#;LH8XTOjZQHb~d%1vaTy*k@1S4SI%b1YaHGsYJ%COzxJ~J+Qa<P#q5QXxzX~V zm(FItce5BQ4{&PzVzMImm9y#ZJuEhpb~NU!eYcx4a*a#<degU2Iv)y@w}+ITWME*B zC<*clW_X}*zh2<|`v(v1-#>p~{`~p#8wwHv92DL%wem7BFhqE|IEHXsw>{&|)S$rQ z5_sfZwWm_VyLyjK!T(wJ(x!ARh@7g=?4i`3z}}GbYs1C`mzb_4uDs5({IXD>hJpEC zgAVb)<&tc%Uq8ux&`aNWPVll~*rkrO^Z6~a*b}&Of<7`ZFfe$!`njxgN@xNAx`247 diff --git a/index.html b/index.html index daa1ba545..7f178570c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.19a03d2ebcf9f20ea14e.js"></script><script src="app/ecolyo.53ad107034bebe56f3ed.js"></script></div></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.a5828d47e107029845d0.js"></script><script src="app/ecolyo.53ad107034bebe56f3ed.js"></script></div></body></html> \ No newline at end of file diff --git a/public/ecolyo.b6af0ac9fcd71a5edeac.js b/public/ecolyo.258bfb9d44fb4f887c90.js similarity index 95% rename from public/ecolyo.b6af0ac9fcd71a5edeac.js rename to public/ecolyo.258bfb9d44fb4f887c90.js index 74867a8a1..e6872a876 100644 --- a/public/ecolyo.b6af0ac9fcd71a5edeac.js +++ b/public/ecolyo.258bfb9d44fb4f887c90.js @@ -2032,23 +2032,6 @@ $export($export.P, 'Array', { fill: __webpack_require__("Axkr") }); __webpack_require__("pebw")('fill'); -/***/ }), - -/***/ "+qy4": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setRef; }); -// TODO v5: consider to make it private -function setRef(ref, value) { - if (typeof ref === 'function') { - ref(value); - } else if (ref) { - ref.current = value; - } -} - /***/ }), /***/ "+qzK": @@ -2597,7 +2580,7 @@ $export($export.S, 'Object', { exports = module.exports = __webpack_require__("DjJv")(false); // Module -exports.push([module.i, ".styles__c-loading-placeholder___3L6Gz{animation-delay:.1s;animation-duration:2s;animation-iteration-count:infinite;animation-name:styles__placeHolderShimmer___3Rei_;animation-timing-function:linear;background-position:-20rem 0;background-image:linear-gradient(90deg,silver 0,#fcfcfc 50%,silver);background-size:20rem 10rem;background-repeat:no-repeat;background-color:silver;border-radius:.15rem;max-width:100%;position:relative;margin:.1rem 0}.styles__c-app-icon___2_O40,.styles__c-app-icon___2_O40 svg{height:100%;width:100%;flex-grow:0;flex-shrink:0;object-fit:contain}.styles__c-app-icon-default___3CEmt{color:var(--silver)}@-webkit-keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}@keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}.Sections__Sections__section___2onYy{margin-bottom:4rem}.AppsSection__AppsSection___3WHhE{margin-bottom:1rem}.AppsSection__AppsSection__list___2Uy0E{display:flex;flex-wrap:wrap;justify-content:flex-start}.DropdownFilter__Dropdown__icon___19QZN{padding:0 .5rem}@media (max-width:48rem){.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__control___3-04c{padding:.5rem .5rem .5rem .2rem;border-radius:0;height:2.75rem}.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__menu___XLfYX{top:2rem}.DropdownFilter__Dropdown___afcWb>div{max-width:none}}.styles__AppTile-icon___1f0c0{object-fit:contain;max-width:100%;width:auto}.styles__AppTile-icon--default___1tjiF{height:100%;padding:0 .5em}.styles__AppTile-icon-maintenance___2VOvO{position:absolute;border:2px solid var(--primaryContrastTextColor);border-radius:50%;background:var(--primaryContrastTextColor);bottom:80px;left:80px}@media (max-width:48rem){.styles__AppTile-icon-maintenance___2VOvO{bottom:6px;left:40px}}.styles__AppTile-container-maintenance___u1a1M{filter:grayscale(1);opacity:.64}.styles__c-apptitle___eqV9l{display:inline-flex;align-items:center;margin:0}.styles__c-avatar___PpDI-{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:var(--zIndex-low)}.styles__c-avatar___PpDI- svg{width:50%;height:50%}.styles__c-avatar-image___3yJnb{width:100%}.styles__c-avatar___PpDI-{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-avatar--xsmall___3H2Io{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:.4386rem}.styles__c-avatar--small___1Y_Pv{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:.87719rem}.styles__c-avatar--large___1Z_HZ{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:1.31579rem}.styles__c-avatar--xlarge___3Qe0b{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:1.75439rem}.styles__c-avatar-initials___310qC{font-weight:700;line-height:1}.styles__c-avatar--text___2dvna{color:#fff}.styles__c-avatar--disabled___xoLOy.styles__c-avatar--image___jDBci{background-color:#fff!important}.styles__c-avatar--disabled___xoLOy:not(.styles__c-avatar--image___jDBci){background-color:var(--silver)!important}.styles__c-avatar--disabled___xoLOy .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-avatar--ghost___3898R{background-color:initial!important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.styles__c-avatar--ghost___3898R .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-banner-wrapper___3KlaG{display:flex;align-items:center;min-height:3.5rem;padding:0 1rem}@media (max-width:48rem){.styles__c-banner-wrapper___3KlaG{padding:0}}.styles__c-banner-icon___1f_LM{width:2rem;height:2rem;margin-left:1rem}.styles__c-banner-icon___1f_LM>svg{width:2rem;height:2rem}.styles__c-banner-icon___1f_LM div{width:2rem;height:2rem;min-width:2rem;min-height:2rem}.styles__c-banner-text___1sTVC{padding:.75rem 1rem}.styles__c-banner-buttons___3sLgG button{margin:0;min-width:3rem}.styles__BarButton___3z5Er{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem}:root{--barIconColor:var(--coolGrey);--barIconColorDisabled:var(--silver)}.styles__BarButtonIcon___1pSOT{color:var(--barIconColor)}.styles__BarButton--disabled___5e3Ll .styles__BarButtonIcon___1pSOT{color:var(--barIconColorDisabled)}.styles__BarTitle___I5r2e{margin:0;height:3rem;display:flex;align-items:center;font-size:1.125rem}.styles__c-card___YgP7B{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.styles__c-card--inset___2pofc{margin:1rem 2rem}@media (max-width:48rem){.styles__c-card--inset___2pofc{margin:.5rem}}.styles__c-circle___1DuMR{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-circle-text___1jFgD{font-weight:700;line-height:1}.styles__SelectControl___2OxoO[aria-disabled=true],.styles__SelectControl___2OxoO[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__SelectControl___2OxoO[aria-disabled=true]:focus,.styles__SelectControl___2OxoO[aria-disabled=true]:hover,.styles__SelectControl___2OxoO[disabled]:focus,.styles__SelectControl___2OxoO[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__SelectControl___2OxoO{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__SelectControl___2OxoO::placeholder{color:var(--coolGrey);font-size:1rem}.styles__SelectControl___2OxoO:hover{border:.063rem solid var(--coolGrey)}.styles__SelectControl___2OxoO:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__SelectControl___2OxoO.styles__is-error___2s-d5,.styles__SelectControl___2OxoO:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__SelectControl___2OxoO{padding-right:2.375rem;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__SelectControl___2OxoO::-ms-expand{display:none}.styles__contact___169nD{color:var(--secondaryTextColor)}@media (max-width:48rem){.styles__contact___169nD{height:auto}}.styles__contact--clickable___1GLTM{cursor:pointer}.styles__contact-cozyurl___3kBp5,.styles__contact-phone___1sA_m{flex:0 0 12rem;padding:0}.styles__contact-email___3n3q2{flex-basis:30%;padding:0}.styles__contact-myself___1aOdx{color:var(--secondaryTextColor);padding-left:.5rem}.styles__contact-identity___mL3IJ{flex-basis:30%;padding:0}@media (max-width:48rem){.styles__contact-identity___mL3IJ{flex:1 1 auto}}.styles__contact-firstname___2GPEr{margin-left:1rem}.styles__contact-avatar___3lZPs{flex-shrink:0}.styles__icon___gvQ89{margin:1rem 1.5rem 0 .5rem}.styles__ContactsListModal__addContactContainer___2W-dE{display:flex;justify-content:center;margin:0 .5rem 1rem}@media (max-width:48rem){.styles__ContactsListModal__addContactContainer___2W-dE>*{flex:1}}.styles__DialogCloseButton___cxKPO{position:absolute;top:1.15rem;right:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogCloseButton___cxKPO{top:.25rem;right:.25rem}}.styles__DialogBackButton___1c7yH{position:absolute;top:1.15rem;left:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogBackButton___1c7yH{top:.25rem;left:.25rem}}.styles__DateMonthPicker__YearControls___1DGlB{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.08)}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm,.styles__DateMonthPicker__MonthButton___3I_Mm:hover,.styles__DateMonthPicker__YearButton___3zNDK:hover{background:var(--defaultBackgroundColor);color:var(--primaryTextColor)}.styles__DateMonthPicker__MonthButton___3I_Mm:active,.styles__DateMonthPicker__MonthButton___3I_Mm:hover:active,.styles__DateMonthPicker__YearButton___3zNDK:active,.styles__DateMonthPicker__YearButton___3zNDK:hover:active{background-color:var(--actionColorFocus);font-weight:700;outline:0}.styles__DateMonthPicker__MonthButton___3I_Mm,.styles__DateMonthPicker__YearButton___3zNDK{background:none;min-height:3rem;min-width:3rem;display:inline-block;border-width:0;color:var(--secondaryTextColor);cursor:pointer}.styles__DateMonthPicker__MonthButton___3I_Mm:focus,.styles__DateMonthPicker__YearButton___3zNDK:focus{outline:0}.styles__DateMonthPicker__YearControls___1DGlB{justify-content:center;display:flex;align-items:center;border-radius:8px;border:1px solid var(--borderMainColor);overflow:hidden;margin-bottom:1rem;font-weight:700}.styles__DateMonthPicker__YearButton___3zNDK{flex-grow:0;cursor:pointer}.styles__DateMonthPicker__Year___387bP{flex-grow:1;display:inline-flex;justify-content:center}.styles__DateMonthPicker__MonthGrid___TCFg4{display:grid;grid-template-columns:repeat(4,auto);grid-template-rows:repeat(3,1fr);overflow:hidden;grid-gap:1rem}.styles__DateMonthPicker__MonthButton___3I_Mm{border-radius:3rem}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm{font-weight:700}.styles__divider___SuA5q{align-items:center;display:flex}.styles__divider___SuA5q:after,.styles__divider___SuA5q:before{content:\"\";height:1px;background-color:var(--dividerColor)}.styles__divider___SuA5q:before{display:none;margin-right:.5rem}.styles__divider___SuA5q:after{flex:1;margin-left:.5rem}.styles__center___3K8dw:before{display:block;flex:1}.styles__c-empty___3w5oV{display:flex;flex-direction:column;justify-content:center;flex:1 0 auto;align-self:center;padding:1rem 0;text-align:center;max-width:100%}.styles__c-empty-img___2GC4d{display:block;margin:0 auto 1rem;height:8rem}@media (max-width:63.938rem){.styles__c-empty-img___2GC4d{margin-bottom:.5rem;height:6rem}}.styles__c-empty-img--medium___1d2Zd{height:10rem}@media (max-width:63.938rem){.styles__c-empty-img--medium___1d2Zd{height:8rem}}.styles__c-empty-img--large___3s3vC{height:12rem}@media (max-width:63.938rem){.styles__c-empty-img--large___3s3vC{height:10rem}}.styles__c-empty-title___2HduE{margin:0 auto;max-width:63rem;line-height:1.3}@media (max-width:63.938rem){.styles__c-empty-title___2HduE{margin:0 1.5rem}}.styles__c-empty-text___3HnvR{margin:.313rem auto 0;max-width:63rem;color:var(--secondaryTextColor);line-height:1.5}@media (max-width:63.938rem){.styles__c-empty-text___3HnvR{margin:.313rem 1.5rem 0}}.styles__c-label___o4ozG{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:700;line-height:1rem}.styles__c-label___o4ozG.styles__is-error___2Dwem{color:var(--pomegranate)}.styles__c-label--block___2ZV_7{display:block;padding:.5rem 0}.styles__o-field___3n5HM{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.styles__o-field--inline___7JWZ8{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.styles__o-field--inline___7JWZ8{flex-direction:column;margin-left:0}}.styles__o-field--inline___7JWZ8{margin:0}.styles__o-field--inline___7JWZ8 label{flex-basis:8rem;flex-shrink:0;flex-grow:0;padding:1rem 0}@media (max-width:48rem){.styles__o-field--inline___7JWZ8 label{flex-basis:auto}}.styles__o-field--inline___7JWZ8>*{flex-grow:1}.styles__o-field-input___vCqdV{position:relative;max-width:32rem}.styles__o-field-input-action___2k7a8,.styles__o-side___tXbXL{position:absolute;top:.5rem;right:0;cursor:pointer;text-transform:uppercase}.styles__o-side-fullwidth___7WcCI{max-width:100%}.styles__o-field-input-action___2k7a8{top:-1.5rem;text-transform:uppercase}.Figure__Figure-currency___195-B{color:var(--secondaryTextColor)}.Figure__Figure-content--positive___1qyd8,.Figure__Figure-content--positive___1qyd8 .Figure__Figure-currency___195-B{color:var(--successColor)}.Figure__Figure-content--negative___3ACbA,.Figure__Figure-content--negative___3ACbA .Figure__Figure-currency___195-B{color:var(--errorColor)}.Figure__Figure-content--warning___1Pn6n,.Figure__Figure-content--warning___1Pn6n .Figure__Figure-currency___195-B{color:var(--warningColor)}.Figure__Figure-total___MZ7Xt{font-weight:900}.Figure__Figure__currency--withSpacing___2eXTy{margin-left:.2em}.Figure__Figure--big___1b5ml{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.Figure__Figure--big___1b5ml{font-size:1.5rem;line-height:1.75rem}}.Figure__Figure--clickable___3i82u{cursor:pointer}.Figure__Figure_blur___1p0la{filter:blur(8px)}.Figure__Figure--inline___2L5SE{display:inline}.FigureBlock__FigureBlock___YyBoL{color:var(--primaryTextColor)}.FigureBlock__FigureBlock-figure___97C8E{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.FigureBlock__FigureBlock___YyBoL{font-size:.7em}}.styles__c-file-input___YNZSh{cursor:pointer}.styles__c-file-path___XvgNN{display:block;color:var(--secondaryTextColor);font-size:.75rem;text-decoration:none;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.styles__filePickerBreadcrumb-previousPath___3LKJH{color:var(--actionColorActive);cursor:pointer}.styles__filePickerBreadcrumb-icon___3aFyd{color:var(--actionColorActive);margin:0 .25rem}@supports (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:contents}}@supports not (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:flex;flex:1 1 auto;align-items:center;width:100%}}.styles__c-filename-wrapper___3tVpA{display:flex}.styles__c-filename-wrapper___3tVpA :last-child{flex-shrink:0}.styles__c-filename-name___1jDMz{display:inline;width:auto}.styles__Hero___14z7_{margin-left:auto;margin-right:auto}.styles__Hero-title___256Uz{text-align:center;margin:3rem 0}.styles__Hero-subtitle___1E_WG{margin-bottom:0}@media (max-width:48rem){.styles__Hero-subtitle___1E_WG{margin-top:.5rem}}.styles__Hero___14z7_ p{line-height:1.25}.styles__Hero-sections___ETV6e{display:flex;justify-content:space-around}@media (max-width:48rem){.styles__Hero-sections___ETV6e{flex-direction:column;align-items:center}}.styles__Hero-section___1BcNz{max-width:18.75rem;text-align:center;flex-grow:1;flex-basis:100%}@media (max-width:48rem){.styles__Hero-section___1BcNz{max-width:auto;margin-bottom:2rem}}.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:2rem}@media (max-width:48rem){.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:0}}.styles__Hero-cta___2KhwU{text-align:center;max-width:32rem;margin-left:auto;margin-right:auto;margin-top:2rem}.styles__HistoryRowCircleWrapper___3r8Uo{width:2.6rem;height:2.6rem;justify-content:center;display:flex;align-self:start}.styles__HistoryRowCircle___4FWWa{border:1px solid var(--dividerColor);background-color:var(--paperBackgroundColor)}.styles__HistoryRowRevisionLoader___a5y5b{display:flex;justify-content:center}.styles__HistoryRowCaption___2fe_H{margin-bottom:2rem;padding-left:2rem;padding-right:2rem}.styles__HistoryRowMedia___2jgYN{position:relative;padding:1rem}.styles__HistoryRowMedia___2jgYN:before{content:\"\";border-left:1px dashed var(--dividerColor2);position:absolute;margin-left:20px;top:2.125rem;bottom:-1rem}.styles__HistoryRowMedia___2jgYN:last-child:before{border:0}.styles__HistoryRowMediaImg___1J9OI{align-self:flex-start;z-index:1}.styles__icon--spin___ybfC1{animation:styles__spin___2Vvw3 1s linear infinite}@media (prefers-reduced-motion:reduce){.styles__icon--spin___ybfC1{animation:none}}@-webkit-keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.styles__icon___23x3R{fill:var(--iconColor);transform:translateZ(0)}.styles__icon--preserveColor___3gBz6{fill:inherit}.styles__IconStack-wrapper___10dhG{position:relative;display:inline-block}.styles__IconStack-foregroundIcon___ZvY-t{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.styles__c-input-text___3TAv1[aria-disabled=true],.styles__c-input-text___3TAv1[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-input-text___3TAv1[aria-disabled=true]:focus,.styles__c-input-text___3TAv1[aria-disabled=true]:hover,.styles__c-input-text___3TAv1[disabled]:focus,.styles__c-input-text___3TAv1[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-input-text___3TAv1{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-input-text___3TAv1::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-input-text___3TAv1:hover{border:.063rem solid var(--coolGrey)}.styles__c-input-text___3TAv1:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-input-text___3TAv1.styles__is-error___3lsCJ,.styles__c-input-text___3TAv1:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-input-text--tiny___MzMoD{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-input-text--medium___28jPV{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-input-text--large___28EaR{border-radius:.188rem;padding:.813rem 1rem}.styles__c-input-text--fullwidth___33o_f{max-width:100%}.styles__c-inputgroup___12OVJ input[aria-disabled=true],.styles__c-inputgroup___12OVJ input[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-inputgroup___12OVJ input[aria-disabled=true]:focus,.styles__c-inputgroup___12OVJ input[aria-disabled=true]:hover,.styles__c-inputgroup___12OVJ input[disabled]:focus,.styles__c-inputgroup___12OVJ input[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-inputgroup___12OVJ input{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-inputgroup___12OVJ input::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-inputgroup___12OVJ input:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup___12OVJ input:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-inputgroup___12OVJ input.styles__is-error___2dj3S,.styles__c-inputgroup___12OVJ input:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-inputgroup___12OVJ{display:inline-flex;flex-direction:row;box-sizing:border-box;align-items:stretch;width:100%;max-width:32rem;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__c-inputgroup___12OVJ:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup--focus___Tk5-Z,.styles__c-inputgroup--focus___Tk5-Z:hover{border-color:var(--dodgerBlue)}.styles__c-inputgroup--error___1JNbu{border-color:var(--pomegranate)}.styles__c-inputgroup--fullwidth___3nuay{max-width:none}.styles__c-inputgroup-main___1LP4B{flex:1 1 auto}.styles__c-inputgroup___12OVJ input{border:0;padding-right:.5rem}.styles__c-inputgroup___12OVJ input:focus,.styles__c-inputgroup___12OVJ input:hover{position:relative;z-index:1;border:0;outline:0}.styles__c-inputgroup-side___60v0v{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;max-width:8.75rem}.styles__c-inputgroup-unit___bFj9a{padding-left:1rem;padding-right:1rem;font-weight:700}.styles__intentHeader___m5Qjh{display:flex;align-items:center;height:2rem;padding:.5rem 1rem;background-color:var(--paleGrey);margin:0;flex-basis:auto;flex-shrink:0}.styles__intentHeader-title___1r4ex{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__intentHeader-title___1r4ex span{font-weight:400}.styles__intentHeader-icon___3s30C{height:1.125rem;margin-right:.5rem}iframe{width:100%;height:100%;border:0}.styles__intentContainer___gZbMl,.styles__intentPlaceHolder___EWSR1{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.styles__intentContainer___gZbMl[aria-busy=true] iframe{height:0;width:0}.styles__intentContainer__error___yQ7K8{color:red;font-size:1.5em}.styles__intentWrapper___1ZMvW{display:flex;flex-flow:column nowrap;align-items:stretch;position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__intentWrapper___1ZMvW .styles__intentHeader___3TDUp{display:flex;align-items:center;padding:.25rem 1rem;margin:0}.styles__intentWrapper___1ZMvW .styles__intentContent___1ilx7 [class^=c-header-icon--ghost]{margin:0}.styles__CollectionField__addBtn___Z0FO-{margin-left:0;margin-right:0}.styles__CollectionField__addBtnIcon___1hA5b{margin-right:.5rem}.styles__CollectionField__row___Z7bbf{display:flex;align-items:center}.styles__CollectionField__row___Z7bbf>*+*{margin-left:1rem}.styles__iconGrid___7nBAB{display:grid;grid-template-columns:repeat(2,16px);grid-template-rows:repeat(2,16px);grid-gap:1px}.styles__PasswordInput___3Oa3V{display:inline-flex;flex-direction:column;width:100%;max-width:32rem}.styles__PasswordInput--withStrength___1Msxm{border-bottom-left-radius:0;border-bottom-right-radius:0}.styles__PasswordInput__strength___1hpSg{background-color:var(--paleGrey);border-radius:.188rem;border-top-left-radius:0;border-top-right-radius:0;border:.063rem solid var(--silver);border-top:0;box-sizing:border-box;height:.25rem}.styles__PasswordInput__strength--weak___dzrGl{color:var(--pomegranate)}.styles__PasswordInput__strength--weak___dzrGl::-webkit-progress-value{background-color:var(--errorColor)}.styles__PasswordInput__strength--weak___dzrGl::-moz-progress-bar{background-color:var(--errorColor)}.styles__PasswordInput__strength--moderate___1ME_z{color:var(--texasRose)}.styles__PasswordInput__strength--moderate___1ME_z::-webkit-progress-value{background-color:var(--warningColor)}.styles__PasswordInput__strength--moderate___1ME_z::-moz-progress-bar{background-color:var(--warningColor)}.styles__PasswordInput__strength--strong___3yuP0{color:var(--emerald)}.styles__PasswordInput__strength--strong___3yuP0::-webkit-progress-value{background-color:var(--successColor)}.styles__PasswordInput__strength--strong___3yuP0::-moz-progress-bar{background-color:var(--successColor)}.styles__PasswordInput__visibilityButton___2B6RJ{height:100%;width:3rem;background-color:initial;border:0}.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{display:block}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{display:block;overflow:visible}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{content:\"\";display:block}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{height:3rem}}.styles__o-layout-2panes___1CDQw{flex:0 0 100%;align-items:stretch}.styles__o-layout-2panes___1CDQw>aside{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main]{height:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw>aside{position:fixed;bottom:0;left:0;display:block;z-index:var(--zIndex-nav);width:100%}}.styles__c-nav___33dZy{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.styles__c-nav___33dZy{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.styles__c-nav-item___3XOLK{position:relative;z-index:var(--zIndex-app);height:3rem;box-sizing:border-box;cursor:pointer}.styles__c-nav-item___3XOLK:hover:before{content:\"\";position:absolute;z-index:var(--zIndex-below);border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item___3XOLK:hover:before{content:none}}@media (max-width:63.938rem){.styles__c-nav-item___3XOLK{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.styles__c-nav-item___3XOLK:hover:before{content:none}}.styles__c-nav-icon___hrJUe{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.styles__c-nav-icon___hrJUe svg{display:block}.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}:hover>.styles__c-nav-icon___hrJUe{color:var(--navTextColor)}@media (max-width:63.938rem){.styles__c-nav-icon___hrJUe{display:block;margin-right:0}.styles__c-nav-icon___hrJUe svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.styles__c-nav-text___1J3yU{display:block;text-align:center;white-space:nowrap}}.styles__c-nav-link___3mK6W{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem}.styles__c-nav-link___3mK6W:visited{color:var(--navTextColor)}.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:700;color:var(--navTextActiveColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}@media (max-width:63.938rem){.styles__c-nav-link___3mK6W{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:top;background-size:1.5rem}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN,.styles__c-nav-link___3mK6W:hover{box-shadow:none;font-weight:400}}@media not all and (pointer:fine){.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextColor)}}.styles__c-nav-item-secondary___k14rf{height:auto}.styles__c-nav-item-secondary___k14rf+.styles__c-nav-item-secondary___k14rf{margin-top:.125rem}@media (max-width:63.938rem){.styles__c-nav-item-secondary___k14rf{display:none}}.styles__c-nav-item-secondary___k14rf:hover:before{content:\"\";position:absolute;z-index:var(--zIndex-below);border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item-secondary___k14rf:hover:before{content:none}}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W.styles__is-active___2D0jN{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.styles__DesktopSectionWrapper___1rIWP{list-style-type:none}.styles__Modal__back___qxUn_{cursor:pointer;margin-right:.5rem;margin-left:-.25rem;font-size:1.5rem;line-height:0;margin-bottom:-1rem;position:relative;top:-.5rem}.styles__OrderedList___17A_o{list-style:none;counter-reset:cozy-ui-ordered-list;padding-left:0;line-height:1.5}.styles__ListItem___2Lu4a{counter-increment:cozy-ui-ordered-list;position:relative;padding-left:1.5rem}.styles__ListItem___2Lu4a:before{content:counter(cozy-ui-ordered-list) \". \";font-weight:700;position:absolute;left:0;top:0}.styles__PageFooter___2IFCx{flex-grow:0}.styles__PageContent___DbPFL{flex-grow:1}.styles__PageLayout___1ptQY{display:flex;flex-direction:column}.styles__Panel-group___1txSp{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;box-sizing:border-box}.styles__Panel-main___2BRfq{flex:1 0 65%;overflow:auto}.styles__Panel-side___327EK{flex:0 0 35%;background:var(--paleGrey);overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:1.5rem}@media (max-width:30rem){.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:.5rem}}@media (max-width:48rem){.styles__Panel-group___1txSp{display:block;overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{flex-basis:auto}}.styles__Token--number___2EzoN{color:#297ef2}.styles__Token--special___3_rSu{color:#b449e7}.styles__select--disabled___1W3en{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border:.063rem solid var(--dividerColor)}.styles__select--fullwidth___2l_xM{max-width:100%;padding-right:2.375rem}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border-width:0}.styles__select-control__input___1xDlj{width:0;height:0;overflow:hidden}.styles__select--autowidth___16AEp{max-width:32rem}.styles__select--fullwidth___2l_xM{padding-right:0}.styles__select-option___ov_IT{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:.5rem;border-left:.25rem solid transparent;color:var(--charcoalGrey);transition:all .2s ease-out;white-space:normal}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey);cursor:pointer}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57) .styles__select-option__actions___2WOjb{opacity:1}.styles__select-option--focused___1Vpjv:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey)}.styles__select-option--selected___R3_ES{background-color:var(--paleGrey);border-left-color:var(--primaryColor)}.styles__select-option--disabled___1du57{color:var(--silver);cursor:not-allowed}.styles__select-option__checkbox___15WVE{margin-right:.5rem;vertical-align:top}.styles__select-option__label___1Xi5R{flex-grow:1;display:flex;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.styles__select-option__checkmark___ChXXs{width:2rem}.styles__select-option__actions___2WOjb{opacity:0;white-space:nowrap;transition:opacity .2s ease-out}@media (max-width:63.938rem){.styles__select-option__actions___2WOjb{opacity:1}}.styles__select__overlay___3H8Jy:before{content:\"\\A0\";width:200vw;height:200vh;top:-50vh;left:-50vh;display:block;position:fixed}.styles__MenuList___1H_pH{display:flex;flex-direction:column}.styles__FixedGroup___2izTc,.styles__Group___J6s7k{overflow-y:auto;padding-top:.25rem!important;padding-bottom:.25rem!important}.styles__FixedGroup___2izTc{flex-shrink:0;border-top:1px solid silver}.styles__SelectionBar___3UOqy{position:fixed;z-index:var(--zIndex-selection);top:0;left:0;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;height:3.25rem;color:var(--white);background-color:var(--slateGrey);font-weight:700}.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0 1rem;min-width:3rem}@media (max-width:48rem){.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0;text-align:center}}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR{margin:0 .25rem;color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR:hover{color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action--withLabel___3TJq3{margin:0 .5rem}@media (max-width:63.938rem){.styles__SelectionBar___3UOqy{top:auto;bottom:0;box-sizing:initial;height:3rem;padding-bottom:env(safe-area-inset-bottom)}}:root{--sidebarHeight:3rem}.styles__o-sidebar___1295j{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.styles__o-sidebar___1295j{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.styles__c-spinner___1snK7{display:inline-block;margin:0 .5rem}.styles__c-spinner___1snK7:before{content:\"\"}.styles__c-spinner___1snK7 p{margin-top:.938rem;line-height:1.5}.styles__c-spinner--middle___RwyII{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center}.styles__c-spinner--middle___RwyII:before{display:block;margin:0 auto}.styles__c-spinner--nomargin___13JyW{margin:0}.styles__SquareAppIcon-wrapper___2SEuM{box-sizing:border-box;background-color:var(--paperBackgroundColor);border-radius:.75rem;height:4rem;width:4rem;transition:transform .3s,border-radius .3s}@media (max-width:48rem){.styles__SquareAppIcon-wrapper___2SEuM{height:3rem;width:3rem}}.styles__SquareAppIcon-icon-container___39MRl{display:flex;align-items:center;justify-content:center;padding:.625rem;border-radius:.75rem;width:100%}@media (max-width:48rem){.styles__SquareAppIcon-icon-container___39MRl{padding:.5rem}}.styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-icon-container___39MRl svg{width:100%}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:screen}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl svg{filter:saturate(0)}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y svg{opacity:.5}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl svg{opacity:.5}.styles__SquareAppIcon-wrapper-loading___3A1_X{border-radius:50%;transform:scale(.875)}@media (max-width:48rem){.styles__SquareAppIcon-wrapper-loading___3A1_X{transform:scale(.8334)}}.styles__SquareAppIcon-spinner___o0LO1{margin:0!important}.styles__onEnd___1O6Q7,.styles__SquareAppIcon-spinner___o0LO1 svg{position:absolute;height:100%;width:100%}.styles__onEnd___1O6Q7{align-items:center;border-radius:50%;display:flex;opacity:0;z-index:1}.styles__onEnd___1O6Q7 svg{fill:transparent!important}.styles__onEnd___1O6Q7 svg path{animation-duration:.2s!important}.styles__onEnd___1O6Q7 svg path:first-of-type{animation-delay:.2s!important}.styles__onEnd___1O6Q7 svg path+path{animation-delay:.36s!important}.styles__onEnd___1O6Q7 svg *{stroke:var(--white)!important}.styles__onEnd___1O6Q7.styles__isFailed___2AYxx{--animationColor:var(--errorColor)}.styles__onEnd___1O6Q7.styles__isSuccess___I6nFq{--animationColor:var(--successColor)}.styles__isFailed___2AYxx,.styles__isSuccess___I6nFq{animation:styles__end-animation___1O0b3 1.5s forwards}@-webkit-keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}@keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}.styles__Stack--m___1tSpV>*+*{margin-top:1rem}.styles__Stack--xs___2R5lW>*+*{margin-top:.5rem}.styles__Stack--s___22WMg>*+*{margin-top:.75rem}.styles__Stack--l___3oxCJ>*+*{margin-top:1.5rem}.styles__Stack--xl___3qy-m>*+*{margin-top:2rem}.styles__Stack--xxl___2KAsb>*+*{margin-top:3rem}.styles__Table___x3ZsI{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.styles__TableHead___1rqhM{flex:0 0 2rem}@media (max-width:48rem){.styles__TableHead___1rqhM{display:none}}.styles__TableBody___1EfpK{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.styles__TableBody___1EfpK{max-height:100%}}.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:var(--actionColorHover)}@media (hover:none){.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:initial}}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child,.styles__TableRow___1D62H:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{max-width:100vw}}.styles__TableHead___1rqhM .styles__TableRow___1D62H{border:0}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover{background-color:initial}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child{border-bottom:0}.styles__TableCell___yJCq7,.styles__TableHeader___FWkmV{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.styles__TableHeader___FWkmV{padding:.5rem 1rem;font-size:.75rem;font-weight:700;text-transform:uppercase}.styles__c-textarea___D7EEH[aria-disabled=true],.styles__c-textarea___D7EEH[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-textarea___D7EEH[aria-disabled=true]:focus,.styles__c-textarea___D7EEH[aria-disabled=true]:hover,.styles__c-textarea___D7EEH[disabled]:focus,.styles__c-textarea___D7EEH[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-textarea___D7EEH{display:inline-block;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-textarea___D7EEH::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-textarea___D7EEH:hover{border:.063rem solid var(--coolGrey)}.styles__c-textarea___D7EEH:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-textarea___D7EEH.styles__is-error___1kGLj,.styles__c-textarea___D7EEH:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-textarea--tiny___3fmPW{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-textarea--medium___T8f3b{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-textarea--fullwidth___Ih_mg{max-width:100%}.styles__c-textarea___D7EEH{display:block;width:100%;min-height:7.5rem;resize:vertical}.styles__c-textarea--tiny___3fmPW{min-height:3rem}.styles__c-textarea--medium___T8f3b{min-height:5rem}.Thumbnail__container___2Eg5o{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:32px;width:32px;z-index:var(--zIndex-app)}.Thumbnail__wrapper___ZoPVg{box-sizing:border-box;display:inherit;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg>*{max-width:26px;max-height:26px}.Thumbnail__wrapper___ZoPVg>:not(img){width:26px;height:26px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR{position:relative;max-width:29px;max-height:29px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR:after{content:\"\";position:absolute;width:100%;height:100%;z-index:var(--zIndex-below);top:-6px;left:0;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>*{max-width:23px;max-height:23px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>:not(img){width:23px;height:23px}.styles__Tile___2SqRi{box-sizing:border-box;position:relative;display:flex;flex-direction:column;flex:0 0 8.75rem;width:8.75rem;height:8.75rem;align-items:center;background:var(--paperBackgroundColor);border-radius:4px;border:1px solid var(--dividerColor);padding:.375rem;margin-bottom:1rem;margin-right:.75rem;overflow:hidden;transition:all .15s ease}.styles__Tile___2SqRi.styles__Tile-secondary___2zYdn{background:var(--defaultBackgroundColor);border-color:var(--defaultBackgroundColor)}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);cursor:pointer;transform:scale(1.1)}@media (max-width:48rem){.styles__Tile___2SqRi{flex-basis:100%;flex-direction:row;height:3.75rem;justify-content:flex-start;margin-right:.5rem;margin-bottom:.5rem;padding-left:.5rem}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{transform:scale(1.01)}}.styles__Tile-icon-wrapper___24AzZ{margin-top:.25rem;margin-bottom:.25rem;width:3rem;height:3rem}.styles__Tile-desc___3lPj6{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;margin-top:.5rem;text-align:center;max-width:100%}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{display:block;margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.styles__Tile-title___3gbq-{color:var(--black)}.styles__Tile-title___3gbq-.styles__Tile-title-multiline___17HPx{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.styles__Tile-developer___2GOfB{height:1rem}.styles__Tile-status___33VkE{margin-top:.5rem;height:1rem}.styles__Tile-status___33VkE.styles__Tile-status-accent___an9au{color:var(--primaryColor)}@media (max-width:48rem){.styles__Tile-icon-wrapper___24AzZ{margin-top:0;margin-bottom:0;width:3rem;height:2.5rem}.styles__Tile-desc___3lPj6{margin-top:0;margin-left:.5rem;text-align:left;flex-grow:1}.styles__Tile-title___3gbq-{height:1rem;font-weight:400;font-size:.75rem!important}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{width:100%}.styles__Tile-developer___2GOfB{display:none}.styles__Tile-status___33VkE{margin-top:.125rem}}.styles__toggle___3zVsE{display:inline-block;width:2.5rem;height:1.5rem}.styles__checkbox___3ko96{display:none}.styles__label___3jY1f{position:relative;display:inline-block;width:100%;height:100%;border-radius:1rem;background:var(--silver);transition:all .2s ease-out;cursor:pointer}.styles__label___3jY1f:before{position:absolute;top:0;bottom:0;left:.125rem;display:inline-block;width:1.25rem;height:1.25rem;margin:auto;border-radius:50%;content:\"\";background:var(--white);transition:all .2s ease-out}.styles__checkbox___3ko96:checked+.styles__label___3jY1f{background:var(--emerald)}.styles__checkbox___3ko96:checked+.styles__label___3jY1f:before{left:1.125rem}.styles__UnorderedList___2uFFY{padding-left:0;list-style:none}.styles__ListItem___3cRoI{position:relative;line-height:1.5;padding-left:1.5rem}.styles__ListItem___3cRoI:before{content:\"\";position:absolute;top:.75rem;left:0;width:.5rem;height:.5rem;background-color:var(--slateGrey);border-radius:50%;transform:translateY(-50%)}.styles__upload-queue___1VtNK{border:.0625rem solid var(--dividerColor);border-radius:.25rem;background-color:var(--paperBackgroundColor);display:flex;flex-direction:column;max-width:90%;width:30rem}.styles__upload-queue__threshold-bar___tTYal{min-width:10rem;margin-right:1rem}.styles__upload-queue__progress-caption___1-vXY{line-height:.75rem;height:1rem}.styles__upload-queue__upload-progress___1q-uS{align-items:center;display:flex;margin-top:.125rem}.styles__upload-queue--popover___2z1a4{z-index:var(--zIndex-popover);border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor);position:fixed;bottom:.5rem;right:1.5rem;height:13.125rem;transform:translateY(18.75rem);transition:.5s;opacity:0;visibility:hidden}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{opacity:1;visibility:visible;transform:translate(0)}.styles__upload-queue-header___c9Vf2{display:flex;flex-direction:column;justify-content:center;height:2rem;background-color:var(--defaultBackgroundColor);font-weight:700;margin:0;padding:.5rem 1rem}.styles__upload-queue-header___c9Vf2 .styles__upload-queue-header-inner___26wpB{display:flex;justify-content:space-between;align-items:center}progress.styles__upload-queue-progress___1CmN-{-webkit-appearance:none;-moz-appearance:none;border:none;display:block;width:100%;height:.125rem;margin:0}.styles__upload-queue-content___3MPHo{overflow:auto}.styles__upload-queue--collapsed___3cchD{height:2.5rem}.styles__upload-queue--collapsed___3cchD .styles__upload-queue-content___3MPHo{visibility:none}.styles__upload-queue-list___OVvJm{flex:1 1 auto;display:flex;flex-direction:column}.styles__upload-queue-item--error___2sSeV{background-color:var(--errorBackground)}.styles__upload-queue-item--done___2PSJI{background-color:var(--defaultBackgroundColor)}.styles__item-file___1kfDn{user-select:none;overflow:hidden}.styles__item-status___3FNcY{flex:0 0 15%;text-align:right;white-space:nowrap;padding-left:1rem}@media (max-width:63.938rem){.styles__upload-queue___1VtNK{border-radius:0;border:0;background-color:var(--paperBackgroundColor);box-shadow:none;width:100%;max-width:100%;height:auto;transform:none}.styles__upload-queue-header___c9Vf2{background:0;text-transform:uppercase;padding:.5rem}.styles__upload-queue-content___3MPHo{display:none}.styles__upload-queue--popover___2z1a4{top:3rem;bottom:auto;right:0;left:0;z-index:calc(var(--zIndex-app) + 3);max-height:0}.styles__upload-queue--popover___2z1a4:before{position:fixed;top:2.9375rem;z-index:var(--zIndex-nav);width:100%;height:.0625rem;content:\"\";background:var(--paperBackgroundColor)}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{max-height:30%}.styles__upload-queue--popover___2z1a4 .styles__upload-queue-content___3MPHo{display:none}}.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{position:relative;display:flex;width:60%;max-height:calc(100% - 4rem);justify-content:center;align-items:center;flex-direction:column;margin-top:4rem}.styles__viewer-audioviewer___1OQPB h2,.styles__viewer-canceled___pOA_O h2,.styles__viewer-imageviewer___26k0p h2,.styles__viewer-noviewer___auG-6 h2,.styles__viewer-pdfviewer___1gTP9 h2,.styles__viewer-textviewer___3u5Zw h2,.styles__viewer-videoviewer___NhFoe h2{max-width:90%}@media (max-width:63.938rem){.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{margin-left:0;width:100%;max-height:calc(100% - 6.5rem);margin-top:-.5rem}}.styles__viewer-videoviewer___NhFoe video{width:100%;max-width:31.25rem;height:auto}.styles__viewer-textviewer___3u5Zw .styles__viewer-textviewer-content___PB-c3{white-space:pre-line;width:100%;max-height:70%;overflow:auto}.styles__viewer-textviewer___3u5Zw a{color:var(--azure)}@media (max-width:63.938rem){.styles__viewer-textviewer___3u5Zw{width:90%;margin-left:5%}}.styles__viewer-filename___3jZCt{max-width:90%;text-overflow:ellipsis;overflow:hidden}.styles__viewer-pdfviewer-pdf___16ID9{overflow:auto;width:100%}.styles__viewer-pdfviewer-page___2RPuw>*{margin:auto}.styles__viewer-pdfviewer-toolbar___3NXOk{position:absolute;bottom:2rem;background:var(--charcoalGrey);color:var(--white);border-radius:.5rem}.styles__viewer-imageviewer___26k0p{flex:1 1 100%;width:auto;max-width:100%}.styles__viewer-imageviewer___26k0p img{display:block;max-width:100%;max-height:100%;box-shadow:0 .375rem 1.5rem 0 rgba(0,0,0,.5)}.styles__viewer-pdfMobile___25FPg{width:100%;height:calc(100% - 6.5rem - var(--flagship-top-height));margin-top:calc(var(--flagship-top-height, 0rem) + -.5rem)}.styles__viewer-pdfMobile--image___3gpFL{width:100%}.styles__ActionMenuDesktop-ActionMenu___1iicy a{padding:0!important}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div{cursor:default}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div:hover{background-color:initial}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div svg{fill:var(--disabledTextColor)}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div p{color:var(--disabledTextColor)}.styles__viewer-wrapper___2GIXH{position:absolute;left:0;right:0;top:0;bottom:0;z-index:var(--zIndex-overlay);overflow:hidden;background:var(--charcoalGrey);color:var(--white)}.styles__flagship-app___KFqbm .styles__viewer-wrapper___2GIXH{padding-top:var(--flagship-top-height);padding-bottom:var(--flagship-bottom-height)}@media (max-width:63.938rem){.styles__viewer-wrapper___2GIXH{color:var(--charcoalGrey);background:var(--white)}}.styles__viewer-nav___1MSd7{position:absolute;top:4rem;bottom:0;z-index:var(--zIndex-modal-toolbar);width:20%;cursor:pointer;background-color:initial;transition:opacity .4s ease-out;opacity:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.styles__viewer-nav--visible___h_KJD:hover{opacity:1;transition:none}.styles__viewer-nav--previous___WOwzv{left:0}.styles__viewer-nav--previous___WOwzv .styles__viewer-nav-arrow___3_d1_{align-self:flex-start;margin-left:2.5rem;transform:rotate(180deg)}.styles__viewer-nav--next___1ah-4{right:0}.styles__viewer-nav--next___1ah-4 .styles__viewer-nav-arrow___3_d1_{align-self:flex-end;margin-right:2.5rem}@media (max-width:63.938rem){.styles__viewer-nav___1MSd7{display:none}}.styles__viewer-nav-arrow___3_d1_{opacity:.7}.styles__viewer-controls___1BYEX{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.styles__viewer-controls___1BYEX.styles__--expanded___2NoA- .styles__viewer-nav___1MSd7{margin-top:0;width:40%}@media (max-width:63.938rem){.styles__viewer-controls--display-content-top___3I1xq{justify-content:flex-start;padding-top:3.5rem}}.styles__viewer-toolbar___2zPR7{position:absolute;top:0;z-index:var(--zIndex-modal-toolbar);display:flex;flex-shrink:0;width:calc(100% - 2rem);padding:0 1rem;height:4rem;transition:opacity .4s ease-out;background:linear-gradient(180deg,var(--charcoalGrey),rgba(50,54,63,0));justify-content:flex-start;align-items:center}.styles__viewer-toolbar--hidden___3r3Sj{opacity:0}@media (max-width:63.938rem){.styles__viewer-toolbar___2zPR7{height:3rem;width:100%;padding:var(--flagship-top-height) 1rem 0 0;background:var(--paperBackgroundColor);border-bottom:1px solid var(--dividerColor)}}.styles__viewer-footer___2ieQS{position:fixed;bottom:0;z-index:var(--zIndex-modal-footer);width:100%;height:3.5rem;padding-bottom:var(--flagship-bottom-height,env(safe-area-inset-bottom));background:var(--paperBackgroundColor)}.styles__wizard-select___2-yNW[aria-disabled=true],.styles__wizard-select___2-yNW[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__wizard-select___2-yNW[aria-disabled=true]:focus,.styles__wizard-select___2-yNW[aria-disabled=true]:hover,.styles__wizard-select___2-yNW[disabled]:focus,.styles__wizard-select___2-yNW[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__wizard-select___2-yNW{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__wizard-select___2-yNW::placeholder{color:var(--coolGrey);font-size:1rem}.styles__wizard-select___2-yNW:hover{border:.063rem solid var(--coolGrey)}.styles__wizard-select___2-yNW:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__wizard-select___2-yNW.styles__is-error___1X2dc,.styles__wizard-select___2-yNW:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__wizard-select--medium___kyH-1{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__wizard-select--medium___kyH-1,.styles__wizard-select___2-yNW{padding-right:2.375rem}.styles__wizard-select___2-yNW{appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__wizard-select___2-yNW::-ms-expand{display:none}.styles__wizard-wrapper___38V4s{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__wizard-main___ObvId{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__wizard-footer___-ZrgM,.styles__wizard-header___2_r05{flex:0 0 auto}.styles__wizard___m6AMR{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard___m6AMR{flex-direction:column;justify-content:flex-start}}.styles__wizard-wrapper___38V4s{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper___38V4s{justify-content:flex-start}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper--center___EWQI3{justify-content:center}}.styles__wizard-errors___1ufSE{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.styles__wizard-errors___1ufSE p{margin:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-errors___1ufSE{margin-top:.5rem}}.styles__wizard-header___2_r05{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-header___2_r05{margin:1rem 0 0}}.styles__wizard-main___ObvId{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.styles__wizard-main___ObvId>*{flex-shrink:0}.styles__wizard-footer___-ZrgM{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem env(safe-area-inset-bottom)}.styles__wizard-footer___-ZrgM>a:link,.styles__wizard-footer___-ZrgM>button{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-footer___-ZrgM{margin:1.5rem 0 .5rem}}.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM{justify-content:space-between}@media (min-width:30.063rem){.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>a:link,.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>button{flex:0 1 calc(50% - 0.25rem)}}.styles__wizard-logo___3Dtx1{position:relative;margin:0 auto;width:7.5rem}.styles__wizard-logo-img___2K1rs{width:100%;vertical-align:center}.styles__wizard-logo-badge___1mcMb{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.styles__wizard-desc___z9QXl{margin:2rem 0 0;line-height:1.5}.styles__wizard-desc___z9QXl a{color:var(--primaryColor);text-decoration:none}.styles__wizard-desc___z9QXl a:focus,.styles__wizard-desc___z9QXl a:hover{color:var(--primaryColorDark)}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-desc___z9QXl{margin:1.5rem 0 0}}.styles__wizard-header-fixed___39FT4{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.styles__wizard-previous___2StGt.styles__wizard-previous___2StGt{position:absolute;top:50%;left:0;transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.styles__wizard-brand____A68K{margin-left:2rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-brand____A68K{display:none}}.styles__wizard-next___38lPl{padding-right:3rem;padding-left:3rem}.styles__wizard-next___38lPl svg{position:absolute;right:1rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-input___1ltuD{border-radius:.125rem;padding:.5rem 1rem .625rem}}.styles__wizard-title___11Dzr{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-title___11Dzr{font-size:1.125rem;line-height:1.78}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard--welcome___2Os7m .styles__wizard-title___11Dzr{font-size:1.5rem;line-height:1.17}}.styles__wizard-dualfield___254s1{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__wizard-dualfield--focus___2Om-l{border-color:var(--primaryColor)}.styles__wizard-dualfield--error___2NR9g{border-color:var(--errorColor)}.styles__wizard-dualfield-wrapper___VN8PM{flex:1 1 auto}.styles__wizard-dualfield-input___2z596{border:0;padding-right:.5rem}.styles__wizard-dualfield-input___2z596:focus,.styles__wizard-dualfield-input___2z596:hover{position:relative;z-index:1;border:0;outline:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-dualfield-input___2z596{border-radius:.125rem;padding:.5rem .25rem .625rem 1rem}}.styles__wizard-protocol___4g-o1{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.styles__wizard-protocol___4g-o1 svg{fill:currentColor;margin-right:.5rem}.styles__wizard-select___2-yNW{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.styles__wizard-select___2-yNW:focus,.styles__wizard-select___2-yNW:hover{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.styles__wizard-select--medium___kyH-1{padding:.313rem 2.375rem .438rem .5rem}.styles__wizard-select--narrow___FTwrG{width:2.5rem}.styles__wizard-notice___2g62X{order:2;margin:2rem 0 0;line-height:1.5}.styles__wizard-notice___2g62X+.styles__wizard-notice___2g62X{margin-top:1rem}.styles__wizard-notice___2g62X p{margin:0}.styles__wizard-notice___2g62X a{color:var(--dodgerBlue);text-decoration:none;font-weight:700}.styles__wizard-notice___2g62X a:focus,.styles__wizard-notice___2g62X a:hover{color:var(--scienceBlue)}@media (min-width:30.063rem){.styles__wizard-notice___2g62X{margin:2rem 0 0}}.styles__wizard-notice--lost___3uoDz{font-size:1rem}.styles__c-actionmenu___IUGX7{z-index:var(--zIndex-popover);border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor)}.styles__c-actionmenu___IUGX7 hr{margin:.313rem 0;border:0;border-top:.063rem solid var(--dividerColor)}.styles__c-actionmenu___IUGX7 [role=button],.styles__c-actionmenu___IUGX7 a,.styles__c-actionmenu___IUGX7 button{display:block;padding:.5rem 2rem .5rem 2.5rem;color:var(--charcoalGrey);text-decoration:none;white-space:nowrap;cursor:pointer}.styles__c-actionmenu___IUGX7 [role=button]:hover,.styles__c-actionmenu___IUGX7 a:hover,.styles__c-actionmenu___IUGX7 button:hover{text-decoration:none}.styles__c-actionmenu___IUGX7{color:var(--primaryTextColor);--iconColor:var(--actionMenuIconColor);padding-bottom:env(safe-area-inset-bottom)}.styles__c-actionmenu___IUGX7 hr{margin-top:0}@media (max-width:48rem){.styles__c-actionmenu___IUGX7{border:0;border-radius:0}}.styles__c-actionmenu--inline___1RWrO{width:16rem}.styles__c-actionmenu-header___2p_ke{box-sizing:border-box;border-bottom:.063rem solid var(--dividerColor);padding:1rem;min-height:4rem;margin-top:-.5rem}.styles__c-actionmenu-item___WzUJQ{padding:.75rem 0;cursor:pointer}.styles__c-actionmenu-item___WzUJQ:hover{background-color:var(--actionColorHover)}.styles__c-actionmenu-radio___38gls{height:1rem;width:1rem;margin-top:.125rem;margin-bottom:0}.styles__c-btn--alert-error___3uH5i,.styles__c-btn--alert-info___1xAkg,.styles__c-btn--alert-success___3PgiM{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:700;font-size:.875rem;text-decoration:none}.styles__c-btn--alert-error___3uH5i{color:#f52d2d!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-error___3uH5i:visited{color:#f52d2d!important}.styles__c-btn--alert-error___3uH5i:active,.styles__c-btn--alert-error___3uH5i:focus,.styles__c-btn--alert-error___3uH5i:hover{color:var(--monza)!important;background-color:#fdcbcb!important;border-color:#fdcbcb!important}.styles__c-btn--alert-info___1xAkg{color:var(--white)!important;border-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1xAkg,.styles__c-btn--alert-info___1xAkg[aria-disabled=true]:hover,.styles__c-btn--alert-info___1xAkg[disabled]:hover{background-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1xAkg:visited{color:var(--white)!important}.styles__c-btn--alert-info___1xAkg:active,.styles__c-btn--alert-info___1xAkg:focus,.styles__c-btn--alert-info___1xAkg:hover{background-color:var(--charcoalGrey)!important;border-color:var(--charcoalGrey)!important}.styles__c-btn--alert-success___3PgiM{color:#35ce68!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-success___3PgiM:visited{color:#35ce68!important}.styles__c-btn--alert-success___3PgiM:active,.styles__c-btn--alert-success___3PgiM:focus,.styles__c-btn--alert-success___3PgiM:hover{color:#08b442!important;background-color:#def7e7!important;border-color:#def7e7!important}.styles__c-alert___dJvZ8{position:fixed;z-index:var(--zIndex-alert);right:0;bottom:calc(3rem + env(safe-area-inset-bottom));left:0;opacity:1;transition:transform .2s ease-out,opacity .2s ease-out;cursor:default;pointer-events:none}@media (prefers-reduced-motion:reduce){.styles__c-alert___dJvZ8{transition:none}}@media (min-width:40rem){.styles__c-alert___dJvZ8{z-index:var(--zIndex-alert);top:1rem;bottom:auto;text-align:center}}.has-modal .styles__c-alert___dJvZ8{z-index:var(--zIndex-alert);bottom:0}.styles__c-alert-wrapper___1VWFK{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;box-sizing:border-box;width:100%;box-shadow:0 .375rem 1.125rem 0 rgba(50,54,63,.23);padding:.813rem 1rem;pointer-events:auto}.styles__c-alert-wrapper___1VWFK p{margin:0;line-height:1.5}.styles__c-alert-wrapper___1VWFK p+button{margin-left:1.5rem}@media (min-width:40rem){.styles__c-alert-wrapper___1VWFK{width:auto;max-width:40rem;padding:1rem 1.5rem;border-radius:.625rem;text-align:left}}.styles__c-alert--hidden___2HD9e{transform:translateY(5rem);opacity:0;transition-timing-function:ease-out}@media (min-width:40rem){.styles__c-alert--hidden___2HD9e{transform:translateY(-5rem)}}.styles__c-alert-title___229Am{font-weight:700}.styles__c-alert--error___g5tIs{color:var(--alertErrorColor);background-color:var(--alertErrorBackgroundColor)}.styles__c-alert--success___2DGDO{color:var(--alertSuccessColor);background-color:var(--alertSuccessBackgroundColor)}.styles__c-alert--info___2EDwe{color:var(--alertInfoColor);background-color:var(--alertInfoBackgroundColor)}.styles__with-transition___3OLmI{transition:transform .1s ease-out}@media (prefers-reduced-motion:reduce){.styles__with-transition___3OLmI{transition:none}}.styles__BottomDrawer-content___IYCrj{z-index:var(--zIndex-drawer);position:fixed;bottom:0;left:0;right:0;width:100%;margin:0;max-height:100vh;overflow-y:auto}.styles__c-btn--regular___1ilYT,.styles__c-btn___3kXsk{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn--regular___1ilYT svg,.styles__c-btn___3kXsk svg{fill:currentColor}.styles__c-btn--regular___1ilYT svg+span,.styles__c-btn___3kXsk svg+span{margin-left:.375rem}.styles__c-btn--regular___1ilYT input,.styles__c-btn___3kXsk input{cursor:pointer}.styles__c-btn--regular___1ilYT>span,.styles__c-btn___3kXsk>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--regular___1ilYT[aria-disabled=true],.styles__c-btn--regular___1ilYT[disabled],.styles__c-btn___3kXsk[aria-disabled=true],.styles__c-btn___3kXsk[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--regular___1ilYT[aria-disabled=true] input,.styles__c-btn--regular___1ilYT[disabled] input,.styles__c-btn___3kXsk[aria-disabled=true] input,.styles__c-btn___3kXsk[disabled] input{cursor:not-allowed}.styles__c-btn--regular___1ilYT[aria-busy=true],.styles__c-btn___3kXsk[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn--regular___1ilYT:visited,.styles__c-btn___3kXsk:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn--regular___1ilYT:active,.styles__c-btn--regular___1ilYT:focus,.styles__c-btn--regular___1ilYT:hover,.styles__c-btn___3kXsk:active,.styles__c-btn___3kXsk:focus,.styles__c-btn___3kXsk:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn--regular___1ilYT[aria-disabled=true]:hover,.styles__c-btn--regular___1ilYT[disabled]:hover,.styles__c-btn___3kXsk[aria-disabled=true]:hover,.styles__c-btn___3kXsk[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn--ghost___Md7mm{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.styles__c-btn--ghost___Md7mm:visited{color:var(--primaryColor)}.styles__c-btn--ghost___Md7mm:active,.styles__c-btn--ghost___Md7mm:focus,.styles__c-btn--ghost___Md7mm:hover{border-color:#c2dcff;background-color:#c2dcff}.styles__c-btn--ghost___Md7mm[aria-disabled=true]:hover,.styles__c-btn--ghost___Md7mm[disabled]:hover{border-color:#c2dcff;background-color:var(--zircon)}.styles__c-btn--highlight___GlDOj{background-color:#35ce68;color:var(--white);border-color:#35ce68}.styles__c-btn--highlight___GlDOj:visited{color:var(--white)}.styles__c-btn--highlight___GlDOj:active,.styles__c-btn--highlight___GlDOj:focus,.styles__c-btn--highlight___GlDOj:hover{border-color:#08b442;background-color:#08b442}.styles__c-btn--highlight___GlDOj[aria-disabled=true]:hover,.styles__c-btn--highlight___GlDOj[disabled]:hover{border-color:#35ce68;background-color:#35ce68}.styles__c-btn--action___3z98K,.styles__c-btn--alpha___2-bRT,.styles__c-btn--close___C19bl{background-color:initial;color:var(--white);border-color:var(--white)}.styles__c-btn--action___3z98K:visited,.styles__c-btn--alpha___2-bRT:visited,.styles__c-btn--close___C19bl:visited{color:var(--white)}.styles__c-btn--action___3z98K:active,.styles__c-btn--action___3z98K:focus,.styles__c-btn--action___3z98K:hover,.styles__c-btn--alpha___2-bRT:active,.styles__c-btn--alpha___2-bRT:focus,.styles__c-btn--alpha___2-bRT:hover,.styles__c-btn--close___C19bl:active,.styles__c-btn--close___C19bl:focus,.styles__c-btn--close___C19bl:hover{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.styles__c-btn--action___3z98K[aria-disabled=true]:hover,.styles__c-btn--action___3z98K[disabled]:hover,.styles__c-btn--alpha___2-bRT[aria-disabled=true]:hover,.styles__c-btn--alpha___2-bRT[disabled]:hover,.styles__c-btn--close___C19bl[aria-disabled=true]:hover,.styles__c-btn--close___C19bl[disabled]:hover{border-color:var(--white);background-color:initial}.styles__c-btn--danger___wzHFo{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.styles__c-btn--danger___wzHFo:visited{color:var(--white)}.styles__c-btn--danger___wzHFo:active,.styles__c-btn--danger___wzHFo:focus,.styles__c-btn--danger___wzHFo:hover{border-color:var(--monza);background-color:var(--monza)}.styles__c-btn--danger___wzHFo[aria-disabled=true]:hover,.styles__c-btn--danger___wzHFo[disabled]:hover{border-color:#f52d2d;background-color:#f52d2d}.styles__c-btn--secondary___1hLVM{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn--secondary___1hLVM,.styles__c-btn--secondary___1hLVM:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn--secondary___1hLVM:active,.styles__c-btn--secondary___1hLVM:focus,.styles__c-btn--secondary___1hLVM:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn--secondary___1hLVM[aria-disabled=true]:hover,.styles__c-btn--secondary___1hLVM[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn--danger-outline___BCng5{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.styles__c-btn--danger-outline___BCng5:visited{color:#f52d2d}.styles__c-btn--danger-outline___BCng5:active,.styles__c-btn--danger-outline___BCng5:focus,.styles__c-btn--danger-outline___BCng5:hover{border-color:#fdcbcb;background-color:#fdcbcb}.styles__c-btn--danger-outline___BCng5[aria-disabled=true]:hover,.styles__c-btn--danger-outline___BCng5[disabled]:hover{border-color:#fdcbcb;background-color:var(--white)}.styles__c-btn--text___33vmu{background-color:initial;color:var(--primaryColor);border-color:transparent}.styles__c-btn--text___33vmu:visited{color:var(--primaryColor)}.styles__c-btn--text___33vmu:active,.styles__c-btn--text___33vmu:focus,.styles__c-btn--text___33vmu:hover,.styles__c-btn--text___33vmu[aria-disabled=true]:hover,.styles__c-btn--text___33vmu[disabled]:hover{border-color:transparent;background-color:initial}.styles__c-btn--text___33vmu:focus,.styles__c-btn--text___33vmu:hover{color:var(--primaryColorDark)}.styles__c-btn--action___3z98K{border-color:transparent;padding:.5rem;opacity:.5}.styles__c-btn--action___3z98K:active,.styles__c-btn--action___3z98K:focus,.styles__c-btn--action___3z98K:hover{background-color:initial;border-color:transparent}.styles__c-btn--close___C19bl{border-color:transparent;padding:.5rem}.styles__c-btn--close___C19bl:active,.styles__c-btn--close___C19bl:focus,.styles__c-btn--close___C19bl:hover{background-color:initial;border-color:transparent}.styles__c-btn--left___3f1zH>span{justify-content:flex-start}.styles__c-btn--center___Nny0n>span{justify-content:center}.styles__c-btn--right___1B9Tn>span{justify-content:flex-end}.styles__c-btn___3kXsk.styles__c-btn--tiny___fK37G{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.styles__c-btn___3kXsk.styles__c-btn--small___9JKyq{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.styles__c-btn___3kXsk.styles__c-btn--large___3PnsT{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.styles__c-btn___3kXsk.styles__c-btn--full___1VumB{width:100%;margin-left:0;margin-right:0}.styles__c-btn___3kXsk.styles__c-btn--narrow___erKsd,.styles__c-btn___3kXsk.styles__c-btn--round___35GfW{min-width:auto}.styles__c-btn___3kXsk.styles__c-btn--round___35GfW{border-radius:100%;min-height:auto;padding:.25rem}.styles__c-btn___3kXsk.styles__c-btn--round___35GfW svg{width:.625rem;height:.625rem}@media (pointer:coarse){.styles__c-btn___3kXsk.styles__c-btn--round___35GfW:after{content:\"\";position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.styles__c-btn--subtle___2rRQ0{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:initial;background:transparent;cursor:pointer;font-size:.875rem;font-weight:700;text-transform:uppercase}.styles__c-btn--subtle___2rRQ0:active,.styles__c-btn--subtle___2rRQ0:focus,.styles__c-btn--subtle___2rRQ0:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___2rRQ0>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--subtle___2rRQ0[aria-disabled=true],.styles__c-btn--subtle___2rRQ0[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--subtle___2rRQ0[aria-disabled=true]:hover,.styles__c-btn--subtle___2rRQ0[disabled]:hover{background:transparent}.styles__c-btn--subtle___2rRQ0[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.styles__c-btn--subtle___2rRQ0[aria-busy=true]:hover{background:transparent}.styles__c-btn--subtle___2rRQ0:active,.styles__c-btn--subtle___2rRQ0:focus,.styles__c-btn--subtle___2rRQ0:hover,.styles__c-btn--subtle___2rRQ0:visited{color:var(--primaryColorDark);background:transparent}*+.styles__c-btn--subtle___2rRQ0{margin-left:.063rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--tiny___fK37G{min-height:0;min-width:0;padding:0;font-size:.563rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--small___9JKyq{min-height:0;min-width:0;padding:0;font-size:.75rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--large___3PnsT{min-height:0;min-width:0;padding:0;font-size:1rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo{color:#f52d2d}.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo:hover{color:var(--monza)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj{color:#35ce68}.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj:hover{color:#08b442}.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT{color:var(--regularButtonSecondaryColor)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM{color:var(--slateGrey)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:hover{color:var(--charcoalGrey)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:active svg,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:focus svg,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:hover svg{color:var(--slateGrey)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM svg{color:var(--coolGrey)}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm- [data-action=label],.u-hide{display:none!important;visibility:hidden!important}.styles__c-actionbtn-label___1BCiN,.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__c-actionbtn___294nr{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-actionbtn___294nr svg{fill:currentColor}.styles__c-actionbtn___294nr svg+span{margin-left:.375rem}.styles__c-actionbtn___294nr input{cursor:pointer}.styles__c-actionbtn___294nr>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-actionbtn___294nr[aria-disabled=true],.styles__c-actionbtn___294nr[disabled]{opacity:.5;cursor:not-allowed}.styles__c-actionbtn___294nr[aria-disabled=true] input,.styles__c-actionbtn___294nr[disabled] input{cursor:not-allowed}.styles__c-actionbtn___294nr[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-actionbtn___294nr:visited{color:var(--regularButtonConstrastColor)}.styles__c-actionbtn___294nr:active,.styles__c-actionbtn___294nr:focus,.styles__c-actionbtn___294nr:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-actionbtn___294nr[aria-disabled=true]:hover,.styles__c-actionbtn___294nr[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-{min-width:auto}.styles__c-actionbtn___294nr{border-color:var(--silver);text-transform:none;max-width:12.5rem;min-height:2rem;width:100%;padding-right:.5rem;text-align:left;line-height:1.3;outline:0}.styles__c-actionbtn___294nr>span{justify-content:flex-start;flex-wrap:nowrap}.styles__c-actionbtn___294nr [data-action=icon]{border-left:.063rem solid var(--dividerColor)}.styles__c-actionbtn___294nr:not([disabled]):focus [data-action=icon],.styles__c-actionbtn___294nr:not([disabled]):hover [data-action=icon]{border-color:currentColor}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-{position:relative;border:0;background-color:initial;padding:0;margin:0;min-height:2rem;width:2.5rem}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm->span{justify-content:center}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm- [data-action=icon]{border-left:none;margin-left:0;padding:0}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-:focus,.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-:hover{background-color:var(--paleGrey);border:0}.styles__c-actionbtn--normal___5JbA8{background-color:var(--paleGrey);color:var(--charcoalGrey);border-color:var(--silver)}.styles__c-actionbtn--normal___5JbA8 [data-action=icon]{border-color:var(--silver)}.styles__c-actionbtn--normal___5JbA8:focus,.styles__c-actionbtn--normal___5JbA8:hover{background-color:var(--silver);border-color:var(--silver)}.styles__c-actionbtn--normal___5JbA8[aria-disabled=true]:hover,.styles__c-actionbtn--normal___5JbA8[disabled]:hover{background-color:var(--paleGrey)}.styles__c-actionbtn--error___3opWY{background-color:var(--chablis);color:#f52d2d;border-color:#fdcbcb}.styles__c-actionbtn--error___3opWY [data-action=icon]{border-color:#fdcbcb}.styles__c-actionbtn--error___3opWY:focus,.styles__c-actionbtn--error___3opWY:hover{background-color:#fdcbcb;border-color:#fdcbcb}.styles__c-actionbtn--error___3opWY[aria-disabled=true]:hover,.styles__c-actionbtn--error___3opWY[disabled]:hover{background-color:var(--chablis)}.styles__c-actionbtn--new___2cPsw{background-color:var(--zircon);color:var(--dodgerBlue);border:.063rem dashed #c2dcff}.styles__c-actionbtn--new___2cPsw [data-action=icon]{border-color:#c2dcff}.styles__c-actionbtn--new___2cPsw:focus,.styles__c-actionbtn--new___2cPsw:hover{background-color:#c2dcff;border-color:#c2dcff}.styles__c-actionbtn--new___2cPsw[aria-disabled=true]:hover,.styles__c-actionbtn--new___2cPsw[disabled]:hover{background-color:var(--zircon)}.styles__c-actionbtn--new___2cPsw:focus:not([disabled]),.styles__c-actionbtn--new___2cPsw:hover:not([disabled]){border-style:solid}.styles__c-actionbtn-label___1BCiN{padding-right:.5rem}.styles__c-actionbtn-icon___1rgZf{display:block;margin-left:auto;padding-left:.5rem}.styles__c-actionbtn-icon___1rgZf svg{display:block}.styles__c-chip___3sc2k{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.styles__c-chip--round___2_oss{width:2.5rem;text-align:center;justify-content:center}.styles__c-chip--tinySize___3Dsfw{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.styles__c-chip--smallSize___lf4ip{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.styles__c-chip--normalSize___ZCdYE{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.styles__c-chip--outlinedVariant___1j_bo{border:1px solid}.styles__c-chip--dashedVariant___3pDfw{border:1px dashed}.styles__c-chip--normalTheme___gBU5V{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.styles__c-chip--primaryTheme___2ra2n{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.styles__c-chip--errorTheme___1v_aF{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.styles__c-chip--hoverableNormalTheme___3VGJe{color:var(--charcoalGrey)}.styles__c-chip--hoverableNormalTheme___3VGJe:focus,.styles__c-chip--hoverableNormalTheme___3VGJe:hover{background-color:var(--silver)}.styles__c-chip--hoverablePrimaryTheme___2EiKE:focus,.styles__c-chip--hoverablePrimaryTheme___2EiKE:hover{background-color:var(--primaryBackgroundLight)}.styles__c-chip--normalPrimaryTheme___BNWJ3{background-color:var(--primaryColor);color:var(--white)}.styles__c-chip--hoverableErrorTheme___1sVT6:focus,.styles__c-chip--hoverableErrorTheme___1sVT6:hover{background-color:var(--errorColorLight)}.styles__c-chip--outlinedNormalTheme___2H2PP{background-color:initial}.styles__c-chip--clickable___1Bews{cursor:pointer}.styles__c-chip-separator___2C0c5{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.styles__c-chip-button___3ocF4{cursor:pointer;color:var(--slateGrey)}.styles__c-chip-button--disabled___3T0Bs{color:var(--coolGrey)}.styles__CompositeRow___1Dmi2{min-height:3rem;padding:1rem}.styles__CompositeRow__dense___3p1f3{padding-top:0;padding-bottom:0}.styles__CompositeRow__body___1Bjsp>*+*{margin-top:2px}.styles__gridItem-container___2Xeyk{text-align:center;box-sizing:border-box;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__Infos___tpCYh{position:relative;border-radius:8px;padding:1rem 1.5rem}@media (max-width:48rem){.styles__Infos___tpCYh{padding:.75rem 1rem}}.styles__Infos___tpCYh.styles__Infos--primary____iqfw{background-color:var(--primaryColorLightBackground)}.styles__Infos___tpCYh.styles__Infos--secondary___2rlHM{background-color:var(--neutralBackground)}.styles__Infos___tpCYh.styles__Infos--danger___1HWww{background-color:var(--errorBackground)}.styles__Infos-description___3q8sW{max-width:32rem}.styles__Info-close___EnUCb{position:absolute;top:0;right:0;padding:.75rem}.styles__InfosCarrousel___1-aJZ{position:relative}.styles__InfosCarrousel-navigation___2Cm0M{position:absolute;display:flex;align-items:center;height:2.5rem;bottom:1rem;right:1rem;box-sizing:border-box}@media (max-width:48rem){.styles__InfosCarrousel-navigation___2Cm0M{height:2.5rem;bottom:.75rem;right:.75rem}}.styles__InfosCarrousel-separator___3GYRV{border-left:1px solid var(--dividerColor);height:1rem;margin:0 .5rem}.styles__c-inline-card___1a8Og{display:inline-block;border:.063rem solid var(--silver);box-shadow:0 0 .625rem rgba(0,0,0,.1);padding:.375rem}.styles__intentModal___1NbfY{height:90vh}@media (max-width:48rem){.styles__intentModal___1NbfY{height:100%;width:100%}}.styles__intentModal___1NbfY>div{height:100%;max-width:unset!important}.styles__intentModal___1NbfY .styles__intentModal__cross___1ISTs{top:.25rem;right:.5rem}.styles__media___1rIBu{display:flex;align-items:center}.styles__media--top___1t0j5{align-items:flex-start}.styles__media--bottom___XsQQe{align-items:flex-end}.styles__bd___3SAX2{flex:1 1 auto;overflow:hidden}.styles__img___3sztD{line-height:0;flex:0 0 auto}html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}body,html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;margin:0}@media (max-width:63.938rem){body,html{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}body,html{background-color:var(--white);color:var(--black)}[data-input=checkbox],[data-input=radio]{display:flex}[data-input=checkbox] input[type=checkbox],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=radio] input[type=radio]{display:none!important;visibility:hidden!important}[data-input=checkbox] label,[data-input=radio] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=checkbox] label:after,[data-input=checkbox] label:before,[data-input=radio] label:after,[data-input=radio] label:before{content:\"\";position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=checkbox] label:before,[data-input=radio] label:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1)}[data-input=checkbox] label:after,[data-input=radio] label:after{transition-duration:.2s;transition-property:opacity,transform}[data-input=radio] label:before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked+label:before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label:after,[data-input=checkbox] label:before{border-radius:.125rem}[data-input=checkbox] label:before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label:before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain}[data-input=checkbox][aria-checked=mixed] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked+label:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked+label:after{opacity:1;transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked)+label:after{opacity:0;transform:scale(0)}.styles__c-modal___dljYk{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__c-modal-content___22N4k{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__c-modal-footer___3JCxm,.styles__c-modal-header--branded___17z1P,.styles__c-modal-header___38uqi{flex:0 0 auto}.styles__c-modal-container___1AAl5{position:relative;z-index:var(--zindex-modal)}.styles__c-modal-wrapper___y79-C{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100vw;height:100%;overflow-y:auto;padding:3rem}@media (max-width:48rem){.styles__c-modal-wrapper___y79-C{justify-content:center;padding:1.5rem}}@media (max-width:30rem){.styles__c-modal-wrapper___y79-C{padding:.5rem}}.styles__c-modal___dljYk{position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__c-modal--xsmall___VxVzh{width:24rem}@media (max-width:25rem){.styles__c-modal--xsmall___VxVzh{width:100%}}.styles__c-modal--small___3xSfG{width:34rem}@media (max-width:35rem){.styles__c-modal--small___3xSfG{width:100%}}.styles__c-modal--medium___2Pu0O{width:36rem}@media (max-width:39rem){.styles__c-modal--medium___2Pu0O{width:100%}}.styles__c-modal--large___2k5qx{width:40rem}@media (max-width:46rem){.styles__c-modal--large___2k5qx{width:100%}}.styles__c-modal--xlarge___ZLRMN{width:50rem}@media (max-width:56rem){.styles__c-modal--xlarge___ZLRMN{width:100%}}.styles__c-modal--xxlarge___18Had{width:60rem}@media (max-width:66rem){.styles__c-modal--xxlarge___18Had{width:100%}}@media (max-width:48rem){.styles__c-modal-wrapper___y79-C.styles__c-modal-wrapper--fullscreen___3oSPW{padding:0}}@media (max-width:48rem){.styles__c-modal___dljYk.styles__c-modal--fullscreen___4RcnS{height:100%;width:100%;border-radius:0;box-sizing:border-box}}.styles__c-modal-header--branded___17z1P,.styles__c-modal-header___38uqi{margin:0 0 1rem;padding:1.687rem 3rem 0 2rem;overflow:visible;min-height:2.5rem}.styles__c-modal-header--branded___17z1P h2,.styles__c-modal-header___38uqi h2{margin:0;font-weight:700}@media (max-width:30rem){.styles__c-modal-header--branded___17z1P,.styles__c-modal-header___38uqi{margin-bottom:.5rem;padding:1.187rem 2rem 0 1.5rem}.styles__c-modal-header--branded___17z1P h2,.styles__c-modal-header___38uqi h2{font-size:1.25rem}}.styles__c-modal-header--branded___17z1P{padding:1rem 3rem}.styles__c-modal-header--branded___17z1P img{display:block;max-height:3.5rem;margin:0 auto}.styles__c-modal-illu-header--ghost___1gH1t,.styles__c-modal-illu-header___2UbH8{display:flex;align-items:center;justify-content:center;margin:0 0 1rem;max-width:100%}.styles__c-modal-illu-header--ghost___1gH1t>*,.styles__c-modal-illu-header___2UbH8>*{max-width:inherit}.styles__c-modal-illu-header--ghost___1gH1t{position:absolute;left:0;right:0;top:1rem;margin:.5rem 0;opacity:0;max-height:2rem;transition:opacity .15s ease-in,top .15s ease-in 50ms}.styles__c-modal-illu-header--ghost___1gH1t>*{max-height:inherit}.styles__c-modal-illu-header--ghost___1gH1t.styles__is-active___JlHre{top:0;opacity:1;transition:opacity .15s ease-in 50ms,top .15s ease-in}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-header___38uqi{padding:1.187rem 3rem 0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-header___38uqi{padding:.687rem 2rem 0 1rem}}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-header___38uqi{padding:2.687rem 3rem 0}@media (max-width:48rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-header___38uqi{padding:1.687rem 2rem 0}}.styles__c-modal-app___2FX9h{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__c-app-editor___3FI4Z{font-weight:400}.styles__c-modal-app-icon___3iNz6{height:1.125rem;margin-right:.5rem}.styles__c-modal-content-fixed___1F97i{border-bottom:.063rem solid var(--dividerColor);flex:0 0 auto;padding:0 2rem}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content-fixed___1F97i{padding:0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content-fixed___1F97i{padding:0 1rem}}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content-fixed___1F97i{padding:0 3rem}@media (max-width:30rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content-fixed___1F97i{padding:0 2rem}}.styles__c-modal-content___22N4k{padding:0 2rem}.styles__c-modal-content___22N4k:last-child{padding-bottom:2rem;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}@media (max-width:30rem){.styles__c-modal-content___22N4k{padding:0 1.5rem}.styles__c-modal-content___22N4k:last-child{padding-bottom:1.5rem}}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k{padding:0 1.5rem}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k:last-child{padding-bottom:1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k{padding:0 1rem}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k:last-child{padding-bottom:1rem}}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k{padding:0 3rem}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k:last-child{padding-bottom:3rem}@media (max-width:48rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k{padding:0 2rem}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k:last-child{padding-bottom:2rem}}.styles__c-modal-footer___3JCxm{padding:1rem 1.25rem 1.25rem}.styles__c-modal-footer--button___3AdGX button{margin-bottom:.25rem}@media (max-width:48rem){.styles__c-modal-footer--button___3AdGX button{min-width:calc(50% - .5rem)}}.styles__c-modal-section___2LJKl{border-top:.063rem solid var(--dividerColor)}.styles__c-modal-close___1M8Jn{box-sizing:border-box;position:absolute;top:1.5rem;right:1.5rem;margin:0;padding:.5rem;background-color:initial;border:0;cursor:pointer;display:block;width:2.5rem;height:2.5rem;z-index:1}@media (max-width:30rem){.styles__c-modal-close___1M8Jn{top:.813rem;right:1rem}}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-close___1M8Jn{top:1rem;right:1rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-close___1M8Jn{top:.313rem;right:.5rem}}.styles__c-modal--closable___3Wo68 .styles__c-modal-header___38uqi{padding-right:4.5rem}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-close___1M8Jn{top:2.5rem;right:2.5rem}@media (max-width:48rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-close___1M8Jn{top:1.313rem;right:1.5rem}}.styles__c-modal-close--notitle___3dCIQ{top:.375rem;right:.375rem}.styles__c-modal--overflowHidden___1QDY9{overflow:hidden}.styles__c-modal-back-button___AjaZO{top:.375rem;left:.375rem;color:var(--coolGrey)}@media (max-width:48rem){.styles__c-modal-back-button___AjaZO{top:0;left:0}}.styles__c-modal-close--notitle___3dCIQ+.styles__c-modal-content___22N4k{margin-top:3rem}.styles__NarrowContent___2rvIN{max-width:32rem}.styles__c-overlay___8W1LN{z-index:var(--zIndex-overlay);position:fixed;top:0;left:0;height:100%;width:100%;background:var(--overlay);visibility:visible;transition:opacity .3s,visibility 0s ease-out}.styles__PercentageBar___1cT4_{background-color:var(--defaultBackgroundColor);border:1px solid var(--borderMainColor);height:1.5rem;border-radius:4px}.styles__PercentageBar___1cT4_ .styles__PercentageBar__line___2AheW{height:100%;border-radius:4px}.PercentageLine__PercentageLine___VIEsK{transition:transform .3s ease;transform-origin:0 0;height:5px}.styles__c-btn-client___2ZSQt{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn-client___2ZSQt svg{fill:currentColor}.styles__c-btn-client___2ZSQt svg+span{margin-left:.375rem}.styles__c-btn-client___2ZSQt input{cursor:pointer}.styles__c-btn-client___2ZSQt>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn-client___2ZSQt[aria-disabled=true],.styles__c-btn-client___2ZSQt[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn-client___2ZSQt[aria-disabled=true] input,.styles__c-btn-client___2ZSQt[disabled] input{cursor:not-allowed}.styles__c-btn-client___2ZSQt[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn-client___2ZSQt:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn-client___2ZSQt:active,.styles__c-btn-client___2ZSQt:focus,.styles__c-btn-client___2ZSQt:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn-client___2ZSQt[aria-disabled=true]:hover,.styles__c-btn-client___2ZSQt[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn-client___2ZSQt{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn-client___2ZSQt,.styles__c-btn-client___2ZSQt:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn-client___2ZSQt:active,.styles__c-btn-client___2ZSQt:focus,.styles__c-btn-client___2ZSQt:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn-client___2ZSQt[aria-disabled=true]:hover,.styles__c-btn-client___2ZSQt[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn-client___2ZSQt{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:initial;text-align:left;font-size:.813rem;font-weight:700;line-height:1.3;color:var(--slateGrey)}.styles__c-btn-client___2ZSQt:visited{color:var(--slateGrey)}.styles__c-btn-client___2ZSQt span{flex:0 1 auto}.styles__c-btn-client___2ZSQt figure{flex:0 0 2rem;margin:0 .75rem 0 0}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}@media (max-width:63.938rem){.u-hide--mob{display:none!important}}@media (min-width:64rem){.u-hide--tablet{display:none!important}}@media (min-width:48.063rem){.u-hide--desk{display:none!important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap}.u-ellipsis,.u-spacellipsis{overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:\"[...]\"){.u-midellipsis>:first-child{text-overflow:\"[...]\"}}.u-link:link{color:var(--linkColor)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:active,.u-link:focus,.u-link:hover,.u-link:visited{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important}.u-fz-small,.u-fz-xsmall{line-height:1.4!important}.u-fz-small{font-size:.875rem!important}.u-fz-medium{font-size:1rem!important}.u-fz-large,.u-fz-medium{line-height:1.5!important}.u-fz-large{font-size:1.125rem!important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}@media (max-width:30rem){.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}}@media (max-width:48rem){.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}@media (max-width:30rem){.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}}@media (max-width:48rem){.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}}.styles__c-input-radio___1f4CB{display:flex;align-items:center;min-width:1rem;min-height:1rem}.styles__c-input-radio___1f4CB span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.styles__c-input-radio___1f4CB span:after,.styles__c-input-radio___1f4CB span:before{content:\"\";position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.styles__c-input-radio___1f4CB span:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);transform:translateY(-50%)}.styles__c-input-radio___1f4CB span:hover:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___1f4CB span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,transform}.styles__c-input-radio___1f4CB[aria-checked=mixed] span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}.styles__c-input-radio___1f4CB[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.styles__c-input-radio___1f4CB[aria-disabled=true] :hover:before{box-shadow:inset 0 0 0 .125rem var(--silver)}.styles__c-input-radio___1f4CB[aria-disabled=true] :before{background-color:var(--paleGrey)}.styles__c-input-radio___1f4CB input{border:0;clip:rect(0 0 0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.styles__c-input-radio___1f4CB input:focus+span:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___1f4CB input:checked+span:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.styles__c-input-radio___1f4CB input:checked+span:after{opacity:1;transform:translateY(-50%) scale(1)}.styles__c-input-radio___1f4CB input:not(:checked)+span:after{opacity:0;transform:translateY(-50%) scale(0)}.styles__c-input-radio___1f4CB.styles__is-error___5jyha span{color:var(--pomegranate)}.styles__c-input-radio___1f4CB.styles__is-error___5jyha span:before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.styles__c-input-radio--noGutter___2gFTH span{padding-left:0}.styles__c-input-radio___1f4CB span:after,.styles__c-input-radio___1f4CB span:before{border-radius:50%}.styles__c-input-radio___1f4CB span:after{content:\"\";background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.styles__Breadcrumb___2p17B{display:flex;align-items:center;color:var(--primaryTextColor)}.styles__Breadcrumb__previousButton___1FEmP.styles__Breadcrumb__previousButton___1FEmP{margin-left:-.75rem;margin-right:.25rem}.styles__Breadcrumb__items___C99rj{flex-grow:1}.styles__Breadcrumb__previousItems___20hGg{display:flex}.styles__BreadcrumbSeparator___37ZIH{display:inline-block;margin-left:.125rem;margin-right:.125rem}", ""]); +exports.push([module.i, ".styles__c-actionmenu___22Fp1{z-index:40;border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor)}.styles__c-actionmenu___22Fp1 hr{margin:.313rem 0;border:0;border-top:.063rem solid var(--dividerColor)}.styles__c-actionmenu___22Fp1 [role=button],.styles__c-actionmenu___22Fp1 a,.styles__c-actionmenu___22Fp1 button{display:block;padding:.5rem 2rem .5rem 2.5rem;color:var(--charcoalGrey);text-decoration:none;white-space:nowrap;cursor:pointer}.styles__c-actionmenu___22Fp1 [role=button]:hover,.styles__c-actionmenu___22Fp1 a:hover,.styles__c-actionmenu___22Fp1 button:hover{text-decoration:none}.styles__c-actionmenu___22Fp1{color:var(--primaryTextColor);--iconColor:var(--actionMenuIconColor);padding-bottom:env(safe-area-inset-bottom)}.styles__c-actionmenu___22Fp1 hr{margin-top:0}@media (max-width:48rem){.styles__c-actionmenu___22Fp1{border:0;border-radius:0}}.styles__c-actionmenu--inline___1SXZa{width:16rem}.styles__c-actionmenu-header___2rcGc{box-sizing:border-box;border-bottom:.063rem solid var(--dividerColor);padding:1rem;min-height:4rem;margin-top:-.5rem}.styles__c-actionmenu-item___gODqd{padding:.75rem 0;cursor:pointer}.styles__c-actionmenu-item___gODqd:hover{background-color:var(--actionColorHover)}.styles__c-actionmenu-radio___Km9uj{height:1rem;width:1rem;margin-top:.125rem;margin-bottom:0}.styles__c-btn--alert-error___12LBy,.styles__c-btn--alert-info___1BO12,.styles__c-btn--alert-success___3Z6sE{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:700;font-size:.875rem;text-decoration:none}.styles__c-btn--alert-error___12LBy{color:#f52d2d!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-error___12LBy:visited{color:#f52d2d!important}.styles__c-btn--alert-error___12LBy:active,.styles__c-btn--alert-error___12LBy:focus,.styles__c-btn--alert-error___12LBy:hover{color:var(--monza)!important;background-color:#fdcbcb!important;border-color:#fdcbcb!important}.styles__c-btn--alert-info___1BO12{color:var(--white)!important;border-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1BO12,.styles__c-btn--alert-info___1BO12[aria-disabled=true]:hover,.styles__c-btn--alert-info___1BO12[disabled]:hover{background-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1BO12:visited{color:var(--white)!important}.styles__c-btn--alert-info___1BO12:active,.styles__c-btn--alert-info___1BO12:focus,.styles__c-btn--alert-info___1BO12:hover{background-color:var(--charcoalGrey)!important;border-color:var(--charcoalGrey)!important}.styles__c-btn--alert-success___3Z6sE{color:#35ce68!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-success___3Z6sE:visited{color:#35ce68!important}.styles__c-btn--alert-success___3Z6sE:active,.styles__c-btn--alert-success___3Z6sE:focus,.styles__c-btn--alert-success___3Z6sE:hover{color:#08b442!important;background-color:#def7e7!important;border-color:#def7e7!important}.styles__c-alert___f9mWB{position:fixed;z-index:80;right:0;bottom:calc(3rem + env(safe-area-inset-bottom));left:0;opacity:1;transition:transform .2s ease-out,opacity .2s ease-out;cursor:default;pointer-events:none}@media (prefers-reduced-motion:reduce){.styles__c-alert___f9mWB{transition:none}}@media (min-width:40rem){.styles__c-alert___f9mWB{z-index:80;top:1rem;bottom:auto;text-align:center}}.has-modal .styles__c-alert___f9mWB{z-index:80;bottom:0}.styles__c-alert-wrapper___3fLCt{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;box-sizing:border-box;width:100%;box-shadow:0 .375rem 1.125rem 0 rgba(50,54,63,.23);padding:.813rem 1rem;pointer-events:auto}.styles__c-alert-wrapper___3fLCt p{margin:0;line-height:1.5}.styles__c-alert-wrapper___3fLCt p+button{margin-left:1.5rem}@media (min-width:40rem){.styles__c-alert-wrapper___3fLCt{width:auto;max-width:40rem;padding:1rem 1.5rem;border-radius:.625rem;text-align:left}}.styles__c-alert--hidden___22Mz1{transform:translateY(5rem);opacity:0;transition-timing-function:ease-out}@media (min-width:40rem){.styles__c-alert--hidden___22Mz1{transform:translateY(-5rem)}}.styles__c-alert-title___2O1D_{font-weight:700}.styles__c-alert--error___oA-NC{color:var(--alertErrorColor);background-color:var(--alertErrorBackgroundColor)}.styles__c-alert--success___1Cs5b{color:var(--alertSuccessColor);background-color:var(--alertSuccessBackgroundColor)}.styles__c-alert--info___3mqAh{color:var(--alertInfoColor);background-color:var(--alertInfoBackgroundColor)}.styles__c-loading-placeholder___3L6Gz{animation-delay:.1s;animation-duration:2s;animation-iteration-count:infinite;animation-name:styles__placeHolderShimmer___3Rei_;animation-timing-function:linear;background-position:-20rem 0;background-image:linear-gradient(90deg,silver 0,#fcfcfc 50%,silver);background-size:20rem 10rem;background-repeat:no-repeat;background-color:silver;border-radius:.15rem;max-width:100%;position:relative;margin:.1rem 0}.styles__c-app-icon___2_O40,.styles__c-app-icon___2_O40 svg{height:100%;width:100%;flex-grow:0;flex-shrink:0;object-fit:contain}.styles__c-app-icon-default___3CEmt{color:var(--silver)}@-webkit-keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}@keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}.Sections__Sections__section___2onYy{margin-bottom:4rem}.AppsSection__AppsSection___3WHhE{margin-bottom:1rem}.AppsSection__AppsSection__list___2Uy0E{display:flex;flex-wrap:wrap;justify-content:flex-start}.DropdownFilter__Dropdown__icon___19QZN{padding:0 .5rem}@media (max-width:48rem){.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__control___3-04c{padding:.5rem .5rem .5rem .2rem;border-radius:0;height:2.75rem}.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__menu___XLfYX{top:2rem}.DropdownFilter__Dropdown___afcWb>div{max-width:none}}.styles__AppTile-icon___1f0c0{object-fit:contain;max-width:100%;width:auto}.styles__AppTile-icon--default___1tjiF{height:100%;padding:0 .5em}.styles__AppTile-icon-maintenance___2VOvO{position:absolute;border:2px solid var(--primaryContrastTextColor);border-radius:50%;background:var(--primaryContrastTextColor);bottom:80px;left:80px}@media (max-width:48rem){.styles__AppTile-icon-maintenance___2VOvO{bottom:6px;left:40px}}.styles__AppTile-container-maintenance___u1a1M{filter:grayscale(1);opacity:.64}.styles__c-apptitle___eqV9l{display:inline-flex;align-items:center;margin:0}.styles__c-avatar___PpDI-{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:$low-index}.styles__c-avatar___PpDI- svg{width:50%;height:50%}.styles__c-avatar-image___3yJnb{width:100%}.styles__c-avatar___PpDI-{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-avatar--xsmall___3H2Io{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:.4386rem}.styles__c-avatar--small___1Y_Pv{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:.87719rem}.styles__c-avatar--large___1Z_HZ{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:1.31579rem}.styles__c-avatar--xlarge___3Qe0b{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:1.75439rem}.styles__c-avatar-initials___310qC{font-weight:700;line-height:1}.styles__c-avatar--text___2dvna{color:#fff}.styles__c-avatar--disabled___xoLOy.styles__c-avatar--image___jDBci{background-color:#fff!important}.styles__c-avatar--disabled___xoLOy:not(.styles__c-avatar--image___jDBci){background-color:var(--silver)!important}.styles__c-avatar--disabled___xoLOy .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-avatar--ghost___3898R{background-color:initial!important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.styles__c-avatar--ghost___3898R .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-banner-wrapper___3KlaG{display:flex;align-items:center;min-height:3.5rem;padding:0 1rem}@media (max-width:48rem){.styles__c-banner-wrapper___3KlaG{padding:0}}.styles__c-banner-icon___1f_LM{width:2rem;height:2rem;margin-left:1rem}.styles__c-banner-icon___1f_LM>svg{width:2rem;height:2rem}.styles__c-banner-icon___1f_LM div{width:2rem;height:2rem;min-width:2rem;min-height:2rem}.styles__c-banner-text___1sTVC{padding:.75rem 1rem}.styles__c-banner-buttons___3sLgG button{margin:0;min-width:3rem}.styles__BarButton___3z5Er{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem}:root{--barIconColor:var(--coolGrey);--barIconColorDisabled:var(--silver)}.styles__BarButtonIcon___1pSOT{color:var(--barIconColor)}.styles__BarButton--disabled___5e3Ll .styles__BarButtonIcon___1pSOT{color:var(--barIconColorDisabled)}.styles__BarTitle___I5r2e{margin:0;height:3rem;display:flex;align-items:center;font-size:1.125rem}.styles__with-transition___1dzf9{transition:transform .1s ease-out}@media (prefers-reduced-motion:reduce){.styles__with-transition___1dzf9{transition:none}}.styles__BottomDrawer-content___2xiuD{z-index:60;position:fixed;bottom:0;left:0;right:0;width:100%;margin:0;max-height:100vh;overflow-y:auto}.styles__Breadcrumb___lSOZg{display:flex;align-items:center;color:var(--primaryTextColor)}.styles__Breadcrumb__previousButton___Jcvx7.styles__Breadcrumb__previousButton___Jcvx7{margin-left:-.75rem;margin-right:.25rem}.styles__Breadcrumb__items___2ozfJ{flex-grow:1}.styles__Breadcrumb__previousItems___IzmVu{display:flex}.styles__BreadcrumbSeparator___I81AU{display:inline-block;margin-left:.125rem;margin-right:.125rem}.styles__c-btn--regular___2HUly,.styles__c-btn___-2Vnj{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn--regular___2HUly svg,.styles__c-btn___-2Vnj svg{fill:currentColor}.styles__c-btn--regular___2HUly svg+span,.styles__c-btn___-2Vnj svg+span{margin-left:.375rem}.styles__c-btn--regular___2HUly input,.styles__c-btn___-2Vnj input{cursor:pointer}.styles__c-btn--regular___2HUly>span,.styles__c-btn___-2Vnj>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--regular___2HUly[aria-disabled=true],.styles__c-btn--regular___2HUly[disabled],.styles__c-btn___-2Vnj[aria-disabled=true],.styles__c-btn___-2Vnj[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--regular___2HUly[aria-disabled=true] input,.styles__c-btn--regular___2HUly[disabled] input,.styles__c-btn___-2Vnj[aria-disabled=true] input,.styles__c-btn___-2Vnj[disabled] input{cursor:not-allowed}.styles__c-btn--regular___2HUly[aria-busy=true],.styles__c-btn___-2Vnj[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn--regular___2HUly:visited,.styles__c-btn___-2Vnj:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn--regular___2HUly:active,.styles__c-btn--regular___2HUly:focus,.styles__c-btn--regular___2HUly:hover,.styles__c-btn___-2Vnj:active,.styles__c-btn___-2Vnj:focus,.styles__c-btn___-2Vnj:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn--regular___2HUly[aria-disabled=true]:hover,.styles__c-btn--regular___2HUly[disabled]:hover,.styles__c-btn___-2Vnj[aria-disabled=true]:hover,.styles__c-btn___-2Vnj[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn--ghost___1HC3L{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.styles__c-btn--ghost___1HC3L:visited{color:var(--primaryColor)}.styles__c-btn--ghost___1HC3L:active,.styles__c-btn--ghost___1HC3L:focus,.styles__c-btn--ghost___1HC3L:hover{border-color:#c2dcff;background-color:#c2dcff}.styles__c-btn--ghost___1HC3L[aria-disabled=true]:hover,.styles__c-btn--ghost___1HC3L[disabled]:hover{border-color:#c2dcff;background-color:var(--zircon)}.styles__c-btn--highlight___2jRfu{background-color:#35ce68;color:var(--white);border-color:#35ce68}.styles__c-btn--highlight___2jRfu:visited{color:var(--white)}.styles__c-btn--highlight___2jRfu:active,.styles__c-btn--highlight___2jRfu:focus,.styles__c-btn--highlight___2jRfu:hover{border-color:#08b442;background-color:#08b442}.styles__c-btn--highlight___2jRfu[aria-disabled=true]:hover,.styles__c-btn--highlight___2jRfu[disabled]:hover{border-color:#35ce68;background-color:#35ce68}.styles__c-btn--action___36KFm,.styles__c-btn--alpha___2ECZi,.styles__c-btn--close___3f0AP{background-color:initial;color:var(--white);border-color:var(--white)}.styles__c-btn--action___36KFm:visited,.styles__c-btn--alpha___2ECZi:visited,.styles__c-btn--close___3f0AP:visited{color:var(--white)}.styles__c-btn--action___36KFm:active,.styles__c-btn--action___36KFm:focus,.styles__c-btn--action___36KFm:hover,.styles__c-btn--alpha___2ECZi:active,.styles__c-btn--alpha___2ECZi:focus,.styles__c-btn--alpha___2ECZi:hover,.styles__c-btn--close___3f0AP:active,.styles__c-btn--close___3f0AP:focus,.styles__c-btn--close___3f0AP:hover{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.styles__c-btn--action___36KFm[aria-disabled=true]:hover,.styles__c-btn--action___36KFm[disabled]:hover,.styles__c-btn--alpha___2ECZi[aria-disabled=true]:hover,.styles__c-btn--alpha___2ECZi[disabled]:hover,.styles__c-btn--close___3f0AP[aria-disabled=true]:hover,.styles__c-btn--close___3f0AP[disabled]:hover{border-color:var(--white);background-color:initial}.styles__c-btn--danger___17T_C{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.styles__c-btn--danger___17T_C:visited{color:var(--white)}.styles__c-btn--danger___17T_C:active,.styles__c-btn--danger___17T_C:focus,.styles__c-btn--danger___17T_C:hover{border-color:var(--monza);background-color:var(--monza)}.styles__c-btn--danger___17T_C[aria-disabled=true]:hover,.styles__c-btn--danger___17T_C[disabled]:hover{border-color:#f52d2d;background-color:#f52d2d}.styles__c-btn--secondary___3Br_N{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn--secondary___3Br_N,.styles__c-btn--secondary___3Br_N:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn--secondary___3Br_N:active,.styles__c-btn--secondary___3Br_N:focus,.styles__c-btn--secondary___3Br_N:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn--secondary___3Br_N[aria-disabled=true]:hover,.styles__c-btn--secondary___3Br_N[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn--danger-outline___1mO1B{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.styles__c-btn--danger-outline___1mO1B:visited{color:#f52d2d}.styles__c-btn--danger-outline___1mO1B:active,.styles__c-btn--danger-outline___1mO1B:focus,.styles__c-btn--danger-outline___1mO1B:hover{border-color:#fdcbcb;background-color:#fdcbcb}.styles__c-btn--danger-outline___1mO1B[aria-disabled=true]:hover,.styles__c-btn--danger-outline___1mO1B[disabled]:hover{border-color:#fdcbcb;background-color:var(--white)}.styles__c-btn--text___2Vp-2{background-color:initial;color:var(--primaryColor);border-color:transparent}.styles__c-btn--text___2Vp-2:visited{color:var(--primaryColor)}.styles__c-btn--text___2Vp-2:active,.styles__c-btn--text___2Vp-2:focus,.styles__c-btn--text___2Vp-2:hover,.styles__c-btn--text___2Vp-2[aria-disabled=true]:hover,.styles__c-btn--text___2Vp-2[disabled]:hover{border-color:transparent;background-color:initial}.styles__c-btn--text___2Vp-2:focus,.styles__c-btn--text___2Vp-2:hover{color:var(--primaryColorDark)}.styles__c-btn--action___36KFm{border-color:transparent;padding:.5rem;opacity:.5}.styles__c-btn--action___36KFm:active,.styles__c-btn--action___36KFm:focus,.styles__c-btn--action___36KFm:hover{background-color:initial;border-color:transparent}.styles__c-btn--close___3f0AP{border-color:transparent;padding:.5rem}.styles__c-btn--close___3f0AP:active,.styles__c-btn--close___3f0AP:focus,.styles__c-btn--close___3f0AP:hover{background-color:initial;border-color:transparent}.styles__c-btn--left___23VNa>span{justify-content:flex-start}.styles__c-btn--center___16_Xh>span{justify-content:center}.styles__c-btn--right___wklLq>span{justify-content:flex-end}.styles__c-btn___-2Vnj.styles__c-btn--tiny___1pFv6{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.styles__c-btn___-2Vnj.styles__c-btn--small___3ArkI{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.styles__c-btn___-2Vnj.styles__c-btn--large___2gatN{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.styles__c-btn___-2Vnj.styles__c-btn--full___2VmR1{width:100%;margin-left:0;margin-right:0}.styles__c-btn___-2Vnj.styles__c-btn--narrow___27FHD,.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl{min-width:auto}.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl{border-radius:100%;min-height:auto;padding:.25rem}.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl svg{width:.625rem;height:.625rem}@media (pointer:coarse){.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl:after{content:\"\";position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.styles__c-btn--subtle___OknKf{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:initial;background:transparent;cursor:pointer;font-size:.875rem;font-weight:700;text-transform:uppercase}.styles__c-btn--subtle___OknKf:active,.styles__c-btn--subtle___OknKf:focus,.styles__c-btn--subtle___OknKf:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___OknKf>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--subtle___OknKf[aria-disabled=true],.styles__c-btn--subtle___OknKf[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--subtle___OknKf[aria-disabled=true]:hover,.styles__c-btn--subtle___OknKf[disabled]:hover{background:transparent}.styles__c-btn--subtle___OknKf[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.styles__c-btn--subtle___OknKf[aria-busy=true]:hover{background:transparent}.styles__c-btn--subtle___OknKf:active,.styles__c-btn--subtle___OknKf:focus,.styles__c-btn--subtle___OknKf:hover,.styles__c-btn--subtle___OknKf:visited{color:var(--primaryColorDark);background:transparent}*+.styles__c-btn--subtle___OknKf{margin-left:.063rem}.styles__c-btn--subtle___OknKf.styles__c-btn--tiny___1pFv6{min-height:0;min-width:0;padding:0;font-size:.563rem}.styles__c-btn--subtle___OknKf.styles__c-btn--small___3ArkI{min-height:0;min-width:0;padding:0;font-size:.75rem}.styles__c-btn--subtle___OknKf.styles__c-btn--large___2gatN{min-height:0;min-width:0;padding:0;font-size:1rem}.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C{color:#f52d2d}.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C:active,.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C:hover{color:var(--monza)}.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu{color:#35ce68}.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu:active,.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu:hover{color:#08b442}.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly{color:var(--regularButtonSecondaryColor)}.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly:active,.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N{color:var(--slateGrey)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:active,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:hover{color:var(--charcoalGrey)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:active svg,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:focus svg,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:hover svg{color:var(--slateGrey)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N svg{color:var(--coolGrey)}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2 [data-action=label],.u-hide{display:none!important;visibility:hidden!important}.styles__c-actionbtn-label___3nDeu,.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__c-actionbtn___162t6{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-actionbtn___162t6 svg{fill:currentColor}.styles__c-actionbtn___162t6 svg+span{margin-left:.375rem}.styles__c-actionbtn___162t6 input{cursor:pointer}.styles__c-actionbtn___162t6>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-actionbtn___162t6[aria-disabled=true],.styles__c-actionbtn___162t6[disabled]{opacity:.5;cursor:not-allowed}.styles__c-actionbtn___162t6[aria-disabled=true] input,.styles__c-actionbtn___162t6[disabled] input{cursor:not-allowed}.styles__c-actionbtn___162t6[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-actionbtn___162t6:visited{color:var(--regularButtonConstrastColor)}.styles__c-actionbtn___162t6:active,.styles__c-actionbtn___162t6:focus,.styles__c-actionbtn___162t6:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-actionbtn___162t6[aria-disabled=true]:hover,.styles__c-actionbtn___162t6[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2{min-width:auto}.styles__c-actionbtn___162t6{border-color:var(--silver);text-transform:none;max-width:12.5rem;min-height:2rem;width:100%;padding-right:.5rem;text-align:left;line-height:1.3;outline:0}.styles__c-actionbtn___162t6>span{justify-content:flex-start;flex-wrap:nowrap}.styles__c-actionbtn___162t6 [data-action=icon]{border-left:.063rem solid var(--dividerColor)}.styles__c-actionbtn___162t6:not([disabled]):focus [data-action=icon],.styles__c-actionbtn___162t6:not([disabled]):hover [data-action=icon]{border-color:currentColor}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2{position:relative;border:0;background-color:initial;padding:0;margin:0;min-height:2rem;width:2.5rem}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2>span{justify-content:center}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2 [data-action=icon]{border-left:none;margin-left:0;padding:0}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2:focus,.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2:hover{background-color:var(--paleGrey);border:0}.styles__c-actionbtn--normal___1HGLQ{background-color:var(--paleGrey);color:var(--charcoalGrey);border-color:var(--silver)}.styles__c-actionbtn--normal___1HGLQ [data-action=icon]{border-color:var(--silver)}.styles__c-actionbtn--normal___1HGLQ:focus,.styles__c-actionbtn--normal___1HGLQ:hover{background-color:var(--silver);border-color:var(--silver)}.styles__c-actionbtn--normal___1HGLQ[aria-disabled=true]:hover,.styles__c-actionbtn--normal___1HGLQ[disabled]:hover{background-color:var(--paleGrey)}.styles__c-actionbtn--error___2pt97{background-color:var(--chablis);color:#f52d2d;border-color:#fdcbcb}.styles__c-actionbtn--error___2pt97 [data-action=icon]{border-color:#fdcbcb}.styles__c-actionbtn--error___2pt97:focus,.styles__c-actionbtn--error___2pt97:hover{background-color:#fdcbcb;border-color:#fdcbcb}.styles__c-actionbtn--error___2pt97[aria-disabled=true]:hover,.styles__c-actionbtn--error___2pt97[disabled]:hover{background-color:var(--chablis)}.styles__c-actionbtn--new___1_BNn{background-color:var(--zircon);color:var(--dodgerBlue);border:.063rem dashed #c2dcff}.styles__c-actionbtn--new___1_BNn [data-action=icon]{border-color:#c2dcff}.styles__c-actionbtn--new___1_BNn:focus,.styles__c-actionbtn--new___1_BNn:hover{background-color:#c2dcff;border-color:#c2dcff}.styles__c-actionbtn--new___1_BNn[aria-disabled=true]:hover,.styles__c-actionbtn--new___1_BNn[disabled]:hover{background-color:var(--zircon)}.styles__c-actionbtn--new___1_BNn:focus:not([disabled]),.styles__c-actionbtn--new___1_BNn:hover:not([disabled]){border-style:solid}.styles__c-actionbtn-label___3nDeu{padding-right:.5rem}.styles__c-actionbtn-icon___2Od_-{display:block;margin-left:auto;padding-left:.5rem}.styles__c-actionbtn-icon___2Od_- svg{display:block}.styles__c-card___YgP7B{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.styles__c-card--inset___2pofc{margin:1rem 2rem}@media (max-width:48rem){.styles__c-card--inset___2pofc{margin:.5rem}}.styles__c-chip___2aPqg{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.styles__c-chip--round___JCd2e{width:2.5rem;text-align:center;justify-content:center}.styles__c-chip--tinySize___3XeOG{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.styles__c-chip--smallSize___3i9gj{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.styles__c-chip--normalSize___3U8N4{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.styles__c-chip--outlinedVariant___BP7oS{border:1px solid}.styles__c-chip--dashedVariant___2LWN4{border:1px dashed}.styles__c-chip--normalTheme___kVm5M{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.styles__c-chip--primaryTheme___1ZNhX{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.styles__c-chip--errorTheme___2hVXe{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.styles__c-chip--hoverableNormalTheme___271-M{color:var(--charcoalGrey)}.styles__c-chip--hoverableNormalTheme___271-M:focus,.styles__c-chip--hoverableNormalTheme___271-M:hover{background-color:var(--silver)}.styles__c-chip--hoverablePrimaryTheme___12PPV:focus,.styles__c-chip--hoverablePrimaryTheme___12PPV:hover{background-color:var(--primaryBackgroundLight)}.styles__c-chip--normalPrimaryTheme___24yFt{background-color:var(--primaryColor);color:var(--white)}.styles__c-chip--hoverableErrorTheme___wospw:focus,.styles__c-chip--hoverableErrorTheme___wospw:hover{background-color:var(--errorColorLight)}.styles__c-chip--outlinedNormalTheme___itU6s{background-color:initial}.styles__c-chip--clickable___20ff-{cursor:pointer}.styles__c-chip-separator___i_2Yq{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.styles__c-chip-button___-WdLl{cursor:pointer;color:var(--slateGrey)}.styles__c-chip-button--disabled___168tG{color:var(--coolGrey)}.styles__c-circle___1DuMR{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-circle-text___1jFgD{font-weight:700;line-height:1}.styles__CompositeRow___3KCwt{min-height:3rem;padding:1rem}.styles__CompositeRow__dense___3EPKf{padding-top:0;padding-bottom:0}.styles__CompositeRow__body___3nEEv>*+*{margin-top:2px}.styles__SelectControl___2OxoO[aria-disabled=true],.styles__SelectControl___2OxoO[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__SelectControl___2OxoO[aria-disabled=true]:focus,.styles__SelectControl___2OxoO[aria-disabled=true]:hover,.styles__SelectControl___2OxoO[disabled]:focus,.styles__SelectControl___2OxoO[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__SelectControl___2OxoO{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__SelectControl___2OxoO::placeholder{color:var(--coolGrey);font-size:1rem}.styles__SelectControl___2OxoO:hover{border:.063rem solid var(--coolGrey)}.styles__SelectControl___2OxoO:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__SelectControl___2OxoO.styles__is-error___2s-d5,.styles__SelectControl___2OxoO:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__SelectControl___2OxoO{padding-right:2.375rem;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__SelectControl___2OxoO::-ms-expand{display:none}.styles__contact___169nD{color:var(--secondaryTextColor)}@media (max-width:48rem){.styles__contact___169nD{height:auto}}.styles__contact--clickable___1GLTM{cursor:pointer}.styles__contact-cozyurl___3kBp5,.styles__contact-phone___1sA_m{flex:0 0 12rem;padding:0}.styles__contact-email___3n3q2{flex-basis:30%;padding:0}.styles__contact-myself___1aOdx{color:var(--secondaryTextColor);padding-left:.5rem}.styles__contact-identity___mL3IJ{flex-basis:30%;padding:0}@media (max-width:48rem){.styles__contact-identity___mL3IJ{flex:1 1 auto}}.styles__contact-firstname___2GPEr{margin-left:1rem}.styles__contact-avatar___3lZPs{flex-shrink:0}.styles__icon___gvQ89{margin:1rem 1.5rem 0 .5rem}.styles__ContactsListModal__addContactContainer___2W-dE{display:flex;justify-content:center;margin:0 .5rem 1rem}@media (max-width:48rem){.styles__ContactsListModal__addContactContainer___2W-dE>*{flex:1}}.styles__DialogCloseButton___cxKPO{position:absolute;top:1.15rem;right:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogCloseButton___cxKPO{top:.25rem;right:.25rem}}.styles__DialogBackButton___1c7yH{position:absolute;top:1.15rem;left:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogBackButton___1c7yH{top:.25rem;left:.25rem}}.styles__DateMonthPicker__YearControls___1DGlB{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.08)}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm,.styles__DateMonthPicker__MonthButton___3I_Mm:hover,.styles__DateMonthPicker__YearButton___3zNDK:hover{background:var(--defaultBackgroundColor);color:var(--primaryTextColor)}.styles__DateMonthPicker__MonthButton___3I_Mm:active,.styles__DateMonthPicker__MonthButton___3I_Mm:hover:active,.styles__DateMonthPicker__YearButton___3zNDK:active,.styles__DateMonthPicker__YearButton___3zNDK:hover:active{background-color:var(--actionColorFocus);font-weight:700;outline:0}.styles__DateMonthPicker__MonthButton___3I_Mm,.styles__DateMonthPicker__YearButton___3zNDK{background:none;min-height:3rem;min-width:3rem;display:inline-block;border-width:0;color:var(--secondaryTextColor);cursor:pointer}.styles__DateMonthPicker__MonthButton___3I_Mm:focus,.styles__DateMonthPicker__YearButton___3zNDK:focus{outline:0}.styles__DateMonthPicker__YearControls___1DGlB{justify-content:center;display:flex;align-items:center;border-radius:8px;border:1px solid var(--borderMainColor);overflow:hidden;margin-bottom:1rem;font-weight:700}.styles__DateMonthPicker__YearButton___3zNDK{flex-grow:0;cursor:pointer}.styles__DateMonthPicker__Year___387bP{flex-grow:1;display:inline-flex;justify-content:center}.styles__DateMonthPicker__MonthGrid___TCFg4{display:grid;grid-template-columns:repeat(4,auto);grid-template-rows:repeat(3,1fr);overflow:hidden;grid-gap:1rem}.styles__DateMonthPicker__MonthButton___3I_Mm{border-radius:3rem}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm{font-weight:700}.styles__c-empty___3w5oV{display:flex;flex-direction:column;justify-content:center;flex:1 0 auto;align-self:center;padding:1rem 0;text-align:center;max-width:100%}.styles__c-empty-img___2GC4d{display:block;margin:0 auto 1rem;height:8rem}@media (max-width:63.938rem){.styles__c-empty-img___2GC4d{margin-bottom:.5rem;height:6rem}}.styles__c-empty-img--medium___1d2Zd{height:10rem}@media (max-width:63.938rem){.styles__c-empty-img--medium___1d2Zd{height:8rem}}.styles__c-empty-img--large___3s3vC{height:12rem}@media (max-width:63.938rem){.styles__c-empty-img--large___3s3vC{height:10rem}}.styles__c-empty-title___2HduE{margin:0 auto;max-width:63rem;line-height:1.3}@media (max-width:63.938rem){.styles__c-empty-title___2HduE{margin:0 1.5rem}}.styles__c-empty-text___3HnvR{margin:.313rem auto 0;max-width:63rem;color:var(--secondaryTextColor);line-height:1.5}@media (max-width:63.938rem){.styles__c-empty-text___3HnvR{margin:.313rem 1.5rem 0}}.styles__c-label___o4ozG{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:700;line-height:1rem}.styles__c-label___o4ozG.styles__is-error___2Dwem{color:var(--pomegranate)}.styles__c-label--block___2ZV_7{display:block;padding:.5rem 0}.styles__o-field___3n5HM{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.styles__o-field--inline___7JWZ8{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.styles__o-field--inline___7JWZ8{flex-direction:column;margin-left:0}}.styles__o-field--inline___7JWZ8{margin:0}.styles__o-field--inline___7JWZ8 label{flex-basis:8rem;flex-shrink:0;flex-grow:0;padding:1rem 0}@media (max-width:48rem){.styles__o-field--inline___7JWZ8 label{flex-basis:auto}}.styles__o-field--inline___7JWZ8>*{flex-grow:1}.styles__o-field-input___vCqdV{position:relative;max-width:32rem}.styles__o-field-input-action___2k7a8,.styles__o-side___tXbXL{position:absolute;top:.5rem;right:0;cursor:pointer;text-transform:uppercase}.styles__o-side-fullwidth___7WcCI{max-width:100%}.styles__o-field-input-action___2k7a8{top:-1.5rem;text-transform:uppercase}.Figure__Figure-currency___195-B{color:var(--secondaryTextColor)}.Figure__Figure-content--positive___1qyd8,.Figure__Figure-content--positive___1qyd8 .Figure__Figure-currency___195-B{color:var(--successColor)}.Figure__Figure-content--negative___3ACbA,.Figure__Figure-content--negative___3ACbA .Figure__Figure-currency___195-B{color:var(--errorColor)}.Figure__Figure-content--warning___1Pn6n,.Figure__Figure-content--warning___1Pn6n .Figure__Figure-currency___195-B{color:var(--warningColor)}.Figure__Figure-total___MZ7Xt{font-weight:900}.Figure__Figure__currency--withSpacing___2eXTy{margin-left:.2em}.Figure__Figure--big___1b5ml{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.Figure__Figure--big___1b5ml{font-size:1.5rem;line-height:1.75rem}}.Figure__Figure--clickable___3i82u{cursor:pointer}.Figure__Figure_blur___1p0la{filter:blur(8px)}.Figure__Figure--inline___2L5SE{display:inline}.FigureBlock__FigureBlock___YyBoL{color:var(--primaryTextColor)}.FigureBlock__FigureBlock-figure___97C8E{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.FigureBlock__FigureBlock___YyBoL{font-size:.7em}}.styles__c-file-input___YNZSh{cursor:pointer}.styles__c-file-path___XvgNN{display:block;color:var(--secondaryTextColor);font-size:.75rem;text-decoration:none;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.styles__filePickerBreadcrumb-previousPath___3LKJH{color:var(--actionColorActive);cursor:pointer}.styles__filePickerBreadcrumb-icon___3aFyd{color:var(--actionColorActive);margin:0 .25rem}@supports (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:contents}}@supports not (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:flex;flex:1 1 auto;align-items:center;width:100%}}.styles__c-filename-wrapper___3tVpA{display:flex}.styles__c-filename-wrapper___3tVpA :last-child{flex-shrink:0}.styles__c-filename-name___1jDMz{display:inline;width:auto}.styles__Hero___14z7_{margin-left:auto;margin-right:auto}.styles__Hero-title___256Uz{text-align:center;margin:3rem 0}.styles__Hero-subtitle___1E_WG{margin-bottom:0}@media (max-width:48rem){.styles__Hero-subtitle___1E_WG{margin-top:.5rem}}.styles__Hero___14z7_ p{line-height:1.25}.styles__Hero-sections___ETV6e{display:flex;justify-content:space-around}@media (max-width:48rem){.styles__Hero-sections___ETV6e{flex-direction:column;align-items:center}}.styles__Hero-section___1BcNz{max-width:18.75rem;text-align:center;flex-grow:1;flex-basis:100%}@media (max-width:48rem){.styles__Hero-section___1BcNz{max-width:auto;margin-bottom:2rem}}.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:2rem}@media (max-width:48rem){.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:0}}.styles__Hero-cta___2KhwU{text-align:center;max-width:32rem;margin-left:auto;margin-right:auto;margin-top:2rem}.styles__HistoryRowCircleWrapper___3r8Uo{width:2.6rem;height:2.6rem;justify-content:center;display:flex;align-self:start}.styles__HistoryRowCircle___4FWWa{border:1px solid var(--dividerColor);background-color:var(--paperBackgroundColor)}.styles__HistoryRowRevisionLoader___a5y5b{display:flex;justify-content:center}.styles__HistoryRowCaption___2fe_H{margin-bottom:2rem;padding-left:2rem;padding-right:2rem}.styles__HistoryRowMedia___2jgYN{position:relative;padding:1rem}.styles__HistoryRowMedia___2jgYN:before{content:\"\";border-left:1px dashed var(--dividerColor2);position:absolute;margin-left:20px;top:2.125rem;bottom:-1rem}.styles__HistoryRowMedia___2jgYN:last-child:before{border:0}.styles__HistoryRowMediaImg___1J9OI{align-self:flex-start;z-index:1}.styles__icon--spin___ybfC1{animation:styles__spin___2Vvw3 1s linear infinite}@media (prefers-reduced-motion:reduce){.styles__icon--spin___ybfC1{animation:none}}@-webkit-keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.styles__icon___23x3R{fill:var(--iconColor);transform:translateZ(0)}.styles__icon--preserveColor___3gBz6{fill:inherit}.styles__IconStack-wrapper___10dhG{position:relative;display:inline-block}.styles__IconStack-foregroundIcon___ZvY-t{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.styles__Infos___2ZZVs{position:relative;border-radius:8px;padding:1rem 1.5rem}@media (max-width:48rem){.styles__Infos___2ZZVs{padding:.75rem 1rem}}.styles__Infos___2ZZVs.styles__Infos--primary___3i4ll{background-color:var(--primaryColorLightBackground)}.styles__Infos___2ZZVs.styles__Infos--secondary___1AW6F{background-color:var(--neutralBackground)}.styles__Infos___2ZZVs.styles__Infos--danger___3wKYc{background-color:var(--errorBackground)}.styles__Infos-description___7P1NP{max-width:32rem}.styles__Info-close___1RVQP{position:absolute;top:0;right:0;padding:.75rem}.styles__InfosCarrousel___3rCyB{position:relative}.styles__InfosCarrousel-navigation___3s_hu{position:absolute;display:flex;align-items:center;height:2.5rem;bottom:1rem;right:1rem;box-sizing:border-box}@media (max-width:48rem){.styles__InfosCarrousel-navigation___3s_hu{height:2.5rem;bottom:.75rem;right:.75rem}}.styles__InfosCarrousel-separator___AvH5m{border-left:1px solid var(--dividerColor);height:1rem;margin:0 .5rem}.styles__c-inline-card___1sri1{display:inline-block;border:.063rem solid var(--silver);box-shadow:0 0 .625rem rgba(0,0,0,.1);padding:.375rem}.styles__c-input-text___3TAv1[aria-disabled=true],.styles__c-input-text___3TAv1[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-input-text___3TAv1[aria-disabled=true]:focus,.styles__c-input-text___3TAv1[aria-disabled=true]:hover,.styles__c-input-text___3TAv1[disabled]:focus,.styles__c-input-text___3TAv1[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-input-text___3TAv1{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-input-text___3TAv1::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-input-text___3TAv1:hover{border:.063rem solid var(--coolGrey)}.styles__c-input-text___3TAv1:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-input-text___3TAv1.styles__is-error___3lsCJ,.styles__c-input-text___3TAv1:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-input-text--tiny___MzMoD{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-input-text--medium___28jPV{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-input-text--large___28EaR{border-radius:.188rem;padding:.813rem 1rem}.styles__c-input-text--fullwidth___33o_f{max-width:100%}.styles__c-inputgroup___12OVJ input[aria-disabled=true],.styles__c-inputgroup___12OVJ input[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-inputgroup___12OVJ input[aria-disabled=true]:focus,.styles__c-inputgroup___12OVJ input[aria-disabled=true]:hover,.styles__c-inputgroup___12OVJ input[disabled]:focus,.styles__c-inputgroup___12OVJ input[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-inputgroup___12OVJ input{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-inputgroup___12OVJ input::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-inputgroup___12OVJ input:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup___12OVJ input:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-inputgroup___12OVJ input.styles__is-error___2dj3S,.styles__c-inputgroup___12OVJ input:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-inputgroup___12OVJ{display:inline-flex;flex-direction:row;box-sizing:border-box;align-items:stretch;width:100%;max-width:32rem;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__c-inputgroup___12OVJ:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup--focus___Tk5-Z,.styles__c-inputgroup--focus___Tk5-Z:hover{border-color:var(--dodgerBlue)}.styles__c-inputgroup--error___1JNbu{border-color:var(--pomegranate)}.styles__c-inputgroup--fullwidth___3nuay{max-width:none}.styles__c-inputgroup-main___1LP4B{flex:1 1 auto}.styles__c-inputgroup___12OVJ input{border:0;padding-right:.5rem}.styles__c-inputgroup___12OVJ input:focus,.styles__c-inputgroup___12OVJ input:hover{position:relative;z-index:1;border:0;outline:0}.styles__c-inputgroup-side___60v0v{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;max-width:8.75rem}.styles__c-inputgroup-unit___bFj9a{padding-left:1rem;padding-right:1rem;font-weight:700}.styles__intentHeader___m5Qjh{display:flex;align-items:center;height:2rem;padding:.5rem 1rem;background-color:var(--paleGrey);margin:0;flex-basis:auto;flex-shrink:0}.styles__intentHeader-title___1r4ex{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__intentHeader-title___1r4ex span{font-weight:400}.styles__intentHeader-icon___3s30C{height:1.125rem;margin-right:.5rem}iframe{width:100%;height:100%;border:0}.styles__intentContainer___gZbMl,.styles__intentPlaceHolder___EWSR1{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.styles__intentContainer___gZbMl[aria-busy=true] iframe{height:0;width:0}.styles__intentContainer__error___yQ7K8{color:red;font-size:1.5em}.styles__intentModal___1aYIb{height:90vh}@media (max-width:48rem){.styles__intentModal___1aYIb{height:100%;width:100%}}.styles__intentModal___1aYIb>div{height:100%;max-width:unset!important}.styles__intentModal___1aYIb .styles__intentModal__cross___1Hfuz{top:.25rem;right:.5rem}.styles__intentWrapper___1ZMvW{display:flex;flex-flow:column nowrap;align-items:stretch;position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__intentWrapper___1ZMvW .styles__intentHeader___3TDUp{display:flex;align-items:center;padding:.25rem 1rem;margin:0}.styles__intentWrapper___1ZMvW .styles__intentContent___1ilx7 [class^=c-header-icon--ghost]{margin:0}.styles__CollectionField__addBtn___Z0FO-{margin-left:0;margin-right:0}.styles__CollectionField__addBtnIcon___1hA5b{margin-right:.5rem}.styles__CollectionField__row___Z7bbf{display:flex;align-items:center}.styles__CollectionField__row___Z7bbf>*+*{margin-left:1rem}.styles__gridItem-container___387sO{text-align:center;box-sizing:border-box;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__iconGrid___7nBAB{display:grid;grid-template-columns:repeat(2,16px);grid-template-rows:repeat(2,16px);grid-gap:1px}.styles__PasswordInput___3Oa3V{display:inline-flex;flex-direction:column;width:100%;max-width:32rem}.styles__PasswordInput--withStrength___1Msxm{border-bottom-left-radius:0;border-bottom-right-radius:0}.styles__PasswordInput__strength___1hpSg{background-color:var(--paleGrey);border-radius:.188rem;border-top-left-radius:0;border-top-right-radius:0;border:.063rem solid var(--silver);border-top:0;box-sizing:border-box;height:.25rem}.styles__PasswordInput__strength--weak___dzrGl{color:var(--pomegranate)}.styles__PasswordInput__strength--weak___dzrGl::-webkit-progress-value{background-color:var(--errorColor)}.styles__PasswordInput__strength--weak___dzrGl::-moz-progress-bar{background-color:var(--errorColor)}.styles__PasswordInput__strength--moderate___1ME_z{color:var(--texasRose)}.styles__PasswordInput__strength--moderate___1ME_z::-webkit-progress-value{background-color:var(--warningColor)}.styles__PasswordInput__strength--moderate___1ME_z::-moz-progress-bar{background-color:var(--warningColor)}.styles__PasswordInput__strength--strong___3yuP0{color:var(--emerald)}.styles__PasswordInput__strength--strong___3yuP0::-webkit-progress-value{background-color:var(--successColor)}.styles__PasswordInput__strength--strong___3yuP0::-moz-progress-bar{background-color:var(--successColor)}.styles__PasswordInput__visibilityButton___2B6RJ{height:100%;width:3rem;background-color:initial;border:0}.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{display:block}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{display:block;overflow:visible}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{content:\"\";display:block}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{height:3rem}}.styles__o-layout-2panes___1CDQw{flex:0 0 100%;align-items:stretch}.styles__o-layout-2panes___1CDQw>aside{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main]{height:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw>aside{position:fixed;bottom:0;left:0;display:block;z-index:20;width:100%}}.styles__media___cSJMp{display:flex;align-items:center}.styles__media--top___K9w0I{align-items:flex-start}.styles__media--bottom___21YWJ{align-items:flex-end}.styles__bd___1Uv-F{flex:1 1 auto;overflow:hidden}.styles__img___3SHpG{line-height:0;flex:0 0 auto}.styles__c-modal___33aV9{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__c-modal-content___2av1P{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__c-modal-footer___2Z4Tc,.styles__c-modal-header--branded___1wwof,.styles__c-modal-header___hTCm5{flex:0 0 auto}.styles__c-modal-container___31zmi{position:relative;z-index:70}.styles__c-modal-wrapper___8PyE9{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100vw;height:100%;overflow-y:auto;padding:3rem}@media (max-width:48rem){.styles__c-modal-wrapper___8PyE9{justify-content:center;padding:1.5rem}}@media (max-width:30rem){.styles__c-modal-wrapper___8PyE9{padding:.5rem}}.styles__c-modal___33aV9{position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__c-modal--xsmall___1lu1t{width:24rem}@media (max-width:25rem){.styles__c-modal--xsmall___1lu1t{width:100%}}.styles__c-modal--small___XUfOM{width:34rem}@media (max-width:35rem){.styles__c-modal--small___XUfOM{width:100%}}.styles__c-modal--medium___1dS6h{width:36rem}@media (max-width:39rem){.styles__c-modal--medium___1dS6h{width:100%}}.styles__c-modal--large___3arEs{width:40rem}@media (max-width:46rem){.styles__c-modal--large___3arEs{width:100%}}.styles__c-modal--xlarge___1XePQ{width:50rem}@media (max-width:56rem){.styles__c-modal--xlarge___1XePQ{width:100%}}.styles__c-modal--xxlarge___3Xp1K{width:60rem}@media (max-width:66rem){.styles__c-modal--xxlarge___3Xp1K{width:100%}}@media (max-width:48rem){.styles__c-modal-wrapper___8PyE9.styles__c-modal-wrapper--fullscreen___3ygpX{padding:0}}@media (max-width:48rem){.styles__c-modal___33aV9.styles__c-modal--fullscreen___8xZVw{height:100%;width:100%;border-radius:0;box-sizing:border-box}}.styles__c-modal-header--branded___1wwof,.styles__c-modal-header___hTCm5{margin:0 0 1rem;padding:1.687rem 3rem 0 2rem;overflow:visible;min-height:2.5rem}.styles__c-modal-header--branded___1wwof h2,.styles__c-modal-header___hTCm5 h2{margin:0;font-weight:700}@media (max-width:30rem){.styles__c-modal-header--branded___1wwof,.styles__c-modal-header___hTCm5{margin-bottom:.5rem;padding:1.187rem 2rem 0 1.5rem}.styles__c-modal-header--branded___1wwof h2,.styles__c-modal-header___hTCm5 h2{font-size:1.25rem}}.styles__c-modal-header--branded___1wwof{padding:1rem 3rem}.styles__c-modal-header--branded___1wwof img{display:block;max-height:3.5rem;margin:0 auto}.styles__c-modal-illu-header--ghost___3E9lu,.styles__c-modal-illu-header___3oi9k{display:flex;align-items:center;justify-content:center;margin:0 0 1rem;max-width:100%}.styles__c-modal-illu-header--ghost___3E9lu>*,.styles__c-modal-illu-header___3oi9k>*{max-width:inherit}.styles__c-modal-illu-header--ghost___3E9lu{position:absolute;left:0;right:0;top:1rem;margin:.5rem 0;opacity:0;max-height:2rem;transition:opacity .15s ease-in,top .15s ease-in 50ms}.styles__c-modal-illu-header--ghost___3E9lu>*{max-height:inherit}.styles__c-modal-illu-header--ghost___3E9lu.styles__is-active___1fLce{top:0;opacity:1;transition:opacity .15s ease-in 50ms,top .15s ease-in}.styles__c-modal--small-spacing___1foWa .styles__c-modal-header___hTCm5{padding:1.187rem 3rem 0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-header___hTCm5{padding:.687rem 2rem 0 1rem}}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-header___hTCm5{padding:2.687rem 3rem 0}@media (max-width:48rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-header___hTCm5{padding:1.687rem 2rem 0}}.styles__c-modal-app___1e4sV{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__c-app-editor___JFuCk{font-weight:400}.styles__c-modal-app-icon___3MjON{height:1.125rem;margin-right:.5rem}.styles__c-modal-content-fixed___3wKzQ{border-bottom:.063rem solid var(--dividerColor);flex:0 0 auto;padding:0 2rem}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content-fixed___3wKzQ{padding:0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-content-fixed___3wKzQ{padding:0 1rem}}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content-fixed___3wKzQ{padding:0 3rem}@media (max-width:30rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content-fixed___3wKzQ{padding:0 2rem}}.styles__c-modal-content___2av1P{padding:0 2rem}.styles__c-modal-content___2av1P:last-child{padding-bottom:2rem;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}@media (max-width:30rem){.styles__c-modal-content___2av1P{padding:0 1.5rem}.styles__c-modal-content___2av1P:last-child{padding-bottom:1.5rem}}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P{padding:0 1.5rem}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P:last-child{padding-bottom:1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P{padding:0 1rem}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P:last-child{padding-bottom:1rem}}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P{padding:0 3rem}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P:last-child{padding-bottom:3rem}@media (max-width:48rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P{padding:0 2rem}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P:last-child{padding-bottom:2rem}}.styles__c-modal-footer___2Z4Tc{padding:1rem 1.25rem 1.25rem}.styles__c-modal-footer--button___1sIa4 button{margin-bottom:.25rem}@media (max-width:48rem){.styles__c-modal-footer--button___1sIa4 button{min-width:calc(50% - .5rem)}}.styles__c-modal-section___2QNq3{border-top:.063rem solid var(--dividerColor)}.styles__c-modal-close___1v2bp{box-sizing:border-box;position:absolute;top:1.5rem;right:1.5rem;margin:0;padding:.5rem;background-color:initial;border:0;cursor:pointer;display:block;width:2.5rem;height:2.5rem;z-index:1}@media (max-width:30rem){.styles__c-modal-close___1v2bp{top:.813rem;right:1rem}}.styles__c-modal--small-spacing___1foWa .styles__c-modal-close___1v2bp{top:1rem;right:1rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-close___1v2bp{top:.313rem;right:.5rem}}.styles__c-modal--closable___29CLQ .styles__c-modal-header___hTCm5{padding-right:4.5rem}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-close___1v2bp{top:2.5rem;right:2.5rem}@media (max-width:48rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-close___1v2bp{top:1.313rem;right:1.5rem}}.styles__c-modal-close--notitle___1rqne{top:.375rem;right:.375rem}.styles__c-modal--overflowHidden___3H87t{overflow:hidden}.styles__c-modal-back-button___aIF_M{top:.375rem;left:.375rem;color:var(--coolGrey)}@media (max-width:48rem){.styles__c-modal-back-button___aIF_M{top:0;left:0}}.styles__c-modal-close--notitle___1rqne+.styles__c-modal-content___2av1P{margin-top:3rem}.styles__divider___-oC9I{align-items:center;display:flex}.styles__divider___-oC9I:after,.styles__divider___-oC9I:before{content:\"\";height:1px;background-color:var(--dividerColor)}.styles__divider___-oC9I:before{display:none;margin-right:.5rem}.styles__divider___-oC9I:after{flex:1;margin-left:.5rem}.styles__center___2jZEg:before{display:block;flex:1}.styles__NarrowContent___Zq8oI{max-width:32rem}.styles__c-nav___33dZy{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.styles__c-nav___33dZy{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.styles__c-nav-item___3XOLK{position:relative;z-index:0;height:3rem;box-sizing:border-box;cursor:pointer}.styles__c-nav-item___3XOLK:hover:before{content:\"\";position:absolute;z-index:-1;border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item___3XOLK:hover:before{content:none}}@media (max-width:63.938rem){.styles__c-nav-item___3XOLK{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.styles__c-nav-item___3XOLK:hover:before{content:none}}.styles__c-nav-icon___hrJUe{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.styles__c-nav-icon___hrJUe svg{display:block}.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}:hover>.styles__c-nav-icon___hrJUe{color:var(--navTextColor)}@media (max-width:63.938rem){.styles__c-nav-icon___hrJUe{display:block;margin-right:0}.styles__c-nav-icon___hrJUe svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.styles__c-nav-text___1J3yU{display:block;text-align:center;white-space:nowrap}}.styles__c-nav-link___3mK6W{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem}.styles__c-nav-link___3mK6W:visited{color:var(--navTextColor)}.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:700;color:var(--navTextActiveColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}@media (max-width:63.938rem){.styles__c-nav-link___3mK6W{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:top;background-size:1.5rem}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN,.styles__c-nav-link___3mK6W:hover{box-shadow:none;font-weight:400}}@media not all and (pointer:fine){.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextColor)}}.styles__c-nav-item-secondary___k14rf{height:auto}.styles__c-nav-item-secondary___k14rf+.styles__c-nav-item-secondary___k14rf{margin-top:.125rem}@media (max-width:63.938rem){.styles__c-nav-item-secondary___k14rf{display:none}}.styles__c-nav-item-secondary___k14rf:hover:before{content:\"\";position:absolute;z-index:-1;border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item-secondary___k14rf:hover:before{content:none}}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W.styles__is-active___2D0jN{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.styles__DesktopSectionWrapper___1rIWP{list-style-type:none}.styles__Modal__back___qxUn_{cursor:pointer;margin-right:.5rem;margin-left:-.25rem;font-size:1.5rem;line-height:0;margin-bottom:-1rem;position:relative;top:-.5rem}.styles__OrderedList___17A_o{list-style:none;counter-reset:cozy-ui-ordered-list;padding-left:0;line-height:1.5}.styles__ListItem___2Lu4a{counter-increment:cozy-ui-ordered-list;position:relative;padding-left:1.5rem}.styles__ListItem___2Lu4a:before{content:counter(cozy-ui-ordered-list) \". \";font-weight:700;position:absolute;left:0;top:0}.styles__c-overlay___31iWd{z-index:50;position:fixed;top:0;left:0;height:100%;width:100%;background:var(--overlay);visibility:visible;transition:opacity .3s,visibility 0s ease-out}.styles__PageFooter___2IFCx{flex-grow:0}.styles__PageContent___DbPFL{flex-grow:1}.styles__PageLayout___1ptQY{display:flex;flex-direction:column}.styles__Panel-group___1txSp{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;box-sizing:border-box}.styles__Panel-main___2BRfq{flex:1 0 65%;overflow:auto}.styles__Panel-side___327EK{flex:0 0 35%;background:var(--paleGrey);overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:1.5rem}@media (max-width:30rem){.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:.5rem}}@media (max-width:48rem){.styles__Panel-group___1txSp{display:block;overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{flex-basis:auto}}.styles__Token--number___2EzoN{color:#297ef2}.styles__Token--special___3_rSu{color:#b449e7}.styles__PercentageBar___12TWu{background-color:var(--defaultBackgroundColor);border:1px solid var(--borderMainColor);height:1.5rem;border-radius:4px}.styles__PercentageBar___12TWu .styles__PercentageBar__line___1DAnN{height:100%;border-radius:4px}.PercentageLine__PercentageLine___3koWP{transition:transform .3s ease;transform-origin:0 0;height:5px}.styles__c-btn-client___jTKz7{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn-client___jTKz7 svg{fill:currentColor}.styles__c-btn-client___jTKz7 svg+span{margin-left:.375rem}.styles__c-btn-client___jTKz7 input{cursor:pointer}.styles__c-btn-client___jTKz7>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn-client___jTKz7[aria-disabled=true],.styles__c-btn-client___jTKz7[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn-client___jTKz7[aria-disabled=true] input,.styles__c-btn-client___jTKz7[disabled] input{cursor:not-allowed}.styles__c-btn-client___jTKz7[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn-client___jTKz7:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn-client___jTKz7:active,.styles__c-btn-client___jTKz7:focus,.styles__c-btn-client___jTKz7:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn-client___jTKz7[aria-disabled=true]:hover,.styles__c-btn-client___jTKz7[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn-client___jTKz7{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn-client___jTKz7,.styles__c-btn-client___jTKz7:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn-client___jTKz7:active,.styles__c-btn-client___jTKz7:focus,.styles__c-btn-client___jTKz7:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn-client___jTKz7[aria-disabled=true]:hover,.styles__c-btn-client___jTKz7[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn-client___jTKz7{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:initial;text-align:left;font-size:.813rem;font-weight:700;line-height:1.3;color:var(--slateGrey)}.styles__c-btn-client___jTKz7:visited{color:var(--slateGrey)}.styles__c-btn-client___jTKz7 span{flex:0 1 auto}.styles__c-btn-client___jTKz7 figure{flex:0 0 2rem;margin:0 .75rem 0 0}.styles__c-input-radio___XJQt1{display:flex;align-items:center;min-width:1rem;min-height:1rem}.styles__c-input-radio___XJQt1 span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.styles__c-input-radio___XJQt1 span:after,.styles__c-input-radio___XJQt1 span:before{content:\"\";position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.styles__c-input-radio___XJQt1 span:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);transform:translateY(-50%)}.styles__c-input-radio___XJQt1 span:hover:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___XJQt1 span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,transform}.styles__c-input-radio___XJQt1[aria-checked=mixed] span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}.styles__c-input-radio___XJQt1[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.styles__c-input-radio___XJQt1[aria-disabled=true] :hover:before{box-shadow:inset 0 0 0 .125rem var(--silver)}.styles__c-input-radio___XJQt1[aria-disabled=true] :before{background-color:var(--paleGrey)}.styles__c-input-radio___XJQt1 input{border:0;clip:rect(0 0 0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.styles__c-input-radio___XJQt1 input:focus+span:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___XJQt1 input:checked+span:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.styles__c-input-radio___XJQt1 input:checked+span:after{opacity:1;transform:translateY(-50%) scale(1)}.styles__c-input-radio___XJQt1 input:not(:checked)+span:after{opacity:0;transform:translateY(-50%) scale(0)}.styles__c-input-radio___XJQt1.styles__is-error___2-12P span{color:var(--pomegranate)}.styles__c-input-radio___XJQt1.styles__is-error___2-12P span:before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.styles__c-input-radio--noGutter___3WtC2 span{padding-left:0}.styles__c-input-radio___XJQt1 span:after,.styles__c-input-radio___XJQt1 span:before{border-radius:50%}.styles__c-input-radio___XJQt1 span:after{content:\"\";background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.styles__select--disabled___1W3en{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border:.063rem solid var(--dividerColor)}.styles__select--fullwidth___2l_xM{max-width:100%;padding-right:2.375rem}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border-width:0}.styles__select-control__input___1xDlj{width:0;height:0;overflow:hidden}.styles__select--autowidth___16AEp{max-width:32rem}.styles__select--fullwidth___2l_xM{padding-right:0}.styles__select-option___ov_IT{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:.5rem;border-left:.25rem solid transparent;color:var(--charcoalGrey);transition:all .2s ease-out;white-space:normal}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey);cursor:pointer}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57) .styles__select-option__actions___2WOjb{opacity:1}.styles__select-option--focused___1Vpjv:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey)}.styles__select-option--selected___R3_ES{background-color:var(--paleGrey);border-left-color:var(--primaryColor)}.styles__select-option--disabled___1du57{color:var(--silver);cursor:not-allowed}.styles__select-option__checkbox___15WVE{margin-right:.5rem;vertical-align:top}.styles__select-option__label___1Xi5R{flex-grow:1;display:flex;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.styles__select-option__checkmark___ChXXs{width:2rem}.styles__select-option__actions___2WOjb{opacity:0;white-space:nowrap;transition:opacity .2s ease-out}@media (max-width:63.938rem){.styles__select-option__actions___2WOjb{opacity:1}}.styles__select__overlay___3H8Jy:before{content:\"\\A0\";width:200vw;height:200vh;top:-50vh;left:-50vh;display:block;position:fixed}.styles__MenuList___1H_pH{display:flex;flex-direction:column}.styles__FixedGroup___2izTc,.styles__Group___J6s7k{overflow-y:auto;padding-top:.25rem!important;padding-bottom:.25rem!important}.styles__FixedGroup___2izTc{flex-shrink:0;border-top:1px solid silver}.styles__SelectionBar___3UOqy{position:fixed;z-index:30;top:0;left:0;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;height:3.25rem;color:var(--white);background-color:var(--slateGrey);font-weight:700}.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0 1rem;min-width:3rem}@media (max-width:48rem){.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0;text-align:center}}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR{margin:0 .25rem;color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR:hover{color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action--withLabel___3TJq3{margin:0 .5rem}@media (max-width:63.938rem){.styles__SelectionBar___3UOqy{top:auto;bottom:0;box-sizing:initial;height:3rem;padding-bottom:env(safe-area-inset-bottom)}}:root{--sidebarHeight:3rem}.styles__o-sidebar___1295j{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.styles__o-sidebar___1295j{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.styles__c-spinner___1snK7{display:inline-block;margin:0 .5rem}.styles__c-spinner___1snK7:before{content:\"\"}.styles__c-spinner___1snK7 p{margin-top:.938rem;line-height:1.5}.styles__c-spinner--middle___RwyII{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center}.styles__c-spinner--middle___RwyII:before{display:block;margin:0 auto}.styles__c-spinner--nomargin___13JyW{margin:0}.styles__SquareAppIcon-wrapper___2SEuM{box-sizing:border-box;background-color:var(--paperBackgroundColor);border-radius:.75rem;height:4rem;width:4rem;transition:transform .3s,border-radius .3s}@media (max-width:48rem){.styles__SquareAppIcon-wrapper___2SEuM{height:3rem;width:3rem}}.styles__SquareAppIcon-icon-container___39MRl{display:flex;align-items:center;justify-content:center;padding:.625rem;border-radius:.75rem;width:100%}@media (max-width:48rem){.styles__SquareAppIcon-icon-container___39MRl{padding:.5rem}}.styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-icon-container___39MRl svg{width:100%}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:screen}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl svg{filter:saturate(0)}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y svg{opacity:.5}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl svg{opacity:.5}.styles__SquareAppIcon-wrapper-loading___3A1_X{border-radius:50%;transform:scale(.875)}@media (max-width:48rem){.styles__SquareAppIcon-wrapper-loading___3A1_X{transform:scale(.8334)}}.styles__SquareAppIcon-spinner___o0LO1{margin:0!important}.styles__onEnd___1O6Q7,.styles__SquareAppIcon-spinner___o0LO1 svg{position:absolute;height:100%;width:100%}.styles__onEnd___1O6Q7{align-items:center;border-radius:50%;display:flex;opacity:0;z-index:1}.styles__onEnd___1O6Q7 svg{fill:transparent!important}.styles__onEnd___1O6Q7 svg path{animation-duration:.2s!important}.styles__onEnd___1O6Q7 svg path:first-of-type{animation-delay:.2s!important}.styles__onEnd___1O6Q7 svg path+path{animation-delay:.36s!important}.styles__onEnd___1O6Q7 svg *{stroke:var(--white)!important}.styles__onEnd___1O6Q7.styles__isFailed___2AYxx{--animationColor:var(--errorColor)}.styles__onEnd___1O6Q7.styles__isSuccess___I6nFq{--animationColor:var(--successColor)}.styles__isFailed___2AYxx,.styles__isSuccess___I6nFq{animation:styles__end-animation___1O0b3 1.5s forwards}@-webkit-keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}@keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}.styles__Stack--m___1tSpV>*+*{margin-top:1rem}.styles__Stack--xs___2R5lW>*+*{margin-top:.5rem}.styles__Stack--s___22WMg>*+*{margin-top:.75rem}.styles__Stack--l___3oxCJ>*+*{margin-top:1.5rem}.styles__Stack--xl___3qy-m>*+*{margin-top:2rem}.styles__Stack--xxl___2KAsb>*+*{margin-top:3rem}.styles__Table___x3ZsI{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.styles__TableHead___1rqhM{flex:0 0 2rem}@media (max-width:48rem){.styles__TableHead___1rqhM{display:none}}.styles__TableBody___1EfpK{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.styles__TableBody___1EfpK{max-height:100%}}.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:var(--actionColorHover)}@media (hover:none){.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:initial}}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child,.styles__TableRow___1D62H:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{max-width:100vw}}.styles__TableHead___1rqhM .styles__TableRow___1D62H{border:0}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover{background-color:initial}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child{border-bottom:0}.styles__TableCell___yJCq7,.styles__TableHeader___FWkmV{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.styles__TableHeader___FWkmV{padding:.5rem 1rem;font-size:.75rem;font-weight:700;text-transform:uppercase}.styles__c-textarea___D7EEH[aria-disabled=true],.styles__c-textarea___D7EEH[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-textarea___D7EEH[aria-disabled=true]:focus,.styles__c-textarea___D7EEH[aria-disabled=true]:hover,.styles__c-textarea___D7EEH[disabled]:focus,.styles__c-textarea___D7EEH[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-textarea___D7EEH{display:inline-block;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-textarea___D7EEH::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-textarea___D7EEH:hover{border:.063rem solid var(--coolGrey)}.styles__c-textarea___D7EEH:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-textarea___D7EEH.styles__is-error___1kGLj,.styles__c-textarea___D7EEH:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-textarea--tiny___3fmPW{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-textarea--medium___T8f3b{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-textarea--fullwidth___Ih_mg{max-width:100%}.styles__c-textarea___D7EEH{display:block;width:100%;min-height:7.5rem;resize:vertical}.styles__c-textarea--tiny___3fmPW{min-height:3rem}.styles__c-textarea--medium___T8f3b{min-height:5rem}.Thumbnail__container___2Eg5o{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:32px;width:32px;z-index:var(--zIndex-app)}.Thumbnail__wrapper___ZoPVg{box-sizing:border-box;display:inherit;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg>*{max-width:26px;max-height:26px}.Thumbnail__wrapper___ZoPVg>:not(img){width:26px;height:26px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR{position:relative;max-width:29px;max-height:29px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR:after{content:\"\";position:absolute;width:100%;height:100%;z-index:var(--zIndex-below);top:-6px;left:0;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>*{max-width:23px;max-height:23px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>:not(img){width:23px;height:23px}.styles__Tile___2SqRi{box-sizing:border-box;position:relative;display:flex;flex-direction:column;flex:0 0 8.75rem;width:8.75rem;height:8.75rem;align-items:center;background:var(--paperBackgroundColor);border-radius:4px;border:1px solid var(--dividerColor);padding:.375rem;margin-bottom:1rem;margin-right:.75rem;overflow:hidden;transition:all .15s ease}.styles__Tile___2SqRi.styles__Tile-secondary___2zYdn{background:var(--defaultBackgroundColor);border-color:var(--defaultBackgroundColor)}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);cursor:pointer;transform:scale(1.1)}@media (max-width:48rem){.styles__Tile___2SqRi{flex-basis:100%;flex-direction:row;height:3.75rem;justify-content:flex-start;margin-right:.5rem;margin-bottom:.5rem;padding-left:.5rem}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{transform:scale(1.01)}}.styles__Tile-icon-wrapper___24AzZ{margin-top:.25rem;margin-bottom:.25rem;width:3rem;height:3rem}.styles__Tile-desc___3lPj6{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;margin-top:.5rem;text-align:center;max-width:100%}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{display:block;margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.styles__Tile-title___3gbq-{color:var(--black)}.styles__Tile-title___3gbq-.styles__Tile-title-multiline___17HPx{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.styles__Tile-developer___2GOfB{height:1rem}.styles__Tile-status___33VkE{margin-top:.5rem;height:1rem}.styles__Tile-status___33VkE.styles__Tile-status-accent___an9au{color:var(--primaryColor)}@media (max-width:48rem){.styles__Tile-icon-wrapper___24AzZ{margin-top:0;margin-bottom:0;width:3rem;height:2.5rem}.styles__Tile-desc___3lPj6{margin-top:0;margin-left:.5rem;text-align:left;flex-grow:1}.styles__Tile-title___3gbq-{height:1rem;font-weight:400;font-size:.75rem!important}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{width:100%}.styles__Tile-developer___2GOfB{display:none}.styles__Tile-status___33VkE{margin-top:.125rem}}.styles__toggle___3zVsE{display:inline-block;width:2.5rem;height:1.5rem}.styles__checkbox___3ko96{display:none}.styles__label___3jY1f{position:relative;display:inline-block;width:100%;height:100%;border-radius:1rem;background:var(--silver);transition:all .2s ease-out;cursor:pointer}.styles__label___3jY1f:before{position:absolute;top:0;bottom:0;left:.125rem;display:inline-block;width:1.25rem;height:1.25rem;margin:auto;border-radius:50%;content:\"\";background:var(--white);transition:all .2s ease-out}.styles__checkbox___3ko96:checked+.styles__label___3jY1f{background:var(--emerald)}.styles__checkbox___3ko96:checked+.styles__label___3jY1f:before{left:1.125rem}.styles__UnorderedList___2uFFY{padding-left:0;list-style:none}.styles__ListItem___3cRoI{position:relative;line-height:1.5;padding-left:1.5rem}.styles__ListItem___3cRoI:before{content:\"\";position:absolute;top:.75rem;left:0;width:.5rem;height:.5rem;background-color:var(--slateGrey);border-radius:50%;transform:translateY(-50%)}.styles__upload-queue___1VtNK{border:.0625rem solid var(--dividerColor);border-radius:.25rem;background-color:var(--paperBackgroundColor);display:flex;flex-direction:column;max-width:90%;width:30rem}.styles__upload-queue__threshold-bar___tTYal{min-width:10rem;margin-right:1rem}.styles__upload-queue__progress-caption___1-vXY{line-height:.75rem;height:1rem}.styles__upload-queue__upload-progress___1q-uS{align-items:center;display:flex;margin-top:.125rem}.styles__upload-queue--popover___2z1a4{z-index:40;border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor);position:fixed;bottom:.5rem;right:1.5rem;height:13.125rem;transform:translateY(18.75rem);transition:.5s;opacity:0;visibility:hidden}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{opacity:1;visibility:visible;transform:translate(0)}.styles__upload-queue-header___c9Vf2{display:flex;flex-direction:column;justify-content:center;height:2rem;background-color:var(--defaultBackgroundColor);font-weight:700;margin:0;padding:.5rem 1rem}.styles__upload-queue-header___c9Vf2 .styles__upload-queue-header-inner___26wpB{display:flex;justify-content:space-between;align-items:center}progress.styles__upload-queue-progress___1CmN-{-webkit-appearance:none;-moz-appearance:none;border:none;display:block;width:100%;height:.125rem;margin:0}.styles__upload-queue-content___3MPHo{overflow:auto}.styles__upload-queue--collapsed___3cchD{height:2.5rem}.styles__upload-queue--collapsed___3cchD .styles__upload-queue-content___3MPHo{visibility:none}.styles__upload-queue-list___OVvJm{flex:1 1 auto;display:flex;flex-direction:column}.styles__upload-queue-item--error___2sSeV{background-color:var(--errorBackground)}.styles__upload-queue-item--done___2PSJI{background-color:var(--defaultBackgroundColor)}.styles__item-file___1kfDn{user-select:none;overflow:hidden}.styles__item-status___3FNcY{flex:0 0 15%;text-align:right;white-space:nowrap;padding-left:1rem}@media (max-width:63.938rem){.styles__upload-queue___1VtNK{border-radius:0;border:0;background-color:var(--paperBackgroundColor);box-shadow:none;width:100%;max-width:100%;height:auto;transform:none}.styles__upload-queue-header___c9Vf2{background:0;text-transform:uppercase;padding:.5rem}.styles__upload-queue-content___3MPHo{display:none}.styles__upload-queue--popover___2z1a4{top:3rem;bottom:auto;right:0;left:0;z-index:3;max-height:0}.styles__upload-queue--popover___2z1a4:before{position:fixed;top:2.9375rem;z-index:20;width:100%;height:.0625rem;content:\"\";background:var(--paperBackgroundColor)}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{max-height:30%}.styles__upload-queue--popover___2z1a4 .styles__upload-queue-content___3MPHo{display:none}}.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{position:relative;display:flex;width:60%;max-height:calc(100% - 4rem);justify-content:center;align-items:center;flex-direction:column;margin-top:4rem}.styles__viewer-audioviewer___1OQPB h2,.styles__viewer-canceled___pOA_O h2,.styles__viewer-imageviewer___26k0p h2,.styles__viewer-noviewer___auG-6 h2,.styles__viewer-pdfviewer___1gTP9 h2,.styles__viewer-textviewer___3u5Zw h2,.styles__viewer-videoviewer___NhFoe h2{max-width:90%}@media (max-width:63.938rem){.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{margin-left:0;width:100%;max-height:calc(100% - 6.5rem);margin-top:-.5rem}}.styles__viewer-videoviewer___NhFoe video{width:100%;max-width:31.25rem;height:auto}.styles__viewer-textviewer___3u5Zw .styles__viewer-textviewer-content___PB-c3{white-space:pre-line;width:100%;max-height:70%;overflow:auto}.styles__viewer-textviewer___3u5Zw a{color:var(--azure)}@media (max-width:63.938rem){.styles__viewer-textviewer___3u5Zw{width:90%;margin-left:5%}}.styles__viewer-filename___3jZCt{max-width:90%;text-overflow:ellipsis;overflow:hidden}.styles__viewer-pdfviewer-pdf___16ID9{overflow:auto;width:100%}.styles__viewer-pdfviewer-page___2RPuw>*{margin:auto}.styles__viewer-pdfviewer-toolbar___3NXOk{position:absolute;bottom:2rem;background:var(--charcoalGrey);color:var(--white);border-radius:.5rem}.styles__viewer-imageviewer___26k0p{flex:1 1 100%;width:auto;max-width:100%}.styles__viewer-imageviewer___26k0p img{display:block;max-width:100%;max-height:100%;box-shadow:0 .375rem 1.5rem 0 rgba(0,0,0,.5)}.styles__viewer-pdfMobile___25FPg{width:100%;height:calc(100% - 6.5rem - var(--flagship-top-height));margin-top:calc(var(--flagship-top-height, 0rem) + -.5rem)}.styles__viewer-pdfMobile--image___3gpFL{width:100%}.styles__ActionMenuDesktop-ActionMenu___1iicy a{padding:0}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div{cursor:default}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div:hover{background-color:initial}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div svg{fill:var(--disabledTextColor)}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div p{color:var(--disabledTextColor)}.styles__viewer-wrapper___2GIXH{position:absolute;left:0;right:0;top:0;bottom:0;z-index:50;overflow:hidden;background:var(--charcoalGrey);color:var(--white)}.styles__flagship-app___KFqbm .styles__viewer-wrapper___2GIXH{padding-top:var(--flagship-top-height);padding-bottom:var(--flagship-bottom-height)}@media (max-width:63.938rem){.styles__viewer-wrapper___2GIXH{color:var(--charcoalGrey);background:var(--white)}}.styles__viewer-nav___1MSd7{position:absolute;top:4rem;bottom:0;z-index:72;width:20%;cursor:pointer;background-color:initial;transition:opacity .4s ease-out;opacity:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.styles__viewer-nav--visible___h_KJD:hover{opacity:1;transition:none}.styles__viewer-nav--previous___WOwzv{left:0}.styles__viewer-nav--previous___WOwzv .styles__viewer-nav-arrow___3_d1_{align-self:flex-start;margin-left:2.5rem;transform:rotate(180deg)}.styles__viewer-nav--next___1ah-4{right:0}.styles__viewer-nav--next___1ah-4 .styles__viewer-nav-arrow___3_d1_{align-self:flex-end;margin-right:2.5rem}@media (max-width:63.938rem){.styles__viewer-nav___1MSd7{display:none}}.styles__viewer-nav-arrow___3_d1_{opacity:.7}.styles__viewer-controls___1BYEX{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.styles__viewer-controls___1BYEX.styles__--expanded___2NoA- .styles__viewer-nav___1MSd7{margin-top:0;width:40%}@media (max-width:63.938rem){.styles__viewer-controls--display-content-top___3I1xq{justify-content:flex-start;padding-top:3.5rem}}.styles__viewer-toolbar___2zPR7{position:absolute;top:0;z-index:72;display:flex;flex-shrink:0;width:calc(100% - 2rem);padding:0 1rem;height:4rem;transition:opacity .4s ease-out;background:linear-gradient(180deg,var(--charcoalGrey),rgba(50,54,63,0));justify-content:flex-start;align-items:center}.styles__viewer-toolbar--hidden___3r3Sj{opacity:0}@media (max-width:63.938rem){.styles__viewer-toolbar___2zPR7{height:3rem;width:100%;padding:var(--flagship-top-height) 1rem 0 0;background:var(--paperBackgroundColor);border-bottom:1px solid var(--dividerColor)}}.styles__viewer-footer___2ieQS{position:fixed;bottom:0;z-index:71;width:100%;height:3.5rem;padding-bottom:var(--flagship-bottom-height,env(safe-area-inset-bottom));background:var(--paperBackgroundColor)}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80;--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}body,html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;margin:0}@media (max-width:63.938rem){body,html{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}body,html{background-color:var(--white);color:var(--black)}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}@media (max-width:63.938rem){.u-hide--mob{display:none!important}}@media (min-width:64rem){.u-hide--tablet{display:none!important}}@media (min-width:48.063rem){.u-hide--desk{display:none!important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap}.u-ellipsis,.u-spacellipsis{overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:\"[...]\"){.u-midellipsis>:first-child{text-overflow:\"[...]\"}}.u-link:link{color:var(--linkColor)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:active,.u-link:focus,.u-link:hover,.u-link:visited{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important}.u-fz-small,.u-fz-xsmall{line-height:1.4!important}.u-fz-small{font-size:.875rem!important}.u-fz-medium{font-size:1rem!important}.u-fz-large,.u-fz-medium{line-height:1.5!important}.u-fz-large{font-size:1.125rem!important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}@media (max-width:30rem){.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}}@media (max-width:48rem){.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}@media (max-width:30rem){.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}}@media (max-width:48rem){.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}}[data-input=checkbox],[data-input=radio]{display:flex}[data-input=checkbox] input[type=checkbox],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=radio] input[type=radio]{display:none!important;visibility:hidden!important}[data-input=checkbox] label,[data-input=radio] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=checkbox] label:after,[data-input=checkbox] label:before,[data-input=radio] label:after,[data-input=radio] label:before{content:\"\";position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=checkbox] label:before,[data-input=radio] label:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1)}[data-input=checkbox] label:after,[data-input=radio] label:after{transition-duration:.2s;transition-property:opacity,transform}.styles__wizard-select___2-yNW[aria-disabled=true],.styles__wizard-select___2-yNW[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__wizard-select___2-yNW[aria-disabled=true]:focus,.styles__wizard-select___2-yNW[aria-disabled=true]:hover,.styles__wizard-select___2-yNW[disabled]:focus,.styles__wizard-select___2-yNW[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__wizard-select___2-yNW{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__wizard-select___2-yNW::placeholder{color:var(--coolGrey);font-size:1rem}.styles__wizard-select___2-yNW:hover{border:.063rem solid var(--coolGrey)}.styles__wizard-select___2-yNW:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__wizard-select___2-yNW.styles__is-error___1X2dc,.styles__wizard-select___2-yNW:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__wizard-select--medium___kyH-1{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__wizard-select--medium___kyH-1,.styles__wizard-select___2-yNW{padding-right:2.375rem}.styles__wizard-select___2-yNW{appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__wizard-select___2-yNW::-ms-expand{display:none}[data-input=radio] label:before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked+label:before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label:after,[data-input=checkbox] label:before{border-radius:.125rem}[data-input=checkbox] label:before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label:before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain}[data-input=checkbox][aria-checked=mixed] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked+label:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked+label:after{opacity:1;transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked)+label:after{opacity:0;transform:scale(0)}.styles__wizard-wrapper___38V4s{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__wizard-main___ObvId{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__wizard-footer___-ZrgM,.styles__wizard-header___2_r05{flex:0 0 auto}.styles__wizard___m6AMR{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard___m6AMR{flex-direction:column;justify-content:flex-start}}.styles__wizard-wrapper___38V4s{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper___38V4s{justify-content:flex-start}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper--center___EWQI3{justify-content:center}}.styles__wizard-errors___1ufSE{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.styles__wizard-errors___1ufSE p{margin:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-errors___1ufSE{margin-top:.5rem}}.styles__wizard-header___2_r05{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-header___2_r05{margin:1rem 0 0}}.styles__wizard-main___ObvId{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.styles__wizard-main___ObvId>*{flex-shrink:0}.styles__wizard-footer___-ZrgM{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem env(safe-area-inset-bottom)}.styles__wizard-footer___-ZrgM>a:link,.styles__wizard-footer___-ZrgM>button{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-footer___-ZrgM{margin:1.5rem 0 .5rem}}.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM{justify-content:space-between}@media (min-width:30.063rem){.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>a:link,.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>button{flex:0 1 calc(50% - 0.25rem)}}.styles__wizard-logo___3Dtx1{position:relative;margin:0 auto;width:7.5rem}.styles__wizard-logo-img___2K1rs{width:100%;vertical-align:center}.styles__wizard-logo-badge___1mcMb{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.styles__wizard-desc___z9QXl{margin:2rem 0 0;line-height:1.5}.styles__wizard-desc___z9QXl a{color:var(--primaryColor);text-decoration:none}.styles__wizard-desc___z9QXl a:focus,.styles__wizard-desc___z9QXl a:hover{color:var(--primaryColorDark)}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-desc___z9QXl{margin:1.5rem 0 0}}.styles__wizard-header-fixed___39FT4{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.styles__wizard-previous___2StGt.styles__wizard-previous___2StGt{position:absolute;top:50%;left:0;transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.styles__wizard-brand____A68K{margin-left:2rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-brand____A68K{display:none}}.styles__wizard-next___38lPl{padding-right:3rem;padding-left:3rem}.styles__wizard-next___38lPl svg{position:absolute;right:1rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-input___1ltuD{border-radius:.125rem;padding:.5rem 1rem .625rem}}.styles__wizard-title___11Dzr{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-title___11Dzr{font-size:1.125rem;line-height:1.78}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard--welcome___2Os7m .styles__wizard-title___11Dzr{font-size:1.5rem;line-height:1.17}}.styles__wizard-dualfield___254s1{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__wizard-dualfield--focus___2Om-l{border-color:var(--primaryColor)}.styles__wizard-dualfield--error___2NR9g{border-color:var(--errorColor)}.styles__wizard-dualfield-wrapper___VN8PM{flex:1 1 auto}.styles__wizard-dualfield-input___2z596{border:0;padding-right:.5rem}.styles__wizard-dualfield-input___2z596:focus,.styles__wizard-dualfield-input___2z596:hover{position:relative;z-index:1;border:0;outline:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-dualfield-input___2z596{border-radius:.125rem;padding:.5rem .25rem .625rem 1rem}}.styles__wizard-protocol___4g-o1{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.styles__wizard-protocol___4g-o1 svg{fill:currentColor;margin-right:.5rem}.styles__wizard-select___2-yNW{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.styles__wizard-select___2-yNW:focus,.styles__wizard-select___2-yNW:hover{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.styles__wizard-select--medium___kyH-1{padding:.313rem 2.375rem .438rem .5rem}.styles__wizard-select--narrow___FTwrG{width:2.5rem}.styles__wizard-notice___2g62X{order:2;margin:2rem 0 0;line-height:1.5}.styles__wizard-notice___2g62X+.styles__wizard-notice___2g62X{margin-top:1rem}.styles__wizard-notice___2g62X p{margin:0}.styles__wizard-notice___2g62X a{color:var(--dodgerBlue);text-decoration:none;font-weight:700}.styles__wizard-notice___2g62X a:focus,.styles__wizard-notice___2g62X a:hover{color:var(--scienceBlue)}@media (min-width:30.063rem){.styles__wizard-notice___2g62X{margin:2rem 0 0}}.styles__wizard-notice--lost___3uoDz{font-size:1rem}", ""]); @@ -18122,37 +18105,6 @@ webpackContext.id = "2pt2"; /***/ }), -/***/ "2qv5": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useForkRef; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("+qy4"); - - -function useForkRef(refA, refB) { - /** - * This will create a new function if the ref props change and are defined. - * This means react will call the old forkRef with `null` and the new forkRef - * with the ref. Cleanup naturally emerges from this behavior - */ - return react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () { - if (refA == null && refB == null) { - return null; - } - - return function (refValue) { - Object(_setRef__WEBPACK_IMPORTED_MODULE_1__["default"])(refA, refValue); - Object(_setRef__WEBPACK_IMPORTED_MODULE_1__["default"])(refB, refValue); - }; - }, [refA, refB]); -} - -/***/ }), - /***/ "2rqr": /***/ (function(module, exports) { @@ -18350,43 +18302,6 @@ if (new Date(NaN) + '' != INVALID_DATE) { } -/***/ }), - -/***/ "3HJx": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createMixins; }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Xqvq"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("8cmQ"); - - -function createMixins(breakpoints, spacing, mixins) { - var _toolbar; - - return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - gutters: function gutters() { - var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - console.warn(['Material-UI: theme.mixins.gutters() is deprecated.', 'You can use the source of the mixin directly:', "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join('\n')); - return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - paddingLeft: spacing(2), - paddingRight: spacing(2) - }, styles, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, breakpoints.up('sm'), Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - paddingLeft: spacing(3), - paddingRight: spacing(3) - }, styles[breakpoints.up('sm')]))); - }, - toolbar: (_toolbar = { - minHeight: 56 - }, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_toolbar, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), { - minHeight: 48 - }), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_toolbar, breakpoints.up('sm'), { - minHeight: 64 - }), _toolbar) - }, mixins); -} - /***/ }), /***/ "3MFU": @@ -26258,18 +26173,6 @@ module.exports = function (it) { }; -/***/ }), - -/***/ "78Gr": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Kzdo"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Button__WEBPACK_IMPORTED_MODULE_0__["default"]; }); - - - /***/ }), /***/ "79eC": @@ -31139,31 +31042,6 @@ function getGlobalSingleton(name, creator, obj) { /***/ }), -/***/ "7c+g": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var blue = { - 50: '#e3f2fd', - 100: '#bbdefb', - 200: '#90caf9', - 300: '#64b5f6', - 400: '#42a5f5', - 500: '#2196f3', - 600: '#1e88e5', - 700: '#1976d2', - 800: '#1565c0', - 900: '#0d47a1', - A100: '#82b1ff', - A200: '#448aff', - A400: '#2979ff', - A700: '#2962ff' -}; -/* harmony default export */ __webpack_exports__["default"] = (blue); - -/***/ }), - /***/ "7hLD": /***/ (function(module, exports, __webpack_require__) { @@ -32265,10 +32143,193 @@ var _interopRequireDefault = __webpack_require__("jm00"); Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -var _Button = _interopRequireDefault(__webpack_require__("78Gr")); -var _default = _Button.default; +exports.default = exports.ButtonLink = exports.Button = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); +var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); +var _react = _interopRequireDefault(__webpack_require__("ivGQ")); +var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); +var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); +var _Icon = _interopRequireWildcard(__webpack_require__("AHiN")); +var _Spinner = _interopRequireDefault(__webpack_require__("ImID")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +var _excluded = ["busy", "disabled"], + _excluded2 = ["children", "icon", "iconOnly", "label", "subtle", "className", "extension", "round", "size", "theme", "align", "extraRight", "tag"]; +var styles = { + "c-btn": "styles__c-btn___-2Vnj", + "c-btn--regular": "styles__c-btn--regular___2HUly", + "c-btn--ghost": "styles__c-btn--ghost___1HC3L", + "c-btn--highlight": "styles__c-btn--highlight___2jRfu", + "c-btn--alpha": "styles__c-btn--alpha___2ECZi", + "c-btn--action": "styles__c-btn--action___36KFm", + "c-btn--close": "styles__c-btn--close___3f0AP", + "c-btn--danger": "styles__c-btn--danger___17T_C", + "c-btn--secondary": "styles__c-btn--secondary___3Br_N", + "c-btn--danger-outline": "styles__c-btn--danger-outline___1mO1B", + "c-btn--text": "styles__c-btn--text___2Vp-2", + "c-btn--left": "styles__c-btn--left___23VNa", + "c-btn--center": "styles__c-btn--center___16_Xh", + "c-btn--right": "styles__c-btn--right___wklLq", + "c-btn--tiny": "styles__c-btn--tiny___1pFv6", + "c-btn--small": "styles__c-btn--small___3ArkI", + "c-btn--large": "styles__c-btn--large___2gatN", + "c-btn--full": "styles__c-btn--full___2VmR1", + "c-btn--narrow": "styles__c-btn--narrow___27FHD", + "c-btn--round": "styles__c-btn--round___1Lkyl", + "c-btn--subtle": "styles__c-btn--subtle___OknKf", + "spin": "styles__spin___alZ_V", + "shake": "styles__shake___2NWWT" +}; +var btnClass = function btnClass(options) { + var _cx; + var className = options.className, + extension = options.extension, + size = options.size, + theme = options.theme, + variant = options.variant, + round = options.round, + align = options.align; + return (0, _classnames.default)(styles['c-btn'], (_cx = {}, (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(theme)], theme), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(size)], size !== 'normal'), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(variant)], variant), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(extension)], extension), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(align)], align), (0, _defineProperty2.default)(_cx, styles["c-btn--round"], round), _cx), className); +}; +var transformToAria = function transformToAria(tag) { + return function (props) { + var busy = props.busy, + disabled = props.disabled, + newProps = (0, _objectWithoutProperties2.default)(props, _excluded); + if (busy) { + newProps['aria-busy'] = true; + } + if (disabled) { + newProps['aria-disabled'] = true; + } + if (tag === 'button' && disabled) { + newProps['disabled'] = true; + } + return newProps; + }; +}; +var tagToTransformProps = { + button: transformToAria('button'), + a: transformToAria('a') +}; +var identity = function identity(x) { + return x; +}; +var sizeToIconSize = { + tiny: 8, + small: 12, + large: 18 +}; +var BaseButton = function BaseButton(props) { + var children = props.children, + icon = props.icon, + iconOnly = props.iconOnly, + label = props.label, + subtle = props.subtle, + className = props.className, + extension = props.extension, + round = props.round, + size = props.size, + theme = props.theme, + align = props.align, + extraRight = props.extraRight, + Tag = props.tag, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded2); + var transformProps = tagToTransformProps[Tag] || identity; + var tooltip = iconOnly ? label : null; + var iconOnlyClass = iconOnly ? 'u-visuallyhidden' : null; + return /*#__PURE__*/_react.default.createElement(Tag, (0, _extends2.default)({}, transformProps(restProps), { + className: btnClass({ + extension: extension, + align: align, + round: round, + size: size, + theme: theme, + className: className, + variant: subtle && 'subtle' + }), + title: tooltip + }), /*#__PURE__*/_react.default.createElement("span", null, _Icon.default.isProperIcon(icon) ? /*#__PURE__*/_react.default.createElement(_Icon.default, { + size: sizeToIconSize[size], + icon: icon, + "aria-hidden": true, + focusable: "false" + }) : icon, label && /*#__PURE__*/_react.default.createElement("span", { + className: iconOnlyClass + }, label), children, extraRight && /*#__PURE__*/_react.default.createElement("span", { + className: "u-ml-auto" + }, extraRight), restProps.busy && /*#__PURE__*/_react.default.createElement(_Icon.default, { + size: sizeToIconSize[size], + icon: _Spinner.default, + spin: true, + className: "u-ml-half", + "aria-hidden": true, + focusable: "false" + }))); +}; +var Button = function Button(props) { + return /*#__PURE__*/_react.default.createElement(BaseButton, props); +}; +exports.Button = Button; +var ButtonLink = function ButtonLink(props) { + return /*#__PURE__*/_react.default.createElement(BaseButton, props); +}; +exports.ButtonLink = ButtonLink; +var DefaultButton = function DefaultButton(props) { + if (!props.tag) { + return /*#__PURE__*/_react.default.createElement(Button, props); + } else { + return /*#__PURE__*/_react.default.createElement(BaseButton, props); + } +}; +var _default = DefaultButton; // Proptypes (unfortunately, Styleguidist does not pick +// proptypes coming from a spread so we have to keep both +// proptypes in sync) exports.default = _default; +Button.propTypes = { + /** DEPRECATED: please use label and icon */ + children: _propTypes.default.node, + /** Label of the button */ + label: _propTypes.default.node.isRequired, + /** Icon of the button */ + icon: _propTypes.default.oneOfType([_propTypes.default.node, _Icon.iconPropType]), + /** Displays only the icon, not the label */ + iconOnly: _propTypes.default.bool, + theme: _propTypes.default.string, + size: _propTypes.default.oneOf(['tiny', 'small', 'large', 'normal']), + /** Spacing of the button */ + extension: _propTypes.default.oneOf(['narrow', 'full']), + /** Button's label alignment */ + align: _propTypes.default.oneOf(['left', 'right', 'center']), + /** Will make the button round */ + round: _propTypes.default.bool, + /** Extra class */ + className: _propTypes.default.string, + /** What to do on click */ + onClick: _propTypes.default.func, + /** Adds an element to the right of the button */ + extraRight: _propTypes.default.PropTypes.node, + // Only for Button + + /** Will display a spinner if true */ + busy: _propTypes.default.bool, + /** Disables the button */ + disabled: _propTypes.default.bool, + /** Type of the underlying `<button />` */ + type: _propTypes.default.oneOf(['button', 'reset', 'submit']), + /** Use the `subtle` alternative look for the Button */ + subtle: _propTypes.default.bool +}; +Button.defaultProps = { + type: 'submit', + tag: 'button', + size: 'normal', + align: 'center' +}; +ButtonLink.defaultProps = { + tag: 'a' +}; /***/ }), @@ -35482,31 +35543,6 @@ module.exports = { } -/***/ }), - -/***/ "9N3j": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var red = { - 50: '#ffebee', - 100: '#ffcdd2', - 200: '#ef9a9a', - 300: '#e57373', - 400: '#ef5350', - 500: '#f44336', - 600: '#e53935', - 700: '#d32f2f', - 800: '#c62828', - 900: '#b71c1c', - A100: '#ff8a80', - A200: '#ff5252', - A400: '#ff1744', - A700: '#d50000' -}; -/* harmony default export */ __webpack_exports__["default"] = (red); - /***/ }), /***/ "9Qlz": @@ -49226,31 +49262,6 @@ var upperFirst = createCaseFirst('toUpperCase'); module.exports = upperFirst; -/***/ }), - -/***/ "DgHV": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var grey = { - 50: '#fafafa', - 100: '#f5f5f5', - 200: '#eeeeee', - 300: '#e0e0e0', - 400: '#bdbdbd', - 500: '#9e9e9e', - 600: '#757575', - 700: '#616161', - 800: '#424242', - 900: '#212121', - A100: '#d5d5d5', - A200: '#aaaaaa', - A400: '#303030', - A700: '#616161' -}; -/* harmony default export */ __webpack_exports__["default"] = (grey); - /***/ }), /***/ "DhWQ": @@ -51156,28 +51167,6 @@ var AccordionActions = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR /***/ }), -/***/ "Emy0": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8cmQ"); -/* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("csMb"); -/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("uj8+"); - - - - -function withStyles(stylesOrCreator, options) { - return Object(_material_ui_styles__WEBPACK_IMPORTED_MODULE_1__["withStyles"])(stylesOrCreator, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_2__["default"] - }, options)); -} - -/* harmony default export */ __webpack_exports__["default"] = (withStyles); - -/***/ }), - /***/ "EnG4": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -65011,6 +65000,39 @@ function _toConsumableArray(arr) { /***/ }), +/***/ "ImID": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__("jm00"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _react = _interopRequireDefault(__webpack_require__("ivGQ")); +// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/ui/spinner.svg` to regenerate; + +function SvgSpinner(props) { + return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({ + viewBox: "0 0 32 32" + }, props, { + role: "progressbar", + "aria-busy": "true" + }), /*#__PURE__*/_react.default.createElement("path", { + opacity: 0.25, + d: "M16 0a16 16 0 000 32 16 16 0 000-32m0 4a12 12 0 010 24 12 12 0 010-24" + }), /*#__PURE__*/_react.default.createElement("path", { + d: "M16 0a16 16 0 0116 16h-4A12 12 0 0016 4z" + })); +} +var _default = SvgSpinner; +exports.default = _default; + +/***/ }), + /***/ "IoxZ": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -66254,31 +66276,6 @@ function buildDistanceInWordsLocale () { module.exports = buildDistanceInWordsLocale -/***/ }), - -/***/ "JE9C": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var orange = { - 50: '#fff3e0', - 100: '#ffe0b2', - 200: '#ffcc80', - 300: '#ffb74d', - 400: '#ffa726', - 500: '#ff9800', - 600: '#fb8c00', - 700: '#f57c00', - 800: '#ef6c00', - 900: '#e65100', - A100: '#ffd180', - A200: '#ffab40', - A400: '#ff9100', - A700: '#ff6d00' -}; -/* harmony default export */ __webpack_exports__["default"] = (orange); - /***/ }), /***/ "JF7T": @@ -70013,364 +70010,6 @@ function buildDistanceInWordsLocale () { module.exports = buildDistanceInWordsLocale -/***/ }), - -/***/ "Kzdo": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("rZdQ"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("8cmQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ii0b"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("vFJ3"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Emy0"); -/* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("kShl"); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("mSBp"); -/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("bDW+"); - - - - - - - - - -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, theme.typography.button, { - boxSizing: 'border-box', - minWidth: 64, - padding: '6px 16px', - borderRadius: theme.shape.borderRadius, - color: theme.palette.text.primary, - transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], { - duration: theme.transitions.duration.short - }), - '&:hover': { - textDecoration: 'none', - backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.text.primary, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - }, - '&$disabled': { - backgroundColor: 'transparent' - } - }, - '&$disabled': { - color: theme.palette.action.disabled - } - }), - - /* Styles applied to the span element that wraps the children. */ - label: { - width: '100%', - // Ensure the correct width for iOS Safari - display: 'inherit', - alignItems: 'inherit', - justifyContent: 'inherit' - }, - - /* Styles applied to the root element if `variant="text"`. */ - text: { - padding: '6px 8px' - }, - - /* Styles applied to the root element if `variant="text"` and `color="primary"`. */ - textPrimary: { - color: theme.palette.primary.main, - '&:hover': { - backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.primary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `variant="text"` and `color="secondary"`. */ - textSecondary: { - color: theme.palette.secondary.main, - '&:hover': { - backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `variant="outlined"`. */ - outlined: { - padding: '5px 15px', - border: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'), - '&$disabled': { - border: "1px solid ".concat(theme.palette.action.disabledBackground) - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="primary"`. */ - outlinedPrimary: { - color: theme.palette.primary.main, - border: "1px solid ".concat(Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.primary.main, 0.5)), - '&:hover': { - border: "1px solid ".concat(theme.palette.primary.main), - backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.primary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - } - }, - - /* Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */ - outlinedSecondary: { - color: theme.palette.secondary.main, - border: "1px solid ".concat(Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.secondary.main, 0.5)), - '&:hover': { - border: "1px solid ".concat(theme.palette.secondary.main), - backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__["alpha"])(theme.palette.secondary.main, theme.palette.action.hoverOpacity), - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: 'transparent' - } - }, - '&$disabled': { - border: "1px solid ".concat(theme.palette.action.disabled) - } - }, - - /* Styles applied to the root element if `variant="contained"`. */ - contained: { - color: theme.palette.getContrastText(theme.palette.grey[300]), - backgroundColor: theme.palette.grey[300], - boxShadow: theme.shadows[2], - '&:hover': { - backgroundColor: theme.palette.grey.A100, - boxShadow: theme.shadows[4], - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - boxShadow: theme.shadows[2], - backgroundColor: theme.palette.grey[300] - }, - '&$disabled': { - backgroundColor: theme.palette.action.disabledBackground - } - }, - '&$focusVisible': { - boxShadow: theme.shadows[6] - }, - '&:active': { - boxShadow: theme.shadows[8] - }, - '&$disabled': { - color: theme.palette.action.disabled, - boxShadow: theme.shadows[0], - backgroundColor: theme.palette.action.disabledBackground - } - }, - - /* Styles applied to the root element if `variant="contained"` and `color="primary"`. */ - containedPrimary: { - color: theme.palette.primary.contrastText, - backgroundColor: theme.palette.primary.main, - '&:hover': { - backgroundColor: theme.palette.primary.dark, - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: theme.palette.primary.main - } - } - }, - - /* Styles applied to the root element if `variant="contained"` and `color="secondary"`. */ - containedSecondary: { - color: theme.palette.secondary.contrastText, - backgroundColor: theme.palette.secondary.main, - '&:hover': { - backgroundColor: theme.palette.secondary.dark, - // Reset on touch devices, it doesn't add specificity - '@media (hover: none)': { - backgroundColor: theme.palette.secondary.main - } - } - }, - - /* Styles applied to the root element if `disableElevation={true}`. */ - disableElevation: { - boxShadow: 'none', - '&:hover': { - boxShadow: 'none' - }, - '&$focusVisible': { - boxShadow: 'none' - }, - '&:active': { - boxShadow: 'none' - }, - '&$disabled': { - boxShadow: 'none' - } - }, - - /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */ - focusVisible: {}, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Styles applied to the root element if `color="inherit"`. */ - colorInherit: { - color: 'inherit', - borderColor: 'currentColor' - }, - - /* Styles applied to the root element if `size="small"` and `variant="text"`. */ - textSizeSmall: { - padding: '4px 5px', - fontSize: theme.typography.pxToRem(13) - }, - - /* Styles applied to the root element if `size="large"` and `variant="text"`. */ - textSizeLarge: { - padding: '8px 11px', - fontSize: theme.typography.pxToRem(15) - }, - - /* Styles applied to the root element if `size="small"` and `variant="outlined"`. */ - outlinedSizeSmall: { - padding: '3px 9px', - fontSize: theme.typography.pxToRem(13) - }, - - /* Styles applied to the root element if `size="large"` and `variant="outlined"`. */ - outlinedSizeLarge: { - padding: '7px 21px', - fontSize: theme.typography.pxToRem(15) - }, - - /* Styles applied to the root element if `size="small"` and `variant="contained"`. */ - containedSizeSmall: { - padding: '4px 10px', - fontSize: theme.typography.pxToRem(13) - }, - - /* Styles applied to the root element if `size="large"` and `variant="contained"`. */ - containedSizeLarge: { - padding: '8px 22px', - fontSize: theme.typography.pxToRem(15) - }, - - /* Styles applied to the root element if `size="small"`. */ - sizeSmall: {}, - - /* Styles applied to the root element if `size="large"`. */ - sizeLarge: {}, - - /* Styles applied to the root element if `fullWidth={true}`. */ - fullWidth: { - width: '100%' - }, - - /* Styles applied to the startIcon element if supplied. */ - startIcon: { - display: 'inherit', - marginRight: 8, - marginLeft: -4, - '&$iconSizeSmall': { - marginLeft: -2 - } - }, - - /* Styles applied to the endIcon element if supplied. */ - endIcon: { - display: 'inherit', - marginRight: -4, - marginLeft: 8, - '&$iconSizeSmall': { - marginRight: -2 - } - }, - - /* Styles applied to the icon element if supplied and `size="small"`. */ - iconSizeSmall: { - '& > *:first-child': { - fontSize: 18 - } - }, - - /* Styles applied to the icon element if supplied and `size="medium"`. */ - iconSizeMedium: { - '& > *:first-child': { - fontSize: 20 - } - }, - - /* Styles applied to the icon element if supplied and `size="large"`. */ - iconSizeLarge: { - '& > *:first-child': { - fontSize: 22 - } - } - }; -}; -var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](function Button(props, ref) { - var children = props.children, - classes = props.classes, - className = props.className, - _props$color = props.color, - color = _props$color === void 0 ? 'default' : _props$color, - _props$component = props.component, - component = _props$component === void 0 ? 'button' : _props$component, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disableElevati = props.disableElevation, - disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati, - _props$disableFocusRi = props.disableFocusRipple, - disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, - endIconProp = props.endIcon, - focusVisibleClassName = props.focusVisibleClassName, - _props$fullWidth = props.fullWidth, - fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, - _props$size = props.size, - size = _props$size === void 0 ? 'medium' : _props$size, - startIconProp = props.startIcon, - _props$type = props.type, - type = _props$type === void 0 ? 'button' : _props$type, - _props$variant = props.variant, - variant = _props$variant === void 0 ? 'text' : _props$variant, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]); - - var startIcon = startIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", { - className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.startIcon, classes["iconSize".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(size))]) - }, startIconProp); - var endIcon = endIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", { - className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.endIcon, classes["iconSize".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(size))]) - }, endIconProp); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_ButtonBase__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ - className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.root, classes[variant], className, color === 'inherit' ? classes.colorInherit : color !== 'default' && classes["".concat(variant).concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(color))], size !== 'medium' && [classes["".concat(variant, "Size").concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(size))], classes["size".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(size))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth), - component: component, - disabled: disabled, - focusRipple: !disableFocusRipple, - focusVisibleClassName: Object(clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(classes.focusVisible, focusVisibleClassName), - ref: ref, - type: type - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", { - className: classes.label - }, startIcon, children, endIcon)); -}); - false ? undefined : void 0; -/* harmony default export */ __webpack_exports__["default"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__["default"])(styles, { - name: 'MuiButton' -})(Button)); - /***/ }), /***/ "L+oB": @@ -73473,69 +73112,6 @@ exports.getErrorMessage = getErrorMessage; /***/ }), -/***/ "Lw3Y": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createSpacing; }); -/* harmony import */ var _material_ui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("XsxL"); - -var warnOnce; -function createSpacing() { - var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; - - // Already transformed. - if (spacingInput.mui) { - return spacingInput; - } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout. - // Smaller components, such as icons and type, can align to a 4dp grid. - // https://material.io/design/layout/understanding-layout.html#usage - - - var transform = Object(_material_ui_system__WEBPACK_IMPORTED_MODULE_0__["createUnarySpacing"])({ - spacing: spacingInput - }); - - var spacing = function spacing() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - if (false) {} - - if (args.length === 0) { - return transform(1); - } - - if (args.length === 1) { - return transform(args[0]); - } - - return args.map(function (argument) { - if (typeof argument === 'string') { - return argument; - } - - var output = transform(argument); - return typeof output === 'number' ? "".concat(output, "px") : output; - }).join(' '); - }; // Backward compatibility, to remove in v5. - - - Object.defineProperty(spacing, 'unit', { - get: function get() { - if (false) {} - - return spacingInput; - } - }); - spacing.mui = true; - return spacing; -} - -/***/ }), - /***/ "M+cw": /***/ (function(module, exports, __webpack_require__) { @@ -75970,323 +75546,6 @@ function useScrollTrigger() { /***/ }), -/***/ "O34s": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DELAY_RIPPLE", function() { return DELAY_RIPPLE; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8cmQ"); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Im6z"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("rZdQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ii0b"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("jlvQ"); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("vFJ3"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("Emy0"); -/* harmony import */ var _Ripple__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("wR84"); - - - - - - - - - -var DURATION = 550; -var DELAY_RIPPLE = 80; -var styles = function styles(theme) { - return { - /* Styles applied to the root element. */ - root: { - overflow: 'hidden', - pointerEvents: 'none', - position: 'absolute', - zIndex: 0, - top: 0, - right: 0, - bottom: 0, - left: 0, - borderRadius: 'inherit' - }, - - /* Styles applied to the internal `Ripple` components `ripple` class. */ - ripple: { - opacity: 0, - position: 'absolute' - }, - - /* Styles applied to the internal `Ripple` components `rippleVisible` class. */ - rippleVisible: { - opacity: 0.3, - transform: 'scale(1)', - animation: "$enter ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut) - }, - - /* Styles applied to the internal `Ripple` components `ripplePulsate` class. */ - ripplePulsate: { - animationDuration: "".concat(theme.transitions.duration.shorter, "ms") - }, - - /* Styles applied to the internal `Ripple` components `child` class. */ - child: { - opacity: 1, - display: 'block', - width: '100%', - height: '100%', - borderRadius: '50%', - backgroundColor: 'currentColor' - }, - - /* Styles applied to the internal `Ripple` components `childLeaving` class. */ - childLeaving: { - opacity: 0, - animation: "$exit ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut) - }, - - /* Styles applied to the internal `Ripple` components `childPulsate` class. */ - childPulsate: { - position: 'absolute', - left: 0, - top: 0, - animation: "$pulsate 2500ms ".concat(theme.transitions.easing.easeInOut, " 200ms infinite") - }, - '@keyframes enter': { - '0%': { - transform: 'scale(0)', - opacity: 0.1 - }, - '100%': { - transform: 'scale(1)', - opacity: 0.3 - } - }, - '@keyframes exit': { - '0%': { - opacity: 1 - }, - '100%': { - opacity: 0 - } - }, - '@keyframes pulsate': { - '0%': { - transform: 'scale(1)' - }, - '50%': { - transform: 'scale(0.92)' - }, - '100%': { - transform: 'scale(1)' - } - } - }; -}; -/** - * @ignore - internal component. - * - * TODO v5: Make private - */ - -var TouchRipple = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](function TouchRipple(props, ref) { - var _props$center = props.center, - centerProp = _props$center === void 0 ? false : _props$center, - classes = props.classes, - className = props.className, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["center", "classes", "className"]); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__["useState"]([]), - ripples = _React$useState[0], - setRipples = _React$useState[1]; - - var nextKey = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](0); - var rippleCallback = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null); - react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () { - if (rippleCallback.current) { - rippleCallback.current(); - rippleCallback.current = null; - } - }, [ripples]); // Used to filter out mouse emulated events on mobile. - - var ignoringMouseDown = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](false); // We use a timer in order to only show the ripples for touch "click" like events. - // We don't want to display the ripple for touch scroll events. - - var startTimer = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null); // This is the hook called once the previous timeout is ready. - - var startTimerCommit = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null); - var container = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null); - react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () { - return function () { - clearTimeout(startTimer.current); - }; - }, []); - var startCommit = react__WEBPACK_IMPORTED_MODULE_3__["useCallback"](function (params) { - var pulsate = params.pulsate, - rippleX = params.rippleX, - rippleY = params.rippleY, - rippleSize = params.rippleSize, - cb = params.cb; - setRipples(function (oldRipples) { - return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(oldRipples), [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_Ripple__WEBPACK_IMPORTED_MODULE_8__["default"], { - key: nextKey.current, - classes: classes, - timeout: DURATION, - pulsate: pulsate, - rippleX: rippleX, - rippleY: rippleY, - rippleSize: rippleSize - })]); - }); - nextKey.current += 1; - rippleCallback.current = cb; - }, [classes]); - var start = react__WEBPACK_IMPORTED_MODULE_3__["useCallback"](function () { - var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var cb = arguments.length > 2 ? arguments[2] : undefined; - var _options$pulsate = options.pulsate, - pulsate = _options$pulsate === void 0 ? false : _options$pulsate, - _options$center = options.center, - center = _options$center === void 0 ? centerProp || options.pulsate : _options$center, - _options$fakeElement = options.fakeElement, - fakeElement = _options$fakeElement === void 0 ? false : _options$fakeElement; - - if (event.type === 'mousedown' && ignoringMouseDown.current) { - ignoringMouseDown.current = false; - return; - } - - if (event.type === 'touchstart') { - ignoringMouseDown.current = true; - } - - var element = fakeElement ? null : container.current; - var rect = element ? element.getBoundingClientRect() : { - width: 0, - height: 0, - left: 0, - top: 0 - }; // Get the size of the ripple - - var rippleX; - var rippleY; - var rippleSize; - - if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) { - rippleX = Math.round(rect.width / 2); - rippleY = Math.round(rect.height / 2); - } else { - var _ref = event.touches ? event.touches[0] : event, - clientX = _ref.clientX, - clientY = _ref.clientY; - - rippleX = Math.round(clientX - rect.left); - rippleY = Math.round(clientY - rect.top); - } - - if (center) { - rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3); // For some reason the animation is broken on Mobile Chrome if the size if even. - - if (rippleSize % 2 === 0) { - rippleSize += 1; - } - } else { - var sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2; - var sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2; - rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2)); - } // Touche devices - - - if (event.touches) { - // check that this isn't another touchstart due to multitouch - // otherwise we will only clear a single timer when unmounting while two - // are running - if (startTimerCommit.current === null) { - // Prepare the ripple effect. - startTimerCommit.current = function () { - startCommit({ - pulsate: pulsate, - rippleX: rippleX, - rippleY: rippleY, - rippleSize: rippleSize, - cb: cb - }); - }; // Delay the execution of the ripple effect. - - - startTimer.current = setTimeout(function () { - if (startTimerCommit.current) { - startTimerCommit.current(); - startTimerCommit.current = null; - } - }, DELAY_RIPPLE); // We have to make a tradeoff with this value. - } - } else { - startCommit({ - pulsate: pulsate, - rippleX: rippleX, - rippleY: rippleY, - rippleSize: rippleSize, - cb: cb - }); - } - }, [centerProp, startCommit]); - var pulsate = react__WEBPACK_IMPORTED_MODULE_3__["useCallback"](function () { - start({}, { - pulsate: true - }); - }, [start]); - var stop = react__WEBPACK_IMPORTED_MODULE_3__["useCallback"](function (event, cb) { - clearTimeout(startTimer.current); // The touch interaction occurs too quickly. - // We still want to show ripple effect. - - if (event.type === 'touchend' && startTimerCommit.current) { - event.persist(); - startTimerCommit.current(); - startTimerCommit.current = null; - startTimer.current = setTimeout(function () { - stop(event, cb); - }); - return; - } - - startTimerCommit.current = null; - setRipples(function (oldRipples) { - if (oldRipples.length > 0) { - return oldRipples.slice(1); - } - - return oldRipples; - }); - rippleCallback.current = cb; - }, []); - react__WEBPACK_IMPORTED_MODULE_3__["useImperativeHandle"](ref, function () { - return { - pulsate: pulsate, - start: start, - stop: stop - }; - }, [pulsate, start, stop]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("span", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: Object(clsx__WEBPACK_IMPORTED_MODULE_6__["default"])(classes.root, className), - ref: container - }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react_transition_group__WEBPACK_IMPORTED_MODULE_5__["TransitionGroup"], { - component: null, - exit: true - }, ripples)); -}); - false ? undefined : void 0; -/* harmony default export */ __webpack_exports__["default"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_7__["default"])(styles, { - flip: false, - name: 'MuiTouchRipple' -})( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["memo"](TouchRipple))); - -/***/ }), - /***/ "O44F": /***/ (function(module, exports, __webpack_require__) { @@ -82137,25 +81396,6 @@ function buildDistanceInWordsLocale () { module.exports = buildDistanceInWordsLocale -/***/ }), - -/***/ "QVhX": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var shadowKeyUmbraOpacity = 0.2; -var shadowKeyPenumbraOpacity = 0.14; -var shadowAmbientShadowOpacity = 0.12; - -function createShadow() { - return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(','); -} // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss - - -var shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; -/* harmony default export */ __webpack_exports__["default"] = (shadows); - /***/ }), /***/ "QXd9": @@ -89718,7 +88958,7 @@ _ref) { exports = module.exports = __webpack_require__("DjJv")(false); // Module -exports.push([module.i, "html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}:root{--invertedBackgroundColor:#297ef2;--invertedContrastTextColor:#fff}.CozyTheme--inverted{--primaryTextColor:#fff;--secondaryTextColor:rgba(255,255,255,0.64);--disabledTextColor:rgba(255,255,255,0.4);--hintTextColor:rgba(255,255,255,0.4);--iconTextColor:#fff;--actionColorActive:#fff;--actionColorHover:rgba(255,255,255,0.08);--actionColorSelected:rgba(255,255,255,0.16);--actionColorDisabled:rgba(255,255,255,0.32);--actionColorDisabledBackground:rgba(255,255,255,0.12);--actionColorFocus:rgba(255,255,255,0.24);--actionColorGhost:rgba(255,255,255,0.08);--actionColorHoverGhost:rgba(255,255,255,0.16);--dividerColor:rgba(255,255,255,0.16);--borderMainColor:rgba(255,255,255,0.24);--borderDisabledColor:rgba(255,255,255,0.12);--borderGhostColor:rgba(255,255,255,0.48);--borderGhostDisabledColor:rgba(255,255,255,0.24);--paperBackgroundColor:#297ef2;--defaultBackgroundColor:#579eff;--contrastBackgroundColor:rgba(255,255,255,0.12);--primaryColorLight:#fff;--primaryColor:#fff;--primaryColorDark:#eaf3ff;--primaryContrastTextColor:#297ef2;--secondaryColorLight:#f8eefd;--secondaryColor:#ecd7f7;--secondaryColorDark:#deb8f0;--secondaryContrastTextColor:rgba(29,33,42,0.9);--errorColorLight:#ffecec;--errorColor:#ffd3d3;--errorColorDark:#ffb9b9;--errorColorContrastText:rgba(29,33,42,0.9);--errorBackground:#d31f1f;--warningColorLight:#fff3dd;--warningColor:#ffe4b5;--warningColorDark:#ffd58b;--warningColorContrastText:rgba(29,33,42,0.9);--successColorLight:#e3ffe7;--successColor:#c0f4c6;--successColorDark:#97eca1;--successColorContrastText:rgba(29,33,42,0.9);--infoColorLight:#d4feff;--infoColor:#affdff;--infoColorDark:#86f5f7;--infoColorContrastText:rgba(29,33,42,0.9);--iconColor:currentColor;--textIconColor:#fff;--actionMenuIconColor:#fff;--barIconColor:#fff;--barIconColorDisabled:rgba(255,255,255,0.88);--spinnerColor:#fff;--linkColor:#fff;--linkColorActive:#fff;--linkTextDecoration:underline;--regularButtonPrimaryColor:#fff;--regularButtonSecondaryColor:#fff;--regularButtonActiveColor:rgba(255,255,255,0.88);--regularButtonConstrastColor:#297ef2;--secondaryButtonPrimaryColor:#297ef2;--secondaryButtonSecondaryColor:#fff;--secondaryButtonActiveColor:rgba(255,255,255,0.24);--secondaryButtonContrastColor:#fff;--dividerColor2:rgba(255,255,255,0.16)}html{--grey0:#fff;--grey50:#f9fafb;--grey100:#f4f5f6;--grey200:#eceff1;--grey300:#dde0e3;--grey400:#bfc3c7;--grey500:#9da2a6;--grey600:#7c8086;--grey700:#5d6169;--grey800:#3e424a;--grey900:#1d212a;--greyA100:#d3d6d8;--greyA200:#a7abaf;--greyA400:#2c3039;--greyA700:#5d6169;--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,0.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.CozyTheme--normal{--primaryColorLightest:#b3d3ff;--primaryColorLight:#579eff;--primaryColor:#297ef2;--primaryColorDark:#0f5cc7;--primaryContrastTextColor:#fff;--secondaryColorLightest:#ffd3d3;--secondaryColorLight:#f96b6b;--secondaryColor:#ea3f3f;--secondaryColorDark:#d31f1f;--secondaryContrastTextColor:#fff;--primaryBackgroundLight:#f7faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f4f5f6;--contrastBackgroundColor:rgba(29,33,42,0.048);--primaryTextColor:rgba(29,33,42,0.9);--secondaryTextColor:rgba(29,33,42,0.64);--disabledTextColor:rgba(29,33,42,0.32);--hintTextColor:rgba(29,33,42,0.32);--iconTextColor:rgba(29,33,42,0.72);--actionColorActive:rgba(29,33,42,0.56);--actionColorHover:rgba(29,33,42,0.04);--actionColorSelected:rgba(29,33,42,0.08);--actionColorDisabled:rgba(29,33,42,0.24);--actionColorDisabledBackground:rgba(29,33,42,0.12);--actionColorFocus:rgba(29,33,42,0.12);--actionColorGhost:rgba(29,33,42,0.08);--actionColorHoverGhost:rgba(29,33,42,0.16);--borderMainColor:rgba(29,33,42,0.16);--borderDisabledColor:rgba(29,33,42,0.08);--borderGhostColor:rgba(29,33,42,0.48);--borderGhostDisabledColor:rgba(29,33,42,0.16);--dividerColor:rgba(29,33,42,0.12);--successColorLight:#38c949;--successColor:#09ab1b;--successColorDark:#018711;--successColorContrastText:#fff;--warningColorLight:#efa82d;--warningColor:#cb8100;--warningColorDark:#986100;--warningColorContrastText:#fff;--errorColorLightest:#ffecec;--errorColorLight:#f96b6b;--errorColor:#ea3f3f;--errorColorDark:#d31f1f;--errorBackground:#ffecec;--errorColorContrastText:#fff;--infoColorLight:#0ec4c7;--infoColor:#009fa2;--infoColorDark:#007578;--infoColorContrastText:#fff;--shadow0:none;--shadow1:0 2px 4px 0 rgba(29,33,42,0.08),0 4px 16px 0 rgba(29,33,42,0.06),0 0 0 .5px rgba(29,33,42,0.12);--shadow2:0 3px 5px 0 rgba(29,33,42,0.09),0 4px 17px 0 rgba(29,33,42,0.07),0 0 0 .5px rgba(29,33,42,0.12);--shadow3:0 3px 5px -1px rgba(29,33,42,0.09),0 5px 19px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow4:0 3px 6px -1px rgba(29,33,42,0.1),0 5px 20px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow5:0 4px 6px -1px rgba(29,33,42,0.11),0 5px 22px 1px rgba(29,33,42,0.09),0 0 0 .5px rgba(29,33,42,0.12);--shadow6:0 4px 7px -2px rgba(29,33,42,0.11),0 6px 23px 2px rgba(29,33,42,0.1),0 0 0 .5px rgba(29,33,42,0.12);--shadow7:0 5px 7px -2px rgba(29,33,42,0.12),0 6px 24px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow8:0 5px 8px -2px rgba(29,33,42,0.13),0 6px 26px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow9:0 5px 8px -3px rgba(29,33,42,0.14),0 7px 27px 3px rgba(29,33,42,0.12),0 0 0 .5px rgba(29,33,42,0.12);--shadow10:0 6px 9px -3px rgba(29,33,42,0.14),0 7px 29px 3px rgba(29,33,42,0.13),0 0 0 .5px rgba(29,33,42,0.12);--shadow11:0 6px 9px -3px rgba(29,33,42,0.15),0 7px 30px 3px rgba(29,33,42,0.14),0 0 0 .5px rgba(29,33,42,0.12);--shadow12:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 31px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow13:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 33px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow14:0 8px 11px -5px rgba(29,33,42,0.17),0 9px 34px 5px rgba(29,33,42,0.16),0 0 0 .5px rgba(29,33,42,0.12);--shadow15:0 8px 11px -5px rgba(29,33,42,0.18),0 9px 35px 5px rgba(29,33,42,0.17),0 0 0 .5px rgba(29,33,42,0.12);--shadow16:0 9px 12px -5px rgba(29,33,42,0.18),0 9px 37px 5px rgba(29,33,42,0.18),0 0 0 .5px rgba(29,33,42,0.12);--shadow17:0 9px 12px -6px rgba(29,33,42,0.19),0 10px 38px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow18:0 9px 13px -6px rgba(29,33,42,0.2),0 10px 40px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow19:0 10px 13px -6px rgba(29,33,42,0.21),0 10px 41px 6px rgba(29,33,42,0.2),0 0 0 .5px rgba(29,33,42,0.12);--shadow20:0 10px 14px -7px rgba(29,33,42,0.21),0 11px 42px 7px rgba(29,33,42,0.21),0 0 0 .5px rgba(29,33,42,0.12);--shadow21:0 11px 14px -7px rgba(29,33,42,0.22),0 11px 44px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow22:0 11px 15px -7px rgba(29,33,42,0.23),0 11px 45px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow23:0 12px 15px -8px rgba(29,33,42,0.23),0 12px 47px 8px rgba(29,33,42,0.23),0 0 0 .5px rgba(29,33,42,0.12);--shadow24:0 12px 16px -8px rgba(29,33,42,0.24),0 12px 48px 8px rgba(29,33,42,0.24),0 0 0 .5px rgba(29,33,42,0.12);--shadow25:0 1px 4px rgba(29,33,42,0.04);--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}.u-elevation-1{box-shadow:0 4px 12px 0 rgba(0,0,0,0.08);border:1px solid rgba(0,0,0,0.08)}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zIndex-modal-footer:71;--zIndex-modal-toolbar:72;--zindex-alert:80}/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\nhtml{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100%;margin:0}@media (max-width:63.938rem){html,body{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}html,body{background-color:var(--white);color:var(--black)}.u-visuallyhidden{position:absolute !important;border:0 !important;width:.063rem !important;height:.063rem !important;overflow:hidden !important;padding:0 !important;white-space:nowrap !important;clip:rect(.063rem,.063rem,.063rem,.063rem) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important}.u-hide{display:none !important;visibility:hidden !important}@media (max-width:63.938rem){.u-hide--mob{display:none !important}}@media (min-width:64rem){.u-hide--tablet{display:none !important}}@media (min-width:48.063rem){.u-hide--desk{display:none !important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black) !important}.u-charcoalGrey{color:var(--charcoalGrey) !important}.u-coolGrey{color:var(--coolGrey) !important}.u-silver{color:var(--silver) !important}.u-slateGrey{color:var(--slateGrey) !important}.u-lightishPurple{color:#b449e7 !important}.u-dodgerBlue{color:#297ef2 !important}.u-overlay{color:var(--overlay) !important}.u-paleGrey{color:var(--paleGrey) !important}.u-monza{color:#dd0505 !important}.u-pomegranate{color:#f52d2d !important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight) !important}.u-primaryColor{color:var(--primaryColor) !important}.u-primaryColorLight{color:var(--primaryColorLight) !important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor) !important}.u-error{color:var(--errorColor) !important}.u-errorBackground{color:var(--errorBackground) !important}.u-success{color:var(--successColor) !important}.u-warning{color:var(--warningColor) !important}.u-info{color:var(--infoColor) !important}.u-weirdGreen{color:#40de8e !important}.u-white{color:var(--white) !important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis > *{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis > :first-child{text-overflow:ellipsis}.u-midellipsis > :last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:'[...]'){.u-midellipsis > :first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor) !important;-webkit-text-decoration:var(--linkTextDecoration) !important;text-decoration:var(--linkTextDecoration) !important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive) !important}.u-lh-tiny{line-height:1 !important}.u-lh-xsmall{line-height:1.1 !important}.u-lh-small{line-height:1.2 !important}.u-lh-medium{line-height:1.3 !important}.u-lh-large{line-height:1.4 !important}.u-lh-xlarge{line-height:1.5 !important}.u-fz-tiny{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium{font-size:1rem !important;line-height:1.5 !important}.u-fz-large{font-size:1.125rem !important;line-height:1.5 !important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-t{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-t{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-t{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-t{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-s{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-s{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-s{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-s{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-m{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-m{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-m{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-m{font-size:1.125rem !important;line-height:1.5 !important}}.u-ta-left{text-align:left !important}.u-ta-right{text-align:right !important}.u-ta-center{text-align:center !important}.u-ta-justify{text-align:justify !important}@media (max-width:30rem){.u-ta-left-t{text-align:left !important}.u-ta-right-t{text-align:right !important}.u-ta-center-t{text-align:center !important}.u-ta-justify-t{text-align:justify !important}}@media (max-width:48rem){.u-ta-left-s{text-align:left !important}.u-ta-right-s{text-align:right !important}.u-ta-center-s{text-align:center !important}.u-ta-justify-s{text-align:justify !important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left !important}.u-ta-right-m{text-align:right !important}.u-ta-center-m{text-align:center !important}.u-ta-justify-m{text-align:justify !important}}.u-fs-normal{font-style:normal !important}.u-fs-italic{font-style:italic !important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal !important}.u-fs-italic-t{font-style:italic !important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal !important}.u-fs-italic-s{font-style:italic !important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal !important}.u-fs-italic-m{font-style:italic !important}}.u-fw-normal{font-weight:normal}.u-fw-bold{font-weight:bold}@media (max-width:30rem){.u-fw-normal-t{font-weight:normal}.u-fw-bold-t{font-weight:bold}}@media (max-width:48rem){.u-fw-normal-s{font-weight:normal}.u-fw-bold-s{font-weight:bold}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:normal}.u-fw-bold-m{font-weight:bold}}.c-btn,.c-btn--regular,.c-btn-client,.c-btn-client-mobile{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-width:.063rem;border-style:solid;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:bold;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border-color:var(--regularButtonSecondaryColor)}.c-btn svg,.c-btn--regular svg,.c-btn-client svg,.c-btn-client-mobile svg{fill:currentColor}.c-btn svg + span,.c-btn--regular svg + span,.c-btn-client svg + span,.c-btn-client-mobile svg + span{margin-left:.375rem}.c-btn input,.c-btn--regular input,.c-btn-client input,.c-btn-client-mobile input{cursor:pointer}.c-btn > span,.c-btn--regular > span,.c-btn-client > span,.c-btn-client-mobile > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn[disabled],.c-btn--regular[disabled],.c-btn-client[disabled],.c-btn-client-mobile[disabled],.c-btn[aria-disabled=true],.c-btn--regular[aria-disabled=true],.c-btn-client[aria-disabled=true],.c-btn-client-mobile[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn[disabled] input,.c-btn--regular[disabled] input,.c-btn-client[disabled] input,.c-btn-client-mobile[disabled] input,.c-btn[aria-disabled=true] input,.c-btn--regular[aria-disabled=true] input,.c-btn-client[aria-disabled=true] input,.c-btn-client-mobile[aria-disabled=true] input{cursor:not-allowed}.c-btn[aria-busy=true],.c-btn--regular[aria-busy=true],.c-btn-client[aria-busy=true],.c-btn-client-mobile[aria-busy=true]{opacity:.5;pointer-events:none}.c-btn:visited,.c-btn--regular:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--regularButtonConstrastColor)}.c-btn:active,.c-btn--regular:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn:hover,.c-btn--regular:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn:focus,.c-btn--regular:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.c-btn[disabled]:hover,.c-btn--regular[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn[aria-disabled=true]:hover,.c-btn--regular[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.c-btn--ghost{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.c-btn--ghost:visited{color:var(--primaryColor)}.c-btn--ghost:active,.c-btn--ghost:hover,.c-btn--ghost:focus{border-color:#c2dcff;background-color:#c2dcff}.c-btn--ghost[disabled]:hover,.c-btn--ghost[aria-disabled=true]:hover{border-color:#c2dcff;background-color:var(--zircon)}.c-btn--highlight{background-color:#35ce68;color:var(--white);border-color:#35ce68}.c-btn--highlight:visited{color:var(--white)}.c-btn--highlight:active,.c-btn--highlight:hover,.c-btn--highlight:focus{border-color:#08b442;background-color:#08b442}.c-btn--highlight[disabled]:hover,.c-btn--highlight[aria-disabled=true]:hover{border-color:#35ce68;background-color:#35ce68}.c-btn--alpha,.c-btn--action,.c-btn--close{background-color:transparent;color:var(--white);border-color:var(--white)}.c-btn--alpha:visited,.c-btn--action:visited,.c-btn--close:visited{color:var(--white)}.c-btn--alpha:active,.c-btn--action:active,.c-btn--close:active,.c-btn--alpha:hover,.c-btn--action:hover,.c-btn--close:hover,.c-btn--alpha:focus,.c-btn--action:focus,.c-btn--close:focus{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.c-btn--alpha[disabled]:hover,.c-btn--action[disabled]:hover,.c-btn--close[disabled]:hover,.c-btn--alpha[aria-disabled=true]:hover,.c-btn--action[aria-disabled=true]:hover,.c-btn--close[aria-disabled=true]:hover{border-color:var(--white);background-color:transparent}.c-btn--danger{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.c-btn--danger:visited{color:var(--white)}.c-btn--danger:active,.c-btn--danger:hover,.c-btn--danger:focus{border-color:var(--monza);background-color:var(--monza)}.c-btn--danger[disabled]:hover,.c-btn--danger[aria-disabled=true]:hover{border-color:#f52d2d;background-color:#f52d2d}.c-btn--secondary,.c-btn-client,.c-btn-client-mobile{background-color:var(--secondaryButtonPrimaryColor);color:var(--secondaryButtonContrastColor);border-color:var(--secondaryButtonSecondaryColor)}.c-btn--secondary:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--secondaryButtonContrastColor)}.c-btn--secondary:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn--secondary:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn--secondary:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.c-btn--secondary[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn--secondary[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.c-btn--danger-outline{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.c-btn--danger-outline:visited{color:#f52d2d}.c-btn--danger-outline:active,.c-btn--danger-outline:hover,.c-btn--danger-outline:focus{border-color:#fdcbcb;background-color:#fdcbcb}.c-btn--danger-outline[disabled]:hover,.c-btn--danger-outline[aria-disabled=true]:hover{border-color:#fdcbcb;background-color:var(--white)}.c-btn--text{background-color:transparent;color:var(--primaryColor);border-color:transparent}.c-btn--text:visited{color:var(--primaryColor)}.c-btn--text:active,.c-btn--text:hover,.c-btn--text:focus{border-color:transparent;background-color:transparent}.c-btn--text[disabled]:hover,.c-btn--text[aria-disabled=true]:hover{border-color:transparent;background-color:transparent}.c-btn--text:hover,.c-btn--text:focus{color:var(--primaryColorDark)}.c-btn--action{border-color:transparent;padding:.5rem;opacity:.5}.c-btn--action:active,.c-btn--action:hover,.c-btn--action:focus{background-color:transparent;border-color:transparent}.c-btn--close{border-color:transparent;padding:.5rem}.c-btn--close:active,.c-btn--close:hover,.c-btn--close:focus{background-color:transparent;border-color:transparent}.c-btn-alert,.c-btn-alert--error,.c-btn-alert--info,.c-btn-alert--success{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:bold;font-size:.875rem;text-decoration:none}.c-btn-alert--error{color:#f52d2d !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--error:visited{color:#f52d2d !important}.c-btn-alert--error:active,.c-btn-alert--error:hover,.c-btn-alert--error:focus{color:var(--monza) !important;background-color:#fdcbcb !important;border-color:#fdcbcb !important}.c-btn-alert--info{color:var(--white) !important;background-color:var(--coolGrey) !important;border-color:var(--coolGrey) !important}.c-btn-alert--info[disabled]:hover,.c-btn-alert--info[aria-disabled=true]:hover{background-color:var(--coolGrey) !important}.c-btn-alert--info:visited{color:var(--white) !important}.c-btn-alert--info:active,.c-btn-alert--info:hover,.c-btn-alert--info:focus{background-color:var(--charcoalGrey) !important;border-color:var(--charcoalGrey) !important}.c-btn-alert--success{color:#35ce68 !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--success:visited{color:#35ce68 !important}.c-btn-alert--success:active,.c-btn-alert--success:hover,.c-btn-alert--success:focus{color:#08b442 !important;background-color:#def7e7 !important;border-color:#def7e7 !important}.c-btn-client,.c-btn-client-mobile{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:transparent;text-align:left;font-size:.813rem;font-weight:bold;line-height:1.3;color:var(--slateGrey)}.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--slateGrey)}.c-btn-client span,.c-btn-client-mobile span{flex:0 1 auto}.c-btn-client figure,.c-btn-client-mobile figure{flex:0 0 2rem;margin:0 .75rem 0 0}.c-btn-client-mobile{display:flex;justify-content:flex-start;background-color:var(--dodgerBlue);border:0;border-radius:0;margin:0;padding:.5rem 3rem .5rem 1rem;font-size:1rem;font-weight:normal;color:var(--white);text-decoration:none;text-transform:none}.c-btn-client-mobile[disabled]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{background-color:var(--dodgerBlue)}.c-btn-client-mobile:visited{color:var(--white)}.c-btn-client-mobile:active,.c-btn-client-mobile:hover,.c-btn-client-mobile:focus{background-color:var(--dodgerBlue)}.c-btn-client-mobile figure{flex:0 0 2.75rem;border-radius:.5rem;border:.313rem solid var(--white);background-color:var(--white)}.c-btn-client-mobile figure svg{display:block}.c-btn--left > span{justify-content:flex-start}.c-btn--center > span{justify-content:center}.c-btn--right > span{justify-content:flex-end}.c-btn.c-btn--tiny{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.c-btn.c-btn--small{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.c-btn.c-btn--large{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.c-btn.c-btn--full{width:100%;margin-left:0;margin-right:0}.c-btn.c-btn--narrow,.c-btn.c-btn--round{min-width:auto}.c-btn.c-btn--round{border-radius:100%;min-height:auto;padding:.25rem}.c-btn.c-btn--round svg{width:.625rem;height:.625rem}@media (pointer:coarse){.c-btn.c-btn--round:after{content:'';position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.c-btn--subtle{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:baseline;background:transparent;cursor:pointer;font-size:.875rem;font-weight:bold;text-transform:uppercase}.c-btn--subtle:active,.c-btn--subtle:focus,.c-btn--subtle:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn--subtle[disabled],.c-btn--subtle[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn--subtle[disabled]:hover,.c-btn--subtle[aria-disabled=true]:hover{background:transparent}.c-btn--subtle[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.c-btn--subtle[aria-busy=true]:hover{background:transparent}.c-btn--subtle:active,.c-btn--subtle:hover,.c-btn--subtle:focus,.c-btn--subtle:visited{color:var(--primaryColorDark);background:transparent}* + .c-btn--subtle{margin-left:.063rem}.c-btn--subtle.c-btn--tiny{min-height:0;min-width:0;padding:0;font-size:.563rem}.c-btn--subtle.c-btn--small{min-height:0;min-width:0;padding:0;font-size:.75rem}.c-btn--subtle.c-btn--large{min-height:0;min-width:0;padding:0;font-size:1rem}.c-btn--subtle.c-btn--danger{color:#f52d2d}.c-btn--subtle.c-btn--danger:active,.c-btn--subtle.c-btn--danger:focus,.c-btn--subtle.c-btn--danger:hover{color:var(--monza)}.c-btn--subtle.c-btn--highlight{color:#35ce68}.c-btn--subtle.c-btn--highlight:active,.c-btn--subtle.c-btn--highlight:focus,.c-btn--subtle.c-btn--highlight:hover{color:#08b442}.c-btn--subtle.c-btn--regular{color:var(--regularButtonSecondaryColor)}.c-btn--subtle.c-btn--regular:active,.c-btn--subtle.c-btn--regular:focus,.c-btn--subtle.c-btn--regular:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle.c-btn--secondary{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary:active,.c-btn--subtle.c-btn--secondary:focus,.c-btn--subtle.c-btn--secondary:hover{color:var(--charcoalGrey)}.c-btn--subtle.c-btn--secondary:active svg,.c-btn--subtle.c-btn--secondary:focus svg,.c-btn--subtle.c-btn--secondary:hover svg{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary svg{color:var(--coolGrey)}[data-input=radio],[data-input=checkbox]{display:flex}[data-input=radio] input[type=radio],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=checkbox] input[type=checkbox]{display:none !important;visibility:hidden !important}[data-input=radio] label,[data-input=checkbox] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=radio] label::before,[data-input=checkbox] label::before,[data-input=radio] label::after,[data-input=checkbox] label::after{content:'';position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=radio] label::before,[data-input=checkbox] label::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1)}[data-input=radio] label::after,[data-input=checkbox] label::after{transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-label{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:bold;line-height:1rem}.c-label.is-error{color:var(--pomegranate)}.c-label--block{display:block;padding:.5rem 0}.c-input-text[aria-disabled=true],.c-input-text[disabled],.c-textarea[aria-disabled=true],.c-textarea[disabled],.c-select[aria-disabled=true],.c-select[disabled],.wizard-select[aria-disabled=true],.wizard-select[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.c-input-text[aria-disabled=true]:hover,.c-input-text[disabled]:hover,.c-textarea[aria-disabled=true]:hover,.c-textarea[disabled]:hover,.c-select[aria-disabled=true]:hover,.c-select[disabled]:hover,.wizard-select[aria-disabled=true]:hover,.wizard-select[disabled]:hover,.c-input-text[aria-disabled=true]:focus,.c-input-text[disabled]:focus,.c-textarea[aria-disabled=true]:focus,.c-textarea[disabled]:focus,.c-select[aria-disabled=true]:focus,.c-select[disabled]:focus,.wizard-select[aria-disabled=true]:focus,.wizard-select[disabled]:focus{border:.063rem solid var(--dividerColor)}.c-input-text,.c-textarea,.c-select,.wizard-select{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.c-input-text::-webkit-input-placeholder,.c-textarea::-webkit-input-placeholder,.c-select::-webkit-input-placeholder,.wizard-select::-webkit-input-placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text::placeholder,.c-textarea::placeholder,.c-select::placeholder,.wizard-select::placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text:hover,.c-textarea:hover,.c-select:hover,.wizard-select:hover{border:.063rem solid var(--coolGrey)}.c-input-text:focus,.c-textarea:focus,.c-select:focus,.wizard-select:focus{border:.063rem solid var(--dodgerBlue);outline:0}.c-input-text.is-error,.c-textarea.is-error,.c-select.is-error,.wizard-select.is-error,.c-input-text:not(:focus):invalid,.c-textarea:not(:focus):invalid,.c-select:not(:focus):invalid,.wizard-select:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.c-input-text--tiny,.c-textarea--tiny,.c-select--tiny{border-radius:.125rem;padding:.25rem .5rem .375rem}.c-input-text--medium,.c-textarea--medium,.c-select--medium,.wizard-select--medium{border-radius:.125rem;padding:.5rem 1rem .625rem}.c-input-text--large{border-radius:.188rem;padding:.813rem 1rem}.c-input-text--fullwidth,.c-textarea--fullwidth,.c-select--fullwidth{max-width:100%}.c-input-checkbox,.c-input-radio{display:flex;align-items:center;min-width:1rem;min-height:1rem}.c-input-checkbox span,.c-input-radio span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.c-input-checkbox span::before,.c-input-radio span::before,.c-input-checkbox span::after,.c-input-radio span::after{content:'';position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.c-input-checkbox span::before,.c-input-radio span::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.c-input-checkbox span:hover::before,.c-input-radio span:hover::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox span::after,.c-input-radio span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox[aria-checked='mixed'] span::after,.c-input-radio[aria-checked='mixed'] span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}.c-input-checkbox[aria-disabled=true] span,.c-input-radio[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.c-input-checkbox[aria-disabled=true] :hover::before,.c-input-radio[aria-disabled=true] :hover::before{box-shadow:inset 0 0 0 .125rem var(--silver)}.c-input-checkbox[aria-disabled=true] ::before,.c-input-radio[aria-disabled=true] ::before{background-color:var(--paleGrey)}.c-input-checkbox input,.c-input-radio input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0,0 0,0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.c-input-checkbox input:focus + span::before,.c-input-radio input:focus + span::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::before,.c-input-radio input:checked + span::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::after,.c-input-radio input:checked + span::after{opacity:1;-webkit-transform:translateY(-50%) scale(1);transform:translateY(-50%) scale(1)}.c-input-checkbox input:not(:checked) + span::after,.c-input-radio input:not(:checked) + span::after{opacity:0;-webkit-transform:translateY(-50%) scale(0);transform:translateY(-50%) scale(0)}.c-input-checkbox.is-error span,.c-input-radio.is-error span{color:var(--pomegranate)}.c-input-checkbox.is-error span::before,.c-input-radio.is-error span::before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.c-input-checkbox--noGutter span,.c-input-radio--noGutter span{padding-left:0}.c-input-radio span::before,.c-input-radio span::after{border-radius:50%}.c-input-radio span::after{content:'';background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.c-textarea{display:block;width:100%;min-height:7.5rem;resize:vertical}.c-textarea--tiny{min-height:3rem}.c-textarea--medium{min-height:5rem}.c-select,.c-select--tiny,.c-select--medium,.c-select--fullwidth,.wizard-select,.wizard-select--medium{padding-right:2.375rem}.c-select,.wizard-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyLjI4NTcxNCwgMTIuMDAwMDAwKSByb3RhdGUoOTAuMDAwMDAwKSB0cmFuc2xhdGUoLTEyLjI4NTcxNCwgLTEyLjAwMDAwMCkiPgogICAgPHBhdGggZD0iTTYuNDYwMjYwNzcsMjAuMzE3NDAzNiBDNS44NDY1Nzk3NCwyMC45MzEwODQ3IDUuODQ2NTc5NzQsMjEuOTI2MDU4MiA2LjQ2MDI2MDc3LDIyLjUzOTczOTIgQzcuMDczOTQxOCwyMy4xNTM0MjAzIDguMDY4OTE1MzQsMjMuMTUzNDIwMyA4LjY4MjU5NjM3LDIyLjUzOTczOTIgTDE4LjExMTE2NzgsMTMuMTExMTY3OCBDMTguNzI0ODQ4OCwxMi40OTc0ODY4IDE4LjcyNDg0ODgsMTEuNTAyNTEzMiAxOC4xMTExNjc4LDEwLjg4ODgzMjIgTDguNjgyNTk2MzcsMS40NjAyNjA3NyBDOC4wNjg5MTUzNCwwLjg0NjU3OTc0MyA3LjA3Mzk0MTgsMC44NDY1Nzk3NDMgNi40NjAyNjA3NywxLjQ2MDI2MDc3IEM1Ljg0NjU3OTc0LDIuMDczOTQxOCA1Ljg0NjU3OTc0LDMuMDY4OTE1MzQgNi40NjAyNjA3NywzLjY4MjU5NjM3IEwxNC43Nzc2NjQ0LDEyIEw2LjQ2MDI2MDc3LDIwLjMxNzQwMzYgWiIgLz4KICA8L2c+Cjwvc3ZnPgo=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.c-select::-ms-expand,.wizard-select::-ms-expand{display:none}.o-field{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.o-field-inline{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.o-field-inline{flex-direction:column;margin-left:0}}.c-double-field{width:100%}.c-double-field--with-button{box-sizing:border-box;position:relative;padding-right:2.5rem}.c-double-field-label{min-height:2.5rem}.c-double-field-button{position:absolute;right:-2.5rem;top:.625rem}.c-double-field-wrapper{display:inline-flex;width:100%;margin-bottom:.5rem}@media (max-width:48rem){.c-double-field-wrapper{flex-direction:column}}.c-double-field-input{box-sizing:border-box;flex:1 1 70%}.c-double-field-input + .c-double-field-input{flex:1 1 auto}[data-input=radio] label::before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked + label::before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label::before,[data-input=checkbox] label::after{border-radius:.125rem}[data-input=checkbox] label::before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label::before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain}[data-input=checkbox][aria-checked='mixed'] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked + label::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked + label::after{opacity:1;-webkit-transform:scale(1);transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked) + label::after{opacity:0;-webkit-transform:scale(0);transform:scale(0)}.wizard-wrapper{display:flex;flex-flow:column nowrap;align-items:stretch}.wizard-main{background:linear-gradient(#fff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,0.25) 0,rgba(214,216,218,0.25) 25%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 100%),linear-gradient(rgba(255,255,255,0) 0,rgba(255,255,255,0) 74%,rgba(214,216,218,0.25) 75%,rgba(214,216,218,0.25) 100%) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.wizard-header,.wizard-footer{flex:0 0 auto}.o-layout,.o-layout-2panes{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.o-layout main,.o-layout-2panes main{display:flex;flex-direction:column;flex:0 0 auto}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.o-layout,.o-layout-2panes{display:block}.o-layout main,.o-layout-2panes main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{display:block;overflow:visible}.o-layout:before,.o-layout-2panes:before,.o-layout:after,.o-layout-2panes:after{content:'';display:block}.o-layout:before,.o-layout-2panes:before{height:3rem}.o-layout:after,.o-layout-2panes:after{height:3rem}}.o-layout-2panes{flex:0 0 100%;align-items:stretch}.o-layout-2panes > aside{display:flex;flex-direction:column;flex:0 0 auto}.o-layout-2panes main,.o-layout-2panes main > [role=contentinfo],.o-layout-2panes main > [role=main]{height:auto}@media (max-width:63.938rem){.o-layout-2panes > aside{position:fixed;bottom:0;left:0;display:block;z-index:var(--zIndex-nav);width:100%}}.u-media{display:flex;align-items:center}.u-media-top{align-items:flex-start}.u-media-bottom{align-items:flex-end}.u-media-grow{flex:1 1 auto;overflow:hidden}.u-media-fixed{line-height:0;flex:0 0 auto}:root{--sidebarHeight:3rem}.o-sidebar{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.o-sidebar{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.c-avatar{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:var(--zIndex-low)}.c-avatar svg{width:50%;height:50%}.c-avatar-image{width:100%}.u-card{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.c-chip{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.c-chip--round{width:2.5rem;text-align:center;justify-content:center}.c-chip--tinySize{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.c-chip--smallSize{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.c-chip--normalSize{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.c-chip--outlinedVariant{border:1px solid}.c-chip--dashedVariant{border:1px dashed}.c-chip--normalTheme{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.c-chip--primaryTheme{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.c-chip--errorTheme{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.c-chip--hoverableNormalTheme{color:var(--charcoalGrey)}.c-chip--hoverableNormalTheme:hover,.c-chip--hoverableNormalTheme:focus{background-color:var(--silver)}.c-chip--hoverablePrimaryTheme:hover,.c-chip--hoverablePrimaryTheme:focus{background-color:var(--primaryBackgroundLight)}.c-chip--normalPrimaryTheme{background-color:var(--primaryColor);color:var(--white)}.c-chip--hoverableErrorTheme:hover,.c-chip--hoverableErrorTheme:focus{background-color:var(--errorColorLight)}.c-chip--outlinedNormalTheme{background-color:transparent}.c-chip--clickable{cursor:pointer}.c-chip-separator{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.c-chip-button{cursor:pointer;color:var(--slateGrey)}.c-chip-button--disabled{color:var(--coolGrey)}.c-avatar{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize) / 2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.c-avatar--xsmall{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:calc(1rem / 2.28)}.c-avatar--small{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:calc(2rem / 2.28)}.c-avatar--large{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:calc(3rem / 2.28)}.c-avatar--xlarge{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:calc(4rem / 2.28)}.c-avatar-initials{font-weight:bold;line-height:1}.c-nav{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.c-nav{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.c-nav-item{position:relative;z-index:var(--zIndex-app);height:3rem;box-sizing:border-box;cursor:pointer}.c-nav-item:hover::before{content:'';position:absolute;z-index:var(--zIndex-below);border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item:hover::before{content:none}}@media (max-width:63.938rem){.c-nav-item{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.c-nav-item:hover::before{content:none}}.c-nav-icon{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.c-nav-icon svg{display:block}.is-active .c-nav-icon{color:var(--primaryColor)}:hover > .c-nav-icon{color:var(--navTextColor)}@media (max-width:63.938rem){.c-nav-icon{display:block;margin-right:0}.c-nav-icon svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.c-nav-text{display:block;text-align:center;white-space:nowrap}}.c-nav-link{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem center}.c-nav-link:visited{color:var(--navTextColor)}.c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-link.is-active{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:bold;color:var(--navTextActiveColor)}.c-nav-link.is-active .c-nav-icon{color:var(--primaryColor)}@media (max-width:63.938rem){.c-nav-link{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:center top;background-size:1.5rem}.c-nav-link.is-active,.c-nav-link:hover{box-shadow:none;font-weight:normal}}@media not all and (pointer:fine){.c-nav-link:hover:not(.is-active){color:var(--navTextColor)}}.c-nav-item-secondary{height:auto}.c-nav-item-secondary + .c-nav-item-secondary{margin-top:.125rem}@media (max-width:63.938rem){.c-nav-item-secondary{display:none}}.c-nav-item-secondary:hover::before{content:'';position:absolute;z-index:var(--zIndex-below);border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item-secondary:hover::before{content:none}}.c-nav-item-secondary .c-nav-link{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.c-nav-item-secondary .c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-item-secondary .c-nav-link.is-active{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.c-table-divider{background-color:var(--paleGrey);height:2rem;display:flex;align-items:center;text-indent:2rem;font-weight:bold;font-size:.75rem;line-height:1.33;color:var(--coolGrey);text-transform:uppercase}.c-table-divider + .c-table-divider{border-top:0}@media (max-width:48rem){.c-table-divider{text-indent:1rem}}div.c-table{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.c-table-head{flex:0 0 2rem}@media (max-width:48rem){.c-table-head{display:none}}.c-table-body{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.c-table-body{max-height:100%}}.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:var(--actionColorHover)}@media (hover:none){.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:transparent}}.c-table-row:last-child,.c-table-row-head:last-child,table.c-table tr:last-child,table.c-table thead tr:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{max-width:100vw}}.c-table-row-head,table.c-table thead tr{border:0}.c-table-row-head:hover,table.c-table thead tr:hover{background-color:transparent}.c-table-row-head:last-child,table.c-table thead tr:last-child{border-bottom:0}.c-table-row.is-selected,table.c-table tr.is-selected,.c-table-row.is-selected:hover,table.c-table tr.is-selected:hover{background-color:var(--zircon)}.c-table-cell,.c-table-header,table.c-table th,table.c-table td{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.c-table-header,table.c-table th{padding:.5rem 1rem;font-size:.75rem;font-weight:bold;text-transform:uppercase}.c-table-cell--primary,.c-table-ellipsis,table.c-table td.c-table-cell--primary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-table-cell--primary,table.c-table td.c-table-cell--primary{font-size:1rem;line-height:1.15;color:var(--charcoalGrey)}@media (max-width:48rem){.c-table-cell--primary,table.c-table td.c-table-cell--primary{flex:1 1 auto}}.c-table-divider{position:sticky;z-index:var(--zIndex-low);top:0}table.c-table{width:100%;border:0;text-align:left;color:var(--secondaryTextColor);border-collapse:collapse}table.c-table tr{display:table-row}table.c-table thead tr{display:table-row}table.c-table tr.c-table-divider{border:0;width:auto;height:auto;background-color:var(--zircon)}table.c-table tr.c-table-divider::before{content:none}table.c-table tr.c-table-divider td{font-weight:bold;color:var(--secondaryTextColor);padding:0;font-size:.75rem;line-height:1.33}table.c-table tr.c-table-divider + *{border-top:0}table.c-table td.c-table-ellipsis{position:relative}table.c-table td.c-table-ellipsis > div{box-sizing:border-box;position:absolute;top:.875rem;right:1rem;bottom:.875rem;left:1rem;display:block;width:calc(100% - rem(32))}table.c-table td.c-table-ellipsis > div > div{box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wizard{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard{flex-direction:column;justify-content:flex-start}}.wizard--waiting{color:var(--white);background-color:var(--primaryColor)}.wizard--scroll{position:absolute;padding-top:3.5rem}@media (max-width:63.938rem){.wizard--scroll{box-sizing:border-box}}@media (max-width:30rem),(max-height:23.438rem){.wizard--scroll{padding-top:0}}.wizard--dual{position:static;width:100%}.wizard-wrapper{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper{justify-content:flex-start}}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper--center{justify-content:center}}.wizard-wrapper--bleed{align-items:center;max-width:100%}.wizard-wrapper--dual{display:flex;flex-direction:column;align-items:center;height:100vh}@media (max-height:38rem){.wizard-wrapper--dual{min-height:100vh;height:auto}}.wizard-dual{flex:1 1 50%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.wizard-dual:first-child{justify-content:flex-end;color:var(--white);background-color:var(--primaryColor)}.wizard-errors{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.wizard-errors p{margin:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-errors{margin-top:.5rem}}.wizard-header{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-width:30rem),(max-height:23.438rem){.wizard-header{margin:1rem 0 0}}.wizard-dual .wizard-header{margin-bottom:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-header{margin-bottom:1.5rem}}.wizard-main{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.wizard-main > *{flex-shrink:0}.wizard-footer{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem;padding-bottom:env(safe-area-inset-bottom)}.wizard-footer > button,.wizard-footer > a:link{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-footer{margin:1.5rem 0 .5rem}}.wizard--welcome .wizard-footer{justify-content:space-between}@media (min-width:30.063rem){.wizard--welcome .wizard-footer > button,.wizard--welcome .wizard-footer > a:link{flex:0 1 calc(50% - 0.25rem)}}.wizard-dual .wizard-footer{margin-top:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-footer{margin-top:1.5rem;font-size:.875rem}}.wizard-logo{position:relative;margin:0 auto;width:7.5rem}.wizard-logo-img{width:100%;vertical-align:center}.wizard-logo-badge{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.wizard-header-help{order:-1;margin:0 0 .5rem;font-size:1.125rem;line-height:1.5;text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard-header-help{margin:.25rem 0 0;font-size:1rem}}.wizard-disclaimer{display:flex;margin:1.5rem 0 .5rem;flex-direction:row;align-items:flex-start;font-size:.938rem;line-height:1.33}.wizard-disclaimer span{flex:0 0 auto;margin-right:1rem;background-color:var(--grannyApple);padding:.5rem;border-radius:50%}.wizard-disclaimer svg{display:block;fill:var(--emerald)}.wizard-disclaimer strong{color:var(--emerald)}@media (max-width:30rem),(max-height:23.438rem){.wizard-disclaimer{display:none}}.wizard-desc{margin:2rem 0 0;line-height:1.5}.wizard-desc a{color:var(--primaryColor);text-decoration:none}.wizard-desc a:hover,.wizard-desc a:focus{color:var(--primaryColorDark)}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc{margin:1.5rem 0 0}}.wizard-desc--footer{margin:2rem 0}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc--footer{margin:1rem 0}}.wizard-header-fixed{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.wizard-previous{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.wizard-brand{margin-left:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-brand{display:none}}.wizard-brand--invert svg{-webkit-filter:brightness(0) invert(100%);filter:brightness(0) invert(100%)}.wizard-previous + .wizard-brand{position:relative;padding-left:1.5rem;margin-left:.5rem}.wizard-previous + .wizard-brand:before{content:'';position:absolute;left:0;top:50%;height:1.5rem;border-left:.063rem solid var(--dividerColor);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.wizard-next{padding-right:3rem;padding-left:3rem}.wizard-next svg{position:absolute;right:1rem}@media (min-width:30.063rem) and (min-height:23.5rem){.wizard-button{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (min-width:30.063rem){.wizard-buttonlink{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard-input{border-radius:.125rem;padding:.5rem 1rem .625rem}}.wizard-dual-btn{position:absolute;bottom:-2.437rem;left:1rem;right:1rem;margin:0;width:calc(100% - 2rem);font-size:.875rem}@media (min-width:30.063rem){.wizard-dual-btn{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5;bottom:-2rem;font-size:1rem}}.wizard-dual-btn:hover,.wizard-dual-btn:focus{background-color:var(--emerald);border-color:var(--emerald)}.wizard-waiting-icon,.wizard-dual-icon{margin:0 0 2rem;height:6.188rem}.wizard-waiting-icon svg,.wizard-dual-icon svg{display:block;margin:0 auto;height:100%;width:100%}@media (max-width:30rem),(max-height:23.438rem){.wizard-waiting-icon,.wizard-dual-icon{margin-bottom:1rem;height:3.438rem}}.wizard-dual-icon{margin:0 0 1rem;height:7.688rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-icon{height:5.125rem}}.wizard-title,.wizard-dual-title{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-width:30rem),(max-height:23.438rem){.wizard-title,.wizard-dual-title{font-size:1.125rem;line-height:1.78}}.wizard-dual-title{margin-bottom:1rem;font-size:2.5rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-title{margin-bottom:.5rem;font-size:1.5rem;line-height:1.3}}.wizard-title-sub{display:block;margin-top:.5rem;opacity:.64;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-title-sub{margin:0;font-size:1rem;line-height:1.5}}.wizard-subtitle,.wizard-dual-subtitle{margin:0;text-align:center;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-subtitle,.wizard-dual-subtitle{font-size:.875rem;line-height:1.15}}.wizard-dual-subtitle{font-size:1.25rem;line-height:1.4}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-subtitle{font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard--welcome .wizard-title{font-size:1.5rem;line-height:1.17}}.wizard-showbutton{position:absolute;right:0;top:.688rem;margin:0;border:0;padding:0;min-width:auto;background-color:transparent;color:var(--coolGrey)}.wizard-showbutton:hover,.wizard-showbutton:focus{background-color:inherit;color:var(--charcoalGrey)}.wizard-dualfield{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.wizard-dualfield--focus{border-color:var(--primaryColor)}.wizard-dualfield--error{border-color:var(--errorColor)}.wizard-dualfield-wrapper{flex:1 1 auto}.wizard-dualfield-input{border:0;padding-right:.5rem}.wizard-dualfield-input:hover,.wizard-dualfield-input:focus{position:relative;z-index:1;border:0;outline:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-dualfield-input{border-radius:.125rem;padding:.5rem 1rem .625rem;padding-right:.25rem}}.wizard-protocol{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.wizard-protocol svg{fill:currentColor;margin-right:.5rem}.wizard-domain{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;margin-right:1rem;max-width:8.75rem}.wizard-select{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.wizard-select:hover,.wizard-select:focus{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.wizard-select--medium{padding:.313rem 2.375rem .438rem .5rem}.wizard-requirements{order:2;margin-bottom:0;padding:0;list-style:disc inside;line-height:1.5;font-style:italic;color:var(--coolGrey)}.wizard-requirements span{display:inline-block;text-indent:.375rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-requirements{font-size:.875rem;margin-top:.5rem}.wizard-requirements span{text-indent:.125rem}}.wizard-agreements{display:flex;flex-direction:row;margin:0 auto;padding:0;list-style:none;max-width:64.5rem}@media (max-width:63.938rem){.wizard-agreements{flex-direction:column;margin:0 auto;max-width:32rem}}.wizard-agreements-item{position:relative;overflow:hidden;display:flex;flex-direction:column;flex:1 1 calc(100% / 6 - 0.5rem);margin:1rem .25rem 0;border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;color:var(--slateGrey)}@media (max-width:63.938rem){.wizard-agreements-item{flex-direction:row;flex:1 0 auto;margin:1rem 0 0;border:0;padding:0}.wizard-agreements-item:last-child p{border:0;margin:0}}.wizard-agreements-desc{min-height:2rem;font-size:.875rem;line-height:1.43}@media (max-width:63.938rem){.wizard-agreements-desc{flex:1 1 100%;border-bottom:.063rem solid var(--dividerColor);padding-bottom:1rem;font-size:1rem;line-height:1.5}}.wizard-agreements-icon{--bgcolor:var(--dodgerBlue);box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0 auto 1rem;width:3rem;height:3rem;border-radius:50%;padding:.75rem;background-color:var(--bgcolor)}.wizard-agreements-icon svg{display:block;width:100%;height:100%;fill:var(--white)}@media (max-width:63.938rem){.wizard-agreements-icon{margin:0 1.5rem 0 0;width:2rem;height:2rem;border-radius:50%;padding:.5rem}}.wizard-updated{position:absolute;right:-1.687rem;top:1.188rem;width:6.25rem;background-color:var(--primaryColor);text-transform:uppercase;color:var(--primaryContrastTextColor);-webkit-transform:rotate(-315deg);transform:rotate(-315deg);padding:.313rem;font-size:.625rem;line-height:1;font-weight:bold;text-align:center}.wizard-progress{position:relative;margin:.5rem auto 2rem;max-width:32rem;height:.375rem}.wizard-progress:before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;opacity:.24;border-radius:.188rem;background-color:var(--white)}@media (max-width:33.9375rem){.wizard-progress{margin:.5rem 1rem 1.5rem}}@media (max-height:23.4375rem){.wizard-progress{margin-bottom:1.5rem}}.wizard-progress-bar{position:relative;z-index:1;width:0;height:100%;background-color:var(--white);border-radius:.188rem;transition:width .5s ease-out}.wizard-notice{order:2;margin:2rem 0 0;line-height:1.5}.wizard-notice + .wizard-notice{margin-top:1rem}.wizard-notice p{margin:0}.wizard-notice a{color:var(--dodgerBlue);text-decoration:none;font-weight:bold}.wizard-notice a:hover,.wizard-notice a:focus{color:var(--scienceBlue)}@media (min-width:30.063rem){.wizard-notice{margin:2rem 0 0}}.wizard-notice--lost{font-size:1rem}.u-bg-black{background-color:var(--black) !important}.u-bg-charcoalGrey{background-color:var(--charcoalGrey) !important}.u-bg-coolGrey{background-color:var(--coolGrey) !important}.u-bg-silver{background-color:var(--silver) !important}.u-bg-slateGrey{background-color:var(--slateGrey) !important}.u-bg-lightishPurple{background-color:#b449e7 !important}.u-bg-dodgerBlue{background-color:#297ef2 !important}.u-bg-overlay{background-color:var(--overlay) !important}.u-bg-paleGrey{background-color:var(--paleGrey) !important}.u-bg-monza{background-color:#dd0505 !important}.u-bg-pomegranate{background-color:#f52d2d !important}.u-bg-primaryBackgroundLight{background-color:var(--primaryBackgroundLight) !important}.u-bg-primaryColor{background-color:var(--primaryColor) !important}.u-bg-primaryColorLight{background-color:var(--primaryColorLight) !important}.u-bg-primaryContrastTextColor{background-color:var(--primaryContrastTextColor) !important}.u-bg-error{background-color:var(--errorColor) !important}.u-bg-errorBackground{background-color:var(--errorBackground) !important}.u-bg-success{background-color:var(--successColor) !important}.u-bg-warning{background-color:var(--warningColor) !important}.u-bg-info{background-color:var(--infoColor) !important}.u-bg-weirdGreen{background-color:#40de8e !important}.u-bg-white{background-color:var(--white) !important}.u-bdrs-0{border-radius:0}.u-bdrs-1{border-radius:.125rem}.u-bdrs-2{border-radius:.188rem}.u-bdrs-3{border-radius:.25rem}.u-bdrs-4{border-radius:.5rem}.u-bdrs-circle{border-radius:100%}.u-bdw-0{border-width:0}.u-bdw-1{border-width:.125rem}@media (max-width:30rem){.u-bdrs-0-t{border-radius:0}.u-bdrs-1-t{border-radius:.125rem}.u-bdrs-2-t{border-radius:.188rem}.u-bdrs-3-t{border-radius:.25rem}.u-bdrs-4-t{border-radius:.5rem}.u-bdrs-circle-t{border-radius:100%}.u-bdw-0-t{border-width:0}.u-bdw-1-t{border-width:.125rem}}@media (max-width:48rem){.u-bdrs-0-s{border-radius:0}.u-bdrs-1-s{border-radius:.125rem}.u-bdrs-2-s{border-radius:.188rem}.u-bdrs-3-s{border-radius:.25rem}.u-bdrs-4-s{border-radius:.5rem}.u-bdrs-circle-s{border-radius:100%}.u-bdw-0-s{border-width:0}.u-bdw-1-s{border-width:.125rem}}@media (max-width:63.938rem){.u-bdrs-0-m{border-radius:0}.u-bdrs-1-m{border-radius:.125rem}.u-bdrs-2-m{border-radius:.188rem}.u-bdrs-3-m{border-radius:.25rem}.u-bdrs-4-m{border-radius:.5rem}.u-bdrs-circle-m{border-radius:100%}.u-bdw-0-m{border-width:0}.u-bdw-1-m{border-width:.125rem}}.u-bxz{box-sizing:border-box}.u-c-default{cursor:default}.u-c-help{cursor:help}.u-c-pointer{cursor:pointer}.u-c-wait{cursor:wait}.u-c-not-allowed{cursor:not-allowed}.u-debug{background:rgba(0,0,0,0.075);border:1px solid #f00}.u-debug .u-debug{border-color:#00f}.u-debug .u-debug .u-debug{border-color:#008000}.u-miw-1{min-width:1rem !important}.u-maw-1{max-width:1rem !important}.u-mih-1{min-height:1rem !important}.u-mah-1{max-height:1rem !important}.u-miw-2{min-width:2rem !important}.u-maw-2{max-width:2rem !important}.u-mih-2{min-height:2rem !important}.u-mah-2{max-height:2rem !important}.u-miw-3{min-width:4rem !important}.u-maw-3{max-width:4rem !important}.u-mih-3{min-height:4rem !important}.u-mah-3{max-height:4rem !important}.u-miw-4{min-width:8rem !important}.u-maw-4{max-width:8rem !important}.u-mih-4{min-height:8rem !important}.u-mah-4{max-height:8rem !important}.u-miw-5{min-width:16rem !important}.u-maw-5{max-width:16rem !important}.u-mih-5{min-height:16rem !important}.u-mah-5{max-height:16rem !important}.u-miw-6{min-width:32rem !important}.u-maw-6{max-width:32rem !important}.u-mih-6{min-height:32rem !important}.u-mah-6{max-height:32rem !important}.u-miw-7{min-width:48rem !important}.u-maw-7{max-width:48rem !important}.u-mih-7{min-height:48rem !important}.u-mah-7{max-height:48rem !important}.u-miw-8{min-width:64rem !important}.u-maw-8{max-width:64rem !important}.u-mih-8{min-height:64rem !important}.u-mah-8{max-height:64rem !important}.u-miw-9{min-width:96rem !important}.u-maw-9{max-width:96rem !important}.u-mih-9{min-height:96rem !important}.u-mah-9{max-height:96rem !important}.u-miw-100{min-width:100% !important}.u-maw-100{max-width:100% !important}.u-mih-100{min-height:100% !important}.u-mah-100{max-height:100% !important}.u-maw-none{max-width:none !important}.u-mah-none{max-height:none !important}.u-miw-auto{min-width:auto !important}.u-mih-auto{min-height:auto !important}.u-miw-half{min-width:.5rem !important}.u-maw-half{max-width:.5rem !important}.u-mih-half{min-height:.5rem !important}.u-mah-half{max-height:.5rem !important}.u-miw-1-half{min-width:1.5rem !important}.u-maw-1-half{max-width:1.5rem !important}.u-mih-1-half{min-height:1.5rem !important}.u-mah-1-half{max-height:1.5rem !important}.u-miw-2-half{min-width:2.5rem !important}.u-maw-2-half{max-width:2.5rem !important}.u-mih-2-half{min-height:2.5rem !important}.u-mah-2-half{max-height:2.5rem !important}@media (max-width:30rem){.u-miw-1-t{min-width:1rem !important}}@media (max-width:30rem){.u-maw-1-t{max-width:1rem !important}}@media (max-width:30rem){.u-mih-1-t{min-height:1rem !important}}@media (max-width:30rem){.u-mah-1-t{max-height:1rem !important}}@media (max-width:30rem){.u-miw-2-t{min-width:2rem !important}}@media (max-width:30rem){.u-maw-2-t{max-width:2rem !important}}@media (max-width:30rem){.u-mih-2-t{min-height:2rem !important}}@media (max-width:30rem){.u-mah-2-t{max-height:2rem !important}}@media (max-width:30rem){.u-miw-3-t{min-width:4rem !important}}@media (max-width:30rem){.u-maw-3-t{max-width:4rem !important}}@media (max-width:30rem){.u-mih-3-t{min-height:4rem !important}}@media (max-width:30rem){.u-mah-3-t{max-height:4rem !important}}@media (max-width:30rem){.u-miw-4-t{min-width:8rem !important}}@media (max-width:30rem){.u-maw-4-t{max-width:8rem !important}}@media (max-width:30rem){.u-mih-4-t{min-height:8rem !important}}@media (max-width:30rem){.u-mah-4-t{max-height:8rem !important}}@media (max-width:30rem){.u-miw-5-t{min-width:16rem !important}}@media (max-width:30rem){.u-maw-5-t{max-width:16rem !important}}@media (max-width:30rem){.u-mih-5-t{min-height:16rem !important}}@media (max-width:30rem){.u-mah-5-t{max-height:16rem !important}}@media (max-width:30rem){.u-miw-6-t{min-width:32rem !important}}@media (max-width:30rem){.u-maw-6-t{max-width:32rem !important}}@media (max-width:30rem){.u-mih-6-t{min-height:32rem !important}}@media (max-width:30rem){.u-mah-6-t{max-height:32rem !important}}@media (max-width:30rem){.u-miw-7-t{min-width:48rem !important}}@media (max-width:30rem){.u-maw-7-t{max-width:48rem !important}}@media (max-width:30rem){.u-mih-7-t{min-height:48rem !important}}@media (max-width:30rem){.u-mah-7-t{max-height:48rem !important}}@media (max-width:30rem){.u-miw-8-t{min-width:64rem !important}}@media (max-width:30rem){.u-maw-8-t{max-width:64rem !important}}@media (max-width:30rem){.u-mih-8-t{min-height:64rem !important}}@media (max-width:30rem){.u-mah-8-t{max-height:64rem !important}}@media (max-width:30rem){.u-miw-9-t{min-width:96rem !important}}@media (max-width:30rem){.u-maw-9-t{max-width:96rem !important}}@media (max-width:30rem){.u-mih-9-t{min-height:96rem !important}}@media (max-width:30rem){.u-mah-9-t{max-height:96rem !important}}@media (max-width:30rem){.u-miw-100-t{min-width:100% !important}}@media (max-width:30rem){.u-maw-100-t{max-width:100% !important}}@media (max-width:30rem){.u-mih-100-t{min-height:100% !important}}@media (max-width:30rem){.u-mah-100-t{max-height:100% !important}}@media (max-width:30rem){.u-maw-none-t{max-width:none !important}}@media (max-width:30rem){.u-mah-none-t{max-height:none !important}}@media (max-width:30rem){.u-miw-auto-t{min-width:auto !important}}@media (max-width:30rem){.u-mih-auto-t{min-height:auto !important}}@media (max-width:30rem){.u-miw-half-t{min-width:.5rem !important}}@media (max-width:30rem){.u-maw-half-t{max-width:.5rem !important}}@media (max-width:30rem){.u-mih-half-t{min-height:.5rem !important}}@media (max-width:30rem){.u-mah-half-t{max-height:.5rem !important}}@media (max-width:30rem){.u-miw-1-half-t{min-width:1.5rem !important}}@media (max-width:30rem){.u-maw-1-half-t{max-width:1.5rem !important}}@media (max-width:30rem){.u-mih-1-half-t{min-height:1.5rem !important}}@media (max-width:30rem){.u-mah-1-half-t{max-height:1.5rem !important}}@media (max-width:30rem){.u-miw-2-half-t{min-width:2.5rem !important}}@media (max-width:30rem){.u-maw-2-half-t{max-width:2.5rem !important}}@media (max-width:30rem){.u-mih-2-half-t{min-height:2.5rem !important}}@media (max-width:30rem){.u-mah-2-half-t{max-height:2.5rem !important}}@media (max-width:48rem){.u-miw-1-s{min-width:1rem !important}}@media (max-width:48rem){.u-maw-1-s{max-width:1rem !important}}@media (max-width:48rem){.u-mih-1-s{min-height:1rem !important}}@media (max-width:48rem){.u-mah-1-s{max-height:1rem !important}}@media (max-width:48rem){.u-miw-2-s{min-width:2rem !important}}@media (max-width:48rem){.u-maw-2-s{max-width:2rem !important}}@media (max-width:48rem){.u-mih-2-s{min-height:2rem !important}}@media (max-width:48rem){.u-mah-2-s{max-height:2rem !important}}@media (max-width:48rem){.u-miw-3-s{min-width:4rem !important}}@media (max-width:48rem){.u-maw-3-s{max-width:4rem !important}}@media (max-width:48rem){.u-mih-3-s{min-height:4rem !important}}@media (max-width:48rem){.u-mah-3-s{max-height:4rem !important}}@media (max-width:48rem){.u-miw-4-s{min-width:8rem !important}}@media (max-width:48rem){.u-maw-4-s{max-width:8rem !important}}@media (max-width:48rem){.u-mih-4-s{min-height:8rem !important}}@media (max-width:48rem){.u-mah-4-s{max-height:8rem !important}}@media (max-width:48rem){.u-miw-5-s{min-width:16rem !important}}@media (max-width:48rem){.u-maw-5-s{max-width:16rem !important}}@media (max-width:48rem){.u-mih-5-s{min-height:16rem !important}}@media (max-width:48rem){.u-mah-5-s{max-height:16rem !important}}@media (max-width:48rem){.u-miw-6-s{min-width:32rem !important}}@media (max-width:48rem){.u-maw-6-s{max-width:32rem !important}}@media (max-width:48rem){.u-mih-6-s{min-height:32rem !important}}@media (max-width:48rem){.u-mah-6-s{max-height:32rem !important}}@media (max-width:48rem){.u-miw-7-s{min-width:48rem !important}}@media (max-width:48rem){.u-maw-7-s{max-width:48rem !important}}@media (max-width:48rem){.u-mih-7-s{min-height:48rem !important}}@media (max-width:48rem){.u-mah-7-s{max-height:48rem !important}}@media (max-width:48rem){.u-miw-8-s{min-width:64rem !important}}@media (max-width:48rem){.u-maw-8-s{max-width:64rem !important}}@media (max-width:48rem){.u-mih-8-s{min-height:64rem !important}}@media (max-width:48rem){.u-mah-8-s{max-height:64rem !important}}@media (max-width:48rem){.u-miw-9-s{min-width:96rem !important}}@media (max-width:48rem){.u-maw-9-s{max-width:96rem !important}}@media (max-width:48rem){.u-mih-9-s{min-height:96rem !important}}@media (max-width:48rem){.u-mah-9-s{max-height:96rem !important}}@media (max-width:48rem){.u-miw-100-s{min-width:100% !important}}@media (max-width:48rem){.u-maw-100-s{max-width:100% !important}}@media (max-width:48rem){.u-mih-100-s{min-height:100% !important}}@media (max-width:48rem){.u-mah-100-s{max-height:100% !important}}@media (max-width:48rem){.u-maw-none-s{max-width:none !important}}@media (max-width:48rem){.u-mah-none-s{max-height:none !important}}@media (max-width:48rem){.u-miw-auto-s{min-width:auto !important}}@media (max-width:48rem){.u-mih-auto-s{min-height:auto !important}}@media (max-width:48rem){.u-miw-half-s{min-width:.5rem !important}}@media (max-width:48rem){.u-maw-half-s{max-width:.5rem !important}}@media (max-width:48rem){.u-mih-half-s{min-height:.5rem !important}}@media (max-width:48rem){.u-mah-half-s{max-height:.5rem !important}}@media (max-width:48rem){.u-miw-1-half-s{min-width:1.5rem !important}}@media (max-width:48rem){.u-maw-1-half-s{max-width:1.5rem !important}}@media (max-width:48rem){.u-mih-1-half-s{min-height:1.5rem !important}}@media (max-width:48rem){.u-mah-1-half-s{max-height:1.5rem !important}}@media (max-width:48rem){.u-miw-2-half-s{min-width:2.5rem !important}}@media (max-width:48rem){.u-maw-2-half-s{max-width:2.5rem !important}}@media (max-width:48rem){.u-mih-2-half-s{min-height:2.5rem !important}}@media (max-width:48rem){.u-mah-2-half-s{max-height:2.5rem !important}}@media (max-width:63.938rem){.u-miw-1-m{min-width:1rem !important}}@media (max-width:63.938rem){.u-maw-1-m{max-width:1rem !important}}@media (max-width:63.938rem){.u-mih-1-m{min-height:1rem !important}}@media (max-width:63.938rem){.u-mah-1-m{max-height:1rem !important}}@media (max-width:63.938rem){.u-miw-2-m{min-width:2rem !important}}@media (max-width:63.938rem){.u-maw-2-m{max-width:2rem !important}}@media (max-width:63.938rem){.u-mih-2-m{min-height:2rem !important}}@media (max-width:63.938rem){.u-mah-2-m{max-height:2rem !important}}@media (max-width:63.938rem){.u-miw-3-m{min-width:4rem !important}}@media (max-width:63.938rem){.u-maw-3-m{max-width:4rem !important}}@media (max-width:63.938rem){.u-mih-3-m{min-height:4rem !important}}@media (max-width:63.938rem){.u-mah-3-m{max-height:4rem !important}}@media (max-width:63.938rem){.u-miw-4-m{min-width:8rem !important}}@media (max-width:63.938rem){.u-maw-4-m{max-width:8rem !important}}@media (max-width:63.938rem){.u-mih-4-m{min-height:8rem !important}}@media (max-width:63.938rem){.u-mah-4-m{max-height:8rem !important}}@media (max-width:63.938rem){.u-miw-5-m{min-width:16rem !important}}@media (max-width:63.938rem){.u-maw-5-m{max-width:16rem !important}}@media (max-width:63.938rem){.u-mih-5-m{min-height:16rem !important}}@media (max-width:63.938rem){.u-mah-5-m{max-height:16rem !important}}@media (max-width:63.938rem){.u-miw-6-m{min-width:32rem !important}}@media (max-width:63.938rem){.u-maw-6-m{max-width:32rem !important}}@media (max-width:63.938rem){.u-mih-6-m{min-height:32rem !important}}@media (max-width:63.938rem){.u-mah-6-m{max-height:32rem !important}}@media (max-width:63.938rem){.u-miw-7-m{min-width:48rem !important}}@media (max-width:63.938rem){.u-maw-7-m{max-width:48rem !important}}@media (max-width:63.938rem){.u-mih-7-m{min-height:48rem !important}}@media (max-width:63.938rem){.u-mah-7-m{max-height:48rem !important}}@media (max-width:63.938rem){.u-miw-8-m{min-width:64rem !important}}@media (max-width:63.938rem){.u-maw-8-m{max-width:64rem !important}}@media (max-width:63.938rem){.u-mih-8-m{min-height:64rem !important}}@media (max-width:63.938rem){.u-mah-8-m{max-height:64rem !important}}@media (max-width:63.938rem){.u-miw-9-m{min-width:96rem !important}}@media (max-width:63.938rem){.u-maw-9-m{max-width:96rem !important}}@media (max-width:63.938rem){.u-mih-9-m{min-height:96rem !important}}@media (max-width:63.938rem){.u-mah-9-m{max-height:96rem !important}}@media (max-width:63.938rem){.u-miw-100-m{min-width:100% !important}}@media (max-width:63.938rem){.u-maw-100-m{max-width:100% !important}}@media (max-width:63.938rem){.u-mih-100-m{min-height:100% !important}}@media (max-width:63.938rem){.u-mah-100-m{max-height:100% !important}}@media (max-width:63.938rem){.u-maw-none-m{max-width:none !important}}@media (max-width:63.938rem){.u-mah-none-m{max-height:none !important}}@media (max-width:63.938rem){.u-miw-auto-m{min-width:auto !important}}@media (max-width:63.938rem){.u-mih-auto-m{min-height:auto !important}}@media (max-width:63.938rem){.u-miw-half-m{min-width:.5rem !important}}@media (max-width:63.938rem){.u-maw-half-m{max-width:.5rem !important}}@media (max-width:63.938rem){.u-mih-half-m{min-height:.5rem !important}}@media (max-width:63.938rem){.u-mah-half-m{max-height:.5rem !important}}@media (max-width:63.938rem){.u-miw-1-half-m{min-width:1.5rem !important}}@media (max-width:63.938rem){.u-maw-1-half-m{max-width:1.5rem !important}}@media (max-width:63.938rem){.u-mih-1-half-m{min-height:1.5rem !important}}@media (max-width:63.938rem){.u-mah-1-half-m{max-height:1.5rem !important}}@media (max-width:63.938rem){.u-miw-2-half-m{min-width:2.5rem !important}}@media (max-width:63.938rem){.u-maw-2-half-m{max-width:2.5rem !important}}@media (max-width:63.938rem){.u-mih-2-half-m{min-height:2.5rem !important}}@media (max-width:63.938rem){.u-mah-2-half-m{max-height:2.5rem !important}}.u-w-1{width:1rem !important}.u-h-1{height:1rem !important}.u-w-2{width:2rem !important}.u-h-2{height:2rem !important}.u-w-3{width:4rem !important}.u-h-3{height:4rem !important}.u-w-4{width:8rem !important}.u-h-4{height:8rem !important}.u-w-5{width:16rem !important}.u-h-5{height:16rem !important}.u-w-6{width:32rem !important}.u-h-6{height:32rem !important}.u-w-7{width:48rem !important}.u-h-7{height:48rem !important}.u-w-8{width:64rem !important}.u-h-8{height:64rem !important}.u-w-9{width:96rem !important}.u-h-9{height:96rem !important}.u-w-100{width:100% !important}.u-h-100{height:100% !important}.u-w-auto{width:auto !important}.u-h-auto{height:auto !important}.u-w-half{width:.5rem !important}.u-h-half{height:.5rem !important}.u-w-1-half{width:1.5rem !important}.u-h-1-half{height:1.5rem !important}.u-w-2-half{width:2.5rem !important}.u-h-2-half{height:2.5rem !important}@media (max-width:30rem){.u-w-1-t{width:1rem !important}}@media (max-width:30rem){.u-h-1-t{height:1rem !important}}@media (max-width:30rem){.u-w-2-t{width:2rem !important}}@media (max-width:30rem){.u-h-2-t{height:2rem !important}}@media (max-width:30rem){.u-w-3-t{width:4rem !important}}@media (max-width:30rem){.u-h-3-t{height:4rem !important}}@media (max-width:30rem){.u-w-4-t{width:8rem !important}}@media (max-width:30rem){.u-h-4-t{height:8rem !important}}@media (max-width:30rem){.u-w-5-t{width:16rem !important}}@media (max-width:30rem){.u-h-5-t{height:16rem !important}}@media (max-width:30rem){.u-w-6-t{width:32rem !important}}@media (max-width:30rem){.u-h-6-t{height:32rem !important}}@media (max-width:30rem){.u-w-7-t{width:48rem !important}}@media (max-width:30rem){.u-h-7-t{height:48rem !important}}@media (max-width:30rem){.u-w-8-t{width:64rem !important}}@media (max-width:30rem){.u-h-8-t{height:64rem !important}}@media (max-width:30rem){.u-w-9-t{width:96rem !important}}@media (max-width:30rem){.u-h-9-t{height:96rem !important}}@media (max-width:30rem){.u-w-100-t{width:100% !important}}@media (max-width:30rem){.u-h-100-t{height:100% !important}}@media (max-width:30rem){.u-w-auto-t{width:auto !important}}@media (max-width:30rem){.u-h-auto-t{height:auto !important}}@media (max-width:30rem){.u-w-half-t{width:.5rem !important}}@media (max-width:30rem){.u-h-half-t{height:.5rem !important}}@media (max-width:30rem){.u-w-1-half-t{width:1.5rem !important}}@media (max-width:30rem){.u-h-1-half-t{height:1.5rem !important}}@media (max-width:30rem){.u-w-2-half-t{width:2.5rem !important}}@media (max-width:30rem){.u-h-2-half-t{height:2.5rem !important}}@media (max-width:48rem){.u-w-1-s{width:1rem !important}}@media (max-width:48rem){.u-h-1-s{height:1rem !important}}@media (max-width:48rem){.u-w-2-s{width:2rem !important}}@media (max-width:48rem){.u-h-2-s{height:2rem !important}}@media (max-width:48rem){.u-w-3-s{width:4rem !important}}@media (max-width:48rem){.u-h-3-s{height:4rem !important}}@media (max-width:48rem){.u-w-4-s{width:8rem !important}}@media (max-width:48rem){.u-h-4-s{height:8rem !important}}@media (max-width:48rem){.u-w-5-s{width:16rem !important}}@media (max-width:48rem){.u-h-5-s{height:16rem !important}}@media (max-width:48rem){.u-w-6-s{width:32rem !important}}@media (max-width:48rem){.u-h-6-s{height:32rem !important}}@media (max-width:48rem){.u-w-7-s{width:48rem !important}}@media (max-width:48rem){.u-h-7-s{height:48rem !important}}@media (max-width:48rem){.u-w-8-s{width:64rem !important}}@media (max-width:48rem){.u-h-8-s{height:64rem !important}}@media (max-width:48rem){.u-w-9-s{width:96rem !important}}@media (max-width:48rem){.u-h-9-s{height:96rem !important}}@media (max-width:48rem){.u-w-100-s{width:100% !important}}@media (max-width:48rem){.u-h-100-s{height:100% !important}}@media (max-width:48rem){.u-w-auto-s{width:auto !important}}@media (max-width:48rem){.u-h-auto-s{height:auto !important}}@media (max-width:48rem){.u-w-half-s{width:.5rem !important}}@media (max-width:48rem){.u-h-half-s{height:.5rem !important}}@media (max-width:48rem){.u-w-1-half-s{width:1.5rem !important}}@media (max-width:48rem){.u-h-1-half-s{height:1.5rem !important}}@media (max-width:48rem){.u-w-2-half-s{width:2.5rem !important}}@media (max-width:48rem){.u-h-2-half-s{height:2.5rem !important}}@media (max-width:63.938rem){.u-w-1-m{width:1rem !important}}@media (max-width:63.938rem){.u-h-1-m{height:1rem !important}}@media (max-width:63.938rem){.u-w-2-m{width:2rem !important}}@media (max-width:63.938rem){.u-h-2-m{height:2rem !important}}@media (max-width:63.938rem){.u-w-3-m{width:4rem !important}}@media (max-width:63.938rem){.u-h-3-m{height:4rem !important}}@media (max-width:63.938rem){.u-w-4-m{width:8rem !important}}@media (max-width:63.938rem){.u-h-4-m{height:8rem !important}}@media (max-width:63.938rem){.u-w-5-m{width:16rem !important}}@media (max-width:63.938rem){.u-h-5-m{height:16rem !important}}@media (max-width:63.938rem){.u-w-6-m{width:32rem !important}}@media (max-width:63.938rem){.u-h-6-m{height:32rem !important}}@media (max-width:63.938rem){.u-w-7-m{width:48rem !important}}@media (max-width:63.938rem){.u-h-7-m{height:48rem !important}}@media (max-width:63.938rem){.u-w-8-m{width:64rem !important}}@media (max-width:63.938rem){.u-h-8-m{height:64rem !important}}@media (max-width:63.938rem){.u-w-9-m{width:96rem !important}}@media (max-width:63.938rem){.u-h-9-m{height:96rem !important}}@media (max-width:63.938rem){.u-w-100-m{width:100% !important}}@media (max-width:63.938rem){.u-h-100-m{height:100% !important}}@media (max-width:63.938rem){.u-w-auto-m{width:auto !important}}@media (max-width:63.938rem){.u-h-auto-m{height:auto !important}}@media (max-width:63.938rem){.u-w-half-m{width:.5rem !important}}@media (max-width:63.938rem){.u-h-half-m{height:.5rem !important}}@media (max-width:63.938rem){.u-w-1-half-m{width:1.5rem !important}}@media (max-width:63.938rem){.u-h-1-half-m{height:1.5rem !important}}@media (max-width:63.938rem){.u-w-2-half-m{width:2.5rem !important}}@media (max-width:63.938rem){.u-h-2-half-m{height:2.5rem !important}}.u-shake{-webkit-animation-name:shake;animation-name:shake;-webkit-animation-duration:820ms;animation-duration:820ms;-webkit-animation-timing-function:cubic-bezier(.36,.07,.19,.97);animation-timing-function:cubic-bezier(.36,.07,.19,.97);-webkit-animation-fill-mode:both;animation-fill-mode:both}.u-filter-gray-100{-webkit-filter:grayscale(1);filter:grayscale(1)}.u-flex{display:flex}.u-inline-flex{display:inline-flex}.u-flex-none{flex:none}.u-flex-column{flex-direction:column}.u-flex-row{flex-direction:row}.u-flex-wrap{flex-wrap:wrap}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap-reverse{flex-wrap:wrap-reverse}.u-flex-column-reverse{flex-direction:column-reverse}.u-flex-row-reverse{flex-direction:row-reverse}.u-flex-auto{flex:1 1 auto}.u-flex-items-start{align-items:flex-start}.u-flex-items-end{align-items:flex-end}.u-flex-items-center{align-items:center}.u-flex-items-baseline{align-items:baseline}.u-flex-items-stretch{align-items:stretch}.u-flex-self-start{align-self:flex-start}.u-flex-self-end{align-self:flex-end}.u-flex-self-center{align-self:center}.u-flex-self-baseline{align-self:baseline}.u-flex-self-stretch{align-self:stretch}.u-flex-justify-start{justify-content:flex-start}.u-flex-justify-end{justify-content:flex-end}.u-flex-justify-center{justify-content:center}.u-flex-justify-between{justify-content:space-between}.u-flex-justify-around{justify-content:space-around}.u-flex-content-start{align-content:flex-start}.u-flex-content-end{align-content:flex-end}.u-flex-content-center{align-content:center}.u-flex-content-between{align-content:space-between}.u-flex-content-around{align-content:space-around}.u-flex-content-stretch{align-content:stretch}.u-flex-order-0{order:0}.u-flex-order-1{order:1}.u-flex-order-2{order:2}.u-flex-order-3{order:3}.u-flex-order-4{order:4}.u-flex-order-5{order:5}.u-flex-order-6{order:6}.u-flex-order-7{order:7}.u-flex-order-8{order:8}.u-flex-order-last{order:99999}.u-flex-grow-0{flex-grow:0}.u-flex-grow-1{flex-grow:1}.u-flex-shrink-0{flex-shrink:0}.u-flex-shrink-1{flex-shrink:1}@media (max-width:30rem){.u-flex-t{display:flex}.u-inline-flex-t{display:inline-flex}.u-flex-none-t{flex:none}.u-flex-column-t{flex-direction:column}.u-flex-row-t{flex-direction:row}.u-flex-wrap-t{flex-wrap:wrap}.u-flex-nowrap-t{flex-wrap:nowrap}.u-flex-wrap-reverse-t{flex-wrap:wrap-reverse}.u-flex-column-reverse-t{flex-direction:column-reverse}.u-flex-row-reverse-t{flex-direction:row-reverse}.u-flex-auto-t{flex:1 1 auto}.u-flex-items-start-t{align-items:flex-start}.u-flex-items-end-t{align-items:flex-end}.u-flex-items-center-t{align-items:center}.u-flex-items-baseline-t{align-items:baseline}.u-flex-items-stretch-t{align-items:stretch}.u-flex-self-start-t{align-self:flex-start}.u-flex-self-end-t{align-self:flex-end}.u-flex-self-center-t{align-self:center}.u-flex-self-baseline-t{align-self:baseline}.u-flex-self-stretch-t{align-self:stretch}.u-flex-justify-start-t{justify-content:flex-start}.u-flex-justify-end-t{justify-content:flex-end}.u-flex-justify-center-t{justify-content:center}.u-flex-justify-between-t{justify-content:space-between}.u-flex-justify-around-t{justify-content:space-around}.u-flex-content-start-t{align-content:flex-start}.u-flex-content-end-t{align-content:flex-end}.u-flex-content-center-t{align-content:center}.u-flex-content-between-t{align-content:space-between}.u-flex-content-around-t{align-content:space-around}.u-flex-content-stretch-t{align-content:stretch}.u-flex-order-0-t{order:0}.u-flex-order-1-t{order:1}.u-flex-order-2-t{order:2}.u-flex-order-3-t{order:3}.u-flex-order-4-t{order:4}.u-flex-order-5-t{order:5}.u-flex-order-6-t{order:6}.u-flex-order-7-t{order:7}.u-flex-order-8-t{order:8}.u-flex-order-last-t{order:99999}.u-flex-grow-0-t{flex-grow:0}.u-flex-grow-1-t{flex-grow:1}.u-flex-shrink-0-t{flex-shrink:0}.u-flex-shrink-1-t{flex-shrink:1}}@media (max-width:48rem){.u-flex-s{display:flex}.u-inline-flex-s{display:inline-flex}.u-flex-none-s{flex:none}.u-flex-column-s{flex-direction:column}.u-flex-row-s{flex-direction:row}.u-flex-wrap-s{flex-wrap:wrap}.u-flex-nowrap-s{flex-wrap:nowrap}.u-flex-wrap-reverse-s{flex-wrap:wrap-reverse}.u-flex-column-reverse-s{flex-direction:column-reverse}.u-flex-row-reverse-s{flex-direction:row-reverse}.u-flex-auto-s{flex:1 1 auto}.u-flex-items-start-s{align-items:flex-start}.u-flex-items-end-s{align-items:flex-end}.u-flex-items-center-s{align-items:center}.u-flex-items-baseline-s{align-items:baseline}.u-flex-items-stretch-s{align-items:stretch}.u-flex-self-start-s{align-self:flex-start}.u-flex-self-end-s{align-self:flex-end}.u-flex-self-center-s{align-self:center}.u-flex-self-baseline-s{align-self:baseline}.u-flex-self-stretch-s{align-self:stretch}.u-flex-justify-start-s{justify-content:flex-start}.u-flex-justify-end-s{justify-content:flex-end}.u-flex-justify-center-s{justify-content:center}.u-flex-justify-between-s{justify-content:space-between}.u-flex-justify-around-s{justify-content:space-around}.u-flex-content-start-s{align-content:flex-start}.u-flex-content-end-s{align-content:flex-end}.u-flex-content-center-s{align-content:center}.u-flex-content-between-s{align-content:space-between}.u-flex-content-around-s{align-content:space-around}.u-flex-content-stretch-s{align-content:stretch}.u-flex-order-0-s{order:0}.u-flex-order-1-s{order:1}.u-flex-order-2-s{order:2}.u-flex-order-3-s{order:3}.u-flex-order-4-s{order:4}.u-flex-order-5-s{order:5}.u-flex-order-6-s{order:6}.u-flex-order-7-s{order:7}.u-flex-order-8-s{order:8}.u-flex-order-last-s{order:99999}.u-flex-grow-0-s{flex-grow:0}.u-flex-grow-1-s{flex-grow:1}.u-flex-shrink-0-s{flex-shrink:0}.u-flex-shrink-1-s{flex-shrink:1}}@media (max-width:63.938rem){.u-flex-m{display:flex}.u-inline-flex-m{display:inline-flex}.u-flex-none-m{flex:none}.u-flex-column-m{flex-direction:column}.u-flex-row-m{flex-direction:row}.u-flex-wrap-m{flex-wrap:wrap}.u-flex-nowrap-m{flex-wrap:nowrap}.u-flex-wrap-reverse-m{flex-wrap:wrap-reverse}.u-flex-column-reverse-m{flex-direction:column-reverse}.u-flex-row-reverse-m{flex-direction:row-reverse}.u-flex-auto-m{flex:1 1 auto}.u-flex-items-start-m{align-items:flex-start}.u-flex-items-end-m{align-items:flex-end}.u-flex-items-center-m{align-items:center}.u-flex-items-baseline-m{align-items:baseline}.u-flex-items-stretch-m{align-items:stretch}.u-flex-self-start-m{align-self:flex-start}.u-flex-self-end-m{align-self:flex-end}.u-flex-self-center-m{align-self:center}.u-flex-self-baseline-m{align-self:baseline}.u-flex-self-stretch-m{align-self:stretch}.u-flex-justify-start-m{justify-content:flex-start}.u-flex-justify-end-m{justify-content:flex-end}.u-flex-justify-center-m{justify-content:center}.u-flex-justify-between-m{justify-content:space-between}.u-flex-justify-around-m{justify-content:space-around}.u-flex-content-start-m{align-content:flex-start}.u-flex-content-end-m{align-content:flex-end}.u-flex-content-center-m{align-content:center}.u-flex-content-between-m{align-content:space-between}.u-flex-content-around-m{align-content:space-around}.u-flex-content-stretch-m{align-content:stretch}.u-flex-order-0-m{order:0}.u-flex-order-1-m{order:1}.u-flex-order-2-m{order:2}.u-flex-order-3-m{order:3}.u-flex-order-4-m{order:4}.u-flex-order-5-m{order:5}.u-flex-order-6-m{order:6}.u-flex-order-7-m{order:7}.u-flex-order-8-m{order:8}.u-flex-order-last-m{order:99999}.u-flex-grow-0-m{flex-grow:0}.u-flex-grow-1-m{flex-grow:1}.u-flex-shrink-0-m{flex-shrink:0}.u-flex-shrink-1-m{flex-shrink:1}}.u-nolist{list-style-type:none}@media (max-width:30rem){.u-nolist-t{list-style-type:none}}@media (max-width:48rem){.u-nolist-s{list-style-type:none}}@media (max-width:63.938rem){.u-nolist-m{list-style-type:none}}.u-o-100{opacity:1}.u-o-90{opacity:.9}.u-o-80{opacity:.8}.u-o-70{opacity:.7}.u-o-60{opacity:.6}.u-o-50{opacity:.5}.u-o-40{opacity:.4}.u-o-30{opacity:.3}.u-o-20{opacity:.2}.u-o-10{opacity:.1}.u-o-05{opacity:.05}.u-o-025{opacity:.025}.u-o-0{opacity:0}.u-ov-visible{overflow:visible}.u-ov-hidden{overflow:hidden}.u-ov-scroll{overflow:scroll}.u-ov-auto{overflow:auto}.u-p-0{padding:0 !important}.u-pt-0{padding-top:0 !important}.u-pb-0{padding-bottom:0 !important}.u-pl-0{padding-left:0 !important}.u-pr-0{padding-right:0 !important}.u-pv-0{padding-top:0 !important;padding-bottom:0 !important}.u-ph-0{padding-left:0 !important;padding-right:0 !important}.u-p-1{padding:1rem !important}.u-pt-1{padding-top:1rem !important}.u-pb-1{padding-bottom:1rem !important}.u-pl-1{padding-left:1rem !important}.u-pr-1{padding-right:1rem !important}.u-pv-1{padding-top:1rem !important;padding-bottom:1rem !important}.u-ph-1{padding-left:1rem !important;padding-right:1rem !important}.u-p-2{padding:2rem !important}.u-pt-2{padding-top:2rem !important}.u-pb-2{padding-bottom:2rem !important}.u-pl-2{padding-left:2rem !important}.u-pr-2{padding-right:2rem !important}.u-pv-2{padding-top:2rem !important;padding-bottom:2rem !important}.u-ph-2{padding-left:2rem !important;padding-right:2rem !important}.u-p-3{padding:3rem !important}.u-pt-3{padding-top:3rem !important}.u-pb-3{padding-bottom:3rem !important}.u-pl-3{padding-left:3rem !important}.u-pr-3{padding-right:3rem !important}.u-pv-3{padding-top:3rem !important;padding-bottom:3rem !important}.u-ph-3{padding-left:3rem !important;padding-right:3rem !important}.u-p-auto{padding:auto !important}.u-pt-auto{padding-top:auto !important}.u-pb-auto{padding-bottom:auto !important}.u-pl-auto{padding-left:auto !important}.u-pr-auto{padding-right:auto !important}.u-pv-auto{padding-top:auto !important;padding-bottom:auto !important}.u-ph-auto{padding-left:auto !important;padding-right:auto !important}.u-p-half{padding:.5rem !important}.u-pt-half{padding-top:.5rem !important}.u-pb-half{padding-bottom:.5rem !important}.u-pl-half{padding-left:.5rem !important}.u-pr-half{padding-right:.5rem !important}.u-pv-half{padding-top:.5rem !important;padding-bottom:.5rem !important}.u-ph-half{padding-left:.5rem !important;padding-right:.5rem !important}.u-p-1-half{padding:1.5rem !important}.u-pt-1-half{padding-top:1.5rem !important}.u-pb-1-half{padding-bottom:1.5rem !important}.u-pl-1-half{padding-left:1.5rem !important}.u-pr-1-half{padding-right:1.5rem !important}.u-pv-1-half{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.u-ph-1-half{padding-left:1.5rem !important;padding-right:1.5rem !important}.u-p-2-half{padding:2.5rem !important}.u-pt-2-half{padding-top:2.5rem !important}.u-pb-2-half{padding-bottom:2.5rem !important}.u-pl-2-half{padding-left:2.5rem !important}.u-pr-2-half{padding-right:2.5rem !important}.u-pv-2-half{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.u-ph-2-half{padding-left:2.5rem !important;padding-right:2.5rem !important}.u-m-0{margin:0 !important}.u-mt-0{margin-top:0 !important}.u-mb-0{margin-bottom:0 !important}.u-ml-0{margin-left:0 !important}.u-mr-0{margin-right:0 !important}.u-mv-0{margin-top:0 !important;margin-bottom:0 !important}.u-mh-0{margin-left:0 !important;margin-right:0 !important}.u-m-1{margin:1rem !important}.u-mt-1{margin-top:1rem !important}.u-mb-1{margin-bottom:1rem !important}.u-ml-1{margin-left:1rem !important}.u-mr-1{margin-right:1rem !important}.u-mv-1{margin-top:1rem !important;margin-bottom:1rem !important}.u-mh-1{margin-left:1rem !important;margin-right:1rem !important}.u-m-2{margin:2rem !important}.u-mt-2{margin-top:2rem !important}.u-mb-2{margin-bottom:2rem !important}.u-ml-2{margin-left:2rem !important}.u-mr-2{margin-right:2rem !important}.u-mv-2{margin-top:2rem !important;margin-bottom:2rem !important}.u-mh-2{margin-left:2rem !important;margin-right:2rem !important}.u-m-3{margin:3rem !important}.u-mt-3{margin-top:3rem !important}.u-mb-3{margin-bottom:3rem !important}.u-ml-3{margin-left:3rem !important}.u-mr-3{margin-right:3rem !important}.u-mv-3{margin-top:3rem !important;margin-bottom:3rem !important}.u-mh-3{margin-left:3rem !important;margin-right:3rem !important}.u-m-auto{margin:auto !important}.u-mt-auto{margin-top:auto !important}.u-mb-auto{margin-bottom:auto !important}.u-ml-auto{margin-left:auto !important}.u-mr-auto{margin-right:auto !important}.u-mv-auto{margin-top:auto !important;margin-bottom:auto !important}.u-mh-auto{margin-left:auto !important;margin-right:auto !important}.u-m-half{margin:.5rem !important}.u-mt-half{margin-top:.5rem !important}.u-mb-half{margin-bottom:.5rem !important}.u-ml-half{margin-left:.5rem !important}.u-mr-half{margin-right:.5rem !important}.u-mv-half{margin-top:.5rem !important;margin-bottom:.5rem !important}.u-mh-half{margin-left:.5rem !important;margin-right:.5rem !important}.u-m-1-half{margin:1.5rem !important}.u-mt-1-half{margin-top:1.5rem !important}.u-mb-1-half{margin-bottom:1.5rem !important}.u-ml-1-half{margin-left:1.5rem !important}.u-mr-1-half{margin-right:1.5rem !important}.u-mv-1-half{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.u-mh-1-half{margin-left:1.5rem !important;margin-right:1.5rem !important}.u-m-2-half{margin:2.5rem !important}.u-mt-2-half{margin-top:2.5rem !important}.u-mb-2-half{margin-bottom:2.5rem !important}.u-ml-2-half{margin-left:2.5rem !important}.u-mr-2-half{margin-right:2.5rem !important}.u-mv-2-half{margin-top:2.5rem !important;margin-bottom:2.5rem !important}.u-mh-2-half{margin-left:2.5rem !important;margin-right:2.5rem !important}@media (max-width:30rem){.u-p-0-t{padding:0 !important}}@media (max-width:30rem){.u-pt-0-t{padding-top:0 !important}}@media (max-width:30rem){.u-pb-0-t{padding-bottom:0 !important}}@media (max-width:30rem){.u-pl-0-t{padding-left:0 !important}}@media (max-width:30rem){.u-pr-0-t{padding-right:0 !important}}@media (max-width:30rem){.u-pv-0-t{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:30rem){.u-ph-0-t{padding-left:0 !important;padding-right:0 !important}}@media (max-width:30rem){.u-p-1-t{padding:1rem !important}}@media (max-width:30rem){.u-pt-1-t{padding-top:1rem !important}}@media (max-width:30rem){.u-pb-1-t{padding-bottom:1rem !important}}@media (max-width:30rem){.u-pl-1-t{padding-left:1rem !important}}@media (max-width:30rem){.u-pr-1-t{padding-right:1rem !important}}@media (max-width:30rem){.u-pv-1-t{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:30rem){.u-ph-1-t{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:30rem){.u-p-2-t{padding:2rem !important}}@media (max-width:30rem){.u-pt-2-t{padding-top:2rem !important}}@media (max-width:30rem){.u-pb-2-t{padding-bottom:2rem !important}}@media (max-width:30rem){.u-pl-2-t{padding-left:2rem !important}}@media (max-width:30rem){.u-pr-2-t{padding-right:2rem !important}}@media (max-width:30rem){.u-pv-2-t{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:30rem){.u-ph-2-t{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:30rem){.u-p-3-t{padding:3rem !important}}@media (max-width:30rem){.u-pt-3-t{padding-top:3rem !important}}@media (max-width:30rem){.u-pb-3-t{padding-bottom:3rem !important}}@media (max-width:30rem){.u-pl-3-t{padding-left:3rem !important}}@media (max-width:30rem){.u-pr-3-t{padding-right:3rem !important}}@media (max-width:30rem){.u-pv-3-t{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:30rem){.u-ph-3-t{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:30rem){.u-p-auto-t{padding:auto !important}}@media (max-width:30rem){.u-pt-auto-t{padding-top:auto !important}}@media (max-width:30rem){.u-pb-auto-t{padding-bottom:auto !important}}@media (max-width:30rem){.u-pl-auto-t{padding-left:auto !important}}@media (max-width:30rem){.u-pr-auto-t{padding-right:auto !important}}@media (max-width:30rem){.u-pv-auto-t{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:30rem){.u-ph-auto-t{padding-left:auto !important;padding-right:auto !important}}@media (max-width:30rem){.u-p-half-t{padding:.5rem !important}}@media (max-width:30rem){.u-pt-half-t{padding-top:.5rem !important}}@media (max-width:30rem){.u-pb-half-t{padding-bottom:.5rem !important}}@media (max-width:30rem){.u-pl-half-t{padding-left:.5rem !important}}@media (max-width:30rem){.u-pr-half-t{padding-right:.5rem !important}}@media (max-width:30rem){.u-pv-half-t{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:30rem){.u-ph-half-t{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:30rem){.u-p-1-half-t{padding:1.5rem !important}}@media (max-width:30rem){.u-pt-1-half-t{padding-top:1.5rem !important}}@media (max-width:30rem){.u-pb-1-half-t{padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-pl-1-half-t{padding-left:1.5rem !important}}@media (max-width:30rem){.u-pr-1-half-t{padding-right:1.5rem !important}}@media (max-width:30rem){.u-pv-1-half-t{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-ph-1-half-t{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:30rem){.u-p-2-half-t{padding:2.5rem !important}}@media (max-width:30rem){.u-pt-2-half-t{padding-top:2.5rem !important}}@media (max-width:30rem){.u-pb-2-half-t{padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-pl-2-half-t{padding-left:2.5rem !important}}@media (max-width:30rem){.u-pr-2-half-t{padding-right:2.5rem !important}}@media (max-width:30rem){.u-pv-2-half-t{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-ph-2-half-t{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:30rem){.u-m-0-t{margin:0 !important}}@media (max-width:30rem){.u-mt-0-t{margin-top:0 !important}}@media (max-width:30rem){.u-mb-0-t{margin-bottom:0 !important}}@media (max-width:30rem){.u-ml-0-t{margin-left:0 !important}}@media (max-width:30rem){.u-mr-0-t{margin-right:0 !important}}@media (max-width:30rem){.u-mv-0-t{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:30rem){.u-mh-0-t{margin-left:0 !important;margin-right:0 !important}}@media (max-width:30rem){.u-m-1-t{margin:1rem !important}}@media (max-width:30rem){.u-mt-1-t{margin-top:1rem !important}}@media (max-width:30rem){.u-mb-1-t{margin-bottom:1rem !important}}@media (max-width:30rem){.u-ml-1-t{margin-left:1rem !important}}@media (max-width:30rem){.u-mr-1-t{margin-right:1rem !important}}@media (max-width:30rem){.u-mv-1-t{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:30rem){.u-mh-1-t{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:30rem){.u-m-2-t{margin:2rem !important}}@media (max-width:30rem){.u-mt-2-t{margin-top:2rem !important}}@media (max-width:30rem){.u-mb-2-t{margin-bottom:2rem !important}}@media (max-width:30rem){.u-ml-2-t{margin-left:2rem !important}}@media (max-width:30rem){.u-mr-2-t{margin-right:2rem !important}}@media (max-width:30rem){.u-mv-2-t{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:30rem){.u-mh-2-t{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:30rem){.u-m-3-t{margin:3rem !important}}@media (max-width:30rem){.u-mt-3-t{margin-top:3rem !important}}@media (max-width:30rem){.u-mb-3-t{margin-bottom:3rem !important}}@media (max-width:30rem){.u-ml-3-t{margin-left:3rem !important}}@media (max-width:30rem){.u-mr-3-t{margin-right:3rem !important}}@media (max-width:30rem){.u-mv-3-t{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:30rem){.u-mh-3-t{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:30rem){.u-m-auto-t{margin:auto !important}}@media (max-width:30rem){.u-mt-auto-t{margin-top:auto !important}}@media (max-width:30rem){.u-mb-auto-t{margin-bottom:auto !important}}@media (max-width:30rem){.u-ml-auto-t{margin-left:auto !important}}@media (max-width:30rem){.u-mr-auto-t{margin-right:auto !important}}@media (max-width:30rem){.u-mv-auto-t{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:30rem){.u-mh-auto-t{margin-left:auto !important;margin-right:auto !important}}@media (max-width:30rem){.u-m-half-t{margin:.5rem !important}}@media (max-width:30rem){.u-mt-half-t{margin-top:.5rem !important}}@media (max-width:30rem){.u-mb-half-t{margin-bottom:.5rem !important}}@media (max-width:30rem){.u-ml-half-t{margin-left:.5rem !important}}@media (max-width:30rem){.u-mr-half-t{margin-right:.5rem !important}}@media (max-width:30rem){.u-mv-half-t{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:30rem){.u-mh-half-t{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:30rem){.u-m-1-half-t{margin:1.5rem !important}}@media (max-width:30rem){.u-mt-1-half-t{margin-top:1.5rem !important}}@media (max-width:30rem){.u-mb-1-half-t{margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-ml-1-half-t{margin-left:1.5rem !important}}@media (max-width:30rem){.u-mr-1-half-t{margin-right:1.5rem !important}}@media (max-width:30rem){.u-mv-1-half-t{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-mh-1-half-t{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:30rem){.u-m-2-half-t{margin:2.5rem !important}}@media (max-width:30rem){.u-mt-2-half-t{margin-top:2.5rem !important}}@media (max-width:30rem){.u-mb-2-half-t{margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-ml-2-half-t{margin-left:2.5rem !important}}@media (max-width:30rem){.u-mr-2-half-t{margin-right:2.5rem !important}}@media (max-width:30rem){.u-mv-2-half-t{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-mh-2-half-t{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:48rem){.u-p-0-s{padding:0 !important}}@media (max-width:48rem){.u-pt-0-s{padding-top:0 !important}}@media (max-width:48rem){.u-pb-0-s{padding-bottom:0 !important}}@media (max-width:48rem){.u-pl-0-s{padding-left:0 !important}}@media (max-width:48rem){.u-pr-0-s{padding-right:0 !important}}@media (max-width:48rem){.u-pv-0-s{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:48rem){.u-ph-0-s{padding-left:0 !important;padding-right:0 !important}}@media (max-width:48rem){.u-p-1-s{padding:1rem !important}}@media (max-width:48rem){.u-pt-1-s{padding-top:1rem !important}}@media (max-width:48rem){.u-pb-1-s{padding-bottom:1rem !important}}@media (max-width:48rem){.u-pl-1-s{padding-left:1rem !important}}@media (max-width:48rem){.u-pr-1-s{padding-right:1rem !important}}@media (max-width:48rem){.u-pv-1-s{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:48rem){.u-ph-1-s{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:48rem){.u-p-2-s{padding:2rem !important}}@media (max-width:48rem){.u-pt-2-s{padding-top:2rem !important}}@media (max-width:48rem){.u-pb-2-s{padding-bottom:2rem !important}}@media (max-width:48rem){.u-pl-2-s{padding-left:2rem !important}}@media (max-width:48rem){.u-pr-2-s{padding-right:2rem !important}}@media (max-width:48rem){.u-pv-2-s{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:48rem){.u-ph-2-s{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:48rem){.u-p-3-s{padding:3rem !important}}@media (max-width:48rem){.u-pt-3-s{padding-top:3rem !important}}@media (max-width:48rem){.u-pb-3-s{padding-bottom:3rem !important}}@media (max-width:48rem){.u-pl-3-s{padding-left:3rem !important}}@media (max-width:48rem){.u-pr-3-s{padding-right:3rem !important}}@media (max-width:48rem){.u-pv-3-s{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:48rem){.u-ph-3-s{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:48rem){.u-p-auto-s{padding:auto !important}}@media (max-width:48rem){.u-pt-auto-s{padding-top:auto !important}}@media (max-width:48rem){.u-pb-auto-s{padding-bottom:auto !important}}@media (max-width:48rem){.u-pl-auto-s{padding-left:auto !important}}@media (max-width:48rem){.u-pr-auto-s{padding-right:auto !important}}@media (max-width:48rem){.u-pv-auto-s{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:48rem){.u-ph-auto-s{padding-left:auto !important;padding-right:auto !important}}@media (max-width:48rem){.u-p-half-s{padding:.5rem !important}}@media (max-width:48rem){.u-pt-half-s{padding-top:.5rem !important}}@media (max-width:48rem){.u-pb-half-s{padding-bottom:.5rem !important}}@media (max-width:48rem){.u-pl-half-s{padding-left:.5rem !important}}@media (max-width:48rem){.u-pr-half-s{padding-right:.5rem !important}}@media (max-width:48rem){.u-pv-half-s{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:48rem){.u-ph-half-s{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:48rem){.u-p-1-half-s{padding:1.5rem !important}}@media (max-width:48rem){.u-pt-1-half-s{padding-top:1.5rem !important}}@media (max-width:48rem){.u-pb-1-half-s{padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-pl-1-half-s{padding-left:1.5rem !important}}@media (max-width:48rem){.u-pr-1-half-s{padding-right:1.5rem !important}}@media (max-width:48rem){.u-pv-1-half-s{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-ph-1-half-s{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:48rem){.u-p-2-half-s{padding:2.5rem !important}}@media (max-width:48rem){.u-pt-2-half-s{padding-top:2.5rem !important}}@media (max-width:48rem){.u-pb-2-half-s{padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-pl-2-half-s{padding-left:2.5rem !important}}@media (max-width:48rem){.u-pr-2-half-s{padding-right:2.5rem !important}}@media (max-width:48rem){.u-pv-2-half-s{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-ph-2-half-s{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:48rem){.u-m-0-s{margin:0 !important}}@media (max-width:48rem){.u-mt-0-s{margin-top:0 !important}}@media (max-width:48rem){.u-mb-0-s{margin-bottom:0 !important}}@media (max-width:48rem){.u-ml-0-s{margin-left:0 !important}}@media (max-width:48rem){.u-mr-0-s{margin-right:0 !important}}@media (max-width:48rem){.u-mv-0-s{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:48rem){.u-mh-0-s{margin-left:0 !important;margin-right:0 !important}}@media (max-width:48rem){.u-m-1-s{margin:1rem !important}}@media (max-width:48rem){.u-mt-1-s{margin-top:1rem !important}}@media (max-width:48rem){.u-mb-1-s{margin-bottom:1rem !important}}@media (max-width:48rem){.u-ml-1-s{margin-left:1rem !important}}@media (max-width:48rem){.u-mr-1-s{margin-right:1rem !important}}@media (max-width:48rem){.u-mv-1-s{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:48rem){.u-mh-1-s{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:48rem){.u-m-2-s{margin:2rem !important}}@media (max-width:48rem){.u-mt-2-s{margin-top:2rem !important}}@media (max-width:48rem){.u-mb-2-s{margin-bottom:2rem !important}}@media (max-width:48rem){.u-ml-2-s{margin-left:2rem !important}}@media (max-width:48rem){.u-mr-2-s{margin-right:2rem !important}}@media (max-width:48rem){.u-mv-2-s{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:48rem){.u-mh-2-s{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:48rem){.u-m-3-s{margin:3rem !important}}@media (max-width:48rem){.u-mt-3-s{margin-top:3rem !important}}@media (max-width:48rem){.u-mb-3-s{margin-bottom:3rem !important}}@media (max-width:48rem){.u-ml-3-s{margin-left:3rem !important}}@media (max-width:48rem){.u-mr-3-s{margin-right:3rem !important}}@media (max-width:48rem){.u-mv-3-s{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:48rem){.u-mh-3-s{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:48rem){.u-m-auto-s{margin:auto !important}}@media (max-width:48rem){.u-mt-auto-s{margin-top:auto !important}}@media (max-width:48rem){.u-mb-auto-s{margin-bottom:auto !important}}@media (max-width:48rem){.u-ml-auto-s{margin-left:auto !important}}@media (max-width:48rem){.u-mr-auto-s{margin-right:auto !important}}@media (max-width:48rem){.u-mv-auto-s{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:48rem){.u-mh-auto-s{margin-left:auto !important;margin-right:auto !important}}@media (max-width:48rem){.u-m-half-s{margin:.5rem !important}}@media (max-width:48rem){.u-mt-half-s{margin-top:.5rem !important}}@media (max-width:48rem){.u-mb-half-s{margin-bottom:.5rem !important}}@media (max-width:48rem){.u-ml-half-s{margin-left:.5rem !important}}@media (max-width:48rem){.u-mr-half-s{margin-right:.5rem !important}}@media (max-width:48rem){.u-mv-half-s{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:48rem){.u-mh-half-s{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:48rem){.u-m-1-half-s{margin:1.5rem !important}}@media (max-width:48rem){.u-mt-1-half-s{margin-top:1.5rem !important}}@media (max-width:48rem){.u-mb-1-half-s{margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-ml-1-half-s{margin-left:1.5rem !important}}@media (max-width:48rem){.u-mr-1-half-s{margin-right:1.5rem !important}}@media (max-width:48rem){.u-mv-1-half-s{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-mh-1-half-s{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:48rem){.u-m-2-half-s{margin:2.5rem !important}}@media (max-width:48rem){.u-mt-2-half-s{margin-top:2.5rem !important}}@media (max-width:48rem){.u-mb-2-half-s{margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-ml-2-half-s{margin-left:2.5rem !important}}@media (max-width:48rem){.u-mr-2-half-s{margin-right:2.5rem !important}}@media (max-width:48rem){.u-mv-2-half-s{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-mh-2-half-s{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-p-0-m{padding:0 !important}}@media (max-width:63.938rem){.u-pt-0-m{padding-top:0 !important}}@media (max-width:63.938rem){.u-pb-0-m{padding-bottom:0 !important}}@media (max-width:63.938rem){.u-pl-0-m{padding-left:0 !important}}@media (max-width:63.938rem){.u-pr-0-m{padding-right:0 !important}}@media (max-width:63.938rem){.u-pv-0-m{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:63.938rem){.u-ph-0-m{padding-left:0 !important;padding-right:0 !important}}@media (max-width:63.938rem){.u-p-1-m{padding:1rem !important}}@media (max-width:63.938rem){.u-pt-1-m{padding-top:1rem !important}}@media (max-width:63.938rem){.u-pb-1-m{padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-pl-1-m{padding-left:1rem !important}}@media (max-width:63.938rem){.u-pr-1-m{padding-right:1rem !important}}@media (max-width:63.938rem){.u-pv-1-m{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-ph-1-m{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:63.938rem){.u-p-2-m{padding:2rem !important}}@media (max-width:63.938rem){.u-pt-2-m{padding-top:2rem !important}}@media (max-width:63.938rem){.u-pb-2-m{padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-pl-2-m{padding-left:2rem !important}}@media (max-width:63.938rem){.u-pr-2-m{padding-right:2rem !important}}@media (max-width:63.938rem){.u-pv-2-m{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-ph-2-m{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:63.938rem){.u-p-3-m{padding:3rem !important}}@media (max-width:63.938rem){.u-pt-3-m{padding-top:3rem !important}}@media (max-width:63.938rem){.u-pb-3-m{padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-pl-3-m{padding-left:3rem !important}}@media (max-width:63.938rem){.u-pr-3-m{padding-right:3rem !important}}@media (max-width:63.938rem){.u-pv-3-m{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-ph-3-m{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:63.938rem){.u-p-auto-m{padding:auto !important}}@media (max-width:63.938rem){.u-pt-auto-m{padding-top:auto !important}}@media (max-width:63.938rem){.u-pb-auto-m{padding-bottom:auto !important}}@media (max-width:63.938rem){.u-pl-auto-m{padding-left:auto !important}}@media (max-width:63.938rem){.u-pr-auto-m{padding-right:auto !important}}@media (max-width:63.938rem){.u-pv-auto-m{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:63.938rem){.u-ph-auto-m{padding-left:auto !important;padding-right:auto !important}}@media (max-width:63.938rem){.u-p-half-m{padding:.5rem !important}}@media (max-width:63.938rem){.u-pt-half-m{padding-top:.5rem !important}}@media (max-width:63.938rem){.u-pb-half-m{padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-pl-half-m{padding-left:.5rem !important}}@media (max-width:63.938rem){.u-pr-half-m{padding-right:.5rem !important}}@media (max-width:63.938rem){.u-pv-half-m{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ph-half-m{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:63.938rem){.u-p-1-half-m{padding:1.5rem !important}}@media (max-width:63.938rem){.u-pt-1-half-m{padding-top:1.5rem !important}}@media (max-width:63.938rem){.u-pb-1-half-m{padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-pl-1-half-m{padding-left:1.5rem !important}}@media (max-width:63.938rem){.u-pr-1-half-m{padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-pv-1-half-m{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ph-1-half-m{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-p-2-half-m{padding:2.5rem !important}}@media (max-width:63.938rem){.u-pt-2-half-m{padding-top:2.5rem !important}}@media (max-width:63.938rem){.u-pb-2-half-m{padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-pl-2-half-m{padding-left:2.5rem !important}}@media (max-width:63.938rem){.u-pr-2-half-m{padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-pv-2-half-m{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ph-2-half-m{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-m-0-m{margin:0 !important}}@media (max-width:63.938rem){.u-mt-0-m{margin-top:0 !important}}@media (max-width:63.938rem){.u-mb-0-m{margin-bottom:0 !important}}@media (max-width:63.938rem){.u-ml-0-m{margin-left:0 !important}}@media (max-width:63.938rem){.u-mr-0-m{margin-right:0 !important}}@media (max-width:63.938rem){.u-mv-0-m{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:63.938rem){.u-mh-0-m{margin-left:0 !important;margin-right:0 !important}}@media (max-width:63.938rem){.u-m-1-m{margin:1rem !important}}@media (max-width:63.938rem){.u-mt-1-m{margin-top:1rem !important}}@media (max-width:63.938rem){.u-mb-1-m{margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-ml-1-m{margin-left:1rem !important}}@media (max-width:63.938rem){.u-mr-1-m{margin-right:1rem !important}}@media (max-width:63.938rem){.u-mv-1-m{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-mh-1-m{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:63.938rem){.u-m-2-m{margin:2rem !important}}@media (max-width:63.938rem){.u-mt-2-m{margin-top:2rem !important}}@media (max-width:63.938rem){.u-mb-2-m{margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-ml-2-m{margin-left:2rem !important}}@media (max-width:63.938rem){.u-mr-2-m{margin-right:2rem !important}}@media (max-width:63.938rem){.u-mv-2-m{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-mh-2-m{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:63.938rem){.u-m-3-m{margin:3rem !important}}@media (max-width:63.938rem){.u-mt-3-m{margin-top:3rem !important}}@media (max-width:63.938rem){.u-mb-3-m{margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-ml-3-m{margin-left:3rem !important}}@media (max-width:63.938rem){.u-mr-3-m{margin-right:3rem !important}}@media (max-width:63.938rem){.u-mv-3-m{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-mh-3-m{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:63.938rem){.u-m-auto-m{margin:auto !important}}@media (max-width:63.938rem){.u-mt-auto-m{margin-top:auto !important}}@media (max-width:63.938rem){.u-mb-auto-m{margin-bottom:auto !important}}@media (max-width:63.938rem){.u-ml-auto-m{margin-left:auto !important}}@media (max-width:63.938rem){.u-mr-auto-m{margin-right:auto !important}}@media (max-width:63.938rem){.u-mv-auto-m{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:63.938rem){.u-mh-auto-m{margin-left:auto !important;margin-right:auto !important}}@media (max-width:63.938rem){.u-m-half-m{margin:.5rem !important}}@media (max-width:63.938rem){.u-mt-half-m{margin-top:.5rem !important}}@media (max-width:63.938rem){.u-mb-half-m{margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ml-half-m{margin-left:.5rem !important}}@media (max-width:63.938rem){.u-mr-half-m{margin-right:.5rem !important}}@media (max-width:63.938rem){.u-mv-half-m{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-mh-half-m{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:63.938rem){.u-m-1-half-m{margin:1.5rem !important}}@media (max-width:63.938rem){.u-mt-1-half-m{margin-top:1.5rem !important}}@media (max-width:63.938rem){.u-mb-1-half-m{margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ml-1-half-m{margin-left:1.5rem !important}}@media (max-width:63.938rem){.u-mr-1-half-m{margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-mv-1-half-m{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-mh-1-half-m{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-m-2-half-m{margin:2.5rem !important}}@media (max-width:63.938rem){.u-mt-2-half-m{margin-top:2.5rem !important}}@media (max-width:63.938rem){.u-mb-2-half-m{margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ml-2-half-m{margin-left:2.5rem !important}}@media (max-width:63.938rem){.u-mr-2-half-m{margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-mv-2-half-m{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-mh-2-half-m{margin-left:2.5rem !important;margin-right:2.5rem !important}}.u-pos-absolute{position:absolute}.u-pos-relative{position:relative}.u-pos-fixed{position:fixed}.u-pos-sticky{position:sticky}.u-pos-static{position:static}@media (max-width:30rem){.u-pos-absolute-t{position:absolute}.u-pos-relative-t{position:relative}.u-pos-fixed-t{position:fixed}.u-pos-sticky-t{position:sticky}.u-pos-static-t{position:static}}@media (max-width:48rem){.u-pos-absolute-s{position:absolute}.u-pos-relative-s{position:relative}.u-pos-fixed-s{position:fixed}.u-pos-sticky-s{position:sticky}.u-pos-static-s{position:static}}@media (max-width:63.938rem){.u-pos-absolute-m{position:absolute}.u-pos-relative-m{position:relative}.u-pos-fixed-m{position:fixed}.u-pos-sticky-m{position:sticky}.u-pos-static-m{position:static}}.u-top-m{top:1rem}.u-top-xs{top:.5rem}.u-top-s{top:.75rem}.u-top-l{top:1.5rem}.u-top-xl{top:2rem}.u-top-xxl{top:3rem}.u-top-0{top:0}.u-bottom-m{bottom:1rem}.u-bottom-xs{bottom:.5rem}.u-bottom-s{bottom:.75rem}.u-bottom-l{bottom:1.5rem}.u-bottom-xl{bottom:2rem}.u-bottom-xxl{bottom:3rem}.u-bottom-0{bottom:0}.u-left-m{left:1rem}.u-left-xs{left:.5rem}.u-left-s{left:.75rem}.u-left-l{left:1.5rem}.u-left-xl{left:2rem}.u-left-xxl{left:3rem}.u-left-0{left:0}.u-right-m{right:1rem}.u-right-xs{right:.5rem}.u-right-s{right:.75rem}.u-right-l{right:1.5rem}.u-right-xl{right:2rem}.u-right-xxl{right:3rem}.u-right-0{right:0}.u-stack-m > * + *{margin-top:1rem}.u-stack-xs > * + *{margin-top:.5rem}.u-stack-s > * + *{margin-top:.75rem}.u-stack-l > * + *{margin-top:1.5rem}.u-stack-xl > * + *{margin-top:2rem}.u-stack-xxl > * + *{margin-top:3rem}.u-row-m > * + *{margin-left:1rem}.u-row-xs > * + *{margin-left:.5rem}.u-row-s > * + *{margin-left:.75rem}.u-row-l > * + *{margin-left:1.5rem}.u-row-xl > * + *{margin-left:2rem}.u-row-xxl > * + *{margin-left:3rem}.u-title-h1,.u-title-h2,.u-title-h3,.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}.u-title-h1{font-size:1.5rem;letter-spacing:-.012rem}@media (max-width:48rem){.u-title-h1{font-size:1.25rem}}.u-title-h2{font-size:1.25rem}@media (max-width:48rem){.u-title-h2{font-size:1.125rem}}.u-title-h3{font-size:1.125rem}@media (max-width:48rem){.u-title-h3{font-size:1rem}}.u-title-h4{font-size:1rem}@media (max-width:48rem){.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}}.u-text{font-size:1rem;line-height:1.3;color:var(--primaryTextColor)}.u-caption{font-size:.75rem;line-height:1.2;color:var(--coolGrey)}.u-subtitle{font-size:.75rem;line-height:1.313}.u-uppercase{text-transform:uppercase}.u-lowercase{text-transform:lowercase}.u-subtitle{font-size:.75rem;text-transform:uppercase;font-weight:bold}.c-input-checkbox--svg span::after{display:none}.c-input-checkbox-icon{position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;padding:.125rem;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox input:not(:checked) + span .c-input-checkbox-icon{opacity:0;-webkit-transform:scale(0) translateY(-50%);transform:scale(0) translateY(-50%)}.c-input-checkbox input:checked + span .c-input-checkbox-icon{opacity:1;-webkit-transform:scale(1) translateY(-50%);transform:scale(1) translateY(-50%)}.c-avatar--text{color:#fff}.c-avatar--disabled.c-avatar--image{background-color:#fff !important}.c-avatar--disabled:not(.c-avatar--image){background-color:var(--silver) !important}.c-avatar--disabled .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.c-avatar--ghost{background-color:transparent !important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.c-avatar--ghost .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.wizard-agreements-item:nth-child(1) .wizard-agreements-icon{--bgcolor:var(--weirdGreen)}.wizard-agreements-item:nth-child(2) .wizard-agreements-icon{--bgcolor:var(--mango)}.wizard-agreements-item:nth-child(3) .wizard-agreements-icon{--bgcolor:var(--lightishPurple)}.wizard-agreements-item:nth-child(4) .wizard-agreements-icon{--bgcolor:var(--pomegranate)}.wizard-agreements-item:nth-child(5) .wizard-agreements-icon{--bgcolor:var(--azure)}.wizard-agreements-item:nth-child(6) .wizard-agreements-icon{--bgcolor:var(--brightSun)}", ""]); +exports.push([module.i, "html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}:root{--invertedBackgroundColor:#297ef2;--invertedContrastTextColor:#fff}.CozyTheme--inverted{--primaryTextColor:#fff;--secondaryTextColor:rgba(255,255,255,0.64);--disabledTextColor:rgba(255,255,255,0.4);--hintTextColor:rgba(255,255,255,0.4);--iconTextColor:#fff;--actionColorActive:#fff;--actionColorHover:rgba(255,255,255,0.08);--actionColorSelected:rgba(255,255,255,0.16);--actionColorDisabled:rgba(255,255,255,0.32);--actionColorDisabledBackground:rgba(255,255,255,0.12);--actionColorFocus:rgba(255,255,255,0.24);--actionColorGhost:rgba(255,255,255,0.08);--actionColorHoverGhost:rgba(255,255,255,0.16);--dividerColor:rgba(255,255,255,0.16);--borderMainColor:rgba(255,255,255,0.24);--borderDisabledColor:rgba(255,255,255,0.12);--borderGhostColor:rgba(255,255,255,0.48);--borderGhostDisabledColor:rgba(255,255,255,0.24);--paperBackgroundColor:#297ef2;--defaultBackgroundColor:#579eff;--contrastBackgroundColor:rgba(255,255,255,0.12);--primaryColorLight:#fff;--primaryColor:#fff;--primaryColorDark:#eaf3ff;--primaryContrastTextColor:#297ef2;--secondaryColorLight:#f8eefd;--secondaryColor:#ecd7f7;--secondaryColorDark:#deb8f0;--secondaryContrastTextColor:rgba(29,33,42,0.9);--errorColorLight:#ffecec;--errorColor:#ffd3d3;--errorColorDark:#ffb9b9;--errorColorContrastText:rgba(29,33,42,0.9);--errorBackground:#d31f1f;--warningColorLight:#fff3dd;--warningColor:#ffe4b5;--warningColorDark:#ffd58b;--warningColorContrastText:rgba(29,33,42,0.9);--successColorLight:#e3ffe7;--successColor:#c0f4c6;--successColorDark:#97eca1;--successColorContrastText:rgba(29,33,42,0.9);--infoColorLight:#d4feff;--infoColor:#affdff;--infoColorDark:#86f5f7;--infoColorContrastText:rgba(29,33,42,0.9);--iconColor:currentColor;--textIconColor:#fff;--actionMenuIconColor:#fff;--barIconColor:#fff;--barIconColorDisabled:rgba(255,255,255,0.88);--spinnerColor:#fff;--linkColor:#fff;--linkColorActive:#fff;--linkTextDecoration:underline;--regularButtonPrimaryColor:#fff;--regularButtonSecondaryColor:#fff;--regularButtonActiveColor:rgba(255,255,255,0.88);--regularButtonConstrastColor:#297ef2;--secondaryButtonPrimaryColor:#297ef2;--secondaryButtonSecondaryColor:#fff;--secondaryButtonActiveColor:rgba(255,255,255,0.24);--secondaryButtonContrastColor:#fff;--dividerColor2:rgba(255,255,255,0.16)}html{--grey0:#fff;--grey50:#f9fafb;--grey100:#f4f5f6;--grey200:#eceff1;--grey300:#dde0e3;--grey400:#bfc3c7;--grey500:#9da2a6;--grey600:#7c8086;--grey700:#5d6169;--grey800:#3e424a;--grey900:#1d212a;--greyA100:#d3d6d8;--greyA200:#a7abaf;--greyA400:#2c3039;--greyA700:#5d6169;--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,0.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.CozyTheme--normal{--primaryColorLightest:#b3d3ff;--primaryColorLight:#579eff;--primaryColor:#297ef2;--primaryColorDark:#0f5cc7;--primaryContrastTextColor:#fff;--secondaryColorLightest:#ffd3d3;--secondaryColorLight:#f96b6b;--secondaryColor:#ea3f3f;--secondaryColorDark:#d31f1f;--secondaryContrastTextColor:#fff;--primaryBackgroundLight:#f7faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f4f5f6;--contrastBackgroundColor:rgba(29,33,42,0.048);--primaryTextColor:rgba(29,33,42,0.9);--secondaryTextColor:rgba(29,33,42,0.64);--disabledTextColor:rgba(29,33,42,0.32);--hintTextColor:rgba(29,33,42,0.32);--iconTextColor:rgba(29,33,42,0.72);--actionColorActive:rgba(29,33,42,0.56);--actionColorHover:rgba(29,33,42,0.04);--actionColorSelected:rgba(29,33,42,0.08);--actionColorDisabled:rgba(29,33,42,0.24);--actionColorDisabledBackground:rgba(29,33,42,0.12);--actionColorFocus:rgba(29,33,42,0.12);--actionColorGhost:rgba(29,33,42,0.08);--actionColorHoverGhost:rgba(29,33,42,0.16);--borderMainColor:rgba(29,33,42,0.16);--borderDisabledColor:rgba(29,33,42,0.08);--borderGhostColor:rgba(29,33,42,0.48);--borderGhostDisabledColor:rgba(29,33,42,0.16);--dividerColor:rgba(29,33,42,0.12);--successColorLight:#38c949;--successColor:#09ab1b;--successColorDark:#018711;--successColorContrastText:#fff;--warningColorLight:#efa82d;--warningColor:#cb8100;--warningColorDark:#986100;--warningColorContrastText:#fff;--errorColorLightest:#ffecec;--errorColorLight:#f96b6b;--errorColor:#ea3f3f;--errorColorDark:#d31f1f;--errorBackground:#ffecec;--errorColorContrastText:#fff;--infoColorLight:#0ec4c7;--infoColor:#009fa2;--infoColorDark:#007578;--infoColorContrastText:#fff;--shadow0:none;--shadow1:0 2px 4px 0 rgba(29,33,42,0.08),0 4px 16px 0 rgba(29,33,42,0.06),0 0 0 .5px rgba(29,33,42,0.12);--shadow2:0 3px 5px 0 rgba(29,33,42,0.09),0 4px 17px 0 rgba(29,33,42,0.07),0 0 0 .5px rgba(29,33,42,0.12);--shadow3:0 3px 5px -1px rgba(29,33,42,0.09),0 5px 19px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow4:0 3px 6px -1px rgba(29,33,42,0.1),0 5px 20px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow5:0 4px 6px -1px rgba(29,33,42,0.11),0 5px 22px 1px rgba(29,33,42,0.09),0 0 0 .5px rgba(29,33,42,0.12);--shadow6:0 4px 7px -2px rgba(29,33,42,0.11),0 6px 23px 2px rgba(29,33,42,0.1),0 0 0 .5px rgba(29,33,42,0.12);--shadow7:0 5px 7px -2px rgba(29,33,42,0.12),0 6px 24px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow8:0 5px 8px -2px rgba(29,33,42,0.13),0 6px 26px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow9:0 5px 8px -3px rgba(29,33,42,0.14),0 7px 27px 3px rgba(29,33,42,0.12),0 0 0 .5px rgba(29,33,42,0.12);--shadow10:0 6px 9px -3px rgba(29,33,42,0.14),0 7px 29px 3px rgba(29,33,42,0.13),0 0 0 .5px rgba(29,33,42,0.12);--shadow11:0 6px 9px -3px rgba(29,33,42,0.15),0 7px 30px 3px rgba(29,33,42,0.14),0 0 0 .5px rgba(29,33,42,0.12);--shadow12:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 31px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow13:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 33px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow14:0 8px 11px -5px rgba(29,33,42,0.17),0 9px 34px 5px rgba(29,33,42,0.16),0 0 0 .5px rgba(29,33,42,0.12);--shadow15:0 8px 11px -5px rgba(29,33,42,0.18),0 9px 35px 5px rgba(29,33,42,0.17),0 0 0 .5px rgba(29,33,42,0.12);--shadow16:0 9px 12px -5px rgba(29,33,42,0.18),0 9px 37px 5px rgba(29,33,42,0.18),0 0 0 .5px rgba(29,33,42,0.12);--shadow17:0 9px 12px -6px rgba(29,33,42,0.19),0 10px 38px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow18:0 9px 13px -6px rgba(29,33,42,0.2),0 10px 40px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow19:0 10px 13px -6px rgba(29,33,42,0.21),0 10px 41px 6px rgba(29,33,42,0.2),0 0 0 .5px rgba(29,33,42,0.12);--shadow20:0 10px 14px -7px rgba(29,33,42,0.21),0 11px 42px 7px rgba(29,33,42,0.21),0 0 0 .5px rgba(29,33,42,0.12);--shadow21:0 11px 14px -7px rgba(29,33,42,0.22),0 11px 44px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow22:0 11px 15px -7px rgba(29,33,42,0.23),0 11px 45px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow23:0 12px 15px -8px rgba(29,33,42,0.23),0 12px 47px 8px rgba(29,33,42,0.23),0 0 0 .5px rgba(29,33,42,0.12);--shadow24:0 12px 16px -8px rgba(29,33,42,0.24),0 12px 48px 8px rgba(29,33,42,0.24),0 0 0 .5px rgba(29,33,42,0.12);--shadow25:0 1px 4px rgba(29,33,42,0.04);--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}.u-elevation-1{box-shadow:0 4px 12px 0 rgba(0,0,0,0.08);border:1px solid rgba(0,0,0,0.08)}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80}/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\nhtml{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100%;margin:0}@media (max-width:63.938rem){html,body{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}html,body{background-color:var(--white);color:var(--black)}.u-visuallyhidden{position:absolute !important;border:0 !important;width:.063rem !important;height:.063rem !important;overflow:hidden !important;padding:0 !important;white-space:nowrap !important;clip:rect(.063rem,.063rem,.063rem,.063rem) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important}.u-hide{display:none !important;visibility:hidden !important}@media (max-width:63.938rem){.u-hide--mob{display:none !important}}@media (min-width:64rem){.u-hide--tablet{display:none !important}}@media (min-width:48.063rem){.u-hide--desk{display:none !important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black) !important}.u-charcoalGrey{color:var(--charcoalGrey) !important}.u-coolGrey{color:var(--coolGrey) !important}.u-silver{color:var(--silver) !important}.u-slateGrey{color:var(--slateGrey) !important}.u-lightishPurple{color:#b449e7 !important}.u-dodgerBlue{color:#297ef2 !important}.u-overlay{color:var(--overlay) !important}.u-paleGrey{color:var(--paleGrey) !important}.u-monza{color:#dd0505 !important}.u-pomegranate{color:#f52d2d !important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight) !important}.u-primaryColor{color:var(--primaryColor) !important}.u-primaryColorLight{color:var(--primaryColorLight) !important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor) !important}.u-error{color:var(--errorColor) !important}.u-errorBackground{color:var(--errorBackground) !important}.u-success{color:var(--successColor) !important}.u-warning{color:var(--warningColor) !important}.u-info{color:var(--infoColor) !important}.u-weirdGreen{color:#40de8e !important}.u-white{color:var(--white) !important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis > *{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis > :first-child{text-overflow:ellipsis}.u-midellipsis > :last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:'[...]'){.u-midellipsis > :first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor) !important;-webkit-text-decoration:var(--linkTextDecoration) !important;text-decoration:var(--linkTextDecoration) !important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive) !important}.u-lh-tiny{line-height:1 !important}.u-lh-xsmall{line-height:1.1 !important}.u-lh-small{line-height:1.2 !important}.u-lh-medium{line-height:1.3 !important}.u-lh-large{line-height:1.4 !important}.u-lh-xlarge{line-height:1.5 !important}.u-fz-tiny{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium{font-size:1rem !important;line-height:1.5 !important}.u-fz-large{font-size:1.125rem !important;line-height:1.5 !important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-t{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-t{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-t{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-t{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-s{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-s{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-s{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-s{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-m{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-m{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-m{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-m{font-size:1.125rem !important;line-height:1.5 !important}}.u-ta-left{text-align:left !important}.u-ta-right{text-align:right !important}.u-ta-center{text-align:center !important}.u-ta-justify{text-align:justify !important}@media (max-width:30rem){.u-ta-left-t{text-align:left !important}.u-ta-right-t{text-align:right !important}.u-ta-center-t{text-align:center !important}.u-ta-justify-t{text-align:justify !important}}@media (max-width:48rem){.u-ta-left-s{text-align:left !important}.u-ta-right-s{text-align:right !important}.u-ta-center-s{text-align:center !important}.u-ta-justify-s{text-align:justify !important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left !important}.u-ta-right-m{text-align:right !important}.u-ta-center-m{text-align:center !important}.u-ta-justify-m{text-align:justify !important}}.u-fs-normal{font-style:normal !important}.u-fs-italic{font-style:italic !important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal !important}.u-fs-italic-t{font-style:italic !important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal !important}.u-fs-italic-s{font-style:italic !important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal !important}.u-fs-italic-m{font-style:italic !important}}.u-fw-normal{font-weight:normal}.u-fw-bold{font-weight:bold}@media (max-width:30rem){.u-fw-normal-t{font-weight:normal}.u-fw-bold-t{font-weight:bold}}@media (max-width:48rem){.u-fw-normal-s{font-weight:normal}.u-fw-bold-s{font-weight:bold}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:normal}.u-fw-bold-m{font-weight:bold}}.c-btn,.c-btn--regular,.c-btn-client,.c-btn-client-mobile{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-width:.063rem;border-style:solid;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:bold;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border-color:var(--regularButtonSecondaryColor)}.c-btn svg,.c-btn--regular svg,.c-btn-client svg,.c-btn-client-mobile svg{fill:currentColor}.c-btn svg + span,.c-btn--regular svg + span,.c-btn-client svg + span,.c-btn-client-mobile svg + span{margin-left:.375rem}.c-btn input,.c-btn--regular input,.c-btn-client input,.c-btn-client-mobile input{cursor:pointer}.c-btn > span,.c-btn--regular > span,.c-btn-client > span,.c-btn-client-mobile > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn[disabled],.c-btn--regular[disabled],.c-btn-client[disabled],.c-btn-client-mobile[disabled],.c-btn[aria-disabled=true],.c-btn--regular[aria-disabled=true],.c-btn-client[aria-disabled=true],.c-btn-client-mobile[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn[disabled] input,.c-btn--regular[disabled] input,.c-btn-client[disabled] input,.c-btn-client-mobile[disabled] input,.c-btn[aria-disabled=true] input,.c-btn--regular[aria-disabled=true] input,.c-btn-client[aria-disabled=true] input,.c-btn-client-mobile[aria-disabled=true] input{cursor:not-allowed}.c-btn[aria-busy=true],.c-btn--regular[aria-busy=true],.c-btn-client[aria-busy=true],.c-btn-client-mobile[aria-busy=true]{opacity:.5;pointer-events:none}.c-btn:visited,.c-btn--regular:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--regularButtonConstrastColor)}.c-btn:active,.c-btn--regular:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn:hover,.c-btn--regular:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn:focus,.c-btn--regular:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.c-btn[disabled]:hover,.c-btn--regular[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn[aria-disabled=true]:hover,.c-btn--regular[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.c-btn--ghost{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.c-btn--ghost:visited{color:var(--primaryColor)}.c-btn--ghost:active,.c-btn--ghost:hover,.c-btn--ghost:focus{border-color:#c2dcff;background-color:#c2dcff}.c-btn--ghost[disabled]:hover,.c-btn--ghost[aria-disabled=true]:hover{border-color:#c2dcff;background-color:var(--zircon)}.c-btn--highlight{background-color:#35ce68;color:var(--white);border-color:#35ce68}.c-btn--highlight:visited{color:var(--white)}.c-btn--highlight:active,.c-btn--highlight:hover,.c-btn--highlight:focus{border-color:#08b442;background-color:#08b442}.c-btn--highlight[disabled]:hover,.c-btn--highlight[aria-disabled=true]:hover{border-color:#35ce68;background-color:#35ce68}.c-btn--alpha,.c-btn--action,.c-btn--close{background-color:transparent;color:var(--white);border-color:var(--white)}.c-btn--alpha:visited,.c-btn--action:visited,.c-btn--close:visited{color:var(--white)}.c-btn--alpha:active,.c-btn--action:active,.c-btn--close:active,.c-btn--alpha:hover,.c-btn--action:hover,.c-btn--close:hover,.c-btn--alpha:focus,.c-btn--action:focus,.c-btn--close:focus{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.c-btn--alpha[disabled]:hover,.c-btn--action[disabled]:hover,.c-btn--close[disabled]:hover,.c-btn--alpha[aria-disabled=true]:hover,.c-btn--action[aria-disabled=true]:hover,.c-btn--close[aria-disabled=true]:hover{border-color:var(--white);background-color:transparent}.c-btn--danger{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.c-btn--danger:visited{color:var(--white)}.c-btn--danger:active,.c-btn--danger:hover,.c-btn--danger:focus{border-color:var(--monza);background-color:var(--monza)}.c-btn--danger[disabled]:hover,.c-btn--danger[aria-disabled=true]:hover{border-color:#f52d2d;background-color:#f52d2d}.c-btn--secondary,.c-btn-client,.c-btn-client-mobile{background-color:var(--secondaryButtonPrimaryColor);color:var(--secondaryButtonContrastColor);border-color:var(--secondaryButtonSecondaryColor)}.c-btn--secondary:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--secondaryButtonContrastColor)}.c-btn--secondary:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn--secondary:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn--secondary:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.c-btn--secondary[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn--secondary[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.c-btn--danger-outline{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.c-btn--danger-outline:visited{color:#f52d2d}.c-btn--danger-outline:active,.c-btn--danger-outline:hover,.c-btn--danger-outline:focus{border-color:#fdcbcb;background-color:#fdcbcb}.c-btn--danger-outline[disabled]:hover,.c-btn--danger-outline[aria-disabled=true]:hover{border-color:#fdcbcb;background-color:var(--white)}.c-btn--text{background-color:transparent;color:var(--primaryColor);border-color:transparent}.c-btn--text:visited{color:var(--primaryColor)}.c-btn--text:active,.c-btn--text:hover,.c-btn--text:focus{border-color:transparent;background-color:transparent}.c-btn--text[disabled]:hover,.c-btn--text[aria-disabled=true]:hover{border-color:transparent;background-color:transparent}.c-btn--text:hover,.c-btn--text:focus{color:var(--primaryColorDark)}.c-btn--action{border-color:transparent;padding:.5rem;opacity:.5}.c-btn--action:active,.c-btn--action:hover,.c-btn--action:focus{background-color:transparent;border-color:transparent}.c-btn--close{border-color:transparent;padding:.5rem}.c-btn--close:active,.c-btn--close:hover,.c-btn--close:focus{background-color:transparent;border-color:transparent}.c-btn-alert,.c-btn-alert--error,.c-btn-alert--info,.c-btn-alert--success{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:bold;font-size:.875rem;text-decoration:none}.c-btn-alert--error{color:#f52d2d !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--error:visited{color:#f52d2d !important}.c-btn-alert--error:active,.c-btn-alert--error:hover,.c-btn-alert--error:focus{color:var(--monza) !important;background-color:#fdcbcb !important;border-color:#fdcbcb !important}.c-btn-alert--info{color:var(--white) !important;background-color:var(--coolGrey) !important;border-color:var(--coolGrey) !important}.c-btn-alert--info[disabled]:hover,.c-btn-alert--info[aria-disabled=true]:hover{background-color:var(--coolGrey) !important}.c-btn-alert--info:visited{color:var(--white) !important}.c-btn-alert--info:active,.c-btn-alert--info:hover,.c-btn-alert--info:focus{background-color:var(--charcoalGrey) !important;border-color:var(--charcoalGrey) !important}.c-btn-alert--success{color:#35ce68 !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--success:visited{color:#35ce68 !important}.c-btn-alert--success:active,.c-btn-alert--success:hover,.c-btn-alert--success:focus{color:#08b442 !important;background-color:#def7e7 !important;border-color:#def7e7 !important}.c-btn-client,.c-btn-client-mobile{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:transparent;text-align:left;font-size:.813rem;font-weight:bold;line-height:1.3;color:var(--slateGrey)}.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--slateGrey)}.c-btn-client span,.c-btn-client-mobile span{flex:0 1 auto}.c-btn-client figure,.c-btn-client-mobile figure{flex:0 0 2rem;margin:0 .75rem 0 0}.c-btn-client-mobile{display:flex;justify-content:flex-start;background-color:var(--dodgerBlue);border:0;border-radius:0;margin:0;padding:.5rem 3rem .5rem 1rem;font-size:1rem;font-weight:normal;color:var(--white);text-decoration:none;text-transform:none}.c-btn-client-mobile[disabled]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{background-color:var(--dodgerBlue)}.c-btn-client-mobile:visited{color:var(--white)}.c-btn-client-mobile:active,.c-btn-client-mobile:hover,.c-btn-client-mobile:focus{background-color:var(--dodgerBlue)}.c-btn-client-mobile figure{flex:0 0 2.75rem;border-radius:.5rem;border:.313rem solid var(--white);background-color:var(--white)}.c-btn-client-mobile figure svg{display:block}.c-btn--left > span{justify-content:flex-start}.c-btn--center > span{justify-content:center}.c-btn--right > span{justify-content:flex-end}.c-btn.c-btn--tiny{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.c-btn.c-btn--small{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.c-btn.c-btn--large{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.c-btn.c-btn--full{width:100%;margin-left:0;margin-right:0}.c-btn.c-btn--narrow,.c-btn.c-btn--round{min-width:auto}.c-btn.c-btn--round{border-radius:100%;min-height:auto;padding:.25rem}.c-btn.c-btn--round svg{width:.625rem;height:.625rem}@media (pointer:coarse){.c-btn.c-btn--round:after{content:'';position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.c-btn--subtle{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:baseline;background:transparent;cursor:pointer;font-size:.875rem;font-weight:bold;text-transform:uppercase}.c-btn--subtle:active,.c-btn--subtle:focus,.c-btn--subtle:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn--subtle[disabled],.c-btn--subtle[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn--subtle[disabled]:hover,.c-btn--subtle[aria-disabled=true]:hover{background:transparent}.c-btn--subtle[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.c-btn--subtle[aria-busy=true]:hover{background:transparent}.c-btn--subtle:active,.c-btn--subtle:hover,.c-btn--subtle:focus,.c-btn--subtle:visited{color:var(--primaryColorDark);background:transparent}* + .c-btn--subtle{margin-left:.063rem}.c-btn--subtle.c-btn--tiny{min-height:0;min-width:0;padding:0;font-size:.563rem}.c-btn--subtle.c-btn--small{min-height:0;min-width:0;padding:0;font-size:.75rem}.c-btn--subtle.c-btn--large{min-height:0;min-width:0;padding:0;font-size:1rem}.c-btn--subtle.c-btn--danger{color:#f52d2d}.c-btn--subtle.c-btn--danger:active,.c-btn--subtle.c-btn--danger:focus,.c-btn--subtle.c-btn--danger:hover{color:var(--monza)}.c-btn--subtle.c-btn--highlight{color:#35ce68}.c-btn--subtle.c-btn--highlight:active,.c-btn--subtle.c-btn--highlight:focus,.c-btn--subtle.c-btn--highlight:hover{color:#08b442}.c-btn--subtle.c-btn--regular{color:var(--regularButtonSecondaryColor)}.c-btn--subtle.c-btn--regular:active,.c-btn--subtle.c-btn--regular:focus,.c-btn--subtle.c-btn--regular:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle.c-btn--secondary{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary:active,.c-btn--subtle.c-btn--secondary:focus,.c-btn--subtle.c-btn--secondary:hover{color:var(--charcoalGrey)}.c-btn--subtle.c-btn--secondary:active svg,.c-btn--subtle.c-btn--secondary:focus svg,.c-btn--subtle.c-btn--secondary:hover svg{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary svg{color:var(--coolGrey)}[data-input=radio],[data-input=checkbox]{display:flex}[data-input=radio] input[type=radio],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=checkbox] input[type=checkbox]{display:none !important;visibility:hidden !important}[data-input=radio] label,[data-input=checkbox] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=radio] label::before,[data-input=checkbox] label::before,[data-input=radio] label::after,[data-input=checkbox] label::after{content:'';position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=radio] label::before,[data-input=checkbox] label::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1)}[data-input=radio] label::after,[data-input=checkbox] label::after{transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-label{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:bold;line-height:1rem}.c-label.is-error{color:var(--pomegranate)}.c-label--block{display:block;padding:.5rem 0}.c-input-text[aria-disabled=true],.c-input-text[disabled],.c-textarea[aria-disabled=true],.c-textarea[disabled],.c-select[aria-disabled=true],.c-select[disabled],.wizard-select[aria-disabled=true],.wizard-select[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.c-input-text[aria-disabled=true]:hover,.c-input-text[disabled]:hover,.c-textarea[aria-disabled=true]:hover,.c-textarea[disabled]:hover,.c-select[aria-disabled=true]:hover,.c-select[disabled]:hover,.wizard-select[aria-disabled=true]:hover,.wizard-select[disabled]:hover,.c-input-text[aria-disabled=true]:focus,.c-input-text[disabled]:focus,.c-textarea[aria-disabled=true]:focus,.c-textarea[disabled]:focus,.c-select[aria-disabled=true]:focus,.c-select[disabled]:focus,.wizard-select[aria-disabled=true]:focus,.wizard-select[disabled]:focus{border:.063rem solid var(--dividerColor)}.c-input-text,.c-textarea,.c-select,.wizard-select{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.c-input-text::-webkit-input-placeholder,.c-textarea::-webkit-input-placeholder,.c-select::-webkit-input-placeholder,.wizard-select::-webkit-input-placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text::placeholder,.c-textarea::placeholder,.c-select::placeholder,.wizard-select::placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text:hover,.c-textarea:hover,.c-select:hover,.wizard-select:hover{border:.063rem solid var(--coolGrey)}.c-input-text:focus,.c-textarea:focus,.c-select:focus,.wizard-select:focus{border:.063rem solid var(--dodgerBlue);outline:0}.c-input-text.is-error,.c-textarea.is-error,.c-select.is-error,.wizard-select.is-error,.c-input-text:not(:focus):invalid,.c-textarea:not(:focus):invalid,.c-select:not(:focus):invalid,.wizard-select:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.c-input-text--tiny,.c-textarea--tiny,.c-select--tiny{border-radius:.125rem;padding:.25rem .5rem .375rem}.c-input-text--medium,.c-textarea--medium,.c-select--medium,.wizard-select--medium{border-radius:.125rem;padding:.5rem 1rem .625rem}.c-input-text--large{border-radius:.188rem;padding:.813rem 1rem}.c-input-text--fullwidth,.c-textarea--fullwidth,.c-select--fullwidth{max-width:100%}.c-input-checkbox,.c-input-radio{display:flex;align-items:center;min-width:1rem;min-height:1rem}.c-input-checkbox span,.c-input-radio span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.c-input-checkbox span::before,.c-input-radio span::before,.c-input-checkbox span::after,.c-input-radio span::after{content:'';position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.c-input-checkbox span::before,.c-input-radio span::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.c-input-checkbox span:hover::before,.c-input-radio span:hover::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox span::after,.c-input-radio span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox[aria-checked='mixed'] span::after,.c-input-radio[aria-checked='mixed'] span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}.c-input-checkbox[aria-disabled=true] span,.c-input-radio[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.c-input-checkbox[aria-disabled=true] :hover::before,.c-input-radio[aria-disabled=true] :hover::before{box-shadow:inset 0 0 0 .125rem var(--silver)}.c-input-checkbox[aria-disabled=true] ::before,.c-input-radio[aria-disabled=true] ::before{background-color:var(--paleGrey)}.c-input-checkbox input,.c-input-radio input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0,0 0,0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.c-input-checkbox input:focus + span::before,.c-input-radio input:focus + span::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::before,.c-input-radio input:checked + span::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::after,.c-input-radio input:checked + span::after{opacity:1;-webkit-transform:translateY(-50%) scale(1);transform:translateY(-50%) scale(1)}.c-input-checkbox input:not(:checked) + span::after,.c-input-radio input:not(:checked) + span::after{opacity:0;-webkit-transform:translateY(-50%) scale(0);transform:translateY(-50%) scale(0)}.c-input-checkbox.is-error span,.c-input-radio.is-error span{color:var(--pomegranate)}.c-input-checkbox.is-error span::before,.c-input-radio.is-error span::before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.c-input-checkbox--noGutter span,.c-input-radio--noGutter span{padding-left:0}.c-input-radio span::before,.c-input-radio span::after{border-radius:50%}.c-input-radio span::after{content:'';background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.c-textarea{display:block;width:100%;min-height:7.5rem;resize:vertical}.c-textarea--tiny{min-height:3rem}.c-textarea--medium{min-height:5rem}.c-select,.c-select--tiny,.c-select--medium,.c-select--fullwidth,.wizard-select,.wizard-select--medium{padding-right:2.375rem}.c-select,.wizard-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyLjI4NTcxNCwgMTIuMDAwMDAwKSByb3RhdGUoOTAuMDAwMDAwKSB0cmFuc2xhdGUoLTEyLjI4NTcxNCwgLTEyLjAwMDAwMCkiPgogICAgPHBhdGggZD0iTTYuNDYwMjYwNzcsMjAuMzE3NDAzNiBDNS44NDY1Nzk3NCwyMC45MzEwODQ3IDUuODQ2NTc5NzQsMjEuOTI2MDU4MiA2LjQ2MDI2MDc3LDIyLjUzOTczOTIgQzcuMDczOTQxOCwyMy4xNTM0MjAzIDguMDY4OTE1MzQsMjMuMTUzNDIwMyA4LjY4MjU5NjM3LDIyLjUzOTczOTIgTDE4LjExMTE2NzgsMTMuMTExMTY3OCBDMTguNzI0ODQ4OCwxMi40OTc0ODY4IDE4LjcyNDg0ODgsMTEuNTAyNTEzMiAxOC4xMTExNjc4LDEwLjg4ODgzMjIgTDguNjgyNTk2MzcsMS40NjAyNjA3NyBDOC4wNjg5MTUzNCwwLjg0NjU3OTc0MyA3LjA3Mzk0MTgsMC44NDY1Nzk3NDMgNi40NjAyNjA3NywxLjQ2MDI2MDc3IEM1Ljg0NjU3OTc0LDIuMDczOTQxOCA1Ljg0NjU3OTc0LDMuMDY4OTE1MzQgNi40NjAyNjA3NywzLjY4MjU5NjM3IEwxNC43Nzc2NjQ0LDEyIEw2LjQ2MDI2MDc3LDIwLjMxNzQwMzYgWiIgLz4KICA8L2c+Cjwvc3ZnPgo=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.c-select::-ms-expand,.wizard-select::-ms-expand{display:none}.o-field{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.o-field-inline{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.o-field-inline{flex-direction:column;margin-left:0}}.c-double-field{width:100%}.c-double-field--with-button{box-sizing:border-box;position:relative;padding-right:2.5rem}.c-double-field-label{min-height:2.5rem}.c-double-field-button{position:absolute;right:-2.5rem;top:.625rem}.c-double-field-wrapper{display:inline-flex;width:100%;margin-bottom:.5rem}@media (max-width:48rem){.c-double-field-wrapper{flex-direction:column}}.c-double-field-input{box-sizing:border-box;flex:1 1 70%}.c-double-field-input + .c-double-field-input{flex:1 1 auto}[data-input=radio] label::before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked + label::before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label::before,[data-input=checkbox] label::after{border-radius:.125rem}[data-input=checkbox] label::before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label::before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain}[data-input=checkbox][aria-checked='mixed'] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked + label::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked + label::after{opacity:1;-webkit-transform:scale(1);transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked) + label::after{opacity:0;-webkit-transform:scale(0);transform:scale(0)}.wizard-wrapper{display:flex;flex-flow:column nowrap;align-items:stretch}.wizard-main{background:linear-gradient(#fff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,0.25) 0,rgba(214,216,218,0.25) 25%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 100%),linear-gradient(rgba(255,255,255,0) 0,rgba(255,255,255,0) 74%,rgba(214,216,218,0.25) 75%,rgba(214,216,218,0.25) 100%) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.wizard-header,.wizard-footer{flex:0 0 auto}.o-layout,.o-layout-2panes{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.o-layout main,.o-layout-2panes main{display:flex;flex-direction:column;flex:0 0 auto}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.o-layout,.o-layout-2panes{display:block}.o-layout main,.o-layout-2panes main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{display:block;overflow:visible}.o-layout:before,.o-layout-2panes:before,.o-layout:after,.o-layout-2panes:after{content:'';display:block}.o-layout:before,.o-layout-2panes:before{height:3rem}.o-layout:after,.o-layout-2panes:after{height:3rem}}.o-layout-2panes{flex:0 0 100%;align-items:stretch}.o-layout-2panes > aside{display:flex;flex-direction:column;flex:0 0 auto}.o-layout-2panes main,.o-layout-2panes main > [role=contentinfo],.o-layout-2panes main > [role=main]{height:auto}@media (max-width:63.938rem){.o-layout-2panes > aside{position:fixed;bottom:0;left:0;display:block;z-index:20;width:100%}}.u-media{display:flex;align-items:center}.u-media-top{align-items:flex-start}.u-media-bottom{align-items:flex-end}.u-media-grow{flex:1 1 auto;overflow:hidden}.u-media-fixed{line-height:0;flex:0 0 auto}:root{--sidebarHeight:3rem}.o-sidebar{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.o-sidebar{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.c-avatar{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:1}.c-avatar svg{width:50%;height:50%}.c-avatar-image{width:100%}.u-card{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.c-chip{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.c-chip--round{width:2.5rem;text-align:center;justify-content:center}.c-chip--tinySize{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.c-chip--smallSize{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.c-chip--normalSize{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.c-chip--outlinedVariant{border:1px solid}.c-chip--dashedVariant{border:1px dashed}.c-chip--normalTheme{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.c-chip--primaryTheme{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.c-chip--errorTheme{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.c-chip--hoverableNormalTheme{color:var(--charcoalGrey)}.c-chip--hoverableNormalTheme:hover,.c-chip--hoverableNormalTheme:focus{background-color:var(--silver)}.c-chip--hoverablePrimaryTheme:hover,.c-chip--hoverablePrimaryTheme:focus{background-color:var(--primaryBackgroundLight)}.c-chip--normalPrimaryTheme{background-color:var(--primaryColor);color:var(--white)}.c-chip--hoverableErrorTheme:hover,.c-chip--hoverableErrorTheme:focus{background-color:var(--errorColorLight)}.c-chip--outlinedNormalTheme{background-color:transparent}.c-chip--clickable{cursor:pointer}.c-chip-separator{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.c-chip-button{cursor:pointer;color:var(--slateGrey)}.c-chip-button--disabled{color:var(--coolGrey)}.c-avatar{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize) / 2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.c-avatar--xsmall{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:calc(1rem / 2.28)}.c-avatar--small{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:calc(2rem / 2.28)}.c-avatar--large{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:calc(3rem / 2.28)}.c-avatar--xlarge{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:calc(4rem / 2.28)}.c-avatar-initials{font-weight:bold;line-height:1}.c-nav{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.c-nav{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.c-nav-item{position:relative;z-index:0;height:3rem;box-sizing:border-box;cursor:pointer}.c-nav-item:hover::before{content:'';position:absolute;z-index:-1;border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item:hover::before{content:none}}@media (max-width:63.938rem){.c-nav-item{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.c-nav-item:hover::before{content:none}}.c-nav-icon{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.c-nav-icon svg{display:block}.is-active .c-nav-icon{color:var(--primaryColor)}:hover > .c-nav-icon{color:var(--navTextColor)}@media (max-width:63.938rem){.c-nav-icon{display:block;margin-right:0}.c-nav-icon svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.c-nav-text{display:block;text-align:center;white-space:nowrap}}.c-nav-link{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem center}.c-nav-link:visited{color:var(--navTextColor)}.c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-link.is-active{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:bold;color:var(--navTextActiveColor)}.c-nav-link.is-active .c-nav-icon{color:var(--primaryColor)}@media (max-width:63.938rem){.c-nav-link{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:center top;background-size:1.5rem}.c-nav-link.is-active,.c-nav-link:hover{box-shadow:none;font-weight:normal}}@media not all and (pointer:fine){.c-nav-link:hover:not(.is-active){color:var(--navTextColor)}}.c-nav-item-secondary{height:auto}.c-nav-item-secondary + .c-nav-item-secondary{margin-top:.125rem}@media (max-width:63.938rem){.c-nav-item-secondary{display:none}}.c-nav-item-secondary:hover::before{content:'';position:absolute;z-index:-1;border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item-secondary:hover::before{content:none}}.c-nav-item-secondary .c-nav-link{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.c-nav-item-secondary .c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-item-secondary .c-nav-link.is-active{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.c-table-divider{background-color:var(--paleGrey);height:2rem;display:flex;align-items:center;text-indent:2rem;font-weight:bold;font-size:.75rem;line-height:1.33;color:var(--coolGrey);text-transform:uppercase}.c-table-divider + .c-table-divider{border-top:0}@media (max-width:48rem){.c-table-divider{text-indent:1rem}}div.c-table{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.c-table-head{flex:0 0 2rem}@media (max-width:48rem){.c-table-head{display:none}}.c-table-body{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.c-table-body{max-height:100%}}.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:var(--actionColorHover)}@media (hover:none){.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:transparent}}.c-table-row:last-child,.c-table-row-head:last-child,table.c-table tr:last-child,table.c-table thead tr:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{max-width:100vw}}.c-table-row-head,table.c-table thead tr{border:0}.c-table-row-head:hover,table.c-table thead tr:hover{background-color:transparent}.c-table-row-head:last-child,table.c-table thead tr:last-child{border-bottom:0}.c-table-row.is-selected,table.c-table tr.is-selected,.c-table-row.is-selected:hover,table.c-table tr.is-selected:hover{background-color:var(--zircon)}.c-table-cell,.c-table-header,table.c-table th,table.c-table td{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.c-table-header,table.c-table th{padding:.5rem 1rem;font-size:.75rem;font-weight:bold;text-transform:uppercase}.c-table-cell--primary,.c-table-ellipsis,table.c-table td.c-table-cell--primary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-table-cell--primary,table.c-table td.c-table-cell--primary{font-size:1rem;line-height:1.15;color:var(--charcoalGrey)}@media (max-width:48rem){.c-table-cell--primary,table.c-table td.c-table-cell--primary{flex:1 1 auto}}.c-table-divider{position:sticky;z-index:1;top:0}table.c-table{width:100%;border:0;text-align:left;color:var(--secondaryTextColor);border-collapse:collapse}table.c-table tr{display:table-row}table.c-table thead tr{display:table-row}table.c-table tr.c-table-divider{border:0;width:auto;height:auto;background-color:var(--zircon)}table.c-table tr.c-table-divider::before{content:none}table.c-table tr.c-table-divider td{font-weight:bold;color:var(--secondaryTextColor);padding:0;font-size:.75rem;line-height:1.33}table.c-table tr.c-table-divider + *{border-top:0}table.c-table td.c-table-ellipsis{position:relative}table.c-table td.c-table-ellipsis > div{box-sizing:border-box;position:absolute;top:.875rem;right:1rem;bottom:.875rem;left:1rem;display:block;width:calc(100% - rem(32))}table.c-table td.c-table-ellipsis > div > div{box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wizard{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard{flex-direction:column;justify-content:flex-start}}.wizard--waiting{color:var(--white);background-color:var(--primaryColor)}.wizard--scroll{position:absolute;padding-top:3.5rem}@media (max-width:63.938rem){.wizard--scroll{box-sizing:border-box}}@media (max-width:30rem),(max-height:23.438rem){.wizard--scroll{padding-top:0}}.wizard--dual{position:static;width:100%}.wizard-wrapper{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper{justify-content:flex-start}}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper--center{justify-content:center}}.wizard-wrapper--bleed{align-items:center;max-width:100%}.wizard-wrapper--dual{display:flex;flex-direction:column;align-items:center;height:100vh}@media (max-height:38rem){.wizard-wrapper--dual{min-height:100vh;height:auto}}.wizard-dual{flex:1 1 50%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.wizard-dual:first-child{justify-content:flex-end;color:var(--white);background-color:var(--primaryColor)}.wizard-errors{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.wizard-errors p{margin:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-errors{margin-top:.5rem}}.wizard-header{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-width:30rem),(max-height:23.438rem){.wizard-header{margin:1rem 0 0}}.wizard-dual .wizard-header{margin-bottom:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-header{margin-bottom:1.5rem}}.wizard-main{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.wizard-main > *{flex-shrink:0}.wizard-footer{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem;padding-bottom:env(safe-area-inset-bottom)}.wizard-footer > button,.wizard-footer > a:link{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-footer{margin:1.5rem 0 .5rem}}.wizard--welcome .wizard-footer{justify-content:space-between}@media (min-width:30.063rem){.wizard--welcome .wizard-footer > button,.wizard--welcome .wizard-footer > a:link{flex:0 1 calc(50% - 0.25rem)}}.wizard-dual .wizard-footer{margin-top:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-footer{margin-top:1.5rem;font-size:.875rem}}.wizard-logo{position:relative;margin:0 auto;width:7.5rem}.wizard-logo-img{width:100%;vertical-align:center}.wizard-logo-badge{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.wizard-header-help{order:-1;margin:0 0 .5rem;font-size:1.125rem;line-height:1.5;text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard-header-help{margin:.25rem 0 0;font-size:1rem}}.wizard-disclaimer{display:flex;margin:1.5rem 0 .5rem;flex-direction:row;align-items:flex-start;font-size:.938rem;line-height:1.33}.wizard-disclaimer span{flex:0 0 auto;margin-right:1rem;background-color:var(--grannyApple);padding:.5rem;border-radius:50%}.wizard-disclaimer svg{display:block;fill:var(--emerald)}.wizard-disclaimer strong{color:var(--emerald)}@media (max-width:30rem),(max-height:23.438rem){.wizard-disclaimer{display:none}}.wizard-desc{margin:2rem 0 0;line-height:1.5}.wizard-desc a{color:var(--primaryColor);text-decoration:none}.wizard-desc a:hover,.wizard-desc a:focus{color:var(--primaryColorDark)}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc{margin:1.5rem 0 0}}.wizard-desc--footer{margin:2rem 0}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc--footer{margin:1rem 0}}.wizard-header-fixed{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.wizard-previous{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.wizard-brand{margin-left:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-brand{display:none}}.wizard-brand--invert svg{-webkit-filter:brightness(0) invert(100%);filter:brightness(0) invert(100%)}.wizard-previous + .wizard-brand{position:relative;padding-left:1.5rem;margin-left:.5rem}.wizard-previous + .wizard-brand:before{content:'';position:absolute;left:0;top:50%;height:1.5rem;border-left:.063rem solid var(--dividerColor);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.wizard-next{padding-right:3rem;padding-left:3rem}.wizard-next svg{position:absolute;right:1rem}@media (min-width:30.063rem) and (min-height:23.5rem){.wizard-button{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (min-width:30.063rem){.wizard-buttonlink{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard-input{border-radius:.125rem;padding:.5rem 1rem .625rem}}.wizard-dual-btn{position:absolute;bottom:-2.437rem;left:1rem;right:1rem;margin:0;width:calc(100% - 2rem);font-size:.875rem}@media (min-width:30.063rem){.wizard-dual-btn{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5;bottom:-2rem;font-size:1rem}}.wizard-dual-btn:hover,.wizard-dual-btn:focus{background-color:var(--emerald);border-color:var(--emerald)}.wizard-waiting-icon,.wizard-dual-icon{margin:0 0 2rem;height:6.188rem}.wizard-waiting-icon svg,.wizard-dual-icon svg{display:block;margin:0 auto;height:100%;width:100%}@media (max-width:30rem),(max-height:23.438rem){.wizard-waiting-icon,.wizard-dual-icon{margin-bottom:1rem;height:3.438rem}}.wizard-dual-icon{margin:0 0 1rem;height:7.688rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-icon{height:5.125rem}}.wizard-title,.wizard-dual-title{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-width:30rem),(max-height:23.438rem){.wizard-title,.wizard-dual-title{font-size:1.125rem;line-height:1.78}}.wizard-dual-title{margin-bottom:1rem;font-size:2.5rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-title{margin-bottom:.5rem;font-size:1.5rem;line-height:1.3}}.wizard-title-sub{display:block;margin-top:.5rem;opacity:.64;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-title-sub{margin:0;font-size:1rem;line-height:1.5}}.wizard-subtitle,.wizard-dual-subtitle{margin:0;text-align:center;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-subtitle,.wizard-dual-subtitle{font-size:.875rem;line-height:1.15}}.wizard-dual-subtitle{font-size:1.25rem;line-height:1.4}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-subtitle{font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard--welcome .wizard-title{font-size:1.5rem;line-height:1.17}}.wizard-showbutton{position:absolute;right:0;top:.688rem;margin:0;border:0;padding:0;min-width:auto;background-color:transparent;color:var(--coolGrey)}.wizard-showbutton:hover,.wizard-showbutton:focus{background-color:inherit;color:var(--charcoalGrey)}.wizard-dualfield{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.wizard-dualfield--focus{border-color:var(--primaryColor)}.wizard-dualfield--error{border-color:var(--errorColor)}.wizard-dualfield-wrapper{flex:1 1 auto}.wizard-dualfield-input{border:0;padding-right:.5rem}.wizard-dualfield-input:hover,.wizard-dualfield-input:focus{position:relative;z-index:1;border:0;outline:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-dualfield-input{border-radius:.125rem;padding:.5rem 1rem .625rem;padding-right:.25rem}}.wizard-protocol{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.wizard-protocol svg{fill:currentColor;margin-right:.5rem}.wizard-domain{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;margin-right:1rem;max-width:8.75rem}.wizard-select{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.wizard-select:hover,.wizard-select:focus{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.wizard-select--medium{padding:.313rem 2.375rem .438rem .5rem}.wizard-requirements{order:2;margin-bottom:0;padding:0;list-style:disc inside;line-height:1.5;font-style:italic;color:var(--coolGrey)}.wizard-requirements span{display:inline-block;text-indent:.375rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-requirements{font-size:.875rem;margin-top:.5rem}.wizard-requirements span{text-indent:.125rem}}.wizard-agreements{display:flex;flex-direction:row;margin:0 auto;padding:0;list-style:none;max-width:64.5rem}@media (max-width:63.938rem){.wizard-agreements{flex-direction:column;margin:0 auto;max-width:32rem}}.wizard-agreements-item{position:relative;overflow:hidden;display:flex;flex-direction:column;flex:1 1 calc(100% / 6 - 0.5rem);margin:1rem .25rem 0;border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;color:var(--slateGrey)}@media (max-width:63.938rem){.wizard-agreements-item{flex-direction:row;flex:1 0 auto;margin:1rem 0 0;border:0;padding:0}.wizard-agreements-item:last-child p{border:0;margin:0}}.wizard-agreements-desc{min-height:2rem;font-size:.875rem;line-height:1.43}@media (max-width:63.938rem){.wizard-agreements-desc{flex:1 1 100%;border-bottom:.063rem solid var(--dividerColor);padding-bottom:1rem;font-size:1rem;line-height:1.5}}.wizard-agreements-icon{--bgcolor:var(--dodgerBlue);box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0 auto 1rem;width:3rem;height:3rem;border-radius:50%;padding:.75rem;background-color:var(--bgcolor)}.wizard-agreements-icon svg{display:block;width:100%;height:100%;fill:var(--white)}@media (max-width:63.938rem){.wizard-agreements-icon{margin:0 1.5rem 0 0;width:2rem;height:2rem;border-radius:50%;padding:.5rem}}.wizard-updated{position:absolute;right:-1.687rem;top:1.188rem;width:6.25rem;background-color:var(--primaryColor);text-transform:uppercase;color:var(--primaryContrastTextColor);-webkit-transform:rotate(-315deg);transform:rotate(-315deg);padding:.313rem;font-size:.625rem;line-height:1;font-weight:bold;text-align:center}.wizard-progress{position:relative;margin:.5rem auto 2rem;max-width:32rem;height:.375rem}.wizard-progress:before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;opacity:.24;border-radius:.188rem;background-color:var(--white)}@media (max-width:33.9375rem){.wizard-progress{margin:.5rem 1rem 1.5rem}}@media (max-height:23.4375rem){.wizard-progress{margin-bottom:1.5rem}}.wizard-progress-bar{position:relative;z-index:1;width:0;height:100%;background-color:var(--white);border-radius:.188rem;transition:width .5s ease-out}.wizard-notice{order:2;margin:2rem 0 0;line-height:1.5}.wizard-notice + .wizard-notice{margin-top:1rem}.wizard-notice p{margin:0}.wizard-notice a{color:var(--dodgerBlue);text-decoration:none;font-weight:bold}.wizard-notice a:hover,.wizard-notice a:focus{color:var(--scienceBlue)}@media (min-width:30.063rem){.wizard-notice{margin:2rem 0 0}}.wizard-notice--lost{font-size:1rem}.u-bg-black{background-color:var(--black) !important}.u-bg-charcoalGrey{background-color:var(--charcoalGrey) !important}.u-bg-coolGrey{background-color:var(--coolGrey) !important}.u-bg-silver{background-color:var(--silver) !important}.u-bg-slateGrey{background-color:var(--slateGrey) !important}.u-bg-lightishPurple{background-color:#b449e7 !important}.u-bg-dodgerBlue{background-color:#297ef2 !important}.u-bg-overlay{background-color:var(--overlay) !important}.u-bg-paleGrey{background-color:var(--paleGrey) !important}.u-bg-monza{background-color:#dd0505 !important}.u-bg-pomegranate{background-color:#f52d2d !important}.u-bg-primaryBackgroundLight{background-color:var(--primaryBackgroundLight) !important}.u-bg-primaryColor{background-color:var(--primaryColor) !important}.u-bg-primaryColorLight{background-color:var(--primaryColorLight) !important}.u-bg-primaryContrastTextColor{background-color:var(--primaryContrastTextColor) !important}.u-bg-error{background-color:var(--errorColor) !important}.u-bg-errorBackground{background-color:var(--errorBackground) !important}.u-bg-success{background-color:var(--successColor) !important}.u-bg-warning{background-color:var(--warningColor) !important}.u-bg-info{background-color:var(--infoColor) !important}.u-bg-weirdGreen{background-color:#40de8e !important}.u-bg-white{background-color:var(--white) !important}.u-bdrs-0{border-radius:0}.u-bdrs-1{border-radius:.125rem}.u-bdrs-2{border-radius:.188rem}.u-bdrs-3{border-radius:.25rem}.u-bdrs-4{border-radius:.5rem}.u-bdrs-circle{border-radius:100%}.u-bdw-0{border-width:0}.u-bdw-1{border-width:.125rem}@media (max-width:30rem){.u-bdrs-0-t{border-radius:0}.u-bdrs-1-t{border-radius:.125rem}.u-bdrs-2-t{border-radius:.188rem}.u-bdrs-3-t{border-radius:.25rem}.u-bdrs-4-t{border-radius:.5rem}.u-bdrs-circle-t{border-radius:100%}.u-bdw-0-t{border-width:0}.u-bdw-1-t{border-width:.125rem}}@media (max-width:48rem){.u-bdrs-0-s{border-radius:0}.u-bdrs-1-s{border-radius:.125rem}.u-bdrs-2-s{border-radius:.188rem}.u-bdrs-3-s{border-radius:.25rem}.u-bdrs-4-s{border-radius:.5rem}.u-bdrs-circle-s{border-radius:100%}.u-bdw-0-s{border-width:0}.u-bdw-1-s{border-width:.125rem}}@media (max-width:63.938rem){.u-bdrs-0-m{border-radius:0}.u-bdrs-1-m{border-radius:.125rem}.u-bdrs-2-m{border-radius:.188rem}.u-bdrs-3-m{border-radius:.25rem}.u-bdrs-4-m{border-radius:.5rem}.u-bdrs-circle-m{border-radius:100%}.u-bdw-0-m{border-width:0}.u-bdw-1-m{border-width:.125rem}}.u-bxz{box-sizing:border-box}.u-c-default{cursor:default}.u-c-help{cursor:help}.u-c-pointer{cursor:pointer}.u-c-wait{cursor:wait}.u-c-not-allowed{cursor:not-allowed}.u-debug{background:rgba(0,0,0,0.075);border:1px solid #f00}.u-debug .u-debug{border-color:#00f}.u-debug .u-debug .u-debug{border-color:#008000}.u-miw-1{min-width:1rem !important}.u-maw-1{max-width:1rem !important}.u-mih-1{min-height:1rem !important}.u-mah-1{max-height:1rem !important}.u-miw-2{min-width:2rem !important}.u-maw-2{max-width:2rem !important}.u-mih-2{min-height:2rem !important}.u-mah-2{max-height:2rem !important}.u-miw-3{min-width:4rem !important}.u-maw-3{max-width:4rem !important}.u-mih-3{min-height:4rem !important}.u-mah-3{max-height:4rem !important}.u-miw-4{min-width:8rem !important}.u-maw-4{max-width:8rem !important}.u-mih-4{min-height:8rem !important}.u-mah-4{max-height:8rem !important}.u-miw-5{min-width:16rem !important}.u-maw-5{max-width:16rem !important}.u-mih-5{min-height:16rem !important}.u-mah-5{max-height:16rem !important}.u-miw-6{min-width:32rem !important}.u-maw-6{max-width:32rem !important}.u-mih-6{min-height:32rem !important}.u-mah-6{max-height:32rem !important}.u-miw-7{min-width:48rem !important}.u-maw-7{max-width:48rem !important}.u-mih-7{min-height:48rem !important}.u-mah-7{max-height:48rem !important}.u-miw-8{min-width:64rem !important}.u-maw-8{max-width:64rem !important}.u-mih-8{min-height:64rem !important}.u-mah-8{max-height:64rem !important}.u-miw-9{min-width:96rem !important}.u-maw-9{max-width:96rem !important}.u-mih-9{min-height:96rem !important}.u-mah-9{max-height:96rem !important}.u-miw-100{min-width:100% !important}.u-maw-100{max-width:100% !important}.u-mih-100{min-height:100% !important}.u-mah-100{max-height:100% !important}.u-maw-none{max-width:none !important}.u-mah-none{max-height:none !important}.u-miw-auto{min-width:auto !important}.u-mih-auto{min-height:auto !important}.u-miw-half{min-width:.5rem !important}.u-maw-half{max-width:.5rem !important}.u-mih-half{min-height:.5rem !important}.u-mah-half{max-height:.5rem !important}.u-miw-1-half{min-width:1.5rem !important}.u-maw-1-half{max-width:1.5rem !important}.u-mih-1-half{min-height:1.5rem !important}.u-mah-1-half{max-height:1.5rem !important}.u-miw-2-half{min-width:2.5rem !important}.u-maw-2-half{max-width:2.5rem !important}.u-mih-2-half{min-height:2.5rem !important}.u-mah-2-half{max-height:2.5rem !important}@media (max-width:30rem){.u-miw-1-t{min-width:1rem !important}}@media (max-width:30rem){.u-maw-1-t{max-width:1rem !important}}@media (max-width:30rem){.u-mih-1-t{min-height:1rem !important}}@media (max-width:30rem){.u-mah-1-t{max-height:1rem !important}}@media (max-width:30rem){.u-miw-2-t{min-width:2rem !important}}@media (max-width:30rem){.u-maw-2-t{max-width:2rem !important}}@media (max-width:30rem){.u-mih-2-t{min-height:2rem !important}}@media (max-width:30rem){.u-mah-2-t{max-height:2rem !important}}@media (max-width:30rem){.u-miw-3-t{min-width:4rem !important}}@media (max-width:30rem){.u-maw-3-t{max-width:4rem !important}}@media (max-width:30rem){.u-mih-3-t{min-height:4rem !important}}@media (max-width:30rem){.u-mah-3-t{max-height:4rem !important}}@media (max-width:30rem){.u-miw-4-t{min-width:8rem !important}}@media (max-width:30rem){.u-maw-4-t{max-width:8rem !important}}@media (max-width:30rem){.u-mih-4-t{min-height:8rem !important}}@media (max-width:30rem){.u-mah-4-t{max-height:8rem !important}}@media (max-width:30rem){.u-miw-5-t{min-width:16rem !important}}@media (max-width:30rem){.u-maw-5-t{max-width:16rem !important}}@media (max-width:30rem){.u-mih-5-t{min-height:16rem !important}}@media (max-width:30rem){.u-mah-5-t{max-height:16rem !important}}@media (max-width:30rem){.u-miw-6-t{min-width:32rem !important}}@media (max-width:30rem){.u-maw-6-t{max-width:32rem !important}}@media (max-width:30rem){.u-mih-6-t{min-height:32rem !important}}@media (max-width:30rem){.u-mah-6-t{max-height:32rem !important}}@media (max-width:30rem){.u-miw-7-t{min-width:48rem !important}}@media (max-width:30rem){.u-maw-7-t{max-width:48rem !important}}@media (max-width:30rem){.u-mih-7-t{min-height:48rem !important}}@media (max-width:30rem){.u-mah-7-t{max-height:48rem !important}}@media (max-width:30rem){.u-miw-8-t{min-width:64rem !important}}@media (max-width:30rem){.u-maw-8-t{max-width:64rem !important}}@media (max-width:30rem){.u-mih-8-t{min-height:64rem !important}}@media (max-width:30rem){.u-mah-8-t{max-height:64rem !important}}@media (max-width:30rem){.u-miw-9-t{min-width:96rem !important}}@media (max-width:30rem){.u-maw-9-t{max-width:96rem !important}}@media (max-width:30rem){.u-mih-9-t{min-height:96rem !important}}@media (max-width:30rem){.u-mah-9-t{max-height:96rem !important}}@media (max-width:30rem){.u-miw-100-t{min-width:100% !important}}@media (max-width:30rem){.u-maw-100-t{max-width:100% !important}}@media (max-width:30rem){.u-mih-100-t{min-height:100% !important}}@media (max-width:30rem){.u-mah-100-t{max-height:100% !important}}@media (max-width:30rem){.u-maw-none-t{max-width:none !important}}@media (max-width:30rem){.u-mah-none-t{max-height:none !important}}@media (max-width:30rem){.u-miw-auto-t{min-width:auto !important}}@media (max-width:30rem){.u-mih-auto-t{min-height:auto !important}}@media (max-width:30rem){.u-miw-half-t{min-width:.5rem !important}}@media (max-width:30rem){.u-maw-half-t{max-width:.5rem !important}}@media (max-width:30rem){.u-mih-half-t{min-height:.5rem !important}}@media (max-width:30rem){.u-mah-half-t{max-height:.5rem !important}}@media (max-width:30rem){.u-miw-1-half-t{min-width:1.5rem !important}}@media (max-width:30rem){.u-maw-1-half-t{max-width:1.5rem !important}}@media (max-width:30rem){.u-mih-1-half-t{min-height:1.5rem !important}}@media (max-width:30rem){.u-mah-1-half-t{max-height:1.5rem !important}}@media (max-width:30rem){.u-miw-2-half-t{min-width:2.5rem !important}}@media (max-width:30rem){.u-maw-2-half-t{max-width:2.5rem !important}}@media (max-width:30rem){.u-mih-2-half-t{min-height:2.5rem !important}}@media (max-width:30rem){.u-mah-2-half-t{max-height:2.5rem !important}}@media (max-width:48rem){.u-miw-1-s{min-width:1rem !important}}@media (max-width:48rem){.u-maw-1-s{max-width:1rem !important}}@media (max-width:48rem){.u-mih-1-s{min-height:1rem !important}}@media (max-width:48rem){.u-mah-1-s{max-height:1rem !important}}@media (max-width:48rem){.u-miw-2-s{min-width:2rem !important}}@media (max-width:48rem){.u-maw-2-s{max-width:2rem !important}}@media (max-width:48rem){.u-mih-2-s{min-height:2rem !important}}@media (max-width:48rem){.u-mah-2-s{max-height:2rem !important}}@media (max-width:48rem){.u-miw-3-s{min-width:4rem !important}}@media (max-width:48rem){.u-maw-3-s{max-width:4rem !important}}@media (max-width:48rem){.u-mih-3-s{min-height:4rem !important}}@media (max-width:48rem){.u-mah-3-s{max-height:4rem !important}}@media (max-width:48rem){.u-miw-4-s{min-width:8rem !important}}@media (max-width:48rem){.u-maw-4-s{max-width:8rem !important}}@media (max-width:48rem){.u-mih-4-s{min-height:8rem !important}}@media (max-width:48rem){.u-mah-4-s{max-height:8rem !important}}@media (max-width:48rem){.u-miw-5-s{min-width:16rem !important}}@media (max-width:48rem){.u-maw-5-s{max-width:16rem !important}}@media (max-width:48rem){.u-mih-5-s{min-height:16rem !important}}@media (max-width:48rem){.u-mah-5-s{max-height:16rem !important}}@media (max-width:48rem){.u-miw-6-s{min-width:32rem !important}}@media (max-width:48rem){.u-maw-6-s{max-width:32rem !important}}@media (max-width:48rem){.u-mih-6-s{min-height:32rem !important}}@media (max-width:48rem){.u-mah-6-s{max-height:32rem !important}}@media (max-width:48rem){.u-miw-7-s{min-width:48rem !important}}@media (max-width:48rem){.u-maw-7-s{max-width:48rem !important}}@media (max-width:48rem){.u-mih-7-s{min-height:48rem !important}}@media (max-width:48rem){.u-mah-7-s{max-height:48rem !important}}@media (max-width:48rem){.u-miw-8-s{min-width:64rem !important}}@media (max-width:48rem){.u-maw-8-s{max-width:64rem !important}}@media (max-width:48rem){.u-mih-8-s{min-height:64rem !important}}@media (max-width:48rem){.u-mah-8-s{max-height:64rem !important}}@media (max-width:48rem){.u-miw-9-s{min-width:96rem !important}}@media (max-width:48rem){.u-maw-9-s{max-width:96rem !important}}@media (max-width:48rem){.u-mih-9-s{min-height:96rem !important}}@media (max-width:48rem){.u-mah-9-s{max-height:96rem !important}}@media (max-width:48rem){.u-miw-100-s{min-width:100% !important}}@media (max-width:48rem){.u-maw-100-s{max-width:100% !important}}@media (max-width:48rem){.u-mih-100-s{min-height:100% !important}}@media (max-width:48rem){.u-mah-100-s{max-height:100% !important}}@media (max-width:48rem){.u-maw-none-s{max-width:none !important}}@media (max-width:48rem){.u-mah-none-s{max-height:none !important}}@media (max-width:48rem){.u-miw-auto-s{min-width:auto !important}}@media (max-width:48rem){.u-mih-auto-s{min-height:auto !important}}@media (max-width:48rem){.u-miw-half-s{min-width:.5rem !important}}@media (max-width:48rem){.u-maw-half-s{max-width:.5rem !important}}@media (max-width:48rem){.u-mih-half-s{min-height:.5rem !important}}@media (max-width:48rem){.u-mah-half-s{max-height:.5rem !important}}@media (max-width:48rem){.u-miw-1-half-s{min-width:1.5rem !important}}@media (max-width:48rem){.u-maw-1-half-s{max-width:1.5rem !important}}@media (max-width:48rem){.u-mih-1-half-s{min-height:1.5rem !important}}@media (max-width:48rem){.u-mah-1-half-s{max-height:1.5rem !important}}@media (max-width:48rem){.u-miw-2-half-s{min-width:2.5rem !important}}@media (max-width:48rem){.u-maw-2-half-s{max-width:2.5rem !important}}@media (max-width:48rem){.u-mih-2-half-s{min-height:2.5rem !important}}@media (max-width:48rem){.u-mah-2-half-s{max-height:2.5rem !important}}@media (max-width:63.938rem){.u-miw-1-m{min-width:1rem !important}}@media (max-width:63.938rem){.u-maw-1-m{max-width:1rem !important}}@media (max-width:63.938rem){.u-mih-1-m{min-height:1rem !important}}@media (max-width:63.938rem){.u-mah-1-m{max-height:1rem !important}}@media (max-width:63.938rem){.u-miw-2-m{min-width:2rem !important}}@media (max-width:63.938rem){.u-maw-2-m{max-width:2rem !important}}@media (max-width:63.938rem){.u-mih-2-m{min-height:2rem !important}}@media (max-width:63.938rem){.u-mah-2-m{max-height:2rem !important}}@media (max-width:63.938rem){.u-miw-3-m{min-width:4rem !important}}@media (max-width:63.938rem){.u-maw-3-m{max-width:4rem !important}}@media (max-width:63.938rem){.u-mih-3-m{min-height:4rem !important}}@media (max-width:63.938rem){.u-mah-3-m{max-height:4rem !important}}@media (max-width:63.938rem){.u-miw-4-m{min-width:8rem !important}}@media (max-width:63.938rem){.u-maw-4-m{max-width:8rem !important}}@media (max-width:63.938rem){.u-mih-4-m{min-height:8rem !important}}@media (max-width:63.938rem){.u-mah-4-m{max-height:8rem !important}}@media (max-width:63.938rem){.u-miw-5-m{min-width:16rem !important}}@media (max-width:63.938rem){.u-maw-5-m{max-width:16rem !important}}@media (max-width:63.938rem){.u-mih-5-m{min-height:16rem !important}}@media (max-width:63.938rem){.u-mah-5-m{max-height:16rem !important}}@media (max-width:63.938rem){.u-miw-6-m{min-width:32rem !important}}@media (max-width:63.938rem){.u-maw-6-m{max-width:32rem !important}}@media (max-width:63.938rem){.u-mih-6-m{min-height:32rem !important}}@media (max-width:63.938rem){.u-mah-6-m{max-height:32rem !important}}@media (max-width:63.938rem){.u-miw-7-m{min-width:48rem !important}}@media (max-width:63.938rem){.u-maw-7-m{max-width:48rem !important}}@media (max-width:63.938rem){.u-mih-7-m{min-height:48rem !important}}@media (max-width:63.938rem){.u-mah-7-m{max-height:48rem !important}}@media (max-width:63.938rem){.u-miw-8-m{min-width:64rem !important}}@media (max-width:63.938rem){.u-maw-8-m{max-width:64rem !important}}@media (max-width:63.938rem){.u-mih-8-m{min-height:64rem !important}}@media (max-width:63.938rem){.u-mah-8-m{max-height:64rem !important}}@media (max-width:63.938rem){.u-miw-9-m{min-width:96rem !important}}@media (max-width:63.938rem){.u-maw-9-m{max-width:96rem !important}}@media (max-width:63.938rem){.u-mih-9-m{min-height:96rem !important}}@media (max-width:63.938rem){.u-mah-9-m{max-height:96rem !important}}@media (max-width:63.938rem){.u-miw-100-m{min-width:100% !important}}@media (max-width:63.938rem){.u-maw-100-m{max-width:100% !important}}@media (max-width:63.938rem){.u-mih-100-m{min-height:100% !important}}@media (max-width:63.938rem){.u-mah-100-m{max-height:100% !important}}@media (max-width:63.938rem){.u-maw-none-m{max-width:none !important}}@media (max-width:63.938rem){.u-mah-none-m{max-height:none !important}}@media (max-width:63.938rem){.u-miw-auto-m{min-width:auto !important}}@media (max-width:63.938rem){.u-mih-auto-m{min-height:auto !important}}@media (max-width:63.938rem){.u-miw-half-m{min-width:.5rem !important}}@media (max-width:63.938rem){.u-maw-half-m{max-width:.5rem !important}}@media (max-width:63.938rem){.u-mih-half-m{min-height:.5rem !important}}@media (max-width:63.938rem){.u-mah-half-m{max-height:.5rem !important}}@media (max-width:63.938rem){.u-miw-1-half-m{min-width:1.5rem !important}}@media (max-width:63.938rem){.u-maw-1-half-m{max-width:1.5rem !important}}@media (max-width:63.938rem){.u-mih-1-half-m{min-height:1.5rem !important}}@media (max-width:63.938rem){.u-mah-1-half-m{max-height:1.5rem !important}}@media (max-width:63.938rem){.u-miw-2-half-m{min-width:2.5rem !important}}@media (max-width:63.938rem){.u-maw-2-half-m{max-width:2.5rem !important}}@media (max-width:63.938rem){.u-mih-2-half-m{min-height:2.5rem !important}}@media (max-width:63.938rem){.u-mah-2-half-m{max-height:2.5rem !important}}.u-w-1{width:1rem !important}.u-h-1{height:1rem !important}.u-w-2{width:2rem !important}.u-h-2{height:2rem !important}.u-w-3{width:4rem !important}.u-h-3{height:4rem !important}.u-w-4{width:8rem !important}.u-h-4{height:8rem !important}.u-w-5{width:16rem !important}.u-h-5{height:16rem !important}.u-w-6{width:32rem !important}.u-h-6{height:32rem !important}.u-w-7{width:48rem !important}.u-h-7{height:48rem !important}.u-w-8{width:64rem !important}.u-h-8{height:64rem !important}.u-w-9{width:96rem !important}.u-h-9{height:96rem !important}.u-w-100{width:100% !important}.u-h-100{height:100% !important}.u-w-auto{width:auto !important}.u-h-auto{height:auto !important}.u-w-half{width:.5rem !important}.u-h-half{height:.5rem !important}.u-w-1-half{width:1.5rem !important}.u-h-1-half{height:1.5rem !important}.u-w-2-half{width:2.5rem !important}.u-h-2-half{height:2.5rem !important}@media (max-width:30rem){.u-w-1-t{width:1rem !important}}@media (max-width:30rem){.u-h-1-t{height:1rem !important}}@media (max-width:30rem){.u-w-2-t{width:2rem !important}}@media (max-width:30rem){.u-h-2-t{height:2rem !important}}@media (max-width:30rem){.u-w-3-t{width:4rem !important}}@media (max-width:30rem){.u-h-3-t{height:4rem !important}}@media (max-width:30rem){.u-w-4-t{width:8rem !important}}@media (max-width:30rem){.u-h-4-t{height:8rem !important}}@media (max-width:30rem){.u-w-5-t{width:16rem !important}}@media (max-width:30rem){.u-h-5-t{height:16rem !important}}@media (max-width:30rem){.u-w-6-t{width:32rem !important}}@media (max-width:30rem){.u-h-6-t{height:32rem !important}}@media (max-width:30rem){.u-w-7-t{width:48rem !important}}@media (max-width:30rem){.u-h-7-t{height:48rem !important}}@media (max-width:30rem){.u-w-8-t{width:64rem !important}}@media (max-width:30rem){.u-h-8-t{height:64rem !important}}@media (max-width:30rem){.u-w-9-t{width:96rem !important}}@media (max-width:30rem){.u-h-9-t{height:96rem !important}}@media (max-width:30rem){.u-w-100-t{width:100% !important}}@media (max-width:30rem){.u-h-100-t{height:100% !important}}@media (max-width:30rem){.u-w-auto-t{width:auto !important}}@media (max-width:30rem){.u-h-auto-t{height:auto !important}}@media (max-width:30rem){.u-w-half-t{width:.5rem !important}}@media (max-width:30rem){.u-h-half-t{height:.5rem !important}}@media (max-width:30rem){.u-w-1-half-t{width:1.5rem !important}}@media (max-width:30rem){.u-h-1-half-t{height:1.5rem !important}}@media (max-width:30rem){.u-w-2-half-t{width:2.5rem !important}}@media (max-width:30rem){.u-h-2-half-t{height:2.5rem !important}}@media (max-width:48rem){.u-w-1-s{width:1rem !important}}@media (max-width:48rem){.u-h-1-s{height:1rem !important}}@media (max-width:48rem){.u-w-2-s{width:2rem !important}}@media (max-width:48rem){.u-h-2-s{height:2rem !important}}@media (max-width:48rem){.u-w-3-s{width:4rem !important}}@media (max-width:48rem){.u-h-3-s{height:4rem !important}}@media (max-width:48rem){.u-w-4-s{width:8rem !important}}@media (max-width:48rem){.u-h-4-s{height:8rem !important}}@media (max-width:48rem){.u-w-5-s{width:16rem !important}}@media (max-width:48rem){.u-h-5-s{height:16rem !important}}@media (max-width:48rem){.u-w-6-s{width:32rem !important}}@media (max-width:48rem){.u-h-6-s{height:32rem !important}}@media (max-width:48rem){.u-w-7-s{width:48rem !important}}@media (max-width:48rem){.u-h-7-s{height:48rem !important}}@media (max-width:48rem){.u-w-8-s{width:64rem !important}}@media (max-width:48rem){.u-h-8-s{height:64rem !important}}@media (max-width:48rem){.u-w-9-s{width:96rem !important}}@media (max-width:48rem){.u-h-9-s{height:96rem !important}}@media (max-width:48rem){.u-w-100-s{width:100% !important}}@media (max-width:48rem){.u-h-100-s{height:100% !important}}@media (max-width:48rem){.u-w-auto-s{width:auto !important}}@media (max-width:48rem){.u-h-auto-s{height:auto !important}}@media (max-width:48rem){.u-w-half-s{width:.5rem !important}}@media (max-width:48rem){.u-h-half-s{height:.5rem !important}}@media (max-width:48rem){.u-w-1-half-s{width:1.5rem !important}}@media (max-width:48rem){.u-h-1-half-s{height:1.5rem !important}}@media (max-width:48rem){.u-w-2-half-s{width:2.5rem !important}}@media (max-width:48rem){.u-h-2-half-s{height:2.5rem !important}}@media (max-width:63.938rem){.u-w-1-m{width:1rem !important}}@media (max-width:63.938rem){.u-h-1-m{height:1rem !important}}@media (max-width:63.938rem){.u-w-2-m{width:2rem !important}}@media (max-width:63.938rem){.u-h-2-m{height:2rem !important}}@media (max-width:63.938rem){.u-w-3-m{width:4rem !important}}@media (max-width:63.938rem){.u-h-3-m{height:4rem !important}}@media (max-width:63.938rem){.u-w-4-m{width:8rem !important}}@media (max-width:63.938rem){.u-h-4-m{height:8rem !important}}@media (max-width:63.938rem){.u-w-5-m{width:16rem !important}}@media (max-width:63.938rem){.u-h-5-m{height:16rem !important}}@media (max-width:63.938rem){.u-w-6-m{width:32rem !important}}@media (max-width:63.938rem){.u-h-6-m{height:32rem !important}}@media (max-width:63.938rem){.u-w-7-m{width:48rem !important}}@media (max-width:63.938rem){.u-h-7-m{height:48rem !important}}@media (max-width:63.938rem){.u-w-8-m{width:64rem !important}}@media (max-width:63.938rem){.u-h-8-m{height:64rem !important}}@media (max-width:63.938rem){.u-w-9-m{width:96rem !important}}@media (max-width:63.938rem){.u-h-9-m{height:96rem !important}}@media (max-width:63.938rem){.u-w-100-m{width:100% !important}}@media (max-width:63.938rem){.u-h-100-m{height:100% !important}}@media (max-width:63.938rem){.u-w-auto-m{width:auto !important}}@media (max-width:63.938rem){.u-h-auto-m{height:auto !important}}@media (max-width:63.938rem){.u-w-half-m{width:.5rem !important}}@media (max-width:63.938rem){.u-h-half-m{height:.5rem !important}}@media (max-width:63.938rem){.u-w-1-half-m{width:1.5rem !important}}@media (max-width:63.938rem){.u-h-1-half-m{height:1.5rem !important}}@media (max-width:63.938rem){.u-w-2-half-m{width:2.5rem !important}}@media (max-width:63.938rem){.u-h-2-half-m{height:2.5rem !important}}.u-shake{-webkit-animation-name:shake;animation-name:shake;-webkit-animation-duration:820ms;animation-duration:820ms;-webkit-animation-timing-function:cubic-bezier(.36,.07,.19,.97);animation-timing-function:cubic-bezier(.36,.07,.19,.97);-webkit-animation-fill-mode:both;animation-fill-mode:both}.u-filter-gray-100{-webkit-filter:grayscale(1);filter:grayscale(1)}.u-flex{display:flex}.u-inline-flex{display:inline-flex}.u-flex-none{flex:none}.u-flex-column{flex-direction:column}.u-flex-row{flex-direction:row}.u-flex-wrap{flex-wrap:wrap}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap-reverse{flex-wrap:wrap-reverse}.u-flex-column-reverse{flex-direction:column-reverse}.u-flex-row-reverse{flex-direction:row-reverse}.u-flex-auto{flex:1 1 auto}.u-flex-items-start{align-items:flex-start}.u-flex-items-end{align-items:flex-end}.u-flex-items-center{align-items:center}.u-flex-items-baseline{align-items:baseline}.u-flex-items-stretch{align-items:stretch}.u-flex-self-start{align-self:flex-start}.u-flex-self-end{align-self:flex-end}.u-flex-self-center{align-self:center}.u-flex-self-baseline{align-self:baseline}.u-flex-self-stretch{align-self:stretch}.u-flex-justify-start{justify-content:flex-start}.u-flex-justify-end{justify-content:flex-end}.u-flex-justify-center{justify-content:center}.u-flex-justify-between{justify-content:space-between}.u-flex-justify-around{justify-content:space-around}.u-flex-content-start{align-content:flex-start}.u-flex-content-end{align-content:flex-end}.u-flex-content-center{align-content:center}.u-flex-content-between{align-content:space-between}.u-flex-content-around{align-content:space-around}.u-flex-content-stretch{align-content:stretch}.u-flex-order-0{order:0}.u-flex-order-1{order:1}.u-flex-order-2{order:2}.u-flex-order-3{order:3}.u-flex-order-4{order:4}.u-flex-order-5{order:5}.u-flex-order-6{order:6}.u-flex-order-7{order:7}.u-flex-order-8{order:8}.u-flex-order-last{order:99999}.u-flex-grow-0{flex-grow:0}.u-flex-grow-1{flex-grow:1}.u-flex-shrink-0{flex-shrink:0}.u-flex-shrink-1{flex-shrink:1}@media (max-width:30rem){.u-flex-t{display:flex}.u-inline-flex-t{display:inline-flex}.u-flex-none-t{flex:none}.u-flex-column-t{flex-direction:column}.u-flex-row-t{flex-direction:row}.u-flex-wrap-t{flex-wrap:wrap}.u-flex-nowrap-t{flex-wrap:nowrap}.u-flex-wrap-reverse-t{flex-wrap:wrap-reverse}.u-flex-column-reverse-t{flex-direction:column-reverse}.u-flex-row-reverse-t{flex-direction:row-reverse}.u-flex-auto-t{flex:1 1 auto}.u-flex-items-start-t{align-items:flex-start}.u-flex-items-end-t{align-items:flex-end}.u-flex-items-center-t{align-items:center}.u-flex-items-baseline-t{align-items:baseline}.u-flex-items-stretch-t{align-items:stretch}.u-flex-self-start-t{align-self:flex-start}.u-flex-self-end-t{align-self:flex-end}.u-flex-self-center-t{align-self:center}.u-flex-self-baseline-t{align-self:baseline}.u-flex-self-stretch-t{align-self:stretch}.u-flex-justify-start-t{justify-content:flex-start}.u-flex-justify-end-t{justify-content:flex-end}.u-flex-justify-center-t{justify-content:center}.u-flex-justify-between-t{justify-content:space-between}.u-flex-justify-around-t{justify-content:space-around}.u-flex-content-start-t{align-content:flex-start}.u-flex-content-end-t{align-content:flex-end}.u-flex-content-center-t{align-content:center}.u-flex-content-between-t{align-content:space-between}.u-flex-content-around-t{align-content:space-around}.u-flex-content-stretch-t{align-content:stretch}.u-flex-order-0-t{order:0}.u-flex-order-1-t{order:1}.u-flex-order-2-t{order:2}.u-flex-order-3-t{order:3}.u-flex-order-4-t{order:4}.u-flex-order-5-t{order:5}.u-flex-order-6-t{order:6}.u-flex-order-7-t{order:7}.u-flex-order-8-t{order:8}.u-flex-order-last-t{order:99999}.u-flex-grow-0-t{flex-grow:0}.u-flex-grow-1-t{flex-grow:1}.u-flex-shrink-0-t{flex-shrink:0}.u-flex-shrink-1-t{flex-shrink:1}}@media (max-width:48rem){.u-flex-s{display:flex}.u-inline-flex-s{display:inline-flex}.u-flex-none-s{flex:none}.u-flex-column-s{flex-direction:column}.u-flex-row-s{flex-direction:row}.u-flex-wrap-s{flex-wrap:wrap}.u-flex-nowrap-s{flex-wrap:nowrap}.u-flex-wrap-reverse-s{flex-wrap:wrap-reverse}.u-flex-column-reverse-s{flex-direction:column-reverse}.u-flex-row-reverse-s{flex-direction:row-reverse}.u-flex-auto-s{flex:1 1 auto}.u-flex-items-start-s{align-items:flex-start}.u-flex-items-end-s{align-items:flex-end}.u-flex-items-center-s{align-items:center}.u-flex-items-baseline-s{align-items:baseline}.u-flex-items-stretch-s{align-items:stretch}.u-flex-self-start-s{align-self:flex-start}.u-flex-self-end-s{align-self:flex-end}.u-flex-self-center-s{align-self:center}.u-flex-self-baseline-s{align-self:baseline}.u-flex-self-stretch-s{align-self:stretch}.u-flex-justify-start-s{justify-content:flex-start}.u-flex-justify-end-s{justify-content:flex-end}.u-flex-justify-center-s{justify-content:center}.u-flex-justify-between-s{justify-content:space-between}.u-flex-justify-around-s{justify-content:space-around}.u-flex-content-start-s{align-content:flex-start}.u-flex-content-end-s{align-content:flex-end}.u-flex-content-center-s{align-content:center}.u-flex-content-between-s{align-content:space-between}.u-flex-content-around-s{align-content:space-around}.u-flex-content-stretch-s{align-content:stretch}.u-flex-order-0-s{order:0}.u-flex-order-1-s{order:1}.u-flex-order-2-s{order:2}.u-flex-order-3-s{order:3}.u-flex-order-4-s{order:4}.u-flex-order-5-s{order:5}.u-flex-order-6-s{order:6}.u-flex-order-7-s{order:7}.u-flex-order-8-s{order:8}.u-flex-order-last-s{order:99999}.u-flex-grow-0-s{flex-grow:0}.u-flex-grow-1-s{flex-grow:1}.u-flex-shrink-0-s{flex-shrink:0}.u-flex-shrink-1-s{flex-shrink:1}}@media (max-width:63.938rem){.u-flex-m{display:flex}.u-inline-flex-m{display:inline-flex}.u-flex-none-m{flex:none}.u-flex-column-m{flex-direction:column}.u-flex-row-m{flex-direction:row}.u-flex-wrap-m{flex-wrap:wrap}.u-flex-nowrap-m{flex-wrap:nowrap}.u-flex-wrap-reverse-m{flex-wrap:wrap-reverse}.u-flex-column-reverse-m{flex-direction:column-reverse}.u-flex-row-reverse-m{flex-direction:row-reverse}.u-flex-auto-m{flex:1 1 auto}.u-flex-items-start-m{align-items:flex-start}.u-flex-items-end-m{align-items:flex-end}.u-flex-items-center-m{align-items:center}.u-flex-items-baseline-m{align-items:baseline}.u-flex-items-stretch-m{align-items:stretch}.u-flex-self-start-m{align-self:flex-start}.u-flex-self-end-m{align-self:flex-end}.u-flex-self-center-m{align-self:center}.u-flex-self-baseline-m{align-self:baseline}.u-flex-self-stretch-m{align-self:stretch}.u-flex-justify-start-m{justify-content:flex-start}.u-flex-justify-end-m{justify-content:flex-end}.u-flex-justify-center-m{justify-content:center}.u-flex-justify-between-m{justify-content:space-between}.u-flex-justify-around-m{justify-content:space-around}.u-flex-content-start-m{align-content:flex-start}.u-flex-content-end-m{align-content:flex-end}.u-flex-content-center-m{align-content:center}.u-flex-content-between-m{align-content:space-between}.u-flex-content-around-m{align-content:space-around}.u-flex-content-stretch-m{align-content:stretch}.u-flex-order-0-m{order:0}.u-flex-order-1-m{order:1}.u-flex-order-2-m{order:2}.u-flex-order-3-m{order:3}.u-flex-order-4-m{order:4}.u-flex-order-5-m{order:5}.u-flex-order-6-m{order:6}.u-flex-order-7-m{order:7}.u-flex-order-8-m{order:8}.u-flex-order-last-m{order:99999}.u-flex-grow-0-m{flex-grow:0}.u-flex-grow-1-m{flex-grow:1}.u-flex-shrink-0-m{flex-shrink:0}.u-flex-shrink-1-m{flex-shrink:1}}.u-nolist{list-style-type:none}@media (max-width:30rem){.u-nolist-t{list-style-type:none}}@media (max-width:48rem){.u-nolist-s{list-style-type:none}}@media (max-width:63.938rem){.u-nolist-m{list-style-type:none}}.u-o-100{opacity:1}.u-o-90{opacity:.9}.u-o-80{opacity:.8}.u-o-70{opacity:.7}.u-o-60{opacity:.6}.u-o-50{opacity:.5}.u-o-40{opacity:.4}.u-o-30{opacity:.3}.u-o-20{opacity:.2}.u-o-10{opacity:.1}.u-o-05{opacity:.05}.u-o-025{opacity:.025}.u-o-0{opacity:0}.u-ov-visible{overflow:visible}.u-ov-hidden{overflow:hidden}.u-ov-scroll{overflow:scroll}.u-ov-auto{overflow:auto}.u-p-0{padding:0 !important}.u-pt-0{padding-top:0 !important}.u-pb-0{padding-bottom:0 !important}.u-pl-0{padding-left:0 !important}.u-pr-0{padding-right:0 !important}.u-pv-0{padding-top:0 !important;padding-bottom:0 !important}.u-ph-0{padding-left:0 !important;padding-right:0 !important}.u-p-1{padding:1rem !important}.u-pt-1{padding-top:1rem !important}.u-pb-1{padding-bottom:1rem !important}.u-pl-1{padding-left:1rem !important}.u-pr-1{padding-right:1rem !important}.u-pv-1{padding-top:1rem !important;padding-bottom:1rem !important}.u-ph-1{padding-left:1rem !important;padding-right:1rem !important}.u-p-2{padding:2rem !important}.u-pt-2{padding-top:2rem !important}.u-pb-2{padding-bottom:2rem !important}.u-pl-2{padding-left:2rem !important}.u-pr-2{padding-right:2rem !important}.u-pv-2{padding-top:2rem !important;padding-bottom:2rem !important}.u-ph-2{padding-left:2rem !important;padding-right:2rem !important}.u-p-3{padding:3rem !important}.u-pt-3{padding-top:3rem !important}.u-pb-3{padding-bottom:3rem !important}.u-pl-3{padding-left:3rem !important}.u-pr-3{padding-right:3rem !important}.u-pv-3{padding-top:3rem !important;padding-bottom:3rem !important}.u-ph-3{padding-left:3rem !important;padding-right:3rem !important}.u-p-auto{padding:auto !important}.u-pt-auto{padding-top:auto !important}.u-pb-auto{padding-bottom:auto !important}.u-pl-auto{padding-left:auto !important}.u-pr-auto{padding-right:auto !important}.u-pv-auto{padding-top:auto !important;padding-bottom:auto !important}.u-ph-auto{padding-left:auto !important;padding-right:auto !important}.u-p-half{padding:.5rem !important}.u-pt-half{padding-top:.5rem !important}.u-pb-half{padding-bottom:.5rem !important}.u-pl-half{padding-left:.5rem !important}.u-pr-half{padding-right:.5rem !important}.u-pv-half{padding-top:.5rem !important;padding-bottom:.5rem !important}.u-ph-half{padding-left:.5rem !important;padding-right:.5rem !important}.u-p-1-half{padding:1.5rem !important}.u-pt-1-half{padding-top:1.5rem !important}.u-pb-1-half{padding-bottom:1.5rem !important}.u-pl-1-half{padding-left:1.5rem !important}.u-pr-1-half{padding-right:1.5rem !important}.u-pv-1-half{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.u-ph-1-half{padding-left:1.5rem !important;padding-right:1.5rem !important}.u-p-2-half{padding:2.5rem !important}.u-pt-2-half{padding-top:2.5rem !important}.u-pb-2-half{padding-bottom:2.5rem !important}.u-pl-2-half{padding-left:2.5rem !important}.u-pr-2-half{padding-right:2.5rem !important}.u-pv-2-half{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.u-ph-2-half{padding-left:2.5rem !important;padding-right:2.5rem !important}.u-m-0{margin:0 !important}.u-mt-0{margin-top:0 !important}.u-mb-0{margin-bottom:0 !important}.u-ml-0{margin-left:0 !important}.u-mr-0{margin-right:0 !important}.u-mv-0{margin-top:0 !important;margin-bottom:0 !important}.u-mh-0{margin-left:0 !important;margin-right:0 !important}.u-m-1{margin:1rem !important}.u-mt-1{margin-top:1rem !important}.u-mb-1{margin-bottom:1rem !important}.u-ml-1{margin-left:1rem !important}.u-mr-1{margin-right:1rem !important}.u-mv-1{margin-top:1rem !important;margin-bottom:1rem !important}.u-mh-1{margin-left:1rem !important;margin-right:1rem !important}.u-m-2{margin:2rem !important}.u-mt-2{margin-top:2rem !important}.u-mb-2{margin-bottom:2rem !important}.u-ml-2{margin-left:2rem !important}.u-mr-2{margin-right:2rem !important}.u-mv-2{margin-top:2rem !important;margin-bottom:2rem !important}.u-mh-2{margin-left:2rem !important;margin-right:2rem !important}.u-m-3{margin:3rem !important}.u-mt-3{margin-top:3rem !important}.u-mb-3{margin-bottom:3rem !important}.u-ml-3{margin-left:3rem !important}.u-mr-3{margin-right:3rem !important}.u-mv-3{margin-top:3rem !important;margin-bottom:3rem !important}.u-mh-3{margin-left:3rem !important;margin-right:3rem !important}.u-m-auto{margin:auto !important}.u-mt-auto{margin-top:auto !important}.u-mb-auto{margin-bottom:auto !important}.u-ml-auto{margin-left:auto !important}.u-mr-auto{margin-right:auto !important}.u-mv-auto{margin-top:auto !important;margin-bottom:auto !important}.u-mh-auto{margin-left:auto !important;margin-right:auto !important}.u-m-half{margin:.5rem !important}.u-mt-half{margin-top:.5rem !important}.u-mb-half{margin-bottom:.5rem !important}.u-ml-half{margin-left:.5rem !important}.u-mr-half{margin-right:.5rem !important}.u-mv-half{margin-top:.5rem !important;margin-bottom:.5rem !important}.u-mh-half{margin-left:.5rem !important;margin-right:.5rem !important}.u-m-1-half{margin:1.5rem !important}.u-mt-1-half{margin-top:1.5rem !important}.u-mb-1-half{margin-bottom:1.5rem !important}.u-ml-1-half{margin-left:1.5rem !important}.u-mr-1-half{margin-right:1.5rem !important}.u-mv-1-half{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.u-mh-1-half{margin-left:1.5rem !important;margin-right:1.5rem !important}.u-m-2-half{margin:2.5rem !important}.u-mt-2-half{margin-top:2.5rem !important}.u-mb-2-half{margin-bottom:2.5rem !important}.u-ml-2-half{margin-left:2.5rem !important}.u-mr-2-half{margin-right:2.5rem !important}.u-mv-2-half{margin-top:2.5rem !important;margin-bottom:2.5rem !important}.u-mh-2-half{margin-left:2.5rem !important;margin-right:2.5rem !important}@media (max-width:30rem){.u-p-0-t{padding:0 !important}}@media (max-width:30rem){.u-pt-0-t{padding-top:0 !important}}@media (max-width:30rem){.u-pb-0-t{padding-bottom:0 !important}}@media (max-width:30rem){.u-pl-0-t{padding-left:0 !important}}@media (max-width:30rem){.u-pr-0-t{padding-right:0 !important}}@media (max-width:30rem){.u-pv-0-t{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:30rem){.u-ph-0-t{padding-left:0 !important;padding-right:0 !important}}@media (max-width:30rem){.u-p-1-t{padding:1rem !important}}@media (max-width:30rem){.u-pt-1-t{padding-top:1rem !important}}@media (max-width:30rem){.u-pb-1-t{padding-bottom:1rem !important}}@media (max-width:30rem){.u-pl-1-t{padding-left:1rem !important}}@media (max-width:30rem){.u-pr-1-t{padding-right:1rem !important}}@media (max-width:30rem){.u-pv-1-t{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:30rem){.u-ph-1-t{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:30rem){.u-p-2-t{padding:2rem !important}}@media (max-width:30rem){.u-pt-2-t{padding-top:2rem !important}}@media (max-width:30rem){.u-pb-2-t{padding-bottom:2rem !important}}@media (max-width:30rem){.u-pl-2-t{padding-left:2rem !important}}@media (max-width:30rem){.u-pr-2-t{padding-right:2rem !important}}@media (max-width:30rem){.u-pv-2-t{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:30rem){.u-ph-2-t{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:30rem){.u-p-3-t{padding:3rem !important}}@media (max-width:30rem){.u-pt-3-t{padding-top:3rem !important}}@media (max-width:30rem){.u-pb-3-t{padding-bottom:3rem !important}}@media (max-width:30rem){.u-pl-3-t{padding-left:3rem !important}}@media (max-width:30rem){.u-pr-3-t{padding-right:3rem !important}}@media (max-width:30rem){.u-pv-3-t{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:30rem){.u-ph-3-t{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:30rem){.u-p-auto-t{padding:auto !important}}@media (max-width:30rem){.u-pt-auto-t{padding-top:auto !important}}@media (max-width:30rem){.u-pb-auto-t{padding-bottom:auto !important}}@media (max-width:30rem){.u-pl-auto-t{padding-left:auto !important}}@media (max-width:30rem){.u-pr-auto-t{padding-right:auto !important}}@media (max-width:30rem){.u-pv-auto-t{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:30rem){.u-ph-auto-t{padding-left:auto !important;padding-right:auto !important}}@media (max-width:30rem){.u-p-half-t{padding:.5rem !important}}@media (max-width:30rem){.u-pt-half-t{padding-top:.5rem !important}}@media (max-width:30rem){.u-pb-half-t{padding-bottom:.5rem !important}}@media (max-width:30rem){.u-pl-half-t{padding-left:.5rem !important}}@media (max-width:30rem){.u-pr-half-t{padding-right:.5rem !important}}@media (max-width:30rem){.u-pv-half-t{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:30rem){.u-ph-half-t{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:30rem){.u-p-1-half-t{padding:1.5rem !important}}@media (max-width:30rem){.u-pt-1-half-t{padding-top:1.5rem !important}}@media (max-width:30rem){.u-pb-1-half-t{padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-pl-1-half-t{padding-left:1.5rem !important}}@media (max-width:30rem){.u-pr-1-half-t{padding-right:1.5rem !important}}@media (max-width:30rem){.u-pv-1-half-t{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-ph-1-half-t{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:30rem){.u-p-2-half-t{padding:2.5rem !important}}@media (max-width:30rem){.u-pt-2-half-t{padding-top:2.5rem !important}}@media (max-width:30rem){.u-pb-2-half-t{padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-pl-2-half-t{padding-left:2.5rem !important}}@media (max-width:30rem){.u-pr-2-half-t{padding-right:2.5rem !important}}@media (max-width:30rem){.u-pv-2-half-t{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-ph-2-half-t{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:30rem){.u-m-0-t{margin:0 !important}}@media (max-width:30rem){.u-mt-0-t{margin-top:0 !important}}@media (max-width:30rem){.u-mb-0-t{margin-bottom:0 !important}}@media (max-width:30rem){.u-ml-0-t{margin-left:0 !important}}@media (max-width:30rem){.u-mr-0-t{margin-right:0 !important}}@media (max-width:30rem){.u-mv-0-t{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:30rem){.u-mh-0-t{margin-left:0 !important;margin-right:0 !important}}@media (max-width:30rem){.u-m-1-t{margin:1rem !important}}@media (max-width:30rem){.u-mt-1-t{margin-top:1rem !important}}@media (max-width:30rem){.u-mb-1-t{margin-bottom:1rem !important}}@media (max-width:30rem){.u-ml-1-t{margin-left:1rem !important}}@media (max-width:30rem){.u-mr-1-t{margin-right:1rem !important}}@media (max-width:30rem){.u-mv-1-t{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:30rem){.u-mh-1-t{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:30rem){.u-m-2-t{margin:2rem !important}}@media (max-width:30rem){.u-mt-2-t{margin-top:2rem !important}}@media (max-width:30rem){.u-mb-2-t{margin-bottom:2rem !important}}@media (max-width:30rem){.u-ml-2-t{margin-left:2rem !important}}@media (max-width:30rem){.u-mr-2-t{margin-right:2rem !important}}@media (max-width:30rem){.u-mv-2-t{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:30rem){.u-mh-2-t{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:30rem){.u-m-3-t{margin:3rem !important}}@media (max-width:30rem){.u-mt-3-t{margin-top:3rem !important}}@media (max-width:30rem){.u-mb-3-t{margin-bottom:3rem !important}}@media (max-width:30rem){.u-ml-3-t{margin-left:3rem !important}}@media (max-width:30rem){.u-mr-3-t{margin-right:3rem !important}}@media (max-width:30rem){.u-mv-3-t{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:30rem){.u-mh-3-t{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:30rem){.u-m-auto-t{margin:auto !important}}@media (max-width:30rem){.u-mt-auto-t{margin-top:auto !important}}@media (max-width:30rem){.u-mb-auto-t{margin-bottom:auto !important}}@media (max-width:30rem){.u-ml-auto-t{margin-left:auto !important}}@media (max-width:30rem){.u-mr-auto-t{margin-right:auto !important}}@media (max-width:30rem){.u-mv-auto-t{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:30rem){.u-mh-auto-t{margin-left:auto !important;margin-right:auto !important}}@media (max-width:30rem){.u-m-half-t{margin:.5rem !important}}@media (max-width:30rem){.u-mt-half-t{margin-top:.5rem !important}}@media (max-width:30rem){.u-mb-half-t{margin-bottom:.5rem !important}}@media (max-width:30rem){.u-ml-half-t{margin-left:.5rem !important}}@media (max-width:30rem){.u-mr-half-t{margin-right:.5rem !important}}@media (max-width:30rem){.u-mv-half-t{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:30rem){.u-mh-half-t{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:30rem){.u-m-1-half-t{margin:1.5rem !important}}@media (max-width:30rem){.u-mt-1-half-t{margin-top:1.5rem !important}}@media (max-width:30rem){.u-mb-1-half-t{margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-ml-1-half-t{margin-left:1.5rem !important}}@media (max-width:30rem){.u-mr-1-half-t{margin-right:1.5rem !important}}@media (max-width:30rem){.u-mv-1-half-t{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-mh-1-half-t{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:30rem){.u-m-2-half-t{margin:2.5rem !important}}@media (max-width:30rem){.u-mt-2-half-t{margin-top:2.5rem !important}}@media (max-width:30rem){.u-mb-2-half-t{margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-ml-2-half-t{margin-left:2.5rem !important}}@media (max-width:30rem){.u-mr-2-half-t{margin-right:2.5rem !important}}@media (max-width:30rem){.u-mv-2-half-t{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-mh-2-half-t{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:48rem){.u-p-0-s{padding:0 !important}}@media (max-width:48rem){.u-pt-0-s{padding-top:0 !important}}@media (max-width:48rem){.u-pb-0-s{padding-bottom:0 !important}}@media (max-width:48rem){.u-pl-0-s{padding-left:0 !important}}@media (max-width:48rem){.u-pr-0-s{padding-right:0 !important}}@media (max-width:48rem){.u-pv-0-s{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:48rem){.u-ph-0-s{padding-left:0 !important;padding-right:0 !important}}@media (max-width:48rem){.u-p-1-s{padding:1rem !important}}@media (max-width:48rem){.u-pt-1-s{padding-top:1rem !important}}@media (max-width:48rem){.u-pb-1-s{padding-bottom:1rem !important}}@media (max-width:48rem){.u-pl-1-s{padding-left:1rem !important}}@media (max-width:48rem){.u-pr-1-s{padding-right:1rem !important}}@media (max-width:48rem){.u-pv-1-s{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:48rem){.u-ph-1-s{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:48rem){.u-p-2-s{padding:2rem !important}}@media (max-width:48rem){.u-pt-2-s{padding-top:2rem !important}}@media (max-width:48rem){.u-pb-2-s{padding-bottom:2rem !important}}@media (max-width:48rem){.u-pl-2-s{padding-left:2rem !important}}@media (max-width:48rem){.u-pr-2-s{padding-right:2rem !important}}@media (max-width:48rem){.u-pv-2-s{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:48rem){.u-ph-2-s{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:48rem){.u-p-3-s{padding:3rem !important}}@media (max-width:48rem){.u-pt-3-s{padding-top:3rem !important}}@media (max-width:48rem){.u-pb-3-s{padding-bottom:3rem !important}}@media (max-width:48rem){.u-pl-3-s{padding-left:3rem !important}}@media (max-width:48rem){.u-pr-3-s{padding-right:3rem !important}}@media (max-width:48rem){.u-pv-3-s{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:48rem){.u-ph-3-s{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:48rem){.u-p-auto-s{padding:auto !important}}@media (max-width:48rem){.u-pt-auto-s{padding-top:auto !important}}@media (max-width:48rem){.u-pb-auto-s{padding-bottom:auto !important}}@media (max-width:48rem){.u-pl-auto-s{padding-left:auto !important}}@media (max-width:48rem){.u-pr-auto-s{padding-right:auto !important}}@media (max-width:48rem){.u-pv-auto-s{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:48rem){.u-ph-auto-s{padding-left:auto !important;padding-right:auto !important}}@media (max-width:48rem){.u-p-half-s{padding:.5rem !important}}@media (max-width:48rem){.u-pt-half-s{padding-top:.5rem !important}}@media (max-width:48rem){.u-pb-half-s{padding-bottom:.5rem !important}}@media (max-width:48rem){.u-pl-half-s{padding-left:.5rem !important}}@media (max-width:48rem){.u-pr-half-s{padding-right:.5rem !important}}@media (max-width:48rem){.u-pv-half-s{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:48rem){.u-ph-half-s{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:48rem){.u-p-1-half-s{padding:1.5rem !important}}@media (max-width:48rem){.u-pt-1-half-s{padding-top:1.5rem !important}}@media (max-width:48rem){.u-pb-1-half-s{padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-pl-1-half-s{padding-left:1.5rem !important}}@media (max-width:48rem){.u-pr-1-half-s{padding-right:1.5rem !important}}@media (max-width:48rem){.u-pv-1-half-s{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-ph-1-half-s{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:48rem){.u-p-2-half-s{padding:2.5rem !important}}@media (max-width:48rem){.u-pt-2-half-s{padding-top:2.5rem !important}}@media (max-width:48rem){.u-pb-2-half-s{padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-pl-2-half-s{padding-left:2.5rem !important}}@media (max-width:48rem){.u-pr-2-half-s{padding-right:2.5rem !important}}@media (max-width:48rem){.u-pv-2-half-s{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-ph-2-half-s{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:48rem){.u-m-0-s{margin:0 !important}}@media (max-width:48rem){.u-mt-0-s{margin-top:0 !important}}@media (max-width:48rem){.u-mb-0-s{margin-bottom:0 !important}}@media (max-width:48rem){.u-ml-0-s{margin-left:0 !important}}@media (max-width:48rem){.u-mr-0-s{margin-right:0 !important}}@media (max-width:48rem){.u-mv-0-s{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:48rem){.u-mh-0-s{margin-left:0 !important;margin-right:0 !important}}@media (max-width:48rem){.u-m-1-s{margin:1rem !important}}@media (max-width:48rem){.u-mt-1-s{margin-top:1rem !important}}@media (max-width:48rem){.u-mb-1-s{margin-bottom:1rem !important}}@media (max-width:48rem){.u-ml-1-s{margin-left:1rem !important}}@media (max-width:48rem){.u-mr-1-s{margin-right:1rem !important}}@media (max-width:48rem){.u-mv-1-s{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:48rem){.u-mh-1-s{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:48rem){.u-m-2-s{margin:2rem !important}}@media (max-width:48rem){.u-mt-2-s{margin-top:2rem !important}}@media (max-width:48rem){.u-mb-2-s{margin-bottom:2rem !important}}@media (max-width:48rem){.u-ml-2-s{margin-left:2rem !important}}@media (max-width:48rem){.u-mr-2-s{margin-right:2rem !important}}@media (max-width:48rem){.u-mv-2-s{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:48rem){.u-mh-2-s{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:48rem){.u-m-3-s{margin:3rem !important}}@media (max-width:48rem){.u-mt-3-s{margin-top:3rem !important}}@media (max-width:48rem){.u-mb-3-s{margin-bottom:3rem !important}}@media (max-width:48rem){.u-ml-3-s{margin-left:3rem !important}}@media (max-width:48rem){.u-mr-3-s{margin-right:3rem !important}}@media (max-width:48rem){.u-mv-3-s{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:48rem){.u-mh-3-s{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:48rem){.u-m-auto-s{margin:auto !important}}@media (max-width:48rem){.u-mt-auto-s{margin-top:auto !important}}@media (max-width:48rem){.u-mb-auto-s{margin-bottom:auto !important}}@media (max-width:48rem){.u-ml-auto-s{margin-left:auto !important}}@media (max-width:48rem){.u-mr-auto-s{margin-right:auto !important}}@media (max-width:48rem){.u-mv-auto-s{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:48rem){.u-mh-auto-s{margin-left:auto !important;margin-right:auto !important}}@media (max-width:48rem){.u-m-half-s{margin:.5rem !important}}@media (max-width:48rem){.u-mt-half-s{margin-top:.5rem !important}}@media (max-width:48rem){.u-mb-half-s{margin-bottom:.5rem !important}}@media (max-width:48rem){.u-ml-half-s{margin-left:.5rem !important}}@media (max-width:48rem){.u-mr-half-s{margin-right:.5rem !important}}@media (max-width:48rem){.u-mv-half-s{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:48rem){.u-mh-half-s{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:48rem){.u-m-1-half-s{margin:1.5rem !important}}@media (max-width:48rem){.u-mt-1-half-s{margin-top:1.5rem !important}}@media (max-width:48rem){.u-mb-1-half-s{margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-ml-1-half-s{margin-left:1.5rem !important}}@media (max-width:48rem){.u-mr-1-half-s{margin-right:1.5rem !important}}@media (max-width:48rem){.u-mv-1-half-s{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-mh-1-half-s{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:48rem){.u-m-2-half-s{margin:2.5rem !important}}@media (max-width:48rem){.u-mt-2-half-s{margin-top:2.5rem !important}}@media (max-width:48rem){.u-mb-2-half-s{margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-ml-2-half-s{margin-left:2.5rem !important}}@media (max-width:48rem){.u-mr-2-half-s{margin-right:2.5rem !important}}@media (max-width:48rem){.u-mv-2-half-s{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-mh-2-half-s{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-p-0-m{padding:0 !important}}@media (max-width:63.938rem){.u-pt-0-m{padding-top:0 !important}}@media (max-width:63.938rem){.u-pb-0-m{padding-bottom:0 !important}}@media (max-width:63.938rem){.u-pl-0-m{padding-left:0 !important}}@media (max-width:63.938rem){.u-pr-0-m{padding-right:0 !important}}@media (max-width:63.938rem){.u-pv-0-m{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:63.938rem){.u-ph-0-m{padding-left:0 !important;padding-right:0 !important}}@media (max-width:63.938rem){.u-p-1-m{padding:1rem !important}}@media (max-width:63.938rem){.u-pt-1-m{padding-top:1rem !important}}@media (max-width:63.938rem){.u-pb-1-m{padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-pl-1-m{padding-left:1rem !important}}@media (max-width:63.938rem){.u-pr-1-m{padding-right:1rem !important}}@media (max-width:63.938rem){.u-pv-1-m{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-ph-1-m{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:63.938rem){.u-p-2-m{padding:2rem !important}}@media (max-width:63.938rem){.u-pt-2-m{padding-top:2rem !important}}@media (max-width:63.938rem){.u-pb-2-m{padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-pl-2-m{padding-left:2rem !important}}@media (max-width:63.938rem){.u-pr-2-m{padding-right:2rem !important}}@media (max-width:63.938rem){.u-pv-2-m{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-ph-2-m{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:63.938rem){.u-p-3-m{padding:3rem !important}}@media (max-width:63.938rem){.u-pt-3-m{padding-top:3rem !important}}@media (max-width:63.938rem){.u-pb-3-m{padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-pl-3-m{padding-left:3rem !important}}@media (max-width:63.938rem){.u-pr-3-m{padding-right:3rem !important}}@media (max-width:63.938rem){.u-pv-3-m{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-ph-3-m{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:63.938rem){.u-p-auto-m{padding:auto !important}}@media (max-width:63.938rem){.u-pt-auto-m{padding-top:auto !important}}@media (max-width:63.938rem){.u-pb-auto-m{padding-bottom:auto !important}}@media (max-width:63.938rem){.u-pl-auto-m{padding-left:auto !important}}@media (max-width:63.938rem){.u-pr-auto-m{padding-right:auto !important}}@media (max-width:63.938rem){.u-pv-auto-m{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:63.938rem){.u-ph-auto-m{padding-left:auto !important;padding-right:auto !important}}@media (max-width:63.938rem){.u-p-half-m{padding:.5rem !important}}@media (max-width:63.938rem){.u-pt-half-m{padding-top:.5rem !important}}@media (max-width:63.938rem){.u-pb-half-m{padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-pl-half-m{padding-left:.5rem !important}}@media (max-width:63.938rem){.u-pr-half-m{padding-right:.5rem !important}}@media (max-width:63.938rem){.u-pv-half-m{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ph-half-m{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:63.938rem){.u-p-1-half-m{padding:1.5rem !important}}@media (max-width:63.938rem){.u-pt-1-half-m{padding-top:1.5rem !important}}@media (max-width:63.938rem){.u-pb-1-half-m{padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-pl-1-half-m{padding-left:1.5rem !important}}@media (max-width:63.938rem){.u-pr-1-half-m{padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-pv-1-half-m{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ph-1-half-m{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-p-2-half-m{padding:2.5rem !important}}@media (max-width:63.938rem){.u-pt-2-half-m{padding-top:2.5rem !important}}@media (max-width:63.938rem){.u-pb-2-half-m{padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-pl-2-half-m{padding-left:2.5rem !important}}@media (max-width:63.938rem){.u-pr-2-half-m{padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-pv-2-half-m{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ph-2-half-m{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-m-0-m{margin:0 !important}}@media (max-width:63.938rem){.u-mt-0-m{margin-top:0 !important}}@media (max-width:63.938rem){.u-mb-0-m{margin-bottom:0 !important}}@media (max-width:63.938rem){.u-ml-0-m{margin-left:0 !important}}@media (max-width:63.938rem){.u-mr-0-m{margin-right:0 !important}}@media (max-width:63.938rem){.u-mv-0-m{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:63.938rem){.u-mh-0-m{margin-left:0 !important;margin-right:0 !important}}@media (max-width:63.938rem){.u-m-1-m{margin:1rem !important}}@media (max-width:63.938rem){.u-mt-1-m{margin-top:1rem !important}}@media (max-width:63.938rem){.u-mb-1-m{margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-ml-1-m{margin-left:1rem !important}}@media (max-width:63.938rem){.u-mr-1-m{margin-right:1rem !important}}@media (max-width:63.938rem){.u-mv-1-m{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-mh-1-m{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:63.938rem){.u-m-2-m{margin:2rem !important}}@media (max-width:63.938rem){.u-mt-2-m{margin-top:2rem !important}}@media (max-width:63.938rem){.u-mb-2-m{margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-ml-2-m{margin-left:2rem !important}}@media (max-width:63.938rem){.u-mr-2-m{margin-right:2rem !important}}@media (max-width:63.938rem){.u-mv-2-m{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-mh-2-m{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:63.938rem){.u-m-3-m{margin:3rem !important}}@media (max-width:63.938rem){.u-mt-3-m{margin-top:3rem !important}}@media (max-width:63.938rem){.u-mb-3-m{margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-ml-3-m{margin-left:3rem !important}}@media (max-width:63.938rem){.u-mr-3-m{margin-right:3rem !important}}@media (max-width:63.938rem){.u-mv-3-m{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-mh-3-m{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:63.938rem){.u-m-auto-m{margin:auto !important}}@media (max-width:63.938rem){.u-mt-auto-m{margin-top:auto !important}}@media (max-width:63.938rem){.u-mb-auto-m{margin-bottom:auto !important}}@media (max-width:63.938rem){.u-ml-auto-m{margin-left:auto !important}}@media (max-width:63.938rem){.u-mr-auto-m{margin-right:auto !important}}@media (max-width:63.938rem){.u-mv-auto-m{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:63.938rem){.u-mh-auto-m{margin-left:auto !important;margin-right:auto !important}}@media (max-width:63.938rem){.u-m-half-m{margin:.5rem !important}}@media (max-width:63.938rem){.u-mt-half-m{margin-top:.5rem !important}}@media (max-width:63.938rem){.u-mb-half-m{margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ml-half-m{margin-left:.5rem !important}}@media (max-width:63.938rem){.u-mr-half-m{margin-right:.5rem !important}}@media (max-width:63.938rem){.u-mv-half-m{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-mh-half-m{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:63.938rem){.u-m-1-half-m{margin:1.5rem !important}}@media (max-width:63.938rem){.u-mt-1-half-m{margin-top:1.5rem !important}}@media (max-width:63.938rem){.u-mb-1-half-m{margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ml-1-half-m{margin-left:1.5rem !important}}@media (max-width:63.938rem){.u-mr-1-half-m{margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-mv-1-half-m{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-mh-1-half-m{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-m-2-half-m{margin:2.5rem !important}}@media (max-width:63.938rem){.u-mt-2-half-m{margin-top:2.5rem !important}}@media (max-width:63.938rem){.u-mb-2-half-m{margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ml-2-half-m{margin-left:2.5rem !important}}@media (max-width:63.938rem){.u-mr-2-half-m{margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-mv-2-half-m{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-mh-2-half-m{margin-left:2.5rem !important;margin-right:2.5rem !important}}.u-pos-absolute{position:absolute}.u-pos-relative{position:relative}.u-pos-fixed{position:fixed}.u-pos-sticky{position:sticky}.u-pos-static{position:static}@media (max-width:30rem){.u-pos-absolute-t{position:absolute}.u-pos-relative-t{position:relative}.u-pos-fixed-t{position:fixed}.u-pos-sticky-t{position:sticky}.u-pos-static-t{position:static}}@media (max-width:48rem){.u-pos-absolute-s{position:absolute}.u-pos-relative-s{position:relative}.u-pos-fixed-s{position:fixed}.u-pos-sticky-s{position:sticky}.u-pos-static-s{position:static}}@media (max-width:63.938rem){.u-pos-absolute-m{position:absolute}.u-pos-relative-m{position:relative}.u-pos-fixed-m{position:fixed}.u-pos-sticky-m{position:sticky}.u-pos-static-m{position:static}}.u-top-m{top:1rem}.u-top-xs{top:.5rem}.u-top-s{top:.75rem}.u-top-l{top:1.5rem}.u-top-xl{top:2rem}.u-top-xxl{top:3rem}.u-top-0{top:0}.u-bottom-m{bottom:1rem}.u-bottom-xs{bottom:.5rem}.u-bottom-s{bottom:.75rem}.u-bottom-l{bottom:1.5rem}.u-bottom-xl{bottom:2rem}.u-bottom-xxl{bottom:3rem}.u-bottom-0{bottom:0}.u-left-m{left:1rem}.u-left-xs{left:.5rem}.u-left-s{left:.75rem}.u-left-l{left:1.5rem}.u-left-xl{left:2rem}.u-left-xxl{left:3rem}.u-left-0{left:0}.u-right-m{right:1rem}.u-right-xs{right:.5rem}.u-right-s{right:.75rem}.u-right-l{right:1.5rem}.u-right-xl{right:2rem}.u-right-xxl{right:3rem}.u-right-0{right:0}.u-stack-m > * + *{margin-top:1rem}.u-stack-xs > * + *{margin-top:.5rem}.u-stack-s > * + *{margin-top:.75rem}.u-stack-l > * + *{margin-top:1.5rem}.u-stack-xl > * + *{margin-top:2rem}.u-stack-xxl > * + *{margin-top:3rem}.u-row-m > * + *{margin-left:1rem}.u-row-xs > * + *{margin-left:.5rem}.u-row-s > * + *{margin-left:.75rem}.u-row-l > * + *{margin-left:1.5rem}.u-row-xl > * + *{margin-left:2rem}.u-row-xxl > * + *{margin-left:3rem}.u-title-h1,.u-title-h2,.u-title-h3,.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}.u-title-h1{font-size:1.5rem;letter-spacing:-.012rem}@media (max-width:48rem){.u-title-h1{font-size:1.25rem}}.u-title-h2{font-size:1.25rem}@media (max-width:48rem){.u-title-h2{font-size:1.125rem}}.u-title-h3{font-size:1.125rem}@media (max-width:48rem){.u-title-h3{font-size:1rem}}.u-title-h4{font-size:1rem}@media (max-width:48rem){.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}}.u-text{font-size:1rem;line-height:1.3;color:var(--primaryTextColor)}.u-caption{font-size:.75rem;line-height:1.2;color:var(--coolGrey)}.u-subtitle{font-size:.75rem;line-height:1.313}.u-uppercase{text-transform:uppercase}.u-lowercase{text-transform:lowercase}.u-subtitle{font-size:.75rem;text-transform:uppercase;font-weight:bold}.c-input-checkbox--svg span::after{display:none}.c-input-checkbox-icon{position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;padding:.125rem;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox input:not(:checked) + span .c-input-checkbox-icon{opacity:0;-webkit-transform:scale(0) translateY(-50%);transform:scale(0) translateY(-50%)}.c-input-checkbox input:checked + span .c-input-checkbox-icon{opacity:1;-webkit-transform:scale(1) translateY(-50%);transform:scale(1) translateY(-50%)}.c-avatar--text{color:#fff}.c-avatar--disabled.c-avatar--image{background-color:#fff !important}.c-avatar--disabled:not(.c-avatar--image){background-color:var(--silver) !important}.c-avatar--disabled .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.c-avatar--ghost{background-color:transparent !important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.c-avatar--ghost .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.wizard-agreements-item:nth-child(1) .wizard-agreements-icon{--bgcolor:var(--weirdGreen)}.wizard-agreements-item:nth-child(2) .wizard-agreements-icon{--bgcolor:var(--mango)}.wizard-agreements-item:nth-child(3) .wizard-agreements-icon{--bgcolor:var(--lightishPurple)}.wizard-agreements-item:nth-child(4) .wizard-agreements-icon{--bgcolor:var(--pomegranate)}.wizard-agreements-item:nth-child(5) .wizard-agreements-icon{--bgcolor:var(--azure)}.wizard-agreements-item:nth-child(6) .wizard-agreements-icon{--bgcolor:var(--brightSun)}", ""]); @@ -90779,89 +90019,6 @@ exports.isAccountWithTrigger = isAccountWithTrigger; /***/ }), -/***/ "VB9c": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return keys; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createBreakpoints; }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8cmQ"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("rZdQ"); - - -// Sorted ASC by size. That's important. -// It can't be configured as it's used statically for propTypes. -var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification. - -function createBreakpoints(breakpoints) { - var _breakpoints$values = breakpoints.values, - values = _breakpoints$values === void 0 ? { - xs: 0, - sm: 600, - md: 960, - lg: 1280, - xl: 1920 - } : _breakpoints$values, - _breakpoints$unit = breakpoints.unit, - unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit, - _breakpoints$step = breakpoints.step, - step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(breakpoints, ["values", "unit", "step"]); - - function up(key) { - var value = typeof values[key] === 'number' ? values[key] : key; - return "@media (min-width:".concat(value).concat(unit, ")"); - } - - function down(key) { - var endIndex = keys.indexOf(key) + 1; - var upperbound = values[keys[endIndex]]; - - if (endIndex === keys.length) { - // xl down applies to all sizes - return up('xs'); - } - - var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key; - return "@media (max-width:".concat(value - step / 100).concat(unit, ")"); - } - - function between(start, end) { - var endIndex = keys.indexOf(end); - - if (endIndex === keys.length - 1) { - return up(start); - } - - return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")"); - } - - function only(key) { - return between(key, key); - } - - var warnedOnce = false; - - function width(key) { - if (false) {} - - return values[key]; - } - - return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - keys: keys, - values: values, - up: up, - down: down, - between: between, - only: only, - width: width - }, other); -} - -/***/ }), - /***/ "VBgW": /***/ (function(module, exports, __webpack_require__) { @@ -91199,114 +90356,6 @@ function customOmitClone(value) { module.exports = customOmitClone; -/***/ }), - -/***/ "VLP0": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createTypography; }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8cmQ"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("rZdQ"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("rDuK"); - - - - -function round(value) { - return Math.round(value * 1e5) / 1e5; -} - -var warnedOnce = false; - -function roundWithDeprecationWarning(value) { - if (false) {} - - return round(value); -} - -var caseAllCaps = { - textTransform: 'uppercase' -}; -var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; -/** - * @see @link{https://material.io/design/typography/the-type-system.html} - * @see @link{https://material.io/design/typography/understanding-typography.html} - */ - -function createTypography(palette, typography) { - var _ref = typeof typography === 'function' ? typography(palette) : typography, - _ref$fontFamily = _ref.fontFamily, - fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, - _ref$fontSize = _ref.fontSize, - fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, - _ref$fontWeightLight = _ref.fontWeightLight, - fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, - _ref$fontWeightRegula = _ref.fontWeightRegular, - fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, - _ref$fontWeightMedium = _ref.fontWeightMedium, - fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, - _ref$fontWeightBold = _ref.fontWeightBold, - fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, - _ref$htmlFontSize = _ref.htmlFontSize, - htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, - allVariants = _ref.allVariants, - pxToRem2 = _ref.pxToRem, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]); - - if (false) {} - - var coef = fontSize / 14; - - var pxToRem = pxToRem2 || function (size) { - return "".concat(size / htmlFontSize * coef, "rem"); - }; - - var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) { - return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - fontFamily: fontFamily, - fontWeight: fontWeight, - fontSize: pxToRem(size), - // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ - lineHeight: lineHeight - }, fontFamily === defaultFontFamily ? { - letterSpacing: "".concat(round(letterSpacing / size), "em") - } : {}, casing, allVariants); - }; - - var variants = { - h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), - h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), - h3: buildVariant(fontWeightRegular, 48, 1.167, 0), - h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), - h5: buildVariant(fontWeightRegular, 24, 1.334, 0), - h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), - subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), - subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), - body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), - body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), - button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), - caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), - overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps) - }; - return Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["deepmerge"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - htmlFontSize: htmlFontSize, - pxToRem: pxToRem, - round: roundWithDeprecationWarning, - // TODO v5: remove - fontFamily: fontFamily, - fontSize: fontSize, - fontWeightLight: fontWeightLight, - fontWeightRegular: fontWeightRegular, - fontWeightMedium: fontWeightMedium, - fontWeightBold: fontWeightBold - }, variants), other, { - clone: false // No need to clone deep - - }); -} - /***/ }), /***/ "VNFE": @@ -95572,18 +94621,6 @@ __webpack_require__.r(__webpack_exports__); - -/***/ }), - -/***/ "Xv9V": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var shape = { - borderRadius: 4 -}; -/* harmony default export */ __webpack_exports__["default"] = (shape); /***/ }), @@ -100108,19 +99145,6 @@ var CardActionArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef /***/ }), -/***/ "Ztzc": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var common = { - black: '#000', - white: '#fff' -}; -/* harmony default export */ __webpack_exports__["default"] = (common); - -/***/ }), - /***/ "Zvb3": /***/ (function(module, exports) { @@ -105603,28 +104627,6 @@ var _useQueryAll = _interopRequireDefault(__webpack_require__("Mql4")); /***/ }), -/***/ "bDW+": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return capitalize; }); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("rDuK"); - -// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. -// -// A strict capitalization should uppercase the first letter of each word a the sentence. -// We only handle the first word. -function capitalize(string) { - if (typeof string !== 'string') { - throw new Error( false ? undefined : Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__["formatMuiErrorMessage"])(7)); - } - - return string.charAt(0).toUpperCase() + string.slice(1); -} - -/***/ }), - /***/ "bG6h": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -107699,31 +106701,6 @@ var amber = { /***/ }), -/***/ "cESx": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var pink = { - 50: '#fce4ec', - 100: '#f8bbd0', - 200: '#f48fb1', - 300: '#f06292', - 400: '#ec407a', - 500: '#e91e63', - 600: '#d81b60', - 700: '#c2185b', - 800: '#ad1457', - 900: '#880e4f', - A100: '#ff80ab', - A200: '#ff4081', - A400: '#f50057', - A700: '#c51162' -}; -/* harmony default export */ __webpack_exports__["default"] = (pink); - -/***/ }), - /***/ "cEgd": /***/ (function(module, exports, __webpack_require__) { @@ -111805,173 +110782,6 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/***/ "eGNd": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "teardown", function() { return teardown; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useIsFocusVisible; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Y/FK"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__); -// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js - - -var hadKeyboardEvent = true; -var hadFocusVisibleRecently = false; -var hadFocusVisibleRecentlyTimeout = null; -var inputTypesWhitelist = { - text: true, - search: true, - url: true, - tel: true, - email: true, - password: true, - number: true, - date: true, - month: true, - week: true, - time: true, - datetime: true, - 'datetime-local': true -}; -/** - * Computes whether the given element should automatically trigger the - * `focus-visible` class being added, i.e. whether it should always match - * `:focus-visible` when focused. - * @param {Element} node - * @return {boolean} - */ - -function focusTriggersKeyboardModality(node) { - var type = node.type, - tagName = node.tagName; - - if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) { - return true; - } - - if (tagName === 'TEXTAREA' && !node.readOnly) { - return true; - } - - if (node.isContentEditable) { - return true; - } - - return false; -} -/** - * Keep track of our keyboard modality state with `hadKeyboardEvent`. - * If the most recent user interaction was via the keyboard; - * and the key press did not include a meta, alt/option, or control key; - * then the modality is keyboard. Otherwise, the modality is not keyboard. - * @param {KeyboardEvent} event - */ - - -function handleKeyDown(event) { - if (event.metaKey || event.altKey || event.ctrlKey) { - return; - } - - hadKeyboardEvent = true; -} -/** - * If at any point a user clicks with a pointing device, ensure that we change - * the modality away from keyboard. - * This avoids the situation where a user presses a key on an already focused - * element, and then clicks on a different element, focusing it with a - * pointing device, while we still think we're in keyboard modality. - */ - - -function handlePointerDown() { - hadKeyboardEvent = false; -} - -function handleVisibilityChange() { - if (this.visibilityState === 'hidden') { - // If the tab becomes active again, the browser will handle calling focus - // on the element (Safari actually calls it twice). - // If this tab change caused a blur on an element with focus-visible, - // re-apply the class when the user switches back to the tab. - if (hadFocusVisibleRecently) { - hadKeyboardEvent = true; - } - } -} - -function prepare(doc) { - doc.addEventListener('keydown', handleKeyDown, true); - doc.addEventListener('mousedown', handlePointerDown, true); - doc.addEventListener('pointerdown', handlePointerDown, true); - doc.addEventListener('touchstart', handlePointerDown, true); - doc.addEventListener('visibilitychange', handleVisibilityChange, true); -} - -function teardown(doc) { - doc.removeEventListener('keydown', handleKeyDown, true); - doc.removeEventListener('mousedown', handlePointerDown, true); - doc.removeEventListener('pointerdown', handlePointerDown, true); - doc.removeEventListener('touchstart', handlePointerDown, true); - doc.removeEventListener('visibilitychange', handleVisibilityChange, true); -} - -function isFocusVisible(event) { - var target = event.target; - - try { - return target.matches(':focus-visible'); - } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError - // we use our own heuristic for those browsers - // rethrow might be better if it's not the expected error but do we really - // want to crash if focus-visible malfunctioned? - // no need for validFocusTarget check. the user does that by attaching it to - // focusable events only - - - return hadKeyboardEvent || focusTriggersKeyboardModality(target); -} -/** - * Should be called if a blur event is fired on a focus-visible element - */ - - -function handleBlurVisible() { - // To detect a tab/window switch, we look for a blur event followed - // rapidly by a visibility change. - // If we don't see a visibility change within 100ms, it's probably a - // regular focus change. - hadFocusVisibleRecently = true; - window.clearTimeout(hadFocusVisibleRecentlyTimeout); - hadFocusVisibleRecentlyTimeout = window.setTimeout(function () { - hadFocusVisibleRecently = false; - }, 100); -} - -function useIsFocusVisible() { - var ref = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (instance) { - var node = react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"](instance); - - if (node != null) { - prepare(node.ownerDocument); - } - }, []); - - if (false) {} - - return { - isFocusVisible: isFocusVisible, - onBlurVisible: handleBlurVisible, - ref: ref - }; -} - -/***/ }), - /***/ "eHS2": /***/ (function(module, exports, __webpack_require__) { @@ -112659,34 +111469,6 @@ module.exports = function (it) { }; -/***/ }), - -/***/ "etiA": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useEventCallback; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - -var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useEffect"]; -/** - * https://github.com/facebook/react/issues/14099#issuecomment-440013892 - * - * @param {function} fn - */ - -function useEventCallback(fn) { - var ref = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](fn); - useEnhancedEffect(function () { - ref.current = fn; - }); - return react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function () { - return (0, ref.current).apply(void 0, arguments); - }, []); -} - /***/ }), /***/ "euRm": @@ -113909,354 +112691,6 @@ var ExpansionPanel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef /***/ }), -/***/ "fQIz": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8cmQ"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("rZdQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ii0b"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Y/FK"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("vFJ3"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("rDuK"); -/* harmony import */ var _utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("2qv5"); -/* harmony import */ var _utils_useEventCallback__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("etiA"); -/* harmony import */ var _utils_deprecatedPropType__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("zLGW"); -/* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("Emy0"); -/* harmony import */ var _utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("eGNd"); -/* harmony import */ var _TouchRipple__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("O34s"); - - - - - - - - - - - - - -var styles = { - /* Styles applied to the root element. */ - root: { - display: 'inline-flex', - alignItems: 'center', - justifyContent: 'center', - position: 'relative', - WebkitTapHighlightColor: 'transparent', - backgroundColor: 'transparent', - // Reset default value - // We disable the focus ring for mouse, touch and keyboard users. - outline: 0, - border: 0, - margin: 0, - // Remove the margin in Safari - borderRadius: 0, - padding: 0, - // Remove the padding in Firefox - cursor: 'pointer', - userSelect: 'none', - verticalAlign: 'middle', - '-moz-appearance': 'none', - // Reset - '-webkit-appearance': 'none', - // Reset - textDecoration: 'none', - // So we take precedent over the style of a native <a /> element. - color: 'inherit', - '&::-moz-focus-inner': { - borderStyle: 'none' // Remove Firefox dotted outline. - - }, - '&$disabled': { - pointerEvents: 'none', - // Disable link interactions - cursor: 'default' - }, - '@media print': { - colorAdjust: 'exact' - } - }, - - /* Pseudo-class applied to the root element if `disabled={true}`. */ - disabled: {}, - - /* Pseudo-class applied to the root element if keyboard focused. */ - focusVisible: {} -}; -/** - * `ButtonBase` contains as few styles as possible. - * It aims to be a simple building block for creating a button. - * It contains a load of style reset and some focus/ripple logic. - */ - -var ButtonBase = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](function ButtonBase(props, ref) { - var action = props.action, - buttonRefProp = props.buttonRef, - _props$centerRipple = props.centerRipple, - centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, - children = props.children, - classes = props.classes, - className = props.className, - _props$component = props.component, - component = _props$component === void 0 ? 'button' : _props$component, - _props$disabled = props.disabled, - disabled = _props$disabled === void 0 ? false : _props$disabled, - _props$disableRipple = props.disableRipple, - disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, - _props$disableTouchRi = props.disableTouchRipple, - disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, - _props$focusRipple = props.focusRipple, - focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, - focusVisibleClassName = props.focusVisibleClassName, - onBlur = props.onBlur, - onClick = props.onClick, - onFocus = props.onFocus, - onFocusVisible = props.onFocusVisible, - onKeyDown = props.onKeyDown, - onKeyUp = props.onKeyUp, - onMouseDown = props.onMouseDown, - onMouseLeave = props.onMouseLeave, - onMouseUp = props.onMouseUp, - onTouchEnd = props.onTouchEnd, - onTouchMove = props.onTouchMove, - onTouchStart = props.onTouchStart, - onDragLeave = props.onDragLeave, - _props$tabIndex = props.tabIndex, - tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, - TouchRippleProps = props.TouchRippleProps, - _props$type = props.type, - type = _props$type === void 0 ? 'button' : _props$type, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["action", "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "onDragLeave", "tabIndex", "TouchRippleProps", "type"]); - - var buttonRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](null); - - function getButtonNode() { - // #StrictMode ready - return react_dom__WEBPACK_IMPORTED_MODULE_4__["findDOMNode"](buttonRef.current); - } - - var rippleRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](null); - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__["useState"](false), - focusVisible = _React$useState[0], - setFocusVisible = _React$useState[1]; - - if (disabled && focusVisible) { - setFocusVisible(false); - } - - var _useIsFocusVisible = Object(_utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_11__["default"])(), - isFocusVisible = _useIsFocusVisible.isFocusVisible, - onBlurVisible = _useIsFocusVisible.onBlurVisible, - focusVisibleRef = _useIsFocusVisible.ref; - - react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](action, function () { - return { - focusVisible: function focusVisible() { - setFocusVisible(true); - buttonRef.current.focus(); - } - }; - }, []); - react__WEBPACK_IMPORTED_MODULE_2__["useEffect"](function () { - if (focusVisible && focusRipple && !disableRipple) { - rippleRef.current.pulsate(); - } - }, [disableRipple, focusRipple, focusVisible]); - - function useRippleHandler(rippleAction, eventCallback) { - var skipRippleAction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : disableTouchRipple; - return Object(_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function (event) { - if (eventCallback) { - eventCallback(event); - } - - var ignore = skipRippleAction; - - if (!ignore && rippleRef.current) { - rippleRef.current[rippleAction](event); - } - - return true; - }); - } - - var handleMouseDown = useRippleHandler('start', onMouseDown); - var handleDragLeave = useRippleHandler('stop', onDragLeave); - var handleMouseUp = useRippleHandler('stop', onMouseUp); - var handleMouseLeave = useRippleHandler('stop', function (event) { - if (focusVisible) { - event.preventDefault(); - } - - if (onMouseLeave) { - onMouseLeave(event); - } - }); - var handleTouchStart = useRippleHandler('start', onTouchStart); - var handleTouchEnd = useRippleHandler('stop', onTouchEnd); - var handleTouchMove = useRippleHandler('stop', onTouchMove); - var handleBlur = useRippleHandler('stop', function (event) { - if (focusVisible) { - onBlurVisible(event); - setFocusVisible(false); - } - - if (onBlur) { - onBlur(event); - } - }, false); - var handleFocus = Object(_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function (event) { - // Fix for https://github.com/facebook/react/issues/7769 - if (!buttonRef.current) { - buttonRef.current = event.currentTarget; - } - - if (isFocusVisible(event)) { - setFocusVisible(true); - - if (onFocusVisible) { - onFocusVisible(event); - } - } - - if (onFocus) { - onFocus(event); - } - }); - - var isNonNativeButton = function isNonNativeButton() { - var button = getButtonNode(); - return component && component !== 'button' && !(button.tagName === 'A' && button.href); - }; - /** - * IE 11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat - */ - - - var keydownRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](false); - var handleKeyDown = Object(_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function (event) { - // Check if key is already down to avoid repeats being counted as multiple activations - if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') { - keydownRef.current = true; - event.persist(); - rippleRef.current.stop(event, function () { - rippleRef.current.start(event); - }); - } - - if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') { - event.preventDefault(); - } - - if (onKeyDown) { - onKeyDown(event); - } // Keyboard accessibility for non interactive elements - - - if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) { - event.preventDefault(); - - if (onClick) { - onClick(event); - } - } - }); - var handleKeyUp = Object(_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function (event) { - // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed - // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0 - if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) { - keydownRef.current = false; - event.persist(); - rippleRef.current.stop(event, function () { - rippleRef.current.pulsate(event); - }); - } - - if (onKeyUp) { - onKeyUp(event); - } // Keyboard accessibility for non interactive elements - - - if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) { - onClick(event); - } - }); - var ComponentProp = component; - - if (ComponentProp === 'button' && other.href) { - ComponentProp = 'a'; - } - - var buttonProps = {}; - - if (ComponentProp === 'button') { - buttonProps.type = type; - buttonProps.disabled = disabled; - } else { - if (ComponentProp !== 'a' || !other.href) { - buttonProps.role = 'button'; - } - - buttonProps['aria-disabled'] = disabled; - } - - var handleUserRef = Object(_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(buttonRefProp, ref); - var handleOwnRef = Object(_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(focusVisibleRef, buttonRef); - var handleRef = Object(_utils_useForkRef__WEBPACK_IMPORTED_MODULE_7__["default"])(handleUserRef, handleOwnRef); - - var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_2__["useState"](false), - mountedState = _React$useState2[0], - setMountedState = _React$useState2[1]; - - react__WEBPACK_IMPORTED_MODULE_2__["useEffect"](function () { - setMountedState(true); - }, []); - var enableTouchRipple = mountedState && !disableRipple && !disabled; - - if (false) {} - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](ComponentProp, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - className: Object(clsx__WEBPACK_IMPORTED_MODULE_5__["default"])(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled), - onBlur: handleBlur, - onClick: onClick, - onFocus: handleFocus, - onKeyDown: handleKeyDown, - onKeyUp: handleKeyUp, - onMouseDown: handleMouseDown, - onMouseLeave: handleMouseLeave, - onMouseUp: handleMouseUp, - onDragLeave: handleDragLeave, - onTouchEnd: handleTouchEnd, - onTouchMove: handleTouchMove, - onTouchStart: handleTouchStart, - ref: handleRef, - tabIndex: disabled ? -1 : tabIndex - }, buttonProps, other), children, enableTouchRipple ? - /*#__PURE__*/ - - /* TouchRipple is only needed client-side, x2 boost on the server. */ - react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_TouchRipple__WEBPACK_IMPORTED_MODULE_12__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: rippleRef, - center: centerRipple - }, TouchRippleProps)) : null); -}); - false ? undefined : void 0; -/* harmony default export */ __webpack_exports__["default"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_10__["default"])(styles, { - name: 'MuiButtonBase' -})(ButtonBase)); - -/***/ }), - /***/ "fQxh": /***/ (function(module, exports) { @@ -120909,31 +119343,6 @@ __webpack_require__("AvzS")('Uint8', 1, function (init) { }, true); -/***/ }), - -/***/ "ihUZ": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var green = { - 50: '#e8f5e9', - 100: '#c8e6c9', - 200: '#a5d6a7', - 300: '#81c784', - 400: '#66bb6a', - 500: '#4caf50', - 600: '#43a047', - 700: '#388e3c', - 800: '#2e7d32', - 900: '#1b5e20', - A100: '#b9f6ca', - A200: '#69f0ae', - A400: '#00e676', - A700: '#00c853' -}; -/* harmony default export */ __webpack_exports__["default"] = (green); - /***/ }), /***/ "ii0b": @@ -127057,321 +125466,6 @@ $export($export.P + $export.F * !__webpack_require__("QLBk")([].some, true), 'Ar }); -/***/ }), - -/***/ "kShl": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hexToRgb", function() { return hexToRgb; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHex", function() { return rgbToHex; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslToRgb", function() { return hslToRgb; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decomposeColor", function() { return decomposeColor; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recomposeColor", function() { return recomposeColor; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContrastRatio", function() { return getContrastRatio; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLuminance", function() { return getLuminance; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "emphasize", function() { return emphasize; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fade", function() { return fade; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alpha", function() { return alpha; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; }); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("rDuK"); - - -/* eslint-disable no-use-before-define */ - -/** - * Returns a number whose value is limited to the given range. - * - * @param {number} value The value to be clamped - * @param {number} min The lower boundary of the output range - * @param {number} max The upper boundary of the output range - * @returns {number} A number in the range [min, max] - */ -function clamp(value) { - var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - - if (false) {} - - return Math.min(Math.max(min, value), max); -} -/** - * Converts a color from CSS hex format to CSS rgb format. - * - * @param {string} color - Hex color, i.e. #nnn or #nnnnnn - * @returns {string} A CSS rgb color string - */ - - -function hexToRgb(color) { - color = color.substr(1); - var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g'); - var colors = color.match(re); - - if (colors && colors[0].length === 1) { - colors = colors.map(function (n) { - return n + n; - }); - } - - return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) { - return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000; - }).join(', '), ")") : ''; -} - -function intToHex(int) { - var hex = int.toString(16); - return hex.length === 1 ? "0".concat(hex) : hex; -} -/** - * Converts a color from CSS rgb format to CSS hex format. - * - * @param {string} color - RGB color, i.e. rgb(n, n, n) - * @returns {string} A CSS rgb color string, i.e. #nnnnnn - */ - - -function rgbToHex(color) { - // Idempotent - if (color.indexOf('#') === 0) { - return color; - } - - var _decomposeColor = decomposeColor(color), - values = _decomposeColor.values; - - return "#".concat(values.map(function (n) { - return intToHex(n); - }).join('')); -} -/** - * Converts a color from hsl format to rgb format. - * - * @param {string} color - HSL color values - * @returns {string} rgb color values - */ - -function hslToRgb(color) { - color = decomposeColor(color); - var _color = color, - values = _color.values; - var h = values[0]; - var s = values[1] / 100; - var l = values[2] / 100; - var a = s * Math.min(l, 1 - l); - - var f = function f(n) { - var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12; - return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1); - }; - - var type = 'rgb'; - var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; - - if (color.type === 'hsla') { - type += 'a'; - rgb.push(values[3]); - } - - return recomposeColor({ - type: type, - values: rgb - }); -} -/** - * Returns an object with the type and values of a color. - * - * Note: Does not support rgb % values. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @returns {object} - A MUI color object: {type: string, values: number[]} - */ - -function decomposeColor(color) { - // Idempotent - if (color.type) { - return color; - } - - if (color.charAt(0) === '#') { - return decomposeColor(hexToRgb(color)); - } - - var marker = color.indexOf('('); - var type = color.substring(0, marker); - - if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) { - throw new Error( false ? undefined : Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__["formatMuiErrorMessage"])(3, color)); - } - - var values = color.substring(marker + 1, color.length - 1).split(','); - values = values.map(function (value) { - return parseFloat(value); - }); - return { - type: type, - values: values - }; -} -/** - * Converts a color object with type and values to a string. - * - * @param {object} color - Decomposed color - * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla' - * @param {array} color.values - [n,n,n] or [n,n,n,n] - * @returns {string} A CSS color string - */ - -function recomposeColor(color) { - var type = color.type; - var values = color.values; - - if (type.indexOf('rgb') !== -1) { - // Only convert the first 3 values to int (i.e. not alpha) - values = values.map(function (n, i) { - return i < 3 ? parseInt(n, 10) : n; - }); - } else if (type.indexOf('hsl') !== -1) { - values[1] = "".concat(values[1], "%"); - values[2] = "".concat(values[2], "%"); - } - - return "".concat(type, "(").concat(values.join(', '), ")"); -} -/** - * Calculates the contrast ratio between two colors. - * - * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests - * - * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @returns {number} A contrast ratio value in the range 0 - 21. - */ - -function getContrastRatio(foreground, background) { - var lumA = getLuminance(foreground); - var lumB = getLuminance(background); - return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); -} -/** - * The relative brightness of any point in a color space, - * normalized to 0 for darkest black and 1 for lightest white. - * - * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @returns {number} The relative brightness of the color in the range 0 - 1 - */ - -function getLuminance(color) { - color = decomposeColor(color); - var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values; - rgb = rgb.map(function (val) { - val /= 255; // normalized - - return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4); - }); // Truncate at 3 digits - - return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); -} -/** - * Darken or lighten a color, depending on its luminance. - * Light colors are darkened, dark colors are lightened. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} coefficient=0.15 - multiplier in the range 0 - 1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function emphasize(color) { - var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15; - return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient); -} -var warnedOnce = false; -/** - * Set the absolute transparency of a color. - * Any existing alpha values are overwritten. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} value - value to set the alpha channel to in the range 0 -1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - * - * @deprecated - * Use `import { alpha } from '@material-ui/core/styles'` instead. - */ - -function fade(color, value) { - if (false) {} - - return alpha(color, value); -} -/** - * Set the absolute transparency of a color. - * Any existing alpha value is overwritten. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} value - value to set the alpha channel to in the range 0-1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function alpha(color, value) { - color = decomposeColor(color); - value = clamp(value); - - if (color.type === 'rgb' || color.type === 'hsl') { - color.type += 'a'; - } - - color.values[3] = value; - return recomposeColor(color); -} -/** - * Darkens a color. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} coefficient - multiplier in the range 0 - 1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function darken(color, coefficient) { - color = decomposeColor(color); - coefficient = clamp(coefficient); - - if (color.type.indexOf('hsl') !== -1) { - color.values[2] *= 1 - coefficient; - } else if (color.type.indexOf('rgb') !== -1) { - for (var i = 0; i < 3; i += 1) { - color.values[i] *= 1 - coefficient; - } - } - - return recomposeColor(color); -} -/** - * Lightens a color. - * - * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() - * @param {number} coefficient - multiplier in the range 0 - 1 - * @returns {string} A CSS color string. Hex input values are returned as rgb - */ - -function lighten(color, coefficient) { - color = decomposeColor(color); - coefficient = clamp(coefficient); - - if (color.type.indexOf('hsl') !== -1) { - color.values[2] += (100 - color.values[2]) * coefficient; - } else if (color.type.indexOf('rgb') !== -1) { - for (var i = 0; i < 3; i += 1) { - color.values[i] += (255 - color.values[i]) * coefficient; - } - } - - return recomposeColor(color); -} - /***/ }), /***/ "kTya": @@ -130342,26 +128436,6 @@ exports.default = _default; /***/ }), -/***/ "lRkA": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// We need to centralize the zIndex definitions as they work -// like global values in the browser. -var zIndex = { - mobileStepper: 1000, - speedDial: 1050, - appBar: 1100, - drawer: 1200, - modal: 1300, - snackbar: 1400, - tooltip: 1500 -}; -/* harmony default export */ __webpack_exports__["default"] = (zIndex); - -/***/ }), - /***/ "lTBH": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -134673,18 +132747,6 @@ module.exports = function (that, maxLength, fillString, left) { }; -/***/ }), - -/***/ "mSBp": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fQIz"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _ButtonBase__WEBPACK_IMPORTED_MODULE_0__["default"]; }); - - - /***/ }), /***/ "mUHW": @@ -135122,94 +133184,6 @@ function addExtensionMethods() { /***/ }), -/***/ "mbaZ": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createMuiTheme", function() { return createMuiTheme; }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Xqvq"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("rZdQ"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("rDuK"); -/* harmony import */ var _createBreakpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("VB9c"); -/* harmony import */ var _createMixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("3HJx"); -/* harmony import */ var _createPalette__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("mhW+"); -/* harmony import */ var _createTypography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("VLP0"); -/* harmony import */ var _shadows__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("QVhX"); -/* harmony import */ var _shape__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("Xv9V"); -/* harmony import */ var _createSpacing__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("Lw3Y"); -/* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("tHdl"); -/* harmony import */ var _zIndex__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("lRkA"); - - - - - - - - - - - - - -function createTheme() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var _options$breakpoints = options.breakpoints, - breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, - _options$mixins = options.mixins, - mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, - _options$palette = options.palette, - paletteInput = _options$palette === void 0 ? {} : _options$palette, - spacingInput = options.spacing, - _options$typography = options.typography, - typographyInput = _options$typography === void 0 ? {} : _options$typography, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]); - - var palette = Object(_createPalette__WEBPACK_IMPORTED_MODULE_5__["default"])(paletteInput); - var breakpoints = Object(_createBreakpoints__WEBPACK_IMPORTED_MODULE_3__["default"])(breakpointsInput); - var spacing = Object(_createSpacing__WEBPACK_IMPORTED_MODULE_9__["default"])(spacingInput); - var muiTheme = Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["deepmerge"])({ - breakpoints: breakpoints, - direction: 'ltr', - mixins: Object(_createMixins__WEBPACK_IMPORTED_MODULE_4__["default"])(breakpoints, spacing, mixinsInput), - overrides: {}, - // Inject custom styles - palette: palette, - props: {}, - // Provide default props - shadows: _shadows__WEBPACK_IMPORTED_MODULE_7__["default"], - typography: Object(_createTypography__WEBPACK_IMPORTED_MODULE_6__["default"])(palette, typographyInput), - spacing: spacing, - shape: _shape__WEBPACK_IMPORTED_MODULE_8__["default"], - transitions: _transitions__WEBPACK_IMPORTED_MODULE_10__["default"], - zIndex: _zIndex__WEBPACK_IMPORTED_MODULE_11__["default"] - }, other); - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - muiTheme = args.reduce(function (acc, argument) { - return Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["deepmerge"])(acc, argument); - }, muiTheme); - - if (false) { var traverse, pseudoClasses; } - - return muiTheme; -} - -var warnedOnce = false; -function createMuiTheme() { - if (false) {} - - return createTheme.apply(void 0, arguments); -} -/* harmony default export */ __webpack_exports__["default"] = (createTheme); - -/***/ }), - /***/ "mcBX": /***/ (function(module, exports, __webpack_require__) { @@ -135652,249 +133626,6 @@ var $export = __webpack_require__("XRBo"); $export($export.G, { global: __webpack_require__("4ESo") }); -/***/ }), - -/***/ "mhW+": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "light", function() { return light; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dark", function() { return dark; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createPalette; }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8cmQ"); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("rZdQ"); -/* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("rDuK"); -/* harmony import */ var _colors_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Ztzc"); -/* harmony import */ var _colors_grey__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("DgHV"); -/* harmony import */ var _colors_indigo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("sLMy"); -/* harmony import */ var _colors_pink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("cESx"); -/* harmony import */ var _colors_red__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("9N3j"); -/* harmony import */ var _colors_orange__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("JE9C"); -/* harmony import */ var _colors_blue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("7c+g"); -/* harmony import */ var _colors_green__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("ihUZ"); -/* harmony import */ var _colorManipulator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("kShl"); - - - - - - - - - - - - - -var light = { - // The colors used to style the text. - text: { - // The most important text. - primary: 'rgba(0, 0, 0, 0.87)', - // Secondary text. - secondary: 'rgba(0, 0, 0, 0.54)', - // Disabled text have even lower visual prominence. - disabled: 'rgba(0, 0, 0, 0.38)', - // Text hints. - hint: 'rgba(0, 0, 0, 0.38)' - }, - // The color used to divide different elements. - divider: 'rgba(0, 0, 0, 0.12)', - // The background colors used to style the surfaces. - // Consistency between these values is important. - background: { - paper: _colors_common__WEBPACK_IMPORTED_MODULE_3__["default"].white, - default: _colors_grey__WEBPACK_IMPORTED_MODULE_4__["default"][50] - }, - // The colors used to style the action elements. - action: { - // The color of an active action like an icon button. - active: 'rgba(0, 0, 0, 0.54)', - // The color of an hovered action. - hover: 'rgba(0, 0, 0, 0.04)', - hoverOpacity: 0.04, - // The color of a selected action. - selected: 'rgba(0, 0, 0, 0.08)', - selectedOpacity: 0.08, - // The color of a disabled action. - disabled: 'rgba(0, 0, 0, 0.26)', - // The background color of a disabled action. - disabledBackground: 'rgba(0, 0, 0, 0.12)', - disabledOpacity: 0.38, - focus: 'rgba(0, 0, 0, 0.12)', - focusOpacity: 0.12, - activatedOpacity: 0.12 - } -}; -var dark = { - text: { - primary: _colors_common__WEBPACK_IMPORTED_MODULE_3__["default"].white, - secondary: 'rgba(255, 255, 255, 0.7)', - disabled: 'rgba(255, 255, 255, 0.5)', - hint: 'rgba(255, 255, 255, 0.5)', - icon: 'rgba(255, 255, 255, 0.5)' - }, - divider: 'rgba(255, 255, 255, 0.12)', - background: { - paper: _colors_grey__WEBPACK_IMPORTED_MODULE_4__["default"][800], - default: '#303030' - }, - action: { - active: _colors_common__WEBPACK_IMPORTED_MODULE_3__["default"].white, - hover: 'rgba(255, 255, 255, 0.08)', - hoverOpacity: 0.08, - selected: 'rgba(255, 255, 255, 0.16)', - selectedOpacity: 0.16, - disabled: 'rgba(255, 255, 255, 0.3)', - disabledBackground: 'rgba(255, 255, 255, 0.12)', - disabledOpacity: 0.38, - focus: 'rgba(255, 255, 255, 0.12)', - focusOpacity: 0.12, - activatedOpacity: 0.24 - } -}; - -function addLightOrDark(intent, direction, shade, tonalOffset) { - var tonalOffsetLight = tonalOffset.light || tonalOffset; - var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; - - if (!intent[direction]) { - if (intent.hasOwnProperty(shade)) { - intent[direction] = intent[shade]; - } else if (direction === 'light') { - intent.light = Object(_colorManipulator__WEBPACK_IMPORTED_MODULE_11__["lighten"])(intent.main, tonalOffsetLight); - } else if (direction === 'dark') { - intent.dark = Object(_colorManipulator__WEBPACK_IMPORTED_MODULE_11__["darken"])(intent.main, tonalOffsetDark); - } - } -} - -function createPalette(palette) { - var _palette$primary = palette.primary, - primary = _palette$primary === void 0 ? { - light: _colors_indigo__WEBPACK_IMPORTED_MODULE_5__["default"][300], - main: _colors_indigo__WEBPACK_IMPORTED_MODULE_5__["default"][500], - dark: _colors_indigo__WEBPACK_IMPORTED_MODULE_5__["default"][700] - } : _palette$primary, - _palette$secondary = palette.secondary, - secondary = _palette$secondary === void 0 ? { - light: _colors_pink__WEBPACK_IMPORTED_MODULE_6__["default"].A200, - main: _colors_pink__WEBPACK_IMPORTED_MODULE_6__["default"].A400, - dark: _colors_pink__WEBPACK_IMPORTED_MODULE_6__["default"].A700 - } : _palette$secondary, - _palette$error = palette.error, - error = _palette$error === void 0 ? { - light: _colors_red__WEBPACK_IMPORTED_MODULE_7__["default"][300], - main: _colors_red__WEBPACK_IMPORTED_MODULE_7__["default"][500], - dark: _colors_red__WEBPACK_IMPORTED_MODULE_7__["default"][700] - } : _palette$error, - _palette$warning = palette.warning, - warning = _palette$warning === void 0 ? { - light: _colors_orange__WEBPACK_IMPORTED_MODULE_8__["default"][300], - main: _colors_orange__WEBPACK_IMPORTED_MODULE_8__["default"][500], - dark: _colors_orange__WEBPACK_IMPORTED_MODULE_8__["default"][700] - } : _palette$warning, - _palette$info = palette.info, - info = _palette$info === void 0 ? { - light: _colors_blue__WEBPACK_IMPORTED_MODULE_9__["default"][300], - main: _colors_blue__WEBPACK_IMPORTED_MODULE_9__["default"][500], - dark: _colors_blue__WEBPACK_IMPORTED_MODULE_9__["default"][700] - } : _palette$info, - _palette$success = palette.success, - success = _palette$success === void 0 ? { - light: _colors_green__WEBPACK_IMPORTED_MODULE_10__["default"][300], - main: _colors_green__WEBPACK_IMPORTED_MODULE_10__["default"][500], - dark: _colors_green__WEBPACK_IMPORTED_MODULE_10__["default"][700] - } : _palette$success, - _palette$type = palette.type, - type = _palette$type === void 0 ? 'light' : _palette$type, - _palette$contrastThre = palette.contrastThreshold, - contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, - _palette$tonalOffset = palette.tonalOffset, - tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]); // Use the same logic as - // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59 - // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54 - - - function getContrastText(background) { - var contrastText = Object(_colorManipulator__WEBPACK_IMPORTED_MODULE_11__["getContrastRatio"])(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; - - if (false) { var contrast; } - - return contrastText; - } - - var augmentColor = function augmentColor(color) { - var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500; - var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300; - var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700; - color = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, color); - - if (!color.main && color[mainShade]) { - color.main = color[mainShade]; - } - - if (!color.main) { - throw new Error( false ? undefined : Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["formatMuiErrorMessage"])(4, mainShade)); - } - - if (typeof color.main !== 'string') { - throw new Error( false ? undefined : Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["formatMuiErrorMessage"])(5, JSON.stringify(color.main))); - } - - addLightOrDark(color, 'light', lightShade, tonalOffset); - addLightOrDark(color, 'dark', darkShade, tonalOffset); - - if (!color.contrastText) { - color.contrastText = getContrastText(color.main); - } - - return color; - }; - - var types = { - dark: dark, - light: light - }; - - if (false) {} - - var paletteOutput = Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_2__["deepmerge"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - // A collection of common colors. - common: _colors_common__WEBPACK_IMPORTED_MODULE_3__["default"], - // The palette type, can be light or dark. - type: type, - // The colors used to represent primary interface elements for a user. - primary: augmentColor(primary), - // The colors used to represent secondary interface elements for a user. - secondary: augmentColor(secondary, 'A400', 'A200', 'A700'), - // The colors used to represent interface elements that the user should be made aware of. - error: augmentColor(error), - // The colors used to represent potentially dangerous actions or important messages. - warning: augmentColor(warning), - // The colors used to present information to the user that is neutral and not necessarily important. - info: augmentColor(info), - // The colors used to indicate the successful completion of an action that user triggered. - success: augmentColor(success), - // The grey colors. - grey: _colors_grey__WEBPACK_IMPORTED_MODULE_4__["default"], - // Used by `getContrastText()` to maximize the contrast between - // the background and the text. - contrastThreshold: contrastThreshold, - // Takes a background color and returns the text color that maximizes the contrast. - getContrastText: getContrastText, - // Generate a rich color object. - augmentColor: augmentColor, - // Used by the functions below to shift a color's luminance by approximately - // two indexes within its tonal palette. - // E.g., shift from Red 500 to Red 300 or Red 700. - tonalOffset: tonalOffset - }, types[type]), other); - return paletteOutput; -} - /***/ }), /***/ "miOE": @@ -167577,31 +165308,6 @@ module.exports = (fails(function () { } : $toISOString; -/***/ }), - -/***/ "sLMy": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var indigo = { - 50: '#e8eaf6', - 100: '#c5cae9', - 200: '#9fa8da', - 300: '#7986cb', - 400: '#5c6bc0', - 500: '#3f51b5', - 600: '#3949ab', - 700: '#303f9f', - 800: '#283593', - 900: '#1a237e', - A100: '#8c9eff', - A200: '#536dfe', - A400: '#3d5afe', - A700: '#304ffe' -}; -/* harmony default export */ __webpack_exports__["default"] = (indigo); - /***/ }), /***/ "sMcB": @@ -169661,91 +167367,6 @@ function spanStatusfromHttpCode(httpStatus) { //# sourceMappingURL=span.js.map -/***/ }), - -/***/ "tHdl": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easing", function() { return easing; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "duration", function() { return duration; }); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("rZdQ"); - -// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves -// to learn the context in which each easing should be used. -var easing = { - // This is the most common easing curve. - easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)', - // Objects enter the screen at full velocity from off-screen and - // slowly decelerate to a resting point. - easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)', - // Objects leave the screen at full velocity. They do not decelerate when off-screen. - easeIn: 'cubic-bezier(0.4, 0, 1, 1)', - // The sharp curve is used by objects that may return to the screen at any time. - sharp: 'cubic-bezier(0.4, 0, 0.6, 1)' -}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations -// to learn when use what timing - -var duration = { - shortest: 150, - shorter: 200, - short: 250, - // most basic recommended timing - standard: 300, - // this is to be used in complex animations - complex: 375, - // recommended when something is entering screen - enteringScreen: 225, - // recommended when something is leaving screen - leavingScreen: 195 -}; - -function formatMs(milliseconds) { - return "".concat(Math.round(milliseconds), "ms"); -} -/** - * @param {string|Array} props - * @param {object} param - * @param {string} param.prop - * @param {number} param.duration - * @param {string} param.easing - * @param {number} param.delay - */ - - -/* harmony default export */ __webpack_exports__["default"] = ({ - easing: easing, - duration: duration, - create: function create() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all']; - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var _options$duration = options.duration, - durationOption = _options$duration === void 0 ? duration.standard : _options$duration, - _options$easing = options.easing, - easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, - _options$delay = options.delay, - delay = _options$delay === void 0 ? 0 : _options$delay, - other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(options, ["duration", "easing", "delay"]); - - if (false) { var isNumber, isString; } - - return (Array.isArray(props) ? props : [props]).map(function (animatedProp) { - return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay)); - }).join(','); - }, - getAutoHeightDuration: function getAutoHeightDuration(height) { - if (!height) { - return 0; - } - - var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10 - - return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10); - } -}); - /***/ }), /***/ "tIE6": @@ -171896,18 +169517,6 @@ exports.default = _default; /***/ }), -/***/ "uj8+": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("mbaZ"); - -var defaultTheme = Object(_createTheme__WEBPACK_IMPORTED_MODULE_0__["default"])(); -/* harmony default export */ __webpack_exports__["default"] = (defaultTheme); - -/***/ }), - /***/ "ulUA": /***/ (function(module, exports, __webpack_require__) { @@ -176263,78 +173872,6 @@ const extractSafariExtensionDetails = (func, filename) => { //# sourceMappingURL=stack-parsers.js.map -/***/ }), - -/***/ "wR84": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ivGQ"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ii0b"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("vFJ3"); -/* harmony import */ var _utils_useEventCallback__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("etiA"); - - - - -var useEnhancedEffect = typeof window === 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__["useEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"]; -/** - * @ignore - internal component. - */ - -function Ripple(props) { - var classes = props.classes, - _props$pulsate = props.pulsate, - pulsate = _props$pulsate === void 0 ? false : _props$pulsate, - rippleX = props.rippleX, - rippleY = props.rippleY, - rippleSize = props.rippleSize, - inProp = props.in, - _props$onExited = props.onExited, - onExited = _props$onExited === void 0 ? function () {} : _props$onExited, - timeout = props.timeout; - - var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"](false), - leaving = _React$useState[0], - setLeaving = _React$useState[1]; - - var rippleClassName = Object(clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate); - var rippleStyles = { - width: rippleSize, - height: rippleSize, - top: -(rippleSize / 2) + rippleY, - left: -(rippleSize / 2) + rippleX - }; - var childClassName = Object(clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate); - var handleExited = Object(_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_3__["default"])(onExited); // Ripple is used for user feedback (e.g. click or press) so we want to apply styles with the highest priority - - useEnhancedEffect(function () { - if (!inProp) { - // react-transition-group#onExit - setLeaving(true); // react-transition-group#onExited - - var timeoutId = setTimeout(handleExited, timeout); - return function () { - clearTimeout(timeoutId); - }; - } - - return undefined; - }, [handleExited, inProp, timeout]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { - className: rippleClassName, - style: rippleStyles - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { - className: childClassName - })); -} - - false ? undefined : void 0; -/* harmony default export */ __webpack_exports__["default"] = (Ripple); - /***/ }), /***/ "wTd/": @@ -183076,33 +180613,6 @@ const onFID = (onReport, opts = {}) => { //# sourceMappingURL=getFID.js.map -/***/ }), - -/***/ "zLGW": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return deprecatedPropType; }); -function deprecatedPropType(validator, reason) { - if (true) { - return function () { - return null; - }; - } - - return function (props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<<anonymous>>'; - var propFullNameSafe = propFullName || propName; - - if (typeof props[propName] !== 'undefined') { - return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason)); - } - - return null; - }; -} - /***/ }), /***/ "zN4E": diff --git a/public/index.html b/public/index.html index 776c81643..ad0333fc6 100644 --- a/public/index.html +++ b/public/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo | Désabonnement</title><link rel="icon" type="image/png" href="public/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="public/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="mask-icon" href="public/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="public/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="public/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="../public/ecolyo.b6af0ac9fcd71a5edeac.js"></script></div></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo | Désabonnement</title><link rel="icon" type="image/png" href="public/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="public/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="mask-icon" href="public/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="public/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="public/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="../public/ecolyo.258bfb9d44fb4f887c90.js"></script></div></body></html> \ No newline at end of file diff --git a/vendors/ecolyo.19a03d2ebcf9f20ea14e.js b/vendors/ecolyo.a5828d47e107029845d0.js similarity index 94% rename from vendors/ecolyo.19a03d2ebcf9f20ea14e.js rename to vendors/ecolyo.a5828d47e107029845d0.js index 6a7df0045..120368927 100644 --- a/vendors/ecolyo.19a03d2ebcf9f20ea14e.js +++ b/vendors/ecolyo.a5828d47e107029845d0.js @@ -30,15 +30,17 @@ var Cipher = /*#__PURE__*/function () { function Cipher() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Cipher); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Cipher, [{ key: "build", - value: // Use build method instead of ctor so that we can control order of JSON stringify for pretty print - function build(o) { + value: function build(o) { var _a, _b; + this.organizationId = o.organizationId; this.folderId = o.folderId; this.type = o.type; + if (o instanceof _view_cipherView__WEBPACK_IMPORTED_MODULE_3__["CipherView"]) { this.name = o.name; this.notes = o.notes; @@ -46,7 +48,9 @@ var Cipher = /*#__PURE__*/function () { this.name = (_a = o.name) === null || _a === void 0 ? void 0 : _a.encryptedString; this.notes = (_b = o.notes) === null || _b === void 0 ? void 0 : _b.encryptedString; } + this.favorite = o.favorite; + if (o.fields != null) { if (o instanceof _view_cipherView__WEBPACK_IMPORTED_MODULE_3__["CipherView"]) { this.fields = o.fields.map(function (f) { @@ -58,16 +62,20 @@ var Cipher = /*#__PURE__*/function () { }); } } + switch (o.type) { case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Login: this.login = new _login__WEBPACK_IMPORTED_MODULE_7__["Login"](o.login); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].SecureNote: this.secureNote = new _secureNote__WEBPACK_IMPORTED_MODULE_8__["SecureNote"](o.secureNote); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Card: this.card = new _card__WEBPACK_IMPORTED_MODULE_4__["Card"](o.card); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Identity: this.identity = new _identity__WEBPACK_IMPORTED_MODULE_6__["Identity"](o.identity); break; @@ -96,34 +104,43 @@ var Cipher = /*#__PURE__*/function () { var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new _view_cipherView__WEBPACK_IMPORTED_MODULE_3__["CipherView"](); view.type = req.type; view.folderId = req.folderId; + if (view.organizationId == null) { view.organizationId = req.organizationId; } + view.name = req.name; view.notes = req.notes; view.favorite = req.favorite; + if (req.fields != null) { view.fields = req.fields.map(function (f) { return _field__WEBPACK_IMPORTED_MODULE_5__["Field"].toView(f); }); } + switch (req.type) { case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Login: view.login = _login__WEBPACK_IMPORTED_MODULE_7__["Login"].toView(req.login); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].SecureNote: view.secureNote = _secureNote__WEBPACK_IMPORTED_MODULE_8__["SecureNote"].toView(req.secureNote); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Card: view.card = _card__WEBPACK_IMPORTED_MODULE_4__["Card"].toView(req.card); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Identity: view.identity = _identity__WEBPACK_IMPORTED_MODULE_6__["Identity"].toView(req.identity); break; } + return view; } }]); + return Cipher; }(); @@ -2395,15 +2412,12 @@ module.exports = isEqual; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordVerificationRequest", function() { return PasswordVerificationRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -var PasswordVerificationRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function PasswordVerificationRequest() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PasswordVerificationRequest); -}); +var PasswordVerificationRequest = function PasswordVerificationRequest() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordVerificationRequest); +}; /***/ }), @@ -4041,10 +4055,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkHasInstalledExtension", function() { return checkHasInstalledExtension; }); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("XkwL"); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _StrippedWebPlatformUtilsService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("KM2e"); /* harmony import */ var cozy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("xEu0"); /* harmony import */ var cozy_client__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(cozy_client__WEBPACK_IMPORTED_MODULE_4__); @@ -4059,35 +4073,37 @@ __webpack_require__.r(__webpack_exports__); var CIPHERS_DOCTYPE = 'com.bitwarden.ciphers'; var SETTINGS_DOCTYPE = 'io.cozy.settings'; + var isForbiddenError = function isForbiddenError(rawError) { return rawError.message.match(/code=403/); }; - /** * Check if the parameter is an instance URL or an email * @param {string} instance_or_email - instance url or email * @return {boolean} */ + + function isEmail(instance_or_email) { return instance_or_email.match('@'); } - /** * Check if the parameter is an instance URL or an email * @param {string} instance_or_email - instance url or email * @return {boolean} * @see isEmail */ + function isInstance(instance_or_email) { return !isEmail(instance_or_email); } - /** * Get user (fake) email * This email is generated with the instance URL * @param {string} instance - URL like https://xx.mycozy.cloud * @return {string} email */ + function getEmail(instance) { if (isEmail(instance)) { return instance.toString(); @@ -4096,7 +4112,6 @@ function getEmail(instance) { return 'me@' + url.hostname; } } - /** * Get the hashed password used for login * @param {string} instance_or_email - URL of the cozy instance @@ -4105,40 +4120,47 @@ function getEmail(instance) { * @param {integer} kdfIterations * @return {string} hashed password as base64 string */ + function getHashedPassword(_x, _x2, _x3, _x4) { return _getHashedPassword.apply(this, arguments); } - /** * @private * get a light crypto service only usable for login * @return {CryptoService} */ + function _getHashedPassword() { - _getHashedPassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3(instance_or_email, masterPassword, kdf, kdfIterations) { + _getHashedPassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee3(instance_or_email, masterPassword, kdf, kdfIterations) { var email, cryptoService, key, hashedPassword; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - email = getEmail(instance_or_email); - cryptoService = getLightCryptoService(); - _context3.next = 4; - return cryptoService.makeKey(masterPassword, email, kdf, kdfIterations); - case 4: - key = _context3.sent; - _context3.next = 7; - return cryptoService.hashPassword(masterPassword, key); - case 7: - hashedPassword = _context3.sent; - return _context3.abrupt("return", hashedPassword); - case 9: - case "end": - return _context3.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + email = getEmail(instance_or_email); + cryptoService = getLightCryptoService(); + _context3.next = 4; + return cryptoService.makeKey(masterPassword, email, kdf, kdfIterations); + + case 4: + key = _context3.sent; + _context3.next = 7; + return cryptoService.hashPassword(masterPassword, key); + + case 7: + hashedPassword = _context3.sent; + return _context3.abrupt("return", hashedPassword); + + case 9: + case "end": + return _context3.stop(); + } } }, _callee3); })); return _getHashedPassword.apply(this, arguments); } + function getLightCryptoService() { var storageService = null; var secureStorageService = null; @@ -4147,85 +4169,106 @@ function getLightCryptoService() { var cryptoService = new _bitwarden_jslib_services_crypto_service__WEBPACK_IMPORTED_MODULE_5__["CryptoService"](storageService, secureStorageService, cryptoFunctionService); return cryptoService; } - /** * Check if there are ciphers in the database * @param {object} cozyClient - cozy-client instance * @return {bool} whether there are ciphers in the database or not */ + + var checkHasCiphers = /*#__PURE__*/function () { - var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(cozyClient) { + var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(cozyClient) { var _yield$cozyClient$que, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.prev = 0; - _context.next = 3; - return cozyClient.query(Object(cozy_client__WEBPACK_IMPORTED_MODULE_4__["Q"])(CIPHERS_DOCTYPE)); - case 3: - _yield$cozyClient$que = _context.sent; - ciphers = _yield$cozyClient$que.data; - return _context.abrupt("return", ciphers.length > 0); - case 8: - _context.prev = 8; - _context.t0 = _context["catch"](0); - /* eslint-disable no-console */ - if (isForbiddenError(_context.t0)) { - console.error("Your app must have the GET permission on the ".concat(CIPHERS_DOCTYPE, " doctype.")); - } else { - console.error(_context.t0.message); - } - /* eslint-enable no-console */ - return _context.abrupt("return", false); - case 12: - case "end": - return _context.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.prev = 0; + _context.next = 3; + return cozyClient.query(Object(cozy_client__WEBPACK_IMPORTED_MODULE_4__["Q"])(CIPHERS_DOCTYPE)); + + case 3: + _yield$cozyClient$que = _context.sent; + ciphers = _yield$cozyClient$que.data; + return _context.abrupt("return", ciphers.length > 0); + + case 8: + _context.prev = 8; + _context.t0 = _context["catch"](0); + + /* eslint-disable no-console */ + if (isForbiddenError(_context.t0)) { + console.error("Your app must have the GET permission on the ".concat(CIPHERS_DOCTYPE, " doctype.")); + } else { + console.error(_context.t0.message); + } + /* eslint-enable no-console */ + + + return _context.abrupt("return", false); + + case 12: + case "end": + return _context.stop(); + } } }, _callee, null, [[0, 8]]); })); + return function checkHasCiphers(_x5) { return _ref.apply(this, arguments); }; }(); - /** * Check if the extension is installed, based on the Cozy settings * @param {object} cozyClient - cozy-client instance * @return {bool} whether the extension is installed or not */ + var checkHasInstalledExtension = /*#__PURE__*/function () { - var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2(cozyClient) { + var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(cozyClient) { var _yield$cozyClient$get, docs, _docs$filter, _docs$filter2, bitwardenSettings; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.prev = 0; - _context2.next = 3; - return cozyClient.getStackClient().fetchJSON('GET', "/data/".concat(SETTINGS_DOCTYPE, "/_normal_docs")); - case 3: - _yield$cozyClient$get = _context2.sent; - docs = _yield$cozyClient$get.rows; - _docs$filter = docs.filter(function (doc) { - return doc._id === 'io.cozy.settings.bitwarden'; - }), _docs$filter2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_docs$filter, 1), bitwardenSettings = _docs$filter2[0]; - return _context2.abrupt("return", bitwardenSettings && !!bitwardenSettings.extension_installed); - case 9: - _context2.prev = 9; - _context2.t0 = _context2["catch"](0); - /* eslint-disable no-console */ - if (isForbiddenError(_context2.t0)) { - console.error("Your app must have the GET permission on the ".concat(SETTINGS_DOCTYPE, " doctype.")); - } else { - console.error(_context2.t0.message); - } - /* eslint-enable no-console */ - return _context2.abrupt("return", false); - case 13: - case "end": - return _context2.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.prev = 0; + _context2.next = 3; + return cozyClient.getStackClient().fetchJSON('GET', "/data/".concat(SETTINGS_DOCTYPE, "/_normal_docs")); + + case 3: + _yield$cozyClient$get = _context2.sent; + docs = _yield$cozyClient$get.rows; + _docs$filter = docs.filter(function (doc) { + return doc._id === 'io.cozy.settings.bitwarden'; + }), _docs$filter2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_docs$filter, 1), bitwardenSettings = _docs$filter2[0]; + return _context2.abrupt("return", bitwardenSettings && !!bitwardenSettings.extension_installed); + + case 9: + _context2.prev = 9; + _context2.t0 = _context2["catch"](0); + + /* eslint-disable no-console */ + if (isForbiddenError(_context2.t0)) { + console.error("Your app must have the GET permission on the ".concat(SETTINGS_DOCTYPE, " doctype.")); + } else { + console.error(_context2.t0.message); + } + /* eslint-enable no-console */ + + + return _context2.abrupt("return", false); + + case 13: + case "end": + return _context2.stop(); + } } }, _callee2, null, [[0, 9]]); })); + return function checkHasInstalledExtension(_x6) { return _ref2.apply(this, arguments); }; @@ -4649,6 +4692,7 @@ __webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UriMatchType", function() { return UriMatchType; }); var UriMatchType; + (function (UriMatchType) { UriMatchType[UriMatchType["Domain"] = 0] = "Domain"; UriMatchType[UriMatchType["Host"] = 1] = "Host"; @@ -8299,38 +8343,36 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorAuthenticatorResponse", function() { return TwoFactorAuthenticatorResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var TwoFactorAuthenticatorResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorAuthenticatorResponse, _BaseResponse); - var _super = _createSuper(TwoFactorAuthenticatorResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorAuthenticatorResponse, _BaseResponse); + function TwoFactorAuthenticatorResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorAuthenticatorResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorAuthenticatorResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorAuthenticatorResponse).call(this, response)); _this.enabled = _this.getResponseProperty('Enabled'); _this.key = _this.getResponseProperty('Key'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorAuthenticatorResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorAuthenticatorResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -8383,12 +8425,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -8396,66 +8438,87 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordSafeXmlImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordSafeXmlImporter, _BaseImporter); - var _super = _createSuper(PasswordSafeXmlImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordSafeXmlImporter, _BaseImporter); + function PasswordSafeXmlImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordSafeXmlImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordSafeXmlImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordSafeXmlImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var doc = this.parseXml(data); + if (doc == null) { result.success = false; return result; } + var passwordSafe = doc.querySelector('passwordsafe'); + if (passwordSafe == null) { result.errorMessage = 'Missing `passwordsafe` node.'; result.success = false; return result; } + var notesDelimiter = passwordSafe.getAttribute('delimiter'); var entries = doc.querySelectorAll('passwordsafe > entry'); Array.from(entries).forEach(function (entry) { var group = _this.querySelectorDirectChild(entry, 'group'); + var groupText = group != null && !_this.isNullOrWhitespace(group.textContent) ? group.textContent.split('.').join('/') : null; + _this.processFolder(result, groupText); + var title = _this.querySelectorDirectChild(entry, 'title'); + var username = _this.querySelectorDirectChild(entry, 'username'); + var email = _this.querySelectorDirectChild(entry, 'email'); + var password = _this.querySelectorDirectChild(entry, 'password'); + var url = _this.querySelectorDirectChild(entry, 'url'); + var notes = _this.querySelectorDirectChild(entry, 'notes'); + var cipher = _this.initLoginCipher(); + cipher.name = title != null ? _this.getValueOrDefault(title.textContent, '--') : '--'; cipher.notes = notes != null ? _this.getValueOrDefault(notes.textContent, '').split(notesDelimiter).join('\n') : null; cipher.login.username = username != null ? _this.getValueOrDefault(username.textContent) : null; cipher.login.password = password != null ? _this.getValueOrDefault(password.textContent) : null; cipher.login.uris = url != null ? _this.makeUriArray(url.textContent) : null; + if (_this.isNullOrWhitespace(cipher.login.username) && email != null) { cipher.login.username = _this.getValueOrDefault(email.textContent); } else if (email != null && !_this.isNullOrWhitespace(email.textContent)) { cipher.notes = _this.isNullOrWhitespace(cipher.notes) ? 'Email: ' + email.textContent : cipher.notes + '\n' + 'Email: ' + email.textContent; } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return PasswordSafeXmlImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -8490,24 +8553,23 @@ function makeStyles(stylesOrCreator) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttachmentData", function() { return AttachmentData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var AttachmentData = function AttachmentData(response) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AttachmentData); -var AttachmentData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function AttachmentData(response) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AttachmentData); if (response == null) { return; } + this.id = response.id; this.url = response.url; this.fileName = response.fileName; this.key = response.key; this.size = response.size; this.sizeName = response.sizeName; -}); +}; /***/ }), @@ -8986,7 +9048,7 @@ $export($export.S, 'Object', { exports = module.exports = __webpack_require__("DjJv")(false); // Module -exports.push([module.i, ".styles__c-loading-placeholder___3L6Gz{animation-delay:.1s;animation-duration:2s;animation-iteration-count:infinite;animation-name:styles__placeHolderShimmer___3Rei_;animation-timing-function:linear;background-position:-20rem 0;background-image:linear-gradient(90deg,silver 0,#fcfcfc 50%,silver);background-size:20rem 10rem;background-repeat:no-repeat;background-color:silver;border-radius:.15rem;max-width:100%;position:relative;margin:.1rem 0}.styles__c-app-icon___2_O40,.styles__c-app-icon___2_O40 svg{height:100%;width:100%;flex-grow:0;flex-shrink:0;object-fit:contain}.styles__c-app-icon-default___3CEmt{color:var(--silver)}@-webkit-keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}@keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}.Sections__Sections__section___2onYy{margin-bottom:4rem}.AppsSection__AppsSection___3WHhE{margin-bottom:1rem}.AppsSection__AppsSection__list___2Uy0E{display:flex;flex-wrap:wrap;justify-content:flex-start}.DropdownFilter__Dropdown__icon___19QZN{padding:0 .5rem}@media (max-width:48rem){.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__control___3-04c{padding:.5rem .5rem .5rem .2rem;border-radius:0;height:2.75rem}.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__menu___XLfYX{top:2rem}.DropdownFilter__Dropdown___afcWb>div{max-width:none}}.styles__AppTile-icon___1f0c0{object-fit:contain;max-width:100%;width:auto}.styles__AppTile-icon--default___1tjiF{height:100%;padding:0 .5em}.styles__AppTile-icon-maintenance___2VOvO{position:absolute;border:2px solid var(--primaryContrastTextColor);border-radius:50%;background:var(--primaryContrastTextColor);bottom:80px;left:80px}@media (max-width:48rem){.styles__AppTile-icon-maintenance___2VOvO{bottom:6px;left:40px}}.styles__AppTile-container-maintenance___u1a1M{filter:grayscale(1);opacity:.64}.styles__c-apptitle___eqV9l{display:inline-flex;align-items:center;margin:0}.styles__c-avatar___PpDI-{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:var(--zIndex-low)}.styles__c-avatar___PpDI- svg{width:50%;height:50%}.styles__c-avatar-image___3yJnb{width:100%}.styles__c-avatar___PpDI-{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-avatar--xsmall___3H2Io{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:.4386rem}.styles__c-avatar--small___1Y_Pv{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:.87719rem}.styles__c-avatar--large___1Z_HZ{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:1.31579rem}.styles__c-avatar--xlarge___3Qe0b{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:1.75439rem}.styles__c-avatar-initials___310qC{font-weight:700;line-height:1}.styles__c-avatar--text___2dvna{color:#fff}.styles__c-avatar--disabled___xoLOy.styles__c-avatar--image___jDBci{background-color:#fff!important}.styles__c-avatar--disabled___xoLOy:not(.styles__c-avatar--image___jDBci){background-color:var(--silver)!important}.styles__c-avatar--disabled___xoLOy .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-avatar--ghost___3898R{background-color:initial!important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.styles__c-avatar--ghost___3898R .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-banner-wrapper___3KlaG{display:flex;align-items:center;min-height:3.5rem;padding:0 1rem}@media (max-width:48rem){.styles__c-banner-wrapper___3KlaG{padding:0}}.styles__c-banner-icon___1f_LM{width:2rem;height:2rem;margin-left:1rem}.styles__c-banner-icon___1f_LM>svg{width:2rem;height:2rem}.styles__c-banner-icon___1f_LM div{width:2rem;height:2rem;min-width:2rem;min-height:2rem}.styles__c-banner-text___1sTVC{padding:.75rem 1rem}.styles__c-banner-buttons___3sLgG button{margin:0;min-width:3rem}.styles__BarButton___3z5Er{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem}:root{--barIconColor:var(--coolGrey);--barIconColorDisabled:var(--silver)}.styles__BarButtonIcon___1pSOT{color:var(--barIconColor)}.styles__BarButton--disabled___5e3Ll .styles__BarButtonIcon___1pSOT{color:var(--barIconColorDisabled)}.styles__BarTitle___I5r2e{margin:0;height:3rem;display:flex;align-items:center;font-size:1.125rem}.styles__c-card___YgP7B{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.styles__c-card--inset___2pofc{margin:1rem 2rem}@media (max-width:48rem){.styles__c-card--inset___2pofc{margin:.5rem}}.styles__c-circle___1DuMR{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-circle-text___1jFgD{font-weight:700;line-height:1}.styles__SelectControl___2OxoO[aria-disabled=true],.styles__SelectControl___2OxoO[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__SelectControl___2OxoO[aria-disabled=true]:focus,.styles__SelectControl___2OxoO[aria-disabled=true]:hover,.styles__SelectControl___2OxoO[disabled]:focus,.styles__SelectControl___2OxoO[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__SelectControl___2OxoO{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__SelectControl___2OxoO::placeholder{color:var(--coolGrey);font-size:1rem}.styles__SelectControl___2OxoO:hover{border:.063rem solid var(--coolGrey)}.styles__SelectControl___2OxoO:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__SelectControl___2OxoO.styles__is-error___2s-d5,.styles__SelectControl___2OxoO:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__SelectControl___2OxoO{padding-right:2.375rem;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__SelectControl___2OxoO::-ms-expand{display:none}.styles__contact___169nD{color:var(--secondaryTextColor)}@media (max-width:48rem){.styles__contact___169nD{height:auto}}.styles__contact--clickable___1GLTM{cursor:pointer}.styles__contact-cozyurl___3kBp5,.styles__contact-phone___1sA_m{flex:0 0 12rem;padding:0}.styles__contact-email___3n3q2{flex-basis:30%;padding:0}.styles__contact-myself___1aOdx{color:var(--secondaryTextColor);padding-left:.5rem}.styles__contact-identity___mL3IJ{flex-basis:30%;padding:0}@media (max-width:48rem){.styles__contact-identity___mL3IJ{flex:1 1 auto}}.styles__contact-firstname___2GPEr{margin-left:1rem}.styles__contact-avatar___3lZPs{flex-shrink:0}.styles__icon___gvQ89{margin:1rem 1.5rem 0 .5rem}.styles__ContactsListModal__addContactContainer___2W-dE{display:flex;justify-content:center;margin:0 .5rem 1rem}@media (max-width:48rem){.styles__ContactsListModal__addContactContainer___2W-dE>*{flex:1}}.styles__DialogCloseButton___cxKPO{position:absolute;top:1.15rem;right:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogCloseButton___cxKPO{top:.25rem;right:.25rem}}.styles__DialogBackButton___1c7yH{position:absolute;top:1.15rem;left:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogBackButton___1c7yH{top:.25rem;left:.25rem}}.styles__DateMonthPicker__YearControls___1DGlB{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.08)}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm,.styles__DateMonthPicker__MonthButton___3I_Mm:hover,.styles__DateMonthPicker__YearButton___3zNDK:hover{background:var(--defaultBackgroundColor);color:var(--primaryTextColor)}.styles__DateMonthPicker__MonthButton___3I_Mm:active,.styles__DateMonthPicker__MonthButton___3I_Mm:hover:active,.styles__DateMonthPicker__YearButton___3zNDK:active,.styles__DateMonthPicker__YearButton___3zNDK:hover:active{background-color:var(--actionColorFocus);font-weight:700;outline:0}.styles__DateMonthPicker__MonthButton___3I_Mm,.styles__DateMonthPicker__YearButton___3zNDK{background:none;min-height:3rem;min-width:3rem;display:inline-block;border-width:0;color:var(--secondaryTextColor);cursor:pointer}.styles__DateMonthPicker__MonthButton___3I_Mm:focus,.styles__DateMonthPicker__YearButton___3zNDK:focus{outline:0}.styles__DateMonthPicker__YearControls___1DGlB{justify-content:center;display:flex;align-items:center;border-radius:8px;border:1px solid var(--borderMainColor);overflow:hidden;margin-bottom:1rem;font-weight:700}.styles__DateMonthPicker__YearButton___3zNDK{flex-grow:0;cursor:pointer}.styles__DateMonthPicker__Year___387bP{flex-grow:1;display:inline-flex;justify-content:center}.styles__DateMonthPicker__MonthGrid___TCFg4{display:grid;grid-template-columns:repeat(4,auto);grid-template-rows:repeat(3,1fr);overflow:hidden;grid-gap:1rem}.styles__DateMonthPicker__MonthButton___3I_Mm{border-radius:3rem}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm{font-weight:700}.styles__divider___SuA5q{align-items:center;display:flex}.styles__divider___SuA5q:after,.styles__divider___SuA5q:before{content:\"\";height:1px;background-color:var(--dividerColor)}.styles__divider___SuA5q:before{display:none;margin-right:.5rem}.styles__divider___SuA5q:after{flex:1;margin-left:.5rem}.styles__center___3K8dw:before{display:block;flex:1}.styles__c-empty___3w5oV{display:flex;flex-direction:column;justify-content:center;flex:1 0 auto;align-self:center;padding:1rem 0;text-align:center;max-width:100%}.styles__c-empty-img___2GC4d{display:block;margin:0 auto 1rem;height:8rem}@media (max-width:63.938rem){.styles__c-empty-img___2GC4d{margin-bottom:.5rem;height:6rem}}.styles__c-empty-img--medium___1d2Zd{height:10rem}@media (max-width:63.938rem){.styles__c-empty-img--medium___1d2Zd{height:8rem}}.styles__c-empty-img--large___3s3vC{height:12rem}@media (max-width:63.938rem){.styles__c-empty-img--large___3s3vC{height:10rem}}.styles__c-empty-title___2HduE{margin:0 auto;max-width:63rem;line-height:1.3}@media (max-width:63.938rem){.styles__c-empty-title___2HduE{margin:0 1.5rem}}.styles__c-empty-text___3HnvR{margin:.313rem auto 0;max-width:63rem;color:var(--secondaryTextColor);line-height:1.5}@media (max-width:63.938rem){.styles__c-empty-text___3HnvR{margin:.313rem 1.5rem 0}}.styles__c-label___o4ozG{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:700;line-height:1rem}.styles__c-label___o4ozG.styles__is-error___2Dwem{color:var(--pomegranate)}.styles__c-label--block___2ZV_7{display:block;padding:.5rem 0}.styles__o-field___3n5HM{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.styles__o-field--inline___7JWZ8{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.styles__o-field--inline___7JWZ8{flex-direction:column;margin-left:0}}.styles__o-field--inline___7JWZ8{margin:0}.styles__o-field--inline___7JWZ8 label{flex-basis:8rem;flex-shrink:0;flex-grow:0;padding:1rem 0}@media (max-width:48rem){.styles__o-field--inline___7JWZ8 label{flex-basis:auto}}.styles__o-field--inline___7JWZ8>*{flex-grow:1}.styles__o-field-input___vCqdV{position:relative;max-width:32rem}.styles__o-field-input-action___2k7a8,.styles__o-side___tXbXL{position:absolute;top:.5rem;right:0;cursor:pointer;text-transform:uppercase}.styles__o-side-fullwidth___7WcCI{max-width:100%}.styles__o-field-input-action___2k7a8{top:-1.5rem;text-transform:uppercase}.Figure__Figure-currency___195-B{color:var(--secondaryTextColor)}.Figure__Figure-content--positive___1qyd8,.Figure__Figure-content--positive___1qyd8 .Figure__Figure-currency___195-B{color:var(--successColor)}.Figure__Figure-content--negative___3ACbA,.Figure__Figure-content--negative___3ACbA .Figure__Figure-currency___195-B{color:var(--errorColor)}.Figure__Figure-content--warning___1Pn6n,.Figure__Figure-content--warning___1Pn6n .Figure__Figure-currency___195-B{color:var(--warningColor)}.Figure__Figure-total___MZ7Xt{font-weight:900}.Figure__Figure__currency--withSpacing___2eXTy{margin-left:.2em}.Figure__Figure--big___1b5ml{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.Figure__Figure--big___1b5ml{font-size:1.5rem;line-height:1.75rem}}.Figure__Figure--clickable___3i82u{cursor:pointer}.Figure__Figure_blur___1p0la{filter:blur(8px)}.Figure__Figure--inline___2L5SE{display:inline}.FigureBlock__FigureBlock___YyBoL{color:var(--primaryTextColor)}.FigureBlock__FigureBlock-figure___97C8E{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.FigureBlock__FigureBlock___YyBoL{font-size:.7em}}.styles__c-file-input___YNZSh{cursor:pointer}.styles__c-file-path___XvgNN{display:block;color:var(--secondaryTextColor);font-size:.75rem;text-decoration:none;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.styles__filePickerBreadcrumb-previousPath___3LKJH{color:var(--actionColorActive);cursor:pointer}.styles__filePickerBreadcrumb-icon___3aFyd{color:var(--actionColorActive);margin:0 .25rem}@supports (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:contents}}@supports not (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:flex;flex:1 1 auto;align-items:center;width:100%}}.styles__c-filename-wrapper___3tVpA{display:flex}.styles__c-filename-wrapper___3tVpA :last-child{flex-shrink:0}.styles__c-filename-name___1jDMz{display:inline;width:auto}.styles__Hero___14z7_{margin-left:auto;margin-right:auto}.styles__Hero-title___256Uz{text-align:center;margin:3rem 0}.styles__Hero-subtitle___1E_WG{margin-bottom:0}@media (max-width:48rem){.styles__Hero-subtitle___1E_WG{margin-top:.5rem}}.styles__Hero___14z7_ p{line-height:1.25}.styles__Hero-sections___ETV6e{display:flex;justify-content:space-around}@media (max-width:48rem){.styles__Hero-sections___ETV6e{flex-direction:column;align-items:center}}.styles__Hero-section___1BcNz{max-width:18.75rem;text-align:center;flex-grow:1;flex-basis:100%}@media (max-width:48rem){.styles__Hero-section___1BcNz{max-width:auto;margin-bottom:2rem}}.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:2rem}@media (max-width:48rem){.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:0}}.styles__Hero-cta___2KhwU{text-align:center;max-width:32rem;margin-left:auto;margin-right:auto;margin-top:2rem}.styles__HistoryRowCircleWrapper___3r8Uo{width:2.6rem;height:2.6rem;justify-content:center;display:flex;align-self:start}.styles__HistoryRowCircle___4FWWa{border:1px solid var(--dividerColor);background-color:var(--paperBackgroundColor)}.styles__HistoryRowRevisionLoader___a5y5b{display:flex;justify-content:center}.styles__HistoryRowCaption___2fe_H{margin-bottom:2rem;padding-left:2rem;padding-right:2rem}.styles__HistoryRowMedia___2jgYN{position:relative;padding:1rem}.styles__HistoryRowMedia___2jgYN:before{content:\"\";border-left:1px dashed var(--dividerColor2);position:absolute;margin-left:20px;top:2.125rem;bottom:-1rem}.styles__HistoryRowMedia___2jgYN:last-child:before{border:0}.styles__HistoryRowMediaImg___1J9OI{align-self:flex-start;z-index:1}.styles__icon--spin___ybfC1{animation:styles__spin___2Vvw3 1s linear infinite}@media (prefers-reduced-motion:reduce){.styles__icon--spin___ybfC1{animation:none}}@-webkit-keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.styles__icon___23x3R{fill:var(--iconColor);transform:translateZ(0)}.styles__icon--preserveColor___3gBz6{fill:inherit}.styles__IconStack-wrapper___10dhG{position:relative;display:inline-block}.styles__IconStack-foregroundIcon___ZvY-t{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.styles__c-input-text___3TAv1[aria-disabled=true],.styles__c-input-text___3TAv1[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-input-text___3TAv1[aria-disabled=true]:focus,.styles__c-input-text___3TAv1[aria-disabled=true]:hover,.styles__c-input-text___3TAv1[disabled]:focus,.styles__c-input-text___3TAv1[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-input-text___3TAv1{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-input-text___3TAv1::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-input-text___3TAv1:hover{border:.063rem solid var(--coolGrey)}.styles__c-input-text___3TAv1:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-input-text___3TAv1.styles__is-error___3lsCJ,.styles__c-input-text___3TAv1:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-input-text--tiny___MzMoD{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-input-text--medium___28jPV{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-input-text--large___28EaR{border-radius:.188rem;padding:.813rem 1rem}.styles__c-input-text--fullwidth___33o_f{max-width:100%}.styles__c-inputgroup___12OVJ input[aria-disabled=true],.styles__c-inputgroup___12OVJ input[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-inputgroup___12OVJ input[aria-disabled=true]:focus,.styles__c-inputgroup___12OVJ input[aria-disabled=true]:hover,.styles__c-inputgroup___12OVJ input[disabled]:focus,.styles__c-inputgroup___12OVJ input[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-inputgroup___12OVJ input{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-inputgroup___12OVJ input::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-inputgroup___12OVJ input:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup___12OVJ input:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-inputgroup___12OVJ input.styles__is-error___2dj3S,.styles__c-inputgroup___12OVJ input:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-inputgroup___12OVJ{display:inline-flex;flex-direction:row;box-sizing:border-box;align-items:stretch;width:100%;max-width:32rem;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__c-inputgroup___12OVJ:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup--focus___Tk5-Z,.styles__c-inputgroup--focus___Tk5-Z:hover{border-color:var(--dodgerBlue)}.styles__c-inputgroup--error___1JNbu{border-color:var(--pomegranate)}.styles__c-inputgroup--fullwidth___3nuay{max-width:none}.styles__c-inputgroup-main___1LP4B{flex:1 1 auto}.styles__c-inputgroup___12OVJ input{border:0;padding-right:.5rem}.styles__c-inputgroup___12OVJ input:focus,.styles__c-inputgroup___12OVJ input:hover{position:relative;z-index:1;border:0;outline:0}.styles__c-inputgroup-side___60v0v{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;max-width:8.75rem}.styles__c-inputgroup-unit___bFj9a{padding-left:1rem;padding-right:1rem;font-weight:700}.styles__intentHeader___m5Qjh{display:flex;align-items:center;height:2rem;padding:.5rem 1rem;background-color:var(--paleGrey);margin:0;flex-basis:auto;flex-shrink:0}.styles__intentHeader-title___1r4ex{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__intentHeader-title___1r4ex span{font-weight:400}.styles__intentHeader-icon___3s30C{height:1.125rem;margin-right:.5rem}iframe{width:100%;height:100%;border:0}.styles__intentContainer___gZbMl,.styles__intentPlaceHolder___EWSR1{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.styles__intentContainer___gZbMl[aria-busy=true] iframe{height:0;width:0}.styles__intentContainer__error___yQ7K8{color:red;font-size:1.5em}.styles__intentWrapper___1ZMvW{display:flex;flex-flow:column nowrap;align-items:stretch;position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__intentWrapper___1ZMvW .styles__intentHeader___3TDUp{display:flex;align-items:center;padding:.25rem 1rem;margin:0}.styles__intentWrapper___1ZMvW .styles__intentContent___1ilx7 [class^=c-header-icon--ghost]{margin:0}.styles__CollectionField__addBtn___Z0FO-{margin-left:0;margin-right:0}.styles__CollectionField__addBtnIcon___1hA5b{margin-right:.5rem}.styles__CollectionField__row___Z7bbf{display:flex;align-items:center}.styles__CollectionField__row___Z7bbf>*+*{margin-left:1rem}.styles__iconGrid___7nBAB{display:grid;grid-template-columns:repeat(2,16px);grid-template-rows:repeat(2,16px);grid-gap:1px}.styles__PasswordInput___3Oa3V{display:inline-flex;flex-direction:column;width:100%;max-width:32rem}.styles__PasswordInput--withStrength___1Msxm{border-bottom-left-radius:0;border-bottom-right-radius:0}.styles__PasswordInput__strength___1hpSg{background-color:var(--paleGrey);border-radius:.188rem;border-top-left-radius:0;border-top-right-radius:0;border:.063rem solid var(--silver);border-top:0;box-sizing:border-box;height:.25rem}.styles__PasswordInput__strength--weak___dzrGl{color:var(--pomegranate)}.styles__PasswordInput__strength--weak___dzrGl::-webkit-progress-value{background-color:var(--errorColor)}.styles__PasswordInput__strength--weak___dzrGl::-moz-progress-bar{background-color:var(--errorColor)}.styles__PasswordInput__strength--moderate___1ME_z{color:var(--texasRose)}.styles__PasswordInput__strength--moderate___1ME_z::-webkit-progress-value{background-color:var(--warningColor)}.styles__PasswordInput__strength--moderate___1ME_z::-moz-progress-bar{background-color:var(--warningColor)}.styles__PasswordInput__strength--strong___3yuP0{color:var(--emerald)}.styles__PasswordInput__strength--strong___3yuP0::-webkit-progress-value{background-color:var(--successColor)}.styles__PasswordInput__strength--strong___3yuP0::-moz-progress-bar{background-color:var(--successColor)}.styles__PasswordInput__visibilityButton___2B6RJ{height:100%;width:3rem;background-color:initial;border:0}.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{display:block}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{display:block;overflow:visible}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{content:\"\";display:block}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{height:3rem}}.styles__o-layout-2panes___1CDQw{flex:0 0 100%;align-items:stretch}.styles__o-layout-2panes___1CDQw>aside{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main]{height:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw>aside{position:fixed;bottom:0;left:0;display:block;z-index:var(--zIndex-nav);width:100%}}.styles__c-nav___33dZy{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.styles__c-nav___33dZy{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.styles__c-nav-item___3XOLK{position:relative;z-index:var(--zIndex-app);height:3rem;box-sizing:border-box;cursor:pointer}.styles__c-nav-item___3XOLK:hover:before{content:\"\";position:absolute;z-index:var(--zIndex-below);border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item___3XOLK:hover:before{content:none}}@media (max-width:63.938rem){.styles__c-nav-item___3XOLK{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.styles__c-nav-item___3XOLK:hover:before{content:none}}.styles__c-nav-icon___hrJUe{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.styles__c-nav-icon___hrJUe svg{display:block}.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}:hover>.styles__c-nav-icon___hrJUe{color:var(--navTextColor)}@media (max-width:63.938rem){.styles__c-nav-icon___hrJUe{display:block;margin-right:0}.styles__c-nav-icon___hrJUe svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.styles__c-nav-text___1J3yU{display:block;text-align:center;white-space:nowrap}}.styles__c-nav-link___3mK6W{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem}.styles__c-nav-link___3mK6W:visited{color:var(--navTextColor)}.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:700;color:var(--navTextActiveColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}@media (max-width:63.938rem){.styles__c-nav-link___3mK6W{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:top;background-size:1.5rem}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN,.styles__c-nav-link___3mK6W:hover{box-shadow:none;font-weight:400}}@media not all and (pointer:fine){.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextColor)}}.styles__c-nav-item-secondary___k14rf{height:auto}.styles__c-nav-item-secondary___k14rf+.styles__c-nav-item-secondary___k14rf{margin-top:.125rem}@media (max-width:63.938rem){.styles__c-nav-item-secondary___k14rf{display:none}}.styles__c-nav-item-secondary___k14rf:hover:before{content:\"\";position:absolute;z-index:var(--zIndex-below);border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item-secondary___k14rf:hover:before{content:none}}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W.styles__is-active___2D0jN{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.styles__DesktopSectionWrapper___1rIWP{list-style-type:none}.styles__Modal__back___qxUn_{cursor:pointer;margin-right:.5rem;margin-left:-.25rem;font-size:1.5rem;line-height:0;margin-bottom:-1rem;position:relative;top:-.5rem}.styles__OrderedList___17A_o{list-style:none;counter-reset:cozy-ui-ordered-list;padding-left:0;line-height:1.5}.styles__ListItem___2Lu4a{counter-increment:cozy-ui-ordered-list;position:relative;padding-left:1.5rem}.styles__ListItem___2Lu4a:before{content:counter(cozy-ui-ordered-list) \". \";font-weight:700;position:absolute;left:0;top:0}.styles__PageFooter___2IFCx{flex-grow:0}.styles__PageContent___DbPFL{flex-grow:1}.styles__PageLayout___1ptQY{display:flex;flex-direction:column}.styles__Panel-group___1txSp{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;box-sizing:border-box}.styles__Panel-main___2BRfq{flex:1 0 65%;overflow:auto}.styles__Panel-side___327EK{flex:0 0 35%;background:var(--paleGrey);overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:1.5rem}@media (max-width:30rem){.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:.5rem}}@media (max-width:48rem){.styles__Panel-group___1txSp{display:block;overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{flex-basis:auto}}.styles__Token--number___2EzoN{color:#297ef2}.styles__Token--special___3_rSu{color:#b449e7}.styles__select--disabled___1W3en{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border:.063rem solid var(--dividerColor)}.styles__select--fullwidth___2l_xM{max-width:100%;padding-right:2.375rem}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border-width:0}.styles__select-control__input___1xDlj{width:0;height:0;overflow:hidden}.styles__select--autowidth___16AEp{max-width:32rem}.styles__select--fullwidth___2l_xM{padding-right:0}.styles__select-option___ov_IT{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:.5rem;border-left:.25rem solid transparent;color:var(--charcoalGrey);transition:all .2s ease-out;white-space:normal}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey);cursor:pointer}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57) .styles__select-option__actions___2WOjb{opacity:1}.styles__select-option--focused___1Vpjv:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey)}.styles__select-option--selected___R3_ES{background-color:var(--paleGrey);border-left-color:var(--primaryColor)}.styles__select-option--disabled___1du57{color:var(--silver);cursor:not-allowed}.styles__select-option__checkbox___15WVE{margin-right:.5rem;vertical-align:top}.styles__select-option__label___1Xi5R{flex-grow:1;display:flex;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.styles__select-option__checkmark___ChXXs{width:2rem}.styles__select-option__actions___2WOjb{opacity:0;white-space:nowrap;transition:opacity .2s ease-out}@media (max-width:63.938rem){.styles__select-option__actions___2WOjb{opacity:1}}.styles__select__overlay___3H8Jy:before{content:\"\\A0\";width:200vw;height:200vh;top:-50vh;left:-50vh;display:block;position:fixed}.styles__MenuList___1H_pH{display:flex;flex-direction:column}.styles__FixedGroup___2izTc,.styles__Group___J6s7k{overflow-y:auto;padding-top:.25rem!important;padding-bottom:.25rem!important}.styles__FixedGroup___2izTc{flex-shrink:0;border-top:1px solid silver}.styles__SelectionBar___3UOqy{position:fixed;z-index:var(--zIndex-selection);top:0;left:0;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;height:3.25rem;color:var(--white);background-color:var(--slateGrey);font-weight:700}.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0 1rem;min-width:3rem}@media (max-width:48rem){.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0;text-align:center}}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR{margin:0 .25rem;color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR:hover{color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action--withLabel___3TJq3{margin:0 .5rem}@media (max-width:63.938rem){.styles__SelectionBar___3UOqy{top:auto;bottom:0;box-sizing:initial;height:3rem;padding-bottom:env(safe-area-inset-bottom)}}:root{--sidebarHeight:3rem}.styles__o-sidebar___1295j{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.styles__o-sidebar___1295j{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.styles__c-spinner___1snK7{display:inline-block;margin:0 .5rem}.styles__c-spinner___1snK7:before{content:\"\"}.styles__c-spinner___1snK7 p{margin-top:.938rem;line-height:1.5}.styles__c-spinner--middle___RwyII{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center}.styles__c-spinner--middle___RwyII:before{display:block;margin:0 auto}.styles__c-spinner--nomargin___13JyW{margin:0}.styles__SquareAppIcon-wrapper___2SEuM{box-sizing:border-box;background-color:var(--paperBackgroundColor);border-radius:.75rem;height:4rem;width:4rem;transition:transform .3s,border-radius .3s}@media (max-width:48rem){.styles__SquareAppIcon-wrapper___2SEuM{height:3rem;width:3rem}}.styles__SquareAppIcon-icon-container___39MRl{display:flex;align-items:center;justify-content:center;padding:.625rem;border-radius:.75rem;width:100%}@media (max-width:48rem){.styles__SquareAppIcon-icon-container___39MRl{padding:.5rem}}.styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-icon-container___39MRl svg{width:100%}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:screen}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl svg{filter:saturate(0)}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y svg{opacity:.5}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl svg{opacity:.5}.styles__SquareAppIcon-wrapper-loading___3A1_X{border-radius:50%;transform:scale(.875)}@media (max-width:48rem){.styles__SquareAppIcon-wrapper-loading___3A1_X{transform:scale(.8334)}}.styles__SquareAppIcon-spinner___o0LO1{margin:0!important}.styles__onEnd___1O6Q7,.styles__SquareAppIcon-spinner___o0LO1 svg{position:absolute;height:100%;width:100%}.styles__onEnd___1O6Q7{align-items:center;border-radius:50%;display:flex;opacity:0;z-index:1}.styles__onEnd___1O6Q7 svg{fill:transparent!important}.styles__onEnd___1O6Q7 svg path{animation-duration:.2s!important}.styles__onEnd___1O6Q7 svg path:first-of-type{animation-delay:.2s!important}.styles__onEnd___1O6Q7 svg path+path{animation-delay:.36s!important}.styles__onEnd___1O6Q7 svg *{stroke:var(--white)!important}.styles__onEnd___1O6Q7.styles__isFailed___2AYxx{--animationColor:var(--errorColor)}.styles__onEnd___1O6Q7.styles__isSuccess___I6nFq{--animationColor:var(--successColor)}.styles__isFailed___2AYxx,.styles__isSuccess___I6nFq{animation:styles__end-animation___1O0b3 1.5s forwards}@-webkit-keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}@keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}.styles__Stack--m___1tSpV>*+*{margin-top:1rem}.styles__Stack--xs___2R5lW>*+*{margin-top:.5rem}.styles__Stack--s___22WMg>*+*{margin-top:.75rem}.styles__Stack--l___3oxCJ>*+*{margin-top:1.5rem}.styles__Stack--xl___3qy-m>*+*{margin-top:2rem}.styles__Stack--xxl___2KAsb>*+*{margin-top:3rem}.styles__Table___x3ZsI{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.styles__TableHead___1rqhM{flex:0 0 2rem}@media (max-width:48rem){.styles__TableHead___1rqhM{display:none}}.styles__TableBody___1EfpK{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.styles__TableBody___1EfpK{max-height:100%}}.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:var(--actionColorHover)}@media (hover:none){.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:initial}}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child,.styles__TableRow___1D62H:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{max-width:100vw}}.styles__TableHead___1rqhM .styles__TableRow___1D62H{border:0}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover{background-color:initial}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child{border-bottom:0}.styles__TableCell___yJCq7,.styles__TableHeader___FWkmV{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.styles__TableHeader___FWkmV{padding:.5rem 1rem;font-size:.75rem;font-weight:700;text-transform:uppercase}.styles__c-textarea___D7EEH[aria-disabled=true],.styles__c-textarea___D7EEH[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-textarea___D7EEH[aria-disabled=true]:focus,.styles__c-textarea___D7EEH[aria-disabled=true]:hover,.styles__c-textarea___D7EEH[disabled]:focus,.styles__c-textarea___D7EEH[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-textarea___D7EEH{display:inline-block;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-textarea___D7EEH::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-textarea___D7EEH:hover{border:.063rem solid var(--coolGrey)}.styles__c-textarea___D7EEH:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-textarea___D7EEH.styles__is-error___1kGLj,.styles__c-textarea___D7EEH:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-textarea--tiny___3fmPW{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-textarea--medium___T8f3b{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-textarea--fullwidth___Ih_mg{max-width:100%}.styles__c-textarea___D7EEH{display:block;width:100%;min-height:7.5rem;resize:vertical}.styles__c-textarea--tiny___3fmPW{min-height:3rem}.styles__c-textarea--medium___T8f3b{min-height:5rem}.Thumbnail__container___2Eg5o{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:32px;width:32px;z-index:var(--zIndex-app)}.Thumbnail__wrapper___ZoPVg{box-sizing:border-box;display:inherit;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg>*{max-width:26px;max-height:26px}.Thumbnail__wrapper___ZoPVg>:not(img){width:26px;height:26px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR{position:relative;max-width:29px;max-height:29px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR:after{content:\"\";position:absolute;width:100%;height:100%;z-index:var(--zIndex-below);top:-6px;left:0;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>*{max-width:23px;max-height:23px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>:not(img){width:23px;height:23px}.styles__Tile___2SqRi{box-sizing:border-box;position:relative;display:flex;flex-direction:column;flex:0 0 8.75rem;width:8.75rem;height:8.75rem;align-items:center;background:var(--paperBackgroundColor);border-radius:4px;border:1px solid var(--dividerColor);padding:.375rem;margin-bottom:1rem;margin-right:.75rem;overflow:hidden;transition:all .15s ease}.styles__Tile___2SqRi.styles__Tile-secondary___2zYdn{background:var(--defaultBackgroundColor);border-color:var(--defaultBackgroundColor)}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);cursor:pointer;transform:scale(1.1)}@media (max-width:48rem){.styles__Tile___2SqRi{flex-basis:100%;flex-direction:row;height:3.75rem;justify-content:flex-start;margin-right:.5rem;margin-bottom:.5rem;padding-left:.5rem}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{transform:scale(1.01)}}.styles__Tile-icon-wrapper___24AzZ{margin-top:.25rem;margin-bottom:.25rem;width:3rem;height:3rem}.styles__Tile-desc___3lPj6{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;margin-top:.5rem;text-align:center;max-width:100%}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{display:block;margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.styles__Tile-title___3gbq-{color:var(--black)}.styles__Tile-title___3gbq-.styles__Tile-title-multiline___17HPx{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.styles__Tile-developer___2GOfB{height:1rem}.styles__Tile-status___33VkE{margin-top:.5rem;height:1rem}.styles__Tile-status___33VkE.styles__Tile-status-accent___an9au{color:var(--primaryColor)}@media (max-width:48rem){.styles__Tile-icon-wrapper___24AzZ{margin-top:0;margin-bottom:0;width:3rem;height:2.5rem}.styles__Tile-desc___3lPj6{margin-top:0;margin-left:.5rem;text-align:left;flex-grow:1}.styles__Tile-title___3gbq-{height:1rem;font-weight:400;font-size:.75rem!important}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{width:100%}.styles__Tile-developer___2GOfB{display:none}.styles__Tile-status___33VkE{margin-top:.125rem}}.styles__toggle___3zVsE{display:inline-block;width:2.5rem;height:1.5rem}.styles__checkbox___3ko96{display:none}.styles__label___3jY1f{position:relative;display:inline-block;width:100%;height:100%;border-radius:1rem;background:var(--silver);transition:all .2s ease-out;cursor:pointer}.styles__label___3jY1f:before{position:absolute;top:0;bottom:0;left:.125rem;display:inline-block;width:1.25rem;height:1.25rem;margin:auto;border-radius:50%;content:\"\";background:var(--white);transition:all .2s ease-out}.styles__checkbox___3ko96:checked+.styles__label___3jY1f{background:var(--emerald)}.styles__checkbox___3ko96:checked+.styles__label___3jY1f:before{left:1.125rem}.styles__UnorderedList___2uFFY{padding-left:0;list-style:none}.styles__ListItem___3cRoI{position:relative;line-height:1.5;padding-left:1.5rem}.styles__ListItem___3cRoI:before{content:\"\";position:absolute;top:.75rem;left:0;width:.5rem;height:.5rem;background-color:var(--slateGrey);border-radius:50%;transform:translateY(-50%)}.styles__upload-queue___1VtNK{border:.0625rem solid var(--dividerColor);border-radius:.25rem;background-color:var(--paperBackgroundColor);display:flex;flex-direction:column;max-width:90%;width:30rem}.styles__upload-queue__threshold-bar___tTYal{min-width:10rem;margin-right:1rem}.styles__upload-queue__progress-caption___1-vXY{line-height:.75rem;height:1rem}.styles__upload-queue__upload-progress___1q-uS{align-items:center;display:flex;margin-top:.125rem}.styles__upload-queue--popover___2z1a4{z-index:var(--zIndex-popover);border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor);position:fixed;bottom:.5rem;right:1.5rem;height:13.125rem;transform:translateY(18.75rem);transition:.5s;opacity:0;visibility:hidden}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{opacity:1;visibility:visible;transform:translate(0)}.styles__upload-queue-header___c9Vf2{display:flex;flex-direction:column;justify-content:center;height:2rem;background-color:var(--defaultBackgroundColor);font-weight:700;margin:0;padding:.5rem 1rem}.styles__upload-queue-header___c9Vf2 .styles__upload-queue-header-inner___26wpB{display:flex;justify-content:space-between;align-items:center}progress.styles__upload-queue-progress___1CmN-{-webkit-appearance:none;-moz-appearance:none;border:none;display:block;width:100%;height:.125rem;margin:0}.styles__upload-queue-content___3MPHo{overflow:auto}.styles__upload-queue--collapsed___3cchD{height:2.5rem}.styles__upload-queue--collapsed___3cchD .styles__upload-queue-content___3MPHo{visibility:none}.styles__upload-queue-list___OVvJm{flex:1 1 auto;display:flex;flex-direction:column}.styles__upload-queue-item--error___2sSeV{background-color:var(--errorBackground)}.styles__upload-queue-item--done___2PSJI{background-color:var(--defaultBackgroundColor)}.styles__item-file___1kfDn{user-select:none;overflow:hidden}.styles__item-status___3FNcY{flex:0 0 15%;text-align:right;white-space:nowrap;padding-left:1rem}@media (max-width:63.938rem){.styles__upload-queue___1VtNK{border-radius:0;border:0;background-color:var(--paperBackgroundColor);box-shadow:none;width:100%;max-width:100%;height:auto;transform:none}.styles__upload-queue-header___c9Vf2{background:0;text-transform:uppercase;padding:.5rem}.styles__upload-queue-content___3MPHo{display:none}.styles__upload-queue--popover___2z1a4{top:3rem;bottom:auto;right:0;left:0;z-index:calc(var(--zIndex-app) + 3);max-height:0}.styles__upload-queue--popover___2z1a4:before{position:fixed;top:2.9375rem;z-index:var(--zIndex-nav);width:100%;height:.0625rem;content:\"\";background:var(--paperBackgroundColor)}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{max-height:30%}.styles__upload-queue--popover___2z1a4 .styles__upload-queue-content___3MPHo{display:none}}.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{position:relative;display:flex;width:60%;max-height:calc(100% - 4rem);justify-content:center;align-items:center;flex-direction:column;margin-top:4rem}.styles__viewer-audioviewer___1OQPB h2,.styles__viewer-canceled___pOA_O h2,.styles__viewer-imageviewer___26k0p h2,.styles__viewer-noviewer___auG-6 h2,.styles__viewer-pdfviewer___1gTP9 h2,.styles__viewer-textviewer___3u5Zw h2,.styles__viewer-videoviewer___NhFoe h2{max-width:90%}@media (max-width:63.938rem){.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{margin-left:0;width:100%;max-height:calc(100% - 6.5rem);margin-top:-.5rem}}.styles__viewer-videoviewer___NhFoe video{width:100%;max-width:31.25rem;height:auto}.styles__viewer-textviewer___3u5Zw .styles__viewer-textviewer-content___PB-c3{white-space:pre-line;width:100%;max-height:70%;overflow:auto}.styles__viewer-textviewer___3u5Zw a{color:var(--azure)}@media (max-width:63.938rem){.styles__viewer-textviewer___3u5Zw{width:90%;margin-left:5%}}.styles__viewer-filename___3jZCt{max-width:90%;text-overflow:ellipsis;overflow:hidden}.styles__viewer-pdfviewer-pdf___16ID9{overflow:auto;width:100%}.styles__viewer-pdfviewer-page___2RPuw>*{margin:auto}.styles__viewer-pdfviewer-toolbar___3NXOk{position:absolute;bottom:2rem;background:var(--charcoalGrey);color:var(--white);border-radius:.5rem}.styles__viewer-imageviewer___26k0p{flex:1 1 100%;width:auto;max-width:100%}.styles__viewer-imageviewer___26k0p img{display:block;max-width:100%;max-height:100%;box-shadow:0 .375rem 1.5rem 0 rgba(0,0,0,.5)}.styles__viewer-pdfMobile___25FPg{width:100%;height:calc(100% - 6.5rem - var(--flagship-top-height));margin-top:calc(var(--flagship-top-height, 0rem) + -.5rem)}.styles__viewer-pdfMobile--image___3gpFL{width:100%}.styles__ActionMenuDesktop-ActionMenu___1iicy a{padding:0!important}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div{cursor:default}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div:hover{background-color:initial}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div svg{fill:var(--disabledTextColor)}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div p{color:var(--disabledTextColor)}.styles__viewer-wrapper___2GIXH{position:absolute;left:0;right:0;top:0;bottom:0;z-index:var(--zIndex-overlay);overflow:hidden;background:var(--charcoalGrey);color:var(--white)}.styles__flagship-app___KFqbm .styles__viewer-wrapper___2GIXH{padding-top:var(--flagship-top-height);padding-bottom:var(--flagship-bottom-height)}@media (max-width:63.938rem){.styles__viewer-wrapper___2GIXH{color:var(--charcoalGrey);background:var(--white)}}.styles__viewer-nav___1MSd7{position:absolute;top:4rem;bottom:0;z-index:var(--zIndex-modal-toolbar);width:20%;cursor:pointer;background-color:initial;transition:opacity .4s ease-out;opacity:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.styles__viewer-nav--visible___h_KJD:hover{opacity:1;transition:none}.styles__viewer-nav--previous___WOwzv{left:0}.styles__viewer-nav--previous___WOwzv .styles__viewer-nav-arrow___3_d1_{align-self:flex-start;margin-left:2.5rem;transform:rotate(180deg)}.styles__viewer-nav--next___1ah-4{right:0}.styles__viewer-nav--next___1ah-4 .styles__viewer-nav-arrow___3_d1_{align-self:flex-end;margin-right:2.5rem}@media (max-width:63.938rem){.styles__viewer-nav___1MSd7{display:none}}.styles__viewer-nav-arrow___3_d1_{opacity:.7}.styles__viewer-controls___1BYEX{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.styles__viewer-controls___1BYEX.styles__--expanded___2NoA- .styles__viewer-nav___1MSd7{margin-top:0;width:40%}@media (max-width:63.938rem){.styles__viewer-controls--display-content-top___3I1xq{justify-content:flex-start;padding-top:3.5rem}}.styles__viewer-toolbar___2zPR7{position:absolute;top:0;z-index:var(--zIndex-modal-toolbar);display:flex;flex-shrink:0;width:calc(100% - 2rem);padding:0 1rem;height:4rem;transition:opacity .4s ease-out;background:linear-gradient(180deg,var(--charcoalGrey),rgba(50,54,63,0));justify-content:flex-start;align-items:center}.styles__viewer-toolbar--hidden___3r3Sj{opacity:0}@media (max-width:63.938rem){.styles__viewer-toolbar___2zPR7{height:3rem;width:100%;padding:var(--flagship-top-height) 1rem 0 0;background:var(--paperBackgroundColor);border-bottom:1px solid var(--dividerColor)}}.styles__viewer-footer___2ieQS{position:fixed;bottom:0;z-index:var(--zIndex-modal-footer);width:100%;height:3.5rem;padding-bottom:var(--flagship-bottom-height,env(safe-area-inset-bottom));background:var(--paperBackgroundColor)}.styles__wizard-select___2-yNW[aria-disabled=true],.styles__wizard-select___2-yNW[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__wizard-select___2-yNW[aria-disabled=true]:focus,.styles__wizard-select___2-yNW[aria-disabled=true]:hover,.styles__wizard-select___2-yNW[disabled]:focus,.styles__wizard-select___2-yNW[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__wizard-select___2-yNW{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__wizard-select___2-yNW::placeholder{color:var(--coolGrey);font-size:1rem}.styles__wizard-select___2-yNW:hover{border:.063rem solid var(--coolGrey)}.styles__wizard-select___2-yNW:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__wizard-select___2-yNW.styles__is-error___1X2dc,.styles__wizard-select___2-yNW:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__wizard-select--medium___kyH-1{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__wizard-select--medium___kyH-1,.styles__wizard-select___2-yNW{padding-right:2.375rem}.styles__wizard-select___2-yNW{appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__wizard-select___2-yNW::-ms-expand{display:none}.styles__wizard-wrapper___38V4s{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__wizard-main___ObvId{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__wizard-footer___-ZrgM,.styles__wizard-header___2_r05{flex:0 0 auto}.styles__wizard___m6AMR{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard___m6AMR{flex-direction:column;justify-content:flex-start}}.styles__wizard-wrapper___38V4s{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper___38V4s{justify-content:flex-start}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper--center___EWQI3{justify-content:center}}.styles__wizard-errors___1ufSE{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.styles__wizard-errors___1ufSE p{margin:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-errors___1ufSE{margin-top:.5rem}}.styles__wizard-header___2_r05{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-header___2_r05{margin:1rem 0 0}}.styles__wizard-main___ObvId{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.styles__wizard-main___ObvId>*{flex-shrink:0}.styles__wizard-footer___-ZrgM{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem env(safe-area-inset-bottom)}.styles__wizard-footer___-ZrgM>a:link,.styles__wizard-footer___-ZrgM>button{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-footer___-ZrgM{margin:1.5rem 0 .5rem}}.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM{justify-content:space-between}@media (min-width:30.063rem){.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>a:link,.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>button{flex:0 1 calc(50% - 0.25rem)}}.styles__wizard-logo___3Dtx1{position:relative;margin:0 auto;width:7.5rem}.styles__wizard-logo-img___2K1rs{width:100%;vertical-align:center}.styles__wizard-logo-badge___1mcMb{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.styles__wizard-desc___z9QXl{margin:2rem 0 0;line-height:1.5}.styles__wizard-desc___z9QXl a{color:var(--primaryColor);text-decoration:none}.styles__wizard-desc___z9QXl a:focus,.styles__wizard-desc___z9QXl a:hover{color:var(--primaryColorDark)}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-desc___z9QXl{margin:1.5rem 0 0}}.styles__wizard-header-fixed___39FT4{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.styles__wizard-previous___2StGt.styles__wizard-previous___2StGt{position:absolute;top:50%;left:0;transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.styles__wizard-brand____A68K{margin-left:2rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-brand____A68K{display:none}}.styles__wizard-next___38lPl{padding-right:3rem;padding-left:3rem}.styles__wizard-next___38lPl svg{position:absolute;right:1rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-input___1ltuD{border-radius:.125rem;padding:.5rem 1rem .625rem}}.styles__wizard-title___11Dzr{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-title___11Dzr{font-size:1.125rem;line-height:1.78}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard--welcome___2Os7m .styles__wizard-title___11Dzr{font-size:1.5rem;line-height:1.17}}.styles__wizard-dualfield___254s1{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__wizard-dualfield--focus___2Om-l{border-color:var(--primaryColor)}.styles__wizard-dualfield--error___2NR9g{border-color:var(--errorColor)}.styles__wizard-dualfield-wrapper___VN8PM{flex:1 1 auto}.styles__wizard-dualfield-input___2z596{border:0;padding-right:.5rem}.styles__wizard-dualfield-input___2z596:focus,.styles__wizard-dualfield-input___2z596:hover{position:relative;z-index:1;border:0;outline:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-dualfield-input___2z596{border-radius:.125rem;padding:.5rem .25rem .625rem 1rem}}.styles__wizard-protocol___4g-o1{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.styles__wizard-protocol___4g-o1 svg{fill:currentColor;margin-right:.5rem}.styles__wizard-select___2-yNW{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.styles__wizard-select___2-yNW:focus,.styles__wizard-select___2-yNW:hover{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.styles__wizard-select--medium___kyH-1{padding:.313rem 2.375rem .438rem .5rem}.styles__wizard-select--narrow___FTwrG{width:2.5rem}.styles__wizard-notice___2g62X{order:2;margin:2rem 0 0;line-height:1.5}.styles__wizard-notice___2g62X+.styles__wizard-notice___2g62X{margin-top:1rem}.styles__wizard-notice___2g62X p{margin:0}.styles__wizard-notice___2g62X a{color:var(--dodgerBlue);text-decoration:none;font-weight:700}.styles__wizard-notice___2g62X a:focus,.styles__wizard-notice___2g62X a:hover{color:var(--scienceBlue)}@media (min-width:30.063rem){.styles__wizard-notice___2g62X{margin:2rem 0 0}}.styles__wizard-notice--lost___3uoDz{font-size:1rem}.styles__c-actionmenu___IUGX7{z-index:var(--zIndex-popover);border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor)}.styles__c-actionmenu___IUGX7 hr{margin:.313rem 0;border:0;border-top:.063rem solid var(--dividerColor)}.styles__c-actionmenu___IUGX7 [role=button],.styles__c-actionmenu___IUGX7 a,.styles__c-actionmenu___IUGX7 button{display:block;padding:.5rem 2rem .5rem 2.5rem;color:var(--charcoalGrey);text-decoration:none;white-space:nowrap;cursor:pointer}.styles__c-actionmenu___IUGX7 [role=button]:hover,.styles__c-actionmenu___IUGX7 a:hover,.styles__c-actionmenu___IUGX7 button:hover{text-decoration:none}.styles__c-actionmenu___IUGX7{color:var(--primaryTextColor);--iconColor:var(--actionMenuIconColor);padding-bottom:env(safe-area-inset-bottom)}.styles__c-actionmenu___IUGX7 hr{margin-top:0}@media (max-width:48rem){.styles__c-actionmenu___IUGX7{border:0;border-radius:0}}.styles__c-actionmenu--inline___1RWrO{width:16rem}.styles__c-actionmenu-header___2p_ke{box-sizing:border-box;border-bottom:.063rem solid var(--dividerColor);padding:1rem;min-height:4rem;margin-top:-.5rem}.styles__c-actionmenu-item___WzUJQ{padding:.75rem 0;cursor:pointer}.styles__c-actionmenu-item___WzUJQ:hover{background-color:var(--actionColorHover)}.styles__c-actionmenu-radio___38gls{height:1rem;width:1rem;margin-top:.125rem;margin-bottom:0}.styles__c-btn--alert-error___3uH5i,.styles__c-btn--alert-info___1xAkg,.styles__c-btn--alert-success___3PgiM{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:700;font-size:.875rem;text-decoration:none}.styles__c-btn--alert-error___3uH5i{color:#f52d2d!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-error___3uH5i:visited{color:#f52d2d!important}.styles__c-btn--alert-error___3uH5i:active,.styles__c-btn--alert-error___3uH5i:focus,.styles__c-btn--alert-error___3uH5i:hover{color:var(--monza)!important;background-color:#fdcbcb!important;border-color:#fdcbcb!important}.styles__c-btn--alert-info___1xAkg{color:var(--white)!important;border-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1xAkg,.styles__c-btn--alert-info___1xAkg[aria-disabled=true]:hover,.styles__c-btn--alert-info___1xAkg[disabled]:hover{background-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1xAkg:visited{color:var(--white)!important}.styles__c-btn--alert-info___1xAkg:active,.styles__c-btn--alert-info___1xAkg:focus,.styles__c-btn--alert-info___1xAkg:hover{background-color:var(--charcoalGrey)!important;border-color:var(--charcoalGrey)!important}.styles__c-btn--alert-success___3PgiM{color:#35ce68!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-success___3PgiM:visited{color:#35ce68!important}.styles__c-btn--alert-success___3PgiM:active,.styles__c-btn--alert-success___3PgiM:focus,.styles__c-btn--alert-success___3PgiM:hover{color:#08b442!important;background-color:#def7e7!important;border-color:#def7e7!important}.styles__c-alert___dJvZ8{position:fixed;z-index:var(--zIndex-alert);right:0;bottom:calc(3rem + env(safe-area-inset-bottom));left:0;opacity:1;transition:transform .2s ease-out,opacity .2s ease-out;cursor:default;pointer-events:none}@media (prefers-reduced-motion:reduce){.styles__c-alert___dJvZ8{transition:none}}@media (min-width:40rem){.styles__c-alert___dJvZ8{z-index:var(--zIndex-alert);top:1rem;bottom:auto;text-align:center}}.has-modal .styles__c-alert___dJvZ8{z-index:var(--zIndex-alert);bottom:0}.styles__c-alert-wrapper___1VWFK{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;box-sizing:border-box;width:100%;box-shadow:0 .375rem 1.125rem 0 rgba(50,54,63,.23);padding:.813rem 1rem;pointer-events:auto}.styles__c-alert-wrapper___1VWFK p{margin:0;line-height:1.5}.styles__c-alert-wrapper___1VWFK p+button{margin-left:1.5rem}@media (min-width:40rem){.styles__c-alert-wrapper___1VWFK{width:auto;max-width:40rem;padding:1rem 1.5rem;border-radius:.625rem;text-align:left}}.styles__c-alert--hidden___2HD9e{transform:translateY(5rem);opacity:0;transition-timing-function:ease-out}@media (min-width:40rem){.styles__c-alert--hidden___2HD9e{transform:translateY(-5rem)}}.styles__c-alert-title___229Am{font-weight:700}.styles__c-alert--error___g5tIs{color:var(--alertErrorColor);background-color:var(--alertErrorBackgroundColor)}.styles__c-alert--success___2DGDO{color:var(--alertSuccessColor);background-color:var(--alertSuccessBackgroundColor)}.styles__c-alert--info___2EDwe{color:var(--alertInfoColor);background-color:var(--alertInfoBackgroundColor)}.styles__with-transition___3OLmI{transition:transform .1s ease-out}@media (prefers-reduced-motion:reduce){.styles__with-transition___3OLmI{transition:none}}.styles__BottomDrawer-content___IYCrj{z-index:var(--zIndex-drawer);position:fixed;bottom:0;left:0;right:0;width:100%;margin:0;max-height:100vh;overflow-y:auto}.styles__c-btn--regular___1ilYT,.styles__c-btn___3kXsk{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn--regular___1ilYT svg,.styles__c-btn___3kXsk svg{fill:currentColor}.styles__c-btn--regular___1ilYT svg+span,.styles__c-btn___3kXsk svg+span{margin-left:.375rem}.styles__c-btn--regular___1ilYT input,.styles__c-btn___3kXsk input{cursor:pointer}.styles__c-btn--regular___1ilYT>span,.styles__c-btn___3kXsk>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--regular___1ilYT[aria-disabled=true],.styles__c-btn--regular___1ilYT[disabled],.styles__c-btn___3kXsk[aria-disabled=true],.styles__c-btn___3kXsk[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--regular___1ilYT[aria-disabled=true] input,.styles__c-btn--regular___1ilYT[disabled] input,.styles__c-btn___3kXsk[aria-disabled=true] input,.styles__c-btn___3kXsk[disabled] input{cursor:not-allowed}.styles__c-btn--regular___1ilYT[aria-busy=true],.styles__c-btn___3kXsk[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn--regular___1ilYT:visited,.styles__c-btn___3kXsk:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn--regular___1ilYT:active,.styles__c-btn--regular___1ilYT:focus,.styles__c-btn--regular___1ilYT:hover,.styles__c-btn___3kXsk:active,.styles__c-btn___3kXsk:focus,.styles__c-btn___3kXsk:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn--regular___1ilYT[aria-disabled=true]:hover,.styles__c-btn--regular___1ilYT[disabled]:hover,.styles__c-btn___3kXsk[aria-disabled=true]:hover,.styles__c-btn___3kXsk[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn--ghost___Md7mm{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.styles__c-btn--ghost___Md7mm:visited{color:var(--primaryColor)}.styles__c-btn--ghost___Md7mm:active,.styles__c-btn--ghost___Md7mm:focus,.styles__c-btn--ghost___Md7mm:hover{border-color:#c2dcff;background-color:#c2dcff}.styles__c-btn--ghost___Md7mm[aria-disabled=true]:hover,.styles__c-btn--ghost___Md7mm[disabled]:hover{border-color:#c2dcff;background-color:var(--zircon)}.styles__c-btn--highlight___GlDOj{background-color:#35ce68;color:var(--white);border-color:#35ce68}.styles__c-btn--highlight___GlDOj:visited{color:var(--white)}.styles__c-btn--highlight___GlDOj:active,.styles__c-btn--highlight___GlDOj:focus,.styles__c-btn--highlight___GlDOj:hover{border-color:#08b442;background-color:#08b442}.styles__c-btn--highlight___GlDOj[aria-disabled=true]:hover,.styles__c-btn--highlight___GlDOj[disabled]:hover{border-color:#35ce68;background-color:#35ce68}.styles__c-btn--action___3z98K,.styles__c-btn--alpha___2-bRT,.styles__c-btn--close___C19bl{background-color:initial;color:var(--white);border-color:var(--white)}.styles__c-btn--action___3z98K:visited,.styles__c-btn--alpha___2-bRT:visited,.styles__c-btn--close___C19bl:visited{color:var(--white)}.styles__c-btn--action___3z98K:active,.styles__c-btn--action___3z98K:focus,.styles__c-btn--action___3z98K:hover,.styles__c-btn--alpha___2-bRT:active,.styles__c-btn--alpha___2-bRT:focus,.styles__c-btn--alpha___2-bRT:hover,.styles__c-btn--close___C19bl:active,.styles__c-btn--close___C19bl:focus,.styles__c-btn--close___C19bl:hover{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.styles__c-btn--action___3z98K[aria-disabled=true]:hover,.styles__c-btn--action___3z98K[disabled]:hover,.styles__c-btn--alpha___2-bRT[aria-disabled=true]:hover,.styles__c-btn--alpha___2-bRT[disabled]:hover,.styles__c-btn--close___C19bl[aria-disabled=true]:hover,.styles__c-btn--close___C19bl[disabled]:hover{border-color:var(--white);background-color:initial}.styles__c-btn--danger___wzHFo{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.styles__c-btn--danger___wzHFo:visited{color:var(--white)}.styles__c-btn--danger___wzHFo:active,.styles__c-btn--danger___wzHFo:focus,.styles__c-btn--danger___wzHFo:hover{border-color:var(--monza);background-color:var(--monza)}.styles__c-btn--danger___wzHFo[aria-disabled=true]:hover,.styles__c-btn--danger___wzHFo[disabled]:hover{border-color:#f52d2d;background-color:#f52d2d}.styles__c-btn--secondary___1hLVM{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn--secondary___1hLVM,.styles__c-btn--secondary___1hLVM:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn--secondary___1hLVM:active,.styles__c-btn--secondary___1hLVM:focus,.styles__c-btn--secondary___1hLVM:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn--secondary___1hLVM[aria-disabled=true]:hover,.styles__c-btn--secondary___1hLVM[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn--danger-outline___BCng5{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.styles__c-btn--danger-outline___BCng5:visited{color:#f52d2d}.styles__c-btn--danger-outline___BCng5:active,.styles__c-btn--danger-outline___BCng5:focus,.styles__c-btn--danger-outline___BCng5:hover{border-color:#fdcbcb;background-color:#fdcbcb}.styles__c-btn--danger-outline___BCng5[aria-disabled=true]:hover,.styles__c-btn--danger-outline___BCng5[disabled]:hover{border-color:#fdcbcb;background-color:var(--white)}.styles__c-btn--text___33vmu{background-color:initial;color:var(--primaryColor);border-color:transparent}.styles__c-btn--text___33vmu:visited{color:var(--primaryColor)}.styles__c-btn--text___33vmu:active,.styles__c-btn--text___33vmu:focus,.styles__c-btn--text___33vmu:hover,.styles__c-btn--text___33vmu[aria-disabled=true]:hover,.styles__c-btn--text___33vmu[disabled]:hover{border-color:transparent;background-color:initial}.styles__c-btn--text___33vmu:focus,.styles__c-btn--text___33vmu:hover{color:var(--primaryColorDark)}.styles__c-btn--action___3z98K{border-color:transparent;padding:.5rem;opacity:.5}.styles__c-btn--action___3z98K:active,.styles__c-btn--action___3z98K:focus,.styles__c-btn--action___3z98K:hover{background-color:initial;border-color:transparent}.styles__c-btn--close___C19bl{border-color:transparent;padding:.5rem}.styles__c-btn--close___C19bl:active,.styles__c-btn--close___C19bl:focus,.styles__c-btn--close___C19bl:hover{background-color:initial;border-color:transparent}.styles__c-btn--left___3f1zH>span{justify-content:flex-start}.styles__c-btn--center___Nny0n>span{justify-content:center}.styles__c-btn--right___1B9Tn>span{justify-content:flex-end}.styles__c-btn___3kXsk.styles__c-btn--tiny___fK37G{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.styles__c-btn___3kXsk.styles__c-btn--small___9JKyq{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.styles__c-btn___3kXsk.styles__c-btn--large___3PnsT{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.styles__c-btn___3kXsk.styles__c-btn--full___1VumB{width:100%;margin-left:0;margin-right:0}.styles__c-btn___3kXsk.styles__c-btn--narrow___erKsd,.styles__c-btn___3kXsk.styles__c-btn--round___35GfW{min-width:auto}.styles__c-btn___3kXsk.styles__c-btn--round___35GfW{border-radius:100%;min-height:auto;padding:.25rem}.styles__c-btn___3kXsk.styles__c-btn--round___35GfW svg{width:.625rem;height:.625rem}@media (pointer:coarse){.styles__c-btn___3kXsk.styles__c-btn--round___35GfW:after{content:\"\";position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.styles__c-btn--subtle___2rRQ0{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:initial;background:transparent;cursor:pointer;font-size:.875rem;font-weight:700;text-transform:uppercase}.styles__c-btn--subtle___2rRQ0:active,.styles__c-btn--subtle___2rRQ0:focus,.styles__c-btn--subtle___2rRQ0:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___2rRQ0>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--subtle___2rRQ0[aria-disabled=true],.styles__c-btn--subtle___2rRQ0[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--subtle___2rRQ0[aria-disabled=true]:hover,.styles__c-btn--subtle___2rRQ0[disabled]:hover{background:transparent}.styles__c-btn--subtle___2rRQ0[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.styles__c-btn--subtle___2rRQ0[aria-busy=true]:hover{background:transparent}.styles__c-btn--subtle___2rRQ0:active,.styles__c-btn--subtle___2rRQ0:focus,.styles__c-btn--subtle___2rRQ0:hover,.styles__c-btn--subtle___2rRQ0:visited{color:var(--primaryColorDark);background:transparent}*+.styles__c-btn--subtle___2rRQ0{margin-left:.063rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--tiny___fK37G{min-height:0;min-width:0;padding:0;font-size:.563rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--small___9JKyq{min-height:0;min-width:0;padding:0;font-size:.75rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--large___3PnsT{min-height:0;min-width:0;padding:0;font-size:1rem}.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo{color:#f52d2d}.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--danger___wzHFo:hover{color:var(--monza)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj{color:#35ce68}.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--highlight___GlDOj:hover{color:#08b442}.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT{color:var(--regularButtonSecondaryColor)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--regular___1ilYT:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM{color:var(--slateGrey)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:active,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:focus,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:hover{color:var(--charcoalGrey)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:active svg,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:focus svg,.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM:hover svg{color:var(--slateGrey)}.styles__c-btn--subtle___2rRQ0.styles__c-btn--secondary___1hLVM svg{color:var(--coolGrey)}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm- [data-action=label],.u-hide{display:none!important;visibility:hidden!important}.styles__c-actionbtn-label___1BCiN,.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__c-actionbtn___294nr{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-actionbtn___294nr svg{fill:currentColor}.styles__c-actionbtn___294nr svg+span{margin-left:.375rem}.styles__c-actionbtn___294nr input{cursor:pointer}.styles__c-actionbtn___294nr>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-actionbtn___294nr[aria-disabled=true],.styles__c-actionbtn___294nr[disabled]{opacity:.5;cursor:not-allowed}.styles__c-actionbtn___294nr[aria-disabled=true] input,.styles__c-actionbtn___294nr[disabled] input{cursor:not-allowed}.styles__c-actionbtn___294nr[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-actionbtn___294nr:visited{color:var(--regularButtonConstrastColor)}.styles__c-actionbtn___294nr:active,.styles__c-actionbtn___294nr:focus,.styles__c-actionbtn___294nr:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-actionbtn___294nr[aria-disabled=true]:hover,.styles__c-actionbtn___294nr[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-{min-width:auto}.styles__c-actionbtn___294nr{border-color:var(--silver);text-transform:none;max-width:12.5rem;min-height:2rem;width:100%;padding-right:.5rem;text-align:left;line-height:1.3;outline:0}.styles__c-actionbtn___294nr>span{justify-content:flex-start;flex-wrap:nowrap}.styles__c-actionbtn___294nr [data-action=icon]{border-left:.063rem solid var(--dividerColor)}.styles__c-actionbtn___294nr:not([disabled]):focus [data-action=icon],.styles__c-actionbtn___294nr:not([disabled]):hover [data-action=icon]{border-color:currentColor}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-{position:relative;border:0;background-color:initial;padding:0;margin:0;min-height:2rem;width:2.5rem}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm->span{justify-content:center}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm- [data-action=icon]{border-left:none;margin-left:0;padding:0}.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-:focus,.styles__c-actionbtn___294nr.styles__c-actionbtn--compact___3CFm-:hover{background-color:var(--paleGrey);border:0}.styles__c-actionbtn--normal___5JbA8{background-color:var(--paleGrey);color:var(--charcoalGrey);border-color:var(--silver)}.styles__c-actionbtn--normal___5JbA8 [data-action=icon]{border-color:var(--silver)}.styles__c-actionbtn--normal___5JbA8:focus,.styles__c-actionbtn--normal___5JbA8:hover{background-color:var(--silver);border-color:var(--silver)}.styles__c-actionbtn--normal___5JbA8[aria-disabled=true]:hover,.styles__c-actionbtn--normal___5JbA8[disabled]:hover{background-color:var(--paleGrey)}.styles__c-actionbtn--error___3opWY{background-color:var(--chablis);color:#f52d2d;border-color:#fdcbcb}.styles__c-actionbtn--error___3opWY [data-action=icon]{border-color:#fdcbcb}.styles__c-actionbtn--error___3opWY:focus,.styles__c-actionbtn--error___3opWY:hover{background-color:#fdcbcb;border-color:#fdcbcb}.styles__c-actionbtn--error___3opWY[aria-disabled=true]:hover,.styles__c-actionbtn--error___3opWY[disabled]:hover{background-color:var(--chablis)}.styles__c-actionbtn--new___2cPsw{background-color:var(--zircon);color:var(--dodgerBlue);border:.063rem dashed #c2dcff}.styles__c-actionbtn--new___2cPsw [data-action=icon]{border-color:#c2dcff}.styles__c-actionbtn--new___2cPsw:focus,.styles__c-actionbtn--new___2cPsw:hover{background-color:#c2dcff;border-color:#c2dcff}.styles__c-actionbtn--new___2cPsw[aria-disabled=true]:hover,.styles__c-actionbtn--new___2cPsw[disabled]:hover{background-color:var(--zircon)}.styles__c-actionbtn--new___2cPsw:focus:not([disabled]),.styles__c-actionbtn--new___2cPsw:hover:not([disabled]){border-style:solid}.styles__c-actionbtn-label___1BCiN{padding-right:.5rem}.styles__c-actionbtn-icon___1rgZf{display:block;margin-left:auto;padding-left:.5rem}.styles__c-actionbtn-icon___1rgZf svg{display:block}.styles__c-chip___3sc2k{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.styles__c-chip--round___2_oss{width:2.5rem;text-align:center;justify-content:center}.styles__c-chip--tinySize___3Dsfw{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.styles__c-chip--smallSize___lf4ip{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.styles__c-chip--normalSize___ZCdYE{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.styles__c-chip--outlinedVariant___1j_bo{border:1px solid}.styles__c-chip--dashedVariant___3pDfw{border:1px dashed}.styles__c-chip--normalTheme___gBU5V{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.styles__c-chip--primaryTheme___2ra2n{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.styles__c-chip--errorTheme___1v_aF{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.styles__c-chip--hoverableNormalTheme___3VGJe{color:var(--charcoalGrey)}.styles__c-chip--hoverableNormalTheme___3VGJe:focus,.styles__c-chip--hoverableNormalTheme___3VGJe:hover{background-color:var(--silver)}.styles__c-chip--hoverablePrimaryTheme___2EiKE:focus,.styles__c-chip--hoverablePrimaryTheme___2EiKE:hover{background-color:var(--primaryBackgroundLight)}.styles__c-chip--normalPrimaryTheme___BNWJ3{background-color:var(--primaryColor);color:var(--white)}.styles__c-chip--hoverableErrorTheme___1sVT6:focus,.styles__c-chip--hoverableErrorTheme___1sVT6:hover{background-color:var(--errorColorLight)}.styles__c-chip--outlinedNormalTheme___2H2PP{background-color:initial}.styles__c-chip--clickable___1Bews{cursor:pointer}.styles__c-chip-separator___2C0c5{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.styles__c-chip-button___3ocF4{cursor:pointer;color:var(--slateGrey)}.styles__c-chip-button--disabled___3T0Bs{color:var(--coolGrey)}.styles__CompositeRow___1Dmi2{min-height:3rem;padding:1rem}.styles__CompositeRow__dense___3p1f3{padding-top:0;padding-bottom:0}.styles__CompositeRow__body___1Bjsp>*+*{margin-top:2px}.styles__gridItem-container___2Xeyk{text-align:center;box-sizing:border-box;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__Infos___tpCYh{position:relative;border-radius:8px;padding:1rem 1.5rem}@media (max-width:48rem){.styles__Infos___tpCYh{padding:.75rem 1rem}}.styles__Infos___tpCYh.styles__Infos--primary____iqfw{background-color:var(--primaryColorLightBackground)}.styles__Infos___tpCYh.styles__Infos--secondary___2rlHM{background-color:var(--neutralBackground)}.styles__Infos___tpCYh.styles__Infos--danger___1HWww{background-color:var(--errorBackground)}.styles__Infos-description___3q8sW{max-width:32rem}.styles__Info-close___EnUCb{position:absolute;top:0;right:0;padding:.75rem}.styles__InfosCarrousel___1-aJZ{position:relative}.styles__InfosCarrousel-navigation___2Cm0M{position:absolute;display:flex;align-items:center;height:2.5rem;bottom:1rem;right:1rem;box-sizing:border-box}@media (max-width:48rem){.styles__InfosCarrousel-navigation___2Cm0M{height:2.5rem;bottom:.75rem;right:.75rem}}.styles__InfosCarrousel-separator___3GYRV{border-left:1px solid var(--dividerColor);height:1rem;margin:0 .5rem}.styles__c-inline-card___1a8Og{display:inline-block;border:.063rem solid var(--silver);box-shadow:0 0 .625rem rgba(0,0,0,.1);padding:.375rem}.styles__intentModal___1NbfY{height:90vh}@media (max-width:48rem){.styles__intentModal___1NbfY{height:100%;width:100%}}.styles__intentModal___1NbfY>div{height:100%;max-width:unset!important}.styles__intentModal___1NbfY .styles__intentModal__cross___1ISTs{top:.25rem;right:.5rem}.styles__media___1rIBu{display:flex;align-items:center}.styles__media--top___1t0j5{align-items:flex-start}.styles__media--bottom___XsQQe{align-items:flex-end}.styles__bd___3SAX2{flex:1 1 auto;overflow:hidden}.styles__img___3sztD{line-height:0;flex:0 0 auto}html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}body,html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;margin:0}@media (max-width:63.938rem){body,html{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}body,html{background-color:var(--white);color:var(--black)}[data-input=checkbox],[data-input=radio]{display:flex}[data-input=checkbox] input[type=checkbox],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=radio] input[type=radio]{display:none!important;visibility:hidden!important}[data-input=checkbox] label,[data-input=radio] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=checkbox] label:after,[data-input=checkbox] label:before,[data-input=radio] label:after,[data-input=radio] label:before{content:\"\";position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=checkbox] label:before,[data-input=radio] label:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1)}[data-input=checkbox] label:after,[data-input=radio] label:after{transition-duration:.2s;transition-property:opacity,transform}[data-input=radio] label:before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked+label:before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label:after,[data-input=checkbox] label:before{border-radius:.125rem}[data-input=checkbox] label:before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label:before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain}[data-input=checkbox][aria-checked=mixed] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked+label:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked+label:after{opacity:1;transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked)+label:after{opacity:0;transform:scale(0)}.styles__c-modal___dljYk{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__c-modal-content___22N4k{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__c-modal-footer___3JCxm,.styles__c-modal-header--branded___17z1P,.styles__c-modal-header___38uqi{flex:0 0 auto}.styles__c-modal-container___1AAl5{position:relative;z-index:var(--zindex-modal)}.styles__c-modal-wrapper___y79-C{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100vw;height:100%;overflow-y:auto;padding:3rem}@media (max-width:48rem){.styles__c-modal-wrapper___y79-C{justify-content:center;padding:1.5rem}}@media (max-width:30rem){.styles__c-modal-wrapper___y79-C{padding:.5rem}}.styles__c-modal___dljYk{position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__c-modal--xsmall___VxVzh{width:24rem}@media (max-width:25rem){.styles__c-modal--xsmall___VxVzh{width:100%}}.styles__c-modal--small___3xSfG{width:34rem}@media (max-width:35rem){.styles__c-modal--small___3xSfG{width:100%}}.styles__c-modal--medium___2Pu0O{width:36rem}@media (max-width:39rem){.styles__c-modal--medium___2Pu0O{width:100%}}.styles__c-modal--large___2k5qx{width:40rem}@media (max-width:46rem){.styles__c-modal--large___2k5qx{width:100%}}.styles__c-modal--xlarge___ZLRMN{width:50rem}@media (max-width:56rem){.styles__c-modal--xlarge___ZLRMN{width:100%}}.styles__c-modal--xxlarge___18Had{width:60rem}@media (max-width:66rem){.styles__c-modal--xxlarge___18Had{width:100%}}@media (max-width:48rem){.styles__c-modal-wrapper___y79-C.styles__c-modal-wrapper--fullscreen___3oSPW{padding:0}}@media (max-width:48rem){.styles__c-modal___dljYk.styles__c-modal--fullscreen___4RcnS{height:100%;width:100%;border-radius:0;box-sizing:border-box}}.styles__c-modal-header--branded___17z1P,.styles__c-modal-header___38uqi{margin:0 0 1rem;padding:1.687rem 3rem 0 2rem;overflow:visible;min-height:2.5rem}.styles__c-modal-header--branded___17z1P h2,.styles__c-modal-header___38uqi h2{margin:0;font-weight:700}@media (max-width:30rem){.styles__c-modal-header--branded___17z1P,.styles__c-modal-header___38uqi{margin-bottom:.5rem;padding:1.187rem 2rem 0 1.5rem}.styles__c-modal-header--branded___17z1P h2,.styles__c-modal-header___38uqi h2{font-size:1.25rem}}.styles__c-modal-header--branded___17z1P{padding:1rem 3rem}.styles__c-modal-header--branded___17z1P img{display:block;max-height:3.5rem;margin:0 auto}.styles__c-modal-illu-header--ghost___1gH1t,.styles__c-modal-illu-header___2UbH8{display:flex;align-items:center;justify-content:center;margin:0 0 1rem;max-width:100%}.styles__c-modal-illu-header--ghost___1gH1t>*,.styles__c-modal-illu-header___2UbH8>*{max-width:inherit}.styles__c-modal-illu-header--ghost___1gH1t{position:absolute;left:0;right:0;top:1rem;margin:.5rem 0;opacity:0;max-height:2rem;transition:opacity .15s ease-in,top .15s ease-in 50ms}.styles__c-modal-illu-header--ghost___1gH1t>*{max-height:inherit}.styles__c-modal-illu-header--ghost___1gH1t.styles__is-active___JlHre{top:0;opacity:1;transition:opacity .15s ease-in 50ms,top .15s ease-in}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-header___38uqi{padding:1.187rem 3rem 0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-header___38uqi{padding:.687rem 2rem 0 1rem}}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-header___38uqi{padding:2.687rem 3rem 0}@media (max-width:48rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-header___38uqi{padding:1.687rem 2rem 0}}.styles__c-modal-app___2FX9h{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__c-app-editor___3FI4Z{font-weight:400}.styles__c-modal-app-icon___3iNz6{height:1.125rem;margin-right:.5rem}.styles__c-modal-content-fixed___1F97i{border-bottom:.063rem solid var(--dividerColor);flex:0 0 auto;padding:0 2rem}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content-fixed___1F97i{padding:0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content-fixed___1F97i{padding:0 1rem}}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content-fixed___1F97i{padding:0 3rem}@media (max-width:30rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content-fixed___1F97i{padding:0 2rem}}.styles__c-modal-content___22N4k{padding:0 2rem}.styles__c-modal-content___22N4k:last-child{padding-bottom:2rem;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}@media (max-width:30rem){.styles__c-modal-content___22N4k{padding:0 1.5rem}.styles__c-modal-content___22N4k:last-child{padding-bottom:1.5rem}}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k{padding:0 1.5rem}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k:last-child{padding-bottom:1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k{padding:0 1rem}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-content___22N4k:last-child{padding-bottom:1rem}}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k{padding:0 3rem}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k:last-child{padding-bottom:3rem}@media (max-width:48rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k{padding:0 2rem}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-content___22N4k:last-child{padding-bottom:2rem}}.styles__c-modal-footer___3JCxm{padding:1rem 1.25rem 1.25rem}.styles__c-modal-footer--button___3AdGX button{margin-bottom:.25rem}@media (max-width:48rem){.styles__c-modal-footer--button___3AdGX button{min-width:calc(50% - .5rem)}}.styles__c-modal-section___2LJKl{border-top:.063rem solid var(--dividerColor)}.styles__c-modal-close___1M8Jn{box-sizing:border-box;position:absolute;top:1.5rem;right:1.5rem;margin:0;padding:.5rem;background-color:initial;border:0;cursor:pointer;display:block;width:2.5rem;height:2.5rem;z-index:1}@media (max-width:30rem){.styles__c-modal-close___1M8Jn{top:.813rem;right:1rem}}.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-close___1M8Jn{top:1rem;right:1rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1Qal6 .styles__c-modal-close___1M8Jn{top:.313rem;right:.5rem}}.styles__c-modal--closable___3Wo68 .styles__c-modal-header___38uqi{padding-right:4.5rem}.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-close___1M8Jn{top:2.5rem;right:2.5rem}@media (max-width:48rem){.styles__c-modal--large-spacing___2ktm1 .styles__c-modal-close___1M8Jn{top:1.313rem;right:1.5rem}}.styles__c-modal-close--notitle___3dCIQ{top:.375rem;right:.375rem}.styles__c-modal--overflowHidden___1QDY9{overflow:hidden}.styles__c-modal-back-button___AjaZO{top:.375rem;left:.375rem;color:var(--coolGrey)}@media (max-width:48rem){.styles__c-modal-back-button___AjaZO{top:0;left:0}}.styles__c-modal-close--notitle___3dCIQ+.styles__c-modal-content___22N4k{margin-top:3rem}.styles__NarrowContent___2rvIN{max-width:32rem}.styles__c-overlay___8W1LN{z-index:var(--zIndex-overlay);position:fixed;top:0;left:0;height:100%;width:100%;background:var(--overlay);visibility:visible;transition:opacity .3s,visibility 0s ease-out}.styles__PercentageBar___1cT4_{background-color:var(--defaultBackgroundColor);border:1px solid var(--borderMainColor);height:1.5rem;border-radius:4px}.styles__PercentageBar___1cT4_ .styles__PercentageBar__line___2AheW{height:100%;border-radius:4px}.PercentageLine__PercentageLine___VIEsK{transition:transform .3s ease;transform-origin:0 0;height:5px}.styles__c-btn-client___2ZSQt{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn-client___2ZSQt svg{fill:currentColor}.styles__c-btn-client___2ZSQt svg+span{margin-left:.375rem}.styles__c-btn-client___2ZSQt input{cursor:pointer}.styles__c-btn-client___2ZSQt>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn-client___2ZSQt[aria-disabled=true],.styles__c-btn-client___2ZSQt[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn-client___2ZSQt[aria-disabled=true] input,.styles__c-btn-client___2ZSQt[disabled] input{cursor:not-allowed}.styles__c-btn-client___2ZSQt[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn-client___2ZSQt:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn-client___2ZSQt:active,.styles__c-btn-client___2ZSQt:focus,.styles__c-btn-client___2ZSQt:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn-client___2ZSQt[aria-disabled=true]:hover,.styles__c-btn-client___2ZSQt[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn-client___2ZSQt{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn-client___2ZSQt,.styles__c-btn-client___2ZSQt:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn-client___2ZSQt:active,.styles__c-btn-client___2ZSQt:focus,.styles__c-btn-client___2ZSQt:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn-client___2ZSQt[aria-disabled=true]:hover,.styles__c-btn-client___2ZSQt[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn-client___2ZSQt{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:initial;text-align:left;font-size:.813rem;font-weight:700;line-height:1.3;color:var(--slateGrey)}.styles__c-btn-client___2ZSQt:visited{color:var(--slateGrey)}.styles__c-btn-client___2ZSQt span{flex:0 1 auto}.styles__c-btn-client___2ZSQt figure{flex:0 0 2rem;margin:0 .75rem 0 0}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}@media (max-width:63.938rem){.u-hide--mob{display:none!important}}@media (min-width:64rem){.u-hide--tablet{display:none!important}}@media (min-width:48.063rem){.u-hide--desk{display:none!important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap}.u-ellipsis,.u-spacellipsis{overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:\"[...]\"){.u-midellipsis>:first-child{text-overflow:\"[...]\"}}.u-link:link{color:var(--linkColor)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:active,.u-link:focus,.u-link:hover,.u-link:visited{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important}.u-fz-small,.u-fz-xsmall{line-height:1.4!important}.u-fz-small{font-size:.875rem!important}.u-fz-medium{font-size:1rem!important}.u-fz-large,.u-fz-medium{line-height:1.5!important}.u-fz-large{font-size:1.125rem!important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}@media (max-width:30rem){.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}}@media (max-width:48rem){.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}@media (max-width:30rem){.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}}@media (max-width:48rem){.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}}.styles__c-input-radio___1f4CB{display:flex;align-items:center;min-width:1rem;min-height:1rem}.styles__c-input-radio___1f4CB span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.styles__c-input-radio___1f4CB span:after,.styles__c-input-radio___1f4CB span:before{content:\"\";position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.styles__c-input-radio___1f4CB span:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);transform:translateY(-50%)}.styles__c-input-radio___1f4CB span:hover:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___1f4CB span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,transform}.styles__c-input-radio___1f4CB[aria-checked=mixed] span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}.styles__c-input-radio___1f4CB[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.styles__c-input-radio___1f4CB[aria-disabled=true] :hover:before{box-shadow:inset 0 0 0 .125rem var(--silver)}.styles__c-input-radio___1f4CB[aria-disabled=true] :before{background-color:var(--paleGrey)}.styles__c-input-radio___1f4CB input{border:0;clip:rect(0 0 0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.styles__c-input-radio___1f4CB input:focus+span:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___1f4CB input:checked+span:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.styles__c-input-radio___1f4CB input:checked+span:after{opacity:1;transform:translateY(-50%) scale(1)}.styles__c-input-radio___1f4CB input:not(:checked)+span:after{opacity:0;transform:translateY(-50%) scale(0)}.styles__c-input-radio___1f4CB.styles__is-error___5jyha span{color:var(--pomegranate)}.styles__c-input-radio___1f4CB.styles__is-error___5jyha span:before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.styles__c-input-radio--noGutter___2gFTH span{padding-left:0}.styles__c-input-radio___1f4CB span:after,.styles__c-input-radio___1f4CB span:before{border-radius:50%}.styles__c-input-radio___1f4CB span:after{content:\"\";background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.styles__Breadcrumb___2p17B{display:flex;align-items:center;color:var(--primaryTextColor)}.styles__Breadcrumb__previousButton___1FEmP.styles__Breadcrumb__previousButton___1FEmP{margin-left:-.75rem;margin-right:.25rem}.styles__Breadcrumb__items___C99rj{flex-grow:1}.styles__Breadcrumb__previousItems___20hGg{display:flex}.styles__BreadcrumbSeparator___37ZIH{display:inline-block;margin-left:.125rem;margin-right:.125rem}", ""]); +exports.push([module.i, ".styles__c-actionmenu___22Fp1{z-index:40;border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor)}.styles__c-actionmenu___22Fp1 hr{margin:.313rem 0;border:0;border-top:.063rem solid var(--dividerColor)}.styles__c-actionmenu___22Fp1 [role=button],.styles__c-actionmenu___22Fp1 a,.styles__c-actionmenu___22Fp1 button{display:block;padding:.5rem 2rem .5rem 2.5rem;color:var(--charcoalGrey);text-decoration:none;white-space:nowrap;cursor:pointer}.styles__c-actionmenu___22Fp1 [role=button]:hover,.styles__c-actionmenu___22Fp1 a:hover,.styles__c-actionmenu___22Fp1 button:hover{text-decoration:none}.styles__c-actionmenu___22Fp1{color:var(--primaryTextColor);--iconColor:var(--actionMenuIconColor);padding-bottom:env(safe-area-inset-bottom)}.styles__c-actionmenu___22Fp1 hr{margin-top:0}@media (max-width:48rem){.styles__c-actionmenu___22Fp1{border:0;border-radius:0}}.styles__c-actionmenu--inline___1SXZa{width:16rem}.styles__c-actionmenu-header___2rcGc{box-sizing:border-box;border-bottom:.063rem solid var(--dividerColor);padding:1rem;min-height:4rem;margin-top:-.5rem}.styles__c-actionmenu-item___gODqd{padding:.75rem 0;cursor:pointer}.styles__c-actionmenu-item___gODqd:hover{background-color:var(--actionColorHover)}.styles__c-actionmenu-radio___Km9uj{height:1rem;width:1rem;margin-top:.125rem;margin-bottom:0}.styles__c-btn--alert-error___12LBy,.styles__c-btn--alert-info___1BO12,.styles__c-btn--alert-success___3Z6sE{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:700;font-size:.875rem;text-decoration:none}.styles__c-btn--alert-error___12LBy{color:#f52d2d!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-error___12LBy:visited{color:#f52d2d!important}.styles__c-btn--alert-error___12LBy:active,.styles__c-btn--alert-error___12LBy:focus,.styles__c-btn--alert-error___12LBy:hover{color:var(--monza)!important;background-color:#fdcbcb!important;border-color:#fdcbcb!important}.styles__c-btn--alert-info___1BO12{color:var(--white)!important;border-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1BO12,.styles__c-btn--alert-info___1BO12[aria-disabled=true]:hover,.styles__c-btn--alert-info___1BO12[disabled]:hover{background-color:var(--coolGrey)!important}.styles__c-btn--alert-info___1BO12:visited{color:var(--white)!important}.styles__c-btn--alert-info___1BO12:active,.styles__c-btn--alert-info___1BO12:focus,.styles__c-btn--alert-info___1BO12:hover{background-color:var(--charcoalGrey)!important;border-color:var(--charcoalGrey)!important}.styles__c-btn--alert-success___3Z6sE{color:#35ce68!important;background-color:var(--white)!important;border-color:var(--white)!important}.styles__c-btn--alert-success___3Z6sE:visited{color:#35ce68!important}.styles__c-btn--alert-success___3Z6sE:active,.styles__c-btn--alert-success___3Z6sE:focus,.styles__c-btn--alert-success___3Z6sE:hover{color:#08b442!important;background-color:#def7e7!important;border-color:#def7e7!important}.styles__c-alert___f9mWB{position:fixed;z-index:80;right:0;bottom:calc(3rem + env(safe-area-inset-bottom));left:0;opacity:1;transition:transform .2s ease-out,opacity .2s ease-out;cursor:default;pointer-events:none}@media (prefers-reduced-motion:reduce){.styles__c-alert___f9mWB{transition:none}}@media (min-width:40rem){.styles__c-alert___f9mWB{z-index:80;top:1rem;bottom:auto;text-align:center}}.has-modal .styles__c-alert___f9mWB{z-index:80;bottom:0}.styles__c-alert-wrapper___3fLCt{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;box-sizing:border-box;width:100%;box-shadow:0 .375rem 1.125rem 0 rgba(50,54,63,.23);padding:.813rem 1rem;pointer-events:auto}.styles__c-alert-wrapper___3fLCt p{margin:0;line-height:1.5}.styles__c-alert-wrapper___3fLCt p+button{margin-left:1.5rem}@media (min-width:40rem){.styles__c-alert-wrapper___3fLCt{width:auto;max-width:40rem;padding:1rem 1.5rem;border-radius:.625rem;text-align:left}}.styles__c-alert--hidden___22Mz1{transform:translateY(5rem);opacity:0;transition-timing-function:ease-out}@media (min-width:40rem){.styles__c-alert--hidden___22Mz1{transform:translateY(-5rem)}}.styles__c-alert-title___2O1D_{font-weight:700}.styles__c-alert--error___oA-NC{color:var(--alertErrorColor);background-color:var(--alertErrorBackgroundColor)}.styles__c-alert--success___1Cs5b{color:var(--alertSuccessColor);background-color:var(--alertSuccessBackgroundColor)}.styles__c-alert--info___3mqAh{color:var(--alertInfoColor);background-color:var(--alertInfoBackgroundColor)}.styles__c-loading-placeholder___3L6Gz{animation-delay:.1s;animation-duration:2s;animation-iteration-count:infinite;animation-name:styles__placeHolderShimmer___3Rei_;animation-timing-function:linear;background-position:-20rem 0;background-image:linear-gradient(90deg,silver 0,#fcfcfc 50%,silver);background-size:20rem 10rem;background-repeat:no-repeat;background-color:silver;border-radius:.15rem;max-width:100%;position:relative;margin:.1rem 0}.styles__c-app-icon___2_O40,.styles__c-app-icon___2_O40 svg{height:100%;width:100%;flex-grow:0;flex-shrink:0;object-fit:contain}.styles__c-app-icon-default___3CEmt{color:var(--silver)}@-webkit-keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}@keyframes styles__placeHolderShimmer___3Rei_{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}to{background-position:-20rem 0}}.Sections__Sections__section___2onYy{margin-bottom:4rem}.AppsSection__AppsSection___3WHhE{margin-bottom:1rem}.AppsSection__AppsSection__list___2Uy0E{display:flex;flex-wrap:wrap;justify-content:flex-start}.DropdownFilter__Dropdown__icon___19QZN{padding:0 .5rem}@media (max-width:48rem){.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__control___3-04c{padding:.5rem .5rem .5rem .2rem;border-radius:0;height:2.75rem}.DropdownFilter__Dropdown___afcWb .DropdownFilter__Select__menu___XLfYX{top:2rem}.DropdownFilter__Dropdown___afcWb>div{max-width:none}}.styles__AppTile-icon___1f0c0{object-fit:contain;max-width:100%;width:auto}.styles__AppTile-icon--default___1tjiF{height:100%;padding:0 .5em}.styles__AppTile-icon-maintenance___2VOvO{position:absolute;border:2px solid var(--primaryContrastTextColor);border-radius:50%;background:var(--primaryContrastTextColor);bottom:80px;left:80px}@media (max-width:48rem){.styles__AppTile-icon-maintenance___2VOvO{bottom:6px;left:40px}}.styles__AppTile-container-maintenance___u1a1M{filter:grayscale(1);opacity:.64}.styles__c-apptitle___eqV9l{display:inline-flex;align-items:center;margin:0}.styles__c-avatar___PpDI-{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:$low-index}.styles__c-avatar___PpDI- svg{width:50%;height:50%}.styles__c-avatar-image___3yJnb{width:100%}.styles__c-avatar___PpDI-{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-avatar--xsmall___3H2Io{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:.4386rem}.styles__c-avatar--small___1Y_Pv{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:.87719rem}.styles__c-avatar--large___1Z_HZ{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:1.31579rem}.styles__c-avatar--xlarge___3Qe0b{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:1.75439rem}.styles__c-avatar-initials___310qC{font-weight:700;line-height:1}.styles__c-avatar--text___2dvna{color:#fff}.styles__c-avatar--disabled___xoLOy.styles__c-avatar--image___jDBci{background-color:#fff!important}.styles__c-avatar--disabled___xoLOy:not(.styles__c-avatar--image___jDBci){background-color:var(--silver)!important}.styles__c-avatar--disabled___xoLOy .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-avatar--ghost___3898R{background-color:initial!important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.styles__c-avatar--ghost___3898R .styles__c-avatar-image___3yJnb{filter:grayscale(1);opacity:.3}.styles__c-banner-wrapper___3KlaG{display:flex;align-items:center;min-height:3.5rem;padding:0 1rem}@media (max-width:48rem){.styles__c-banner-wrapper___3KlaG{padding:0}}.styles__c-banner-icon___1f_LM{width:2rem;height:2rem;margin-left:1rem}.styles__c-banner-icon___1f_LM>svg{width:2rem;height:2rem}.styles__c-banner-icon___1f_LM div{width:2rem;height:2rem;min-width:2rem;min-height:2rem}.styles__c-banner-text___1sTVC{padding:.75rem 1rem}.styles__c-banner-buttons___3sLgG button{margin:0;min-width:3rem}.styles__BarButton___3z5Er{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem}:root{--barIconColor:var(--coolGrey);--barIconColorDisabled:var(--silver)}.styles__BarButtonIcon___1pSOT{color:var(--barIconColor)}.styles__BarButton--disabled___5e3Ll .styles__BarButtonIcon___1pSOT{color:var(--barIconColorDisabled)}.styles__BarTitle___I5r2e{margin:0;height:3rem;display:flex;align-items:center;font-size:1.125rem}.styles__with-transition___1dzf9{transition:transform .1s ease-out}@media (prefers-reduced-motion:reduce){.styles__with-transition___1dzf9{transition:none}}.styles__BottomDrawer-content___2xiuD{z-index:60;position:fixed;bottom:0;left:0;right:0;width:100%;margin:0;max-height:100vh;overflow-y:auto}.styles__Breadcrumb___lSOZg{display:flex;align-items:center;color:var(--primaryTextColor)}.styles__Breadcrumb__previousButton___Jcvx7.styles__Breadcrumb__previousButton___Jcvx7{margin-left:-.75rem;margin-right:.25rem}.styles__Breadcrumb__items___2ozfJ{flex-grow:1}.styles__Breadcrumb__previousItems___IzmVu{display:flex}.styles__BreadcrumbSeparator___I81AU{display:inline-block;margin-left:.125rem;margin-right:.125rem}.styles__c-btn--regular___2HUly,.styles__c-btn___-2Vnj{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn--regular___2HUly svg,.styles__c-btn___-2Vnj svg{fill:currentColor}.styles__c-btn--regular___2HUly svg+span,.styles__c-btn___-2Vnj svg+span{margin-left:.375rem}.styles__c-btn--regular___2HUly input,.styles__c-btn___-2Vnj input{cursor:pointer}.styles__c-btn--regular___2HUly>span,.styles__c-btn___-2Vnj>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--regular___2HUly[aria-disabled=true],.styles__c-btn--regular___2HUly[disabled],.styles__c-btn___-2Vnj[aria-disabled=true],.styles__c-btn___-2Vnj[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--regular___2HUly[aria-disabled=true] input,.styles__c-btn--regular___2HUly[disabled] input,.styles__c-btn___-2Vnj[aria-disabled=true] input,.styles__c-btn___-2Vnj[disabled] input{cursor:not-allowed}.styles__c-btn--regular___2HUly[aria-busy=true],.styles__c-btn___-2Vnj[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn--regular___2HUly:visited,.styles__c-btn___-2Vnj:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn--regular___2HUly:active,.styles__c-btn--regular___2HUly:focus,.styles__c-btn--regular___2HUly:hover,.styles__c-btn___-2Vnj:active,.styles__c-btn___-2Vnj:focus,.styles__c-btn___-2Vnj:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn--regular___2HUly[aria-disabled=true]:hover,.styles__c-btn--regular___2HUly[disabled]:hover,.styles__c-btn___-2Vnj[aria-disabled=true]:hover,.styles__c-btn___-2Vnj[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn--ghost___1HC3L{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.styles__c-btn--ghost___1HC3L:visited{color:var(--primaryColor)}.styles__c-btn--ghost___1HC3L:active,.styles__c-btn--ghost___1HC3L:focus,.styles__c-btn--ghost___1HC3L:hover{border-color:#c2dcff;background-color:#c2dcff}.styles__c-btn--ghost___1HC3L[aria-disabled=true]:hover,.styles__c-btn--ghost___1HC3L[disabled]:hover{border-color:#c2dcff;background-color:var(--zircon)}.styles__c-btn--highlight___2jRfu{background-color:#35ce68;color:var(--white);border-color:#35ce68}.styles__c-btn--highlight___2jRfu:visited{color:var(--white)}.styles__c-btn--highlight___2jRfu:active,.styles__c-btn--highlight___2jRfu:focus,.styles__c-btn--highlight___2jRfu:hover{border-color:#08b442;background-color:#08b442}.styles__c-btn--highlight___2jRfu[aria-disabled=true]:hover,.styles__c-btn--highlight___2jRfu[disabled]:hover{border-color:#35ce68;background-color:#35ce68}.styles__c-btn--action___36KFm,.styles__c-btn--alpha___2ECZi,.styles__c-btn--close___3f0AP{background-color:initial;color:var(--white);border-color:var(--white)}.styles__c-btn--action___36KFm:visited,.styles__c-btn--alpha___2ECZi:visited,.styles__c-btn--close___3f0AP:visited{color:var(--white)}.styles__c-btn--action___36KFm:active,.styles__c-btn--action___36KFm:focus,.styles__c-btn--action___36KFm:hover,.styles__c-btn--alpha___2ECZi:active,.styles__c-btn--alpha___2ECZi:focus,.styles__c-btn--alpha___2ECZi:hover,.styles__c-btn--close___3f0AP:active,.styles__c-btn--close___3f0AP:focus,.styles__c-btn--close___3f0AP:hover{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.styles__c-btn--action___36KFm[aria-disabled=true]:hover,.styles__c-btn--action___36KFm[disabled]:hover,.styles__c-btn--alpha___2ECZi[aria-disabled=true]:hover,.styles__c-btn--alpha___2ECZi[disabled]:hover,.styles__c-btn--close___3f0AP[aria-disabled=true]:hover,.styles__c-btn--close___3f0AP[disabled]:hover{border-color:var(--white);background-color:initial}.styles__c-btn--danger___17T_C{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.styles__c-btn--danger___17T_C:visited{color:var(--white)}.styles__c-btn--danger___17T_C:active,.styles__c-btn--danger___17T_C:focus,.styles__c-btn--danger___17T_C:hover{border-color:var(--monza);background-color:var(--monza)}.styles__c-btn--danger___17T_C[aria-disabled=true]:hover,.styles__c-btn--danger___17T_C[disabled]:hover{border-color:#f52d2d;background-color:#f52d2d}.styles__c-btn--secondary___3Br_N{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn--secondary___3Br_N,.styles__c-btn--secondary___3Br_N:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn--secondary___3Br_N:active,.styles__c-btn--secondary___3Br_N:focus,.styles__c-btn--secondary___3Br_N:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn--secondary___3Br_N[aria-disabled=true]:hover,.styles__c-btn--secondary___3Br_N[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn--danger-outline___1mO1B{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.styles__c-btn--danger-outline___1mO1B:visited{color:#f52d2d}.styles__c-btn--danger-outline___1mO1B:active,.styles__c-btn--danger-outline___1mO1B:focus,.styles__c-btn--danger-outline___1mO1B:hover{border-color:#fdcbcb;background-color:#fdcbcb}.styles__c-btn--danger-outline___1mO1B[aria-disabled=true]:hover,.styles__c-btn--danger-outline___1mO1B[disabled]:hover{border-color:#fdcbcb;background-color:var(--white)}.styles__c-btn--text___2Vp-2{background-color:initial;color:var(--primaryColor);border-color:transparent}.styles__c-btn--text___2Vp-2:visited{color:var(--primaryColor)}.styles__c-btn--text___2Vp-2:active,.styles__c-btn--text___2Vp-2:focus,.styles__c-btn--text___2Vp-2:hover,.styles__c-btn--text___2Vp-2[aria-disabled=true]:hover,.styles__c-btn--text___2Vp-2[disabled]:hover{border-color:transparent;background-color:initial}.styles__c-btn--text___2Vp-2:focus,.styles__c-btn--text___2Vp-2:hover{color:var(--primaryColorDark)}.styles__c-btn--action___36KFm{border-color:transparent;padding:.5rem;opacity:.5}.styles__c-btn--action___36KFm:active,.styles__c-btn--action___36KFm:focus,.styles__c-btn--action___36KFm:hover{background-color:initial;border-color:transparent}.styles__c-btn--close___3f0AP{border-color:transparent;padding:.5rem}.styles__c-btn--close___3f0AP:active,.styles__c-btn--close___3f0AP:focus,.styles__c-btn--close___3f0AP:hover{background-color:initial;border-color:transparent}.styles__c-btn--left___23VNa>span{justify-content:flex-start}.styles__c-btn--center___16_Xh>span{justify-content:center}.styles__c-btn--right___wklLq>span{justify-content:flex-end}.styles__c-btn___-2Vnj.styles__c-btn--tiny___1pFv6{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.styles__c-btn___-2Vnj.styles__c-btn--small___3ArkI{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.styles__c-btn___-2Vnj.styles__c-btn--large___2gatN{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.styles__c-btn___-2Vnj.styles__c-btn--full___2VmR1{width:100%;margin-left:0;margin-right:0}.styles__c-btn___-2Vnj.styles__c-btn--narrow___27FHD,.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl{min-width:auto}.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl{border-radius:100%;min-height:auto;padding:.25rem}.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl svg{width:.625rem;height:.625rem}@media (pointer:coarse){.styles__c-btn___-2Vnj.styles__c-btn--round___1Lkyl:after{content:\"\";position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.styles__c-btn--subtle___OknKf{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:initial;background:transparent;cursor:pointer;font-size:.875rem;font-weight:700;text-transform:uppercase}.styles__c-btn--subtle___OknKf:active,.styles__c-btn--subtle___OknKf:focus,.styles__c-btn--subtle___OknKf:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___OknKf>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn--subtle___OknKf[aria-disabled=true],.styles__c-btn--subtle___OknKf[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn--subtle___OknKf[aria-disabled=true]:hover,.styles__c-btn--subtle___OknKf[disabled]:hover{background:transparent}.styles__c-btn--subtle___OknKf[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.styles__c-btn--subtle___OknKf[aria-busy=true]:hover{background:transparent}.styles__c-btn--subtle___OknKf:active,.styles__c-btn--subtle___OknKf:focus,.styles__c-btn--subtle___OknKf:hover,.styles__c-btn--subtle___OknKf:visited{color:var(--primaryColorDark);background:transparent}*+.styles__c-btn--subtle___OknKf{margin-left:.063rem}.styles__c-btn--subtle___OknKf.styles__c-btn--tiny___1pFv6{min-height:0;min-width:0;padding:0;font-size:.563rem}.styles__c-btn--subtle___OknKf.styles__c-btn--small___3ArkI{min-height:0;min-width:0;padding:0;font-size:.75rem}.styles__c-btn--subtle___OknKf.styles__c-btn--large___2gatN{min-height:0;min-width:0;padding:0;font-size:1rem}.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C{color:#f52d2d}.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C:active,.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--danger___17T_C:hover{color:var(--monza)}.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu{color:#35ce68}.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu:active,.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--highlight___2jRfu:hover{color:#08b442}.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly{color:var(--regularButtonSecondaryColor)}.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly:active,.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--regular___2HUly:hover{color:var(--regularButtonActiveColor)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N{color:var(--slateGrey)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:active,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:focus,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:hover{color:var(--charcoalGrey)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:active svg,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:focus svg,.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N:hover svg{color:var(--slateGrey)}.styles__c-btn--subtle___OknKf.styles__c-btn--secondary___3Br_N svg{color:var(--coolGrey)}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2 [data-action=label],.u-hide{display:none!important;visibility:hidden!important}.styles__c-actionbtn-label___3nDeu,.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__c-actionbtn___162t6{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-actionbtn___162t6 svg{fill:currentColor}.styles__c-actionbtn___162t6 svg+span{margin-left:.375rem}.styles__c-actionbtn___162t6 input{cursor:pointer}.styles__c-actionbtn___162t6>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-actionbtn___162t6[aria-disabled=true],.styles__c-actionbtn___162t6[disabled]{opacity:.5;cursor:not-allowed}.styles__c-actionbtn___162t6[aria-disabled=true] input,.styles__c-actionbtn___162t6[disabled] input{cursor:not-allowed}.styles__c-actionbtn___162t6[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-actionbtn___162t6:visited{color:var(--regularButtonConstrastColor)}.styles__c-actionbtn___162t6:active,.styles__c-actionbtn___162t6:focus,.styles__c-actionbtn___162t6:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-actionbtn___162t6[aria-disabled=true]:hover,.styles__c-actionbtn___162t6[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2{min-width:auto}.styles__c-actionbtn___162t6{border-color:var(--silver);text-transform:none;max-width:12.5rem;min-height:2rem;width:100%;padding-right:.5rem;text-align:left;line-height:1.3;outline:0}.styles__c-actionbtn___162t6>span{justify-content:flex-start;flex-wrap:nowrap}.styles__c-actionbtn___162t6 [data-action=icon]{border-left:.063rem solid var(--dividerColor)}.styles__c-actionbtn___162t6:not([disabled]):focus [data-action=icon],.styles__c-actionbtn___162t6:not([disabled]):hover [data-action=icon]{border-color:currentColor}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2{position:relative;border:0;background-color:initial;padding:0;margin:0;min-height:2rem;width:2.5rem}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2>span{justify-content:center}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2 [data-action=icon]{border-left:none;margin-left:0;padding:0}.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2:focus,.styles__c-actionbtn___162t6.styles__c-actionbtn--compact___37yb2:hover{background-color:var(--paleGrey);border:0}.styles__c-actionbtn--normal___1HGLQ{background-color:var(--paleGrey);color:var(--charcoalGrey);border-color:var(--silver)}.styles__c-actionbtn--normal___1HGLQ [data-action=icon]{border-color:var(--silver)}.styles__c-actionbtn--normal___1HGLQ:focus,.styles__c-actionbtn--normal___1HGLQ:hover{background-color:var(--silver);border-color:var(--silver)}.styles__c-actionbtn--normal___1HGLQ[aria-disabled=true]:hover,.styles__c-actionbtn--normal___1HGLQ[disabled]:hover{background-color:var(--paleGrey)}.styles__c-actionbtn--error___2pt97{background-color:var(--chablis);color:#f52d2d;border-color:#fdcbcb}.styles__c-actionbtn--error___2pt97 [data-action=icon]{border-color:#fdcbcb}.styles__c-actionbtn--error___2pt97:focus,.styles__c-actionbtn--error___2pt97:hover{background-color:#fdcbcb;border-color:#fdcbcb}.styles__c-actionbtn--error___2pt97[aria-disabled=true]:hover,.styles__c-actionbtn--error___2pt97[disabled]:hover{background-color:var(--chablis)}.styles__c-actionbtn--new___1_BNn{background-color:var(--zircon);color:var(--dodgerBlue);border:.063rem dashed #c2dcff}.styles__c-actionbtn--new___1_BNn [data-action=icon]{border-color:#c2dcff}.styles__c-actionbtn--new___1_BNn:focus,.styles__c-actionbtn--new___1_BNn:hover{background-color:#c2dcff;border-color:#c2dcff}.styles__c-actionbtn--new___1_BNn[aria-disabled=true]:hover,.styles__c-actionbtn--new___1_BNn[disabled]:hover{background-color:var(--zircon)}.styles__c-actionbtn--new___1_BNn:focus:not([disabled]),.styles__c-actionbtn--new___1_BNn:hover:not([disabled]){border-style:solid}.styles__c-actionbtn-label___3nDeu{padding-right:.5rem}.styles__c-actionbtn-icon___2Od_-{display:block;margin-left:auto;padding-left:.5rem}.styles__c-actionbtn-icon___2Od_- svg{display:block}.styles__c-card___YgP7B{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.styles__c-card--inset___2pofc{margin:1rem 2rem}@media (max-width:48rem){.styles__c-card--inset___2pofc{margin:.5rem}}.styles__c-chip___2aPqg{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.styles__c-chip--round___JCd2e{width:2.5rem;text-align:center;justify-content:center}.styles__c-chip--tinySize___3XeOG{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.styles__c-chip--smallSize___3i9gj{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.styles__c-chip--normalSize___3U8N4{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.styles__c-chip--outlinedVariant___BP7oS{border:1px solid}.styles__c-chip--dashedVariant___2LWN4{border:1px dashed}.styles__c-chip--normalTheme___kVm5M{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.styles__c-chip--primaryTheme___1ZNhX{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.styles__c-chip--errorTheme___2hVXe{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.styles__c-chip--hoverableNormalTheme___271-M{color:var(--charcoalGrey)}.styles__c-chip--hoverableNormalTheme___271-M:focus,.styles__c-chip--hoverableNormalTheme___271-M:hover{background-color:var(--silver)}.styles__c-chip--hoverablePrimaryTheme___12PPV:focus,.styles__c-chip--hoverablePrimaryTheme___12PPV:hover{background-color:var(--primaryBackgroundLight)}.styles__c-chip--normalPrimaryTheme___24yFt{background-color:var(--primaryColor);color:var(--white)}.styles__c-chip--hoverableErrorTheme___wospw:focus,.styles__c-chip--hoverableErrorTheme___wospw:hover{background-color:var(--errorColorLight)}.styles__c-chip--outlinedNormalTheme___itU6s{background-color:initial}.styles__c-chip--clickable___20ff-{cursor:pointer}.styles__c-chip-separator___i_2Yq{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.styles__c-chip-button___-WdLl{cursor:pointer;color:var(--slateGrey)}.styles__c-chip-button--disabled___168tG{color:var(--coolGrey)}.styles__c-circle___1DuMR{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize)/2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.styles__c-circle-text___1jFgD{font-weight:700;line-height:1}.styles__CompositeRow___3KCwt{min-height:3rem;padding:1rem}.styles__CompositeRow__dense___3EPKf{padding-top:0;padding-bottom:0}.styles__CompositeRow__body___3nEEv>*+*{margin-top:2px}.styles__SelectControl___2OxoO[aria-disabled=true],.styles__SelectControl___2OxoO[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__SelectControl___2OxoO[aria-disabled=true]:focus,.styles__SelectControl___2OxoO[aria-disabled=true]:hover,.styles__SelectControl___2OxoO[disabled]:focus,.styles__SelectControl___2OxoO[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__SelectControl___2OxoO{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__SelectControl___2OxoO::placeholder{color:var(--coolGrey);font-size:1rem}.styles__SelectControl___2OxoO:hover{border:.063rem solid var(--coolGrey)}.styles__SelectControl___2OxoO:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__SelectControl___2OxoO.styles__is-error___2s-d5,.styles__SelectControl___2OxoO:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__SelectControl___2OxoO{padding-right:2.375rem;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__SelectControl___2OxoO::-ms-expand{display:none}.styles__contact___169nD{color:var(--secondaryTextColor)}@media (max-width:48rem){.styles__contact___169nD{height:auto}}.styles__contact--clickable___1GLTM{cursor:pointer}.styles__contact-cozyurl___3kBp5,.styles__contact-phone___1sA_m{flex:0 0 12rem;padding:0}.styles__contact-email___3n3q2{flex-basis:30%;padding:0}.styles__contact-myself___1aOdx{color:var(--secondaryTextColor);padding-left:.5rem}.styles__contact-identity___mL3IJ{flex-basis:30%;padding:0}@media (max-width:48rem){.styles__contact-identity___mL3IJ{flex:1 1 auto}}.styles__contact-firstname___2GPEr{margin-left:1rem}.styles__contact-avatar___3lZPs{flex-shrink:0}.styles__icon___gvQ89{margin:1rem 1.5rem 0 .5rem}.styles__ContactsListModal__addContactContainer___2W-dE{display:flex;justify-content:center;margin:0 .5rem 1rem}@media (max-width:48rem){.styles__ContactsListModal__addContactContainer___2W-dE>*{flex:1}}.styles__DialogCloseButton___cxKPO{position:absolute;top:1.15rem;right:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogCloseButton___cxKPO{top:.25rem;right:.25rem}}.styles__DialogBackButton___1c7yH{position:absolute;top:1.15rem;left:1.15rem;z-index:1}@media (max-width:48rem){.styles__DialogBackButton___1c7yH{top:.25rem;left:.25rem}}.styles__DateMonthPicker__YearControls___1DGlB{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.08)}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm,.styles__DateMonthPicker__MonthButton___3I_Mm:hover,.styles__DateMonthPicker__YearButton___3zNDK:hover{background:var(--defaultBackgroundColor);color:var(--primaryTextColor)}.styles__DateMonthPicker__MonthButton___3I_Mm:active,.styles__DateMonthPicker__MonthButton___3I_Mm:hover:active,.styles__DateMonthPicker__YearButton___3zNDK:active,.styles__DateMonthPicker__YearButton___3zNDK:hover:active{background-color:var(--actionColorFocus);font-weight:700;outline:0}.styles__DateMonthPicker__MonthButton___3I_Mm,.styles__DateMonthPicker__YearButton___3zNDK{background:none;min-height:3rem;min-width:3rem;display:inline-block;border-width:0;color:var(--secondaryTextColor);cursor:pointer}.styles__DateMonthPicker__MonthButton___3I_Mm:focus,.styles__DateMonthPicker__YearButton___3zNDK:focus{outline:0}.styles__DateMonthPicker__YearControls___1DGlB{justify-content:center;display:flex;align-items:center;border-radius:8px;border:1px solid var(--borderMainColor);overflow:hidden;margin-bottom:1rem;font-weight:700}.styles__DateMonthPicker__YearButton___3zNDK{flex-grow:0;cursor:pointer}.styles__DateMonthPicker__Year___387bP{flex-grow:1;display:inline-flex;justify-content:center}.styles__DateMonthPicker__MonthGrid___TCFg4{display:grid;grid-template-columns:repeat(4,auto);grid-template-rows:repeat(3,1fr);overflow:hidden;grid-gap:1rem}.styles__DateMonthPicker__MonthButton___3I_Mm{border-radius:3rem}.styles__DateMonthPicker__MonthButton___3I_Mm.styles__DateMonthPicker__MonthButton--selected___40hCm{font-weight:700}.styles__c-empty___3w5oV{display:flex;flex-direction:column;justify-content:center;flex:1 0 auto;align-self:center;padding:1rem 0;text-align:center;max-width:100%}.styles__c-empty-img___2GC4d{display:block;margin:0 auto 1rem;height:8rem}@media (max-width:63.938rem){.styles__c-empty-img___2GC4d{margin-bottom:.5rem;height:6rem}}.styles__c-empty-img--medium___1d2Zd{height:10rem}@media (max-width:63.938rem){.styles__c-empty-img--medium___1d2Zd{height:8rem}}.styles__c-empty-img--large___3s3vC{height:12rem}@media (max-width:63.938rem){.styles__c-empty-img--large___3s3vC{height:10rem}}.styles__c-empty-title___2HduE{margin:0 auto;max-width:63rem;line-height:1.3}@media (max-width:63.938rem){.styles__c-empty-title___2HduE{margin:0 1.5rem}}.styles__c-empty-text___3HnvR{margin:.313rem auto 0;max-width:63rem;color:var(--secondaryTextColor);line-height:1.5}@media (max-width:63.938rem){.styles__c-empty-text___3HnvR{margin:.313rem 1.5rem 0}}.styles__c-label___o4ozG{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:700;line-height:1rem}.styles__c-label___o4ozG.styles__is-error___2Dwem{color:var(--pomegranate)}.styles__c-label--block___2ZV_7{display:block;padding:.5rem 0}.styles__o-field___3n5HM{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.styles__o-field--inline___7JWZ8{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.styles__o-field--inline___7JWZ8{flex-direction:column;margin-left:0}}.styles__o-field--inline___7JWZ8{margin:0}.styles__o-field--inline___7JWZ8 label{flex-basis:8rem;flex-shrink:0;flex-grow:0;padding:1rem 0}@media (max-width:48rem){.styles__o-field--inline___7JWZ8 label{flex-basis:auto}}.styles__o-field--inline___7JWZ8>*{flex-grow:1}.styles__o-field-input___vCqdV{position:relative;max-width:32rem}.styles__o-field-input-action___2k7a8,.styles__o-side___tXbXL{position:absolute;top:.5rem;right:0;cursor:pointer;text-transform:uppercase}.styles__o-side-fullwidth___7WcCI{max-width:100%}.styles__o-field-input-action___2k7a8{top:-1.5rem;text-transform:uppercase}.Figure__Figure-currency___195-B{color:var(--secondaryTextColor)}.Figure__Figure-content--positive___1qyd8,.Figure__Figure-content--positive___1qyd8 .Figure__Figure-currency___195-B{color:var(--successColor)}.Figure__Figure-content--negative___3ACbA,.Figure__Figure-content--negative___3ACbA .Figure__Figure-currency___195-B{color:var(--errorColor)}.Figure__Figure-content--warning___1Pn6n,.Figure__Figure-content--warning___1Pn6n .Figure__Figure-currency___195-B{color:var(--warningColor)}.Figure__Figure-total___MZ7Xt{font-weight:900}.Figure__Figure__currency--withSpacing___2eXTy{margin-left:.2em}.Figure__Figure--big___1b5ml{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.Figure__Figure--big___1b5ml{font-size:1.5rem;line-height:1.75rem}}.Figure__Figure--clickable___3i82u{cursor:pointer}.Figure__Figure_blur___1p0la{filter:blur(8px)}.Figure__Figure--inline___2L5SE{display:inline}.FigureBlock__FigureBlock___YyBoL{color:var(--primaryTextColor)}.FigureBlock__FigureBlock-figure___97C8E{font-size:2rem;line-height:2.625rem}@media (max-width:48rem){.FigureBlock__FigureBlock___YyBoL{font-size:.7em}}.styles__c-file-input___YNZSh{cursor:pointer}.styles__c-file-path___XvgNN{display:block;color:var(--secondaryTextColor);font-size:.75rem;text-decoration:none;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.styles__filePickerBreadcrumb-previousPath___3LKJH{color:var(--actionColorActive);cursor:pointer}.styles__filePickerBreadcrumb-icon___3aFyd{color:var(--actionColorActive);margin:0 .25rem}@supports (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:contents}}@supports not (display:contents){.styles__filePickerBreadcrumb-wrapper___3pu1w{display:flex;flex:1 1 auto;align-items:center;width:100%}}.styles__c-filename-wrapper___3tVpA{display:flex}.styles__c-filename-wrapper___3tVpA :last-child{flex-shrink:0}.styles__c-filename-name___1jDMz{display:inline;width:auto}.styles__Hero___14z7_{margin-left:auto;margin-right:auto}.styles__Hero-title___256Uz{text-align:center;margin:3rem 0}.styles__Hero-subtitle___1E_WG{margin-bottom:0}@media (max-width:48rem){.styles__Hero-subtitle___1E_WG{margin-top:.5rem}}.styles__Hero___14z7_ p{line-height:1.25}.styles__Hero-sections___ETV6e{display:flex;justify-content:space-around}@media (max-width:48rem){.styles__Hero-sections___ETV6e{flex-direction:column;align-items:center}}.styles__Hero-section___1BcNz{max-width:18.75rem;text-align:center;flex-grow:1;flex-basis:100%}@media (max-width:48rem){.styles__Hero-section___1BcNz{max-width:auto;margin-bottom:2rem}}.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:2rem}@media (max-width:48rem){.styles__Hero-section___1BcNz+.styles__Hero-section___1BcNz{margin-left:0}}.styles__Hero-cta___2KhwU{text-align:center;max-width:32rem;margin-left:auto;margin-right:auto;margin-top:2rem}.styles__HistoryRowCircleWrapper___3r8Uo{width:2.6rem;height:2.6rem;justify-content:center;display:flex;align-self:start}.styles__HistoryRowCircle___4FWWa{border:1px solid var(--dividerColor);background-color:var(--paperBackgroundColor)}.styles__HistoryRowRevisionLoader___a5y5b{display:flex;justify-content:center}.styles__HistoryRowCaption___2fe_H{margin-bottom:2rem;padding-left:2rem;padding-right:2rem}.styles__HistoryRowMedia___2jgYN{position:relative;padding:1rem}.styles__HistoryRowMedia___2jgYN:before{content:\"\";border-left:1px dashed var(--dividerColor2);position:absolute;margin-left:20px;top:2.125rem;bottom:-1rem}.styles__HistoryRowMedia___2jgYN:last-child:before{border:0}.styles__HistoryRowMediaImg___1J9OI{align-self:flex-start;z-index:1}.styles__icon--spin___ybfC1{animation:styles__spin___2Vvw3 1s linear infinite}@media (prefers-reduced-motion:reduce){.styles__icon--spin___ybfC1{animation:none}}@-webkit-keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes styles__spin___2Vvw3{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.styles__icon___23x3R{fill:var(--iconColor);transform:translateZ(0)}.styles__icon--preserveColor___3gBz6{fill:inherit}.styles__IconStack-wrapper___10dhG{position:relative;display:inline-block}.styles__IconStack-foregroundIcon___ZvY-t{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.styles__Infos___2ZZVs{position:relative;border-radius:8px;padding:1rem 1.5rem}@media (max-width:48rem){.styles__Infos___2ZZVs{padding:.75rem 1rem}}.styles__Infos___2ZZVs.styles__Infos--primary___3i4ll{background-color:var(--primaryColorLightBackground)}.styles__Infos___2ZZVs.styles__Infos--secondary___1AW6F{background-color:var(--neutralBackground)}.styles__Infos___2ZZVs.styles__Infos--danger___3wKYc{background-color:var(--errorBackground)}.styles__Infos-description___7P1NP{max-width:32rem}.styles__Info-close___1RVQP{position:absolute;top:0;right:0;padding:.75rem}.styles__InfosCarrousel___3rCyB{position:relative}.styles__InfosCarrousel-navigation___3s_hu{position:absolute;display:flex;align-items:center;height:2.5rem;bottom:1rem;right:1rem;box-sizing:border-box}@media (max-width:48rem){.styles__InfosCarrousel-navigation___3s_hu{height:2.5rem;bottom:.75rem;right:.75rem}}.styles__InfosCarrousel-separator___AvH5m{border-left:1px solid var(--dividerColor);height:1rem;margin:0 .5rem}.styles__c-inline-card___1sri1{display:inline-block;border:.063rem solid var(--silver);box-shadow:0 0 .625rem rgba(0,0,0,.1);padding:.375rem}.styles__c-input-text___3TAv1[aria-disabled=true],.styles__c-input-text___3TAv1[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-input-text___3TAv1[aria-disabled=true]:focus,.styles__c-input-text___3TAv1[aria-disabled=true]:hover,.styles__c-input-text___3TAv1[disabled]:focus,.styles__c-input-text___3TAv1[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-input-text___3TAv1{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-input-text___3TAv1::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-input-text___3TAv1:hover{border:.063rem solid var(--coolGrey)}.styles__c-input-text___3TAv1:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-input-text___3TAv1.styles__is-error___3lsCJ,.styles__c-input-text___3TAv1:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-input-text--tiny___MzMoD{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-input-text--medium___28jPV{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-input-text--large___28EaR{border-radius:.188rem;padding:.813rem 1rem}.styles__c-input-text--fullwidth___33o_f{max-width:100%}.styles__c-inputgroup___12OVJ input[aria-disabled=true],.styles__c-inputgroup___12OVJ input[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-inputgroup___12OVJ input[aria-disabled=true]:focus,.styles__c-inputgroup___12OVJ input[aria-disabled=true]:hover,.styles__c-inputgroup___12OVJ input[disabled]:focus,.styles__c-inputgroup___12OVJ input[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-inputgroup___12OVJ input{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-inputgroup___12OVJ input::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-inputgroup___12OVJ input:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup___12OVJ input:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-inputgroup___12OVJ input.styles__is-error___2dj3S,.styles__c-inputgroup___12OVJ input:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-inputgroup___12OVJ{display:inline-flex;flex-direction:row;box-sizing:border-box;align-items:stretch;width:100%;max-width:32rem;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__c-inputgroup___12OVJ:hover{border:.063rem solid var(--coolGrey)}.styles__c-inputgroup--focus___Tk5-Z,.styles__c-inputgroup--focus___Tk5-Z:hover{border-color:var(--dodgerBlue)}.styles__c-inputgroup--error___1JNbu{border-color:var(--pomegranate)}.styles__c-inputgroup--fullwidth___3nuay{max-width:none}.styles__c-inputgroup-main___1LP4B{flex:1 1 auto}.styles__c-inputgroup___12OVJ input{border:0;padding-right:.5rem}.styles__c-inputgroup___12OVJ input:focus,.styles__c-inputgroup___12OVJ input:hover{position:relative;z-index:1;border:0;outline:0}.styles__c-inputgroup-side___60v0v{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;max-width:8.75rem}.styles__c-inputgroup-unit___bFj9a{padding-left:1rem;padding-right:1rem;font-weight:700}.styles__intentHeader___m5Qjh{display:flex;align-items:center;height:2rem;padding:.5rem 1rem;background-color:var(--paleGrey);margin:0;flex-basis:auto;flex-shrink:0}.styles__intentHeader-title___1r4ex{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__intentHeader-title___1r4ex span{font-weight:400}.styles__intentHeader-icon___3s30C{height:1.125rem;margin-right:.5rem}iframe{width:100%;height:100%;border:0}.styles__intentContainer___gZbMl,.styles__intentPlaceHolder___EWSR1{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.styles__intentContainer___gZbMl[aria-busy=true] iframe{height:0;width:0}.styles__intentContainer__error___yQ7K8{color:red;font-size:1.5em}.styles__intentModal___1aYIb{height:90vh}@media (max-width:48rem){.styles__intentModal___1aYIb{height:100%;width:100%}}.styles__intentModal___1aYIb>div{height:100%;max-width:unset!important}.styles__intentModal___1aYIb .styles__intentModal__cross___1Hfuz{top:.25rem;right:.5rem}.styles__intentWrapper___1ZMvW{display:flex;flex-flow:column nowrap;align-items:stretch;position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__intentWrapper___1ZMvW .styles__intentHeader___3TDUp{display:flex;align-items:center;padding:.25rem 1rem;margin:0}.styles__intentWrapper___1ZMvW .styles__intentContent___1ilx7 [class^=c-header-icon--ghost]{margin:0}.styles__CollectionField__addBtn___Z0FO-{margin-left:0;margin-right:0}.styles__CollectionField__addBtnIcon___1hA5b{margin-right:.5rem}.styles__CollectionField__row___Z7bbf{display:flex;align-items:center}.styles__CollectionField__row___Z7bbf>*+*{margin-left:1rem}.styles__gridItem-container___387sO{text-align:center;box-sizing:border-box;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.styles__iconGrid___7nBAB{display:grid;grid-template-columns:repeat(2,16px);grid-template-rows:repeat(2,16px);grid-gap:1px}.styles__PasswordInput___3Oa3V{display:inline-flex;flex-direction:column;width:100%;max-width:32rem}.styles__PasswordInput--withStrength___1Msxm{border-bottom-left-radius:0;border-bottom-right-radius:0}.styles__PasswordInput__strength___1hpSg{background-color:var(--paleGrey);border-radius:.188rem;border-top-left-radius:0;border-top-right-radius:0;border:.063rem solid var(--silver);border-top:0;box-sizing:border-box;height:.25rem}.styles__PasswordInput__strength--weak___dzrGl{color:var(--pomegranate)}.styles__PasswordInput__strength--weak___dzrGl::-webkit-progress-value{background-color:var(--errorColor)}.styles__PasswordInput__strength--weak___dzrGl::-moz-progress-bar{background-color:var(--errorColor)}.styles__PasswordInput__strength--moderate___1ME_z{color:var(--texasRose)}.styles__PasswordInput__strength--moderate___1ME_z::-webkit-progress-value{background-color:var(--warningColor)}.styles__PasswordInput__strength--moderate___1ME_z::-moz-progress-bar{background-color:var(--warningColor)}.styles__PasswordInput__strength--strong___3yuP0{color:var(--emerald)}.styles__PasswordInput__strength--strong___3yuP0::-webkit-progress-value{background-color:var(--successColor)}.styles__PasswordInput__strength--strong___3yuP0::-moz-progress-bar{background-color:var(--successColor)}.styles__PasswordInput__visibilityButton___2B6RJ{height:100%;width:3rem;background-color:initial;border:0}.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw,.styles__o-layout___3TSz9{display:block}.styles__o-layout-2panes___1CDQw main,.styles__o-layout___3TSz9 main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main],.styles__o-layout___3TSz9 main,.styles__o-layout___3TSz9 main>[role=contentinfo],.styles__o-layout___3TSz9 main>[role=main]{display:block;overflow:visible}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{content:\"\";display:block}.styles__o-layout-2panes___1CDQw:after,.styles__o-layout-2panes___1CDQw:before,.styles__o-layout___3TSz9:after,.styles__o-layout___3TSz9:before{height:3rem}}.styles__o-layout-2panes___1CDQw{flex:0 0 100%;align-items:stretch}.styles__o-layout-2panes___1CDQw>aside{display:flex;flex-direction:column;flex:0 0 auto}.styles__o-layout-2panes___1CDQw main,.styles__o-layout-2panes___1CDQw main>[role=contentinfo],.styles__o-layout-2panes___1CDQw main>[role=main]{height:auto}@media (max-width:63.938rem){.styles__o-layout-2panes___1CDQw>aside{position:fixed;bottom:0;left:0;display:block;z-index:20;width:100%}}.styles__media___cSJMp{display:flex;align-items:center}.styles__media--top___K9w0I{align-items:flex-start}.styles__media--bottom___21YWJ{align-items:flex-end}.styles__bd___1Uv-F{flex:1 1 auto;overflow:hidden}.styles__img___3SHpG{line-height:0;flex:0 0 auto}.styles__c-modal___33aV9{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__c-modal-content___2av1P{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__c-modal-footer___2Z4Tc,.styles__c-modal-header--branded___1wwof,.styles__c-modal-header___hTCm5{flex:0 0 auto}.styles__c-modal-container___31zmi{position:relative;z-index:70}.styles__c-modal-wrapper___8PyE9{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100vw;height:100%;overflow-y:auto;padding:3rem}@media (max-width:48rem){.styles__c-modal-wrapper___8PyE9{justify-content:center;padding:1.5rem}}@media (max-width:30rem){.styles__c-modal-wrapper___8PyE9{padding:.5rem}}.styles__c-modal___33aV9{position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.styles__c-modal--xsmall___1lu1t{width:24rem}@media (max-width:25rem){.styles__c-modal--xsmall___1lu1t{width:100%}}.styles__c-modal--small___XUfOM{width:34rem}@media (max-width:35rem){.styles__c-modal--small___XUfOM{width:100%}}.styles__c-modal--medium___1dS6h{width:36rem}@media (max-width:39rem){.styles__c-modal--medium___1dS6h{width:100%}}.styles__c-modal--large___3arEs{width:40rem}@media (max-width:46rem){.styles__c-modal--large___3arEs{width:100%}}.styles__c-modal--xlarge___1XePQ{width:50rem}@media (max-width:56rem){.styles__c-modal--xlarge___1XePQ{width:100%}}.styles__c-modal--xxlarge___3Xp1K{width:60rem}@media (max-width:66rem){.styles__c-modal--xxlarge___3Xp1K{width:100%}}@media (max-width:48rem){.styles__c-modal-wrapper___8PyE9.styles__c-modal-wrapper--fullscreen___3ygpX{padding:0}}@media (max-width:48rem){.styles__c-modal___33aV9.styles__c-modal--fullscreen___8xZVw{height:100%;width:100%;border-radius:0;box-sizing:border-box}}.styles__c-modal-header--branded___1wwof,.styles__c-modal-header___hTCm5{margin:0 0 1rem;padding:1.687rem 3rem 0 2rem;overflow:visible;min-height:2.5rem}.styles__c-modal-header--branded___1wwof h2,.styles__c-modal-header___hTCm5 h2{margin:0;font-weight:700}@media (max-width:30rem){.styles__c-modal-header--branded___1wwof,.styles__c-modal-header___hTCm5{margin-bottom:.5rem;padding:1.187rem 2rem 0 1.5rem}.styles__c-modal-header--branded___1wwof h2,.styles__c-modal-header___hTCm5 h2{font-size:1.25rem}}.styles__c-modal-header--branded___1wwof{padding:1rem 3rem}.styles__c-modal-header--branded___1wwof img{display:block;max-height:3.5rem;margin:0 auto}.styles__c-modal-illu-header--ghost___3E9lu,.styles__c-modal-illu-header___3oi9k{display:flex;align-items:center;justify-content:center;margin:0 0 1rem;max-width:100%}.styles__c-modal-illu-header--ghost___3E9lu>*,.styles__c-modal-illu-header___3oi9k>*{max-width:inherit}.styles__c-modal-illu-header--ghost___3E9lu{position:absolute;left:0;right:0;top:1rem;margin:.5rem 0;opacity:0;max-height:2rem;transition:opacity .15s ease-in,top .15s ease-in 50ms}.styles__c-modal-illu-header--ghost___3E9lu>*{max-height:inherit}.styles__c-modal-illu-header--ghost___3E9lu.styles__is-active___1fLce{top:0;opacity:1;transition:opacity .15s ease-in 50ms,top .15s ease-in}.styles__c-modal--small-spacing___1foWa .styles__c-modal-header___hTCm5{padding:1.187rem 3rem 0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-header___hTCm5{padding:.687rem 2rem 0 1rem}}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-header___hTCm5{padding:2.687rem 3rem 0}@media (max-width:48rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-header___hTCm5{padding:1.687rem 2rem 0}}.styles__c-modal-app___1e4sV{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.styles__c-app-editor___JFuCk{font-weight:400}.styles__c-modal-app-icon___3MjON{height:1.125rem;margin-right:.5rem}.styles__c-modal-content-fixed___3wKzQ{border-bottom:.063rem solid var(--dividerColor);flex:0 0 auto;padding:0 2rem}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content-fixed___3wKzQ{padding:0 1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-content-fixed___3wKzQ{padding:0 1rem}}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content-fixed___3wKzQ{padding:0 3rem}@media (max-width:30rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content-fixed___3wKzQ{padding:0 2rem}}.styles__c-modal-content___2av1P{padding:0 2rem}.styles__c-modal-content___2av1P:last-child{padding-bottom:2rem;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}@media (max-width:30rem){.styles__c-modal-content___2av1P{padding:0 1.5rem}.styles__c-modal-content___2av1P:last-child{padding-bottom:1.5rem}}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P{padding:0 1.5rem}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P:last-child{padding-bottom:1.5rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P{padding:0 1rem}.styles__c-modal--small-spacing___1foWa .styles__c-modal-content___2av1P:last-child{padding-bottom:1rem}}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P{padding:0 3rem}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P:last-child{padding-bottom:3rem}@media (max-width:48rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P{padding:0 2rem}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-content___2av1P:last-child{padding-bottom:2rem}}.styles__c-modal-footer___2Z4Tc{padding:1rem 1.25rem 1.25rem}.styles__c-modal-footer--button___1sIa4 button{margin-bottom:.25rem}@media (max-width:48rem){.styles__c-modal-footer--button___1sIa4 button{min-width:calc(50% - .5rem)}}.styles__c-modal-section___2QNq3{border-top:.063rem solid var(--dividerColor)}.styles__c-modal-close___1v2bp{box-sizing:border-box;position:absolute;top:1.5rem;right:1.5rem;margin:0;padding:.5rem;background-color:initial;border:0;cursor:pointer;display:block;width:2.5rem;height:2.5rem;z-index:1}@media (max-width:30rem){.styles__c-modal-close___1v2bp{top:.813rem;right:1rem}}.styles__c-modal--small-spacing___1foWa .styles__c-modal-close___1v2bp{top:1rem;right:1rem}@media (max-width:30rem){.styles__c-modal--small-spacing___1foWa .styles__c-modal-close___1v2bp{top:.313rem;right:.5rem}}.styles__c-modal--closable___29CLQ .styles__c-modal-header___hTCm5{padding-right:4.5rem}.styles__c-modal--large-spacing___n2gNs .styles__c-modal-close___1v2bp{top:2.5rem;right:2.5rem}@media (max-width:48rem){.styles__c-modal--large-spacing___n2gNs .styles__c-modal-close___1v2bp{top:1.313rem;right:1.5rem}}.styles__c-modal-close--notitle___1rqne{top:.375rem;right:.375rem}.styles__c-modal--overflowHidden___3H87t{overflow:hidden}.styles__c-modal-back-button___aIF_M{top:.375rem;left:.375rem;color:var(--coolGrey)}@media (max-width:48rem){.styles__c-modal-back-button___aIF_M{top:0;left:0}}.styles__c-modal-close--notitle___1rqne+.styles__c-modal-content___2av1P{margin-top:3rem}.styles__divider___-oC9I{align-items:center;display:flex}.styles__divider___-oC9I:after,.styles__divider___-oC9I:before{content:\"\";height:1px;background-color:var(--dividerColor)}.styles__divider___-oC9I:before{display:none;margin-right:.5rem}.styles__divider___-oC9I:after{flex:1;margin-left:.5rem}.styles__center___2jZEg:before{display:block;flex:1}.styles__NarrowContent___Zq8oI{max-width:32rem}.styles__c-nav___33dZy{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.styles__c-nav___33dZy{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.styles__c-nav-item___3XOLK{position:relative;z-index:0;height:3rem;box-sizing:border-box;cursor:pointer}.styles__c-nav-item___3XOLK:hover:before{content:\"\";position:absolute;z-index:-1;border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item___3XOLK:hover:before{content:none}}@media (max-width:63.938rem){.styles__c-nav-item___3XOLK{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.styles__c-nav-item___3XOLK:hover:before{content:none}}.styles__c-nav-icon___hrJUe{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.styles__c-nav-icon___hrJUe svg{display:block}.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}:hover>.styles__c-nav-icon___hrJUe{color:var(--navTextColor)}@media (max-width:63.938rem){.styles__c-nav-icon___hrJUe{display:block;margin-right:0}.styles__c-nav-icon___hrJUe svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.styles__c-nav-text___1J3yU{display:block;text-align:center;white-space:nowrap}}.styles__c-nav-link___3mK6W{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem}.styles__c-nav-link___3mK6W:visited{color:var(--navTextColor)}.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:700;color:var(--navTextActiveColor)}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN .styles__c-nav-icon___hrJUe{color:var(--primaryColor)}@media (max-width:63.938rem){.styles__c-nav-link___3mK6W{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:top;background-size:1.5rem}.styles__c-nav-link___3mK6W.styles__is-active___2D0jN,.styles__c-nav-link___3mK6W:hover{box-shadow:none;font-weight:400}}@media not all and (pointer:fine){.styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextColor)}}.styles__c-nav-item-secondary___k14rf{height:auto}.styles__c-nav-item-secondary___k14rf+.styles__c-nav-item-secondary___k14rf{margin-top:.125rem}@media (max-width:63.938rem){.styles__c-nav-item-secondary___k14rf{display:none}}.styles__c-nav-item-secondary___k14rf:hover:before{content:\"\";position:absolute;z-index:-1;border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,.1)}@media (hover:none){.styles__c-nav-item-secondary___k14rf:hover:before{content:none}}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W:hover:not(.styles__is-active___2D0jN){color:var(--navTextHoverColor)}.styles__c-nav-item-secondary___k14rf .styles__c-nav-link___3mK6W.styles__is-active___2D0jN{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.styles__DesktopSectionWrapper___1rIWP{list-style-type:none}.styles__Modal__back___qxUn_{cursor:pointer;margin-right:.5rem;margin-left:-.25rem;font-size:1.5rem;line-height:0;margin-bottom:-1rem;position:relative;top:-.5rem}.styles__OrderedList___17A_o{list-style:none;counter-reset:cozy-ui-ordered-list;padding-left:0;line-height:1.5}.styles__ListItem___2Lu4a{counter-increment:cozy-ui-ordered-list;position:relative;padding-left:1.5rem}.styles__ListItem___2Lu4a:before{content:counter(cozy-ui-ordered-list) \". \";font-weight:700;position:absolute;left:0;top:0}.styles__c-overlay___31iWd{z-index:50;position:fixed;top:0;left:0;height:100%;width:100%;background:var(--overlay);visibility:visible;transition:opacity .3s,visibility 0s ease-out}.styles__PageFooter___2IFCx{flex-grow:0}.styles__PageContent___DbPFL{flex-grow:1}.styles__PageLayout___1ptQY{display:flex;flex-direction:column}.styles__Panel-group___1txSp{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;box-sizing:border-box}.styles__Panel-main___2BRfq{flex:1 0 65%;overflow:auto}.styles__Panel-side___327EK{flex:0 0 35%;background:var(--paleGrey);overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:1.5rem}@media (max-width:30rem){.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{padding:.5rem}}@media (max-width:48rem){.styles__Panel-group___1txSp{display:block;overflow:auto}.styles__Panel-main___2BRfq,.styles__Panel-side___327EK{flex-basis:auto}}.styles__Token--number___2EzoN{color:#297ef2}.styles__Token--special___3_rSu{color:#b449e7}.styles__PercentageBar___12TWu{background-color:var(--defaultBackgroundColor);border:1px solid var(--borderMainColor);height:1.5rem;border-radius:4px}.styles__PercentageBar___12TWu .styles__PercentageBar__line___1DAnN{height:100%;border-radius:4px}.PercentageLine__PercentageLine___3koWP{transition:transform .3s ease;transform-origin:0 0;height:5px}.styles__c-btn-client___jTKz7{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border:.063rem solid var(--regularButtonSecondaryColor)}.styles__c-btn-client___jTKz7 svg{fill:currentColor}.styles__c-btn-client___jTKz7 svg+span{margin-left:.375rem}.styles__c-btn-client___jTKz7 input{cursor:pointer}.styles__c-btn-client___jTKz7>span{display:flex;align-items:center;justify-content:center;width:100%}.styles__c-btn-client___jTKz7[aria-disabled=true],.styles__c-btn-client___jTKz7[disabled]{opacity:.5;cursor:not-allowed}.styles__c-btn-client___jTKz7[aria-disabled=true] input,.styles__c-btn-client___jTKz7[disabled] input{cursor:not-allowed}.styles__c-btn-client___jTKz7[aria-busy=true]{opacity:.5;pointer-events:none}.styles__c-btn-client___jTKz7:visited{color:var(--regularButtonConstrastColor)}.styles__c-btn-client___jTKz7:active,.styles__c-btn-client___jTKz7:focus,.styles__c-btn-client___jTKz7:hover{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.styles__c-btn-client___jTKz7[aria-disabled=true]:hover,.styles__c-btn-client___jTKz7[disabled]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.styles__c-btn-client___jTKz7{background-color:var(--secondaryButtonPrimaryColor);border-color:var(--secondaryButtonSecondaryColor)}.styles__c-btn-client___jTKz7,.styles__c-btn-client___jTKz7:visited{color:var(--secondaryButtonContrastColor)}.styles__c-btn-client___jTKz7:active,.styles__c-btn-client___jTKz7:focus,.styles__c-btn-client___jTKz7:hover{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.styles__c-btn-client___jTKz7[aria-disabled=true]:hover,.styles__c-btn-client___jTKz7[disabled]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.styles__c-btn-client___jTKz7{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:initial;text-align:left;font-size:.813rem;font-weight:700;line-height:1.3;color:var(--slateGrey)}.styles__c-btn-client___jTKz7:visited{color:var(--slateGrey)}.styles__c-btn-client___jTKz7 span{flex:0 1 auto}.styles__c-btn-client___jTKz7 figure{flex:0 0 2rem;margin:0 .75rem 0 0}.styles__c-input-radio___XJQt1{display:flex;align-items:center;min-width:1rem;min-height:1rem}.styles__c-input-radio___XJQt1 span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.styles__c-input-radio___XJQt1 span:after,.styles__c-input-radio___XJQt1 span:before{content:\"\";position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.styles__c-input-radio___XJQt1 span:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);transform:translateY(-50%)}.styles__c-input-radio___XJQt1 span:hover:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___XJQt1 span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,transform}.styles__c-input-radio___XJQt1[aria-checked=mixed] span:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}.styles__c-input-radio___XJQt1[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.styles__c-input-radio___XJQt1[aria-disabled=true] :hover:before{box-shadow:inset 0 0 0 .125rem var(--silver)}.styles__c-input-radio___XJQt1[aria-disabled=true] :before{background-color:var(--paleGrey)}.styles__c-input-radio___XJQt1 input{border:0;clip:rect(0 0 0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.styles__c-input-radio___XJQt1 input:focus+span:before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.styles__c-input-radio___XJQt1 input:checked+span:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.styles__c-input-radio___XJQt1 input:checked+span:after{opacity:1;transform:translateY(-50%) scale(1)}.styles__c-input-radio___XJQt1 input:not(:checked)+span:after{opacity:0;transform:translateY(-50%) scale(0)}.styles__c-input-radio___XJQt1.styles__is-error___2-12P span{color:var(--pomegranate)}.styles__c-input-radio___XJQt1.styles__is-error___2-12P span:before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.styles__c-input-radio--noGutter___3WtC2 span{padding-left:0}.styles__c-input-radio___XJQt1 span:after,.styles__c-input-radio___XJQt1 span:before{border-radius:50%}.styles__c-input-radio___XJQt1 span:after{content:\"\";background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.styles__select--disabled___1W3en{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border:.063rem solid var(--dividerColor)}.styles__select--fullwidth___2l_xM{max-width:100%;padding-right:2.375rem}.styles__select--disabled___1W3en:focus,.styles__select--disabled___1W3en:hover{border-width:0}.styles__select-control__input___1xDlj{width:0;height:0;overflow:hidden}.styles__select--autowidth___16AEp{max-width:32rem}.styles__select--fullwidth___2l_xM{padding-right:0}.styles__select-option___ov_IT{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:.5rem;border-left:.25rem solid transparent;color:var(--charcoalGrey);transition:all .2s ease-out;white-space:normal}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey);cursor:pointer}.styles__select-option___ov_IT:hover:not(.styles__select-option--disabled___1du57) .styles__select-option__actions___2WOjb{opacity:1}.styles__select-option--focused___1Vpjv:not(.styles__select-option--disabled___1du57){background-color:var(--paleGrey)}.styles__select-option--selected___R3_ES{background-color:var(--paleGrey);border-left-color:var(--primaryColor)}.styles__select-option--disabled___1du57{color:var(--silver);cursor:not-allowed}.styles__select-option__checkbox___15WVE{margin-right:.5rem;vertical-align:top}.styles__select-option__label___1Xi5R{flex-grow:1;display:flex;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.styles__select-option__checkmark___ChXXs{width:2rem}.styles__select-option__actions___2WOjb{opacity:0;white-space:nowrap;transition:opacity .2s ease-out}@media (max-width:63.938rem){.styles__select-option__actions___2WOjb{opacity:1}}.styles__select__overlay___3H8Jy:before{content:\"\\A0\";width:200vw;height:200vh;top:-50vh;left:-50vh;display:block;position:fixed}.styles__MenuList___1H_pH{display:flex;flex-direction:column}.styles__FixedGroup___2izTc,.styles__Group___J6s7k{overflow-y:auto;padding-top:.25rem!important;padding-bottom:.25rem!important}.styles__FixedGroup___2izTc{flex-shrink:0;border-top:1px solid silver}.styles__SelectionBar___3UOqy{position:fixed;z-index:30;top:0;left:0;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;height:3.25rem;color:var(--white);background-color:var(--slateGrey);font-weight:700}.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0 1rem;min-width:3rem}@media (max-width:48rem){.styles__SelectionBar___3UOqy .styles__SelectionBar-count___1e2yD{padding:0;text-align:center}}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR{margin:0 .25rem;color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action___3B1aR:hover{color:var(--white)}.styles__SelectionBar___3UOqy .styles__SelectionBar-action--withLabel___3TJq3{margin:0 .5rem}@media (max-width:63.938rem){.styles__SelectionBar___3UOqy{top:auto;bottom:0;box-sizing:initial;height:3rem;padding-bottom:env(safe-area-inset-bottom)}}:root{--sidebarHeight:3rem}.styles__o-sidebar___1295j{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.styles__o-sidebar___1295j{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.styles__c-spinner___1snK7{display:inline-block;margin:0 .5rem}.styles__c-spinner___1snK7:before{content:\"\"}.styles__c-spinner___1snK7 p{margin-top:.938rem;line-height:1.5}.styles__c-spinner--middle___RwyII{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center}.styles__c-spinner--middle___RwyII:before{display:block;margin:0 auto}.styles__c-spinner--nomargin___13JyW{margin:0}.styles__SquareAppIcon-wrapper___2SEuM{box-sizing:border-box;background-color:var(--paperBackgroundColor);border-radius:.75rem;height:4rem;width:4rem;transition:transform .3s,border-radius .3s}@media (max-width:48rem){.styles__SquareAppIcon-wrapper___2SEuM{height:3rem;width:3rem}}.styles__SquareAppIcon-icon-container___39MRl{display:flex;align-items:center;justify-content:center;padding:.625rem;border-radius:.75rem;width:100%}@media (max-width:48rem){.styles__SquareAppIcon-icon-container___39MRl{padding:.5rem}}.styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-icon-container___39MRl svg{width:100%}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:screen}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container___39MRl svg{filter:saturate(0)}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y img,.styles__SquareAppIcon-wrapper-ghost___1ZALZ .styles__SquareAppIcon-icon-container-normal___DCe9y svg{opacity:.5}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl{mix-blend-mode:luminosity}.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl img,.styles__SquareAppIcon-wrapper-maintenance___2ne2n .styles__SquareAppIcon-icon-container___39MRl svg{opacity:.5}.styles__SquareAppIcon-wrapper-loading___3A1_X{border-radius:50%;transform:scale(.875)}@media (max-width:48rem){.styles__SquareAppIcon-wrapper-loading___3A1_X{transform:scale(.8334)}}.styles__SquareAppIcon-spinner___o0LO1{margin:0!important}.styles__onEnd___1O6Q7,.styles__SquareAppIcon-spinner___o0LO1 svg{position:absolute;height:100%;width:100%}.styles__onEnd___1O6Q7{align-items:center;border-radius:50%;display:flex;opacity:0;z-index:1}.styles__onEnd___1O6Q7 svg{fill:transparent!important}.styles__onEnd___1O6Q7 svg path{animation-duration:.2s!important}.styles__onEnd___1O6Q7 svg path:first-of-type{animation-delay:.2s!important}.styles__onEnd___1O6Q7 svg path+path{animation-delay:.36s!important}.styles__onEnd___1O6Q7 svg *{stroke:var(--white)!important}.styles__onEnd___1O6Q7.styles__isFailed___2AYxx{--animationColor:var(--errorColor)}.styles__onEnd___1O6Q7.styles__isSuccess___I6nFq{--animationColor:var(--successColor)}.styles__isFailed___2AYxx,.styles__isSuccess___I6nFq{animation:styles__end-animation___1O0b3 1.5s forwards}@-webkit-keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}@keyframes styles__end-animation___1O0b3{0%{background-color:initial;border-radius:50%;opacity:0}13.33%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}66.67%{background-color:var(--animationColor);border-radius:.75rem;opacity:1}to{border-radius:.75rem;opacity:0;background-color:initial}}.styles__Stack--m___1tSpV>*+*{margin-top:1rem}.styles__Stack--xs___2R5lW>*+*{margin-top:.5rem}.styles__Stack--s___22WMg>*+*{margin-top:.75rem}.styles__Stack--l___3oxCJ>*+*{margin-top:1.5rem}.styles__Stack--xl___3qy-m>*+*{margin-top:2rem}.styles__Stack--xxl___2KAsb>*+*{margin-top:3rem}.styles__Table___x3ZsI{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.styles__TableHead___1rqhM{flex:0 0 2rem}@media (max-width:48rem){.styles__TableHead___1rqhM{display:none}}.styles__TableBody___1EfpK{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.styles__TableBody___1EfpK{max-height:100%}}.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:var(--actionColorHover)}@media (hover:none){.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover,.styles__TableRow___1D62H:hover{background-color:initial}}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child,.styles__TableRow___1D62H:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.styles__TableHead___1rqhM .styles__TableRow___1D62H,.styles__TableRow___1D62H{max-width:100vw}}.styles__TableHead___1rqhM .styles__TableRow___1D62H{border:0}.styles__TableHead___1rqhM .styles__TableRow___1D62H:hover{background-color:initial}.styles__TableHead___1rqhM .styles__TableRow___1D62H:last-child{border-bottom:0}.styles__TableCell___yJCq7,.styles__TableHeader___FWkmV{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.styles__TableHeader___FWkmV{padding:.5rem 1rem;font-size:.75rem;font-weight:700;text-transform:uppercase}.styles__c-textarea___D7EEH[aria-disabled=true],.styles__c-textarea___D7EEH[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__c-textarea___D7EEH[aria-disabled=true]:focus,.styles__c-textarea___D7EEH[aria-disabled=true]:hover,.styles__c-textarea___D7EEH[disabled]:focus,.styles__c-textarea___D7EEH[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__c-textarea___D7EEH{display:inline-block;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__c-textarea___D7EEH::placeholder{color:var(--coolGrey);font-size:1rem}.styles__c-textarea___D7EEH:hover{border:.063rem solid var(--coolGrey)}.styles__c-textarea___D7EEH:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__c-textarea___D7EEH.styles__is-error___1kGLj,.styles__c-textarea___D7EEH:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__c-textarea--tiny___3fmPW{border-radius:.125rem;padding:.25rem .5rem .375rem}.styles__c-textarea--medium___T8f3b{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__c-textarea--fullwidth___Ih_mg{max-width:100%}.styles__c-textarea___D7EEH{display:block;width:100%;min-height:7.5rem;resize:vertical}.styles__c-textarea--tiny___3fmPW{min-height:3rem}.styles__c-textarea--medium___T8f3b{min-height:5rem}.Thumbnail__container___2Eg5o{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:32px;width:32px;z-index:var(--zIndex-app)}.Thumbnail__wrapper___ZoPVg{box-sizing:border-box;display:inherit;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg>*{max-width:26px;max-height:26px}.Thumbnail__wrapper___ZoPVg>:not(img){width:26px;height:26px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR{position:relative;max-width:29px;max-height:29px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR:after{content:\"\";position:absolute;width:100%;height:100%;z-index:var(--zIndex-below);top:-6px;left:0;background-color:var(--paperBackgroundColor);border:3px solid var(--paperBackgroundColor);border-radius:3px;box-shadow:var(--shadow1),0 0 0 .5px rgba(29,33,42,.16)}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>*{max-width:23px;max-height:23px}.Thumbnail__wrapper___ZoPVg.Thumbnail__stacked___2RrRR>:not(img){width:23px;height:23px}.styles__Tile___2SqRi{box-sizing:border-box;position:relative;display:flex;flex-direction:column;flex:0 0 8.75rem;width:8.75rem;height:8.75rem;align-items:center;background:var(--paperBackgroundColor);border-radius:4px;border:1px solid var(--dividerColor);padding:.375rem;margin-bottom:1rem;margin-right:.75rem;overflow:hidden;transition:all .15s ease}.styles__Tile___2SqRi.styles__Tile-secondary___2zYdn{background:var(--defaultBackgroundColor);border-color:var(--defaultBackgroundColor)}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{box-shadow:0 4px 12px 0 rgba(0,0,0,.08);cursor:pointer;transform:scale(1.1)}@media (max-width:48rem){.styles__Tile___2SqRi{flex-basis:100%;flex-direction:row;height:3.75rem;justify-content:flex-start;margin-right:.5rem;margin-bottom:.5rem;padding-left:.5rem}.styles__Tile___2SqRi:active,.styles__Tile___2SqRi:focus,.styles__Tile___2SqRi:hover{transform:scale(1.01)}}.styles__Tile-icon-wrapper___24AzZ{margin-top:.25rem;margin-bottom:.25rem;width:3rem;height:3rem}.styles__Tile-desc___3lPj6{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;margin-top:.5rem;text-align:center;max-width:100%}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{display:block;margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.styles__Tile-title___3gbq-{color:var(--black)}.styles__Tile-title___3gbq-.styles__Tile-title-multiline___17HPx{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.styles__Tile-developer___2GOfB{height:1rem}.styles__Tile-status___33VkE{margin-top:.5rem;height:1rem}.styles__Tile-status___33VkE.styles__Tile-status-accent___an9au{color:var(--primaryColor)}@media (max-width:48rem){.styles__Tile-icon-wrapper___24AzZ{margin-top:0;margin-bottom:0;width:3rem;height:2.5rem}.styles__Tile-desc___3lPj6{margin-top:0;margin-left:.5rem;text-align:left;flex-grow:1}.styles__Tile-title___3gbq-{height:1rem;font-weight:400;font-size:.75rem!important}.styles__Tile-developer___2GOfB,.styles__Tile-status___33VkE,.styles__Tile-title___3gbq-{width:100%}.styles__Tile-developer___2GOfB{display:none}.styles__Tile-status___33VkE{margin-top:.125rem}}.styles__toggle___3zVsE{display:inline-block;width:2.5rem;height:1.5rem}.styles__checkbox___3ko96{display:none}.styles__label___3jY1f{position:relative;display:inline-block;width:100%;height:100%;border-radius:1rem;background:var(--silver);transition:all .2s ease-out;cursor:pointer}.styles__label___3jY1f:before{position:absolute;top:0;bottom:0;left:.125rem;display:inline-block;width:1.25rem;height:1.25rem;margin:auto;border-radius:50%;content:\"\";background:var(--white);transition:all .2s ease-out}.styles__checkbox___3ko96:checked+.styles__label___3jY1f{background:var(--emerald)}.styles__checkbox___3ko96:checked+.styles__label___3jY1f:before{left:1.125rem}.styles__UnorderedList___2uFFY{padding-left:0;list-style:none}.styles__ListItem___3cRoI{position:relative;line-height:1.5;padding-left:1.5rem}.styles__ListItem___3cRoI:before{content:\"\";position:absolute;top:.75rem;left:0;width:.5rem;height:.5rem;background-color:var(--slateGrey);border-radius:50%;transform:translateY(-50%)}.styles__upload-queue___1VtNK{border:.0625rem solid var(--dividerColor);border-radius:.25rem;background-color:var(--paperBackgroundColor);display:flex;flex-direction:column;max-width:90%;width:30rem}.styles__upload-queue__threshold-bar___tTYal{min-width:10rem;margin-right:1rem}.styles__upload-queue__progress-caption___1-vXY{line-height:.75rem;height:1rem}.styles__upload-queue__upload-progress___1q-uS{align-items:center;display:flex;margin-top:.125rem}.styles__upload-queue--popover___2z1a4{z-index:40;border:.063rem solid var(--dividerColor);border-radius:.25rem;box-shadow:0 .063rem .188rem 0 rgba(50,54,63,.19),0 .375rem 1.125rem 0 rgba(50,54,63,.19);background-color:var(--paperBackgroundColor);position:fixed;bottom:.5rem;right:1.5rem;height:13.125rem;transform:translateY(18.75rem);transition:.5s;opacity:0;visibility:hidden}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{opacity:1;visibility:visible;transform:translate(0)}.styles__upload-queue-header___c9Vf2{display:flex;flex-direction:column;justify-content:center;height:2rem;background-color:var(--defaultBackgroundColor);font-weight:700;margin:0;padding:.5rem 1rem}.styles__upload-queue-header___c9Vf2 .styles__upload-queue-header-inner___26wpB{display:flex;justify-content:space-between;align-items:center}progress.styles__upload-queue-progress___1CmN-{-webkit-appearance:none;-moz-appearance:none;border:none;display:block;width:100%;height:.125rem;margin:0}.styles__upload-queue-content___3MPHo{overflow:auto}.styles__upload-queue--collapsed___3cchD{height:2.5rem}.styles__upload-queue--collapsed___3cchD .styles__upload-queue-content___3MPHo{visibility:none}.styles__upload-queue-list___OVvJm{flex:1 1 auto;display:flex;flex-direction:column}.styles__upload-queue-item--error___2sSeV{background-color:var(--errorBackground)}.styles__upload-queue-item--done___2PSJI{background-color:var(--defaultBackgroundColor)}.styles__item-file___1kfDn{user-select:none;overflow:hidden}.styles__item-status___3FNcY{flex:0 0 15%;text-align:right;white-space:nowrap;padding-left:1rem}@media (max-width:63.938rem){.styles__upload-queue___1VtNK{border-radius:0;border:0;background-color:var(--paperBackgroundColor);box-shadow:none;width:100%;max-width:100%;height:auto;transform:none}.styles__upload-queue-header___c9Vf2{background:0;text-transform:uppercase;padding:.5rem}.styles__upload-queue-content___3MPHo{display:none}.styles__upload-queue--popover___2z1a4{top:3rem;bottom:auto;right:0;left:0;z-index:3;max-height:0}.styles__upload-queue--popover___2z1a4:before{position:fixed;top:2.9375rem;z-index:20;width:100%;height:.0625rem;content:\"\";background:var(--paperBackgroundColor)}.styles__upload-queue--popover___2z1a4.styles__upload-queue--visible___DjVRs{max-height:30%}.styles__upload-queue--popover___2z1a4 .styles__upload-queue-content___3MPHo{display:none}}.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{position:relative;display:flex;width:60%;max-height:calc(100% - 4rem);justify-content:center;align-items:center;flex-direction:column;margin-top:4rem}.styles__viewer-audioviewer___1OQPB h2,.styles__viewer-canceled___pOA_O h2,.styles__viewer-imageviewer___26k0p h2,.styles__viewer-noviewer___auG-6 h2,.styles__viewer-pdfviewer___1gTP9 h2,.styles__viewer-textviewer___3u5Zw h2,.styles__viewer-videoviewer___NhFoe h2{max-width:90%}@media (max-width:63.938rem){.styles__viewer-audioviewer___1OQPB,.styles__viewer-canceled___pOA_O,.styles__viewer-imageviewer___26k0p,.styles__viewer-noviewer___auG-6,.styles__viewer-pdfviewer___1gTP9,.styles__viewer-textviewer___3u5Zw,.styles__viewer-videoviewer___NhFoe{margin-left:0;width:100%;max-height:calc(100% - 6.5rem);margin-top:-.5rem}}.styles__viewer-videoviewer___NhFoe video{width:100%;max-width:31.25rem;height:auto}.styles__viewer-textviewer___3u5Zw .styles__viewer-textviewer-content___PB-c3{white-space:pre-line;width:100%;max-height:70%;overflow:auto}.styles__viewer-textviewer___3u5Zw a{color:var(--azure)}@media (max-width:63.938rem){.styles__viewer-textviewer___3u5Zw{width:90%;margin-left:5%}}.styles__viewer-filename___3jZCt{max-width:90%;text-overflow:ellipsis;overflow:hidden}.styles__viewer-pdfviewer-pdf___16ID9{overflow:auto;width:100%}.styles__viewer-pdfviewer-page___2RPuw>*{margin:auto}.styles__viewer-pdfviewer-toolbar___3NXOk{position:absolute;bottom:2rem;background:var(--charcoalGrey);color:var(--white);border-radius:.5rem}.styles__viewer-imageviewer___26k0p{flex:1 1 100%;width:auto;max-width:100%}.styles__viewer-imageviewer___26k0p img{display:block;max-width:100%;max-height:100%;box-shadow:0 .375rem 1.5rem 0 rgba(0,0,0,.5)}.styles__viewer-pdfMobile___25FPg{width:100%;height:calc(100% - 6.5rem - var(--flagship-top-height));margin-top:calc(var(--flagship-top-height, 0rem) + -.5rem)}.styles__viewer-pdfMobile--image___3gpFL{width:100%}.styles__ActionMenuDesktop-ActionMenu___1iicy a{padding:0}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div{cursor:default}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div:hover{background-color:initial}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div svg{fill:var(--disabledTextColor)}.styles__ActionMenuDesktop-ActionMenu___1iicy .styles__ActionMenuDesktop-ActionMenu-link-disabled___3QHjm>div>div p{color:var(--disabledTextColor)}.styles__viewer-wrapper___2GIXH{position:absolute;left:0;right:0;top:0;bottom:0;z-index:50;overflow:hidden;background:var(--charcoalGrey);color:var(--white)}.styles__flagship-app___KFqbm .styles__viewer-wrapper___2GIXH{padding-top:var(--flagship-top-height);padding-bottom:var(--flagship-bottom-height)}@media (max-width:63.938rem){.styles__viewer-wrapper___2GIXH{color:var(--charcoalGrey);background:var(--white)}}.styles__viewer-nav___1MSd7{position:absolute;top:4rem;bottom:0;z-index:72;width:20%;cursor:pointer;background-color:initial;transition:opacity .4s ease-out;opacity:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.styles__viewer-nav--visible___h_KJD:hover{opacity:1;transition:none}.styles__viewer-nav--previous___WOwzv{left:0}.styles__viewer-nav--previous___WOwzv .styles__viewer-nav-arrow___3_d1_{align-self:flex-start;margin-left:2.5rem;transform:rotate(180deg)}.styles__viewer-nav--next___1ah-4{right:0}.styles__viewer-nav--next___1ah-4 .styles__viewer-nav-arrow___3_d1_{align-self:flex-end;margin-right:2.5rem}@media (max-width:63.938rem){.styles__viewer-nav___1MSd7{display:none}}.styles__viewer-nav-arrow___3_d1_{opacity:.7}.styles__viewer-controls___1BYEX{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.styles__viewer-controls___1BYEX.styles__--expanded___2NoA- .styles__viewer-nav___1MSd7{margin-top:0;width:40%}@media (max-width:63.938rem){.styles__viewer-controls--display-content-top___3I1xq{justify-content:flex-start;padding-top:3.5rem}}.styles__viewer-toolbar___2zPR7{position:absolute;top:0;z-index:72;display:flex;flex-shrink:0;width:calc(100% - 2rem);padding:0 1rem;height:4rem;transition:opacity .4s ease-out;background:linear-gradient(180deg,var(--charcoalGrey),rgba(50,54,63,0));justify-content:flex-start;align-items:center}.styles__viewer-toolbar--hidden___3r3Sj{opacity:0}@media (max-width:63.938rem){.styles__viewer-toolbar___2zPR7{height:3rem;width:100%;padding:var(--flagship-top-height) 1rem 0 0;background:var(--paperBackgroundColor);border-bottom:1px solid var(--dividerColor)}}.styles__viewer-footer___2ieQS{position:fixed;bottom:0;z-index:71;width:100%;height:3.5rem;padding-bottom:var(--flagship-bottom-height,env(safe-area-inset-bottom));background:var(--paperBackgroundColor)}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80;--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}body,html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;margin:0}@media (max-width:63.938rem){body,html{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}body,html{background-color:var(--white);color:var(--black)}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}@media (max-width:63.938rem){.u-hide--mob{display:none!important}}@media (min-width:64rem){.u-hide--tablet{display:none!important}}@media (min-width:48.063rem){.u-hide--desk{display:none!important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap}.u-ellipsis,.u-spacellipsis{overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:\"[...]\"){.u-midellipsis>:first-child{text-overflow:\"[...]\"}}.u-link:link{color:var(--linkColor)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:active,.u-link:focus,.u-link:hover,.u-link:visited{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important}.u-fz-small,.u-fz-xsmall{line-height:1.4!important}.u-fz-small{font-size:.875rem!important}.u-fz-medium{font-size:1rem!important}.u-fz-large,.u-fz-medium{line-height:1.5!important}.u-fz-large{font-size:1.125rem!important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}@media (max-width:30rem){.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}}@media (max-width:48rem){.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}@media (max-width:30rem){.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}}@media (max-width:48rem){.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}}[data-input=checkbox],[data-input=radio]{display:flex}[data-input=checkbox] input[type=checkbox],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=radio] input[type=radio]{display:none!important;visibility:hidden!important}[data-input=checkbox] label,[data-input=radio] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=checkbox] label:after,[data-input=checkbox] label:before,[data-input=radio] label:after,[data-input=radio] label:before{content:\"\";position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=checkbox] label:before,[data-input=radio] label:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1)}[data-input=checkbox] label:after,[data-input=radio] label:after{transition-duration:.2s;transition-property:opacity,transform}.styles__wizard-select___2-yNW[aria-disabled=true],.styles__wizard-select___2-yNW[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.styles__wizard-select___2-yNW[aria-disabled=true]:focus,.styles__wizard-select___2-yNW[aria-disabled=true]:hover,.styles__wizard-select___2-yNW[disabled]:focus,.styles__wizard-select___2-yNW[disabled]:hover{border:.063rem solid var(--dividerColor)}.styles__wizard-select___2-yNW{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.styles__wizard-select___2-yNW::placeholder{color:var(--coolGrey);font-size:1rem}.styles__wizard-select___2-yNW:hover{border:.063rem solid var(--coolGrey)}.styles__wizard-select___2-yNW:focus{border:.063rem solid var(--dodgerBlue);outline:0}.styles__wizard-select___2-yNW.styles__is-error___1X2dc,.styles__wizard-select___2-yNW:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.styles__wizard-select--medium___kyH-1{border-radius:.125rem;padding:.5rem 1rem .625rem}.styles__wizard-select--medium___kyH-1,.styles__wizard-select___2-yNW{padding-right:2.375rem}.styles__wizard-select___2-yNW{appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTMuOTY4IDYuMTc1YTEuNTcxIDEuNTcxIDAgMDAtMi4yMjIgMi4yMjJsOS40MjkgOS40MjhhMS41NzEgMS41NzEgMCAwMDIuMjIyIDBsOS40MjgtOS40MjhhMS41NzEgMS41NzEgMCAwMC0yLjIyMi0yLjIyMmwtOC4zMTcgOC4zMTctOC4zMTgtOC4zMTd6IiBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.styles__wizard-select___2-yNW::-ms-expand{display:none}[data-input=radio] label:before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked+label:before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label:after,[data-input=checkbox] label:before{border-radius:.125rem}[data-input=checkbox] label:before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label:before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTAuMDE5bDQuNTIzIDQuNTIzIDkuNTQxLTkuNTQxIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==\");background-size:contain}[data-input=checkbox][aria-checked=mixed] label:after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTMuNDk3IDEwaDEzLjAwNiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked+label:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked+label:after{opacity:1;transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked)+label:after{opacity:0;transform:scale(0)}.styles__wizard-wrapper___38V4s{display:flex;flex-flow:column nowrap;align-items:stretch}.styles__wizard-main___ObvId{background:linear-gradient(#fff 30%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25),rgba(214,216,218,.25) 25%,hsla(0,0%,100%,0) 26%,hsla(0,0%,100%,0)),linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25)) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.styles__wizard-footer___-ZrgM,.styles__wizard-header___2_r05{flex:0 0 auto}.styles__wizard___m6AMR{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard___m6AMR{flex-direction:column;justify-content:flex-start}}.styles__wizard-wrapper___38V4s{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper___38V4s{justify-content:flex-start}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-wrapper--center___EWQI3{justify-content:center}}.styles__wizard-errors___1ufSE{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.styles__wizard-errors___1ufSE p{margin:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-errors___1ufSE{margin-top:.5rem}}.styles__wizard-header___2_r05{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-header___2_r05{margin:1rem 0 0}}.styles__wizard-main___ObvId{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.styles__wizard-main___ObvId>*{flex-shrink:0}.styles__wizard-footer___-ZrgM{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem env(safe-area-inset-bottom)}.styles__wizard-footer___-ZrgM>a:link,.styles__wizard-footer___-ZrgM>button{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-footer___-ZrgM{margin:1.5rem 0 .5rem}}.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM{justify-content:space-between}@media (min-width:30.063rem){.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>a:link,.styles__wizard--welcome___2Os7m .styles__wizard-footer___-ZrgM>button{flex:0 1 calc(50% - 0.25rem)}}.styles__wizard-logo___3Dtx1{position:relative;margin:0 auto;width:7.5rem}.styles__wizard-logo-img___2K1rs{width:100%;vertical-align:center}.styles__wizard-logo-badge___1mcMb{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.styles__wizard-desc___z9QXl{margin:2rem 0 0;line-height:1.5}.styles__wizard-desc___z9QXl a{color:var(--primaryColor);text-decoration:none}.styles__wizard-desc___z9QXl a:focus,.styles__wizard-desc___z9QXl a:hover{color:var(--primaryColorDark)}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-desc___z9QXl{margin:1.5rem 0 0}}.styles__wizard-header-fixed___39FT4{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.styles__wizard-previous___2StGt.styles__wizard-previous___2StGt{position:absolute;top:50%;left:0;transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.styles__wizard-brand____A68K{margin-left:2rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-brand____A68K{display:none}}.styles__wizard-next___38lPl{padding-right:3rem;padding-left:3rem}.styles__wizard-next___38lPl svg{position:absolute;right:1rem}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-input___1ltuD{border-radius:.125rem;padding:.5rem 1rem .625rem}}.styles__wizard-title___11Dzr{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-title___11Dzr{font-size:1.125rem;line-height:1.78}}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard--welcome___2Os7m .styles__wizard-title___11Dzr{font-size:1.5rem;line-height:1.17}}.styles__wizard-dualfield___254s1{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.styles__wizard-dualfield--focus___2Om-l{border-color:var(--primaryColor)}.styles__wizard-dualfield--error___2NR9g{border-color:var(--errorColor)}.styles__wizard-dualfield-wrapper___VN8PM{flex:1 1 auto}.styles__wizard-dualfield-input___2z596{border:0;padding-right:.5rem}.styles__wizard-dualfield-input___2z596:focus,.styles__wizard-dualfield-input___2z596:hover{position:relative;z-index:1;border:0;outline:0}@media (max-height:23.438rem),(max-width:30rem){.styles__wizard-dualfield-input___2z596{border-radius:.125rem;padding:.5rem .25rem .625rem 1rem}}.styles__wizard-protocol___4g-o1{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.styles__wizard-protocol___4g-o1 svg{fill:currentColor;margin-right:.5rem}.styles__wizard-select___2-yNW{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.styles__wizard-select___2-yNW:focus,.styles__wizard-select___2-yNW:hover{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.styles__wizard-select--medium___kyH-1{padding:.313rem 2.375rem .438rem .5rem}.styles__wizard-select--narrow___FTwrG{width:2.5rem}.styles__wizard-notice___2g62X{order:2;margin:2rem 0 0;line-height:1.5}.styles__wizard-notice___2g62X+.styles__wizard-notice___2g62X{margin-top:1rem}.styles__wizard-notice___2g62X p{margin:0}.styles__wizard-notice___2g62X a{color:var(--dodgerBlue);text-decoration:none;font-weight:700}.styles__wizard-notice___2g62X a:focus,.styles__wizard-notice___2g62X a:hover{color:var(--scienceBlue)}@media (min-width:30.063rem){.styles__wizard-notice___2g62X{margin:2rem 0 0}}.styles__wizard-notice--lost___3uoDz{font-size:1rem}", ""]); @@ -10567,206 +10629,6 @@ module.exports = Transaction; /***/ }), -/***/ "/dlN": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = exports.ButtonLink = exports.Button = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _Icon = _interopRequireWildcard(__webpack_require__("AHiN")); -var _Spinner = _interopRequireDefault(__webpack_require__("ImID")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var _excluded = ["busy", "disabled"], - _excluded2 = ["children", "icon", "iconOnly", "label", "subtle", "className", "extension", "round", "size", "theme", "align", "extraRight", "tag"]; -var styles = { - "c-btn": "styles__c-btn___3kXsk", - "c-btn--regular": "styles__c-btn--regular___1ilYT", - "c-btn--ghost": "styles__c-btn--ghost___Md7mm", - "c-btn--highlight": "styles__c-btn--highlight___GlDOj", - "c-btn--alpha": "styles__c-btn--alpha___2-bRT", - "c-btn--action": "styles__c-btn--action___3z98K", - "c-btn--close": "styles__c-btn--close___C19bl", - "c-btn--danger": "styles__c-btn--danger___wzHFo", - "c-btn--secondary": "styles__c-btn--secondary___1hLVM", - "c-btn--danger-outline": "styles__c-btn--danger-outline___BCng5", - "c-btn--text": "styles__c-btn--text___33vmu", - "c-btn--left": "styles__c-btn--left___3f1zH", - "c-btn--center": "styles__c-btn--center___Nny0n", - "c-btn--right": "styles__c-btn--right___1B9Tn", - "c-btn--tiny": "styles__c-btn--tiny___fK37G", - "c-btn--small": "styles__c-btn--small___9JKyq", - "c-btn--large": "styles__c-btn--large___3PnsT", - "c-btn--full": "styles__c-btn--full___1VumB", - "c-btn--narrow": "styles__c-btn--narrow___erKsd", - "c-btn--round": "styles__c-btn--round___35GfW", - "c-btn--subtle": "styles__c-btn--subtle___2rRQ0", - "spin": "styles__spin___3VrS0", - "shake": "styles__shake___1yyjR" -}; -var btnClass = function btnClass(options) { - var _cx; - var className = options.className, - extension = options.extension, - size = options.size, - theme = options.theme, - variant = options.variant, - round = options.round, - align = options.align; - return (0, _classnames.default)(styles['c-btn'], (_cx = {}, (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(theme)], theme), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(size)], size !== 'normal'), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(variant)], variant), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(extension)], extension), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(align)], align), (0, _defineProperty2.default)(_cx, styles["c-btn--round"], round), _cx), className); -}; -var transformToAria = function transformToAria(tag) { - return function (props) { - var busy = props.busy, - disabled = props.disabled, - newProps = (0, _objectWithoutProperties2.default)(props, _excluded); - if (busy) { - newProps['aria-busy'] = true; - } - if (disabled) { - newProps['aria-disabled'] = true; - } - if (tag === 'button' && disabled) { - newProps['disabled'] = true; - } - return newProps; - }; -}; -var tagToTransformProps = { - button: transformToAria('button'), - a: transformToAria('a') -}; -var identity = function identity(x) { - return x; -}; -var sizeToIconSize = { - tiny: 8, - small: 12, - large: 18 -}; -var BaseButton = function BaseButton(props) { - var children = props.children, - icon = props.icon, - iconOnly = props.iconOnly, - label = props.label, - subtle = props.subtle, - className = props.className, - extension = props.extension, - round = props.round, - size = props.size, - theme = props.theme, - align = props.align, - extraRight = props.extraRight, - Tag = props.tag, - restProps = (0, _objectWithoutProperties2.default)(props, _excluded2); - var transformProps = tagToTransformProps[Tag] || identity; - var tooltip = iconOnly ? label : null; - var iconOnlyClass = iconOnly ? 'u-visuallyhidden' : null; - return /*#__PURE__*/_react.default.createElement(Tag, (0, _extends2.default)({}, transformProps(restProps), { - className: btnClass({ - extension: extension, - align: align, - round: round, - size: size, - theme: theme, - className: className, - variant: subtle && 'subtle' - }), - title: tooltip - }), /*#__PURE__*/_react.default.createElement("span", null, _Icon.default.isProperIcon(icon) ? /*#__PURE__*/_react.default.createElement(_Icon.default, { - size: sizeToIconSize[size], - icon: icon, - "aria-hidden": true, - focusable: "false" - }) : icon, label && /*#__PURE__*/_react.default.createElement("span", { - className: iconOnlyClass - }, label), children, extraRight && /*#__PURE__*/_react.default.createElement("span", { - className: "u-ml-auto" - }, extraRight), restProps.busy && /*#__PURE__*/_react.default.createElement(_Icon.default, { - size: sizeToIconSize[size], - icon: _Spinner.default, - spin: true, - className: "u-ml-half", - "aria-hidden": true, - focusable: "false" - }))); -}; -var Button = function Button(props) { - return /*#__PURE__*/_react.default.createElement(BaseButton, props); -}; -exports.Button = Button; -var ButtonLink = function ButtonLink(props) { - return /*#__PURE__*/_react.default.createElement(BaseButton, props); -}; -exports.ButtonLink = ButtonLink; -var DefaultButton = function DefaultButton(props) { - if (!props.tag) { - return /*#__PURE__*/_react.default.createElement(Button, props); - } else { - return /*#__PURE__*/_react.default.createElement(BaseButton, props); - } -}; -var _default = DefaultButton; // Proptypes (unfortunately, Styleguidist does not pick -// proptypes coming from a spread so we have to keep both -// proptypes in sync) -exports.default = _default; -Button.propTypes = { - /** DEPRECATED: please use label and icon */ - children: _propTypes.default.node, - /** Label of the button */ - label: _propTypes.default.node.isRequired, - /** Icon of the button */ - icon: _propTypes.default.oneOfType([_propTypes.default.node, _Icon.iconPropType]), - /** Displays only the icon, not the label */ - iconOnly: _propTypes.default.bool, - theme: _propTypes.default.string, - size: _propTypes.default.oneOf(['tiny', 'small', 'large', 'normal']), - /** Spacing of the button */ - extension: _propTypes.default.oneOf(['narrow', 'full']), - /** Button's label alignment */ - align: _propTypes.default.oneOf(['left', 'right', 'center']), - /** Will make the button round */ - round: _propTypes.default.bool, - /** Extra class */ - className: _propTypes.default.string, - /** What to do on click */ - onClick: _propTypes.default.func, - /** Adds an element to the right of the button */ - extraRight: _propTypes.default.PropTypes.node, - // Only for Button - - /** Will display a spinner if true */ - busy: _propTypes.default.bool, - /** Disables the button */ - disabled: _propTypes.default.bool, - /** Type of the underlying `<button />` */ - type: _propTypes.default.oneOf(['button', 'reset', 'submit']), - /** Use the `subtle` alternative look for the Button */ - subtle: _propTypes.default.bool -}; -Button.defaultProps = { - type: 'submit', - tag: 'button', - size: 'normal', - align: 'center' -}; -ButtonLink.defaultProps = { - tag: 'a' -}; - -/***/ }), - /***/ "/g0h": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -11356,111 +11218,6 @@ __webpack_require__.r(__webpack_exports__); -/***/ }), - -/***/ "/s+K": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); -var _Button = _interopRequireDefault(__webpack_require__("78Gr")); -var _Icon = _interopRequireDefault(__webpack_require__("AHiN")); -var _Spinner = _interopRequireDefault(__webpack_require__("ImID")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var _excluded = ["className", "color", "label", "busy", "disabled", "endIcon"], - _excluded2 = ["variant", "className"]; -var DefaultButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) { - var className = _ref.className, - color = _ref.color, - label = _ref.label, - busy = _ref.busy, - disabled = _ref.disabled, - endIcon = _ref.endIcon, - props = (0, _objectWithoutProperties2.default)(_ref, _excluded); - return /*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({}, props, { - ref: ref, - className: (0, _classnames.default)((0, _defineProperty2.default)({}, "customColor-".concat(color), color), className), - color: "primary", - disabled: disabled || busy, - endIcon: busy ? /*#__PURE__*/_react.default.createElement(_Icon.default, { - icon: _Spinner.default, - spin: true, - "aria-hidden": true, - focusable: "false" - }) : endIcon, - disableElevation: true - }), label); -}); -DefaultButton.displayName = 'DefaultButton'; -DefaultButton.defaultProps = { - variant: 'contained', - color: 'primary' -}; -var Buttons = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) { - var variant = _ref2.variant, - _ref2$className = _ref2.className, - className = _ref2$className === void 0 ? '' : _ref2$className, - props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2); - switch (variant) { - case 'ghost': - return /*#__PURE__*/_react.default.createElement(DefaultButton, (0, _extends2.default)({ - className: "ghost ".concat(className), - variant: "outlined" - }, props, { - ref: ref - })); - case 'secondary': - return /*#__PURE__*/_react.default.createElement(DefaultButton, (0, _extends2.default)({ - variant: "outlined", - className: className - }, props, { - ref: ref - })); - case 'text': - return /*#__PURE__*/_react.default.createElement(DefaultButton, (0, _extends2.default)({ - variant: "text", - className: className - }, props, { - ref: ref - })); - case 'primary': - return /*#__PURE__*/_react.default.createElement(DefaultButton, (0, _extends2.default)({ - className: className - }, props, { - ref: ref - })); - default: - return /*#__PURE__*/_react.default.createElement(DefaultButton, (0, _extends2.default)({ - className: className - }, props, { - ref: ref - })); - } -}); -Buttons.displayName = 'Buttons'; -Buttons.propTypes = { - variant: _propTypes.default.oneOf(['primary', 'secondary', 'ghost', 'text']), - color: _propTypes.default.oneOf(['success', 'error', 'warning', 'info']) -}; -Buttons.defaultProps = { - variant: 'primary' -}; -var _default = Buttons; -exports.default = _default; - /***/ }), /***/ "/t2O": @@ -11714,6 +11471,7 @@ __webpack_require__.r(__webpack_exports__); var CipherView = /*#__PURE__*/function () { function CipherView(c) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherView); + this.id = null; this.organizationId = null; this.folderId = null; @@ -11734,9 +11492,11 @@ var CipherView = /*#__PURE__*/function () { this.collectionIds = null; this.revisionDate = null; this.deletedDate = null; + if (!c) { return; } + this.id = c.id; this.organizationId = c.organizationId; this.folderId = c.folderId; @@ -11750,21 +11510,27 @@ var CipherView = /*#__PURE__*/function () { this.revisionDate = c.revisionDate; this.deletedDate = c.deletedDate; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CipherView, [{ key: "subTitle", get: function get() { switch (this.type) { case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Login: return this.login.subTitle; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].SecureNote: return this.secureNote.subTitle; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Card: return this.card.subTitle; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Identity: return this.identity.subTitle; + default: break; } + return null; } }, { @@ -11787,6 +11553,7 @@ var CipherView = /*#__PURE__*/function () { } } } + return false; } }, { @@ -11802,6 +11569,7 @@ var CipherView = /*#__PURE__*/function () { } else if (this.login.password == null || this.login.password === '') { return null; } + return this.login.passwordRevisionDate; } }, { @@ -11810,6 +11578,7 @@ var CipherView = /*#__PURE__*/function () { return this.deletedDate != null; } }]); + return CipherView; }(); @@ -13394,23 +13163,6 @@ function shallowEqual(objA, objB) { /***/ }), -/***/ "0JGJ": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _InputAdornment = _interopRequireDefault(__webpack_require__("L2l3")); -var _default = _InputAdornment.default; -exports.default = _default; - -/***/ }), - /***/ "0JXu": /***/ (function(module, exports, __webpack_require__) { @@ -14167,20 +13919,20 @@ module.exports = unzipWith; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cipher", function() { return Cipher; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ykCz"); /* harmony import */ var _data_cipherData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("oejA"); /* harmony import */ var _view_cipherView__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("01jR"); @@ -14199,14 +13951,14 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -14215,6 +13967,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -14222,9 +13975,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -14239,19 +13994,25 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Cipher = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Cipher, _Domain); - var _super = _createSuper(Cipher); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Cipher, _Domain); + function Cipher(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var localData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Cipher); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Cipher); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Cipher).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this), obj, { id: null, userId: null, organizationId: null, @@ -14259,10 +14020,12 @@ var Cipher = /*#__PURE__*/function (_Domain) { name: null, notes: null }, alreadyEncrypted, ['id', 'userId', 'organizationId', 'folderId']); + _this.type = obj.type; _this.favorite = obj.favorite; _this.organizationUseTotp = obj.organizationUseTotp; _this.edit = obj.edit; + if (obj.viewPassword != null) { _this.viewPassword = obj.viewPassword; } else { @@ -14273,22 +14036,28 @@ var Cipher = /*#__PURE__*/function (_Domain) { _this.collectionIds = obj.collectionIds; _this.localData = localData; _this.deletedDate = obj.deletedDate != null ? new Date(obj.deletedDate) : null; + switch (_this.type) { case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login: _this.login = new _login__WEBPACK_IMPORTED_MODULE_15__["Login"](obj.login, alreadyEncrypted); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote: _this.secureNote = new _secureNote__WEBPACK_IMPORTED_MODULE_17__["SecureNote"](obj.secureNote, alreadyEncrypted); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card: _this.card = new _card__WEBPACK_IMPORTED_MODULE_11__["Card"](obj.card, alreadyEncrypted); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Identity: _this.identity = new _identity__WEBPACK_IMPORTED_MODULE_14__["Identity"](obj.identity, alreadyEncrypted); break; + default: break; } + if (obj.attachments != null) { _this.attachments = obj.attachments.map(function (a) { return new _attachment__WEBPACK_IMPORTED_MODULE_10__["Attachment"](a, alreadyEncrypted); @@ -14296,6 +14065,7 @@ var Cipher = /*#__PURE__*/function (_Domain) { } else { _this.attachments = null; } + if (obj.fields != null) { _this.fields = obj.fields.map(function (f) { return new _field__WEBPACK_IMPORTED_MODULE_13__["Field"](f, alreadyEncrypted); @@ -14303,6 +14073,7 @@ var Cipher = /*#__PURE__*/function (_Domain) { } else { _this.fields = null; } + if (obj.passwordHistory != null) { _this.passwordHistory = obj.passwordHistory.map(function (ph) { return new _password__WEBPACK_IMPORTED_MODULE_16__["Password"](ph, alreadyEncrypted); @@ -14310,106 +14081,132 @@ var Cipher = /*#__PURE__*/function (_Domain) { } else { _this.passwordHistory = null; } + return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Cipher, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Cipher, [{ key: "decrypt", value: function decrypt() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var model, orgId, attachments, fields, passwordHistory; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - model = new _view_cipherView__WEBPACK_IMPORTED_MODULE_9__["CipherView"](this); - _context.next = 3; - return this.decryptObj(model, { - name: null, - notes: null - }, this.organizationId); - case 3: - _context.t0 = this.type; - _context.next = _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login ? 6 : _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote ? 10 : _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card ? 14 : _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Identity ? 18 : 22; - break; - case 6: - _context.next = 8; - return this.login.decrypt(this.organizationId); - case 8: - model.login = _context.sent; - return _context.abrupt("break", 23); - case 10: - _context.next = 12; - return this.secureNote.decrypt(this.organizationId); - case 12: - model.secureNote = _context.sent; - return _context.abrupt("break", 23); - case 14: - _context.next = 16; - return this.card.decrypt(this.organizationId); - case 16: - model.card = _context.sent; - return _context.abrupt("break", 23); - case 18: - _context.next = 20; - return this.identity.decrypt(this.organizationId); - case 20: - model.identity = _context.sent; - return _context.abrupt("break", 23); - case 22: - return _context.abrupt("break", 23); - case 23: - orgId = this.organizationId; - if (!(this.attachments != null && this.attachments.length > 0)) { - _context.next = 29; - break; - } - attachments = []; - _context.next = 28; - return this.attachments.reduce(function (promise, attachment) { - return promise.then(function () { - return attachment.decrypt(orgId); - }).then(function (decAttachment) { - attachments.push(decAttachment); - }); - }, Promise.resolve()); - case 28: - model.attachments = attachments; - case 29: - if (!(this.fields != null && this.fields.length > 0)) { - _context.next = 34; - break; - } - fields = []; - _context.next = 33; - return this.fields.reduce(function (promise, field) { - return promise.then(function () { - return field.decrypt(orgId); - }).then(function (decField) { - fields.push(decField); - }); - }, Promise.resolve()); - case 33: - model.fields = fields; - case 34: - if (!(this.passwordHistory != null && this.passwordHistory.length > 0)) { - _context.next = 39; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + model = new _view_cipherView__WEBPACK_IMPORTED_MODULE_9__["CipherView"](this); + _context.next = 3; + return this.decryptObj(model, { + name: null, + notes: null + }, this.organizationId); + + case 3: + _context.t0 = this.type; + _context.next = _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login ? 6 : _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote ? 10 : _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card ? 14 : _context.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Identity ? 18 : 22; break; - } - passwordHistory = []; - _context.next = 38; - return this.passwordHistory.reduce(function (promise, ph) { - return promise.then(function () { - return ph.decrypt(orgId); - }).then(function (decPh) { - passwordHistory.push(decPh); - }); - }, Promise.resolve()); - case 38: - model.passwordHistory = passwordHistory; - case 39: - return _context.abrupt("return", model); - case 40: - case "end": - return _context.stop(); + + case 6: + _context.next = 8; + return this.login.decrypt(this.organizationId); + + case 8: + model.login = _context.sent; + return _context.abrupt("break", 23); + + case 10: + _context.next = 12; + return this.secureNote.decrypt(this.organizationId); + + case 12: + model.secureNote = _context.sent; + return _context.abrupt("break", 23); + + case 14: + _context.next = 16; + return this.card.decrypt(this.organizationId); + + case 16: + model.card = _context.sent; + return _context.abrupt("break", 23); + + case 18: + _context.next = 20; + return this.identity.decrypt(this.organizationId); + + case 20: + model.identity = _context.sent; + return _context.abrupt("break", 23); + + case 22: + return _context.abrupt("break", 23); + + case 23: + orgId = this.organizationId; + + if (!(this.attachments != null && this.attachments.length > 0)) { + _context.next = 29; + break; + } + + attachments = []; + _context.next = 28; + return this.attachments.reduce(function (promise, attachment) { + return promise.then(function () { + return attachment.decrypt(orgId); + }).then(function (decAttachment) { + attachments.push(decAttachment); + }); + }, Promise.resolve()); + + case 28: + model.attachments = attachments; + + case 29: + if (!(this.fields != null && this.fields.length > 0)) { + _context.next = 34; + break; + } + + fields = []; + _context.next = 33; + return this.fields.reduce(function (promise, field) { + return promise.then(function () { + return field.decrypt(orgId); + }).then(function (decField) { + fields.push(decField); + }); + }, Promise.resolve()); + + case 33: + model.fields = fields; + + case 34: + if (!(this.passwordHistory != null && this.passwordHistory.length > 0)) { + _context.next = 39; + break; + } + + passwordHistory = []; + _context.next = 38; + return this.passwordHistory.reduce(function (promise, ph) { + return promise.then(function () { + return ph.decrypt(orgId); + }).then(function (decPh) { + passwordHistory.push(decPh); + }); + }, Promise.resolve()); + + case 38: + model.passwordHistory = passwordHistory; + + case 39: + return _context.abrupt("return", model); + + case 40: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -14434,40 +14231,50 @@ var Cipher = /*#__PURE__*/function (_Domain) { name: null, notes: null }); + switch (c.type) { case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login: c.login = this.login.toLoginData(); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote: c.secureNote = this.secureNote.toSecureNoteData(); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card: c.card = this.card.toCardData(); break; + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Identity: c.identity = this.identity.toIdentityData(); break; + default: break; } + if (this.fields != null) { c.fields = this.fields.map(function (f) { return f.toFieldData(); }); } + if (this.attachments != null) { c.attachments = this.attachments.map(function (a) { return a.toAttachmentData(); }); } + if (this.passwordHistory != null) { c.passwordHistory = this.passwordHistory.map(function (ph) { return ph.toPasswordHistoryData(); }); } + return c; } }]); + return Cipher; }(_domainBase__WEBPACK_IMPORTED_MODULE_12__["default"]); @@ -22349,7 +22156,7 @@ var _react = _interopRequireDefault(__webpack_require__("ivGQ")); var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); var _useCozyDialog2 = _interopRequireDefault(__webpack_require__("mhvD")); var _Dialog = _interopRequireWildcard(__webpack_require__("i+n1")); -var _Divider = _interopRequireDefault(__webpack_require__("xr2j")); +var _Divider = _interopRequireDefault(__webpack_require__("Kk0D")); var _dialogPropTypes = _interopRequireDefault(__webpack_require__("OE89")); var _DialogBackButton = _interopRequireDefault(__webpack_require__("KSKb")); var _DialogCloseButton = _interopRequireDefault(__webpack_require__("y7Nh")); @@ -31153,11 +30960,14 @@ __webpack_require__.r(__webpack_exports__); var SecureNote = /*#__PURE__*/function () { function SecureNote(o) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SecureNote); + if (o == null) { return; } + this.type = o.type; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SecureNote, null, [{ key: "template", value: function template() { @@ -31173,6 +30983,7 @@ var SecureNote = /*#__PURE__*/function () { return view; } }]); + return SecureNote; }(); @@ -33343,13 +33154,6 @@ var NotchedOutline = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef /***/ }), -/***/ "1n3X": -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__.p + "bfca87187b6aff074f409395499acc1e.png"; - -/***/ }), - /***/ "1pxY": /***/ (function(module, exports, __webpack_require__) { @@ -35108,12 +34912,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -35124,30 +34928,33 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordBossJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordBossJsonImporter, _BaseImporter); - var _super = _createSuper(PasswordBossJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordBossJsonImporter, _BaseImporter); + function PasswordBossJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordBossJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordBossJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordBossJsonImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || results.items == null) { result.success = false; return result; } + var foldersMap = new Map(); results.folders.forEach(function (value) { foldersMap.set(value.id, value.name); @@ -35161,36 +34968,46 @@ var PasswordBossJsonImporter = /*#__PURE__*/function (_BaseImporter) { }); results.items.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.name, '--'); cipher.login.uris = _this.makeUriArray(value.login_url); + if (value.folder != null && foldersIndexMap.has(value.folder)) { result.folderRelationships.push([result.ciphers.length, foldersIndexMap.get(value.folder)]); } + if (value.identifiers == null) { return; } + if (!_this.isNullOrWhitespace(value.identifiers.notes)) { cipher.notes = value.identifiers.notes.split('\\r\\n').join('\n').split('\\n').join('\n'); } + if (value.type === 'CreditCard') { cipher.card = new _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__["CardView"](); cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_9__["CipherType"].Card; } + for (var property in value.identifiers) { if (!value.identifiers.hasOwnProperty(property)) { continue; } + var valObj = value.identifiers[property]; var val = valObj != null ? valObj.toString() : null; + if (_this.isNullOrWhitespace(val) || property === 'notes' || property === 'ignoreItemInSecurityScore') { continue; } + if (property === 'custom_fields') { valObj.forEach(function (cf) { _this.processKvp(cipher, cf.name, cf.value); }); continue; } + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_9__["CipherType"].Card) { if (property === 'cardNumber') { cipher.card.number = val; @@ -35208,6 +35025,7 @@ var PasswordBossJsonImporter = /*#__PURE__*/function (_BaseImporter) { cipher.card.expYear = expDate.getFullYear().toString(); cipher.card.expMonth = (expDate.getMonth() + 1).toString(); } catch (_a) {} + continue; } else if (property === 'cardType') { continue; @@ -35227,16 +35045,21 @@ var PasswordBossJsonImporter = /*#__PURE__*/function (_BaseImporter) { continue; } } + _this.processKvp(cipher, property, val); } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return PasswordBossJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -35762,33 +35585,6 @@ function textTween(value) { }); -/***/ }), - -/***/ "2bhu": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "AuthentificationDialog", { - enumerable: true, - get: function get() { - return _AuthentificationDialog.default; - } -}); -Object.defineProperty(exports, "InstallFlagshipAppDialog", { - enumerable: true, - get: function get() { - return _InstallFlagshipAppDialog.default; - } -}); -var _InstallFlagshipAppDialog = _interopRequireDefault(__webpack_require__("aCpG")); -var _AuthentificationDialog = _interopRequireDefault(__webpack_require__("HdWn")); - /***/ }), /***/ "2cdr": @@ -37962,12 +37758,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -37975,42 +37771,52 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PassKeepCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PassKeepCsvImporter, _BaseImporter); - var _super = _createSuper(PassKeepCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PassKeepCsvImporter, _BaseImporter); + function PassKeepCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PassKeepCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PassKeepCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PassKeepCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { _this.processFolder(result, _this.getValue('category', value)); + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValue('description', value); cipher.name = _this.getValueOrDefault(_this.getValue('title', value), '--'); cipher.login.username = _this.getValue('username', value); cipher.login.password = _this.getValue('password', value); cipher.login.uris = _this.makeUriArray(_this.getValue('site', value)); + _this.processKvp(cipher, 'Password 2', _this.getValue('password2', value)); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } @@ -38020,6 +37826,7 @@ var PassKeepCsvImporter = /*#__PURE__*/function (_BaseImporter) { return this.getValueOrDefault(value[key], this.getValueOrDefault(value[' ' + key])); } }]); + return PassKeepCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -41852,12 +41659,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ykCz"); /* harmony import */ var _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("8zkZ"); @@ -41870,8 +41677,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -41880,26 +41685,33 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var MykiCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(MykiCsvImporter, _BaseImporter); - var _super = _createSuper(MykiCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MykiCsvImporter, _BaseImporter); + function MykiCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MykiCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MykiCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MykiCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_11__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.nickname, '--'); cipher.notes = _this.getValueOrDefault(value.additionalInfo); + if (value.url !== undefined) { // Accounts cipher.login.uris = _this.makeUriArray(value.url); @@ -41941,13 +41753,16 @@ var MykiCsvImporter = /*#__PURE__*/function (_BaseImporter) { } else { return; } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return MykiCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -41988,14 +41803,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("RNXH"); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("RNXH"); +/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("8fcb"); @@ -42003,25 +41818,26 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CollectionWithId = /*#__PURE__*/function (_Collection) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CollectionWithId, _Collection); - var _super = _createSuper(CollectionWithId); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(CollectionWithId, _Collection); + function CollectionWithId() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionWithId); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CollectionWithId).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CollectionWithId, [{ key: "build", - value: // Use build method instead of ctor so that we can control order of JSON stringify for pretty print - function build(o) { + value: function build(o) { this.id = o.id; - _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(CollectionWithId.prototype), "build", this).call(this, o); + + _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CollectionWithId.prototype), "build", this).call(this, o); } }]); + return CollectionWithId; }(_collection__WEBPACK_IMPORTED_MODULE_6__["Collection"]); @@ -42707,12 +42523,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -42720,64 +42536,78 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ClipperzHtmlImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ClipperzHtmlImporter, _BaseImporter); - var _super = _createSuper(ClipperzHtmlImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ClipperzHtmlImporter, _BaseImporter); + function ClipperzHtmlImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ClipperzHtmlImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ClipperzHtmlImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ClipperzHtmlImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var doc = this.parseXml(data); + if (doc == null) { result.success = false; return result; } + var textarea = doc.querySelector('textarea'); + if (textarea == null || this.isNullOrWhitespace(textarea.textContent)) { result.errorMessage = 'Missing textarea.'; result.success = false; return result; } + var entries = JSON.parse(textarea.textContent); entries.forEach(function (entry) { var cipher = _this.initLoginCipher(); + if (!_this.isNullOrWhitespace(entry.label)) { cipher.name = entry.label.split(' ')[0]; } + if (entry.data != null && !_this.isNullOrWhitespace(entry.data.notes)) { cipher.notes = entry.data.notes.split('\\n').join('\n'); } + if (entry.currentVersion != null && entry.currentVersion.fields != null) { for (var property in entry.currentVersion.fields) { if (!entry.currentVersion.fields.hasOwnProperty(property)) { continue; } + var field = entry.currentVersion.fields[property]; var actionType = field.actionType != null ? field.actionType.toLowerCase() : null; + switch (actionType) { case 'password': cipher.login.password = _this.getValueOrDefault(field.value); break; + case 'email': case 'username': case 'user': case 'name': cipher.login.username = _this.getValueOrDefault(field.value); break; + case 'url': cipher.login.uris = _this.makeUriArray(field.value); break; + default: var labelLower = field.label != null ? field.label.toLowerCase() : null; + if (cipher.login.password == null && _this.passwordFieldNames.indexOf(labelLower) > -1) { cipher.login.password = _this.getValueOrDefault(field.value); } else if (cipher.login.username == null && _this.usernameFieldNames.indexOf(labelLower) > -1) { @@ -42787,18 +42617,23 @@ var ClipperzHtmlImporter = /*#__PURE__*/function (_BaseImporter) { } else { _this.processKvp(cipher, field.label, field.value); } + break; } } } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return ClipperzHtmlImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -43048,12 +42883,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -43065,8 +42900,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -43075,40 +42908,49 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var PropertiesToIgnore = ['kind', 'autologin', 'favorite', 'hexcolor', 'protectedwithpassword', 'subdomainonly', 'type', 'tk_export_version', 'note', 'title', 'document_content']; var TrueKeyCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TrueKeyCsvImporter, _BaseImporter); - var _super = _createSuper(TrueKeyCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(TrueKeyCsvImporter, _BaseImporter); + function TrueKeyCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TrueKeyCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(TrueKeyCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TrueKeyCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.favorite = _this.getValueOrDefault(value.favorite, '').toLowerCase() === 'true'; cipher.name = _this.getValueOrDefault(value.name, '--'); cipher.notes = _this.getValueOrDefault(value.memo, ''); cipher.login.username = _this.getValueOrDefault(value.login); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.uris = _this.makeUriArray(value.url); + if (value.kind !== 'login') { cipher.name = _this.getValueOrDefault(value.title, '--'); cipher.notes = _this.getValueOrDefault(value.note, ''); } + if (value.kind === 'cc') { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_9__["CipherType"].Card; cipher.card = new _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__["CardView"](); cipher.card.cardholderName = _this.getValueOrDefault(value.cardholder); cipher.card.number = _this.getValueOrDefault(value.number); cipher.card.brand = _this.getCardBrand(cipher.card.number); + if (!_this.isNullOrWhitespace(value.expiryDate)) { try { var expDate = new Date(value.expiryDate); @@ -43120,22 +42962,27 @@ var TrueKeyCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_9__["CipherType"].SecureNote; cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_8__["SecureNoteView"](); cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_10__["SecureNoteType"].Generic; + if (!_this.isNullOrWhitespace(cipher.notes)) { cipher.notes = _this.getValueOrDefault(value.document_content, ''); } + for (var property in value) { if (value.hasOwnProperty(property) && PropertiesToIgnore.indexOf(property.toLowerCase()) < 0 && !_this.isNullOrWhitespace(value[property])) { _this.processKvp(cipher, property, value[property]); } } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return TrueKeyCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -44346,169 +44193,6 @@ __webpack_require__.r(__webpack_exports__); /***/ }), -/***/ "4jS1": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = exports.LitItemPropTypes = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _merge = _interopRequireDefault(__webpack_require__("wXrU")); -var _ListItem = _interopRequireDefault(__webpack_require__("gqmj")); -var _isMuiElement = _interopRequireDefault(__webpack_require__("nsa0")); -var _styles = __webpack_require__("/6lT"); -var _react2 = __webpack_require__("dvmE"); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var _excluded = ["gutters"], - _excluded2 = ["gutters"], - _excluded3 = ["gutters", "ellipsis"], - _excluded4 = ["className", "gutters", "ellipsis", "componentElement"]; -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - return keys; -} -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - (0, _defineProperty2.default)(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - return target; -} -var useStyles = (0, _styles.makeStyles)({ - gutters: { - paddingLeft: function paddingLeft(_ref) { - var guttersValue = _ref.guttersValue; - return guttersValue.left; - }, - paddingRight: function paddingRight(_ref2) { - var guttersValue = _ref2.guttersValue; - return guttersValue.right; - } - }, - secondaryAction: { - paddingRight: function paddingRight(_ref3) { - var secondaryActionPaddingRight = _ref3.secondaryActionPaddingRight; - return secondaryActionPaddingRight; - } - } -}); // Return secondaryAction padding right - -var useSecondaryAction = function useSecondaryAction(_ref4) { - var gutters = _ref4.gutters, - props = (0, _objectWithoutProperties2.default)(_ref4, _excluded); - var BUTTON_SIZE = 48; - var margin = 8; - var offset = gutters === 'double' ? margin + 16 : margin; - var lastChild = (0, _react2.getLastChild)(props); - var hasSecondaryAction = lastChild && (0, _isMuiElement.default)(lastChild, ['ListItemSecondaryAction']) || false; - return hasSecondaryAction ? (0, _react2.getChildrenCount)(lastChild.props) * BUTTON_SIZE + offset : 0; -}; // Return gutters size - -var useGutters = function useGutters(_ref5) { - var gutters = _ref5.gutters, - props = (0, _objectWithoutProperties2.default)(_ref5, _excluded2); - var guttersValue = gutters === 'double' ? 32 : 16; - var lastChild = (0, _react2.getLastChild)(props); - var isLastChildListItemIcon = lastChild ? (0, _react2.getComponentName)(lastChild).includes('ListItemIcon') : false; - var gutterRight = isLastChildListItemIcon ? guttersValue - 8 : guttersValue; - return { - left: guttersValue, - right: gutterRight - }; -}; // Add margin on ListItemSecondaryAction when gutters are double -// Propagates ellipsis prop to ListItemText - -var useOverridenChildren = function useOverridenChildren(_ref6) { - var gutters = _ref6.gutters, - ellipsis = _ref6.ellipsis, - props = (0, _objectWithoutProperties2.default)(_ref6, _excluded3); - var children = (0, _react2.getChildren)(props); - var childrenCount = (0, _react2.getChildrenCount)(props); - return _react.default.Children.map(children, function (child, index) { - var isLastChild = index === childrenCount - 1; - var isSecondaryAction = isLastChild && (0, _isMuiElement.default)(child, ['ListItemSecondaryAction']) || false; - var isListItemText = (0, _react2.getComponentName)(child).includes('ListItemText'); - if (isSecondaryAction && gutters === 'double') { - return /*#__PURE__*/_react.default.cloneElement(child, { - className: "".concat(child.props.className, " u-mr-1") - }); - } - if (isListItemText) { - return /*#__PURE__*/_react.default.cloneElement(child, { - ellipsis: ellipsis - }); - } - return child; - }); -}; -var ListItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref7, ref) { - var className = _ref7.className, - gutters = _ref7.gutters, - ellipsis = _ref7.ellipsis, - componentElement = _ref7.componentElement, - props = (0, _objectWithoutProperties2.default)(_ref7, _excluded4); - var secondaryActionPaddingRight = useSecondaryAction(_objectSpread({ - gutters: gutters - }, props)); - var guttersValue = useGutters(_objectSpread({ - gutters: gutters - }, props)); - var styles = useStyles({ - secondaryActionPaddingRight: secondaryActionPaddingRight, - guttersValue: guttersValue - }); - var overridenChildren = useOverridenChildren(_objectSpread({ - gutters: gutters, - ellipsis: ellipsis - }, props)); - return /*#__PURE__*/_react.default.createElement(_ListItem.default, (0, _extends2.default)({}, props, { - component: componentElement || props.component, - ref: ref, - classes: (0, _merge.default)(props.classes, styles), - className: (0, _classnames.default)(className, props.size), - disableGutters: props.disableGutters || gutters === 'disabled' - }), overridenChildren); -}); -ListItem.displayName = 'ListItem'; -ListItem.defaultProps = { - gutters: 'default', - size: 'medium' -}; -var LitItemPropTypes = { - gutters: _propTypes.default.oneOf(['disabled', 'double', 'default']), - size: _propTypes.default.oneOf(['small', 'medium', 'large']), - ellipsis: _propTypes.default.bool, - /** If the `component` prop is already used to return `ListItem`, this prop still allows you to choose a component to render in `ListItem`. cf:`MenuItem` component */ - componentElement: _propTypes.default.elementType -}; -exports.LitItemPropTypes = LitItemPropTypes; -ListItem.propTypes = LitItemPropTypes; -var _default = ListItem; -exports.default = _default; - -/***/ }), - /***/ "4kEe": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -45939,16 +45623,14 @@ module.exports = baseSetToString; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherCollectionsRequest", function() { return CipherCollectionsRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CipherCollectionsRequest = function CipherCollectionsRequest(collectionIds) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherCollectionsRequest); -var CipherCollectionsRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherCollectionsRequest(collectionIds) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherCollectionsRequest); this.collectionIds = collectionIds == null ? [] : collectionIds; -}); +}; /***/ }), @@ -49927,42 +49609,43 @@ function set(values) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendTextApi", function() { return SendTextApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SendTextApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SendTextApi, _BaseResponse); - var _super = _createSuper(SendTextApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SendTextApi, _BaseResponse); + function SendTextApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendTextApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendTextApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SendTextApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.text = _this.getResponseProperty('Text'); _this.hidden = _this.getResponseProperty('Hidden') || false; return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SendTextApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SendTextApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -50348,18 +50031,23 @@ __webpack_require__.r(__webpack_exports__); var SendTextView = /*#__PURE__*/function () { function SendTextView(t) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendTextView); + this.text = null; + if (!t) { return; } + this.hidden = t.hidden; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SendTextView, [{ key: "maskedText", get: function get() { return this.text != null ? '••••••••' : null; } }]); + return SendTextView; }(); @@ -50380,18 +50068,23 @@ __webpack_require__.r(__webpack_exports__); var SecureNoteView = /*#__PURE__*/function () { function SecureNoteView(n) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SecureNoteView); + this.type = null; + if (!n) { return; } + this.type = n.type; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SecureNoteView, [{ key: "subTitle", get: function get() { return null; } }]); + return SecureNoteView; }(); @@ -51233,6 +50926,7 @@ function childMatcher(selector) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KdfType", function() { return KdfType; }); var KdfType; + (function (KdfType) { KdfType[KdfType["PBKDF2_SHA256"] = 0] = "PBKDF2_SHA256"; })(KdfType || (KdfType = {})); @@ -52753,7 +52447,7 @@ __webpack_require__.r(__webpack_exports__); /***/ "6oIW": /***/ (function(module) { -module.exports = JSON.parse("{\"name\":\"cozy-keys-lib\",\"version\":\"5.0.0\",\"description\":\"Interactions between cozy-keys and a bitwarden server\",\"browser\":\"transpiled/index.js\",\"main\":\"transpiled/index.node.js\",\"scripts\":{\"setup:submodule\":\"git submodule init && git submodule update\",\"setup\":\"yarn run setup:submodule\",\"build:jslib:backup\":\"mv ./node_modules ./node_modules.back\",\"build:jslib:restore\":\"mv ./node_modules.back ./node_modules\",\"build:jslib:compile\":\"cd '@bitwarden/jslib' && cp -f ../../tsconfig.json . && npm install && npm run build\",\"build:jslib:copy\":\"mkdir -p 'src/@bitwarden' && rm -rf 'src/@bitwarden/jslib' && mv -f '@bitwarden/jslib/dist/src' 'src/@bitwarden/jslib'\",\"build:jslib\":\"yarn build:jslib:backup && yarn build:jslib:compile && yarn run build:jslib:copy && yarn build:jslib:restore\",\"build:keys\":\"env BABEL_ENV=transpilation yarn babel src/ --out-dir transpiled --copy-files\",\"build\":\"yarn run build:jslib && yarn run build:keys\",\"watch\":\"yarn watch:keys\",\"watch:keys\":\"yarn build:keys --watch\",\"lint\":\"eslint 'src/**/*.{js,jsx}' 'playgrounds/src/**/*.{js,jsx}'\",\"test\":\"NODE_OPTIONS=\\\"--max-old-space-size=8192\\\" jest\",\"semantic-release\":\"semantic-release\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/cozy/cozy-keys-lib.git\"},\"author\":\"Cozy\",\"license\":\"GPL-3.0\",\"bugs\":{\"url\":\"https://github.com/cozy/cozy-keys-lib/issues\"},\"homepage\":\"https://github.com/cozy/cozy-keys-lib#readme\",\"devDependencies\":{\"@babel/cli\":\"7.17.6\",\"@babel/core\":\"7.17.8\",\"@babel/plugin-proposal-export-default-from\":\"7.16.7\",\"@babel/plugin-proposal-export-namespace-from\":\"7.16.7\",\"@babel/plugin-transform-runtime\":\"7.17.0\",\"@babel/preset-env\":\"7.16.11\",\"@babel/runtime\":\"7.17.8\",\"@material-ui/core\":\"3\",\"@semantic-release/changelog\":\"^3.0.4\",\"@semantic-release/git\":\"^7.0.16\",\"@semantic-release/npm\":\"^5.1.15\",\"@testing-library/react\":\"^11.2.2\",\"@testing-library/react-hooks\":\"^3.2.1\",\"babel-loader\":\"8.2.4\",\"babel-plugin-inline-react-svg\":\"^1.1.0\",\"babel-plugin-mock-imports\":\"^1.0.2\",\"babel-plugin-rewire\":\"1.2.0\",\"babel-preset-cozy-app\":\"^1.6.0\",\"cozy-client\":\"^38.8.0\",\"cozy-flags\":\"2.8.6\",\"cozy-intent\":\"^2.0.2\",\"cozy-ui\":\"^88.1.0\",\"enzyme\":\"^3.10.0\",\"enzyme-adapter-react-16\":\"^1.14.0\",\"enzyme-to-json\":\"3.4.0\",\"eslint-config-cozy-app\":\"^1.2.2\",\"jest\":\"26.2.2\",\"react\":\"^16.9.0\",\"react-dom\":\"^16.9.0\",\"semantic-release\":\"^15.13.24\"},\"files\":[\"src\",\"src/@bitwarden\",\"transpiled\"],\"dependencies\":{\"@aspnet/signalr\":\"^1.1.4\",\"@aspnet/signalr-protocol-msgpack\":\"^1.1.0\",\"@cozy/minilog\":\"^1.0.0\",\"big-integer\":\"^1.6.44\",\"classnames\":\"^2.2.6\",\"cozy-device-helper\":\"^2.1.0\",\"cozy-logger\":\"^1.10.1\",\"lodash\":\"^4.17.15\",\"lunr\":\"^2.3.6\",\"microee\":\"^0.0.6\",\"node-forge\":\"^1.3.0\",\"papaparse\":\"^5.1.1\",\"prop-types\":\"^15.7.2\",\"sweetalert\":\"^2.1.2\",\"tldjs\":\"^2.3.1\",\"zxcvbn\":\"^4.4.2\"},\"peerDependencies\":{\"cozy-client\":\"^38.8.0\",\"cozy-flags\":\"^2.8.6\",\"cozy-intent\":\"^2.0.2\",\"cozy-ui\":\"^88.1.0\",\"react\":\"^16.9.0\",\"react-dom\":\"^16.9.0\"}}"); +module.exports = JSON.parse("{\"name\":\"cozy-keys-lib\",\"version\":\"4.2.1\",\"description\":\"Interactions between cozy-keys and a bitwarden server\",\"browser\":\"transpiled/index.js\",\"main\":\"transpiled/index.node.js\",\"scripts\":{\"setup:submodule\":\"git submodule init && git submodule update\",\"setup\":\"yarn run setup:submodule\",\"build:jslib:backup\":\"mv ./node_modules ./node_modules.back\",\"build:jslib:restore\":\"mv ./node_modules.back ./node_modules\",\"build:jslib:compile\":\"cd '@bitwarden/jslib' && cp -f ../../tsconfig.json . && npm install && npm run build\",\"build:jslib:copy\":\"mkdir -p 'src/@bitwarden' && rm -rf 'src/@bitwarden/jslib' && mv -f '@bitwarden/jslib/dist/src' 'src/@bitwarden/jslib'\",\"build:jslib\":\"yarn build:jslib:backup && yarn build:jslib:compile && yarn run build:jslib:copy && yarn build:jslib:restore\",\"build:keys\":\"env BABEL_ENV=transpilation yarn babel src/ --out-dir transpiled --copy-files\",\"build\":\"yarn run build:jslib && yarn run build:keys\",\"watch\":\"yarn watch:keys\",\"watch:keys\":\"yarn build:keys --watch\",\"lint\":\"eslint 'src/**/*.{js,jsx}' 'playgrounds/src/**/*.{js,jsx}'\",\"test\":\"NODE_OPTIONS=\\\"--max-old-space-size=8192\\\" jest\",\"semantic-release\":\"semantic-release\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/cozy/cozy-keys-lib.git\"},\"author\":\"Cozy\",\"license\":\"GPL-3.0\",\"bugs\":{\"url\":\"https://github.com/cozy/cozy-keys-lib/issues\"},\"homepage\":\"https://github.com/cozy/cozy-keys-lib#readme\",\"devDependencies\":{\"@babel/cli\":\"7.17.6\",\"@babel/core\":\"7.17.8\",\"@babel/plugin-proposal-export-default-from\":\"7.16.7\",\"@babel/plugin-proposal-export-namespace-from\":\"7.16.7\",\"@babel/plugin-transform-runtime\":\"7.17.0\",\"@babel/preset-env\":\"7.16.11\",\"@babel/runtime\":\"7.17.8\",\"@material-ui/core\":\"3\",\"@semantic-release/changelog\":\"^3.0.4\",\"@semantic-release/git\":\"^7.0.16\",\"@semantic-release/npm\":\"^5.1.15\",\"@testing-library/react\":\"^11.2.2\",\"@testing-library/react-hooks\":\"^3.2.1\",\"babel-loader\":\"8.2.4\",\"babel-plugin-inline-react-svg\":\"^1.1.0\",\"babel-plugin-mock-imports\":\"^1.0.2\",\"babel-plugin-rewire\":\"1.2.0\",\"babel-preset-cozy-app\":\"^1.6.0\",\"cozy-client\":\"^16.10.2\",\"cozy-flags\":\"2.6.0\",\"cozy-intent\":\"^2.0.2\",\"cozy-ui\":\"^42.3.0\",\"enzyme\":\"^3.10.0\",\"enzyme-adapter-react-16\":\"^1.14.0\",\"enzyme-to-json\":\"3.4.0\",\"eslint-config-cozy-app\":\"^1.2.2\",\"jest\":\"26.2.2\",\"react\":\"^16.8.3\",\"react-dom\":\"^16.9.0\",\"semantic-release\":\"^15.13.24\"},\"files\":[\"src\",\"src/@bitwarden\",\"transpiled\"],\"dependencies\":{\"@aspnet/signalr\":\"^1.1.4\",\"@aspnet/signalr-protocol-msgpack\":\"^1.1.0\",\"@cozy/minilog\":\"^1.0.0\",\"big-integer\":\"^1.6.44\",\"classnames\":\"^2.2.6\",\"cozy-device-helper\":\"^1.7.5\",\"lodash\":\"^4.17.15\",\"lunr\":\"^2.3.6\",\"microee\":\"^0.0.6\",\"node-forge\":\"^1.3.0\",\"papaparse\":\"^5.1.1\",\"prop-types\":\"^15.7.2\",\"sweetalert\":\"^2.1.2\",\"tldjs\":\"^2.3.1\",\"zxcvbn\":\"^4.4.2\"},\"peerDependencies\":{\"cozy-client\":\"^16.10.2\",\"cozy-flags\":\"^2.6.0\",\"cozy-intent\":\"^2.0.2\",\"cozy-ui\":\"^42.3.0\",\"react\":\"^16.8.3\",\"react-dom\":\"^16.9.0\"}}"); /***/ }), @@ -53146,19 +52840,21 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var tldjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(tldjs__WEBPACK_IMPORTED_MODULE_2__); + // tslint:disable-next-line -// tslint:disable-next-line var nodeURL = typeof window === 'undefined' ? __webpack_require__("WvNz") : null; var Utils = /*#__PURE__*/function () { function Utils() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Utils); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Utils, null, [{ key: "init", value: function init() { if (Utils.inited) { return; } + Utils.inited = true; Utils.isNode = typeof process !== 'undefined' && process.release != null && process.release.name === 'node'; Utils.isBrowser = typeof window !== 'undefined'; @@ -53175,9 +52871,11 @@ var Utils = /*#__PURE__*/function () { } else { var binaryString = window.atob(str); var bytes = new Uint8Array(binaryString.length); + for (var i = 0; i < binaryString.length; i++) { bytes[i] = binaryString.charCodeAt(i); } + return bytes; } } @@ -53193,9 +52891,11 @@ var Utils = /*#__PURE__*/function () { return new Uint8Array(Buffer.from(str, 'hex')); } else { var bytes = new Uint8Array(str.length / 2); + for (var i = 0; i < str.length; i += 2) { bytes[i / 2] = parseInt(str.substr(i, 2), 16); } + return bytes; } } @@ -53207,9 +52907,11 @@ var Utils = /*#__PURE__*/function () { } else { var strUtf8 = unescape(encodeURIComponent(str)); var arr = new Uint8Array(strUtf8.length); + for (var i = 0; i < strUtf8.length; i++) { arr[i] = strUtf8.charCodeAt(i); } + return arr; } } @@ -53217,9 +52919,11 @@ var Utils = /*#__PURE__*/function () { key: "fromByteStringToArray", value: function fromByteStringToArray(str) { var arr = new Uint8Array(str.length); + for (var i = 0; i < str.length; i++) { arr[i] = str.charCodeAt(i); } + return arr; } }, { @@ -53230,9 +52934,11 @@ var Utils = /*#__PURE__*/function () { } else { var binary = ''; var bytes = new Uint8Array(buffer); + for (var i = 0; i < bytes.byteLength; i++) { binary += String.fromCharCode(bytes[i]); } + return window.btoa(binary); } } @@ -53261,8 +52967,8 @@ var Utils = /*#__PURE__*/function () { key: "fromBufferToByteString", value: function fromBufferToByteString(buffer) { return String.fromCharCode.apply(null, new Uint8Array(buffer)); - } - // ref: https://stackoverflow.com/a/40031979/1090359 + } // ref: https://stackoverflow.com/a/40031979/1090359 + }, { key: "fromBufferToHex", value: function fromBufferToHex(buffer) { @@ -53279,18 +52985,23 @@ var Utils = /*#__PURE__*/function () { key: "fromUrlB64ToB64", value: function fromUrlB64ToB64(urlB64Str) { var output = urlB64Str.replace(/-/g, '+').replace(/_/g, '/'); + switch (output.length % 4) { case 0: break; + case 2: output += '=='; break; + case 3: output += '='; break; + default: throw new Error('Illegal base64url string!'); } + return output; } }, { @@ -53306,15 +53017,15 @@ var Utils = /*#__PURE__*/function () { } else { return decodeURIComponent(escape(window.atob(b64Str))); } - } - // ref: http://stackoverflow.com/a/2117523/1090359 + } // ref: http://stackoverflow.com/a/2117523/1090359 + }, { key: "newGuid", value: function newGuid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { // tslint:disable-next-line - var r = Math.random() * 16 | 0; - // tslint:disable-next-line + var r = Math.random() * 16 | 0; // tslint:disable-next-line + var v = c === 'x' ? r : r & 0x3 | 0x8; return v.toString(16); }); @@ -53328,6 +53039,7 @@ var Utils = /*#__PURE__*/function () { key: "getHostname", value: function getHostname(uriString) { var url = Utils.getUrl(uriString); + try { return url != null && url.hostname !== '' ? url.hostname : null; } catch (_a) { @@ -53338,6 +53050,7 @@ var Utils = /*#__PURE__*/function () { key: "getHost", value: function getHost(uriString) { var url = Utils.getUrl(uriString); + try { return url != null && url.host !== '' ? url.host : null; } catch (_a) { @@ -53350,52 +53063,67 @@ var Utils = /*#__PURE__*/function () { if (uriString == null) { return null; } + uriString = uriString.trim(); + if (uriString === '') { return null; } + if (uriString.startsWith('data:')) { return null; } + var httpUrl = uriString.startsWith('http://') || uriString.startsWith('https://'); + if (!httpUrl && uriString.indexOf('://') < 0 && Utils.tldEndingRegex.test(uriString)) { uriString = 'http://' + uriString; httpUrl = true; } + if (httpUrl) { try { var url = Utils.getUrlObject(uriString); + if (url.hostname === 'localhost' || Utils.validIpAddress(url.hostname)) { return url.hostname; } + var urlDomain = tldjs__WEBPACK_IMPORTED_MODULE_2__ != null && tldjs__WEBPACK_IMPORTED_MODULE_2__["getDomain"] != null ? tldjs__WEBPACK_IMPORTED_MODULE_2__["getDomain"](url.hostname) : null; return urlDomain != null ? urlDomain : url.hostname; } catch (e) {} } + try { var domain = tldjs__WEBPACK_IMPORTED_MODULE_2__ != null && tldjs__WEBPACK_IMPORTED_MODULE_2__["getDomain"] != null ? tldjs__WEBPACK_IMPORTED_MODULE_2__["getDomain"](uriString) : null; + if (domain != null) { return domain; } } catch (_a) { return null; } + return null; } }, { key: "getQueryParams", value: function getQueryParams(uriString) { var url = Utils.getUrl(uriString); + if (url == null || url.search == null || url.search === '') { return null; } + var map = new Map(); var pairs = (url.search[0] === '?' ? url.search.substr(1) : url.search).split('&'); pairs.forEach(function (pair) { var parts = pair.split('='); + if (parts.length < 1) { return; } + map.set(decodeURIComponent(parts[0]).toLowerCase(), parts[1] == null ? '' : decodeURIComponent(parts[1])); }); return map; @@ -53407,12 +53135,15 @@ var Utils = /*#__PURE__*/function () { if (a[prop] == null && b[prop] != null) { return -1; } + if (a[prop] != null && b[prop] == null) { return 1; } + if (a[prop] == null && b[prop] == null) { return 0; } + return i18nService.collator ? i18nService.collator.compare(a[prop], b[prop]) : a[prop].localeCompare(b[prop]); }; } @@ -53432,12 +53163,14 @@ var Utils = /*#__PURE__*/function () { key: "isMobile", value: function isMobile(win) { var mobile = false; + (function (a) { // tslint:disable-next-line if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) { mobile = true; } })(win.navigator.userAgent || win.navigator.vendor || win.opera); + return mobile || win.navigator.userAgent.match(/iPad/i) != null; } }, { @@ -53451,17 +53184,23 @@ var Utils = /*#__PURE__*/function () { if (uriString == null) { return null; } + uriString = uriString.trim(); + if (uriString === '') { return null; } + var url = Utils.getUrlObject(uriString); + if (url == null) { var hasHttpProtocol = uriString.indexOf('http://') === 0 || uriString.indexOf('https://') === 0; + if (!hasHttpProtocol && uriString.indexOf('.') > -1) { url = Utils.getUrlObject('http://' + uriString); } } + return url; } }, { @@ -53474,19 +53213,23 @@ var Utils = /*#__PURE__*/function () { return new URL(uriString); } else if (window != null) { var hasProtocol = uriString.indexOf('://') > -1; + if (!hasProtocol && uriString.indexOf('.') > -1) { uriString = 'http://' + uriString; } else if (!hasProtocol) { return null; } + var anchor = window.document.createElement('a'); anchor.href = uriString; return anchor; } } catch (e) {} + return null; } }]); + return Utils; }(); Utils.inited = false; @@ -53701,33 +53444,34 @@ var shape = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionView", function() { return CollectionView; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _domain_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("S+gd"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _domain_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("S+gd"); +var CollectionView = function CollectionView(c) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionView); -var CollectionView = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CollectionView(c) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionView); this.id = null; this.organizationId = null; this.name = null; this.externalId = null; this.readOnly = null; this.hidePasswords = null; + if (!c) { return; } + this.id = c.id; this.organizationId = c.organizationId; this.externalId = c.externalId; - if (c instanceof _domain_collection__WEBPACK_IMPORTED_MODULE_2__["Collection"]) { + + if (c instanceof _domain_collection__WEBPACK_IMPORTED_MODULE_1__["Collection"]) { this.readOnly = c.readOnly; this.hidePasswords = c.hidePasswords; } -}); +}; /***/ }), @@ -53859,12 +53603,12 @@ function formControlState(_ref) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApiService", function() { return ApiService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("BxTv"); /* harmony import */ var _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("80F2"); /* harmony import */ var _models_response_billingResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("zdsD"); @@ -53904,12 +53648,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -53918,6 +53664,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -53925,9 +53672,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -53965,12 +53714,15 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var ApiService = /*#__PURE__*/function () { function ApiService(tokenService, platformUtilsService, logoutCallback) { var customUserAgent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ApiService); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ApiService); + this.tokenService = tokenService; this.platformUtilsService = platformUtilsService; this.logoutCallback = logoutCallback; @@ -53984,10 +53736,12 @@ var ApiService = /*#__PURE__*/function () { this.isWebClient = this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].IEBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].ChromeBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].EdgeBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].FirefoxBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].OperaBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].SafariBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].UnknownBrowser || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].VivaldiBrowser; this.isDesktopClient = this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].WindowsDesktop || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].MacOsDesktop || this.device === _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].LinuxDesktop; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ApiService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ApiService, [{ key: "setUrls", value: function setUrls(urls) { this.urlsSet = true; + if (urls.base != null) { this.usingBaseUrl = true; this.apiBaseUrl = urls.base + '/api'; @@ -53995,81 +53749,101 @@ var ApiService = /*#__PURE__*/function () { this.eventsBaseUrl = urls.base + '/events'; return; } + this.apiBaseUrl = urls.api; this.identityBaseUrl = urls.identity; - this.eventsBaseUrl = urls.events; - // Production + this.eventsBaseUrl = urls.events; // Production + if (this.apiBaseUrl == null) { this.apiBaseUrl = 'https://api.bitwarden.com'; } + if (this.identityBaseUrl == null) { this.identityBaseUrl = 'https://identity.bitwarden.com'; } + if (this.eventsBaseUrl == null) { this.eventsBaseUrl = 'https://events.bitwarden.com'; } - } - // Auth APIs + } // Auth APIs + }, { key: "postIdentityToken", value: function postIdentityToken(request) { var _a; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var headers, response, responseJson; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - headers = new Headers({ - 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', - 'Accept': 'application/json', - 'Device-Type': this.deviceType - }); - if (this.customUserAgent != null) { - headers.set('User-Agent', this.customUserAgent); - } - _context.next = 4; - return this.fetch(new Request(this.identityBaseUrl + '/connect/token', { - body: this.qsStringify(request.toIdentityToken((_a = request.clientId) !== null && _a !== void 0 ? _a : this.platformUtilsService.identityClientId)), - credentials: this.getCredentials(), - cache: 'no-store', - headers: headers, - method: 'POST' - })); - case 4: - response = _context.sent; - responseJson = null; - if (!this.isJsonResponse(response)) { - _context.next = 10; - break; - } - _context.next = 9; - return response.json(); - case 9: - responseJson = _context.sent; - case 10: - if (!(responseJson != null)) { - _context.next = 19; - break; - } - if (!(response.status === 200)) { - _context.next = 15; - break; - } - return _context.abrupt("return", new _models_response_identityTokenResponse__WEBPACK_IMPORTED_MODULE_14__["IdentityTokenResponse"](responseJson)); - case 15: - if (!(response.status === 400 && responseJson.TwoFactorProviders2 && Object.keys(responseJson.TwoFactorProviders2).length)) { - _context.next = 19; - break; - } - _context.next = 18; - return this.tokenService.clearTwoFactorToken(request.email); - case 18: - return _context.abrupt("return", new _models_response_identityTwoFactorResponse__WEBPACK_IMPORTED_MODULE_15__["IdentityTwoFactorResponse"](responseJson)); - case 19: - return _context.abrupt("return", Promise.reject(new _models_response_errorResponse__WEBPACK_IMPORTED_MODULE_10__["ErrorResponse"](responseJson, response.status, true))); - case 20: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + headers = new Headers({ + 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', + 'Accept': 'application/json', + 'Device-Type': this.deviceType + }); + + if (this.customUserAgent != null) { + headers.set('User-Agent', this.customUserAgent); + } + + _context.next = 4; + return this.fetch(new Request(this.identityBaseUrl + '/connect/token', { + body: this.qsStringify(request.toIdentityToken((_a = request.clientId) !== null && _a !== void 0 ? _a : this.platformUtilsService.identityClientId)), + credentials: this.getCredentials(), + cache: 'no-store', + headers: headers, + method: 'POST' + })); + + case 4: + response = _context.sent; + responseJson = null; + + if (!this.isJsonResponse(response)) { + _context.next = 10; + break; + } + + _context.next = 9; + return response.json(); + + case 9: + responseJson = _context.sent; + + case 10: + if (!(responseJson != null)) { + _context.next = 19; + break; + } + + if (!(response.status === 200)) { + _context.next = 15; + break; + } + + return _context.abrupt("return", new _models_response_identityTokenResponse__WEBPACK_IMPORTED_MODULE_14__["IdentityTokenResponse"](responseJson)); + + case 15: + if (!(response.status === 400 && responseJson.TwoFactorProviders2 && Object.keys(responseJson.TwoFactorProviders2).length)) { + _context.next = 19; + break; + } + + _context.next = 18; + return this.tokenService.clearTwoFactorToken(request.email); + + case 18: + return _context.abrupt("return", new _models_response_identityTwoFactorResponse__WEBPACK_IMPORTED_MODULE_15__["IdentityTwoFactorResponse"](responseJson)); + + case 19: + return _context.abrupt("return", Promise.reject(new _models_response_errorResponse__WEBPACK_IMPORTED_MODULE_10__["ErrorResponse"](responseJson, response.status, true))); + + case 20: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -54077,44 +53851,53 @@ var ApiService = /*#__PURE__*/function () { }, { key: "refreshIdentityToken", value: function refreshIdentityToken() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.prev = 0; - _context2.next = 3; - return this.doRefreshToken(); - case 3: - _context2.next = 8; - break; - case 5: - _context2.prev = 5; - _context2.t0 = _context2["catch"](0); - return _context2.abrupt("return", Promise.reject(null)); - case 8: - case "end": - return _context2.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.prev = 0; + _context2.next = 3; + return this.doRefreshToken(); + + case 3: + _context2.next = 8; + break; + + case 5: + _context2.prev = 5; + _context2.t0 = _context2["catch"](0); + return _context2.abrupt("return", Promise.reject(null)); + + case 8: + case "end": + return _context2.stop(); + } } }, _callee2, this, [[0, 5]]); })); - } - // Account APIs + } // Account APIs + }, { key: "getProfile", value: function getProfile() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return this.send('GET', '/accounts/profile', null, true, true); - case 2: - r = _context3.sent; - return _context3.abrupt("return", new _models_response_profileResponse__WEBPACK_IMPORTED_MODULE_24__["ProfileResponse"](r)); - case 4: - case "end": - return _context3.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return this.send('GET', '/accounts/profile', null, true, true); + + case 2: + r = _context3.sent; + return _context3.abrupt("return", new _models_response_profileResponse__WEBPACK_IMPORTED_MODULE_24__["ProfileResponse"](r)); + + case 4: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -54122,19 +53905,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getUserBilling", value: function getUserBilling() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return this.send('GET', '/accounts/billing', null, true, true); - case 2: - r = _context4.sent; - return _context4.abrupt("return", new _models_response_billingResponse__WEBPACK_IMPORTED_MODULE_5__["BillingResponse"](r)); - case 4: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _context4.next = 2; + return this.send('GET', '/accounts/billing', null, true, true); + + case 2: + r = _context4.sent; + return _context4.abrupt("return", new _models_response_billingResponse__WEBPACK_IMPORTED_MODULE_5__["BillingResponse"](r)); + + case 4: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -54142,19 +53929,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getUserSubscription", value: function getUserSubscription() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return this.send('GET', '/accounts/subscription', null, true, true); - case 2: - r = _context5.sent; - return _context5.abrupt("return", new _models_response_subscriptionResponse__WEBPACK_IMPORTED_MODULE_28__["SubscriptionResponse"](r)); - case 4: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return this.send('GET', '/accounts/subscription', null, true, true); + + case 2: + r = _context5.sent; + return _context5.abrupt("return", new _models_response_subscriptionResponse__WEBPACK_IMPORTED_MODULE_28__["SubscriptionResponse"](r)); + + case 4: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -54162,19 +53953,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTaxInfo", value: function getTaxInfo() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.send('GET', '/accounts/tax', null, true, true); - case 2: - r = _context6.sent; - return _context6.abrupt("return", new _models_response_taxInfoResponse__WEBPACK_IMPORTED_MODULE_30__["TaxInfoResponse"](r)); - case 4: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.send('GET', '/accounts/tax', null, true, true); + + case 2: + r = _context6.sent; + return _context6.abrupt("return", new _models_response_taxInfoResponse__WEBPACK_IMPORTED_MODULE_30__["TaxInfoResponse"](r)); + + case 4: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -54182,19 +53977,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putProfile", value: function putProfile(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.send('PUT', '/accounts/profile', request, true, true); - case 2: - r = _context7.sent; - return _context7.abrupt("return", new _models_response_profileResponse__WEBPACK_IMPORTED_MODULE_24__["ProfileResponse"](r)); - case 4: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.send('PUT', '/accounts/profile', request, true, true); + + case 2: + r = _context7.sent; + return _context7.abrupt("return", new _models_response_profileResponse__WEBPACK_IMPORTED_MODULE_24__["ProfileResponse"](r)); + + case 4: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -54207,19 +54006,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postPrelogin", value: function postPrelogin(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.send('POST', '/accounts/prelogin', request, false, true); - case 2: - r = _context8.sent; - return _context8.abrupt("return", new _models_response_preloginResponse__WEBPACK_IMPORTED_MODULE_23__["PreloginResponse"](r)); - case 4: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.send('POST', '/accounts/prelogin', request, false, true); + + case 2: + r = _context8.sent; + return _context8.abrupt("return", new _models_response_preloginResponse__WEBPACK_IMPORTED_MODULE_23__["PreloginResponse"](r)); + + case 4: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -54257,19 +54060,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getAccountRevisionDate", value: function getAccountRevisionDate() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.send('GET', '/accounts/revision-date', null, true, true); - case 2: - r = _context9.sent; - return _context9.abrupt("return", r); - case 4: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.send('GET', '/accounts/revision-date', null, true, true); + + case 2: + r = _context9.sent; + return _context9.abrupt("return", r); + + case 4: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -54287,19 +54094,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postPremium", value: function postPremium(data) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.send('POST', '/accounts/premium', data, true, true); - case 2: - r = _context10.sent; - return _context10.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); - case 4: - case "end": - return _context10.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.send('POST', '/accounts/premium', data, true, true); + + case 2: + r = _context10.sent; + return _context10.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); + + case 4: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -54307,14 +54118,17 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postIapCheck", value: function postIapCheck(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - return _context11.abrupt("return", this.send('POST', '/accounts/iap-check', request, true, false)); - case 1: - case "end": - return _context11.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + return _context11.abrupt("return", this.send('POST', '/accounts/iap-check', request, true, false)); + + case 1: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -54332,19 +54146,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postAccountStorage", value: function postAccountStorage(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - _context12.next = 2; - return this.send('POST', '/accounts/storage', request, true, true); - case 2: - r = _context12.sent; - return _context12.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); - case 4: - case "end": - return _context12.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return this.send('POST', '/accounts/storage', request, true, true); + + case 2: + r = _context12.sent; + return _context12.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); + + case 4: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); @@ -54402,19 +54220,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getEnterprisePortalSignInToken", value: function getEnterprisePortalSignInToken() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee13() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - _context13.next = 2; - return this.send('GET', '/accounts/enterprise-portal-signin-token', null, true, true); - case 2: - r = _context13.sent; - return _context13.abrupt("return", r); - case 4: - case "end": - return _context13.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + _context13.next = 2; + return this.send('GET', '/accounts/enterprise-portal-signin-token', null, true, true); + + case 2: + r = _context13.sent; + return _context13.abrupt("return", r); + + case 4: + case "end": + return _context13.stop(); + } } }, _callee13, this); })); @@ -54422,14 +54244,17 @@ var ApiService = /*#__PURE__*/function () { }, { key: "deleteSsoUser", value: function deleteSsoUser(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee14() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee14$(_context14) { - while (1) switch (_context14.prev = _context14.next) { - case 0: - return _context14.abrupt("return", this.send('DELETE', '/accounts/sso/' + organizationId, null, true, false)); - case 1: - case "end": - return _context14.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee14() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee14$(_context14) { + while (1) { + switch (_context14.prev = _context14.next) { + case 0: + return _context14.abrupt("return", this.send('DELETE', '/accounts/sso/' + organizationId, null, true, false)); + + case 1: + case "end": + return _context14.stop(); + } } }, _callee14, this); })); @@ -54437,14 +54262,17 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getSsoUserIdentifier", value: function getSsoUserIdentifier() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee15() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee15$(_context15) { - while (1) switch (_context15.prev = _context15.next) { - case 0: - return _context15.abrupt("return", this.send('GET', '/accounts/sso/user-identifier', null, true, true)); - case 1: - case "end": - return _context15.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee15() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee15$(_context15) { + while (1) { + switch (_context15.prev = _context15.next) { + case 0: + return _context15.abrupt("return", this.send('GET', '/accounts/sso/user-identifier', null, true, true)); + + case 1: + case "end": + return _context15.stop(); + } } }, _callee15, this); })); @@ -54452,19 +54280,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postUserApiKey", value: function postUserApiKey(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee16() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee16() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee16$(_context16) { - while (1) switch (_context16.prev = _context16.next) { - case 0: - _context16.next = 2; - return this.send('POST', '/accounts/api-key', request, true, true); - case 2: - r = _context16.sent; - return _context16.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); - case 4: - case "end": - return _context16.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee16$(_context16) { + while (1) { + switch (_context16.prev = _context16.next) { + case 0: + _context16.next = 2; + return this.send('POST', '/accounts/api-key', request, true, true); + + case 2: + r = _context16.sent; + return _context16.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); + + case 4: + case "end": + return _context16.stop(); + } } }, _callee16, this); })); @@ -54472,40 +54304,48 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postUserRotateApiKey", value: function postUserRotateApiKey(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee17() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee17() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee17$(_context17) { - while (1) switch (_context17.prev = _context17.next) { - case 0: - _context17.next = 2; - return this.send('POST', '/accounts/rotate-api-key', request, true, true); - case 2: - r = _context17.sent; - return _context17.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); - case 4: - case "end": - return _context17.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee17$(_context17) { + while (1) { + switch (_context17.prev = _context17.next) { + case 0: + _context17.next = 2; + return this.send('POST', '/accounts/rotate-api-key', request, true, true); + + case 2: + r = _context17.sent; + return _context17.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); + + case 4: + case "end": + return _context17.stop(); + } } }, _callee17, this); })); - } - // Folder APIs + } // Folder APIs + }, { key: "getFolder", value: function getFolder(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee18() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee18() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee18$(_context18) { - while (1) switch (_context18.prev = _context18.next) { - case 0: - _context18.next = 2; - return this.send('GET', '/folders/' + id, null, true, true); - case 2: - r = _context18.sent; - return _context18.abrupt("return", new _models_response_folderResponse__WEBPACK_IMPORTED_MODULE_12__["FolderResponse"](r)); - case 4: - case "end": - return _context18.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee18$(_context18) { + while (1) { + switch (_context18.prev = _context18.next) { + case 0: + _context18.next = 2; + return this.send('GET', '/folders/' + id, null, true, true); + + case 2: + r = _context18.sent; + return _context18.abrupt("return", new _models_response_folderResponse__WEBPACK_IMPORTED_MODULE_12__["FolderResponse"](r)); + + case 4: + case "end": + return _context18.stop(); + } } }, _callee18, this); })); @@ -54513,19 +54353,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postFolder", value: function postFolder(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee19() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee19() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee19$(_context19) { - while (1) switch (_context19.prev = _context19.next) { - case 0: - _context19.next = 2; - return this.send('POST', '/folders', request, true, true); - case 2: - r = _context19.sent; - return _context19.abrupt("return", new _models_response_folderResponse__WEBPACK_IMPORTED_MODULE_12__["FolderResponse"](r)); - case 4: - case "end": - return _context19.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee19$(_context19) { + while (1) { + switch (_context19.prev = _context19.next) { + case 0: + _context19.next = 2; + return this.send('POST', '/folders', request, true, true); + + case 2: + r = _context19.sent; + return _context19.abrupt("return", new _models_response_folderResponse__WEBPACK_IMPORTED_MODULE_12__["FolderResponse"](r)); + + case 4: + case "end": + return _context19.stop(); + } } }, _callee19, this); })); @@ -54533,19 +54377,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putFolder", value: function putFolder(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee20() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee20() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee20$(_context20) { - while (1) switch (_context20.prev = _context20.next) { - case 0: - _context20.next = 2; - return this.send('PUT', '/folders/' + id, request, true, true); - case 2: - r = _context20.sent; - return _context20.abrupt("return", new _models_response_folderResponse__WEBPACK_IMPORTED_MODULE_12__["FolderResponse"](r)); - case 4: - case "end": - return _context20.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee20$(_context20) { + while (1) { + switch (_context20.prev = _context20.next) { + case 0: + _context20.next = 2; + return this.send('PUT', '/folders/' + id, request, true, true); + + case 2: + r = _context20.sent; + return _context20.abrupt("return", new _models_response_folderResponse__WEBPACK_IMPORTED_MODULE_12__["FolderResponse"](r)); + + case 4: + case "end": + return _context20.stop(); + } } }, _callee20, this); })); @@ -54554,24 +54402,28 @@ var ApiService = /*#__PURE__*/function () { key: "deleteFolder", value: function deleteFolder(id) { return this.send('DELETE', '/folders/' + id, null, true, false); - } - // Send APIs + } // Send APIs + }, { key: "getSend", value: function getSend(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee21() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee21() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee21$(_context21) { - while (1) switch (_context21.prev = _context21.next) { - case 0: - _context21.next = 2; - return this.send('GET', '/sends/' + id, null, true, true); - case 2: - r = _context21.sent; - return _context21.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); - case 4: - case "end": - return _context21.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee21$(_context21) { + while (1) { + switch (_context21.prev = _context21.next) { + case 0: + _context21.next = 2; + return this.send('GET', '/sends/' + id, null, true, true); + + case 2: + r = _context21.sent; + return _context21.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); + + case 4: + case "end": + return _context21.stop(); + } } }, _callee21, this); })); @@ -54579,19 +54431,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postSendAccess", value: function postSendAccess(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee22() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee22() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee22$(_context22) { - while (1) switch (_context22.prev = _context22.next) { - case 0: - _context22.next = 2; - return this.send('POST', '/sends/access/' + id, request, false, true); - case 2: - r = _context22.sent; - return _context22.abrupt("return", new _models_response_sendAccessResponse__WEBPACK_IMPORTED_MODULE_26__["SendAccessResponse"](r)); - case 4: - case "end": - return _context22.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee22$(_context22) { + while (1) { + switch (_context22.prev = _context22.next) { + case 0: + _context22.next = 2; + return this.send('POST', '/sends/access/' + id, request, false, true); + + case 2: + r = _context22.sent; + return _context22.abrupt("return", new _models_response_sendAccessResponse__WEBPACK_IMPORTED_MODULE_26__["SendAccessResponse"](r)); + + case 4: + case "end": + return _context22.stop(); + } } }, _callee22, this); })); @@ -54599,19 +54455,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getSends", value: function getSends() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee23() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee23() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee23$(_context23) { - while (1) switch (_context23.prev = _context23.next) { - case 0: - _context23.next = 2; - return this.send('GET', '/sends', null, true, true); - case 2: - r = _context23.sent; - return _context23.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"])); - case 4: - case "end": - return _context23.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee23$(_context23) { + while (1) { + switch (_context23.prev = _context23.next) { + case 0: + _context23.next = 2; + return this.send('GET', '/sends', null, true, true); + + case 2: + r = _context23.sent; + return _context23.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"])); + + case 4: + case "end": + return _context23.stop(); + } } }, _callee23, this); })); @@ -54619,19 +54479,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postSend", value: function postSend(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee24() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee24() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee24$(_context24) { - while (1) switch (_context24.prev = _context24.next) { - case 0: - _context24.next = 2; - return this.send('POST', '/sends', request, true, true); - case 2: - r = _context24.sent; - return _context24.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); - case 4: - case "end": - return _context24.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee24$(_context24) { + while (1) { + switch (_context24.prev = _context24.next) { + case 0: + _context24.next = 2; + return this.send('POST', '/sends', request, true, true); + + case 2: + r = _context24.sent; + return _context24.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); + + case 4: + case "end": + return _context24.stop(); + } } }, _callee24, this); })); @@ -54639,19 +54503,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postSendFile", value: function postSendFile(data) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee25() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee25() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee25$(_context25) { - while (1) switch (_context25.prev = _context25.next) { - case 0: - _context25.next = 2; - return this.send('POST', '/sends/file', data, true, true); - case 2: - r = _context25.sent; - return _context25.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); - case 4: - case "end": - return _context25.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee25$(_context25) { + while (1) { + switch (_context25.prev = _context25.next) { + case 0: + _context25.next = 2; + return this.send('POST', '/sends/file', data, true, true); + + case 2: + r = _context25.sent; + return _context25.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); + + case 4: + case "end": + return _context25.stop(); + } } }, _callee25, this); })); @@ -54659,19 +54527,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putSend", value: function putSend(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee26() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee26() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee26$(_context26) { - while (1) switch (_context26.prev = _context26.next) { - case 0: - _context26.next = 2; - return this.send('PUT', '/sends/' + id, request, true, true); - case 2: - r = _context26.sent; - return _context26.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); - case 4: - case "end": - return _context26.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee26$(_context26) { + while (1) { + switch (_context26.prev = _context26.next) { + case 0: + _context26.next = 2; + return this.send('PUT', '/sends/' + id, request, true, true); + + case 2: + r = _context26.sent; + return _context26.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); + + case 4: + case "end": + return _context26.stop(); + } } }, _callee26, this); })); @@ -54679,19 +54551,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putSendRemovePassword", value: function putSendRemovePassword(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee27() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee27() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee27$(_context27) { - while (1) switch (_context27.prev = _context27.next) { - case 0: - _context27.next = 2; - return this.send('PUT', '/sends/' + id + '/remove-password', null, true, true); - case 2: - r = _context27.sent; - return _context27.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); - case 4: - case "end": - return _context27.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee27$(_context27) { + while (1) { + switch (_context27.prev = _context27.next) { + case 0: + _context27.next = 2; + return this.send('PUT', '/sends/' + id + '/remove-password', null, true, true); + + case 2: + r = _context27.sent; + return _context27.abrupt("return", new _models_response_sendResponse__WEBPACK_IMPORTED_MODULE_27__["SendResponse"](r)); + + case 4: + case "end": + return _context27.stop(); + } } }, _callee27, this); })); @@ -54700,24 +54576,28 @@ var ApiService = /*#__PURE__*/function () { key: "deleteSend", value: function deleteSend(id) { return this.send('DELETE', '/sends/' + id, null, true, false); - } - // Cipher APIs + } // Cipher APIs + }, { key: "getCipher", value: function getCipher(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee28() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee28() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee28$(_context28) { - while (1) switch (_context28.prev = _context28.next) { - case 0: - _context28.next = 2; - return this.send('GET', '/ciphers/' + id, null, true, true); - case 2: - r = _context28.sent; - return _context28.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context28.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee28$(_context28) { + while (1) { + switch (_context28.prev = _context28.next) { + case 0: + _context28.next = 2; + return this.send('GET', '/ciphers/' + id, null, true, true); + + case 2: + r = _context28.sent; + return _context28.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context28.stop(); + } } }, _callee28, this); })); @@ -54725,19 +54605,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getCipherAdmin", value: function getCipherAdmin(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee29() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee29() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee29$(_context29) { - while (1) switch (_context29.prev = _context29.next) { - case 0: - _context29.next = 2; - return this.send('GET', '/ciphers/' + id + '/admin', null, true, true); - case 2: - r = _context29.sent; - return _context29.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context29.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee29$(_context29) { + while (1) { + switch (_context29.prev = _context29.next) { + case 0: + _context29.next = 2; + return this.send('GET', '/ciphers/' + id + '/admin', null, true, true); + + case 2: + r = _context29.sent; + return _context29.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context29.stop(); + } } }, _callee29, this); })); @@ -54745,19 +54629,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getCiphersOrganization", value: function getCiphersOrganization(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee30() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee30() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee30$(_context30) { - while (1) switch (_context30.prev = _context30.next) { - case 0: - _context30.next = 2; - return this.send('GET', '/ciphers/organization-details?organizationId=' + organizationId, null, true, true); - case 2: - r = _context30.sent; - return _context30.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"])); - case 4: - case "end": - return _context30.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee30$(_context30) { + while (1) { + switch (_context30.prev = _context30.next) { + case 0: + _context30.next = 2; + return this.send('GET', '/ciphers/organization-details?organizationId=' + organizationId, null, true, true); + + case 2: + r = _context30.sent; + return _context30.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"])); + + case 4: + case "end": + return _context30.stop(); + } } }, _callee30, this); })); @@ -54765,19 +54653,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postCipher", value: function postCipher(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee31() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee31() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee31$(_context31) { - while (1) switch (_context31.prev = _context31.next) { - case 0: - _context31.next = 2; - return this.send('POST', '/ciphers', request, true, true); - case 2: - r = _context31.sent; - return _context31.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context31.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee31$(_context31) { + while (1) { + switch (_context31.prev = _context31.next) { + case 0: + _context31.next = 2; + return this.send('POST', '/ciphers', request, true, true); + + case 2: + r = _context31.sent; + return _context31.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context31.stop(); + } } }, _callee31, this); })); @@ -54785,19 +54677,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postCipherCreate", value: function postCipherCreate(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee32() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee32() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee32$(_context32) { - while (1) switch (_context32.prev = _context32.next) { - case 0: - _context32.next = 2; - return this.send('POST', '/ciphers/create', request, true, true); - case 2: - r = _context32.sent; - return _context32.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context32.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee32$(_context32) { + while (1) { + switch (_context32.prev = _context32.next) { + case 0: + _context32.next = 2; + return this.send('POST', '/ciphers/create', request, true, true); + + case 2: + r = _context32.sent; + return _context32.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context32.stop(); + } } }, _callee32, this); })); @@ -54805,19 +54701,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postCipherAdmin", value: function postCipherAdmin(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee33() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee33() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee33$(_context33) { - while (1) switch (_context33.prev = _context33.next) { - case 0: - _context33.next = 2; - return this.send('POST', '/ciphers/admin', request, true, true); - case 2: - r = _context33.sent; - return _context33.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context33.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee33$(_context33) { + while (1) { + switch (_context33.prev = _context33.next) { + case 0: + _context33.next = 2; + return this.send('POST', '/ciphers/admin', request, true, true); + + case 2: + r = _context33.sent; + return _context33.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context33.stop(); + } } }, _callee33, this); })); @@ -54825,19 +54725,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putCipher", value: function putCipher(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee34() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee34() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee34$(_context34) { - while (1) switch (_context34.prev = _context34.next) { - case 0: - _context34.next = 2; - return this.send('PUT', '/ciphers/' + id, request, true, true); - case 2: - r = _context34.sent; - return _context34.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context34.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee34$(_context34) { + while (1) { + switch (_context34.prev = _context34.next) { + case 0: + _context34.next = 2; + return this.send('PUT', '/ciphers/' + id, request, true, true); + + case 2: + r = _context34.sent; + return _context34.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context34.stop(); + } } }, _callee34, this); })); @@ -54845,19 +54749,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putCipherAdmin", value: function putCipherAdmin(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee35() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee35() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee35$(_context35) { - while (1) switch (_context35.prev = _context35.next) { - case 0: - _context35.next = 2; - return this.send('PUT', '/ciphers/' + id + '/admin', request, true, true); - case 2: - r = _context35.sent; - return _context35.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context35.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee35$(_context35) { + while (1) { + switch (_context35.prev = _context35.next) { + case 0: + _context35.next = 2; + return this.send('PUT', '/ciphers/' + id + '/admin', request, true, true); + + case 2: + r = _context35.sent; + return _context35.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context35.stop(); + } } }, _callee35, this); })); @@ -54890,19 +54798,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putShareCipher", value: function putShareCipher(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee36() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee36() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee36$(_context36) { - while (1) switch (_context36.prev = _context36.next) { - case 0: - _context36.next = 2; - return this.send('PUT', '/ciphers/' + id + '/share', request, true, true); - case 2: - r = _context36.sent; - return _context36.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context36.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee36$(_context36) { + while (1) { + switch (_context36.prev = _context36.next) { + case 0: + _context36.next = 2; + return this.send('PUT', '/ciphers/' + id + '/share', request, true, true); + + case 2: + r = _context36.sent; + return _context36.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context36.stop(); + } } }, _callee36, this); })); @@ -54927,9 +54839,11 @@ var ApiService = /*#__PURE__*/function () { value: function postPurgeCiphers(request) { var organizationId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var path = '/ciphers/purge'; + if (organizationId != null) { path += '?organizationId=' + organizationId; } + return this.send('POST', path, request, true, false); } }, { @@ -54976,24 +54890,28 @@ var ApiService = /*#__PURE__*/function () { key: "putRestoreManyCiphers", value: function putRestoreManyCiphers(request) { return this.send('PUT', '/ciphers/restore', request, true, false); - } - // Attachments APIs + } // Attachments APIs + }, { key: "postCipherAttachment", value: function postCipherAttachment(id, data) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee37() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee37() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee37$(_context37) { - while (1) switch (_context37.prev = _context37.next) { - case 0: - _context37.next = 2; - return this.send('POST', '/ciphers/' + id + '/attachment', data, true, true); - case 2: - r = _context37.sent; - return _context37.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context37.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee37$(_context37) { + while (1) { + switch (_context37.prev = _context37.next) { + case 0: + _context37.next = 2; + return this.send('POST', '/ciphers/' + id + '/attachment', data, true, true); + + case 2: + r = _context37.sent; + return _context37.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context37.stop(); + } } }, _callee37, this); })); @@ -55001,19 +54919,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postCipherAttachmentAdmin", value: function postCipherAttachmentAdmin(id, data) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee38() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee38() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee38$(_context38) { - while (1) switch (_context38.prev = _context38.next) { - case 0: - _context38.next = 2; - return this.send('POST', '/ciphers/' + id + '/attachment-admin', data, true, true); - case 2: - r = _context38.sent; - return _context38.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); - case 4: - case "end": - return _context38.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee38$(_context38) { + while (1) { + switch (_context38.prev = _context38.next) { + case 0: + _context38.next = 2; + return this.send('POST', '/ciphers/' + id + '/attachment-admin', data, true, true); + + case 2: + r = _context38.sent; + return _context38.abrupt("return", new _models_response_cipherResponse__WEBPACK_IMPORTED_MODULE_7__["CipherResponse"](r)); + + case 4: + case "end": + return _context38.stop(); + } } }, _callee38, this); })); @@ -55032,24 +54954,28 @@ var ApiService = /*#__PURE__*/function () { key: "postShareCipherAttachment", value: function postShareCipherAttachment(id, attachmentId, data, organizationId) { return this.send('POST', '/ciphers/' + id + '/attachment/' + attachmentId + '/share?organizationId=' + organizationId, data, true, false); - } - // Collections APIs + } // Collections APIs + }, { key: "getCollectionDetails", value: function getCollectionDetails(organizationId, id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee39() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee39() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee39$(_context39) { - while (1) switch (_context39.prev = _context39.next) { - case 0: - _context39.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/collections/' + id + '/details', null, true, true); - case 2: - r = _context39.sent; - return _context39.abrupt("return", new _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionGroupDetailsResponse"](r)); - case 4: - case "end": - return _context39.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee39$(_context39) { + while (1) { + switch (_context39.prev = _context39.next) { + case 0: + _context39.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/collections/' + id + '/details', null, true, true); + + case 2: + r = _context39.sent; + return _context39.abrupt("return", new _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionGroupDetailsResponse"](r)); + + case 4: + case "end": + return _context39.stop(); + } } }, _callee39, this); })); @@ -55057,19 +54983,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getUserCollections", value: function getUserCollections() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee40() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee40() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee40$(_context40) { - while (1) switch (_context40.prev = _context40.next) { - case 0: - _context40.next = 2; - return this.send('GET', '/collections', null, true, true); - case 2: - r = _context40.sent; - return _context40.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"])); - case 4: - case "end": - return _context40.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee40$(_context40) { + while (1) { + switch (_context40.prev = _context40.next) { + case 0: + _context40.next = 2; + return this.send('GET', '/collections', null, true, true); + + case 2: + r = _context40.sent; + return _context40.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"])); + + case 4: + case "end": + return _context40.stop(); + } } }, _callee40, this); })); @@ -55077,19 +55007,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getCollections", value: function getCollections(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee41() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee41() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee41$(_context41) { - while (1) switch (_context41.prev = _context41.next) { - case 0: - _context41.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/collections', null, true, true); - case 2: - r = _context41.sent; - return _context41.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"])); - case 4: - case "end": - return _context41.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee41$(_context41) { + while (1) { + switch (_context41.prev = _context41.next) { + case 0: + _context41.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/collections', null, true, true); + + case 2: + r = _context41.sent; + return _context41.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"])); + + case 4: + case "end": + return _context41.stop(); + } } }, _callee41, this); })); @@ -55097,21 +55031,25 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getCollectionUsers", value: function getCollectionUsers(organizationId, id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee42() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee42() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee42$(_context42) { - while (1) switch (_context42.prev = _context42.next) { - case 0: - _context42.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/collections/' + id + '/users', null, true, true); - case 2: - r = _context42.sent; - return _context42.abrupt("return", r.map(function (dr) { - return new _models_response_selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_25__["SelectionReadOnlyResponse"](dr); - })); - case 4: - case "end": - return _context42.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee42$(_context42) { + while (1) { + switch (_context42.prev = _context42.next) { + case 0: + _context42.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/collections/' + id + '/users', null, true, true); + + case 2: + r = _context42.sent; + return _context42.abrupt("return", r.map(function (dr) { + return new _models_response_selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_25__["SelectionReadOnlyResponse"](dr); + })); + + case 4: + case "end": + return _context42.stop(); + } } }, _callee42, this); })); @@ -55119,19 +55057,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postCollection", value: function postCollection(organizationId, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee43() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee43() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee43$(_context43) { - while (1) switch (_context43.prev = _context43.next) { - case 0: - _context43.next = 2; - return this.send('POST', '/organizations/' + organizationId + '/collections', request, true, true); - case 2: - r = _context43.sent; - return _context43.abrupt("return", new _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"](r)); - case 4: - case "end": - return _context43.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee43$(_context43) { + while (1) { + switch (_context43.prev = _context43.next) { + case 0: + _context43.next = 2; + return this.send('POST', '/organizations/' + organizationId + '/collections', request, true, true); + + case 2: + r = _context43.sent; + return _context43.abrupt("return", new _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"](r)); + + case 4: + case "end": + return _context43.stop(); + } } }, _callee43, this); })); @@ -55139,19 +55081,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putCollection", value: function putCollection(organizationId, id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee44() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee44() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee44$(_context44) { - while (1) switch (_context44.prev = _context44.next) { - case 0: - _context44.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/collections/' + id, request, true, true); - case 2: - r = _context44.sent; - return _context44.abrupt("return", new _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"](r)); - case 4: - case "end": - return _context44.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee44$(_context44) { + while (1) { + switch (_context44.prev = _context44.next) { + case 0: + _context44.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/collections/' + id, request, true, true); + + case 2: + r = _context44.sent; + return _context44.abrupt("return", new _models_response_collectionResponse__WEBPACK_IMPORTED_MODULE_8__["CollectionResponse"](r)); + + case 4: + case "end": + return _context44.stop(); + } } }, _callee44, this); })); @@ -55159,15 +55105,18 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putCollectionUsers", value: function putCollectionUsers(organizationId, id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee45() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee45$(_context45) { - while (1) switch (_context45.prev = _context45.next) { - case 0: - _context45.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/collections/' + id + '/users', request, true, false); - case 2: - case "end": - return _context45.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee45() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee45$(_context45) { + while (1) { + switch (_context45.prev = _context45.next) { + case 0: + _context45.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/collections/' + id + '/users', request, true, false); + + case 2: + case "end": + return _context45.stop(); + } } }, _callee45, this); })); @@ -55181,24 +55130,28 @@ var ApiService = /*#__PURE__*/function () { key: "deleteCollectionUser", value: function deleteCollectionUser(organizationId, id, organizationUserId) { return this.send('DELETE', '/organizations/' + organizationId + '/collections/' + id + '/user/' + organizationUserId, null, true, false); - } - // Groups APIs + } // Groups APIs + }, { key: "getGroupDetails", value: function getGroupDetails(organizationId, id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee46() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee46() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee46$(_context46) { - while (1) switch (_context46.prev = _context46.next) { - case 0: - _context46.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/groups/' + id + '/details', null, true, true); - case 2: - r = _context46.sent; - return _context46.abrupt("return", new _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupDetailsResponse"](r)); - case 4: - case "end": - return _context46.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee46$(_context46) { + while (1) { + switch (_context46.prev = _context46.next) { + case 0: + _context46.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/groups/' + id + '/details', null, true, true); + + case 2: + r = _context46.sent; + return _context46.abrupt("return", new _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupDetailsResponse"](r)); + + case 4: + case "end": + return _context46.stop(); + } } }, _callee46, this); })); @@ -55206,19 +55159,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getGroups", value: function getGroups(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee47() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee47() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee47$(_context47) { - while (1) switch (_context47.prev = _context47.next) { - case 0: - _context47.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/groups', null, true, true); - case 2: - r = _context47.sent; - return _context47.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupResponse"])); - case 4: - case "end": - return _context47.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee47$(_context47) { + while (1) { + switch (_context47.prev = _context47.next) { + case 0: + _context47.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/groups', null, true, true); + + case 2: + r = _context47.sent; + return _context47.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupResponse"])); + + case 4: + case "end": + return _context47.stop(); + } } }, _callee47, this); })); @@ -55226,19 +55183,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getGroupUsers", value: function getGroupUsers(organizationId, id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee48() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee48() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee48$(_context48) { - while (1) switch (_context48.prev = _context48.next) { - case 0: - _context48.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/groups/' + id + '/users', null, true, true); - case 2: - r = _context48.sent; - return _context48.abrupt("return", r); - case 4: - case "end": - return _context48.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee48$(_context48) { + while (1) { + switch (_context48.prev = _context48.next) { + case 0: + _context48.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/groups/' + id + '/users', null, true, true); + + case 2: + r = _context48.sent; + return _context48.abrupt("return", r); + + case 4: + case "end": + return _context48.stop(); + } } }, _callee48, this); })); @@ -55246,19 +55207,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postGroup", value: function postGroup(organizationId, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee49() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee49() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee49$(_context49) { - while (1) switch (_context49.prev = _context49.next) { - case 0: - _context49.next = 2; - return this.send('POST', '/organizations/' + organizationId + '/groups', request, true, true); - case 2: - r = _context49.sent; - return _context49.abrupt("return", new _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupResponse"](r)); - case 4: - case "end": - return _context49.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee49$(_context49) { + while (1) { + switch (_context49.prev = _context49.next) { + case 0: + _context49.next = 2; + return this.send('POST', '/organizations/' + organizationId + '/groups', request, true, true); + + case 2: + r = _context49.sent; + return _context49.abrupt("return", new _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupResponse"](r)); + + case 4: + case "end": + return _context49.stop(); + } } }, _callee49, this); })); @@ -55266,19 +55231,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putGroup", value: function putGroup(organizationId, id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee50() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee50() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee50$(_context50) { - while (1) switch (_context50.prev = _context50.next) { - case 0: - _context50.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/groups/' + id, request, true, true); - case 2: - r = _context50.sent; - return _context50.abrupt("return", new _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupResponse"](r)); - case 4: - case "end": - return _context50.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee50$(_context50) { + while (1) { + switch (_context50.prev = _context50.next) { + case 0: + _context50.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/groups/' + id, request, true, true); + + case 2: + r = _context50.sent; + return _context50.abrupt("return", new _models_response_groupResponse__WEBPACK_IMPORTED_MODULE_13__["GroupResponse"](r)); + + case 4: + case "end": + return _context50.stop(); + } } }, _callee50, this); })); @@ -55286,15 +55255,18 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putGroupUsers", value: function putGroupUsers(organizationId, id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee51() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee51$(_context51) { - while (1) switch (_context51.prev = _context51.next) { - case 0: - _context51.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/groups/' + id + '/users', request, true, false); - case 2: - case "end": - return _context51.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee51() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee51$(_context51) { + while (1) { + switch (_context51.prev = _context51.next) { + case 0: + _context51.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/groups/' + id + '/users', request, true, false); + + case 2: + case "end": + return _context51.stop(); + } } }, _callee51, this); })); @@ -55308,24 +55280,28 @@ var ApiService = /*#__PURE__*/function () { key: "deleteGroupUser", value: function deleteGroupUser(organizationId, id, organizationUserId) { return this.send('DELETE', '/organizations/' + organizationId + '/groups/' + id + '/user/' + organizationUserId, null, true, false); - } - // Policy APIs + } // Policy APIs + }, { key: "getPolicy", value: function getPolicy(organizationId, type) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee52() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee52() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee52$(_context52) { - while (1) switch (_context52.prev = _context52.next) { - case 0: - _context52.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/policies/' + type, null, true, true); - case 2: - r = _context52.sent; - return _context52.abrupt("return", new _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"](r)); - case 4: - case "end": - return _context52.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee52$(_context52) { + while (1) { + switch (_context52.prev = _context52.next) { + case 0: + _context52.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/policies/' + type, null, true, true); + + case 2: + r = _context52.sent; + return _context52.abrupt("return", new _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"](r)); + + case 4: + case "end": + return _context52.stop(); + } } }, _callee52, this); })); @@ -55333,19 +55309,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getPolicies", value: function getPolicies(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee53() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee53() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee53$(_context53) { - while (1) switch (_context53.prev = _context53.next) { - case 0: - _context53.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/policies', null, true, true); - case 2: - r = _context53.sent; - return _context53.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"])); - case 4: - case "end": - return _context53.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee53$(_context53) { + while (1) { + switch (_context53.prev = _context53.next) { + case 0: + _context53.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/policies', null, true, true); + + case 2: + r = _context53.sent; + return _context53.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"])); + + case 4: + case "end": + return _context53.stop(); + } } }, _callee53, this); })); @@ -55353,19 +55333,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getPoliciesByToken", value: function getPoliciesByToken(organizationId, token, email, organizationUserId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee54() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee54() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee54$(_context54) { - while (1) switch (_context54.prev = _context54.next) { - case 0: - _context54.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/policies/token?' + 'token=' + encodeURIComponent(token) + '&email=' + encodeURIComponent(email) + '&organizationUserId=' + organizationUserId, null, false, true); - case 2: - r = _context54.sent; - return _context54.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"])); - case 4: - case "end": - return _context54.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee54$(_context54) { + while (1) { + switch (_context54.prev = _context54.next) { + case 0: + _context54.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/policies/token?' + 'token=' + encodeURIComponent(token) + '&email=' + encodeURIComponent(email) + '&organizationUserId=' + organizationUserId, null, false, true); + + case 2: + r = _context54.sent; + return _context54.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"])); + + case 4: + case "end": + return _context54.stop(); + } } }, _callee54, this); })); @@ -55373,40 +55357,48 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putPolicy", value: function putPolicy(organizationId, type, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee55() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee55() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee55$(_context55) { - while (1) switch (_context55.prev = _context55.next) { - case 0: - _context55.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/policies/' + type, request, true, true); - case 2: - r = _context55.sent; - return _context55.abrupt("return", new _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"](r)); - case 4: - case "end": - return _context55.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee55$(_context55) { + while (1) { + switch (_context55.prev = _context55.next) { + case 0: + _context55.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/policies/' + type, request, true, true); + + case 2: + r = _context55.sent; + return _context55.abrupt("return", new _models_response_policyResponse__WEBPACK_IMPORTED_MODULE_22__["PolicyResponse"](r)); + + case 4: + case "end": + return _context55.stop(); + } } }, _callee55, this); })); - } - // Organization User APIs + } // Organization User APIs + }, { key: "getOrganizationUser", value: function getOrganizationUser(organizationId, id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee56() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee56() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee56$(_context56) { - while (1) switch (_context56.prev = _context56.next) { - case 0: - _context56.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/users/' + id, null, true, true); - case 2: - r = _context56.sent; - return _context56.abrupt("return", new _models_response_organizationUserResponse__WEBPACK_IMPORTED_MODULE_19__["OrganizationUserDetailsResponse"](r)); - case 4: - case "end": - return _context56.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee56$(_context56) { + while (1) { + switch (_context56.prev = _context56.next) { + case 0: + _context56.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/users/' + id, null, true, true); + + case 2: + r = _context56.sent; + return _context56.abrupt("return", new _models_response_organizationUserResponse__WEBPACK_IMPORTED_MODULE_19__["OrganizationUserDetailsResponse"](r)); + + case 4: + case "end": + return _context56.stop(); + } } }, _callee56, this); })); @@ -55414,19 +55406,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getOrganizationUserGroups", value: function getOrganizationUserGroups(organizationId, id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee57() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee57() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee57$(_context57) { - while (1) switch (_context57.prev = _context57.next) { - case 0: - _context57.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/users/' + id + '/groups', null, true, true); - case 2: - r = _context57.sent; - return _context57.abrupt("return", r); - case 4: - case "end": - return _context57.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee57$(_context57) { + while (1) { + switch (_context57.prev = _context57.next) { + case 0: + _context57.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/users/' + id + '/groups', null, true, true); + + case 2: + r = _context57.sent; + return _context57.abrupt("return", r); + + case 4: + case "end": + return _context57.stop(); + } } }, _callee57, this); })); @@ -55434,19 +55430,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getOrganizationUsers", value: function getOrganizationUsers(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee58() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee58() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee58$(_context58) { - while (1) switch (_context58.prev = _context58.next) { - case 0: - _context58.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/users', null, true, true); - case 2: - r = _context58.sent; - return _context58.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_organizationUserResponse__WEBPACK_IMPORTED_MODULE_19__["OrganizationUserUserDetailsResponse"])); - case 4: - case "end": - return _context58.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee58$(_context58) { + while (1) { + switch (_context58.prev = _context58.next) { + case 0: + _context58.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/users', null, true, true); + + case 2: + r = _context58.sent; + return _context58.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_organizationUserResponse__WEBPACK_IMPORTED_MODULE_19__["OrganizationUserUserDetailsResponse"])); + + case 4: + case "end": + return _context58.stop(); + } } }, _callee58, this); })); @@ -55485,24 +55485,28 @@ var ApiService = /*#__PURE__*/function () { key: "deleteOrganizationUser", value: function deleteOrganizationUser(organizationId, id) { return this.send('DELETE', '/organizations/' + organizationId + '/users/' + id, null, true, false); - } - // Plan APIs + } // Plan APIs + }, { key: "getPlans", value: function getPlans() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee59() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee59() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee59$(_context59) { - while (1) switch (_context59.prev = _context59.next) { - case 0: - _context59.next = 2; - return this.send('GET', '/plans/', null, true, true); - case 2: - r = _context59.sent; - return _context59.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_planResponse__WEBPACK_IMPORTED_MODULE_21__["PlanResponse"])); - case 4: - case "end": - return _context59.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee59$(_context59) { + while (1) { + switch (_context59.prev = _context59.next) { + case 0: + _context59.next = 2; + return this.send('GET', '/plans/', null, true, true); + + case 2: + r = _context59.sent; + return _context59.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_planResponse__WEBPACK_IMPORTED_MODULE_21__["PlanResponse"])); + + case 4: + case "end": + return _context59.stop(); + } } }, _callee59, this); })); @@ -55510,35 +55514,42 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postImportDirectory", value: function postImportDirectory(organizationId, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee60() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee60$(_context60) { - while (1) switch (_context60.prev = _context60.next) { - case 0: - return _context60.abrupt("return", this.send('POST', '/organizations/' + organizationId + '/import', request, true, false)); - case 1: - case "end": - return _context60.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee60() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee60$(_context60) { + while (1) { + switch (_context60.prev = _context60.next) { + case 0: + return _context60.abrupt("return", this.send('POST', '/organizations/' + organizationId + '/import', request, true, false)); + + case 1: + case "end": + return _context60.stop(); + } } }, _callee60, this); })); - } - // Settings APIs + } // Settings APIs + }, { key: "getSettingsDomains", value: function getSettingsDomains() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee61() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee61() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee61$(_context61) { - while (1) switch (_context61.prev = _context61.next) { - case 0: - _context61.next = 2; - return this.send('GET', '/settings/domains', null, true, true); - case 2: - r = _context61.sent; - return _context61.abrupt("return", new _models_response_domainsResponse__WEBPACK_IMPORTED_MODULE_9__["DomainsResponse"](r)); - case 4: - case "end": - return _context61.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee61$(_context61) { + while (1) { + switch (_context61.prev = _context61.next) { + case 0: + _context61.next = 2; + return this.send('GET', '/settings/domains', null, true, true); + + case 2: + r = _context61.sent; + return _context61.abrupt("return", new _models_response_domainsResponse__WEBPACK_IMPORTED_MODULE_9__["DomainsResponse"](r)); + + case 4: + case "end": + return _context61.stop(); + } } }, _callee61, this); })); @@ -55546,62 +55557,74 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putSettingsDomains", value: function putSettingsDomains(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee62() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee62() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee62$(_context62) { - while (1) switch (_context62.prev = _context62.next) { - case 0: - _context62.next = 2; - return this.send('PUT', '/settings/domains', request, true, true); - case 2: - r = _context62.sent; - return _context62.abrupt("return", new _models_response_domainsResponse__WEBPACK_IMPORTED_MODULE_9__["DomainsResponse"](r)); - case 4: - case "end": - return _context62.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee62$(_context62) { + while (1) { + switch (_context62.prev = _context62.next) { + case 0: + _context62.next = 2; + return this.send('PUT', '/settings/domains', request, true, true); + + case 2: + r = _context62.sent; + return _context62.abrupt("return", new _models_response_domainsResponse__WEBPACK_IMPORTED_MODULE_9__["DomainsResponse"](r)); + + case 4: + case "end": + return _context62.stop(); + } } }, _callee62, this); })); - } - // Sync APIs + } // Sync APIs + }, { key: "getSync", value: function getSync() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee63() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee63() { var path, r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee63$(_context63) { - while (1) switch (_context63.prev = _context63.next) { - case 0: - path = this.isDesktopClient || this.isWebClient ? '/sync?excludeDomains=true' : '/sync'; - _context63.next = 3; - return this.send('GET', path, null, true, true); - case 3: - r = _context63.sent; - return _context63.abrupt("return", new _models_response_syncResponse__WEBPACK_IMPORTED_MODULE_29__["SyncResponse"](r)); - case 5: - case "end": - return _context63.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee63$(_context63) { + while (1) { + switch (_context63.prev = _context63.next) { + case 0: + path = this.isDesktopClient || this.isWebClient ? '/sync?excludeDomains=true' : '/sync'; + _context63.next = 3; + return this.send('GET', path, null, true, true); + + case 3: + r = _context63.sent; + return _context63.abrupt("return", new _models_response_syncResponse__WEBPACK_IMPORTED_MODULE_29__["SyncResponse"](r)); + + case 5: + case "end": + return _context63.stop(); + } } }, _callee63, this); })); - } - // Two-factor APIs + } // Two-factor APIs + }, { key: "getTwoFactorProviders", value: function getTwoFactorProviders() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee64() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee64() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee64$(_context64) { - while (1) switch (_context64.prev = _context64.next) { - case 0: - _context64.next = 2; - return this.send('GET', '/two-factor', null, true, true); - case 2: - r = _context64.sent; - return _context64.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"])); - case 4: - case "end": - return _context64.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee64$(_context64) { + while (1) { + switch (_context64.prev = _context64.next) { + case 0: + _context64.next = 2; + return this.send('GET', '/two-factor', null, true, true); + + case 2: + r = _context64.sent; + return _context64.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"])); + + case 4: + case "end": + return _context64.stop(); + } } }, _callee64, this); })); @@ -55609,19 +55632,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorOrganizationProviders", value: function getTwoFactorOrganizationProviders(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee65() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee65() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee65$(_context65) { - while (1) switch (_context65.prev = _context65.next) { - case 0: - _context65.next = 2; - return this.send('GET', '/organizations/' + organizationId + '/two-factor', null, true, true); - case 2: - r = _context65.sent; - return _context65.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"])); - case 4: - case "end": - return _context65.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee65$(_context65) { + while (1) { + switch (_context65.prev = _context65.next) { + case 0: + _context65.next = 2; + return this.send('GET', '/organizations/' + organizationId + '/two-factor', null, true, true); + + case 2: + r = _context65.sent; + return _context65.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"])); + + case 4: + case "end": + return _context65.stop(); + } } }, _callee65, this); })); @@ -55629,19 +55656,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorAuthenticator", value: function getTwoFactorAuthenticator(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee66() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee66() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee66$(_context66) { - while (1) switch (_context66.prev = _context66.next) { - case 0: - _context66.next = 2; - return this.send('POST', '/two-factor/get-authenticator', request, true, true); - case 2: - r = _context66.sent; - return _context66.abrupt("return", new _models_response_twoFactorAuthenticatorResponse__WEBPACK_IMPORTED_MODULE_31__["TwoFactorAuthenticatorResponse"](r)); - case 4: - case "end": - return _context66.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee66$(_context66) { + while (1) { + switch (_context66.prev = _context66.next) { + case 0: + _context66.next = 2; + return this.send('POST', '/two-factor/get-authenticator', request, true, true); + + case 2: + r = _context66.sent; + return _context66.abrupt("return", new _models_response_twoFactorAuthenticatorResponse__WEBPACK_IMPORTED_MODULE_31__["TwoFactorAuthenticatorResponse"](r)); + + case 4: + case "end": + return _context66.stop(); + } } }, _callee66, this); })); @@ -55649,19 +55680,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorEmail", value: function getTwoFactorEmail(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee67() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee67() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee67$(_context67) { - while (1) switch (_context67.prev = _context67.next) { - case 0: - _context67.next = 2; - return this.send('POST', '/two-factor/get-email', request, true, true); - case 2: - r = _context67.sent; - return _context67.abrupt("return", new _models_response_twoFactorEmailResponse__WEBPACK_IMPORTED_MODULE_33__["TwoFactorEmailResponse"](r)); - case 4: - case "end": - return _context67.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee67$(_context67) { + while (1) { + switch (_context67.prev = _context67.next) { + case 0: + _context67.next = 2; + return this.send('POST', '/two-factor/get-email', request, true, true); + + case 2: + r = _context67.sent; + return _context67.abrupt("return", new _models_response_twoFactorEmailResponse__WEBPACK_IMPORTED_MODULE_33__["TwoFactorEmailResponse"](r)); + + case 4: + case "end": + return _context67.stop(); + } } }, _callee67, this); })); @@ -55669,19 +55704,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorDuo", value: function getTwoFactorDuo(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee68() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee68() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee68$(_context68) { - while (1) switch (_context68.prev = _context68.next) { - case 0: - _context68.next = 2; - return this.send('POST', '/two-factor/get-duo', request, true, true); - case 2: - r = _context68.sent; - return _context68.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); - case 4: - case "end": - return _context68.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee68$(_context68) { + while (1) { + switch (_context68.prev = _context68.next) { + case 0: + _context68.next = 2; + return this.send('POST', '/two-factor/get-duo', request, true, true); + + case 2: + r = _context68.sent; + return _context68.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); + + case 4: + case "end": + return _context68.stop(); + } } }, _callee68, this); })); @@ -55689,19 +55728,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorOrganizationDuo", value: function getTwoFactorOrganizationDuo(organizationId, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee69() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee69() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee69$(_context69) { - while (1) switch (_context69.prev = _context69.next) { - case 0: - _context69.next = 2; - return this.send('POST', '/organizations/' + organizationId + '/two-factor/get-duo', request, true, true); - case 2: - r = _context69.sent; - return _context69.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); - case 4: - case "end": - return _context69.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee69$(_context69) { + while (1) { + switch (_context69.prev = _context69.next) { + case 0: + _context69.next = 2; + return this.send('POST', '/organizations/' + organizationId + '/two-factor/get-duo', request, true, true); + + case 2: + r = _context69.sent; + return _context69.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); + + case 4: + case "end": + return _context69.stop(); + } } }, _callee69, this); })); @@ -55709,19 +55752,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorYubiKey", value: function getTwoFactorYubiKey(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee70() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee70() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee70$(_context70) { - while (1) switch (_context70.prev = _context70.next) { - case 0: - _context70.next = 2; - return this.send('POST', '/two-factor/get-yubikey', request, true, true); - case 2: - r = _context70.sent; - return _context70.abrupt("return", new _models_response_twoFactorYubiKeyResponse__WEBPACK_IMPORTED_MODULE_37__["TwoFactorYubiKeyResponse"](r)); - case 4: - case "end": - return _context70.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee70$(_context70) { + while (1) { + switch (_context70.prev = _context70.next) { + case 0: + _context70.next = 2; + return this.send('POST', '/two-factor/get-yubikey', request, true, true); + + case 2: + r = _context70.sent; + return _context70.abrupt("return", new _models_response_twoFactorYubiKeyResponse__WEBPACK_IMPORTED_MODULE_37__["TwoFactorYubiKeyResponse"](r)); + + case 4: + case "end": + return _context70.stop(); + } } }, _callee70, this); })); @@ -55729,19 +55776,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorU2f", value: function getTwoFactorU2f(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee71() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee71() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee71$(_context71) { - while (1) switch (_context71.prev = _context71.next) { - case 0: - _context71.next = 2; - return this.send('POST', '/two-factor/get-u2f', request, true, true); - case 2: - r = _context71.sent; - return _context71.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["TwoFactorU2fResponse"](r)); - case 4: - case "end": - return _context71.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee71$(_context71) { + while (1) { + switch (_context71.prev = _context71.next) { + case 0: + _context71.next = 2; + return this.send('POST', '/two-factor/get-u2f', request, true, true); + + case 2: + r = _context71.sent; + return _context71.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["TwoFactorU2fResponse"](r)); + + case 4: + case "end": + return _context71.stop(); + } } }, _callee71, this); })); @@ -55749,19 +55800,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorU2fChallenge", value: function getTwoFactorU2fChallenge(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee72() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee72() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee72$(_context72) { - while (1) switch (_context72.prev = _context72.next) { - case 0: - _context72.next = 2; - return this.send('POST', '/two-factor/get-u2f-challenge', request, true, true); - case 2: - r = _context72.sent; - return _context72.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["ChallengeResponse"](r)); - case 4: - case "end": - return _context72.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee72$(_context72) { + while (1) { + switch (_context72.prev = _context72.next) { + case 0: + _context72.next = 2; + return this.send('POST', '/two-factor/get-u2f-challenge', request, true, true); + + case 2: + r = _context72.sent; + return _context72.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["ChallengeResponse"](r)); + + case 4: + case "end": + return _context72.stop(); + } } }, _callee72, this); })); @@ -55769,19 +55824,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getTwoFactorRecover", value: function getTwoFactorRecover(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee73() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee73() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee73$(_context73) { - while (1) switch (_context73.prev = _context73.next) { - case 0: - _context73.next = 2; - return this.send('POST', '/two-factor/get-recover', request, true, true); - case 2: - r = _context73.sent; - return _context73.abrupt("return", new _models_response_twoFactorRescoverResponse__WEBPACK_IMPORTED_MODULE_35__["TwoFactorRecoverResponse"](r)); - case 4: - case "end": - return _context73.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee73$(_context73) { + while (1) { + switch (_context73.prev = _context73.next) { + case 0: + _context73.next = 2; + return this.send('POST', '/two-factor/get-recover', request, true, true); + + case 2: + r = _context73.sent; + return _context73.abrupt("return", new _models_response_twoFactorRescoverResponse__WEBPACK_IMPORTED_MODULE_35__["TwoFactorRecoverResponse"](r)); + + case 4: + case "end": + return _context73.stop(); + } } }, _callee73, this); })); @@ -55789,19 +55848,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorAuthenticator", value: function putTwoFactorAuthenticator(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee74() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee74() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee74$(_context74) { - while (1) switch (_context74.prev = _context74.next) { - case 0: - _context74.next = 2; - return this.send('PUT', '/two-factor/authenticator', request, true, true); - case 2: - r = _context74.sent; - return _context74.abrupt("return", new _models_response_twoFactorAuthenticatorResponse__WEBPACK_IMPORTED_MODULE_31__["TwoFactorAuthenticatorResponse"](r)); - case 4: - case "end": - return _context74.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee74$(_context74) { + while (1) { + switch (_context74.prev = _context74.next) { + case 0: + _context74.next = 2; + return this.send('PUT', '/two-factor/authenticator', request, true, true); + + case 2: + r = _context74.sent; + return _context74.abrupt("return", new _models_response_twoFactorAuthenticatorResponse__WEBPACK_IMPORTED_MODULE_31__["TwoFactorAuthenticatorResponse"](r)); + + case 4: + case "end": + return _context74.stop(); + } } }, _callee74, this); })); @@ -55809,19 +55872,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorEmail", value: function putTwoFactorEmail(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee75() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee75() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee75$(_context75) { - while (1) switch (_context75.prev = _context75.next) { - case 0: - _context75.next = 2; - return this.send('PUT', '/two-factor/email', request, true, true); - case 2: - r = _context75.sent; - return _context75.abrupt("return", new _models_response_twoFactorEmailResponse__WEBPACK_IMPORTED_MODULE_33__["TwoFactorEmailResponse"](r)); - case 4: - case "end": - return _context75.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee75$(_context75) { + while (1) { + switch (_context75.prev = _context75.next) { + case 0: + _context75.next = 2; + return this.send('PUT', '/two-factor/email', request, true, true); + + case 2: + r = _context75.sent; + return _context75.abrupt("return", new _models_response_twoFactorEmailResponse__WEBPACK_IMPORTED_MODULE_33__["TwoFactorEmailResponse"](r)); + + case 4: + case "end": + return _context75.stop(); + } } }, _callee75, this); })); @@ -55829,19 +55896,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorDuo", value: function putTwoFactorDuo(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee76() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee76() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee76$(_context76) { - while (1) switch (_context76.prev = _context76.next) { - case 0: - _context76.next = 2; - return this.send('PUT', '/two-factor/duo', request, true, true); - case 2: - r = _context76.sent; - return _context76.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); - case 4: - case "end": - return _context76.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee76$(_context76) { + while (1) { + switch (_context76.prev = _context76.next) { + case 0: + _context76.next = 2; + return this.send('PUT', '/two-factor/duo', request, true, true); + + case 2: + r = _context76.sent; + return _context76.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); + + case 4: + case "end": + return _context76.stop(); + } } }, _callee76, this); })); @@ -55849,19 +55920,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorOrganizationDuo", value: function putTwoFactorOrganizationDuo(organizationId, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee77() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee77() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee77$(_context77) { - while (1) switch (_context77.prev = _context77.next) { - case 0: - _context77.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/two-factor/duo', request, true, true); - case 2: - r = _context77.sent; - return _context77.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); - case 4: - case "end": - return _context77.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee77$(_context77) { + while (1) { + switch (_context77.prev = _context77.next) { + case 0: + _context77.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/two-factor/duo', request, true, true); + + case 2: + r = _context77.sent; + return _context77.abrupt("return", new _models_response_twoFactorDuoResponse__WEBPACK_IMPORTED_MODULE_32__["TwoFactorDuoResponse"](r)); + + case 4: + case "end": + return _context77.stop(); + } } }, _callee77, this); })); @@ -55869,19 +55944,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorYubiKey", value: function putTwoFactorYubiKey(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee78() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee78() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee78$(_context78) { - while (1) switch (_context78.prev = _context78.next) { - case 0: - _context78.next = 2; - return this.send('PUT', '/two-factor/yubikey', request, true, true); - case 2: - r = _context78.sent; - return _context78.abrupt("return", new _models_response_twoFactorYubiKeyResponse__WEBPACK_IMPORTED_MODULE_37__["TwoFactorYubiKeyResponse"](r)); - case 4: - case "end": - return _context78.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee78$(_context78) { + while (1) { + switch (_context78.prev = _context78.next) { + case 0: + _context78.next = 2; + return this.send('PUT', '/two-factor/yubikey', request, true, true); + + case 2: + r = _context78.sent; + return _context78.abrupt("return", new _models_response_twoFactorYubiKeyResponse__WEBPACK_IMPORTED_MODULE_37__["TwoFactorYubiKeyResponse"](r)); + + case 4: + case "end": + return _context78.stop(); + } } }, _callee78, this); })); @@ -55889,19 +55968,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorU2f", value: function putTwoFactorU2f(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee79() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee79() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee79$(_context79) { - while (1) switch (_context79.prev = _context79.next) { - case 0: - _context79.next = 2; - return this.send('PUT', '/two-factor/u2f', request, true, true); - case 2: - r = _context79.sent; - return _context79.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["TwoFactorU2fResponse"](r)); - case 4: - case "end": - return _context79.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee79$(_context79) { + while (1) { + switch (_context79.prev = _context79.next) { + case 0: + _context79.next = 2; + return this.send('PUT', '/two-factor/u2f', request, true, true); + + case 2: + r = _context79.sent; + return _context79.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["TwoFactorU2fResponse"](r)); + + case 4: + case "end": + return _context79.stop(); + } } }, _callee79, this); })); @@ -55909,19 +55992,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "deleteTwoFactorU2f", value: function deleteTwoFactorU2f(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee80() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee80() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee80$(_context80) { - while (1) switch (_context80.prev = _context80.next) { - case 0: - _context80.next = 2; - return this.send('DELETE', '/two-factor/u2f', request, true, true); - case 2: - r = _context80.sent; - return _context80.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["TwoFactorU2fResponse"](r)); - case 4: - case "end": - return _context80.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee80$(_context80) { + while (1) { + switch (_context80.prev = _context80.next) { + case 0: + _context80.next = 2; + return this.send('DELETE', '/two-factor/u2f', request, true, true); + + case 2: + r = _context80.sent; + return _context80.abrupt("return", new _models_response_twoFactorU2fResponse__WEBPACK_IMPORTED_MODULE_36__["TwoFactorU2fResponse"](r)); + + case 4: + case "end": + return _context80.stop(); + } } }, _callee80, this); })); @@ -55929,19 +56016,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorDisable", value: function putTwoFactorDisable(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee81() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee81() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee81$(_context81) { - while (1) switch (_context81.prev = _context81.next) { - case 0: - _context81.next = 2; - return this.send('PUT', '/two-factor/disable', request, true, true); - case 2: - r = _context81.sent; - return _context81.abrupt("return", new _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"](r)); - case 4: - case "end": - return _context81.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee81$(_context81) { + while (1) { + switch (_context81.prev = _context81.next) { + case 0: + _context81.next = 2; + return this.send('PUT', '/two-factor/disable', request, true, true); + + case 2: + r = _context81.sent; + return _context81.abrupt("return", new _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"](r)); + + case 4: + case "end": + return _context81.stop(); + } } }, _callee81, this); })); @@ -55949,19 +56040,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putTwoFactorOrganizationDisable", value: function putTwoFactorOrganizationDisable(organizationId, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee82() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee82() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee82$(_context82) { - while (1) switch (_context82.prev = _context82.next) { - case 0: - _context82.next = 2; - return this.send('PUT', '/organizations/' + organizationId + '/two-factor/disable', request, true, true); - case 2: - r = _context82.sent; - return _context82.abrupt("return", new _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"](r)); - case 4: - case "end": - return _context82.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee82$(_context82) { + while (1) { + switch (_context82.prev = _context82.next) { + case 0: + _context82.next = 2; + return this.send('PUT', '/organizations/' + organizationId + '/two-factor/disable', request, true, true); + + case 2: + r = _context82.sent; + return _context82.abrupt("return", new _models_response_twoFactorProviderResponse__WEBPACK_IMPORTED_MODULE_34__["TwoFactorProviderResponse"](r)); + + case 4: + case "end": + return _context82.stop(); + } } }, _callee82, this); })); @@ -55980,24 +56075,28 @@ var ApiService = /*#__PURE__*/function () { key: "postTwoFactorEmail", value: function postTwoFactorEmail(request) { return this.send('POST', '/two-factor/send-email-login', request, false, false); - } - // Organization APIs + } // Organization APIs + }, { key: "getOrganization", value: function getOrganization(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee83() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee83() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee83$(_context83) { - while (1) switch (_context83.prev = _context83.next) { - case 0: - _context83.next = 2; - return this.send('GET', '/organizations/' + id, null, true, true); - case 2: - r = _context83.sent; - return _context83.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); - case 4: - case "end": - return _context83.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee83$(_context83) { + while (1) { + switch (_context83.prev = _context83.next) { + case 0: + _context83.next = 2; + return this.send('GET', '/organizations/' + id, null, true, true); + + case 2: + r = _context83.sent; + return _context83.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); + + case 4: + case "end": + return _context83.stop(); + } } }, _callee83, this); })); @@ -56005,19 +56104,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getOrganizationBilling", value: function getOrganizationBilling(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee84() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee84() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee84$(_context84) { - while (1) switch (_context84.prev = _context84.next) { - case 0: - _context84.next = 2; - return this.send('GET', '/organizations/' + id + '/billing', null, true, true); - case 2: - r = _context84.sent; - return _context84.abrupt("return", new _models_response_billingResponse__WEBPACK_IMPORTED_MODULE_5__["BillingResponse"](r)); - case 4: - case "end": - return _context84.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee84$(_context84) { + while (1) { + switch (_context84.prev = _context84.next) { + case 0: + _context84.next = 2; + return this.send('GET', '/organizations/' + id + '/billing', null, true, true); + + case 2: + r = _context84.sent; + return _context84.abrupt("return", new _models_response_billingResponse__WEBPACK_IMPORTED_MODULE_5__["BillingResponse"](r)); + + case 4: + case "end": + return _context84.stop(); + } } }, _callee84, this); })); @@ -56025,34 +56128,41 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getOrganizationSubscription", value: function getOrganizationSubscription(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee85() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee85() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee85$(_context85) { - while (1) switch (_context85.prev = _context85.next) { - case 0: - _context85.next = 2; - return this.send('GET', '/organizations/' + id + '/subscription', null, true, true); - case 2: - r = _context85.sent; - return _context85.abrupt("return", new _models_response_organizationSubscriptionResponse__WEBPACK_IMPORTED_MODULE_18__["OrganizationSubscriptionResponse"](r)); - case 4: - case "end": - return _context85.stop(); - } + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee85$(_context85) { + while (1) { + switch (_context85.prev = _context85.next) { + case 0: + _context85.next = 2; + return this.send('GET', '/organizations/' + id + '/subscription', null, true, true); + + case 2: + r = _context85.sent; + return _context85.abrupt("return", new _models_response_organizationSubscriptionResponse__WEBPACK_IMPORTED_MODULE_18__["OrganizationSubscriptionResponse"](r)); + + case 4: + case "end": + return _context85.stop(); + } + } }, _callee85, this); })); } }, { key: "getOrganizationLicense", value: function getOrganizationLicense(id, installationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee86() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee86$(_context86) { - while (1) switch (_context86.prev = _context86.next) { - case 0: - return _context86.abrupt("return", this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId, null, true, true)); - case 1: - case "end": - return _context86.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee86() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee86$(_context86) { + while (1) { + switch (_context86.prev = _context86.next) { + case 0: + return _context86.abrupt("return", this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId, null, true, true)); + + case 1: + case "end": + return _context86.stop(); + } } }, _callee86, this); })); @@ -56060,19 +56170,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getOrganizationTaxInfo", value: function getOrganizationTaxInfo(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee87() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee87() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee87$(_context87) { - while (1) switch (_context87.prev = _context87.next) { - case 0: - _context87.next = 2; - return this.send('GET', '/organizations/' + id + '/tax', null, true, true); - case 2: - r = _context87.sent; - return _context87.abrupt("return", new _models_response_taxInfoResponse__WEBPACK_IMPORTED_MODULE_30__["TaxInfoResponse"](r)); - case 4: - case "end": - return _context87.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee87$(_context87) { + while (1) { + switch (_context87.prev = _context87.next) { + case 0: + _context87.next = 2; + return this.send('GET', '/organizations/' + id + '/tax', null, true, true); + + case 2: + r = _context87.sent; + return _context87.abrupt("return", new _models_response_taxInfoResponse__WEBPACK_IMPORTED_MODULE_30__["TaxInfoResponse"](r)); + + case 4: + case "end": + return _context87.stop(); + } } }, _callee87, this); })); @@ -56080,19 +56194,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganization", value: function postOrganization(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee88() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee88() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee88$(_context88) { - while (1) switch (_context88.prev = _context88.next) { - case 0: - _context88.next = 2; - return this.send('POST', '/organizations', request, true, true); - case 2: - r = _context88.sent; - return _context88.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); - case 4: - case "end": - return _context88.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee88$(_context88) { + while (1) { + switch (_context88.prev = _context88.next) { + case 0: + _context88.next = 2; + return this.send('POST', '/organizations', request, true, true); + + case 2: + r = _context88.sent; + return _context88.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); + + case 4: + case "end": + return _context88.stop(); + } } }, _callee88, this); })); @@ -56100,19 +56218,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putOrganization", value: function putOrganization(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee89() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee89() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee89$(_context89) { - while (1) switch (_context89.prev = _context89.next) { - case 0: - _context89.next = 2; - return this.send('PUT', '/organizations/' + id, request, true, true); - case 2: - r = _context89.sent; - return _context89.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); - case 4: - case "end": - return _context89.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee89$(_context89) { + while (1) { + switch (_context89.prev = _context89.next) { + case 0: + _context89.next = 2; + return this.send('PUT', '/organizations/' + id, request, true, true); + + case 2: + r = _context89.sent; + return _context89.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); + + case 4: + case "end": + return _context89.stop(); + } } }, _callee89, this); })); @@ -56120,14 +56242,17 @@ var ApiService = /*#__PURE__*/function () { }, { key: "putOrganizationTaxInfo", value: function putOrganizationTaxInfo(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee90() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee90$(_context90) { - while (1) switch (_context90.prev = _context90.next) { - case 0: - return _context90.abrupt("return", this.send('PUT', '/organizations/' + id + '/tax', request, true, false)); - case 1: - case "end": - return _context90.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee90() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee90$(_context90) { + while (1) { + switch (_context90.prev = _context90.next) { + case 0: + return _context90.abrupt("return", this.send('PUT', '/organizations/' + id + '/tax', request, true, false)); + + case 1: + case "end": + return _context90.stop(); + } } }, _callee90, this); })); @@ -56140,19 +56265,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationLicense", value: function postOrganizationLicense(data) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee91() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee91() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee91$(_context91) { - while (1) switch (_context91.prev = _context91.next) { - case 0: - _context91.next = 2; - return this.send('POST', '/organizations/license', data, true, true); - case 2: - r = _context91.sent; - return _context91.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); - case 4: - case "end": - return _context91.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee91$(_context91) { + while (1) { + switch (_context91.prev = _context91.next) { + case 0: + _context91.next = 2; + return this.send('POST', '/organizations/license', data, true, true); + + case 2: + r = _context91.sent; + return _context91.abrupt("return", new _models_response_organizationResponse__WEBPACK_IMPORTED_MODULE_17__["OrganizationResponse"](r)); + + case 4: + case "end": + return _context91.stop(); + } } }, _callee91, this); })); @@ -56160,14 +56289,17 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationLicenseUpdate", value: function postOrganizationLicenseUpdate(id, data) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee92() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee92$(_context92) { - while (1) switch (_context92.prev = _context92.next) { - case 0: - return _context92.abrupt("return", this.send('POST', '/organizations/' + id + '/license', data, true, false)); - case 1: - case "end": - return _context92.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee92() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee92$(_context92) { + while (1) { + switch (_context92.prev = _context92.next) { + case 0: + return _context92.abrupt("return", this.send('POST', '/organizations/' + id + '/license', data, true, false)); + + case 1: + case "end": + return _context92.stop(); + } } }, _callee92, this); })); @@ -56175,19 +56307,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationApiKey", value: function postOrganizationApiKey(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee93() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee93() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee93$(_context93) { - while (1) switch (_context93.prev = _context93.next) { - case 0: - _context93.next = 2; - return this.send('POST', '/organizations/' + id + '/api-key', request, true, true); - case 2: - r = _context93.sent; - return _context93.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); - case 4: - case "end": - return _context93.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee93$(_context93) { + while (1) { + switch (_context93.prev = _context93.next) { + case 0: + _context93.next = 2; + return this.send('POST', '/organizations/' + id + '/api-key', request, true, true); + + case 2: + r = _context93.sent; + return _context93.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); + + case 4: + case "end": + return _context93.stop(); + } } }, _callee93, this); })); @@ -56195,19 +56331,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationRotateApiKey", value: function postOrganizationRotateApiKey(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee94() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee94() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee94$(_context94) { - while (1) switch (_context94.prev = _context94.next) { - case 0: - _context94.next = 2; - return this.send('POST', '/organizations/' + id + '/rotate-api-key', request, true, true); - case 2: - r = _context94.sent; - return _context94.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); - case 4: - case "end": - return _context94.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee94$(_context94) { + while (1) { + switch (_context94.prev = _context94.next) { + case 0: + _context94.next = 2; + return this.send('POST', '/organizations/' + id + '/rotate-api-key', request, true, true); + + case 2: + r = _context94.sent; + return _context94.abrupt("return", new _models_response_apiKeyResponse__WEBPACK_IMPORTED_MODULE_4__["ApiKeyResponse"](r)); + + case 4: + case "end": + return _context94.stop(); + } } }, _callee94, this); })); @@ -56215,19 +56355,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationUpgrade", value: function postOrganizationUpgrade(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee95() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee95() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee95$(_context95) { - while (1) switch (_context95.prev = _context95.next) { - case 0: - _context95.next = 2; - return this.send('POST', '/organizations/' + id + '/upgrade', request, true, true); - case 2: - r = _context95.sent; - return _context95.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); - case 4: - case "end": - return _context95.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee95$(_context95) { + while (1) { + switch (_context95.prev = _context95.next) { + case 0: + _context95.next = 2; + return this.send('POST', '/organizations/' + id + '/upgrade', request, true, true); + + case 2: + r = _context95.sent; + return _context95.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); + + case 4: + case "end": + return _context95.stop(); + } } }, _callee95, this); })); @@ -56235,19 +56379,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationSeat", value: function postOrganizationSeat(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee96() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee96() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee96$(_context96) { - while (1) switch (_context96.prev = _context96.next) { - case 0: - _context96.next = 2; - return this.send('POST', '/organizations/' + id + '/seat', request, true, true); - case 2: - r = _context96.sent; - return _context96.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); - case 4: - case "end": - return _context96.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee96$(_context96) { + while (1) { + switch (_context96.prev = _context96.next) { + case 0: + _context96.next = 2; + return this.send('POST', '/organizations/' + id + '/seat', request, true, true); + + case 2: + r = _context96.sent; + return _context96.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); + + case 4: + case "end": + return _context96.stop(); + } } }, _callee96, this); })); @@ -56255,19 +56403,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postOrganizationStorage", value: function postOrganizationStorage(id, request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee97() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee97() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee97$(_context97) { - while (1) switch (_context97.prev = _context97.next) { - case 0: - _context97.next = 2; - return this.send('POST', '/organizations/' + id + '/storage', request, true, true); - case 2: - r = _context97.sent; - return _context97.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); - case 4: - case "end": - return _context97.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee97$(_context97) { + while (1) { + switch (_context97.prev = _context97.next) { + case 0: + _context97.next = 2; + return this.send('POST', '/organizations/' + id + '/storage', request, true, true); + + case 2: + r = _context97.sent; + return _context97.abrupt("return", new _models_response_paymentResponse__WEBPACK_IMPORTED_MODULE_20__["PaymentResponse"](r)); + + case 4: + case "end": + return _context97.stop(); + } } }, _callee97, this); })); @@ -56296,24 +56448,28 @@ var ApiService = /*#__PURE__*/function () { key: "deleteOrganization", value: function deleteOrganization(id, request) { return this.send('DELETE', '/organizations/' + id, request, true, false); - } - // Event APIs + } // Event APIs + }, { key: "getEvents", value: function getEvents(start, end, token) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee98() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee98() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee98$(_context98) { - while (1) switch (_context98.prev = _context98.next) { - case 0: - _context98.next = 2; - return this.send('GET', this.addEventParameters('/events', start, end, token), null, true, true); - case 2: - r = _context98.sent; - return _context98.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); - case 4: - case "end": - return _context98.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee98$(_context98) { + while (1) { + switch (_context98.prev = _context98.next) { + case 0: + _context98.next = 2; + return this.send('GET', this.addEventParameters('/events', start, end, token), null, true, true); + + case 2: + r = _context98.sent; + return _context98.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); + + case 4: + case "end": + return _context98.stop(); + } } }, _callee98, this); })); @@ -56321,19 +56477,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getEventsCipher", value: function getEventsCipher(id, start, end, token) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee99() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee99() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee99$(_context99) { - while (1) switch (_context99.prev = _context99.next) { - case 0: - _context99.next = 2; - return this.send('GET', this.addEventParameters('/ciphers/' + id + '/events', start, end, token), null, true, true); - case 2: - r = _context99.sent; - return _context99.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); - case 4: - case "end": - return _context99.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee99$(_context99) { + while (1) { + switch (_context99.prev = _context99.next) { + case 0: + _context99.next = 2; + return this.send('GET', this.addEventParameters('/ciphers/' + id + '/events', start, end, token), null, true, true); + + case 2: + r = _context99.sent; + return _context99.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); + + case 4: + case "end": + return _context99.stop(); + } } }, _callee99, this); })); @@ -56341,19 +56501,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getEventsOrganization", value: function getEventsOrganization(id, start, end, token) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee100() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee100() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee100$(_context100) { - while (1) switch (_context100.prev = _context100.next) { - case 0: - _context100.next = 2; - return this.send('GET', this.addEventParameters('/organizations/' + id + '/events', start, end, token), null, true, true); - case 2: - r = _context100.sent; - return _context100.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); - case 4: - case "end": - return _context100.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee100$(_context100) { + while (1) { + switch (_context100.prev = _context100.next) { + case 0: + _context100.next = 2; + return this.send('GET', this.addEventParameters('/organizations/' + id + '/events', start, end, token), null, true, true); + + case 2: + r = _context100.sent; + return _context100.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); + + case 4: + case "end": + return _context100.stop(); + } } }, _callee100, this); })); @@ -56361,19 +56525,23 @@ var ApiService = /*#__PURE__*/function () { }, { key: "getEventsOrganizationUser", value: function getEventsOrganizationUser(organizationId, id, start, end, token) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee101() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee101() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee101$(_context101) { - while (1) switch (_context101.prev = _context101.next) { - case 0: - _context101.next = 2; - return this.send('GET', this.addEventParameters('/organizations/' + organizationId + '/users/' + id + '/events', start, end, token), null, true, true); - case 2: - r = _context101.sent; - return _context101.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); - case 4: - case "end": - return _context101.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee101$(_context101) { + while (1) { + switch (_context101.prev = _context101.next) { + case 0: + _context101.next = 2; + return this.send('GET', this.addEventParameters('/organizations/' + organizationId + '/users/' + id + '/events', start, end, token), null, true, true); + + case 2: + r = _context101.sent; + return _context101.abrupt("return", new _models_response_listResponse__WEBPACK_IMPORTED_MODULE_16__["ListResponse"](r, _models_response_eventResponse__WEBPACK_IMPORTED_MODULE_11__["EventResponse"])); + + case 4: + case "end": + return _context101.stop(); + } } }, _callee101, this); })); @@ -56381,106 +56549,127 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postEventsCollect", value: function postEventsCollect(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee102() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee102() { var authHeader, headers, response; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee102$(_context102) { - while (1) switch (_context102.prev = _context102.next) { - case 0: - _context102.next = 2; - return this.getActiveBearerToken(); - case 2: - authHeader = _context102.sent; - headers = new Headers({ - 'Device-Type': this.deviceType, - 'Authorization': 'Bearer ' + authHeader, - 'Content-Type': 'application/json; charset=utf-8' - }); - if (this.customUserAgent != null) { - headers.set('User-Agent', this.customUserAgent); - } - _context102.next = 7; - return this.fetch(new Request(this.eventsBaseUrl + '/collect', { - cache: 'no-store', - credentials: this.getCredentials(), - method: 'POST', - body: JSON.stringify(request), - headers: headers - })); - case 7: - response = _context102.sent; - if (!(response.status !== 200)) { - _context102.next = 10; - break; - } - return _context102.abrupt("return", Promise.reject('Event post failed.')); - case 10: - case "end": - return _context102.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee102$(_context102) { + while (1) { + switch (_context102.prev = _context102.next) { + case 0: + _context102.next = 2; + return this.getActiveBearerToken(); + + case 2: + authHeader = _context102.sent; + headers = new Headers({ + 'Device-Type': this.deviceType, + 'Authorization': 'Bearer ' + authHeader, + 'Content-Type': 'application/json; charset=utf-8' + }); + + if (this.customUserAgent != null) { + headers.set('User-Agent', this.customUserAgent); + } + + _context102.next = 7; + return this.fetch(new Request(this.eventsBaseUrl + '/collect', { + cache: 'no-store', + credentials: this.getCredentials(), + method: 'POST', + body: JSON.stringify(request), + headers: headers + })); + + case 7: + response = _context102.sent; + + if (!(response.status !== 200)) { + _context102.next = 10; + break; + } + + return _context102.abrupt("return", Promise.reject('Event post failed.')); + + case 10: + case "end": + return _context102.stop(); + } } }, _callee102, this); })); - } - // User APIs + } // User APIs + }, { key: "getUserPublicKey", value: function getUserPublicKey(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee103() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee103() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee103$(_context103) { - while (1) switch (_context103.prev = _context103.next) { - case 0: - _context103.next = 2; - return this.send('GET', '/users/' + id + '/public-key', null, true, true); - case 2: - r = _context103.sent; - return _context103.abrupt("return", new _models_response_userKeyResponse__WEBPACK_IMPORTED_MODULE_38__["UserKeyResponse"](r)); - case 4: - case "end": - return _context103.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee103$(_context103) { + while (1) { + switch (_context103.prev = _context103.next) { + case 0: + _context103.next = 2; + return this.send('GET', '/users/' + id + '/public-key', null, true, true); + + case 2: + r = _context103.sent; + return _context103.abrupt("return", new _models_response_userKeyResponse__WEBPACK_IMPORTED_MODULE_38__["UserKeyResponse"](r)); + + case 4: + case "end": + return _context103.stop(); + } } }, _callee103, this); })); - } - // HIBP APIs + } // HIBP APIs + }, { key: "getHibpBreach", value: function getHibpBreach(username) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee104() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee104() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee104$(_context104) { - while (1) switch (_context104.prev = _context104.next) { - case 0: - _context104.next = 2; - return this.send('GET', '/hibp/breach?username=' + username, null, true, true); - case 2: - r = _context104.sent; - return _context104.abrupt("return", r.map(function (a) { - return new _models_response_breachAccountResponse__WEBPACK_IMPORTED_MODULE_6__["BreachAccountResponse"](a); - })); - case 4: - case "end": - return _context104.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee104$(_context104) { + while (1) { + switch (_context104.prev = _context104.next) { + case 0: + _context104.next = 2; + return this.send('GET', '/hibp/breach?username=' + username, null, true, true); + + case 2: + r = _context104.sent; + return _context104.abrupt("return", r.map(function (a) { + return new _models_response_breachAccountResponse__WEBPACK_IMPORTED_MODULE_6__["BreachAccountResponse"](a); + })); + + case 4: + case "end": + return _context104.stop(); + } } }, _callee104, this); })); - } - // Misc + } // Misc + }, { key: "postBitPayInvoice", value: function postBitPayInvoice(request) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee105() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee105() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee105$(_context105) { - while (1) switch (_context105.prev = _context105.next) { - case 0: - _context105.next = 2; - return this.send('POST', '/bitpay-invoice', request, true, true); - case 2: - r = _context105.sent; - return _context105.abrupt("return", r); - case 4: - case "end": - return _context105.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee105$(_context105) { + while (1) { + switch (_context105.prev = _context105.next) { + case 0: + _context105.next = 2; + return this.send('POST', '/bitpay-invoice', request, true, true); + + case 2: + r = _context105.sent; + return _context105.abrupt("return", r); + + case 4: + case "end": + return _context105.stop(); + } } }, _callee105, this); })); @@ -56488,50 +56677,62 @@ var ApiService = /*#__PURE__*/function () { }, { key: "postSetupPayment", value: function postSetupPayment() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee106() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee106() { var r; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee106$(_context106) { - while (1) switch (_context106.prev = _context106.next) { - case 0: - _context106.next = 2; - return this.send('POST', '/setup-payment', null, true, true); - case 2: - r = _context106.sent; - return _context106.abrupt("return", r); - case 4: - case "end": - return _context106.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee106$(_context106) { + while (1) { + switch (_context106.prev = _context106.next) { + case 0: + _context106.next = 2; + return this.send('POST', '/setup-payment', null, true, true); + + case 2: + r = _context106.sent; + return _context106.abrupt("return", r); + + case 4: + case "end": + return _context106.stop(); + } } }, _callee106, this); })); - } - // Helpers + } // Helpers + }, { key: "getActiveBearerToken", value: function getActiveBearerToken() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee107() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee107() { var accessToken, tokenResponse; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee107$(_context107) { - while (1) switch (_context107.prev = _context107.next) { - case 0: - _context107.next = 2; - return this.tokenService.getToken(); - case 2: - accessToken = _context107.sent; - if (!this.tokenService.tokenNeedsRefresh()) { - _context107.next = 8; - break; - } - _context107.next = 6; - return this.doRefreshToken(); - case 6: - tokenResponse = _context107.sent; - accessToken = tokenResponse.accessToken; - case 8: - return _context107.abrupt("return", accessToken); - case 9: - case "end": - return _context107.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee107$(_context107) { + while (1) { + switch (_context107.prev = _context107.next) { + case 0: + _context107.next = 2; + return this.tokenService.getToken(); + + case 2: + accessToken = _context107.sent; + + if (!this.tokenService.tokenNeedsRefresh()) { + _context107.next = 8; + break; + } + + _context107.next = 6; + return this.doRefreshToken(); + + case 6: + tokenResponse = _context107.sent; + accessToken = tokenResponse.accessToken; + + case 8: + return _context107.abrupt("return", accessToken); + + case 9: + case "end": + return _context107.stop(); + } } }, _callee107, this); })); @@ -56543,6 +56744,7 @@ var ApiService = /*#__PURE__*/function () { request.headers.set('Cache-Control', 'no-store'); request.headers.set('Pragma', 'no-cache'); } + return this.nativeFetch(request); } }, { @@ -56553,48 +56755,60 @@ var ApiService = /*#__PURE__*/function () { }, { key: "preValidateSso", value: function preValidateSso(identifier) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee108() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee108() { var headers, path, response, error; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee108$(_context108) { - while (1) switch (_context108.prev = _context108.next) { - case 0: - if (!(identifier == null || identifier === '')) { - _context108.next = 2; - break; - } - throw new Error('Organization Identifier was not provided.'); - case 2: - headers = new Headers({ - 'Accept': 'application/json', - 'Device-Type': this.deviceType - }); - if (this.customUserAgent != null) { - headers.set('User-Agent', this.customUserAgent); - } - path = "/account/prevalidate?domainHint=".concat(encodeURIComponent(identifier)); - _context108.next = 7; - return this.fetch(new Request(this.identityBaseUrl + path, { - cache: 'no-store', - credentials: this.getCredentials(), - headers: headers, - method: 'GET' - })); - case 7: - response = _context108.sent; - if (!(response.status === 200)) { - _context108.next = 12; - break; - } - return _context108.abrupt("return", true); - case 12: - _context108.next = 14; - return this.handleError(response, false, true); - case 14: - error = _context108.sent; - return _context108.abrupt("return", Promise.reject(error)); - case 16: - case "end": - return _context108.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee108$(_context108) { + while (1) { + switch (_context108.prev = _context108.next) { + case 0: + if (!(identifier == null || identifier === '')) { + _context108.next = 2; + break; + } + + throw new Error('Organization Identifier was not provided.'); + + case 2: + headers = new Headers({ + 'Accept': 'application/json', + 'Device-Type': this.deviceType + }); + + if (this.customUserAgent != null) { + headers.set('User-Agent', this.customUserAgent); + } + + path = "/account/prevalidate?domainHint=".concat(encodeURIComponent(identifier)); + _context108.next = 7; + return this.fetch(new Request(this.identityBaseUrl + path, { + cache: 'no-store', + credentials: this.getCredentials(), + headers: headers, + method: 'GET' + })); + + case 7: + response = _context108.sent; + + if (!(response.status === 200)) { + _context108.next = 12; + break; + } + + return _context108.abrupt("return", true); + + case 12: + _context108.next = 14; + return this.handleError(response, false, true); + + case 14: + error = _context108.sent; + return _context108.abrupt("return", Promise.reject(error)); + + case 16: + case "end": + return _context108.stop(); + } } }, _callee108, this); })); @@ -56602,75 +56816,93 @@ var ApiService = /*#__PURE__*/function () { }, { key: "send", value: function send(method, path, body, authed, hasResponse) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee109() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee109() { var headers, requestInit, authHeader, response, responseJson, error; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee109$(_context109) { - while (1) switch (_context109.prev = _context109.next) { - case 0: - headers = new Headers({ - 'Device-Type': this.deviceType - }); - if (this.customUserAgent != null) { - headers.set('User-Agent', this.customUserAgent); - } - requestInit = { - cache: 'no-store', - credentials: this.getCredentials(), - method: method - }; - if (!authed) { - _context109.next = 8; - break; - } - _context109.next = 6; - return this.getActiveBearerToken(); - case 6: - authHeader = _context109.sent; - headers.set('Authorization', 'Bearer ' + authHeader); - case 8: - if (body != null) { - if (typeof body === 'string') { - requestInit.body = body; - headers.set('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8'); - } else if (typeof body === 'object') { - if (body instanceof FormData) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee109$(_context109) { + while (1) { + switch (_context109.prev = _context109.next) { + case 0: + headers = new Headers({ + 'Device-Type': this.deviceType + }); + + if (this.customUserAgent != null) { + headers.set('User-Agent', this.customUserAgent); + } + + requestInit = { + cache: 'no-store', + credentials: this.getCredentials(), + method: method + }; + + if (!authed) { + _context109.next = 8; + break; + } + + _context109.next = 6; + return this.getActiveBearerToken(); + + case 6: + authHeader = _context109.sent; + headers.set('Authorization', 'Bearer ' + authHeader); + + case 8: + if (body != null) { + if (typeof body === 'string') { requestInit.body = body; - } else { - headers.set('Content-Type', 'application/json; charset=utf-8'); - requestInit.body = JSON.stringify(body); + headers.set('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8'); + } else if (typeof body === 'object') { + if (body instanceof FormData) { + requestInit.body = body; + } else { + headers.set('Content-Type', 'application/json; charset=utf-8'); + requestInit.body = JSON.stringify(body); + } } } - } - if (hasResponse) { - headers.set('Accept', 'application/json'); - } - requestInit.headers = headers; - _context109.next = 13; - return this.fetch(new Request(this.apiBaseUrl + path, requestInit)); - case 13: - response = _context109.sent; - if (!(hasResponse && response.status === 200)) { - _context109.next = 21; - break; - } - _context109.next = 17; - return response.json(); - case 17: - responseJson = _context109.sent; - return _context109.abrupt("return", responseJson); - case 21: - if (!(response.status !== 200)) { - _context109.next = 26; - break; - } - _context109.next = 24; - return this.handleError(response, false, authed); - case 24: - error = _context109.sent; - return _context109.abrupt("return", Promise.reject(error)); - case 26: - case "end": - return _context109.stop(); + + if (hasResponse) { + headers.set('Accept', 'application/json'); + } + + requestInit.headers = headers; + _context109.next = 13; + return this.fetch(new Request(this.apiBaseUrl + path, requestInit)); + + case 13: + response = _context109.sent; + + if (!(hasResponse && response.status === 200)) { + _context109.next = 21; + break; + } + + _context109.next = 17; + return response.json(); + + case 17: + responseJson = _context109.sent; + return _context109.abrupt("return", responseJson); + + case 21: + if (!(response.status !== 200)) { + _context109.next = 26; + break; + } + + _context109.next = 24; + return this.handleError(response, false, authed); + + case 24: + error = _context109.sent; + return _context109.abrupt("return", Promise.reject(error)); + + case 26: + case "end": + return _context109.stop(); + } } }, _callee109, this); })); @@ -56678,34 +56910,44 @@ var ApiService = /*#__PURE__*/function () { }, { key: "handleError", value: function handleError(response, tokenError, authed) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee110() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee110() { var responseJson; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee110$(_context110) { - while (1) switch (_context110.prev = _context110.next) { - case 0: - if (!(authed && (tokenError && response.status === 400 || response.status === 401 || response.status === 403))) { - _context110.next = 4; - break; - } - _context110.next = 3; - return this.logoutCallback(true); - case 3: - return _context110.abrupt("return", null); - case 4: - responseJson = null; - if (!this.isJsonResponse(response)) { - _context110.next = 9; - break; - } - _context110.next = 8; - return response.json(); - case 8: - responseJson = _context110.sent; - case 9: - return _context110.abrupt("return", new _models_response_errorResponse__WEBPACK_IMPORTED_MODULE_10__["ErrorResponse"](responseJson, response.status, tokenError)); - case 10: - case "end": - return _context110.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee110$(_context110) { + while (1) { + switch (_context110.prev = _context110.next) { + case 0: + if (!(authed && (tokenError && response.status === 400 || response.status === 401 || response.status === 403))) { + _context110.next = 4; + break; + } + + _context110.next = 3; + return this.logoutCallback(true); + + case 3: + return _context110.abrupt("return", null); + + case 4: + responseJson = null; + + if (!this.isJsonResponse(response)) { + _context110.next = 9; + break; + } + + _context110.next = 8; + return response.json(); + + case 8: + responseJson = _context110.sent; + + case 9: + return _context110.abrupt("return", new _models_response_errorResponse__WEBPACK_IMPORTED_MODULE_10__["ErrorResponse"](responseJson, response.status, tokenError)); + + case 10: + case "end": + return _context110.stop(); + } } }, _callee110, this); })); @@ -56713,66 +56955,82 @@ var ApiService = /*#__PURE__*/function () { }, { key: "doRefreshToken", value: function doRefreshToken() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee111() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee111() { var refreshToken, headers, decodedToken, response, responseJson, tokenResponse, error; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee111$(_context111) { - while (1) switch (_context111.prev = _context111.next) { - case 0: - _context111.next = 2; - return this.tokenService.getRefreshToken(); - case 2: - refreshToken = _context111.sent; - if (!(refreshToken == null || refreshToken === '')) { - _context111.next = 5; - break; - } - throw new Error(); - case 5: - headers = new Headers({ - 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', - 'Accept': 'application/json', - 'Device-Type': this.deviceType - }); - if (this.customUserAgent != null) { - headers.set('User-Agent', this.customUserAgent); - } - decodedToken = this.tokenService.decodeToken(); - _context111.next = 10; - return this.fetch(new Request(this.identityBaseUrl + '/connect/token', { - body: this.qsStringify({ - grant_type: 'refresh_token', - client_id: decodedToken.client_id, - refresh_token: refreshToken - }), - cache: 'no-store', - credentials: this.getCredentials(), - headers: headers, - method: 'POST' - })); - case 10: - response = _context111.sent; - if (!(response.status === 200)) { - _context111.next = 21; - break; - } - _context111.next = 14; - return response.json(); - case 14: - responseJson = _context111.sent; - tokenResponse = new _models_response_identityTokenResponse__WEBPACK_IMPORTED_MODULE_14__["IdentityTokenResponse"](responseJson); - _context111.next = 18; - return this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken); - case 18: - return _context111.abrupt("return", tokenResponse); - case 21: - _context111.next = 23; - return this.handleError(response, true, true); - case 23: - error = _context111.sent; - return _context111.abrupt("return", Promise.reject(error)); - case 25: - case "end": - return _context111.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee111$(_context111) { + while (1) { + switch (_context111.prev = _context111.next) { + case 0: + _context111.next = 2; + return this.tokenService.getRefreshToken(); + + case 2: + refreshToken = _context111.sent; + + if (!(refreshToken == null || refreshToken === '')) { + _context111.next = 5; + break; + } + + throw new Error(); + + case 5: + headers = new Headers({ + 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', + 'Accept': 'application/json', + 'Device-Type': this.deviceType + }); + + if (this.customUserAgent != null) { + headers.set('User-Agent', this.customUserAgent); + } + + decodedToken = this.tokenService.decodeToken(); + _context111.next = 10; + return this.fetch(new Request(this.identityBaseUrl + '/connect/token', { + body: this.qsStringify({ + grant_type: 'refresh_token', + client_id: decodedToken.client_id, + refresh_token: refreshToken + }), + cache: 'no-store', + credentials: this.getCredentials(), + headers: headers, + method: 'POST' + })); + + case 10: + response = _context111.sent; + + if (!(response.status === 200)) { + _context111.next = 21; + break; + } + + _context111.next = 14; + return response.json(); + + case 14: + responseJson = _context111.sent; + tokenResponse = new _models_response_identityTokenResponse__WEBPACK_IMPORTED_MODULE_14__["IdentityTokenResponse"](responseJson); + _context111.next = 18; + return this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken); + + case 18: + return _context111.abrupt("return", tokenResponse); + + case 21: + _context111.next = 23; + return this.handleError(response, true, true); + + case 23: + error = _context111.sent; + return _context111.abrupt("return", Promise.reject(error)); + + case 25: + case "end": + return _context111.stop(); + } } }, _callee111, this); })); @@ -56790,6 +57048,7 @@ var ApiService = /*#__PURE__*/function () { if (this.device !== _enums_deviceType__WEBPACK_IMPORTED_MODULE_3__["DeviceType"].SafariExtension && (!this.isWebClient || this.usingBaseUrl)) { return 'include'; } + return undefined; } }, { @@ -56798,14 +57057,17 @@ var ApiService = /*#__PURE__*/function () { if (start != null) { base += '?start=' + start; } + if (end != null) { base += base.indexOf('?') > -1 ? '&' : '?'; base += 'end=' + end; } + if (token != null) { base += base.indexOf('?') > -1 ? '&' : '?'; base += 'continuationToken=' + token; } + return base; } }, { @@ -56815,6 +57077,7 @@ var ApiService = /*#__PURE__*/function () { return typeHeader != null && typeHeader.indexOf('application/json') > -1; } }]); + return ApiService; }(); @@ -61781,14 +62044,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _data_loginUriData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("dsMk"); /* harmony import */ var _view_loginUriView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("f2DX"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("L7vP"); @@ -61798,28 +62061,34 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var LoginUri = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(LoginUri, _Domain); - var _super = _createSuper(LoginUri); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(LoginUri, _Domain); + function LoginUri(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginUri); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(LoginUri).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } + _this.match = obj.match; - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { uri: null }, alreadyEncrypted, []); + return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LoginUri, [{ key: "decrypt", value: function decrypt(orgId) { @@ -61837,6 +62106,7 @@ var LoginUri = /*#__PURE__*/function (_Domain) { return u; } }]); + return LoginUri; }(_domainBase__WEBPACK_IMPORTED_MODULE_8__["default"]); @@ -63931,6 +64201,23 @@ var teal = { /***/ }), +/***/ "7lvu": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__("jm00"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _Button = _interopRequireDefault(__webpack_require__("78Gr")); +var _default = _Button.default; +exports.default = _default; + +/***/ }), + /***/ "7mpy": /***/ (function(module, exports, __webpack_require__) { @@ -64811,20 +65098,19 @@ module.exports = buildDistanceInWordsLocale "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendTextData", function() { return SendTextData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var SendTextData = function SendTextData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendTextData); -var SendTextData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function SendTextData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendTextData); if (data == null) { return; } + this.text = data.text; this.hidden = data.hidden; -}); +}; /***/ }), @@ -64999,10 +65285,193 @@ var _interopRequireDefault = __webpack_require__("jm00"); Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -var _Button = _interopRequireDefault(__webpack_require__("78Gr")); -var _default = _Button.default; +exports.default = exports.ButtonLink = exports.Button = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); +var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); +var _react = _interopRequireDefault(__webpack_require__("ivGQ")); +var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); +var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); +var _Icon = _interopRequireWildcard(__webpack_require__("AHiN")); +var _Spinner = _interopRequireDefault(__webpack_require__("ImID")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +var _excluded = ["busy", "disabled"], + _excluded2 = ["children", "icon", "iconOnly", "label", "subtle", "className", "extension", "round", "size", "theme", "align", "extraRight", "tag"]; +var styles = { + "c-btn": "styles__c-btn___-2Vnj", + "c-btn--regular": "styles__c-btn--regular___2HUly", + "c-btn--ghost": "styles__c-btn--ghost___1HC3L", + "c-btn--highlight": "styles__c-btn--highlight___2jRfu", + "c-btn--alpha": "styles__c-btn--alpha___2ECZi", + "c-btn--action": "styles__c-btn--action___36KFm", + "c-btn--close": "styles__c-btn--close___3f0AP", + "c-btn--danger": "styles__c-btn--danger___17T_C", + "c-btn--secondary": "styles__c-btn--secondary___3Br_N", + "c-btn--danger-outline": "styles__c-btn--danger-outline___1mO1B", + "c-btn--text": "styles__c-btn--text___2Vp-2", + "c-btn--left": "styles__c-btn--left___23VNa", + "c-btn--center": "styles__c-btn--center___16_Xh", + "c-btn--right": "styles__c-btn--right___wklLq", + "c-btn--tiny": "styles__c-btn--tiny___1pFv6", + "c-btn--small": "styles__c-btn--small___3ArkI", + "c-btn--large": "styles__c-btn--large___2gatN", + "c-btn--full": "styles__c-btn--full___2VmR1", + "c-btn--narrow": "styles__c-btn--narrow___27FHD", + "c-btn--round": "styles__c-btn--round___1Lkyl", + "c-btn--subtle": "styles__c-btn--subtle___OknKf", + "spin": "styles__spin___alZ_V", + "shake": "styles__shake___2NWWT" +}; +var btnClass = function btnClass(options) { + var _cx; + var className = options.className, + extension = options.extension, + size = options.size, + theme = options.theme, + variant = options.variant, + round = options.round, + align = options.align; + return (0, _classnames.default)(styles['c-btn'], (_cx = {}, (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(theme)], theme), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(size)], size !== 'normal'), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(variant)], variant), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(extension)], extension), (0, _defineProperty2.default)(_cx, styles["c-btn--".concat(align)], align), (0, _defineProperty2.default)(_cx, styles["c-btn--round"], round), _cx), className); +}; +var transformToAria = function transformToAria(tag) { + return function (props) { + var busy = props.busy, + disabled = props.disabled, + newProps = (0, _objectWithoutProperties2.default)(props, _excluded); + if (busy) { + newProps['aria-busy'] = true; + } + if (disabled) { + newProps['aria-disabled'] = true; + } + if (tag === 'button' && disabled) { + newProps['disabled'] = true; + } + return newProps; + }; +}; +var tagToTransformProps = { + button: transformToAria('button'), + a: transformToAria('a') +}; +var identity = function identity(x) { + return x; +}; +var sizeToIconSize = { + tiny: 8, + small: 12, + large: 18 +}; +var BaseButton = function BaseButton(props) { + var children = props.children, + icon = props.icon, + iconOnly = props.iconOnly, + label = props.label, + subtle = props.subtle, + className = props.className, + extension = props.extension, + round = props.round, + size = props.size, + theme = props.theme, + align = props.align, + extraRight = props.extraRight, + Tag = props.tag, + restProps = (0, _objectWithoutProperties2.default)(props, _excluded2); + var transformProps = tagToTransformProps[Tag] || identity; + var tooltip = iconOnly ? label : null; + var iconOnlyClass = iconOnly ? 'u-visuallyhidden' : null; + return /*#__PURE__*/_react.default.createElement(Tag, (0, _extends2.default)({}, transformProps(restProps), { + className: btnClass({ + extension: extension, + align: align, + round: round, + size: size, + theme: theme, + className: className, + variant: subtle && 'subtle' + }), + title: tooltip + }), /*#__PURE__*/_react.default.createElement("span", null, _Icon.default.isProperIcon(icon) ? /*#__PURE__*/_react.default.createElement(_Icon.default, { + size: sizeToIconSize[size], + icon: icon, + "aria-hidden": true, + focusable: "false" + }) : icon, label && /*#__PURE__*/_react.default.createElement("span", { + className: iconOnlyClass + }, label), children, extraRight && /*#__PURE__*/_react.default.createElement("span", { + className: "u-ml-auto" + }, extraRight), restProps.busy && /*#__PURE__*/_react.default.createElement(_Icon.default, { + size: sizeToIconSize[size], + icon: _Spinner.default, + spin: true, + className: "u-ml-half", + "aria-hidden": true, + focusable: "false" + }))); +}; +var Button = function Button(props) { + return /*#__PURE__*/_react.default.createElement(BaseButton, props); +}; +exports.Button = Button; +var ButtonLink = function ButtonLink(props) { + return /*#__PURE__*/_react.default.createElement(BaseButton, props); +}; +exports.ButtonLink = ButtonLink; +var DefaultButton = function DefaultButton(props) { + if (!props.tag) { + return /*#__PURE__*/_react.default.createElement(Button, props); + } else { + return /*#__PURE__*/_react.default.createElement(BaseButton, props); + } +}; +var _default = DefaultButton; // Proptypes (unfortunately, Styleguidist does not pick +// proptypes coming from a spread so we have to keep both +// proptypes in sync) exports.default = _default; +Button.propTypes = { + /** DEPRECATED: please use label and icon */ + children: _propTypes.default.node, + /** Label of the button */ + label: _propTypes.default.node.isRequired, + /** Icon of the button */ + icon: _propTypes.default.oneOfType([_propTypes.default.node, _Icon.iconPropType]), + /** Displays only the icon, not the label */ + iconOnly: _propTypes.default.bool, + theme: _propTypes.default.string, + size: _propTypes.default.oneOf(['tiny', 'small', 'large', 'normal']), + /** Spacing of the button */ + extension: _propTypes.default.oneOf(['narrow', 'full']), + /** Button's label alignment */ + align: _propTypes.default.oneOf(['left', 'right', 'center']), + /** Will make the button round */ + round: _propTypes.default.bool, + /** Extra class */ + className: _propTypes.default.string, + /** What to do on click */ + onClick: _propTypes.default.func, + /** Adds an element to the right of the button */ + extraRight: _propTypes.default.PropTypes.node, + // Only for Button + + /** Will display a spinner if true */ + busy: _propTypes.default.bool, + /** Disables the button */ + disabled: _propTypes.default.bool, + /** Type of the underlying `<button />` */ + type: _propTypes.default.oneOf(['button', 'reset', 'submit']), + /** Use the `subtle` alternative look for the Button */ + subtle: _propTypes.default.bool +}; +Button.defaultProps = { + type: 'submit', + tag: 'button', + size: 'normal', + align: 'center' +}; +ButtonLink.defaultProps = { + tag: 'a' +}; /***/ }), @@ -65830,10 +66299,13 @@ __webpack_require__.r(__webpack_exports__); var Login = /*#__PURE__*/function () { function Login(o) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Login); + var _a, _b, _c; + if (o == null) { return; } + if (o.uris != null) { if (o instanceof _view_loginView__WEBPACK_IMPORTED_MODULE_3__["LoginView"]) { this.uris = o.uris.map(function (u) { @@ -65845,6 +66317,7 @@ var Login = /*#__PURE__*/function () { }); } } + if (o instanceof _view_loginView__WEBPACK_IMPORTED_MODULE_3__["LoginView"]) { this.username = o.username; this.password = o.password; @@ -65855,6 +66328,7 @@ var Login = /*#__PURE__*/function () { this.totp = (_c = o.totp) === null || _c === void 0 ? void 0 : _c.encryptedString; } } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Login, null, [{ key: "template", value: function template() { @@ -65869,17 +66343,20 @@ var Login = /*#__PURE__*/function () { key: "toView", value: function toView(req) { var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new _view_loginView__WEBPACK_IMPORTED_MODULE_3__["LoginView"](); + if (req.uris != null) { view.uris = req.uris.map(function (u) { return _loginUri__WEBPACK_IMPORTED_MODULE_2__["LoginUri"].toView(u); }); } + view.username = req.username; view.password = req.password; view.totp = req.totp; return view; } }]); + return Login; }(); @@ -65891,37 +66368,35 @@ var Login = /*#__PURE__*/function () { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApiKeyResponse", function() { return ApiKeyResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var ApiKeyResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ApiKeyResponse, _BaseResponse); - var _super = _createSuper(ApiKeyResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ApiKeyResponse, _BaseResponse); + function ApiKeyResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ApiKeyResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ApiKeyResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(ApiKeyResponse).call(this, response)); _this.apiKey = _this.getResponseProperty('ApiKey'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ApiKeyResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return ApiKeyResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -66531,12 +67006,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -66551,8 +67026,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -66563,35 +67036,46 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OnePassword1PifImporter, _BaseImporter); - var _super = _createSuper(OnePassword1PifImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(OnePassword1PifImporter, _BaseImporter); + function OnePassword1PifImporter() { var _this; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OnePassword1PifImporter); - _this = _super.apply(this, arguments); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(OnePassword1PifImporter).apply(this, arguments)); _this.result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(OnePassword1PifImporter, [{ key: "parse", value: function parse(data) { var _this2 = this; + data.split(this.newLineRegex).forEach(function (line) { if (_this2.isNullOrWhitespace(line) || line[0] !== '{') { return; } + var item = JSON.parse(line); + if (item.trashed === true) { return; } + var cipher = _this2.initLoginCipher(); + if (_this2.isNullOrWhitespace(item.hmac)) { _this2.processStandardItem(item, cipher); } else { _this2.processWinOpVaultItem(item, cipher); } + _this2.convertToNoteIfNeeded(cipher); + _this2.cleanupCipher(cipher); + _this2.result.ciphers.push(cipher); }); this.result.success = true; @@ -66601,8 +67085,10 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { key: "processWinOpVaultItem", value: function processWinOpVaultItem(item, cipher) { var _this3 = this; + if (item.overview != null) { cipher.name = this.getValueOrDefault(item.overview.title); + if (item.overview.URLs != null) { var urls = []; item.overview.URLs.forEach(function (url) { @@ -66613,10 +67099,12 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { cipher.login.uris = this.makeUriArray(urls); } } + if (item.details != null) { if (item.details.passwordHistory != null) { this.parsePasswordHistory(item.details.passwordHistory, cipher); } + if (!this.isNullOrWhitespace(item.details.ccnum) || !this.isNullOrWhitespace(item.details.cvv)) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Card; cipher.card = new _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__["CardView"](); @@ -66624,15 +67112,19 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Identity; cipher.identity = new _models_view_identityView__WEBPACK_IMPORTED_MODULE_8__["IdentityView"](); } + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Login && !this.isNullOrWhitespace(item.details.password)) { cipher.login.password = item.details.password; } + if (!this.isNullOrWhitespace(item.details.notesPlain)) { cipher.notes = item.details.notesPlain.split(this.newLineRegex).join('\n') + '\n'; } + if (item.details.fields != null) { this.parseFields(item.details.fields, cipher, 'designation', 'value', 'name'); } + if (item.details.sections != null) { item.details.sections.forEach(function (section) { if (section.fields != null) { @@ -66646,8 +67138,10 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { key: "processStandardItem", value: function processStandardItem(item, cipher) { var _this4 = this; + cipher.favorite = item.openContents && item.openContents.faveIndex ? true : false; cipher.name = this.getValueOrDefault(item.title); + if (item.typeName === 'securenotes.SecureNote') { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].SecureNote; cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_10__["SecureNoteView"](); @@ -66661,17 +67155,21 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { } else { cipher.login.uris = this.makeUriArray(item.location); } + if (item.secureContents != null) { if (item.secureContents.passwordHistory != null) { this.parsePasswordHistory(item.secureContents.passwordHistory, cipher); } + if (!this.isNullOrWhitespace(item.secureContents.notesPlain)) { cipher.notes = item.secureContents.notesPlain.split(this.newLineRegex).join('\n') + '\n'; } + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Login) { if (!this.isNullOrWhitespace(item.secureContents.password)) { cipher.login.password = item.secureContents.password; } + if (item.secureContents.URLs != null) { var urls = []; item.secureContents.URLs.forEach(function (u) { @@ -66679,14 +67177,17 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { urls.push(u.url); } }); + if (urls.length > 0) { cipher.login.uris = this.makeUriArray(urls); } } } + if (item.secureContents.fields != null) { this.parseFields(item.secureContents.fields, cipher, 'designation', 'value', 'name'); } + if (item.secureContents.sections != null) { item.secureContents.sections.forEach(function (section) { if (section.fields != null) { @@ -66700,6 +67201,7 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { key: "parsePasswordHistory", value: function parsePasswordHistory(items, cipher) { var _this5 = this; + var maxSize = items.length > 5 ? 5 : items.length; cipher.passwordHistory = items.filter(function (h) { return !_this5.isNullOrWhitespace(h.value) && h.time != null; @@ -66716,12 +67218,15 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { key: "parseFields", value: function parseFields(fields, cipher, designationKey, valueKey, nameKey) { var _this6 = this; + fields.forEach(function (field) { if (field[valueKey] == null || field[valueKey].toString().trim() === '') { return; } + var fieldValue = field[valueKey].toString(); var fieldDesignation = field[designationKey] != null ? field[designationKey].toString() : null; + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Login) { if (_this6.isNullOrWhitespace(cipher.login.username) && fieldDesignation === 'username') { cipher.login.username = fieldValue; @@ -66746,9 +67251,11 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { return; } else if (_this6.isNullOrWhitespace(cipher.card.expiration) && fieldDesignation === 'expiry' && fieldValue.length === 6) { cipher.card.expMonth = fieldValue.substr(4, 2); + if (cipher.card.expMonth[0] === '0') { cipher.card.expMonth = cipher.card.expMonth.substr(1, 1); } + cipher.card.expYear = fieldValue.substr(0, 4); return; } else if (fieldDesignation === 'type') { @@ -66757,6 +67264,7 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { } } else if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Identity) { var identity = cipher.identity; + if (_this6.isNullOrWhitespace(identity.firstName) && fieldDesignation === 'firstname') { identity.firstName = fieldValue; return; @@ -66781,30 +67289,37 @@ var OnePassword1PifImporter = /*#__PURE__*/function (_BaseImporter) { } else if (fieldDesignation === 'address') { // fieldValue is an object casted into a string, so access the plain value instead var _field$valueKey = field[valueKey], - street = _field$valueKey.street, - city = _field$valueKey.city, - country = _field$valueKey.country, - zip = _field$valueKey.zip; + street = _field$valueKey.street, + city = _field$valueKey.city, + country = _field$valueKey.country, + zip = _field$valueKey.zip; identity.address1 = _this6.getValueOrDefault(street); identity.city = _this6.getValueOrDefault(city); + if (!_this6.isNullOrWhitespace(country)) { identity.country = country.toUpperCase(); } + identity.postalCode = _this6.getValueOrDefault(zip); return; } } + var fieldName = _this6.isNullOrWhitespace(field[nameKey]) ? 'no_name' : field[nameKey]; + if (fieldName === 'password' && cipher.passwordHistory != null && cipher.passwordHistory.some(function (h) { return h.password === fieldValue; })) { return; } + var fieldType = field.k === 'concealed' ? _enums_fieldType__WEBPACK_IMPORTED_MODULE_12__["FieldType"].Hidden : _enums_fieldType__WEBPACK_IMPORTED_MODULE_12__["FieldType"].Text; + _this6.processKvp(cipher, fieldName, fieldValue, fieldType); }); } }]); + return OnePassword1PifImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -69714,18 +70229,21 @@ var Collection = /*#__PURE__*/function () { function Collection() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Collection); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Collection, [{ key: "build", - value: // Use build method instead of ctor so that we can control order of JSON stringify for pretty print - function build(o) { + value: function build(o) { var _a; + this.organizationId = o.organizationId; + if (o instanceof _view_collectionView__WEBPACK_IMPORTED_MODULE_2__["CollectionView"]) { this.name = o.name; } else { this.name = (_a = o.name) === null || _a === void 0 ? void 0 : _a.encryptedString; } + this.externalId = o.externalId; } }], [{ @@ -69743,12 +70261,15 @@ var Collection = /*#__PURE__*/function () { var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new _view_collectionView__WEBPACK_IMPORTED_MODULE_2__["CollectionView"](); view.name = req.name; view.externalId = req.externalId; + if (view.organizationId == null) { view.organizationId = req.organizationId; } + return view; } }]); + return Collection; }(); @@ -71279,6 +71800,7 @@ var tan30 = Math.sqrt(1 / 3), __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecureNoteType", function() { return SecureNoteType; }); var SecureNoteType; + (function (SecureNoteType) { SecureNoteType[SecureNoteType["Generic"] = 0] = "Generic"; })(SecureNoteType || (SecureNoteType = {})); @@ -72517,70 +73039,6 @@ function listCacheDelete(key) { module.exports = listCacheDelete; -/***/ }), - -/***/ "9DSx": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.locales = exports.default = void 0; -var _withOnlyLocales = _interopRequireDefault(__webpack_require__("Cxz7")); -var en = { - "install-flagship-app-dialog": { - title: "Scan the QR Code", - text: "or go directly to the <img src=%{iosIconSrc} /> <a href='%{iosUrl}' class='u-link' target='_blank' rel='noopener'>App Store</a><br>or <img src=%{androidIconSrc} /> <a href='%{androidUrl}' class='u-link' target='_blank' rel='noopener'>Play Store</a> to install the Cozy Cloud app", - a11n: "Go to the Cozy Cloud application download page" - }, - "authentification-dialog": { - title: "Login", - "title-oidc": "Cozy Pass", - subtitle: "For security, please confirm your identity", - label: "Cozy password", - "label-oidc": "Cozy Pass password", - abort: "Leave", - unlock: "Unlock", - "forgotten-password": "I forgot my password", - errors: { - invalid_password: "Incorrect password, try again.", - server_error: "Something went wrong with the server. Please, reload the page." - } - } -}; -var fr = { - "install-flagship-app-dialog": { - title: "Scannez le QR Code", - text: "ou rendez vous directement sur <img src=%{iosIconSrc} /> <a href='%{iosUrl}' class='u-link' target='_blank' rel='noopener'>l\u2019App Store</a><br>ou sur le <img src=%{androidIconSrc} /> <a href='%{androidUrl}' class='u-link' target='_blank' rel='noopener'>Play Store</a> pour installer l\u2019app Cloud Personnel Cozy", - a11n: "Aller sur la page de t\xE9l\xE9chargement de l'application Cloud Personnel Cozy" - }, - "authentification-dialog": { - title: "Authentification", - "title-oidc": "Cozy Pass", - subtitle: "Par s\xE9curit\xE9, merci de confirmer votre identit\xE9", - label: "Mot de passe Cozy", - "label-oidc": "Mot de passe Cozy Pass", - abort: "Quitter", - unlock: "D\xE9verrouiller", - "forgotten-password": "J'ai oubli\xE9 mon mot de passe", - errors: { - invalid_password: "Mot de passe incorrect, essayer \xE0 nouveau.", - server_error: "Une erreur s'est produite. Merci de recharger la page." - } - } -}; -var locales = { - en: en, - fr: fr -}; -exports.locales = locales; -var _default = (0, _withOnlyLocales.default)(locales); -exports.default = _default; - /***/ }), /***/ "9DWD": @@ -72711,6 +73169,7 @@ module.exports = difference; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FieldType", function() { return FieldType; }); var FieldType; + (function (FieldType) { FieldType[FieldType["Text"] = 0] = "Text"; FieldType[FieldType["Hidden"] = 1] = "Hidden"; @@ -72838,19 +73297,17 @@ module.exports = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeviceRequest", function() { return DeviceRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var DeviceRequest = function DeviceRequest(appId, platformUtilsService) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DeviceRequest); -var DeviceRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function DeviceRequest(appId, platformUtilsService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DeviceRequest); this.type = platformUtilsService.getDevice(); this.name = platformUtilsService.getDeviceString(); this.identifier = appId; this.pushToken = null; -}); +}; /***/ }), @@ -73174,145 +73631,6 @@ function eachDay (dirtyStartDate, dirtyEndDate, dirtyStep) { module.exports = eachDay -/***/ }), - -/***/ "9WMr": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _classCallCheck2 = _interopRequireDefault(__webpack_require__("GeFe")); -var _createClass2 = _interopRequireDefault(__webpack_require__("Zvb3")); -var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__("J/YY")); -var _inherits2 = _interopRequireDefault(__webpack_require__("a1Fv")); -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__("g3eI")); -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__("wDGE")); -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); -var _omit = _interopRequireDefault(__webpack_require__("RjO1")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _reactRemoveScroll = __webpack_require__("AetX"); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = (0, _getPrototypeOf2.default)(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return (0, _possibleConstructorReturn2.default)(this, result); - }; -} -function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } -} -var styles = { - "c-overlay": "styles__c-overlay___8W1LN" -}; -var ESC_KEYCODE = 27; -var nonDOMProps = ['onEscape', 'children', 'className', 'innerRef']; -var bodyTallerThanWindow = function bodyTallerThanWindow() { - return document.body.getBoundingClientRect().height > window.innerHeight; -}; -/** - * Display a black overlay on the screen. Stops - * scrolling on the html/body while displayed. - * - * Can react to Escape key - */ - -var Overlay = /*#__PURE__*/function (_Component) { - (0, _inherits2.default)(Overlay, _Component); - var _super = _createSuper(Overlay); - function Overlay() { - var _this; - (0, _classCallCheck2.default)(this, Overlay); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeydown", function (e) { - if (e.keyCode === ESC_KEYCODE) { - _this.props.onEscape(); - } - }); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClick", function (e) { - if (_this.props.onClick && e.target === e.currentTarget) { - _this.props.onClick(); - } - }); - return _this; - } - (0, _createClass2.default)(Overlay, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.onEscape) { - document.addEventListener('keydown', this.handleKeydown); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.props.onEscape) { - document.removeEventListener('keydown', this.handleKeydown); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - className = _this$props.className, - innerRef = _this$props.innerRef; - var domProps = (0, _omit.default)(this.props, nonDOMProps); // We use Overlay when opening an ActionMenu. - // We don't want to block the scroll on Desktop if the ActionMenu - // is displayed. So no RemoveScroll if the content is too small - // @todo Overlay should not RemoveScroll by itself. It should - // be done by lower component (like ActionMenu / Dialog / Modal...) - - var Wrapper = bodyTallerThanWindow() ? _react.default.Fragment : _reactRemoveScroll.RemoveScroll; - return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({ - ref: innerRef, - className: (0, _classnames.default)(styles['c-overlay'], className), - onClick: this.handleClick - }, domProps), /*#__PURE__*/_react.default.createElement(Wrapper, null, children)); - } - }]); - return Overlay; -}(_react.Component); -Overlay.propTypes = { - className: _propTypes.default.string, - children: _propTypes.default.node, - onEscape: _propTypes.default.func -}; -var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) { - return /*#__PURE__*/_react.default.createElement(Overlay, (0, _extends2.default)({ - innerRef: ref - }, props)); -}); -exports.default = _default; - /***/ }), /***/ "9XtH": @@ -74268,6 +74586,145 @@ function controlPoints(x) { }); +/***/ }), + +/***/ "9ilv": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__("jm00"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _classCallCheck2 = _interopRequireDefault(__webpack_require__("GeFe")); +var _createClass2 = _interopRequireDefault(__webpack_require__("Zvb3")); +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__("J/YY")); +var _inherits2 = _interopRequireDefault(__webpack_require__("a1Fv")); +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__("g3eI")); +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__("wDGE")); +var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); +var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); +var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); +var _omit = _interopRequireDefault(__webpack_require__("RjO1")); +var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); +var _reactRemoveScroll = __webpack_require__("AetX"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +function _createSuper(Derived) { + var hasNativeReflectConstruct = _isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = (0, _getPrototypeOf2.default)(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return (0, _possibleConstructorReturn2.default)(this, result); + }; +} +function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } +} +var styles = { + "c-overlay": "styles__c-overlay___31iWd" +}; +var ESC_KEYCODE = 27; +var nonDOMProps = ['onEscape', 'children', 'className', 'innerRef']; +var bodyTallerThanWindow = function bodyTallerThanWindow() { + return document.body.getBoundingClientRect().height > window.innerHeight; +}; +/** + * Display a black overlay on the screen. Stops + * scrolling on the html/body while displayed. + * + * Can react to Escape key + */ + +var Overlay = /*#__PURE__*/function (_Component) { + (0, _inherits2.default)(Overlay, _Component); + var _super = _createSuper(Overlay); + function Overlay() { + var _this; + (0, _classCallCheck2.default)(this, Overlay); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + _this = _super.call.apply(_super, [this].concat(args)); + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeydown", function (e) { + if (e.keyCode === ESC_KEYCODE) { + _this.props.onEscape(); + } + }); + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClick", function (e) { + if (_this.props.onClick && e.target === e.currentTarget) { + _this.props.onClick(); + } + }); + return _this; + } + (0, _createClass2.default)(Overlay, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.onEscape) { + document.addEventListener('keydown', this.handleKeydown); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.props.onEscape) { + document.removeEventListener('keydown', this.handleKeydown); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + className = _this$props.className, + innerRef = _this$props.innerRef; + var domProps = (0, _omit.default)(this.props, nonDOMProps); // We use Overlay when opening an ActionMenu. + // We don't want to block the scroll on Desktop if the ActionMenu + // is displayed. So no RemoveScroll if the content is too small + // @todo Overlay should not RemoveScroll by itself. It should + // be done by lower component (like ActionMenu / Dialog / Modal...) + + var Wrapper = bodyTallerThanWindow() ? _react.default.Fragment : _reactRemoveScroll.RemoveScroll; + return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({ + ref: innerRef, + className: (0, _classnames.default)(styles['c-overlay'], className), + onClick: this.handleClick + }, domProps), /*#__PURE__*/_react.default.createElement(Wrapper, null, children)); + } + }]); + return Overlay; +}(_react.Component); +Overlay.propTypes = { + className: _propTypes.default.string, + children: _propTypes.default.node, + onEscape: _propTypes.default.func +}; +var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) { + return /*#__PURE__*/_react.default.createElement(Overlay, (0, _extends2.default)({ + innerRef: ref + }, props)); +}); +exports.default = _default; + /***/ }), /***/ "9jBN": @@ -77504,20 +77961,18 @@ module.exports = function (NAME, exec) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionData", function() { return CollectionData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CollectionData = function CollectionData(response) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionData); -var CollectionData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CollectionData(response) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionData); this.id = response.id; this.organizationId = response.organizationId; this.name = response.name; this.externalId = response.externalId; this.readOnly = response.readOnly; -}); +}; /***/ }), @@ -83248,25 +83703,25 @@ Path.prototype = path.prototype = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherBulkShareRequest", function() { return CipherBulkShareRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _cipherWithIdRequest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("IqNG"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _cipherWithIdRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("IqNG"); -var CipherBulkShareRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherBulkShareRequest(ciphers, collectionIds) { +var CipherBulkShareRequest = function CipherBulkShareRequest(ciphers, collectionIds) { var _this = this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherBulkShareRequest); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherBulkShareRequest); + if (ciphers != null) { this.ciphers = []; ciphers.forEach(function (c) { - _this.ciphers.push(new _cipherWithIdRequest__WEBPACK_IMPORTED_MODULE_2__["CipherWithIdRequest"](c)); + _this.ciphers.push(new _cipherWithIdRequest__WEBPACK_IMPORTED_MODULE_1__["CipherWithIdRequest"](c)); }); } + this.collectionIds = collectionIds; -}); +}; /***/ }), @@ -84707,38 +85162,36 @@ exports.backends = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordHistoryResponse", function() { return PasswordHistoryResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordHistoryResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordHistoryResponse, _BaseResponse); - var _super = _createSuper(PasswordHistoryResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PasswordHistoryResponse, _BaseResponse); + function PasswordHistoryResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PasswordHistoryResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordHistoryResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(PasswordHistoryResponse).call(this, response)); _this.password = _this.getResponseProperty('Password'); _this.lastUsedDate = _this.getResponseProperty('LastUsedDate'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PasswordHistoryResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return PasswordHistoryResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -93012,20 +93465,20 @@ if (false) {} "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return WebPlatformUtilsService; }); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("6oIW"); var _package_json__WEBPACK_IMPORTED_MODULE_7___namespace = /*#__PURE__*/__webpack_require__.t("6oIW", 1); /* harmony import */ var _stubs_null_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("YS9N"); @@ -93038,8 +93491,7 @@ var _package_json__WEBPACK_IMPORTED_MODULE_7___namespace = /*#__PURE__*/__webpac -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + /* * This file is a modified version of /src/services/webPlatformUtils.service.ts * in https://github.com/bitwarden/web which is licensed with the terms of the @@ -93051,17 +93503,20 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(WebPlatformUtilsService, _StrippedWebPlatformU); - var _super = _createSuper(WebPlatformUtilsService); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(WebPlatformUtilsService, _StrippedWebPlatformU); + function WebPlatformUtilsService(i18nService, messagingService) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, WebPlatformUtilsService); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, WebPlatformUtilsService); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(WebPlatformUtilsService).call(this)); _this.i18nService = i18nService; _this.messagingService = messagingService; return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(WebPlatformUtilsService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(WebPlatformUtilsService, [{ key: "analyticsId", value: function analyticsId() { // eslint-disable-next-line no-console @@ -93097,6 +93552,7 @@ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { var type = null; var fileNameLower = fileName.toLowerCase(); var doDownload = true; + if (fileNameLower.endsWith('.pdf')) { type = 'application/pdf'; doDownload = false; @@ -93115,26 +93571,32 @@ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { } else if (fileNameLower.endsWith('.gif')) { type = 'image/gif'; } + if (type != null) { blobOptions = blobOptions || {}; + if (blobOptions.type == null) { blobOptions.type = type; } } + if (blobOptions != null && !this.isIE()) { blob = new Blob([blobData], blobOptions); } else { blob = new Blob([blobData]); } + if (navigator.msSaveOrOpenBlob) { navigator.msSaveBlob(blob, fileName); } else { var a = win.document.createElement('a'); + if (doDownload) { a.download = fileName; } else { a.target = '_blank'; } + a.href = win.URL.createObjectURL(blob); a.style.position = 'fixed'; win.document.body.appendChild(a); @@ -93153,6 +93615,7 @@ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { if (win != null && win.u2f != null) { return true; } + return this.isChrome() || (this.isOpera() || this.isVivaldi()) && !_bitwarden_jslib_misc_utils__WEBPACK_IMPORTED_MODULE_10__["Utils"].isMobileBrowser; } }, { @@ -93173,93 +93636,116 @@ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { }, { key: "showDialog", value: function () { - var _showDialog = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee(text, title, confirmText, cancelText, type) { + var _showDialog = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(text, title, confirmText, cancelText, type) { var buttons, contentDiv, icon, titleDiv, textDiv, confirmed; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - buttons = [confirmText == null ? this.i18nService.t('ok') : confirmText]; - if (cancelText != null) { - buttons.unshift(cancelText); - } - contentDiv = document.createElement('div'); - if (!(type != null)) { - _context.next = 19; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + buttons = [confirmText == null ? this.i18nService.t('ok') : confirmText]; + + if (cancelText != null) { + buttons.unshift(cancelText); + } + + contentDiv = document.createElement('div'); + + if (!(type != null)) { + _context.next = 19; + break; + } + + icon = document.createElement('i'); + icon.classList.add('swal-custom-icon'); + _context.t0 = type; + _context.next = _context.t0 === 'success' ? 9 : _context.t0 === 'warning' ? 11 : _context.t0 === 'error' ? 13 : _context.t0 === 'info' ? 15 : 17; break; - } - icon = document.createElement('i'); - icon.classList.add('swal-custom-icon'); - _context.t0 = type; - _context.next = _context.t0 === 'success' ? 9 : _context.t0 === 'warning' ? 11 : _context.t0 === 'error' ? 13 : _context.t0 === 'info' ? 15 : 17; - break; - case 9: - icon.classList.add('fa', 'fa-check', 'text-success'); - return _context.abrupt("break", 18); - case 11: - icon.classList.add('fa', 'fa-warning', 'text-warning'); - return _context.abrupt("break", 18); - case 13: - icon.classList.add('fa', 'fa-bolt', 'text-danger'); - return _context.abrupt("break", 18); - case 15: - icon.classList.add('fa', 'fa-info-circle', 'text-info'); - return _context.abrupt("break", 18); - case 17: - return _context.abrupt("break", 18); - case 18: - if (icon.classList.contains('fa')) { - contentDiv.appendChild(icon); - } - case 19: - if (title != null) { - titleDiv = document.createElement('div'); - titleDiv.classList.add('swal-title'); - titleDiv.appendChild(document.createTextNode(title)); - contentDiv.appendChild(titleDiv); - } - if (text != null) { - textDiv = document.createElement('div'); - textDiv.classList.add('swal-text'); - textDiv.appendChild(document.createTextNode(text)); - contentDiv.appendChild(textDiv); - } - if (!(buttons.length > 1)) { - _context.next = 27; + + case 9: + icon.classList.add('fa', 'fa-check', 'text-success'); + return _context.abrupt("break", 18); + + case 11: + icon.classList.add('fa', 'fa-warning', 'text-warning'); + return _context.abrupt("break", 18); + + case 13: + icon.classList.add('fa', 'fa-bolt', 'text-danger'); + return _context.abrupt("break", 18); + + case 15: + icon.classList.add('fa', 'fa-info-circle', 'text-info'); + return _context.abrupt("break", 18); + + case 17: + return _context.abrupt("break", 18); + + case 18: + if (icon.classList.contains('fa')) { + contentDiv.appendChild(icon); + } + + case 19: + if (title != null) { + titleDiv = document.createElement('div'); + titleDiv.classList.add('swal-title'); + titleDiv.appendChild(document.createTextNode(title)); + contentDiv.appendChild(titleDiv); + } + + if (text != null) { + textDiv = document.createElement('div'); + textDiv.classList.add('swal-text'); + textDiv.appendChild(document.createTextNode(text)); + contentDiv.appendChild(textDiv); + } + + if (!(buttons.length > 1)) { + _context.next = 27; + break; + } + + _context.next = 24; + return Object(_stubs_null_js__WEBPACK_IMPORTED_MODULE_8__["default"])({ + content: { + element: contentDiv + }, + buttons: buttons + }); + + case 24: + _context.t1 = _context.sent; + _context.next = 30; break; - } - _context.next = 24; - return Object(_stubs_null_js__WEBPACK_IMPORTED_MODULE_8__["default"])({ - content: { - element: contentDiv - }, - buttons: buttons - }); - case 24: - _context.t1 = _context.sent; - _context.next = 30; - break; - case 27: - _context.next = 29; - return Object(_stubs_null_js__WEBPACK_IMPORTED_MODULE_8__["default"])({ - content: { - element: contentDiv - }, - button: buttons[0] - }); - case 29: - _context.t1 = _context.sent; - case 30: - confirmed = _context.t1; - return _context.abrupt("return", confirmed); - case 32: - case "end": - return _context.stop(); + + case 27: + _context.next = 29; + return Object(_stubs_null_js__WEBPACK_IMPORTED_MODULE_8__["default"])({ + content: { + element: contentDiv + }, + button: buttons[0] + }); + + case 29: + _context.t1 = _context.sent; + + case 30: + confirmed = _context.t1; + return _context.abrupt("return", confirmed); + + case 32: + case "end": + return _context.stop(); + } } }, _callee, this); })); + function showDialog(_x, _x2, _x3, _x4, _x5) { return _showDialog.apply(this, arguments); } + return showDialog; }() }, { @@ -93287,27 +93773,31 @@ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { value: function copyToClipboard(text, options) { var win = window; var doc = window.document; + if (options && (options.window || options.win)) { win = options.window || options.win; doc = win.document; } else if (options && options.doc) { doc = options.doc; } + if (win.clipboardData && win.clipboardData.setData) { // IE specific code path to prevent textarea being shown while dialog is visible. win.clipboardData.setData('Text', text); } else if (doc.queryCommandSupported && doc.queryCommandSupported('copy')) { var textarea = doc.createElement('textarea'); - textarea.textContent = text; - // Prevent scrolling to bottom of page in MS Edge. + textarea.textContent = text; // Prevent scrolling to bottom of page in MS Edge. + textarea.style.position = 'fixed'; - var copyEl = doc.body; - // For some reason copy command won't work in Firefox when modal is open if appending to body + var copyEl = doc.body; // For some reason copy command won't work in Firefox when modal is open if appending to body + if (this.isFirefox() && doc.body.classList.contains('modal-open')) { copyEl = doc.body.querySelector < HTMLElement > '.modal'; } + copyEl.appendChild(textarea); textarea.select(); + try { // Security exception may be thrown by some browsers. doc.execCommand('copy'); @@ -93318,19 +93808,20 @@ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) { copyEl.removeChild(textarea); } } - } + } // eslint-disable-next-line no-unused-vars - // eslint-disable-next-line no-unused-vars }, { key: "readFromClipboard", value: function readFromClipboard(options) { throw new Error('Cannot read from clipboard on web.'); } }]); + return WebPlatformUtilsService; }(_StrippedWebPlatformUtilsService__WEBPACK_IMPORTED_MODULE_9__["default"]); + /***/ }), /***/ "BrK0": @@ -93391,70 +93882,76 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorU2fResponse", function() { return TwoFactorU2fResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyResponse", function() { return KeyResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChallengeResponse", function() { return ChallengeResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var TwoFactorU2fResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorU2fResponse, _BaseResponse); - var _super = _createSuper(TwoFactorU2fResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorU2fResponse, _BaseResponse); + function TwoFactorU2fResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorU2fResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorU2fResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorU2fResponse).call(this, response)); _this.enabled = _this.getResponseProperty('Enabled'); + var keys = _this.getResponseProperty('Keys'); + _this.keys = keys == null ? null : keys.map(function (k) { return new KeyResponse(k); }); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorU2fResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorU2fResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var KeyResponse = /*#__PURE__*/function (_BaseResponse2) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KeyResponse, _BaseResponse2); - var _super2 = _createSuper(KeyResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(KeyResponse, _BaseResponse2); + function KeyResponse(response) { var _this2; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, KeyResponse); - _this2 = _super2.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KeyResponse); + + _this2 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(KeyResponse).call(this, response)); _this2.name = _this2.getResponseProperty('Name'); _this2.id = _this2.getResponseProperty('Id'); _this2.compromised = _this2.getResponseProperty('Compromised'); return _this2; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(KeyResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return KeyResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var ChallengeResponse = /*#__PURE__*/function (_BaseResponse3) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ChallengeResponse, _BaseResponse3); - var _super3 = _createSuper(ChallengeResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ChallengeResponse, _BaseResponse3); + function ChallengeResponse(response) { var _this3; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ChallengeResponse); - _this3 = _super3.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ChallengeResponse); + + _this3 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(ChallengeResponse).call(this, response)); _this3.userId = _this3.getResponseProperty('UserId'); _this3.appId = _this3.getResponseProperty('AppId'); _this3.challenge = _this3.getResponseProperty('Challenge'); _this3.version = _this3.getResponseProperty('Version'); return _this3; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ChallengeResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return ChallengeResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -93756,6 +94253,7 @@ StepLabel.muiName = 'StepLabel'; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeviceType", function() { return DeviceType; }); var DeviceType; + (function (DeviceType) { DeviceType[DeviceType["Android"] = 0] = "Android"; DeviceType[DeviceType["iOS"] = 1] = "iOS"; @@ -93902,23 +94400,25 @@ module.exports = function floor(x) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnvironmentService", function() { return EnvironmentService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_domain_environmentUrls__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("mI96"); /* harmony import */ var _constants_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Rqrh"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -93927,6 +94427,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -93934,22 +94435,27 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var EnvironmentService = /*#__PURE__*/function () { function EnvironmentService(apiService, storageService, notificationsService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EnvironmentService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, EnvironmentService); + this.apiService = apiService; this.storageService = storageService; this.notificationsService = notificationsService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EnvironmentService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(EnvironmentService, [{ key: "getWebVaultUrl", value: function getWebVaultUrl() { if (this.webVaultUrl != null) { @@ -93957,50 +94463,58 @@ var EnvironmentService = /*#__PURE__*/function () { } else if (this.baseUrl) { return this.baseUrl; } + return null; } }, { key: "setUrlsFromStorage", value: function setUrlsFromStorage() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var urlsObj, urls, envUrls; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_4__["ConstantsService"].environmentUrlsKey); - case 2: - urlsObj = _context.sent; - urls = urlsObj || { - base: null, - api: null, - identity: null, - icons: null, - notifications: null, - events: null, - webVault: null, - enterprise: null - }; - envUrls = new _models_domain_environmentUrls__WEBPACK_IMPORTED_MODULE_3__["EnvironmentUrls"](); - if (!urls.base) { - _context.next = 9; - break; - } - this.baseUrl = envUrls.base = urls.base; - this.apiService.setUrls(envUrls); - return _context.abrupt("return"); - case 9: - this.webVaultUrl = urls.webVault; - this.apiUrl = envUrls.api = urls.api; - this.identityUrl = envUrls.identity = urls.identity; - this.iconsUrl = urls.icons; - this.notificationsUrl = urls.notifications; - this.eventsUrl = envUrls.events = urls.events; - this.enterpriseUrl = urls.enterprise; - this.apiService.setUrls(envUrls); - case 17: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_4__["ConstantsService"].environmentUrlsKey); + + case 2: + urlsObj = _context.sent; + urls = urlsObj || { + base: null, + api: null, + identity: null, + icons: null, + notifications: null, + events: null, + webVault: null, + enterprise: null + }; + envUrls = new _models_domain_environmentUrls__WEBPACK_IMPORTED_MODULE_3__["EnvironmentUrls"](); + + if (!urls.base) { + _context.next = 9; + break; + } + + this.baseUrl = envUrls.base = urls.base; + this.apiService.setUrls(envUrls); + return _context.abrupt("return"); + + case 9: + this.webVaultUrl = urls.webVault; + this.apiUrl = envUrls.api = urls.api; + this.identityUrl = envUrls.identity = urls.identity; + this.iconsUrl = urls.icons; + this.notificationsUrl = urls.notifications; + this.eventsUrl = envUrls.events = urls.events; + this.enterpriseUrl = urls.enterprise; + this.apiService.setUrls(envUrls); + + case 17: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -94008,55 +94522,63 @@ var EnvironmentService = /*#__PURE__*/function () { }, { key: "setUrls", value: function setUrls(urls) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var envUrls; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - urls.base = this.formatUrl(urls.base); - urls.webVault = this.formatUrl(urls.webVault); - urls.api = this.formatUrl(urls.api); - urls.identity = this.formatUrl(urls.identity); - urls.icons = this.formatUrl(urls.icons); - urls.notifications = this.formatUrl(urls.notifications); - urls.events = this.formatUrl(urls.events); - urls.enterprise = this.formatUrl(urls.enterprise); - _context2.next = 10; - return this.storageService.save(_constants_service__WEBPACK_IMPORTED_MODULE_4__["ConstantsService"].environmentUrlsKey, { - base: urls.base, - api: urls.api, - identity: urls.identity, - webVault: urls.webVault, - icons: urls.icons, - notifications: urls.notifications, - events: urls.events, - enterprise: urls.enterprise - }); - case 10: - this.baseUrl = urls.base; - this.webVaultUrl = urls.webVault; - this.apiUrl = urls.api; - this.identityUrl = urls.identity; - this.iconsUrl = urls.icons; - this.notificationsUrl = urls.notifications; - this.eventsUrl = urls.events; - this.enterpriseUrl = urls.enterprise; - envUrls = new _models_domain_environmentUrls__WEBPACK_IMPORTED_MODULE_3__["EnvironmentUrls"](); - if (this.baseUrl) { - envUrls.base = this.baseUrl; - } else { - envUrls.api = this.apiUrl; - envUrls.identity = this.identityUrl; - envUrls.events = this.eventsUrl; - } - this.apiService.setUrls(envUrls); - if (this.notificationsService != null) { - this.notificationsService.init(this); - } - return _context2.abrupt("return", urls); - case 23: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + urls.base = this.formatUrl(urls.base); + urls.webVault = this.formatUrl(urls.webVault); + urls.api = this.formatUrl(urls.api); + urls.identity = this.formatUrl(urls.identity); + urls.icons = this.formatUrl(urls.icons); + urls.notifications = this.formatUrl(urls.notifications); + urls.events = this.formatUrl(urls.events); + urls.enterprise = this.formatUrl(urls.enterprise); + _context2.next = 10; + return this.storageService.save(_constants_service__WEBPACK_IMPORTED_MODULE_4__["ConstantsService"].environmentUrlsKey, { + base: urls.base, + api: urls.api, + identity: urls.identity, + webVault: urls.webVault, + icons: urls.icons, + notifications: urls.notifications, + events: urls.events, + enterprise: urls.enterprise + }); + + case 10: + this.baseUrl = urls.base; + this.webVaultUrl = urls.webVault; + this.apiUrl = urls.api; + this.identityUrl = urls.identity; + this.iconsUrl = urls.icons; + this.notificationsUrl = urls.notifications; + this.eventsUrl = urls.events; + this.enterpriseUrl = urls.enterprise; + envUrls = new _models_domain_environmentUrls__WEBPACK_IMPORTED_MODULE_3__["EnvironmentUrls"](); + + if (this.baseUrl) { + envUrls.base = this.baseUrl; + } else { + envUrls.api = this.apiUrl; + envUrls.identity = this.identityUrl; + envUrls.events = this.eventsUrl; + } + + this.apiService.setUrls(envUrls); + + if (this.notificationsService != null) { + this.notificationsService.init(this); + } + + return _context2.abrupt("return", urls); + + case 23: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -94067,13 +94589,17 @@ var EnvironmentService = /*#__PURE__*/function () { if (url == null || url === '') { return null; } + url = url.replace(/\/+$/g, ''); + if (!url.startsWith('http://') && !url.startsWith('https://')) { url = 'https://' + url; } + return url.trim(); } }]); + return EnvironmentService; }(); @@ -94786,19 +95312,16 @@ module.exports = maxBy; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherRequest", function() { return CipherRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ykCz"); -/* harmony import */ var _api_cardApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("UyQB"); -/* harmony import */ var _api_fieldApi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("TKJ5"); -/* harmony import */ var _api_identityApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("WELE"); -/* harmony import */ var _api_loginApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("InD+"); -/* harmony import */ var _api_loginUriApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("hLut"); -/* harmony import */ var _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("dU00"); -/* harmony import */ var _attachmentRequest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("RLhM"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ykCz"); +/* harmony import */ var _api_cardApi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("UyQB"); +/* harmony import */ var _api_fieldApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("TKJ5"); +/* harmony import */ var _api_identityApi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("WELE"); +/* harmony import */ var _api_loginApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("InD+"); +/* harmony import */ var _api_loginUriApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hLut"); +/* harmony import */ var _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("dU00"); +/* harmony import */ var _attachmentRequest__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("RLhM"); @@ -94808,9 +95331,11 @@ __webpack_require__.r(__webpack_exports__); -var CipherRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherRequest(cipher) { +var CipherRequest = function CipherRequest(cipher) { var _this = this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherRequest); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherRequest); + this.type = cipher.type; this.folderId = cipher.folderId; this.organizationId = cipher.organizationId; @@ -94818,29 +95343,34 @@ var CipherRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMP this.notes = cipher.notes ? cipher.notes.encryptedString : null; this.favorite = cipher.favorite; this.lastKnownRevisionDate = cipher.revisionDate; + switch (this.type) { - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Login: - this.login = new _api_loginApi__WEBPACK_IMPORTED_MODULE_6__["LoginApi"](); + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].Login: + this.login = new _api_loginApi__WEBPACK_IMPORTED_MODULE_5__["LoginApi"](); this.login.uris = null; this.login.username = cipher.login.username ? cipher.login.username.encryptedString : null; this.login.password = cipher.login.password ? cipher.login.password.encryptedString : null; this.login.passwordRevisionDate = cipher.login.passwordRevisionDate != null ? cipher.login.passwordRevisionDate.toISOString() : null; this.login.totp = cipher.login.totp ? cipher.login.totp.encryptedString : null; + if (cipher.login.uris != null) { this.login.uris = cipher.login.uris.map(function (u) { - var uri = new _api_loginUriApi__WEBPACK_IMPORTED_MODULE_7__["LoginUriApi"](); + var uri = new _api_loginUriApi__WEBPACK_IMPORTED_MODULE_6__["LoginUriApi"](); uri.uri = u.uri != null ? u.uri.encryptedString : null; uri.match = u.match != null ? u.match : null; return uri; }); } + break; - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].SecureNote: - this.secureNote = new _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_8__["SecureNoteApi"](); + + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].SecureNote: + this.secureNote = new _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_7__["SecureNoteApi"](); this.secureNote.type = cipher.secureNote.type; break; - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Card: - this.card = new _api_cardApi__WEBPACK_IMPORTED_MODULE_3__["CardApi"](); + + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].Card: + this.card = new _api_cardApi__WEBPACK_IMPORTED_MODULE_2__["CardApi"](); this.card.cardholderName = cipher.card.cardholderName != null ? cipher.card.cardholderName.encryptedString : null; this.card.brand = cipher.card.brand != null ? cipher.card.brand.encryptedString : null; this.card.number = cipher.card.number != null ? cipher.card.number.encryptedString : null; @@ -94848,8 +95378,9 @@ var CipherRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMP this.card.expYear = cipher.card.expYear != null ? cipher.card.expYear.encryptedString : null; this.card.code = cipher.card.code != null ? cipher.card.code.encryptedString : null; break; - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Identity: - this.identity = new _api_identityApi__WEBPACK_IMPORTED_MODULE_5__["IdentityApi"](); + + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].Identity: + this.identity = new _api_identityApi__WEBPACK_IMPORTED_MODULE_4__["IdentityApi"](); this.identity.title = cipher.identity.title != null ? cipher.identity.title.encryptedString : null; this.identity.firstName = cipher.identity.firstName != null ? cipher.identity.firstName.encryptedString : null; this.identity.middleName = cipher.identity.middleName != null ? cipher.identity.middleName.encryptedString : null; @@ -94869,18 +95400,21 @@ var CipherRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMP this.identity.passportNumber = cipher.identity.passportNumber != null ? cipher.identity.passportNumber.encryptedString : null; this.identity.licenseNumber = cipher.identity.licenseNumber != null ? cipher.identity.licenseNumber.encryptedString : null; break; + default: break; } + if (cipher.fields != null) { this.fields = cipher.fields.map(function (f) { - var field = new _api_fieldApi__WEBPACK_IMPORTED_MODULE_4__["FieldApi"](); + var field = new _api_fieldApi__WEBPACK_IMPORTED_MODULE_3__["FieldApi"](); field.type = f.type; field.name = f.name ? f.name.encryptedString : null; field.value = f.value ? f.value.encryptedString : null; return field; }); } + if (cipher.passwordHistory != null) { this.passwordHistory = []; cipher.passwordHistory.forEach(function (ph) { @@ -94890,21 +95424,24 @@ var CipherRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMP }); }); } + if (cipher.attachments != null) { this.attachments = {}; this.attachments2 = {}; cipher.attachments.forEach(function (attachment) { var fileName = attachment.fileName ? attachment.fileName.encryptedString : null; _this.attachments[attachment.id] = fileName; - var attachmentRequest = new _attachmentRequest__WEBPACK_IMPORTED_MODULE_9__["AttachmentRequest"](); + var attachmentRequest = new _attachmentRequest__WEBPACK_IMPORTED_MODULE_8__["AttachmentRequest"](); attachmentRequest.fileName = fileName; + if (attachment.key != null) { attachmentRequest.key = attachment.key.encryptedString; } + _this.attachments2[attachment.id] = attachmentRequest; }); } -}); +}; /***/ }), @@ -95228,14 +95765,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("RNXH"); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("RNXH"); +/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _cipher__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("++fU"); @@ -95243,26 +95780,28 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CipherWithIds = /*#__PURE__*/function (_Cipher) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CipherWithIds, _Cipher); - var _super = _createSuper(CipherWithIds); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(CipherWithIds, _Cipher); + function CipherWithIds() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherWithIds); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CipherWithIds).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CipherWithIds, [{ key: "build", - value: // Use build method instead of ctor so that we can control order of JSON stringify for pretty print - function build(o) { + value: function build(o) { this.id = o.id; - _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(CipherWithIds.prototype), "build", this).call(this, o); + + _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CipherWithIds.prototype), "build", this).call(this, o); + this.collectionIds = o.collectionIds; } }]); + return CipherWithIds; }(_cipher__WEBPACK_IMPORTED_MODULE_6__["Cipher"]); @@ -96068,18 +96607,24 @@ __webpack_require__.r(__webpack_exports__); var LoginUri = /*#__PURE__*/function () { function LoginUri(o) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginUri); + var _a; + this.match = null; + if (o == null) { return; } + if (o instanceof _view_loginUriView__WEBPACK_IMPORTED_MODULE_2__["LoginUriView"]) { this.uri = o.uri; } else { this.uri = (_a = o.uri) === null || _a === void 0 ? void 0 : _a.encryptedString; } + this.match = o.match; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LoginUri, null, [{ key: "template", value: function template() { @@ -96097,6 +96642,7 @@ var LoginUri = /*#__PURE__*/function () { return view; } }]); + return LoginUri; }(); @@ -96305,12 +96851,12 @@ exports.hasExtensionInstalledAttribute = hasExtensionInstalledAttribute; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WebCryptoFunctionService", function() { return WebCryptoFunctionService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("aj7b"); /* harmony import */ var _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("6xKo"); @@ -96318,12 +96864,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -96332,6 +96880,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -96339,18 +96888,22 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var WebCryptoFunctionService = /*#__PURE__*/function () { function WebCryptoFunctionService(win, platformUtilsService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WebCryptoFunctionService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, WebCryptoFunctionService); + this.win = win; this.platformUtilsService = platformUtilsService; this.crypto = typeof win.crypto !== 'undefined' ? win.crypto : null; @@ -96359,48 +96912,56 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { var ua = win.navigator.userAgent; this.isOldSafari = platformUtilsService.isSafari() && (ua.indexOf(' Version/10.') > -1 || ua.indexOf(' Version/9.') > -1); } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WebCryptoFunctionService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(WebCryptoFunctionService, [{ key: "pbkdf2", value: function pbkdf2(password, salt, algorithm, iterations) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var forgeLen, passwordBytes, saltBytes, derivedKeyBytes, wcLen, passwordBuf, saltBuf, pbkdf2Params, impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(this.isIE || this.isOldSafari)) { - _context.next = 6; - break; - } - forgeLen = algorithm === 'sha256' ? 32 : 64; - passwordBytes = this.toByteString(password); - saltBytes = this.toByteString(salt); - derivedKeyBytes = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["pbkdf2"](passwordBytes, saltBytes, iterations, forgeLen, algorithm); - return _context.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromByteStringToArray(derivedKeyBytes).buffer); - case 6: - wcLen = algorithm === 'sha256' ? 256 : 512; - passwordBuf = this.toBuf(password); - saltBuf = this.toBuf(salt); - pbkdf2Params = { - name: 'PBKDF2', - salt: saltBuf, - iterations: iterations, - hash: { - name: this.toWebCryptoAlgorithm(algorithm) + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(this.isIE || this.isOldSafari)) { + _context.next = 6; + break; } - }; - _context.next = 12; - return this.subtle.importKey('raw', passwordBuf, { - name: 'PBKDF2' - }, false, ['deriveBits']); - case 12: - impKey = _context.sent; - _context.next = 15; - return this.subtle.deriveBits(pbkdf2Params, impKey, wcLen); - case 15: - return _context.abrupt("return", _context.sent); - case 16: - case "end": - return _context.stop(); + + forgeLen = algorithm === 'sha256' ? 32 : 64; + passwordBytes = this.toByteString(password); + saltBytes = this.toByteString(salt); + derivedKeyBytes = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["pbkdf2"](passwordBytes, saltBytes, iterations, forgeLen, algorithm); + return _context.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromByteStringToArray(derivedKeyBytes).buffer); + + case 6: + wcLen = algorithm === 'sha256' ? 256 : 512; + passwordBuf = this.toBuf(password); + saltBuf = this.toBuf(salt); + pbkdf2Params = { + name: 'PBKDF2', + salt: saltBuf, + iterations: iterations, + hash: { + name: this.toWebCryptoAlgorithm(algorithm) + } + }; + _context.next = 12; + return this.subtle.importKey('raw', passwordBuf, { + name: 'PBKDF2' + }, false, ['deriveBits']); + + case 12: + impKey = _context.sent; + _context.next = 15; + return this.subtle.deriveBits(pbkdf2Params, impKey, wcLen); + + case 15: + return _context.abrupt("return", _context.sent); + + case 16: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -96408,99 +96969,120 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "hkdf", value: function hkdf(ikm, salt, info, outputByteSize, algorithm) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var saltBuf, infoBuf, hkdfParams, impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - saltBuf = this.toBuf(salt); - infoBuf = this.toBuf(info); - hkdfParams = { - name: 'HKDF', - salt: saltBuf, - info: infoBuf, - hash: { - name: this.toWebCryptoAlgorithm(algorithm) - } - }; - _context2.next = 5; - return this.subtle.importKey('raw', ikm, { - name: 'HKDF' - }, false, ['deriveBits']); - case 5: - impKey = _context2.sent; - _context2.next = 8; - return this.subtle.deriveBits(hkdfParams, impKey, outputByteSize * 8); - case 8: - return _context2.abrupt("return", _context2.sent); - case 9: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + saltBuf = this.toBuf(salt); + infoBuf = this.toBuf(info); + hkdfParams = { + name: 'HKDF', + salt: saltBuf, + info: infoBuf, + hash: { + name: this.toWebCryptoAlgorithm(algorithm) + } + }; + _context2.next = 5; + return this.subtle.importKey('raw', ikm, { + name: 'HKDF' + }, false, ['deriveBits']); + + case 5: + impKey = _context2.sent; + _context2.next = 8; + return this.subtle.deriveBits(hkdfParams, impKey, outputByteSize * 8); + + case 8: + return _context2.abrupt("return", _context2.sent); + + case 9: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); - } - // ref: https://tools.ietf.org/html/rfc5869 + } // ref: https://tools.ietf.org/html/rfc5869 + }, { key: "hkdfExpand", value: function hkdfExpand(prk, info, outputByteSize, algorithm) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var hashLen, prkArr, infoBuf, infoArr, runningOkmLength, previousT, n, okm, i, t; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - hashLen = algorithm === 'sha256' ? 32 : 64; - if (!(outputByteSize > 255 * hashLen)) { - _context3.next = 3; - break; - } - throw new Error('outputByteSize is too large.'); - case 3: - prkArr = new Uint8Array(prk); - if (!(prkArr.length < hashLen)) { - _context3.next = 6; - break; - } - throw new Error('prk is too small.'); - case 6: - infoBuf = this.toBuf(info); - infoArr = new Uint8Array(infoBuf); - runningOkmLength = 0; - previousT = new Uint8Array(0); - n = Math.ceil(outputByteSize / hashLen); - okm = new Uint8Array(n * hashLen); - i = 0; - case 13: - if (!(i < n)) { - _context3.next = 30; - break; - } - t = new Uint8Array(previousT.length + infoArr.length + 1); - t.set(previousT); - t.set(infoArr, previousT.length); - t.set([i + 1], t.length - 1); - _context3.t0 = Uint8Array; - _context3.next = 21; - return this.hmac(t.buffer, prk, algorithm); - case 21: - _context3.t1 = _context3.sent; - previousT = new _context3.t0(_context3.t1); - okm.set(previousT, runningOkmLength); - runningOkmLength += previousT.length; - if (!(runningOkmLength >= outputByteSize)) { - _context3.next = 27; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + hashLen = algorithm === 'sha256' ? 32 : 64; + + if (!(outputByteSize > 255 * hashLen)) { + _context3.next = 3; + break; + } + + throw new Error('outputByteSize is too large.'); + + case 3: + prkArr = new Uint8Array(prk); + + if (!(prkArr.length < hashLen)) { + _context3.next = 6; + break; + } + + throw new Error('prk is too small.'); + + case 6: + infoBuf = this.toBuf(info); + infoArr = new Uint8Array(infoBuf); + runningOkmLength = 0; + previousT = new Uint8Array(0); + n = Math.ceil(outputByteSize / hashLen); + okm = new Uint8Array(n * hashLen); + i = 0; + + case 13: + if (!(i < n)) { + _context3.next = 30; + break; + } + + t = new Uint8Array(previousT.length + infoArr.length + 1); + t.set(previousT); + t.set(infoArr, previousT.length); + t.set([i + 1], t.length - 1); + _context3.t0 = Uint8Array; + _context3.next = 21; + return this.hmac(t.buffer, prk, algorithm); + + case 21: + _context3.t1 = _context3.sent; + previousT = new _context3.t0(_context3.t1); + okm.set(previousT, runningOkmLength); + runningOkmLength += previousT.length; + + if (!(runningOkmLength >= outputByteSize)) { + _context3.next = 27; + break; + } + + return _context3.abrupt("break", 30); + + case 27: + i++; + _context3.next = 13; break; - } - return _context3.abrupt("break", 30); - case 27: - i++; - _context3.next = 13; - break; - case 30: - return _context3.abrupt("return", okm.slice(0, outputByteSize).buffer); - case 31: - case "end": - return _context3.stop(); + + case 30: + return _context3.abrupt("return", okm.slice(0, outputByteSize).buffer); + + case 31: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -96508,30 +97090,36 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "hash", value: function hash(value, algorithm) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var md, valueBytes, valueBuf; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.isIE && algorithm === 'sha1' || algorithm === 'md5')) { - _context4.next = 5; - break; - } - md = algorithm === 'md5' ? _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["md"].md5.create() : _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["md"].sha1.create(); - valueBytes = this.toByteString(value); - md.update(valueBytes, 'raw'); - return _context4.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromByteStringToArray(md.digest().data).buffer); - case 5: - valueBuf = this.toBuf(value); - _context4.next = 8; - return this.subtle.digest({ - name: this.toWebCryptoAlgorithm(algorithm) - }, valueBuf); - case 8: - return _context4.abrupt("return", _context4.sent); - case 9: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.isIE && algorithm === 'sha1' || algorithm === 'md5')) { + _context4.next = 5; + break; + } + + md = algorithm === 'md5' ? _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["md"].md5.create() : _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["md"].sha1.create(); + valueBytes = this.toByteString(value); + md.update(valueBytes, 'raw'); + return _context4.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromByteStringToArray(md.digest().data).buffer); + + case 5: + valueBuf = this.toBuf(value); + _context4.next = 8; + return this.subtle.digest({ + name: this.toWebCryptoAlgorithm(algorithm) + }, valueBuf); + + case 8: + return _context4.abrupt("return", _context4.sent); + + case 9: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -96539,104 +97127,126 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "hmac", value: function hmac(value, key, algorithm) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var hmac, keyBytes, valueBytes, signingAlgorithm, impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - if (!(this.isIE && algorithm === 'sha512')) { - _context5.next = 7; - break; - } - hmac = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["hmac"].create(); - keyBytes = this.toByteString(key); - valueBytes = this.toByteString(value); - hmac.start(algorithm, keyBytes); - hmac.update(valueBytes, 'raw'); - return _context5.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromByteStringToArray(hmac.digest().data).buffer); - case 7: - signingAlgorithm = { - name: 'HMAC', - hash: { - name: this.toWebCryptoAlgorithm(algorithm) + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + if (!(this.isIE && algorithm === 'sha512')) { + _context5.next = 7; + break; } - }; - _context5.next = 10; - return this.subtle.importKey('raw', key, signingAlgorithm, false, ['sign']); - case 10: - impKey = _context5.sent; - _context5.next = 13; - return this.subtle.sign(signingAlgorithm, impKey, value); - case 13: - return _context5.abrupt("return", _context5.sent); - case 14: - case "end": - return _context5.stop(); + + hmac = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["hmac"].create(); + keyBytes = this.toByteString(key); + valueBytes = this.toByteString(value); + hmac.start(algorithm, keyBytes); + hmac.update(valueBytes, 'raw'); + return _context5.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromByteStringToArray(hmac.digest().data).buffer); + + case 7: + signingAlgorithm = { + name: 'HMAC', + hash: { + name: this.toWebCryptoAlgorithm(algorithm) + } + }; + _context5.next = 10; + return this.subtle.importKey('raw', key, signingAlgorithm, false, ['sign']); + + case 10: + impKey = _context5.sent; + _context5.next = 13; + return this.subtle.sign(signingAlgorithm, impKey, value); + + case 13: + return _context5.abrupt("return", _context5.sent); + + case 14: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); - } - // Safely compare two values in a way that protects against timing attacks (Double HMAC Verification). + } // Safely compare two values in a way that protects against timing attacks (Double HMAC Verification). // ref: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ // ref: https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-string-comparison-with-double-hmac-strategy + }, { key: "compare", value: function compare(a, b) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var macKey, signingAlgorithm, impKey, mac1, mac2, arr1, arr2, i; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.randomBytes(32); - case 2: - macKey = _context6.sent; - signingAlgorithm = { - name: 'HMAC', - hash: { - name: 'SHA-256' + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.randomBytes(32); + + case 2: + macKey = _context6.sent; + signingAlgorithm = { + name: 'HMAC', + hash: { + name: 'SHA-256' + } + }; + _context6.next = 6; + return this.subtle.importKey('raw', macKey, signingAlgorithm, false, ['sign']); + + case 6: + impKey = _context6.sent; + _context6.next = 9; + return this.subtle.sign(signingAlgorithm, impKey, a); + + case 9: + mac1 = _context6.sent; + _context6.next = 12; + return this.subtle.sign(signingAlgorithm, impKey, b); + + case 12: + mac2 = _context6.sent; + + if (!(mac1.byteLength !== mac2.byteLength)) { + _context6.next = 15; + break; } - }; - _context6.next = 6; - return this.subtle.importKey('raw', macKey, signingAlgorithm, false, ['sign']); - case 6: - impKey = _context6.sent; - _context6.next = 9; - return this.subtle.sign(signingAlgorithm, impKey, a); - case 9: - mac1 = _context6.sent; - _context6.next = 12; - return this.subtle.sign(signingAlgorithm, impKey, b); - case 12: - mac2 = _context6.sent; - if (!(mac1.byteLength !== mac2.byteLength)) { - _context6.next = 15; - break; - } - return _context6.abrupt("return", false); - case 15: - arr1 = new Uint8Array(mac1); - arr2 = new Uint8Array(mac2); - i = 0; - case 18: - if (!(i < arr2.length)) { - _context6.next = 24; - break; - } - if (!(arr1[i] !== arr2[i])) { - _context6.next = 21; + + return _context6.abrupt("return", false); + + case 15: + arr1 = new Uint8Array(mac1); + arr2 = new Uint8Array(mac2); + i = 0; + + case 18: + if (!(i < arr2.length)) { + _context6.next = 24; + break; + } + + if (!(arr1[i] !== arr2[i])) { + _context6.next = 21; + break; + } + + return _context6.abrupt("return", false); + + case 21: + i++; + _context6.next = 18; break; - } - return _context6.abrupt("return", false); - case 21: - i++; - _context6.next = 18; - break; - case 24: - return _context6.abrupt("return", true); - case 25: - case "end": - return _context6.stop(); + + case 24: + return _context6.abrupt("return", true); + + case 25: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -96653,33 +97263,39 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "compareFast", value: function compareFast(a, b) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var rand, bytes, buffer, i, macKey, hmac, mac1, mac2, equals; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.randomBytes(32); - case 2: - rand = _context7.sent; - bytes = new Uint32Array(rand); - buffer = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].createBuffer(); - for (i = 0; i < bytes.length; i++) { - buffer.putInt32(bytes[i]); - } - macKey = buffer.getBytes(); - hmac = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["hmac"].create(); - hmac.start('sha256', macKey); - hmac.update(a); - mac1 = hmac.digest().getBytes(); - hmac.start(null, null); - hmac.update(b); - mac2 = hmac.digest().getBytes(); - equals = mac1 === mac2; - return _context7.abrupt("return", equals); - case 16: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.randomBytes(32); + + case 2: + rand = _context7.sent; + bytes = new Uint32Array(rand); + buffer = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].createBuffer(); + + for (i = 0; i < bytes.length; i++) { + buffer.putInt32(bytes[i]); + } + + macKey = buffer.getBytes(); + hmac = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["hmac"].create(); + hmac.start('sha256', macKey); + hmac.update(a); + mac1 = hmac.digest().getBytes(); + hmac.start(null, null); + hmac.update(b); + mac2 = hmac.digest().getBytes(); + equals = mac1 === mac2; + return _context7.abrupt("return", equals); + + case 16: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -96687,27 +97303,32 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "aesEncrypt", value: function aesEncrypt(data, iv, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.subtle.importKey('raw', key, { - name: 'AES-CBC' - }, false, ['encrypt']); - case 2: - impKey = _context8.sent; - _context8.next = 5; - return this.subtle.encrypt({ - name: 'AES-CBC', - iv: iv - }, impKey, data); - case 5: - return _context8.abrupt("return", _context8.sent); - case 6: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.subtle.importKey('raw', key, { + name: 'AES-CBC' + }, false, ['encrypt']); + + case 2: + impKey = _context8.sent; + _context8.next = 5; + return this.subtle.encrypt({ + name: 'AES-CBC', + iv: iv + }, impKey, data); + + case 5: + return _context8.abrupt("return", _context8.sent); + + case 6: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -96716,32 +97337,41 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { key: "aesDecryptFastParameters", value: function aesDecryptFastParameters(data, iv, mac, key) { var p = new _models_domain_decryptParameters__WEBPACK_IMPORTED_MODULE_5__["DecryptParameters"](); + if (key.meta != null) { p.encKey = key.meta.encKeyByteString; p.macKey = key.meta.macKeyByteString; } + if (p.encKey == null) { p.encKey = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].decode64(key.encKeyB64); } + p.data = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].decode64(data); p.iv = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].decode64(iv); p.macData = p.iv + p.data; + if (p.macKey == null && key.macKeyB64 != null) { p.macKey = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].decode64(key.macKeyB64); } + if (mac != null) { p.mac = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].decode64(mac); - } - // cache byte string keys for later + } // cache byte string keys for later + + if (key.meta == null) { key.meta = {}; } + if (key.meta.encKeyByteString == null) { key.meta.encKeyByteString = p.encKey; } + if (p.macKey != null && key.meta.macKeyByteString == null) { key.meta.macKeyByteString = p.macKey; } + return p; } }, { @@ -96760,27 +97390,32 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "aesDecrypt", value: function aesDecrypt(data, iv, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.subtle.importKey('raw', key, { - name: 'AES-CBC' - }, false, ['decrypt']); - case 2: - impKey = _context9.sent; - _context9.next = 5; - return this.subtle.decrypt({ - name: 'AES-CBC', - iv: iv - }, impKey, data); - case 5: - return _context9.abrupt("return", _context9.sent); - case 6: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.subtle.importKey('raw', key, { + name: 'AES-CBC' + }, false, ['decrypt']); + + case 2: + impKey = _context9.sent; + _context9.next = 5; + return this.subtle.decrypt({ + name: 'AES-CBC', + iv: iv + }, impKey, data); + + case 5: + return _context9.abrupt("return", _context9.sent); + + case 6: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -96788,30 +97423,35 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "rsaEncrypt", value: function rsaEncrypt(data, publicKey, algorithm) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var rsaParams, impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - // Note: Edge browser requires that we specify name and hash for both key import and decrypt. - // We cannot use the proper types here. - rsaParams = { - name: 'RSA-OAEP', - hash: { - name: this.toWebCryptoAlgorithm(algorithm) - } - }; - _context10.next = 3; - return this.subtle.importKey('spki', publicKey, rsaParams, false, ['encrypt']); - case 3: - impKey = _context10.sent; - _context10.next = 6; - return this.subtle.encrypt(rsaParams, impKey, data); - case 6: - return _context10.abrupt("return", _context10.sent); - case 7: - case "end": - return _context10.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + // Note: Edge browser requires that we specify name and hash for both key import and decrypt. + // We cannot use the proper types here. + rsaParams = { + name: 'RSA-OAEP', + hash: { + name: this.toWebCryptoAlgorithm(algorithm) + } + }; + _context10.next = 3; + return this.subtle.importKey('spki', publicKey, rsaParams, false, ['encrypt']); + + case 3: + impKey = _context10.sent; + _context10.next = 6; + return this.subtle.encrypt(rsaParams, impKey, data); + + case 6: + return _context10.abrupt("return", _context10.sent); + + case 7: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -96819,30 +97459,35 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "rsaDecrypt", value: function rsaDecrypt(data, privateKey, algorithm) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var rsaParams, impKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - // Note: Edge browser requires that we specify name and hash for both key import and decrypt. - // We cannot use the proper types here. - rsaParams = { - name: 'RSA-OAEP', - hash: { - name: this.toWebCryptoAlgorithm(algorithm) - } - }; - _context11.next = 3; - return this.subtle.importKey('pkcs8', privateKey, rsaParams, false, ['decrypt']); - case 3: - impKey = _context11.sent; - _context11.next = 6; - return this.subtle.decrypt(rsaParams, impKey, data); - case 6: - return _context11.abrupt("return", _context11.sent); - case 7: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + // Note: Edge browser requires that we specify name and hash for both key import and decrypt. + // We cannot use the proper types here. + rsaParams = { + name: 'RSA-OAEP', + hash: { + name: this.toWebCryptoAlgorithm(algorithm) + } + }; + _context11.next = 3; + return this.subtle.importKey('pkcs8', privateKey, rsaParams, false, ['decrypt']); + + case 3: + impKey = _context11.sent; + _context11.next = 6; + return this.subtle.decrypt(rsaParams, impKey, data); + + case 6: + return _context11.abrupt("return", _context11.sent); + + case 7: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -96850,44 +97495,51 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "rsaExtractPublicKey", value: function rsaExtractPublicKey(privateKey) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { var rsaParams, impPrivateKey, jwkPrivateKey, jwkPublicKeyParams, impPublicKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - rsaParams = { - name: 'RSA-OAEP', - // Have to specify some algorithm - hash: { - name: this.toWebCryptoAlgorithm('sha1') - } - }; - _context12.next = 3; - return this.subtle.importKey('pkcs8', privateKey, rsaParams, true, ['decrypt']); - case 3: - impPrivateKey = _context12.sent; - _context12.next = 6; - return this.subtle.exportKey('jwk', impPrivateKey); - case 6: - jwkPrivateKey = _context12.sent; - jwkPublicKeyParams = { - kty: 'RSA', - e: jwkPrivateKey.e, - n: jwkPrivateKey.n, - alg: 'RSA-OAEP', - ext: true - }; - _context12.next = 10; - return this.subtle.importKey('jwk', jwkPublicKeyParams, rsaParams, true, ['encrypt']); - case 10: - impPublicKey = _context12.sent; - _context12.next = 13; - return this.subtle.exportKey('spki', impPublicKey); - case 13: - return _context12.abrupt("return", _context12.sent); - case 14: - case "end": - return _context12.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + rsaParams = { + name: 'RSA-OAEP', + // Have to specify some algorithm + hash: { + name: this.toWebCryptoAlgorithm('sha1') + } + }; + _context12.next = 3; + return this.subtle.importKey('pkcs8', privateKey, rsaParams, true, ['decrypt']); + + case 3: + impPrivateKey = _context12.sent; + _context12.next = 6; + return this.subtle.exportKey('jwk', impPrivateKey); + + case 6: + jwkPrivateKey = _context12.sent; + jwkPublicKeyParams = { + kty: 'RSA', + e: jwkPrivateKey.e, + n: jwkPrivateKey.n, + alg: 'RSA-OAEP', + ext: true + }; + _context12.next = 10; + return this.subtle.importKey('jwk', jwkPublicKeyParams, rsaParams, true, ['encrypt']); + + case 10: + impPublicKey = _context12.sent; + _context12.next = 13; + return this.subtle.exportKey('spki', impPublicKey); + + case 13: + return _context12.abrupt("return", _context12.sent); + + case 14: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); @@ -96895,36 +97547,42 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { }, { key: "rsaGenerateKeyPair", value: function rsaGenerateKeyPair(length) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee13() { var rsaParams, keyPair, publicKey, privateKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - rsaParams = { - name: 'RSA-OAEP', - modulusLength: length, - publicExponent: new Uint8Array([0x01, 0x00, 0x01]), - // Have to specify some algorithm - hash: { - name: this.toWebCryptoAlgorithm('sha1') - } - }; - _context13.next = 3; - return this.subtle.generateKey(rsaParams, true, ['encrypt', 'decrypt']); - case 3: - keyPair = _context13.sent; - _context13.next = 6; - return this.subtle.exportKey('spki', keyPair.publicKey); - case 6: - publicKey = _context13.sent; - _context13.next = 9; - return this.subtle.exportKey('pkcs8', keyPair.privateKey); - case 9: - privateKey = _context13.sent; - return _context13.abrupt("return", [publicKey, privateKey]); - case 11: - case "end": - return _context13.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + rsaParams = { + name: 'RSA-OAEP', + modulusLength: length, + publicExponent: new Uint8Array([0x01, 0x00, 0x01]), + // Have to specify some algorithm + hash: { + name: this.toWebCryptoAlgorithm('sha1') + } + }; + _context13.next = 3; + return this.subtle.generateKey(rsaParams, true, ['encrypt', 'decrypt']); + + case 3: + keyPair = _context13.sent; + _context13.next = 6; + return this.subtle.exportKey('spki', keyPair.publicKey); + + case 6: + publicKey = _context13.sent; + _context13.next = 9; + return this.subtle.exportKey('pkcs8', keyPair.privateKey); + + case 9: + privateKey = _context13.sent; + return _context13.abrupt("return", [publicKey, privateKey]); + + case 11: + case "end": + return _context13.stop(); + } } }, _callee13, this); })); @@ -96940,22 +97598,26 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { key: "toBuf", value: function toBuf(value) { var buf; + if (typeof value === 'string') { buf = _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromUtf8ToArray(value).buffer; } else { buf = value; } + return buf; } }, { key: "toByteString", value: function toByteString(value) { var bytes; + if (typeof value === 'string') { bytes = _stubs_node_forge_js__WEBPACK_IMPORTED_MODULE_3__["util"].encodeUtf8(value); } else { bytes = _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromBufferToByteString(value); } + return bytes; } }, { @@ -96964,9 +97626,11 @@ var WebCryptoFunctionService = /*#__PURE__*/function () { if (algorithm === 'md5') { throw new Error('MD5 is not supported in WebCrypto.'); } + return algorithm === 'sha1' ? 'SHA-1' : algorithm === 'sha256' ? 'SHA-256' : 'SHA-512'; } }]); + return WebCryptoFunctionService; }(); @@ -97388,32 +98052,29 @@ module.exports = function (css) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MasterPasswordPolicyOptions", function() { return MasterPasswordPolicyOptions; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("L7vP"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("L7vP"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var MasterPasswordPolicyOptions = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(MasterPasswordPolicyOptions, _Domain); - var _super = _createSuper(MasterPasswordPolicyOptions); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(MasterPasswordPolicyOptions, _Domain); + function MasterPasswordPolicyOptions() { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MasterPasswordPolicyOptions); - _this = _super.apply(this, arguments); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MasterPasswordPolicyOptions); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(MasterPasswordPolicyOptions).apply(this, arguments)); _this.minComplexity = 0; _this.minLength = 0; _this.requireUpper = false; @@ -97422,8 +98083,9 @@ var MasterPasswordPolicyOptions = /*#__PURE__*/function (_Domain) { _this.requireSpecial = false; return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(MasterPasswordPolicyOptions); -}(_domainBase__WEBPACK_IMPORTED_MODULE_5__["default"]); + + return MasterPasswordPolicyOptions; +}(_domainBase__WEBPACK_IMPORTED_MODULE_4__["default"]); /***/ }), @@ -101908,76 +102570,6 @@ __webpack_require__.r(__webpack_exports__); }); -/***/ }), - -/***/ "Cxz7": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _I18n = __webpack_require__("nUfk"); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - return keys; -} -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - (0, _defineProperty2.default)(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - return target; -} -/** - * - * @param {Function|Object} localesOrRequire - Either a function returning the locale, - * or an object containing all the locales - * @return {Component} - */ - -var withOnlyLocales = function withOnlyLocales(localesOrRequire) { - return function (Component) { - var requireLocale = typeof localesOrRequire === 'function' ? localesOrRequire : function (localeCode) { - return localesOrRequire[localeCode]; - }; - var Wrapped = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) { - var _useI18n = (0, _I18n.useI18n)(), - lang = _useI18n.lang; - return /*#__PURE__*/_react.default.createElement(_I18n.I18n, { - dictRequire: requireLocale, - lang: lang - }, /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({}, props, { - ref: ref - }))); - }); - Wrapped.propTypes = _objectSpread({}, Component.propTypes || {}); - Wrapped.displayName = "withOnlyLocales(".concat(Component.displayName || Component.name, ")"); - return Wrapped; - }; -}; -var _default = withOnlyLocales; -exports.default = _default; - /***/ }), /***/ "CyXu": @@ -107290,12 +107882,12 @@ function one(b) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportService", function() { return ImportService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ykCz"); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("6xKo"); /* harmony import */ var _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("COvv"); @@ -107357,12 +107949,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -107371,6 +107965,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -107378,9 +107973,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -107440,11 +108037,13 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var ImportService = /*#__PURE__*/function () { function ImportService(cipherService, folderService, apiService, i18nService, collectionService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ImportService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ImportService); + this.cipherService = cipherService; this.folderService = folderService; this.apiService = apiService; @@ -107612,7 +108211,8 @@ var ImportService = /*#__PURE__*/function () { name: 'Yoti (csv)' }]; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ImportService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ImportService, [{ key: "getImportOptions", value: function getImportOptions() { return this.featuredImportOptions.concat(this.regularImportOptions); @@ -107621,46 +108221,60 @@ var ImportService = /*#__PURE__*/function () { key: "import", value: function _import(importer, fileContents) { var organizationId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var importResult, halfway, last; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return importer.parse(fileContents); - case 2: - importResult = _context.sent; - if (!importResult.success) { - _context.next = 18; - break; - } - if (!(importResult.folders.length === 0 && importResult.ciphers.length === 0)) { - _context.next = 8; - break; - } - return _context.abrupt("return", new Error(this.i18nService.t('importNothingError'))); - case 8: - if (!(importResult.ciphers.length > 0)) { - _context.next = 13; - break; - } - halfway = Math.floor(importResult.ciphers.length / 2); - last = importResult.ciphers.length - 1; - if (!(this.badData(importResult.ciphers[0]) && this.badData(importResult.ciphers[halfway]) && this.badData(importResult.ciphers[last]))) { - _context.next = 13; - break; - } - return _context.abrupt("return", new Error(this.i18nService.t('importFormatError'))); - case 13: - _context.next = 15; - return this.postImport(importResult, organizationId); - case 15: - return _context.abrupt("return", null); - case 18: - return _context.abrupt("return", new Error(this.i18nService.t('importFormatError'))); - case 19: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return importer.parse(fileContents); + + case 2: + importResult = _context.sent; + + if (!importResult.success) { + _context.next = 18; + break; + } + + if (!(importResult.folders.length === 0 && importResult.ciphers.length === 0)) { + _context.next = 8; + break; + } + + return _context.abrupt("return", new Error(this.i18nService.t('importNothingError'))); + + case 8: + if (!(importResult.ciphers.length > 0)) { + _context.next = 13; + break; + } + + halfway = Math.floor(importResult.ciphers.length / 2); + last = importResult.ciphers.length - 1; + + if (!(this.badData(importResult.ciphers[0]) && this.badData(importResult.ciphers[halfway]) && this.badData(importResult.ciphers[last]))) { + _context.next = 13; + break; + } + + return _context.abrupt("return", new Error(this.i18nService.t('importFormatError'))); + + case 13: + _context.next = 15; + return this.postImport(importResult, organizationId); + + case 15: + return _context.abrupt("return", null); + + case 18: + return _context.abrupt("return", new Error(this.i18nService.t('importFormatError'))); + + case 19: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -107670,9 +108284,11 @@ var ImportService = /*#__PURE__*/function () { value: function getImporter(format) { var organization = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var importer = this.getImporterInstance(format); + if (importer == null) { return null; } + importer.organization = organization; return importer; } @@ -107682,110 +108298,161 @@ var ImportService = /*#__PURE__*/function () { if (format == null || format === '') { return null; } + switch (format) { case 'bitwardencsv': return new _importers_bitwardenCsvImporter__WEBPACK_IMPORTED_MODULE_15__["BitwardenCsvImporter"](); + case 'bitwardenjson': return new _importers_bitwardenJsonImporter__WEBPACK_IMPORTED_MODULE_16__["BitwardenJsonImporter"](); + case 'lastpasscsv': case 'passboltcsv': return new _importers_lastpassCsvImporter__WEBPACK_IMPORTED_MODULE_34__["LastPassCsvImporter"](); + case 'keepassxcsv': return new _importers_keepassxCsvImporter__WEBPACK_IMPORTED_MODULE_32__["KeePassXCsvImporter"](); + case 'aviracsv': return new _importers_aviraCsvImporter__WEBPACK_IMPORTED_MODULE_14__["AviraCsvImporter"](); + case 'blurcsv': return new _importers_blurCsvImporter__WEBPACK_IMPORTED_MODULE_18__["BlurCsvImporter"](); + case 'safeincloudxml': return new _importers_safeInCloudXmlImporter__WEBPACK_IMPORTED_MODULE_52__["SafeInCloudXmlImporter"](); + case 'padlockcsv': return new _importers_padlockCsvImporter__WEBPACK_IMPORTED_MODULE_41__["PadlockCsvImporter"](); + case 'keepass2xml': return new _importers_keepass2XmlImporter__WEBPACK_IMPORTED_MODULE_31__["KeePass2XmlImporter"](); + case 'chromecsv': case 'operacsv': case 'vivaldicsv': return new _importers_chromeCsvImporter__WEBPACK_IMPORTED_MODULE_20__["ChromeCsvImporter"](); + case 'firefoxcsv': return new _importers_firefoxCsvImporter__WEBPACK_IMPORTED_MODULE_27__["FirefoxCsvImporter"](); + case 'upmcsv': return new _importers_upmCsvImporter__WEBPACK_IMPORTED_MODULE_58__["UpmCsvImporter"](); + case 'saferpasscsv': return new _importers_saferpassCsvImport__WEBPACK_IMPORTED_MODULE_53__["SaferPassCsvImporter"](); + case 'meldiumcsv': return new _importers_meldiumCsvImporter__WEBPACK_IMPORTED_MODULE_36__["MeldiumCsvImporter"](); + case '1password1pif': return new _importers_onepassword1PifImporter__WEBPACK_IMPORTED_MODULE_39__["OnePassword1PifImporter"](); + case '1passwordwincsv': return new _importers_onepasswordWinCsvImporter__WEBPACK_IMPORTED_MODULE_40__["OnePasswordWinCsvImporter"](); + case 'keepercsv': return new _importers_keeperCsvImporter__WEBPACK_IMPORTED_MODULE_33__["KeeperCsvImporter"](); + case 'passworddragonxml': return new _importers_passwordDragonXmlImporter__WEBPACK_IMPORTED_MODULE_47__["PasswordDragonXmlImporter"](); + case 'enpasscsv': return new _importers_enpassCsvImporter__WEBPACK_IMPORTED_MODULE_25__["EnpassCsvImporter"](); + case 'enpassjson': return new _importers_enpassJsonImporter__WEBPACK_IMPORTED_MODULE_26__["EnpassJsonImporter"](); + case 'pwsafexml': return new _importers_passwordSafeXmlImporter__WEBPACK_IMPORTED_MODULE_48__["PasswordSafeXmlImporter"](); + case 'dashlanejson': return new _importers_dashlaneJsonImporter__WEBPACK_IMPORTED_MODULE_23__["DashlaneJsonImporter"](); + case 'msecurecsv': return new _importers_msecureCsvImporter__WEBPACK_IMPORTED_MODULE_37__["MSecureCsvImporter"](); + case 'stickypasswordxml': return new _importers_stickyPasswordXmlImporter__WEBPACK_IMPORTED_MODULE_56__["StickyPasswordXmlImporter"](); + case 'truekeycsv': return new _importers_truekeyCsvImporter__WEBPACK_IMPORTED_MODULE_57__["TrueKeyCsvImporter"](); + case 'clipperzhtml': return new _importers_clipperzHtmlImporter__WEBPACK_IMPORTED_MODULE_21__["ClipperzHtmlImporter"](); + case 'roboformcsv': return new _importers_roboformCsvImporter__WEBPACK_IMPORTED_MODULE_51__["RoboFormCsvImporter"](); + case 'ascendocsv': return new _importers_ascendoCsvImporter__WEBPACK_IMPORTED_MODULE_11__["AscendoCsvImporter"](); + case 'passwordbossjson': return new _importers_passwordBossJsonImporter__WEBPACK_IMPORTED_MODULE_46__["PasswordBossJsonImporter"](); + case 'zohovaultcsv': return new _importers_zohoVaultCsvImporter__WEBPACK_IMPORTED_MODULE_60__["ZohoVaultCsvImporter"](); + case 'splashidcsv': return new _importers_splashIdCsvImporter__WEBPACK_IMPORTED_MODULE_55__["SplashIdCsvImporter"](); + case 'passkeepcsv': return new _importers_passkeepCsvImporter__WEBPACK_IMPORTED_MODULE_42__["PassKeepCsvImporter"](); + case 'gnomejson': return new _importers_gnomeJsonImporter__WEBPACK_IMPORTED_MODULE_29__["GnomeJsonImporter"](); + case 'passwordagentcsv': return new _importers_passwordAgentCsvImporter__WEBPACK_IMPORTED_MODULE_45__["PasswordAgentCsvImporter"](); + case 'passpackcsv': return new _importers_passpackCsvImporter__WEBPACK_IMPORTED_MODULE_44__["PasspackCsvImporter"](); + case 'passmanjson': return new _importers_passmanJsonImporter__WEBPACK_IMPORTED_MODULE_43__["PassmanJsonImporter"](); + case 'avastcsv': return new _importers_avastCsvImporter__WEBPACK_IMPORTED_MODULE_12__["AvastCsvImporter"](); + case 'avastjson': return new _importers_avastJsonImporter__WEBPACK_IMPORTED_MODULE_13__["AvastJsonImporter"](); + case 'fsecurefsk': return new _importers_fsecureFskImporter__WEBPACK_IMPORTED_MODULE_28__["FSecureFskImporter"](); + case 'kasperskytxt': return new _importers_kasperskyTxtImporter__WEBPACK_IMPORTED_MODULE_30__["KasperskyTxtImporter"](); + case 'remembearcsv': return new _importers_rememBearCsvImporter__WEBPACK_IMPORTED_MODULE_50__["RememBearCsvImporter"](); + case 'passwordwallettxt': return new _importers_passwordWalletTxtImporter__WEBPACK_IMPORTED_MODULE_49__["PasswordWalletTxtImporter"](); + case 'mykicsv': return new _importers_mykiCsvImporter__WEBPACK_IMPORTED_MODULE_38__["MykiCsvImporter"](); + case 'securesafecsv': return new _importers_secureSafeCsvImporter__WEBPACK_IMPORTED_MODULE_54__["SecureSafeCsvImporter"](); + case 'logmeoncecsv': return new _importers_logMeOnceCsvImporter__WEBPACK_IMPORTED_MODULE_35__["LogMeOnceCsvImporter"](); + case 'blackberrycsv': return new _importers_blackBerryCsvImporter__WEBPACK_IMPORTED_MODULE_17__["BlackBerryCsvImporter"](); + case 'buttercupcsv': return new _importers_buttercupCsvImporter__WEBPACK_IMPORTED_MODULE_19__["ButtercupCsvImporter"](); + case 'codebookcsv': return new _importers_codebookCsvImporter__WEBPACK_IMPORTED_MODULE_22__["CodebookCsvImporter"](); + case 'encryptrcsv': return new _importers_encryptrCsvImporter__WEBPACK_IMPORTED_MODULE_24__["EncryptrCsvImporter"](); + case 'yoticsv': return new _importers_yotiCsvImporter__WEBPACK_IMPORTED_MODULE_59__["YotiCsvImporter"](); + default: return null; } @@ -107794,113 +108461,147 @@ var ImportService = /*#__PURE__*/function () { key: "postImport", value: function postImport(importResult) { var organizationId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var request, i, c, _i, f, _request, _i2, _c, _i3, _c2; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!(organizationId == null)) { - _context2.next = 27; - break; - } - request = new _models_request_importCiphersRequest__WEBPACK_IMPORTED_MODULE_8__["ImportCiphersRequest"](); - i = 0; - case 3: - if (!(i < importResult.ciphers.length)) { - _context2.next = 11; - break; - } - _context2.next = 6; - return this.cipherService.encrypt(importResult.ciphers[i]); - case 6: - c = _context2.sent; - request.ciphers.push(new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_5__["CipherRequest"](c)); - case 8: - i++; - _context2.next = 3; - break; - case 11: - if (!(importResult.folders != null)) { - _context2.next = 21; - break; - } - _i = 0; - case 13: - if (!(_i < importResult.folders.length)) { - _context2.next = 21; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!(organizationId == null)) { + _context2.next = 27; + break; + } + + request = new _models_request_importCiphersRequest__WEBPACK_IMPORTED_MODULE_8__["ImportCiphersRequest"](); + i = 0; + + case 3: + if (!(i < importResult.ciphers.length)) { + _context2.next = 11; + break; + } + + _context2.next = 6; + return this.cipherService.encrypt(importResult.ciphers[i]); + + case 6: + c = _context2.sent; + request.ciphers.push(new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_5__["CipherRequest"](c)); + + case 8: + i++; + _context2.next = 3; break; - } - _context2.next = 16; - return this.folderService.encrypt(importResult.folders[_i]); - case 16: - f = _context2.sent; - request.folders.push(new _models_request_folderRequest__WEBPACK_IMPORTED_MODULE_7__["FolderRequest"](f)); - case 18: - _i++; - _context2.next = 13; - break; - case 21: - if (importResult.folderRelationships != null) { - importResult.folderRelationships.forEach(function (r) { - return request.folderRelationships.push(new _models_request_kvpRequest__WEBPACK_IMPORTED_MODULE_10__["KvpRequest"](r[0], r[1])); - }); - } - _context2.next = 24; - return this.apiService.postImportCiphers(request); - case 24: - return _context2.abrupt("return", _context2.sent); - case 27: - _request = new _models_request_importOrganizationCiphersRequest__WEBPACK_IMPORTED_MODULE_9__["ImportOrganizationCiphersRequest"](); - _i2 = 0; - case 29: - if (!(_i2 < importResult.ciphers.length)) { - _context2.next = 38; + + case 11: + if (!(importResult.folders != null)) { + _context2.next = 21; + break; + } + + _i = 0; + + case 13: + if (!(_i < importResult.folders.length)) { + _context2.next = 21; + break; + } + + _context2.next = 16; + return this.folderService.encrypt(importResult.folders[_i]); + + case 16: + f = _context2.sent; + request.folders.push(new _models_request_folderRequest__WEBPACK_IMPORTED_MODULE_7__["FolderRequest"](f)); + + case 18: + _i++; + _context2.next = 13; break; - } - importResult.ciphers[_i2].organizationId = organizationId; - _context2.next = 33; - return this.cipherService.encrypt(importResult.ciphers[_i2]); - case 33: - _c = _context2.sent; - _request.ciphers.push(new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_5__["CipherRequest"](_c)); - case 35: - _i2++; - _context2.next = 29; - break; - case 38: - if (!(importResult.collections != null)) { - _context2.next = 49; + + case 21: + if (importResult.folderRelationships != null) { + importResult.folderRelationships.forEach(function (r) { + return request.folderRelationships.push(new _models_request_kvpRequest__WEBPACK_IMPORTED_MODULE_10__["KvpRequest"](r[0], r[1])); + }); + } + + _context2.next = 24; + return this.apiService.postImportCiphers(request); + + case 24: + return _context2.abrupt("return", _context2.sent); + + case 27: + _request = new _models_request_importOrganizationCiphersRequest__WEBPACK_IMPORTED_MODULE_9__["ImportOrganizationCiphersRequest"](); + _i2 = 0; + + case 29: + if (!(_i2 < importResult.ciphers.length)) { + _context2.next = 38; + break; + } + + importResult.ciphers[_i2].organizationId = organizationId; + _context2.next = 33; + return this.cipherService.encrypt(importResult.ciphers[_i2]); + + case 33: + _c = _context2.sent; + + _request.ciphers.push(new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_5__["CipherRequest"](_c)); + + case 35: + _i2++; + _context2.next = 29; break; - } - _i3 = 0; - case 40: - if (!(_i3 < importResult.collections.length)) { - _context2.next = 49; + + case 38: + if (!(importResult.collections != null)) { + _context2.next = 49; + break; + } + + _i3 = 0; + + case 40: + if (!(_i3 < importResult.collections.length)) { + _context2.next = 49; + break; + } + + importResult.collections[_i3].organizationId = organizationId; + _context2.next = 44; + return this.collectionService.encrypt(importResult.collections[_i3]); + + case 44: + _c2 = _context2.sent; + + _request.collections.push(new _models_request_collectionRequest__WEBPACK_IMPORTED_MODULE_6__["CollectionRequest"](_c2)); + + case 46: + _i3++; + _context2.next = 40; break; - } - importResult.collections[_i3].organizationId = organizationId; - _context2.next = 44; - return this.collectionService.encrypt(importResult.collections[_i3]); - case 44: - _c2 = _context2.sent; - _request.collections.push(new _models_request_collectionRequest__WEBPACK_IMPORTED_MODULE_6__["CollectionRequest"](_c2)); - case 46: - _i3++; - _context2.next = 40; - break; - case 49: - if (importResult.collectionRelationships != null) { - importResult.collectionRelationships.forEach(function (r) { - return _request.collectionRelationships.push(new _models_request_kvpRequest__WEBPACK_IMPORTED_MODULE_10__["KvpRequest"](r[0], r[1])); - }); - } - _context2.next = 52; - return this.apiService.postImportOrganizationCiphers(organizationId, _request); - case 52: - return _context2.abrupt("return", _context2.sent); - case 53: - case "end": - return _context2.stop(); + + case 49: + if (importResult.collectionRelationships != null) { + importResult.collectionRelationships.forEach(function (r) { + return _request.collectionRelationships.push(new _models_request_kvpRequest__WEBPACK_IMPORTED_MODULE_10__["KvpRequest"](r[0], r[1])); + }); + } + + _context2.next = 52; + return this.apiService.postImportOrganizationCiphers(organizationId, _request); + + case 52: + return _context2.abrupt("return", _context2.sent); + + case 53: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -107911,6 +108612,7 @@ var ImportService = /*#__PURE__*/function () { return (c.name == null || c.name === '--') && c.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login && c.login != null && _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].isNullOrWhitespace(c.login.password); } }]); + return ImportService; }(); @@ -107934,20 +108636,18 @@ __webpack_require__("AvzS")('Float32', 4, function (init) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolicyData", function() { return PolicyData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var PolicyData = function PolicyData(response) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolicyData); -var PolicyData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function PolicyData(response) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PolicyData); this.id = response.id; this.organizationId = response.organizationId; this.type = response.type; this.data = response.data; this.enabled = response.enabled; -}); +}; /***/ }), @@ -108097,12 +108797,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -108110,33 +108810,38 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var StickyPasswordXmlImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(StickyPasswordXmlImporter, _BaseImporter); - var _super = _createSuper(StickyPasswordXmlImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(StickyPasswordXmlImporter, _BaseImporter); + function StickyPasswordXmlImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, StickyPasswordXmlImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(StickyPasswordXmlImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(StickyPasswordXmlImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var doc = this.parseXml(data); + if (doc == null) { result.success = false; return result; } + var loginNodes = doc.querySelectorAll('root > Database > Logins > Login'); Array.from(loginNodes).forEach(function (loginNode) { var accountId = loginNode.getAttribute('ID'); + if (_this.isNullOrWhitespace(accountId)) { return; } + var usernameText = loginNode.getAttribute('Name'); var passwordText = loginNode.getAttribute('Password'); var titleText = null; @@ -108145,34 +108850,45 @@ var StickyPasswordXmlImporter = /*#__PURE__*/function (_BaseImporter) { var groupId = null; var groupText = null; var accountLogin = doc.querySelector('root > Database > Accounts > Account > ' + 'LoginLinks > Login[SourceLoginID="' + accountId + '"]'); + if (accountLogin != null) { var account = accountLogin.parentElement.parentElement; + if (account != null) { titleText = account.getAttribute('Name'); linkText = account.getAttribute('Link'); groupId = account.getAttribute('ParentID'); notesText = account.getAttribute('Comments'); + if (!_this.isNullOrWhitespace(notesText)) { notesText = notesText.split('/n').join('\n'); } } } + if (!_this.isNullOrWhitespace(groupId)) { groupText = _this.buildGroupText(doc, groupId, ''); + _this.processFolder(result, groupText); } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(titleText, '--'); cipher.notes = _this.getValueOrDefault(notesText); cipher.login.username = _this.getValueOrDefault(usernameText); cipher.login.password = _this.getValueOrDefault(passwordText); cipher.login.uris = _this.makeUriArray(linkText); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } @@ -108180,16 +108896,20 @@ var StickyPasswordXmlImporter = /*#__PURE__*/function (_BaseImporter) { key: "buildGroupText", value: function buildGroupText(doc, groupId, groupText) { var group = doc.querySelector('root > Database > Groups > Group[ID="' + groupId + '"]'); + if (group == null) { return groupText; } + if (!this.isNullOrWhitespace(groupText)) { groupText = '/' + groupText; } + groupText = group.getAttribute('Name') + groupText; return this.buildGroupText(doc, group.getAttribute('ParentID'), groupText); } }]); + return StickyPasswordXmlImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -112486,39 +113206,37 @@ module.exports = endOfISOYear "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionReadOnlyResponse", function() { return SelectionReadOnlyResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var SelectionReadOnlyResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SelectionReadOnlyResponse, _BaseResponse); - var _super = _createSuper(SelectionReadOnlyResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SelectionReadOnlyResponse, _BaseResponse); + function SelectionReadOnlyResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SelectionReadOnlyResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SelectionReadOnlyResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SelectionReadOnlyResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.readOnly = _this.getResponseProperty('ReadOnly'); _this.hidePasswords = _this.getResponseProperty('HidePasswords'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SelectionReadOnlyResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SelectionReadOnlyResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -112569,12 +113287,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -112582,8 +113300,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var NotesHeader = 'Notes\n\n'; @@ -112591,69 +113307,90 @@ var ApplicationsHeader = 'Applications\n\n'; var WebsitesHeader = 'Websites\n\n'; var Delimiter = '\n---\n'; var KasperskyTxtImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KasperskyTxtImporter, _BaseImporter); - var _super = _createSuper(KasperskyTxtImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(KasperskyTxtImporter, _BaseImporter); + function KasperskyTxtImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KasperskyTxtImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(KasperskyTxtImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(KasperskyTxtImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var notesData; var applicationsData; var websitesData; var workingData = this.splitNewLine(data).join('\n'); + if (workingData.indexOf(NotesHeader) !== -1) { var parts = workingData.split(NotesHeader); + if (parts.length > 1) { workingData = parts[0]; notesData = parts[1]; } } + if (workingData.indexOf(ApplicationsHeader) !== -1) { var _parts = workingData.split(ApplicationsHeader); + if (_parts.length > 1) { workingData = _parts[0]; applicationsData = _parts[1]; } } + if (workingData.indexOf(WebsitesHeader) === 0) { var _parts2 = workingData.split(WebsitesHeader); + if (_parts2.length > 1) { workingData = _parts2[0]; websitesData = _parts2[1]; } } + var notes = this.parseDataCategory(notesData); var applications = this.parseDataCategory(applicationsData); var websites = this.parseDataCategory(websitesData); notes.forEach(function (n) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(n.get('Name')); cipher.notes = _this.getValueOrDefault(n.get('Text')); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); websites.concat(applications).forEach(function (w) { var cipher = _this.initLoginCipher(); + var nameKey = w.has('Website name') ? 'Website name' : 'Application'; cipher.name = _this.getValueOrDefault(w.get(nameKey), ''); + if (!_this.isNullOrWhitespace(w.get('Login name'))) { if (!_this.isNullOrWhitespace(cipher.name)) { cipher.name += ': '; } + cipher.name += w.get('Login name'); } + cipher.notes = _this.getValueOrDefault(w.get('Comment')); + if (w.has('Website URL')) { cipher.login.uris = _this.makeUriArray(w.get('Website URL')); } + cipher.login.username = _this.getValueOrDefault(w.get('Login')); cipher.login.password = _this.getValueOrDefault(w.get('Password')); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; @@ -112665,11 +113402,13 @@ var KasperskyTxtImporter = /*#__PURE__*/function (_BaseImporter) { if (this.isNullOrWhitespace(data) || data.indexOf(Delimiter) === -1) { return []; } + var items = []; data.split(Delimiter).forEach(function (p) { if (p.indexOf('\n') === -1) { return; } + var item = new Map(); var itemComment; var itemCommentKey; @@ -112678,36 +113417,45 @@ var KasperskyTxtImporter = /*#__PURE__*/function (_BaseImporter) { itemComment += '\n' + l; return; } + var colonIndex = l.indexOf(':'); var key; var val; + if (colonIndex === -1) { return; } else { key = l.substring(0, colonIndex); + if (l.length > colonIndex + 1) { val = l.substring(colonIndex + 2); } } + if (key != null) { item.set(key, val); } + if (key === 'Comment' || key === 'Text') { itemComment = val; itemCommentKey = key; } }); + if (itemComment != null && itemCommentKey != null) { item.set(itemCommentKey, itemComment); } + if (item.size === 0) { return; } + items.push(item); }); return items; } }]); + return KasperskyTxtImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -113156,34 +113904,31 @@ if (false) {} "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordRequest", function() { return PasswordRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _passwordVerificationRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("+Ka3"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _passwordVerificationRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("+Ka3"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordRequest = /*#__PURE__*/function (_PasswordVerification) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordRequest, _PasswordVerification); - var _super = _createSuper(PasswordRequest); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PasswordRequest, _PasswordVerification); + function PasswordRequest() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PasswordRequest); - return _super.apply(this, arguments); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordRequest); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(PasswordRequest).apply(this, arguments)); } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PasswordRequest); -}(_passwordVerificationRequest__WEBPACK_IMPORTED_MODULE_5__["PasswordVerificationRequest"]); + + return PasswordRequest; +}(_passwordVerificationRequest__WEBPACK_IMPORTED_MODULE_4__["PasswordVerificationRequest"]); /***/ }), @@ -113296,20 +114041,20 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendFile", function() { return SendFile; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); /* harmony import */ var _data_sendFileData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("OaLA"); /* harmony import */ var _view_sendFileView__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("R67/"); @@ -113320,14 +114065,14 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -113336,6 +114081,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -113343,53 +114089,68 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var SendFile = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SendFile, _Domain); - var _super = _createSuper(SendFile); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(SendFile, _Domain); + function SendFile(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendFile); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendFile); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(SendFile).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); } + _this.size = obj.size; - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this), obj, { id: null, url: null, sizeName: null, fileName: null }, alreadyEncrypted, ['id', 'url', 'sizeName']); + return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SendFile, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SendFile, [{ key: "decrypt", value: function decrypt(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var view; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.decryptObj(new _view_sendFileView__WEBPACK_IMPORTED_MODULE_9__["SendFileView"](this), { - fileName: null - }, null, key); - case 2: - view = _context.sent; - return _context.abrupt("return", view); - case 4: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.decryptObj(new _view_sendFileView__WEBPACK_IMPORTED_MODULE_9__["SendFileView"](this), { + fileName: null + }, null, key); + + case 2: + view = _context.sent; + return _context.abrupt("return", view); + + case 4: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -113408,6 +114169,7 @@ var SendFile = /*#__PURE__*/function (_Domain) { return f; } }]); + return SendFile; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); @@ -114249,12 +115011,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cipherView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("01jR"); @@ -114270,8 +115032,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -114283,28 +115043,34 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var BitwardenCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BitwardenCsvImporter, _BaseImporter); - var _super = _createSuper(BitwardenCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(BitwardenCsvImporter, _BaseImporter); + function BitwardenCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BitwardenCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(BitwardenCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BitwardenCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (_this.organization && !_this.isNullOrWhitespace(value.collections)) { var collections = value.collections.split(','); collections.forEach(function (col) { var addCollection = true; var collectionIndex = result.collections.length; + for (var i = 0; i < result.collections.length; i++) { if (result.collections[i].name === col) { addCollection = false; @@ -114312,67 +115078,85 @@ var BitwardenCsvImporter = /*#__PURE__*/function (_BaseImporter) { break; } } + if (addCollection) { var collection = new _models_view_collectionView__WEBPACK_IMPORTED_MODULE_8__["CollectionView"](); collection.name = col; result.collections.push(collection); } + result.collectionRelationships.push([result.ciphers.length, collectionIndex]); }); } else if (!_this.organization) { _this.processFolder(result, value.folder); } + var cipher = new _models_view_cipherView__WEBPACK_IMPORTED_MODULE_7__["CipherView"](); cipher.favorite = !_this.organization && _this.getValueOrDefault(value.favorite, '0') !== '0' ? true : false; cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_12__["CipherType"].Login; cipher.notes = _this.getValueOrDefault(value.notes); cipher.name = _this.getValueOrDefault(value.name, '--'); + if (!_this.isNullOrWhitespace(value.fields)) { var fields = _this.splitNewLine(value.fields); + for (var i = 0; i < fields.length; i++) { if (_this.isNullOrWhitespace(fields[i])) { continue; } + var delimPosition = fields[i].lastIndexOf(': '); + if (delimPosition === -1) { continue; } + if (cipher.fields == null) { cipher.fields = []; } + var field = new _models_view_fieldView__WEBPACK_IMPORTED_MODULE_9__["FieldView"](); field.name = fields[i].substr(0, delimPosition); field.value = null; field.type = _enums_fieldType__WEBPACK_IMPORTED_MODULE_13__["FieldType"].Text; + if (fields[i].length > delimPosition + 2) { field.value = fields[i].substr(delimPosition + 2); } + cipher.fields.push(field); } } + var valueType = value.type != null ? value.type.toLowerCase() : null; + switch (valueType) { case 'note': cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_12__["CipherType"].SecureNote; cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_11__["SecureNoteView"](); cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_14__["SecureNoteType"].Generic; break; + default: cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_12__["CipherType"].Login; cipher.login = new _models_view_loginView__WEBPACK_IMPORTED_MODULE_10__["LoginView"](); cipher.login.totp = _this.getValueOrDefault(value.login_totp || value.totp); cipher.login.username = _this.getValueOrDefault(value.login_username || value.username); cipher.login.password = _this.getValueOrDefault(value.login_password || value.password); + var uris = _this.parseSingleRowCsv(value.login_uri || value.uri); + cipher.login.uris = _this.makeUriArray(uris); break; } + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return BitwardenCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -118115,20 +118899,18 @@ module.exports = _interopRequireWildcard, module.exports.__esModule = true, modu "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendRequest", function() { return SendRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _enums_sendType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Sy4r"); -/* harmony import */ var _api_sendFileApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("moVg"); -/* harmony import */ var _api_sendTextApi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("6HIV"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _enums_sendType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Sy4r"); +/* harmony import */ var _api_sendFileApi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("moVg"); +/* harmony import */ var _api_sendTextApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6HIV"); +var SendRequest = function SendRequest(send) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendRequest); -var SendRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function SendRequest(send) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendRequest); this.type = send.type; this.name = send.name ? send.name.encryptedString : null; this.notes = send.notes ? send.notes.encryptedString : null; @@ -118138,20 +118920,23 @@ var SendRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPOR this.key = send.key != null ? send.key.encryptedString : null; this.password = send.password; this.disabled = send.disabled; + switch (this.type) { - case _enums_sendType__WEBPACK_IMPORTED_MODULE_2__["SendType"].Text: - this.text = new _api_sendTextApi__WEBPACK_IMPORTED_MODULE_4__["SendTextApi"](); + case _enums_sendType__WEBPACK_IMPORTED_MODULE_1__["SendType"].Text: + this.text = new _api_sendTextApi__WEBPACK_IMPORTED_MODULE_3__["SendTextApi"](); this.text.text = send.text.text != null ? send.text.text.encryptedString : null; this.text.hidden = send.text.hidden; break; - case _enums_sendType__WEBPACK_IMPORTED_MODULE_2__["SendType"].File: - this.file = new _api_sendFileApi__WEBPACK_IMPORTED_MODULE_3__["SendFileApi"](); + + case _enums_sendType__WEBPACK_IMPORTED_MODULE_1__["SendType"].File: + this.file = new _api_sendFileApi__WEBPACK_IMPORTED_MODULE_2__["SendFileApi"](); this.file.fileName = send.file.fileName != null ? send.file.fileName.encryptedString : null; break; + default: break; } -}); +}; /***/ }), @@ -122541,6 +123326,7 @@ function verifyPlainObject(value, displayName, methodName) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationUserType", function() { return OrganizationUserType; }); var OrganizationUserType; + (function (OrganizationUserType) { OrganizationUserType[OrganizationUserType["Owner"] = 0] = "Owner"; OrganizationUserType[OrganizationUserType["Admin"] = 1] = "Admin"; @@ -123045,19 +123831,17 @@ var Tab = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](function "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FolderData", function() { return FolderData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var FolderData = function FolderData(response, userId) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FolderData); -var FolderData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function FolderData(response, userId) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FolderData); this.userId = userId; this.name = response.name; this.id = response.id; this.revisionDate = response.revisionDate; -}); +}; /***/ }), @@ -123708,71 +124492,78 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionResponse", function() { return CollectionResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionDetailsResponse", function() { return CollectionDetailsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionGroupDetailsResponse", function() { return CollectionGroupDetailsResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("F3ch"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("F3ch"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CollectionResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CollectionResponse, _BaseResponse); - var _super = _createSuper(CollectionResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CollectionResponse, _BaseResponse); + function CollectionResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(CollectionResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.organizationId = _this.getResponseProperty('OrganizationId'); _this.name = _this.getResponseProperty('Name'); _this.externalId = _this.getResponseProperty('ExternalId'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(CollectionResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return CollectionResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var CollectionDetailsResponse = /*#__PURE__*/function (_CollectionResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CollectionDetailsResponse, _CollectionResponse); - var _super2 = _createSuper(CollectionDetailsResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CollectionDetailsResponse, _CollectionResponse); + function CollectionDetailsResponse(response) { var _this2; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionDetailsResponse); - _this2 = _super2.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionDetailsResponse); + + _this2 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(CollectionDetailsResponse).call(this, response)); _this2.readOnly = _this2.getResponseProperty('ReadOnly') || false; return _this2; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(CollectionDetailsResponse); + + return CollectionDetailsResponse; }(CollectionResponse); var CollectionGroupDetailsResponse = /*#__PURE__*/function (_CollectionResponse2) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CollectionGroupDetailsResponse, _CollectionResponse2); - var _super3 = _createSuper(CollectionGroupDetailsResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CollectionGroupDetailsResponse, _CollectionResponse2); + function CollectionGroupDetailsResponse(response) { var _this3; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionGroupDetailsResponse); - _this3 = _super3.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionGroupDetailsResponse); + + _this3 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(CollectionGroupDetailsResponse).call(this, response)); _this3.groups = []; + var groups = _this3.getResponseProperty('Groups'); + if (groups != null) { _this3.groups = groups.map(function (g) { - return new _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_6__["SelectionReadOnlyResponse"](g); + return new _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_5__["SelectionReadOnlyResponse"](g); }); } + return _this3; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(CollectionGroupDetailsResponse); + + return CollectionGroupDetailsResponse; }(CollectionResponse); /***/ }), @@ -125238,12 +126029,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -125251,67 +126042,84 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PassmanJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PassmanJsonImporter, _BaseImporter); - var _super = _createSuper(PassmanJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PassmanJsonImporter, _BaseImporter); + function PassmanJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PassmanJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PassmanJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PassmanJsonImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || results.length === 0) { result.success = false; return result; } + results.forEach(function (credential) { if (credential.tags != null && credential.tags.length > 0) { var folderName = credential.tags[0].text; + _this.processFolder(result, folderName); } + var cipher = _this.initLoginCipher(); + cipher.name = credential.label; cipher.login.username = _this.getValueOrDefault(credential.username); + if (_this.isNullOrWhitespace(cipher.login.username)) { cipher.login.username = _this.getValueOrDefault(credential.email); } else if (!_this.isNullOrWhitespace(credential.email)) { cipher.notes = 'Email: ' + credential.email + '\n'; } + cipher.login.password = _this.getValueOrDefault(credential.password); cipher.login.uris = _this.makeUriArray(credential.url); cipher.notes += _this.getValueOrDefault(credential.description, ''); + if (credential.otp != null) { cipher.login.totp = _this.getValueOrDefault(credential.otp.secret); } + if (credential.custom_fields != null) { credential.custom_fields.forEach(function (customField) { switch (customField.field_type) { case 'text': case 'password': _this.processKvp(cipher, customField.label, customField.value); + break; } }); } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return PassmanJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -128321,43 +129129,56 @@ __webpack_require__.r(__webpack_exports__); var BaseResponse = /*#__PURE__*/function () { function BaseResponse(response) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BaseResponse); + this.response = response; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BaseResponse, [{ key: "getResponseProperty", value: function getResponseProperty(propertyName) { var response = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var exactName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + if (propertyName == null || propertyName === '') { throw new Error('propertyName must not be null/empty.'); } + if (response == null && this.response != null) { response = this.response; } + if (response == null) { return null; } + if (!exactName && response[propertyName] === undefined) { var otherCasePropertyName = null; + if (propertyName.charAt(0) === propertyName.charAt(0).toUpperCase()) { otherCasePropertyName = propertyName.charAt(0).toLowerCase(); } else { otherCasePropertyName = propertyName.charAt(0).toUpperCase(); } + if (propertyName.length > 1) { otherCasePropertyName += propertyName.slice(1); } + propertyName = otherCasePropertyName; + if (response[propertyName] === undefined) { propertyName = propertyName.toLowerCase(); } + if (response[propertyName] === undefined) { propertyName = propertyName.toUpperCase(); } } + return response[propertyName]; } }]); + return BaseResponse; }(); @@ -129024,35 +129845,34 @@ function getMillerRabinTests(bits) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IdentityTwoFactorResponse", function() { return IdentityTwoFactorResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var IdentityTwoFactorResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(IdentityTwoFactorResponse, _BaseResponse); - var _super = _createSuper(IdentityTwoFactorResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(IdentityTwoFactorResponse, _BaseResponse); + function IdentityTwoFactorResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, IdentityTwoFactorResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, IdentityTwoFactorResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(IdentityTwoFactorResponse).call(this, response)); _this.twoFactorProviders2 = new Map(); _this.twoFactorProviders = _this.getResponseProperty('TwoFactorProviders'); + var twoFactorProviders2 = _this.getResponseProperty('TwoFactorProviders2'); + if (twoFactorProviders2 != null) { for (var prop in twoFactorProviders2) { if (twoFactorProviders2.hasOwnProperty(prop)) { @@ -129060,10 +129880,12 @@ var IdentityTwoFactorResponse = /*#__PURE__*/function (_BaseResponse) { } } } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(IdentityTwoFactorResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return IdentityTwoFactorResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -129246,23 +130068,23 @@ module.exports = getISODay "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FolderView", function() { return FolderView; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var FolderView = function FolderView(f) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FolderView); -var FolderView = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function FolderView(f) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FolderView); this.id = null; this.name = null; this.revisionDate = null; + if (!f) { return; } + this.id = f.id; this.revisionDate = f.revisionDate; -}); +}; /***/ }), @@ -130793,122 +131615,6 @@ function ordinal (number) { module.exports = buildFormatLocale -/***/ }), - -/***/ "HdWn": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _slicedToArray2 = _interopRequireDefault(__webpack_require__("XkwL")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _PermissionDialog = _interopRequireDefault(__webpack_require__("TO1g")); -var _Buttons = _interopRequireDefault(__webpack_require__("/s+K")); -var _I18n = __webpack_require__("nUfk"); -var _Typography = _interopRequireDefault(__webpack_require__("9Ub/")); -var _cozyClient = __webpack_require__("xEu0"); -var _CozyAuthentification = _interopRequireDefault(__webpack_require__("eVGC")); -var _PasswordField = _interopRequireDefault(__webpack_require__("nKHg")); -var _withSpecificDialogsLocales = _interopRequireDefault(__webpack_require__("9DSx")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -/** - * Dialog used to authenticate a user in the cozy system. - * The authentication logic is implemented in the applications. - */ - -var AuthentificationDialog = function AuthentificationDialog(_ref) { - var onClose = _ref.onClose, - onSubmit = _ref.onSubmit, - isLoading = _ref.isLoading, - isOIDC = _ref.isOIDC, - error = _ref.error, - resetRedirection = _ref.resetRedirection; - var _useI18n = (0, _I18n.useI18n)(), - t = _useI18n.t; - var client = (0, _cozyClient.useClient)(); - var _useState = (0, _react.useState)(''), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - password = _useState2[0], - setPassword = _useState2[1]; - var handleSubmit = function handleSubmit(e) { - e.preventDefault(); - onSubmit(password); - }; - var onPasswordChange = function onPasswordChange(e) { - setPassword(e.currentTarget.value); - }; - var passphraseResetUrl = (0, _react.useMemo)(function () { - var url = new URL('/auth/passphrase_reset', client.getStackClient().uri); - if (resetRedirection) { - url.searchParams.set('from', resetRedirection); - } - return url.href; - }, [client, resetRedirection]); - return /*#__PURE__*/_react.default.createElement(_PermissionDialog.default, { - open: true, - onClose: onClose, - title: t("authentification-dialog.".concat(isOIDC ? 'title-oidc' : 'title')), - icon: _CozyAuthentification.default, - content: /*#__PURE__*/_react.default.createElement("form", { - onSubmit: handleSubmit - }, /*#__PURE__*/_react.default.createElement(_Typography.default, { - variant: "body1", - className: "u-ta-center" - }, t('authentification-dialog.subtitle')), /*#__PURE__*/_react.default.createElement(_PasswordField.default, { - autoFocus: true, - disabled: isLoading, - value: password, - onChange: onPasswordChange, - className: "u-mv-1", - label: t("authentification-dialog.".concat(isOIDC ? 'label-oidc' : 'label')), - error: Boolean(error), - helperText: error && t("authentification-dialog.errors.".concat(error)), - fullWidth: true, - required: true - }), /*#__PURE__*/_react.default.createElement(_Typography.default, { - variant: "body1", - component: "a", - color: "primary", - href: passphraseResetUrl, - className: "u-link" - }, t('authentification-dialog.forgotten-password'))), - actions: /*#__PURE__*/_react.default.createElement(_Buttons.default, { - busy: isLoading, - disabled: isLoading || password.length === 0, - onClick: handleSubmit, - label: t('authentification-dialog.unlock'), - fullWidth: true - }) - }); -}; -AuthentificationDialog.defaultProps = { - isOIDC: false -}; -AuthentificationDialog.propTypes = { - /** A function call on clicking the close button */ - onClose: _propTypes.default.func, - /** A function call on submitting the form with the password entered */ - onSubmit: _propTypes.default.func, - /** Waiting status, e.g. processing of form submission */ - isLoading: _propTypes.default.bool, - /** Show specific wording for OIDC */ - isOIDC: _propTypes.default.bool, - /** Error key to display a message */ - error: _propTypes.default.string, - /** Application slug where to redirect the user after a password reset */ - resetRedirection: _propTypes.default.string -}; -var _default = (0, _withSpecificDialogsLocales.default)(AuthentificationDialog); -exports.default = _default; - /***/ }), /***/ "He7o": @@ -134753,6 +135459,7 @@ module.exports = function (IS_INCLUDES) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolicyType", function() { return PolicyType; }); var PolicyType; + (function (PolicyType) { PolicyType[PolicyType["TwoFactorAuthentication"] = 0] = "TwoFactorAuthentication"; PolicyType[PolicyType["MasterPassword"] = 1] = "MasterPassword"; @@ -136545,52 +137252,56 @@ exports.default = _default; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginApi", function() { return LoginApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _loginUriApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hLut"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _loginUriApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("hLut"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var LoginApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LoginApi, _BaseResponse); - var _super = _createSuper(LoginApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(LoginApi, _BaseResponse); + function LoginApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, LoginApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(LoginApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.username = _this.getResponseProperty('Username'); _this.password = _this.getResponseProperty('Password'); _this.passwordRevisionDate = _this.getResponseProperty('PasswordRevisionDate'); _this.totp = _this.getResponseProperty('Totp'); + var uris = _this.getResponseProperty('Uris'); + if (uris != null) { _this.uris = uris.map(function (u) { - return new _loginUriApi__WEBPACK_IMPORTED_MODULE_6__["LoginUriApi"](u); + return new _loginUriApi__WEBPACK_IMPORTED_MODULE_5__["LoginUriApi"](u); }); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(LoginApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return LoginApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -136612,37 +137323,35 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherWithIdRequest", function() { return CipherWithIdRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _cipherRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("COvv"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _cipherRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("COvv"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CipherWithIdRequest = /*#__PURE__*/function (_CipherRequest) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CipherWithIdRequest, _CipherRequest); - var _super = _createSuper(CipherWithIdRequest); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CipherWithIdRequest, _CipherRequest); + function CipherWithIdRequest(cipher) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherWithIdRequest); - _this = _super.call(this, cipher); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherWithIdRequest); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(CipherWithIdRequest).call(this, cipher)); _this.id = cipher.id; return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(CipherWithIdRequest); -}(_cipherRequest__WEBPACK_IMPORTED_MODULE_5__["CipherRequest"]); + + return CipherWithIdRequest; +}(_cipherRequest__WEBPACK_IMPORTED_MODULE_4__["CipherRequest"]); /***/ }), @@ -137198,12 +137907,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -137217,8 +137926,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -137229,44 +137936,55 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var HandledResults = new Set(['ADDRESS', 'AUTHENTIFIANT', 'BANKSTATEMENT', 'IDCARD', 'IDENTITY', 'PAYMENTMEANS_CREDITCARD', 'PAYMENTMEAN_PAYPAL', 'EMAIL']); var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DashlaneJsonImporter, _BaseImporter); - var _super = _createSuper(DashlaneJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(DashlaneJsonImporter, _BaseImporter); + function DashlaneJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DashlaneJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(DashlaneJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DashlaneJsonImporter, [{ key: "parse", value: function parse(data) { this.result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || results.length === 0) { this.result.success = false; return this.result; } + if (results.ADDRESS != null) { this.processAddress(results.ADDRESS); } + if (results.AUTHENTIFIANT != null) { this.processAuth(results.AUTHENTIFIANT); } + if (results.BANKSTATEMENT != null) { this.processNote(results.BANKSTATEMENT, 'BankAccountName'); } + if (results.IDCARD != null) { this.processNote(results.IDCARD, 'Fullname'); } + if (results.PAYMENTMEANS_CREDITCARD != null) { this.processCard(results.PAYMENTMEANS_CREDITCARD); } + if (results.IDENTITY != null) { this.processIdentity(results.IDENTITY); } + for (var key in results) { if (results.hasOwnProperty(key) && !HandledResults.has(key)) { this.processNote(results[key], null, 'Generic Note'); } } + this.result.success = true; return this.result; } @@ -137274,20 +137992,27 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processAuth", value: function processAuth(results) { var _this = this; + results.forEach(function (credential) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(credential.title); cipher.login.username = _this.getValueOrDefault(credential.login, _this.getValueOrDefault(credential.secondaryLogin)); + if (_this.isNullOrWhitespace(cipher.login.username)) { cipher.login.username = _this.getValueOrDefault(credential.email); } else if (!_this.isNullOrWhitespace(credential.email)) { cipher.notes = 'Email: ' + credential.email + '\n'; } + cipher.login.password = _this.getValueOrDefault(credential.password); cipher.login.uris = _this.makeUriArray(credential.domain); cipher.notes += _this.getValueOrDefault(credential.note, ''); + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + _this.result.ciphers.push(cipher); }); } @@ -137295,23 +138020,29 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processIdentity", value: function processIdentity(results) { var _this2 = this; + results.forEach(function (obj) { var cipher = new _models_view_cipherView__WEBPACK_IMPORTED_MODULE_8__["CipherView"](); cipher.identity = new _models_view_identityView__WEBPACK_IMPORTED_MODULE_9__["IdentityView"](); cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Identity; cipher.name = _this2.getValueOrDefault(obj.fullName, ''); var nameParts = cipher.name.split(' '); + if (nameParts.length > 0) { cipher.identity.firstName = _this2.getValueOrDefault(nameParts[0]); } + if (nameParts.length === 2) { cipher.identity.lastName = _this2.getValueOrDefault(nameParts[1]); } else if (nameParts.length === 3) { cipher.identity.middleName = _this2.getValueOrDefault(nameParts[1]); cipher.identity.lastName = _this2.getValueOrDefault(nameParts[2]); } + cipher.identity.username = _this2.getValueOrDefault(obj.pseudo); + _this2.cleanupCipher(cipher); + _this2.result.ciphers.push(cipher); }); } @@ -137319,6 +138050,7 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processAddress", value: function processAddress(results) { var _this3 = this; + results.forEach(function (obj) { var cipher = new _models_view_cipherView__WEBPACK_IMPORTED_MODULE_8__["CipherView"](); cipher.identity = new _models_view_identityView__WEBPACK_IMPORTED_MODULE_9__["IdentityView"](); @@ -137329,10 +138061,13 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { cipher.identity.state = _this3.getValueOrDefault(obj.state); cipher.identity.postalCode = _this3.getValueOrDefault(obj.zipcode); cipher.identity.country = _this3.getValueOrDefault(obj.country); + if (cipher.identity.country != null) { cipher.identity.country = cipher.identity.country.toUpperCase(); } + _this3.cleanupCipher(cipher); + _this3.result.ciphers.push(cipher); }); } @@ -137340,6 +138075,7 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processCard", value: function processCard(results) { var _this4 = this; + results.forEach(function (obj) { var cipher = new _models_view_cipherView__WEBPACK_IMPORTED_MODULE_8__["CipherView"](); cipher.card = new _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__["CardView"](); @@ -137348,6 +138084,7 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { cipher.card.number = _this4.getValueOrDefault(obj.cardNumber); cipher.card.brand = _this4.getCardBrand(cipher.card.number); cipher.card.cardholderName = _this4.getValueOrDefault(obj.owner); + if (!_this4.isNullOrWhitespace(cipher.card.brand)) { if (_this4.isNullOrWhitespace(cipher.name)) { cipher.name = cipher.card.brand; @@ -137355,7 +138092,9 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { cipher.name += ' - ' + cipher.card.brand; } } + _this4.cleanupCipher(cipher); + _this4.result.ciphers.push(cipher); }); } @@ -137363,27 +138102,33 @@ var DashlaneJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processNote", value: function processNote(results, nameProperty) { var _this5 = this; + var name = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; results.forEach(function (obj) { var cipher = new _models_view_cipherView__WEBPACK_IMPORTED_MODULE_8__["CipherView"](); cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_10__["SecureNoteView"](); cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].SecureNote; cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_12__["SecureNoteType"].Generic; + if (name != null) { cipher.name = name; } else { cipher.name = _this5.getValueOrDefault(obj[nameProperty]); } + for (var key in obj) { if (obj.hasOwnProperty(key) && key !== nameProperty) { _this5.processKvp(cipher, key, obj[key].toString()); } } + _this5.cleanupCipher(cipher); + _this5.result.ciphers.push(cipher); }); } }]); + return DashlaneJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -140245,12 +140990,8 @@ var makeOverrides = function makeOverrides(theme) { '&.large': (0, _defineProperty2.default)({}, theme.breakpoints.up('md'), { width: '800px', maxWidth: '800px' - }), - '&.overflow': { - overflowY: 'visible !important' // Allow the icon to overflow the dialog, otherwise it will be cut off - } + }) }, - scrollPaper: { '&.alignTop': { alignItems: 'start' @@ -140654,20 +141395,24 @@ __webpack_require__.r(__webpack_exports__); var AttachmentView = /*#__PURE__*/function () { function AttachmentView(a) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AttachmentView); + this.id = null; this.url = null; this.size = null; this.sizeName = null; this.fileName = null; this.key = null; + if (!a) { return; } + this.id = a.id; this.url = a.url; this.size = a.size; this.sizeName = a.sizeName; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AttachmentView, [{ key: "fileSize", get: function get() { @@ -140676,9 +141421,11 @@ var AttachmentView = /*#__PURE__*/function () { return parseInt(this.size, null); } } catch (_a) {} + return 0; } }]); + return AttachmentView; }(); @@ -142760,12 +143507,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _enums_fieldType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("9EMJ"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("p57L"); @@ -142775,40 +143522,47 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var KeePass2XmlImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KeePass2XmlImporter, _BaseImporter); - var _super = _createSuper(KeePass2XmlImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(KeePass2XmlImporter, _BaseImporter); + function KeePass2XmlImporter() { var _this; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KeePass2XmlImporter); - _this = _super.apply(this, arguments); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(KeePass2XmlImporter).apply(this, arguments)); _this.result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_7__["ImportResult"](); return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(KeePass2XmlImporter, [{ key: "parse", value: function parse(data) { var doc = this.parseXml(data); + if (doc == null) { this.result.success = false; return this.result; } + var rootGroup = doc.querySelector('KeePassFile > Root > Group'); + if (rootGroup == null) { this.result.errorMessage = 'Missing `KeePassFile > Root > Group` node.'; this.result.success = false; return this.result; } + this.traverse(rootGroup, true, ''); + if (this.organization) { this.moveFoldersToCollections(this.result); } + this.result.success = true; return this.result; } @@ -142816,29 +143570,40 @@ var KeePass2XmlImporter = /*#__PURE__*/function (_BaseImporter) { key: "traverse", value: function traverse(node, isRootNode, groupPrefixName) { var _this2 = this; + var folderIndex = this.result.folders.length; var groupName = groupPrefixName; + if (!isRootNode) { if (groupName !== '') { groupName += '/'; } + var nameEl = this.querySelectorDirectChild(node, 'Name'); groupName += nameEl == null ? '-' : nameEl.textContent; var folder = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_8__["FolderView"](); folder.name = groupName; this.result.folders.push(folder); } + this.querySelectorAllDirectChild(node, 'Entry').forEach(function (entry) { var cipherIndex = _this2.result.ciphers.length; + var cipher = _this2.initLoginCipher(); + _this2.querySelectorAllDirectChild(entry, 'String').forEach(function (entryString) { var valueEl = _this2.querySelectorDirectChild(entryString, 'Value'); + var value = valueEl != null ? valueEl.textContent : null; + if (_this2.isNullOrWhitespace(value)) { return; } + var keyEl = _this2.querySelectorDirectChild(entryString, 'Key'); + var key = keyEl != null ? keyEl.textContent : null; + if (key === 'URL') { cipher.login.uris = _this2.makeUriArray(value); } else if (key === 'UserName') { @@ -142854,14 +143619,19 @@ var KeePass2XmlImporter = /*#__PURE__*/function (_BaseImporter) { } else { var type = _enums_fieldType__WEBPACK_IMPORTED_MODULE_6__["FieldType"].Text; var attrs = valueEl.attributes; + if (attrs.length > 0 && attrs.ProtectInMemory != null && attrs.ProtectInMemory.value === 'True') { type = _enums_fieldType__WEBPACK_IMPORTED_MODULE_6__["FieldType"].Hidden; } + _this2.processKvp(cipher, key, value, type); } }); + _this2.cleanupCipher(cipher); + _this2.result.ciphers.push(cipher); + if (!isRootNode) { _this2.result.folderRelationships.push([cipherIndex, folderIndex]); } @@ -142871,6 +143641,7 @@ var KeePass2XmlImporter = /*#__PURE__*/function (_BaseImporter) { }); } }]); + return KeePass2XmlImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -144546,48 +145317,49 @@ module.exports = function (key) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomainsResponse", function() { return DomainsResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _globalDomainResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ZrLF"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _globalDomainResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("ZrLF"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var DomainsResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DomainsResponse, _BaseResponse); - var _super = _createSuper(DomainsResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DomainsResponse, _BaseResponse); + function DomainsResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DomainsResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DomainsResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(DomainsResponse).call(this, response)); _this.globalEquivalentDomains = []; _this.equivalentDomains = _this.getResponseProperty('EquivalentDomains'); + var globalEquivalentDomains = _this.getResponseProperty('GlobalEquivalentDomains'); + if (globalEquivalentDomains != null) { _this.globalEquivalentDomains = globalEquivalentDomains.map(function (d) { - return new _globalDomainResponse__WEBPACK_IMPORTED_MODULE_6__["GlobalDomainResponse"](d); + return new _globalDomainResponse__WEBPACK_IMPORTED_MODULE_5__["GlobalDomainResponse"](d); }); } else { _this.globalEquivalentDomains = []; } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(DomainsResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return DomainsResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -144694,28 +145466,28 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("L7vP"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordGeneratorPolicyOptions = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordGeneratorPolicyOptions, _Domain); - var _super = _createSuper(PasswordGeneratorPolicyOptions); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordGeneratorPolicyOptions, _Domain); + function PasswordGeneratorPolicyOptions() { var _this; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordGeneratorPolicyOptions); - _this = _super.apply(this, arguments); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordGeneratorPolicyOptions).apply(this, arguments)); _this.defaultType = ''; _this.minLength = 0; _this.useUppercase = false; @@ -144729,12 +145501,14 @@ var PasswordGeneratorPolicyOptions = /*#__PURE__*/function (_Domain) { _this.includeNumber = false; return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordGeneratorPolicyOptions, [{ key: "inEffect", value: function inEffect() { return this.defaultType !== '' || this.minLength > 0 || this.numberCount > 0 || this.specialCount > 0 || this.useUppercase || this.useLowercase || this.useNumbers || this.useSpecial || this.minNumberWords > 0 || this.capitalize || this.includeNumber; } }]); + return PasswordGeneratorPolicyOptions; }(_domainBase__WEBPACK_IMPORTED_MODULE_5__["default"]); @@ -144746,18 +145520,16 @@ var PasswordGeneratorPolicyOptions = /*#__PURE__*/function (_Domain) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportOrganizationCiphersRequest", function() { return ImportOrganizationCiphersRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var ImportOrganizationCiphersRequest = function ImportOrganizationCiphersRequest() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ImportOrganizationCiphersRequest); -var ImportOrganizationCiphersRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function ImportOrganizationCiphersRequest() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ImportOrganizationCiphersRequest); this.ciphers = []; this.collections = []; this.collectionRelationships = []; -}); +}; /***/ }), @@ -144967,26 +145739,32 @@ var ServiceUtils = /*#__PURE__*/function () { function ServiceUtils() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ServiceUtils); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ServiceUtils, null, [{ key: "nestedTraverse", value: function nestedTraverse(nodeTree, partIndex, parts, obj, parent, delimiter) { if (parts.length <= partIndex) { return; } + var end = partIndex === parts.length - 1; var partName = parts[partIndex]; + for (var i = 0; i < nodeTree.length; i++) { if (nodeTree[i].node.name !== parts[partIndex]) { continue; } + if (end && nodeTree[i].node.id !== obj.id) { // Another node with the same name. nodeTree.push(new _models_domain_treeNode__WEBPACK_IMPORTED_MODULE_3__["TreeNode"](obj, partName, parent)); return; } + ServiceUtils.nestedTraverse(nodeTree[i].children, partIndex + 1, parts, obj, nodeTree[i].node, delimiter); return; } + if (nodeTree.filter(function (n) { return n.node.name === partName; }).length === 0) { @@ -144994,6 +145772,7 @@ var ServiceUtils = /*#__PURE__*/function () { nodeTree.push(new _models_domain_treeNode__WEBPACK_IMPORTED_MODULE_3__["TreeNode"](obj, partName, parent)); return; } + var newPartName = parts[partIndex] + delimiter + parts[partIndex + 1]; ServiceUtils.nestedTraverse(nodeTree, 0, [newPartName].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parts.slice(partIndex + 2))), obj, parent, delimiter); } @@ -145006,14 +145785,17 @@ var ServiceUtils = /*#__PURE__*/function () { return nodeTree[i]; } else if (nodeTree[i].children != null) { var node = ServiceUtils.getTreeNodeObject(nodeTree[i].children, id); + if (node !== null) { return node; } } } + return null; } }]); + return ServiceUtils; }(); @@ -145251,6 +146033,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _bitwarden_jslib_enums_deviceType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("BxTv"); + /* * This file is a modified version of /src/services/webPlatformUtils.service.ts * in https://github.com/bitwarden/web which is licensed with the terms of the @@ -145261,15 +146044,18 @@ __webpack_require__.r(__webpack_exports__); var StrippedWebPlatformUtilsService = /*#__PURE__*/function () { function StrippedWebPlatformUtilsService() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, StrippedWebPlatformUtilsService); + this.identityClientId = 'web'; this.browserCache = null; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(StrippedWebPlatformUtilsService, [{ key: "getDevice", value: function getDevice() { if (this.browserCache != null) { return this.browserCache; } + if (navigator.userAgent.indexOf(' Firefox/') !== -1 || navigator.userAgent.indexOf(' Gecko/') !== -1) { this.browserCache = _bitwarden_jslib_enums_deviceType__WEBPACK_IMPORTED_MODULE_2__["DeviceType"].FirefoxBrowser; } else if (navigator.userAgent.indexOf(' OPR/') >= 0) { @@ -145287,6 +146073,7 @@ var StrippedWebPlatformUtilsService = /*#__PURE__*/function () { } else { this.browserCache = _bitwarden_jslib_enums_deviceType__WEBPACK_IMPORTED_MODULE_2__["DeviceType"].UnknownBrowser; } + return this.browserCache; } }, { @@ -145347,10 +146134,12 @@ var StrippedWebPlatformUtilsService = /*#__PURE__*/function () { return true; } }]); + return StrippedWebPlatformUtilsService; }(); + /***/ }), /***/ "KN6z": @@ -147607,14 +148396,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _view_folderView__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("HNJe"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); @@ -147623,28 +148412,33 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Folder = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Folder, _Domain); - var _super = _createSuper(Folder); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Folder, _Domain); + function Folder(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Folder); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Folder).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { id: null, name: null }, alreadyEncrypted, ['id']); + _this.revisionDate = obj.revisionDate != null ? new Date(obj.revisionDate) : null; return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Folder, [{ key: "decrypt", value: function decrypt() { @@ -147653,6 +148447,7 @@ var Folder = /*#__PURE__*/function (_Domain) { }, null); } }]); + return Folder; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); @@ -147789,6 +148584,93 @@ exports.default = _default; /***/ }), +/***/ "Kk0D": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__("jm00"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = exports.DeprecatedDivider = void 0; +var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); +var _Divider = _interopRequireDefault(__webpack_require__("91rv")); +var _styles = __webpack_require__("/6lT"); +var _theme = __webpack_require__("+JGN"); +var _TextDivider = _interopRequireDefault(__webpack_require__("is8I")); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +var _root; +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; +} +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { + (0, _defineProperty2.default)(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; +} +/** + * @desc If this component is provided a string children, it will render a `<TextDivider>` component + * and will handle the `textAlign` prop that accepts a `"center"` or undefined value + */ + +var Divider = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) { + return typeof props.children === 'string' ? /*#__PURE__*/_react.default.createElement(_TextDivider.default, (0, _extends2.default)({}, props, { + ref: ref + })) : /*#__PURE__*/_react.default.createElement(_Divider.default, (0, _extends2.default)({}, props, { + ref: ref + })); +}); +Divider.displayName = 'Divider'; +Divider.propTypes = _objectSpread({}, _TextDivider.default.propTypes); +var _default = Divider; +exports.default = _default; +var defaultValues = { + borderRadius: 6, + dialog: { + sm: { + padding: 16 + }, + md: { + padding: 32 + } + } +}; +var DeprecatedDivider = (0, _styles.withStyles)({ + /** + * calcs are made since we have defaultMargin on the Dialog so + * we need to remove the left margin and add the width of 2 margins + * in order to have the divider takes the full width of the Modal + */ + root: (_root = {}, (0, _defineProperty2.default)(_root, _theme.normalTheme.breakpoints.down('md'), { + width: "calc(100% + ".concat(defaultValues.dialog.sm.padding, "*2px)"), + marginLeft: "-".concat(defaultValues.dialog.sm.padding, "px") + }), (0, _defineProperty2.default)(_root, _theme.normalTheme.breakpoints.up('md'), { + width: "calc(100% + ".concat(defaultValues.dialog.md.padding, "*2px)"), + marginLeft: "-".concat(defaultValues.dialog.md.padding, "px") + }), _root) +})(Divider); +exports.DeprecatedDivider = DeprecatedDivider; + +/***/ }), + /***/ "Kl0M": /***/ (function(module, exports, __webpack_require__) { @@ -148122,34 +149004,31 @@ module.exports = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationResponse", function() { return OrganizationResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _planResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("XooL"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _planResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("XooL"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var OrganizationResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationResponse, _BaseResponse); - var _super = _createSuper(OrganizationResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(OrganizationResponse, _BaseResponse); + function OrganizationResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, OrganizationResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OrganizationResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.identifier = _this.getResponseProperty('Identifier'); _this.name = _this.getResponseProperty('Name'); @@ -148160,8 +149039,10 @@ var OrganizationResponse = /*#__PURE__*/function (_BaseResponse) { _this.businessCountry = _this.getResponseProperty('BusinessCountry'); _this.businessTaxNumber = _this.getResponseProperty('BusinessTaxNumber'); _this.billingEmail = _this.getResponseProperty('BillingEmail'); + var plan = _this.getResponseProperty('Plan'); - _this.plan = plan == null ? null : new _planResponse__WEBPACK_IMPORTED_MODULE_6__["PlanResponse"](plan); + + _this.plan = plan == null ? null : new _planResponse__WEBPACK_IMPORTED_MODULE_5__["PlanResponse"](plan); _this.planType = _this.getResponseProperty('PlanType'); _this.seats = _this.getResponseProperty('Seats'); _this.maxCollections = _this.getResponseProperty('MaxCollections'); @@ -148174,8 +149055,9 @@ var OrganizationResponse = /*#__PURE__*/function (_BaseResponse) { _this.useApi = _this.getResponseProperty('UseApi'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(OrganizationResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return OrganizationResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -151136,22 +152018,24 @@ module.exports = buildDistanceInWordsLocale "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Domain; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _cipherString__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Zk9R"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -151160,6 +152044,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -151167,26 +152052,34 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + + var Domain = /*#__PURE__*/function () { function Domain() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Domain); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Domain); } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Domain, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Domain, [{ key: "buildDomainModel", value: function buildDomainModel(domain, dataObj, map, alreadyEncrypted) { var notEncList = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; + for (var prop in map) { if (!map.hasOwnProperty(prop)) { continue; } + var objProp = dataObj[map[prop] || prop]; + if (alreadyEncrypted === true || notEncList.indexOf(prop) > -1) { domain[prop] = objProp ? objProp : null; } else { @@ -151198,11 +152091,14 @@ var Domain = /*#__PURE__*/function () { key: "buildDataModel", value: function buildDataModel(domain, dataObj, map) { var notCipherStringList = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; + for (var prop in map) { if (!map.hasOwnProperty(prop)) { continue; } + var objProp = domain[map[prop] || prop]; + if (notCipherStringList.indexOf(prop) > -1) { dataObj[prop] = objProp != null ? objProp : null; } else { @@ -151214,58 +152110,73 @@ var Domain = /*#__PURE__*/function () { key: "decryptObj", value: function decryptObj(viewModel, map, orgId) { var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var promises, self, prop; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - promises = []; - self = this; - _context.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.keys(map); - case 3: - if ((_context.t1 = _context.t0()).done) { - _context.next = 10; - break; - } - prop = _context.t1.value; - if (map.hasOwnProperty(prop)) { - _context.next = 7; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + promises = []; + self = this; + _context.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.keys(map); + + case 3: + if ((_context.t1 = _context.t0()).done) { + _context.next = 10; + break; + } + + prop = _context.t1.value; + + if (map.hasOwnProperty(prop)) { + _context.next = 7; + break; + } + + return _context.abrupt("continue", 3); + + case 7: + // tslint:disable-next-line + (function (theProp) { + var p = Promise.resolve().then(function () { + var mapProp = map[theProp] || theProp; + + if (self[mapProp]) { + return self[mapProp].decrypt(orgId, key); + } + + return null; + }).then(function (val) { + viewModel[theProp] = val; + }); + promises.push(p); + })(prop); + + _context.next = 3; break; - } - return _context.abrupt("continue", 3); - case 7: - // tslint:disable-next-line - (function (theProp) { - var p = Promise.resolve().then(function () { - var mapProp = map[theProp] || theProp; - if (self[mapProp]) { - return self[mapProp].decrypt(orgId, key); - } - return null; - }).then(function (val) { - viewModel[theProp] = val; - }); - promises.push(p); - })(prop); - _context.next = 3; - break; - case 10: - _context.next = 12; - return Promise.all(promises); - case 12: - return _context.abrupt("return", viewModel); - case 13: - case "end": - return _context.stop(); + + case 10: + _context.next = 12; + return Promise.all(promises); + + case 12: + return _context.abrupt("return", viewModel); + + case 13: + case "end": + return _context.stop(); + } } }, _callee, this); })); } }]); + return Domain; }(); + /***/ }), /***/ "LA01": @@ -153819,37 +154730,40 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ErrorResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ErrorResponse, _BaseResponse); - var _super = _createSuper(ErrorResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ErrorResponse, _BaseResponse); + function ErrorResponse(response, status, identityResponse) { var _this; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ErrorResponse); - _this = _super.call(this, response); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ErrorResponse).call(this, response)); var errorModel = null; + if (response != null) { var responseErrorModel = _this.getResponseProperty('ErrorModel'); + if (responseErrorModel && identityResponse) { errorModel = responseErrorModel; } else { errorModel = response; } } + if (errorModel) { _this.message = _this.getResponseProperty('Message', errorModel); _this.validationErrors = _this.getResponseProperty('ValidationErrors', errorModel); @@ -153858,53 +154772,68 @@ var ErrorResponse = /*#__PURE__*/function (_BaseResponse) { _this.message = 'Rate limit exceeded. Try again later.'; } } + _this.statusCode = status; return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ErrorResponse, [{ key: "getSingleMessage", value: function getSingleMessage() { if (this.validationErrors == null) { return this.message; } + for (var key in this.validationErrors) { if (!this.validationErrors.hasOwnProperty(key)) { continue; } + if (this.validationErrors[key].length) { return this.validationErrors[key][0]; } } + return this.message; } }, { key: "getAllMessages", value: function getAllMessages() { var _this2 = this; + var messages = []; + if (this.validationErrors == null) { return messages; } + var _loop = function _loop(key) { if (!_this2.validationErrors.hasOwnProperty(key)) { return "continue"; } + _this2.validationErrors[key].forEach(function (item) { var prefix = ''; + if (key.indexOf('[') > -1 && key.indexOf(']') > -1) { var lastSep = key.lastIndexOf('.'); prefix = key.substr(0, lastSep > -1 ? lastSep : key.length) + ': '; } + messages.push(prefix + item); }); }; + for (var key in this.validationErrors) { var _ret = _loop(key); + if (_ret === "continue") continue; } + return messages; } }]); + return ErrorResponse; }(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); @@ -157686,10 +158615,13 @@ __webpack_require__.r(__webpack_exports__); var Card = /*#__PURE__*/function () { function Card(o) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Card); + var _a, _b, _c, _d, _e, _f; + if (o == null) { return; } + if (o instanceof _view_cardView__WEBPACK_IMPORTED_MODULE_2__["CardView"]) { this.cardholderName = o.cardholderName; this.brand = o.brand; @@ -157706,6 +158638,7 @@ var Card = /*#__PURE__*/function () { this.code = (_f = o.code) === null || _f === void 0 ? void 0 : _f.encryptedString; } } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Card, null, [{ key: "template", value: function template() { @@ -157731,6 +158664,7 @@ var Card = /*#__PURE__*/function () { return view; } }]); + return Card; }(); @@ -157746,12 +158680,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ykCz"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("p57L"); @@ -157761,36 +158695,42 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var RememBearCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(RememBearCsvImporter, _BaseImporter); - var _super = _createSuper(RememBearCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(RememBearCsvImporter, _BaseImporter); + function RememBearCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RememBearCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(RememBearCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RememBearCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_7__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.trash === 'true') { return; } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.name); cipher.notes = _this.getValueOrDefault(value.notes); + if (value.type === 'LoginItem') { cipher.login.uris = _this.makeUriArray(value.website); cipher.login.password = _this.getValueOrDefault(value.password); @@ -157802,40 +158742,53 @@ var RememBearCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.card.number = _this.getValueOrDefault(value.number); cipher.card.brand = _this.getCardBrand(cipher.card.number); cipher.card.code = _this.getValueOrDefault(value.verification); + try { var expMonth = _this.getValueOrDefault(value.expiryMonth); + if (expMonth != null) { var expMonthNumber = parseInt(expMonth, null); + if (expMonthNumber != null && expMonthNumber >= 1 && expMonthNumber <= 12) { cipher.card.expMonth = expMonthNumber.toString(); } } } catch (_a) {} + try { var expYear = _this.getValueOrDefault(value.expiryYear); + if (expYear != null) { var expYearNumber = parseInt(expYear, null); + if (expYearNumber != null) { cipher.card.expYear = expYearNumber.toString(); } } } catch (_b) {} + var pin = _this.getValueOrDefault(value.pin); + if (pin != null) { _this.processKvp(cipher, 'PIN', pin); } + var zip = _this.getValueOrDefault(value.zipCode); + if (zip != null) { _this.processKvp(cipher, 'Zip Code', zip); } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return RememBearCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -159549,16 +160502,20 @@ __webpack_require__.r(__webpack_exports__); var LoginView = /*#__PURE__*/function () { function LoginView(l) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginView); + this.username = null; this.password = null; this.passwordRevisionDate = null; this.totp = null; this.uris = null; + if (!l) { return; } + this.passwordRevisionDate = l.passwordRevisionDate; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LoginView, [{ key: "uri", get: function get() { @@ -159588,10 +160545,12 @@ var LoginView = /*#__PURE__*/function () { var uri = this.uris.find(function (u) { return u.canLaunch; }); + if (uri != null) { return uri.launchUri; } } + return null; } }, { @@ -159600,6 +160559,7 @@ var LoginView = /*#__PURE__*/function () { return this.uris != null && this.uris.length > 0; } }]); + return LoginView; }(); @@ -159679,12 +160639,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -159692,68 +160652,88 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var GnomeJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GnomeJsonImporter, _BaseImporter); - var _super = _createSuper(GnomeJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(GnomeJsonImporter, _BaseImporter); + function GnomeJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GnomeJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(GnomeJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GnomeJsonImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || Object.keys(results).length === 0) { result.success = false; return result; } + var _loop = function _loop(keyRing) { if (!results.hasOwnProperty(keyRing) || _this.isNullOrWhitespace(keyRing) || results[keyRing].length === 0) { return "continue"; } + results[keyRing].forEach(function (value) { if (_this.isNullOrWhitespace(value.display_name) || value.display_name.indexOf('http') !== 0) { return; } + _this.processFolder(result, keyRing); + var cipher = _this.initLoginCipher(); + cipher.name = value.display_name.replace('http://', '').replace('https://', ''); + if (cipher.name.length > 30) { cipher.name = cipher.name.substring(0, 30); } + cipher.login.password = _this.getValueOrDefault(value.secret); cipher.login.uris = _this.makeUriArray(value.display_name); + if (value.attributes != null) { cipher.login.username = value.attributes != null ? _this.getValueOrDefault(value.attributes.username_value) : null; + for (var attr in value.attributes) { if (!value.attributes.hasOwnProperty(attr) || attr === 'username_value' || attr === 'xdg:schema') { continue; } + _this.processKvp(cipher, attr, value.attributes[attr]); } } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); }; + for (var keyRing in results) { var _ret = _loop(keyRing); + if (_ret === "continue") continue; } + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return GnomeJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -159769,12 +160749,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ykCz"); @@ -159784,55 +160764,67 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var AvastJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AvastJsonImporter, _BaseImporter); - var _super = _createSuper(AvastJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(AvastJsonImporter, _BaseImporter); + function AvastJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AvastJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(AvastJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AvastJsonImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null) { result.success = false; return result; } + if (results.logins != null) { results.logins.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.custName); cipher.notes = _this.getValueOrDefault(value.note); cipher.login.uris = _this.makeUriArray(value.url); cipher.login.password = _this.getValueOrDefault(value.pwd); cipher.login.username = _this.getValueOrDefault(value.loginName); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); } + if (results.notes != null) { results.notes.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote; cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_8__["SecureNoteType"].Generic; cipher.name = _this.getValueOrDefault(value.label); cipher.notes = _this.getValueOrDefault(value.text); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); } + if (results.cards != null) { results.cards.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card; cipher.name = _this.getValueOrDefault(value.custName); cipher.notes = _this.getValueOrDefault(value.note); @@ -159840,22 +160832,28 @@ var AvastJsonImporter = /*#__PURE__*/function (_BaseImporter) { cipher.card.number = _this.getValueOrDefault(value.cardNumber); cipher.card.code = _this.getValueOrDefault(value.cvv); cipher.card.brand = _this.getCardBrand(cipher.card.number); + if (value.expirationDate != null) { if (value.expirationDate.month != null) { cipher.card.expMonth = value.expirationDate.month + ''; } + if (value.expirationDate.year != null) { cipher.card.expYear = value.expirationDate.year + ''; } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); } + result.success = true; return result; } }]); + return AvastJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -159904,19 +160902,17 @@ function debounce(func) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherCreateRequest", function() { return CipherCreateRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _cipherRequest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("COvv"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _cipherRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("COvv"); +var CipherCreateRequest = function CipherCreateRequest(cipher) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherCreateRequest); -var CipherCreateRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherCreateRequest(cipher) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherCreateRequest); - this.cipher = new _cipherRequest__WEBPACK_IMPORTED_MODULE_2__["CipherRequest"](cipher); + this.cipher = new _cipherRequest__WEBPACK_IMPORTED_MODULE_1__["CipherRequest"](cipher); this.collectionIds = cipher.collectionIds; -}); +}; /***/ }), @@ -160075,12 +161071,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("a16p"); @@ -160097,8 +161093,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -160110,31 +161104,39 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(LastPassCsvImporter, _BaseImporter); - var _super = _createSuper(LastPassCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(LastPassCsvImporter, _BaseImporter); + function LastPassCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, LastPassCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(LastPassCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(LastPassCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_7__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value, index) { var cipherIndex = result.ciphers.length; var folderIndex = result.folders.length; var grouping = value.grouping; + if (grouping != null) { grouping = grouping.replace(/\\/g, '/').replace(/[\x00-\x1F\x7F-\x9F]/g, ''); } + var hasFolder = _this.getValueOrDefault(grouping, '(none)') !== '(none)'; var addFolder = hasFolder; + if (hasFolder) { for (var i = 0; i < result.folders.length; i++) { if (result.folders[i].name === grouping) { @@ -160144,7 +161146,9 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { } } } + var cipher = _this.buildBaseCipher(value); + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Login) { cipher.notes = _this.getValueOrDefault(value.extra); cipher.login = new _models_view_loginView__WEBPACK_IMPORTED_MODULE_12__["LoginView"](); @@ -160159,28 +161163,35 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { } else if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Identity) { cipher.identity = _this.parseIdentity(value); cipher.notes = _this.getValueOrDefault(value.notes); + if (!_this.isNullOrWhitespace(value.ccnum)) { // there is a card on this identity too var cardCipher = _this.buildBaseCipher(value); + cardCipher.identity = null; cardCipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Card; cardCipher.card = _this.parseCard(value); result.ciphers.push(cardCipher); } } + result.ciphers.push(cipher); + if (addFolder) { var f = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_10__["FolderView"](); f.name = grouping; result.folders.push(f); } + if (hasFolder) { result.folderRelationships.push([cipherIndex, folderIndex]); } }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } @@ -160188,11 +161199,13 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { key: "buildBaseCipher", value: function buildBaseCipher(value) { var cipher = new _models_view_cipherView__WEBPACK_IMPORTED_MODULE_9__["CipherView"](); + if (value.hasOwnProperty('profilename') && value.hasOwnProperty('profilelanguage')) { // form fill cipher.favorite = false; cipher.name = this.getValueOrDefault(value.profilename, '--'); cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Card; + if (!this.isNullOrWhitespace(value.title) || !this.isNullOrWhitespace(value.firstname) || !this.isNullOrWhitespace(value.lastname) || !this.isNullOrWhitespace(value.address1) || !this.isNullOrWhitespace(value.phone) || !this.isNullOrWhitespace(value.username) || !this.isNullOrWhitespace(value.email)) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Identity; } @@ -160202,6 +161215,7 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.name = this.getValueOrDefault(value.name, '--'); cipher.type = value.url === 'http://sn' ? _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].SecureNote : _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Login; } + return cipher; } }, { @@ -160212,16 +161226,20 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { card.number = this.getValueOrDefault(value.ccnum); card.code = this.getValueOrDefault(value.cccsc); card.brand = this.getCardBrand(value.ccnum); + if (!this.isNullOrWhitespace(value.ccexp) && value.ccexp.indexOf('-') > -1) { var ccexpParts = value.ccexp.split('-'); + if (ccexpParts.length > 1) { card.expYear = ccexpParts[0]; card.expMonth = ccexpParts[1]; + if (card.expMonth.length === 2 && card.expMonth[0] === '0') { card.expMonth = card.expMonth[1]; } } } + return card; } }, { @@ -160244,9 +161262,11 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { identity.country = this.getValueOrDefault(value.country); identity.email = this.getValueOrDefault(value.email); identity.phone = this.getValueOrDefault(value.phone); + if (!this.isNullOrWhitespace(identity.title)) { identity.title = identity.title.charAt(0).toUpperCase() + identity.title.slice(1); } + return identity; } }, { @@ -160254,8 +161274,10 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { value: function parseSecureNote(value, cipher) { var extraParts = this.splitNewLine(value.extra); var processedNote = false; + if (extraParts.length) { var typeParts = extraParts[0].split(':'); + if (typeParts.length > 1 && typeParts[0] === 'NoteType' && (typeParts[1] === 'Credit Card' || typeParts[1] === 'Address')) { if (typeParts[1] === 'Credit Card') { var mappedData = this.parseSecureNoteMapping(cipher, extraParts, { @@ -160266,17 +161288,20 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { // Store in expMonth, then parse and modify 'Expiration Date': 'expMonth' }); + if (this.isNullOrWhitespace(mappedData.expMonth) || mappedData.expMonth === ',') { // No expiration data mappedData.expMonth = undefined; } else { var _mappedData$expMonth$ = mappedData.expMonth.split(','), - _mappedData$expMonth$2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_mappedData$expMonth$, 2), - monthString = _mappedData$expMonth$2[0], - year = _mappedData$expMonth$2[1]; - // Parse month name into number + _mappedData$expMonth$2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_mappedData$expMonth$, 2), + monthString = _mappedData$expMonth$2[0], + year = _mappedData$expMonth$2[1]; // Parse month name into number + + if (!this.isNullOrWhitespace(monthString)) { var month = new Date(Date.parse(monthString.trim() + ' 1, 2012')).getMonth() + 1; + if (isNaN(month)) { mappedData.expMonth = undefined; } else { @@ -160285,10 +161310,12 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { } else { mappedData.expMonth = undefined; } + if (!this.isNullOrWhitespace(year)) { mappedData.expYear = year; } } + cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Card; cipher.card = mappedData; } else if (typeParts[1] === 'Address') { @@ -160308,12 +161335,15 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { 'Email Address': 'email', 'Username': 'username' }); + cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_14__["CipherType"].Identity; cipher.identity = _mappedData; } + processedNote = true; } } + if (!processedNote) { cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_13__["SecureNoteView"](); cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_15__["SecureNoteType"].Generic; @@ -160324,28 +161354,35 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { key: "parseSecureNoteMapping", value: function parseSecureNoteMapping(cipher, extraParts, map) { var _this2 = this; + var dataObj = {}; var processingNotes = false; extraParts.forEach(function (extraPart) { var key = null; var val = null; + if (!processingNotes) { if (_this2.isNullOrWhitespace(extraPart)) { return; } + var colonIndex = extraPart.indexOf(':'); + if (colonIndex === -1) { key = extraPart; } else { key = extraPart.substring(0, colonIndex); + if (extraPart.length > colonIndex) { val = extraPart.substring(colonIndex + 1); } } + if (_this2.isNullOrWhitespace(key) || _this2.isNullOrWhitespace(val) || key === 'NoteType') { return; } } + if (processingNotes) { cipher.notes += '\n' + extraPart; } else if (key === 'Notes') { @@ -160354,6 +161391,7 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { } else { cipher.notes = val; } + processingNotes = true; } else if (map.hasOwnProperty(key)) { dataObj[map[key]] = val; @@ -160364,6 +161402,7 @@ var LastPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { return dataObj; } }]); + return LastPassCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_6__["BaseImporter"]); @@ -161935,10 +162974,12 @@ var CacheTTL = 3000; var SortedCiphersCache = /*#__PURE__*/function () { function SortedCiphersCache(comparator) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SortedCiphersCache); + this.comparator = comparator; this.sortedCiphersByUrl = new Map(); this.timeouts = new Map(); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SortedCiphersCache, [{ key: "isCached", value: function isCached(url) { @@ -161985,21 +163026,27 @@ var SortedCiphersCache = /*#__PURE__*/function () { key: "resetTimer", value: function resetTimer(url) { var _this = this; + clearTimeout(this.timeouts.get(url)); this.timeouts.set(url, setTimeout(function () { _this.sortedCiphersByUrl.delete(url); + _this.timeouts.delete(url); }, CacheTTL)); } }]); + return SortedCiphersCache; }(); + var Ciphers = /*#__PURE__*/function () { function Ciphers(ciphers) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Ciphers); + this.ciphers = ciphers; this.lastUsedIndex = -1; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Ciphers, [{ key: "getLastUsed", value: function getLastUsed() { @@ -162011,6 +163058,7 @@ var Ciphers = /*#__PURE__*/function () { value: function getLastLaunched() { var usedCiphers = this.ciphers.filter(function (cipher) { var _a; + return (_a = cipher.localData) === null || _a === void 0 ? void 0 : _a.lastLaunched; }); var sortedCiphers = usedCiphers.sort(function (x, y) { @@ -162034,6 +163082,7 @@ var Ciphers = /*#__PURE__*/function () { this.lastUsedIndex = this.getNextIndex(); } }]); + return Ciphers; }(); @@ -162736,32 +163785,29 @@ if (false) {} "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaxInfoResponse", function() { return TaxInfoResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var TaxInfoResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TaxInfoResponse, _BaseResponse); - var _super = _createSuper(TaxInfoResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TaxInfoResponse, _BaseResponse); + function TaxInfoResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TaxInfoResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TaxInfoResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TaxInfoResponse).call(this, response)); _this.taxId = _this.getResponseProperty('TaxIdNumber'); _this.taxIdType = _this.getResponseProperty('TaxIdType'); _this.line1 = _this.getResponseProperty('Line1'); @@ -162772,8 +163818,9 @@ var TaxInfoResponse = /*#__PURE__*/function (_BaseResponse) { _this.country = _this.getResponseProperty('Country'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TaxInfoResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TaxInfoResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -166156,17 +167203,15 @@ module.exports = _superPropBase, module.exports.__esModule = true, module.export "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeysRequest", function() { return KeysRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var KeysRequest = function KeysRequest(publicKey, encryptedPrivateKey) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KeysRequest); -var KeysRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function KeysRequest(publicKey, encryptedPrivateKey) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, KeysRequest); this.publicKey = publicKey; this.encryptedPrivateKey = encryptedPrivateKey; -}); +}; /***/ }), @@ -166490,30 +167535,6 @@ exports.default = _default; /***/ }), -/***/ "OEPu": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = exports.BorderedList = void 0; -var _List = _interopRequireDefault(__webpack_require__("hQPZ")); -var _styles = __webpack_require__("/6lT"); -var BorderedList = (0, _styles.withStyles)({ - root: { - borderTop: '1px solid var(--silver)' - } -})(_List.default); -exports.BorderedList = BorderedList; -var _default = _List.default; -exports.default = _default; - -/***/ }), - /***/ "OG7w": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -170535,32 +171556,29 @@ BigInteger.prototype.isProbablePrime = bnIsProbablePrime; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttachmentResponse", function() { return AttachmentResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var AttachmentResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AttachmentResponse, _BaseResponse); - var _super = _createSuper(AttachmentResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(AttachmentResponse, _BaseResponse); + function AttachmentResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AttachmentResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AttachmentResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(AttachmentResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.url = _this.getResponseProperty('Url'); _this.fileName = _this.getResponseProperty('FileName'); @@ -170569,8 +171587,9 @@ var AttachmentResponse = /*#__PURE__*/function (_BaseResponse) { _this.sizeName = _this.getResponseProperty('SizeName'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(AttachmentResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return AttachmentResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -171176,24 +172195,23 @@ function divergingSqrt() { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendFileData", function() { return SendFileData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var SendFileData = function SendFileData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendFileData); -var SendFileData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function SendFileData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendFileData); if (data == null) { return; } + this.id = data.id; this.url = data.url; this.fileName = data.fileName; this.key = data.key; this.size = data.size; this.sizeName = data.sizeName; -}); +}; /***/ }), @@ -171207,12 +172225,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ykCz"); @@ -171222,47 +172240,57 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var IgnoredProperties = ['ainfo', 'autosubmit', 'notesplain', 'ps', 'scope', 'tags', 'title', 'uuid']; var OnePasswordWinCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OnePasswordWinCsvImporter, _BaseImporter); - var _super = _createSuper(OnePasswordWinCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(OnePasswordWinCsvImporter, _BaseImporter); + function OnePasswordWinCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OnePasswordWinCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(OnePasswordWinCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(OnePasswordWinCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (_this.isNullOrWhitespace(_this.getProp(value, 'title'))) { return; } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(_this.getProp(value, 'title'), '--'); cipher.notes = _this.getValueOrDefault(_this.getProp(value, 'notesPlain'), '') + '\n'; + if (!_this.isNullOrWhitespace(_this.getProp(value, 'number')) && !_this.isNullOrWhitespace(_this.getProp(value, 'expiry date'))) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card; cipher.card = new _models_view__WEBPACK_IMPORTED_MODULE_8__["CardView"](); } + var altUsername = null; + for (var property in value) { if (!value.hasOwnProperty(property) || _this.isNullOrWhitespace(value[property])) { continue; } + var lowerProp = property.toLowerCase(); + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login) { if (_this.isNullOrWhitespace(cipher.login.password) && lowerProp === 'password') { cipher.login.password = value[property]; @@ -171288,9 +172316,11 @@ var OnePasswordWinCsvImporter = /*#__PURE__*/function (_BaseImporter) { continue; } else if (_this.isNullOrWhitespace(cipher.card.expiration) && lowerProp === 'expiry date' && value[property].length === 6) { cipher.card.expMonth = value[property].substr(4, 2); + if (cipher.card.expMonth[0] === '0') { cipher.card.expMonth = cipher.card.expMonth.substr(1, 1); } + cipher.card.expYear = value[property].substr(0, 4); continue; } else if (lowerProp === 'type') { @@ -171298,18 +172328,24 @@ var OnePasswordWinCsvImporter = /*#__PURE__*/function (_BaseImporter) { continue; } } + if (IgnoredProperties.indexOf(lowerProp) === -1 && !lowerProp.startsWith('section:') && !lowerProp.startsWith('section ')) { if (altUsername == null && lowerProp === 'email') { altUsername = value[property]; } + _this.processKvp(cipher, property, value[property]); } } + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login && !_this.isNullOrWhitespace(altUsername) && _this.isNullOrWhitespace(cipher.login.username) && altUsername.indexOf('://') === -1) { cipher.login.username = altUsername; } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; @@ -171321,6 +172357,7 @@ var OnePasswordWinCsvImporter = /*#__PURE__*/function (_BaseImporter) { return obj[name] || obj[name.toUpperCase()]; } }]); + return OnePasswordWinCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -175422,12 +176459,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -175435,68 +176472,87 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var RoboFormCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(RoboFormCsvImporter, _BaseImporter); - var _super = _createSuper(RoboFormCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(RoboFormCsvImporter, _BaseImporter); + function RoboFormCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RoboFormCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(RoboFormCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RoboFormCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + var i = 1; results.forEach(function (value) { var folder = !_this.isNullOrWhitespace(value.Folder) && value.Folder.startsWith('/') ? value.Folder.replace('/', '') : value.Folder; var folderName = !_this.isNullOrWhitespace(folder) ? folder : null; + _this.processFolder(result, folderName); + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value.Note); cipher.name = _this.getValueOrDefault(value.Name, '--'); cipher.login.username = _this.getValueOrDefault(value.Login); cipher.login.password = _this.getValueOrDefault(value.Pwd); cipher.login.uris = _this.makeUriArray(value.Url); + if (!_this.isNullOrWhitespace(value.Rf_fields)) { var fields = [value.Rf_fields]; + if (value.__parsed_extra != null && value.__parsed_extra.length > 0) { fields = fields.concat(value.__parsed_extra); } + fields.forEach(function (field) { var parts = field.split(':'); + if (parts.length < 3) { return; } + var key = parts[0] === '-no-name-' ? null : parts[0]; var val = parts.length === 4 && parts[2] === 'rck' ? parts[1] : parts[2]; + _this.processKvp(cipher, key, val); }); } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + if (i === results.length && cipher.name === '--' && _this.isNullOrWhitespace(cipher.login.password)) { return; } + result.ciphers.push(cipher); i++; }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return RoboFormCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -175698,54 +176754,58 @@ module.exports = buildDistanceInWordsLocale "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SymmetricCryptoKey", function() { return SymmetricCryptoKey; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _enums_encryptionType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("iA/q"); -/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6xKo"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _enums_encryptionType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("iA/q"); +/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("6xKo"); +var SymmetricCryptoKey = function SymmetricCryptoKey(key, encType) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SymmetricCryptoKey); -var SymmetricCryptoKey = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function SymmetricCryptoKey(key, encType) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SymmetricCryptoKey); if (key == null) { throw new Error('Must provide key'); } + if (encType == null) { if (key.byteLength === 32) { - encType = _enums_encryptionType__WEBPACK_IMPORTED_MODULE_2__["EncryptionType"].AesCbc256_B64; + encType = _enums_encryptionType__WEBPACK_IMPORTED_MODULE_1__["EncryptionType"].AesCbc256_B64; } else if (key.byteLength === 64) { - encType = _enums_encryptionType__WEBPACK_IMPORTED_MODULE_2__["EncryptionType"].AesCbc256_HmacSha256_B64; + encType = _enums_encryptionType__WEBPACK_IMPORTED_MODULE_1__["EncryptionType"].AesCbc256_HmacSha256_B64; } else { throw new Error('Unable to determine encType.'); } } + this.key = key; this.encType = encType; - if (encType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_2__["EncryptionType"].AesCbc256_B64 && key.byteLength === 32) { + + if (encType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_1__["EncryptionType"].AesCbc256_B64 && key.byteLength === 32) { this.encKey = key; this.macKey = null; - } else if (encType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_2__["EncryptionType"].AesCbc128_HmacSha256_B64 && key.byteLength === 32) { + } else if (encType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_1__["EncryptionType"].AesCbc128_HmacSha256_B64 && key.byteLength === 32) { this.encKey = key.slice(0, 16); this.macKey = key.slice(16, 32); - } else if (encType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_2__["EncryptionType"].AesCbc256_HmacSha256_B64 && key.byteLength === 64) { + } else if (encType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_1__["EncryptionType"].AesCbc256_HmacSha256_B64 && key.byteLength === 64) { this.encKey = key.slice(0, 32); this.macKey = key.slice(32, 64); } else { throw new Error('Unsupported encType/key length.'); } + if (this.key != null) { - this.keyB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].fromBufferToB64(this.key); + this.keyB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].fromBufferToB64(this.key); } + if (this.encKey != null) { - this.encKeyB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].fromBufferToB64(this.encKey); + this.encKeyB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].fromBufferToB64(this.encKey); } + if (this.macKey != null) { - this.macKeyB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].fromBufferToB64(this.macKey); + this.macKeyB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].fromBufferToB64(this.macKey); } -}); +}; /***/ }), @@ -176837,6 +177897,42 @@ var BaseBackend = /** @class */ (function () { /***/ }), +/***/ "PM49": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__("jm00"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); +var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); +var _TextField = _interopRequireDefault(__webpack_require__("g+2p")); +var _getRandomUUID = __webpack_require__("DIBL"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +var _excluded = ["children"]; +var TextField = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) { + var children = _ref.children, + props = (0, _objectWithoutProperties2.default)(_ref, _excluded); + + // A11Y, https://v4.mui.com/api/text-field/#props + var uuid = (0, _getRandomUUID.getRandomUUID)(); + return /*#__PURE__*/_react.default.createElement(_TextField.default, (0, _extends2.default)({ + ref: ref, + id: uuid + }, props), children); +}); +TextField.displayName = 'TextField'; +var _default = TextField; +exports.default = _default; + +/***/ }), + /***/ "PMXk": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -182666,22 +183762,24 @@ var TablePaginationActions = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["fo "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppIdService", function() { return AppIdService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6xKo"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -182690,6 +183788,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -182697,19 +183796,24 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var AppIdService = /*#__PURE__*/function () { function AppIdService(storageService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AppIdService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AppIdService); + this.storageService = storageService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AppIdService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(AppIdService, [{ key: "getAppId", value: function getAppId() { return this.makeAndGetAppId('appId'); @@ -182722,34 +183826,43 @@ var AppIdService = /*#__PURE__*/function () { }, { key: "makeAndGetAppId", value: function makeAndGetAppId(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var existingId, guid; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.storageService.get(key); - case 2: - existingId = _context.sent; - if (!(existingId != null)) { - _context.next = 5; - break; - } - return _context.abrupt("return", existingId); - case 5: - guid = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].newGuid(); - _context.next = 8; - return this.storageService.save(key, guid); - case 8: - return _context.abrupt("return", guid); - case 9: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.storageService.get(key); + + case 2: + existingId = _context.sent; + + if (!(existingId != null)) { + _context.next = 5; + break; + } + + return _context.abrupt("return", existingId); + + case 5: + guid = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].newGuid(); + _context.next = 8; + return this.storageService.save(key, guid); + + case 8: + return _context.abrupt("return", guid); + + case 9: + case "end": + return _context.stop(); + } } }, _callee, this); })); } }]); + return AppIdService; }(); @@ -184620,20 +185733,19 @@ module.exports = distanceInWordsToNow "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordHistoryData", function() { return PasswordHistoryData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var PasswordHistoryData = function PasswordHistoryData(response) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordHistoryData); -var PasswordHistoryData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function PasswordHistoryData(response) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PasswordHistoryData); if (response == null) { return; } + this.password = response.password; this.lastUsedDate = response.lastUsedDate; -}); +}; /***/ }), @@ -184843,28 +185955,6 @@ __webpack_require__.r(__webpack_exports__); -/***/ }), - -/***/ "QWb5": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var createDepreciationLogger = function createDepreciationLogger() { - var warned = false; - return function (message) { - if (!warned) console.warn(message); - warned = true; - }; -}; -var _default = createDepreciationLogger; -exports.default = _default; - /***/ }), /***/ "QWmo": @@ -184953,12 +186043,15 @@ var NoopMessagingService = /*#__PURE__*/function () { function NoopMessagingService() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, NoopMessagingService); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(NoopMessagingService, [{ key: "send", - value: function send(subscriber) { + value: function send(subscriber) {// Do nothing... + var arg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - } // Do nothing... + } }]); + return NoopMessagingService; }(); @@ -186326,38 +187419,36 @@ module.exports = hasIn; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreloginResponse", function() { return PreloginResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PreloginResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PreloginResponse, _BaseResponse); - var _super = _createSuper(PreloginResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PreloginResponse, _BaseResponse); + function PreloginResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PreloginResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PreloginResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(PreloginResponse).call(this, response)); _this.kdf = _this.getResponseProperty('Kdf'); _this.kdfIterations = _this.getResponseProperty('KdfIterations'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PreloginResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return PreloginResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -186914,38 +188005,36 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorEmailResponse", function() { return TwoFactorEmailResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var TwoFactorEmailResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorEmailResponse, _BaseResponse); - var _super = _createSuper(TwoFactorEmailResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorEmailResponse, _BaseResponse); + function TwoFactorEmailResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorEmailResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorEmailResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorEmailResponse).call(this, response)); _this.enabled = _this.getResponseProperty('Enabled'); _this.email = _this.getResponseProperty('Email'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorEmailResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorEmailResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -187332,19 +188421,23 @@ __webpack_require__.r(__webpack_exports__); var SendFileView = /*#__PURE__*/function () { function SendFileView(f) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendFileView); + this.id = null; this.url = null; this.size = null; this.sizeName = null; this.fileName = null; + if (!f) { return; } + this.id = f.id; this.url = f.url; this.size = f.size; this.sizeName = f.sizeName; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SendFileView, [{ key: "fileSize", get: function get() { @@ -187353,9 +188446,11 @@ var SendFileView = /*#__PURE__*/function () { return parseInt(this.size, null); } } catch (_a) {} + return 0; } }]); + return SendFileView; }(); @@ -187367,15 +188462,12 @@ var SendFileView = /*#__PURE__*/function () { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptedObject", function() { return EncryptedObject; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -var EncryptedObject = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function EncryptedObject() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, EncryptedObject); -}); +var EncryptedObject = function EncryptedObject() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EncryptedObject); +}; /***/ }), @@ -188185,16 +189277,155 @@ var _interopRequireDefault = __webpack_require__("jm00"); Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -var _ListItem = _interopRequireDefault(__webpack_require__("4jS1")); -var _createDepreciationLogger = _interopRequireDefault(__webpack_require__("QWb5")); -var logDeprecatedComponent = (0, _createDepreciationLogger.default)(); -var DeprecatedComponent = function DeprecatedComponent(props) { - logDeprecatedComponent('ListItem is now exported from the cozy-ui ListItem folder. Please change the import path to "cozy-ui/transpiled/react/ListItem"'); - return /*#__PURE__*/_react.default.createElement(_ListItem.default, props); -}; -var _default = DeprecatedComponent; +exports.default = exports.LitItemPropTypes = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); +var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); +var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); +var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); +var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); +var _merge = _interopRequireDefault(__webpack_require__("wXrU")); +var _ListItem = _interopRequireDefault(__webpack_require__("gqmj")); +var _isMuiElement = _interopRequireDefault(__webpack_require__("nsa0")); +var _styles = __webpack_require__("/6lT"); +var _react2 = __webpack_require__("dvmE"); +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +var _excluded = ["gutters"], + _excluded2 = ["gutters"], + _excluded3 = ["gutters", "ellipsis"], + _excluded4 = ["className", "gutters", "ellipsis", "componentElement"]; +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; +} +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { + (0, _defineProperty2.default)(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; +} +var useStyles = (0, _styles.makeStyles)({ + gutters: { + paddingLeft: function paddingLeft(_ref) { + var guttersValue = _ref.guttersValue; + return guttersValue.left; + }, + paddingRight: function paddingRight(_ref2) { + var guttersValue = _ref2.guttersValue; + return guttersValue.right; + } + }, + secondaryAction: { + paddingRight: function paddingRight(_ref3) { + var secondaryActionPaddingRight = _ref3.secondaryActionPaddingRight; + return secondaryActionPaddingRight; + } + } +}); // Return secondaryAction padding right + +var useSecondaryAction = function useSecondaryAction(_ref4) { + var gutters = _ref4.gutters, + props = (0, _objectWithoutProperties2.default)(_ref4, _excluded); + var BUTTON_SIZE = 48; + var margin = 8; + var offset = gutters === 'double' ? margin + 16 : margin; + var lastChild = (0, _react2.getLastChild)(props); + var hasSecondaryAction = lastChild && (0, _isMuiElement.default)(lastChild, ['ListItemSecondaryAction']) || false; + return hasSecondaryAction ? (0, _react2.getChildrenCount)(lastChild.props) * BUTTON_SIZE + offset : 0; +}; // Return gutters size + +var useGutters = function useGutters(_ref5) { + var gutters = _ref5.gutters, + props = (0, _objectWithoutProperties2.default)(_ref5, _excluded2); + var guttersValue = gutters === 'double' ? 32 : 16; + var lastChild = (0, _react2.getLastChild)(props); + var isLastChildListItemIcon = lastChild ? (0, _react2.getComponentName)(lastChild).includes('ListItemIcon') : false; + var gutterRight = isLastChildListItemIcon ? guttersValue - 8 : guttersValue; + return { + left: guttersValue, + right: gutterRight + }; +}; // Add margin on ListItemSecondaryAction when gutters are double +// Propagates ellipsis prop to ListItemText + +var useOverridenChildren = function useOverridenChildren(_ref6) { + var gutters = _ref6.gutters, + ellipsis = _ref6.ellipsis, + props = (0, _objectWithoutProperties2.default)(_ref6, _excluded3); + var children = (0, _react2.getChildren)(props); + var childrenCount = (0, _react2.getChildrenCount)(props); + return _react.default.Children.map(children, function (child, index) { + var isLastChild = index === childrenCount - 1; + var isSecondaryAction = isLastChild && (0, _isMuiElement.default)(child, ['ListItemSecondaryAction']) || false; + var isListItemText = (0, _react2.getComponentName)(child).includes('ListItemText'); + if (isSecondaryAction && gutters === 'double') { + return /*#__PURE__*/_react.default.cloneElement(child, { + className: "".concat(child.props.className, " u-mr-1") + }); + } + if (isListItemText) { + return /*#__PURE__*/_react.default.cloneElement(child, { + ellipsis: ellipsis + }); + } + return child; + }); +}; +var ListItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref7, ref) { + var className = _ref7.className, + gutters = _ref7.gutters, + ellipsis = _ref7.ellipsis, + componentElement = _ref7.componentElement, + props = (0, _objectWithoutProperties2.default)(_ref7, _excluded4); + var secondaryActionPaddingRight = useSecondaryAction(_objectSpread({ + gutters: gutters + }, props)); + var guttersValue = useGutters(_objectSpread({ + gutters: gutters + }, props)); + var styles = useStyles({ + secondaryActionPaddingRight: secondaryActionPaddingRight, + guttersValue: guttersValue + }); + var overridenChildren = useOverridenChildren(_objectSpread({ + gutters: gutters, + ellipsis: ellipsis + }, props)); + return /*#__PURE__*/_react.default.createElement(_ListItem.default, (0, _extends2.default)({}, props, { + component: componentElement || props.component, + ref: ref, + classes: (0, _merge.default)(props.classes, styles), + className: (0, _classnames.default)(className, props.size), + disableGutters: props.disableGutters || gutters === 'disabled' + }), overridenChildren); +}); +ListItem.displayName = 'ListItem'; +ListItem.defaultProps = { + gutters: 'default', + size: 'medium' +}; +var LitItemPropTypes = { + gutters: _propTypes.default.oneOf(['disabled', 'double', 'default']), + size: _propTypes.default.oneOf(['small', 'medium', 'large']), + ellipsis: _propTypes.default.bool, + /** If the `component` prop is already used to return `ListItem`, this prop still allows you to choose a component to render in `ListItem`. cf:`MenuItem` component */ + componentElement: _propTypes.default.elementType +}; +exports.LitItemPropTypes = LitItemPropTypes; +ListItem.propTypes = LitItemPropTypes; +var _default = ListItem; exports.default = _default; /***/ }), @@ -188485,15 +189716,12 @@ module.exports = cloneArrayBuffer; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttachmentRequest", function() { return AttachmentRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -var AttachmentRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function AttachmentRequest() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AttachmentRequest); -}); +var AttachmentRequest = function AttachmentRequest() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AttachmentRequest); +}; /***/ }), @@ -189130,32 +190358,29 @@ module.exports = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventResponse", function() { return EventResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var EventResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EventResponse, _BaseResponse); - var _super = _createSuper(EventResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(EventResponse, _BaseResponse); + function EventResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, EventResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EventResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(EventResponse).call(this, response)); _this.type = _this.getResponseProperty('Type'); _this.userId = _this.getResponseProperty('UserId'); _this.organizationId = _this.getResponseProperty('OrganizationId'); @@ -189169,8 +190394,9 @@ var EventResponse = /*#__PURE__*/function (_BaseResponse) { _this.ipAddress = _this.getResponseProperty('IpAddress'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(EventResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return EventResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -189347,15 +190573,12 @@ __webpack_require__("iaIa")(ARRAY_BUFFER); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View", function() { return View; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -var View = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function View() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, View); -}); +var View = function View() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, View); +}; /***/ }), @@ -190161,14 +191384,12 @@ module.exports = false; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConstantsService", function() { return ConstantsService; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var ConstantsService = function ConstantsService() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ConstantsService); -var ConstantsService = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function ConstantsService() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ConstantsService); this.environmentUrlsKey = ConstantsService.environmentUrlsKey; this.disableGaKey = ConstantsService.disableGaKey; this.disableAddLoginNotificationKey = ConstantsService.disableAddLoginNotificationKey; @@ -190197,7 +191418,7 @@ var ConstantsService = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_ this.biometricUnlockKey = ConstantsService.biometricUnlockKey; this.biometricText = ConstantsService.biometricText; this.biometricAwaitingAcceptance = ConstantsService.biometricAwaitingAcceptance; -}); +}; ConstantsService.environmentUrlsKey = 'environmentUrls'; ConstantsService.disableGaKey = 'disableGa'; ConstantsService.disableAddLoginNotificationKey = 'disableAddLoginNotification'; @@ -190770,32 +191991,29 @@ function addGlobalEventProcessor(callback) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProfileOrganizationResponse", function() { return ProfileOrganizationResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ProfileOrganizationResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ProfileOrganizationResponse, _BaseResponse); - var _super = _createSuper(ProfileOrganizationResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ProfileOrganizationResponse, _BaseResponse); + function ProfileOrganizationResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ProfileOrganizationResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ProfileOrganizationResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(ProfileOrganizationResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.name = _this.getResponseProperty('Name'); _this.usePolicies = _this.getResponseProperty('UsePolicies'); @@ -190820,8 +192038,9 @@ var ProfileOrganizationResponse = /*#__PURE__*/function (_BaseResponse) { _this.identifier = _this.getResponseProperty('Identifier'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ProfileOrganizationResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return ProfileOrganizationResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -190972,14 +192191,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _view_collectionView__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("7/l8"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); @@ -190988,22 +192207,25 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Collection = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Collection, _Domain); - var _super = _createSuper(Collection); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Collection, _Domain); + function Collection(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Collection); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Collection).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { id: null, organizationId: null, name: null, @@ -191011,8 +192233,10 @@ var Collection = /*#__PURE__*/function (_Domain) { readOnly: null, hidePasswords: null }, alreadyEncrypted, ['id', 'organizationId', 'externalId', 'readOnly', 'hidePasswords']); + return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Collection, [{ key: "decrypt", value: function decrypt() { @@ -191021,6 +192245,7 @@ var Collection = /*#__PURE__*/function (_Domain) { }, this.organizationId); } }]); + return Collection; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); @@ -194248,6 +195473,7 @@ exports.default = _default; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendType", function() { return SendType; }); var SendType; + (function (SendType) { SendType[SendType["Text"] = 0] = "Text"; SendType[SendType["File"] = 1] = "File"; @@ -195871,6 +197097,7 @@ __webpack_require__.r(__webpack_exports__); var TokenRequest = /*#__PURE__*/function () { function TokenRequest(credentials, codes, clientIdClientSecret, provider, token, remember, device) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TokenRequest); + if (credentials != null && credentials.length > 1) { this.email = credentials[0]; this.masterPasswordHash = credentials[1]; @@ -195882,11 +197109,13 @@ var TokenRequest = /*#__PURE__*/function () { this.clientId = clientIdClientSecret[0]; this.clientSecret = clientIdClientSecret[1]; } + this.token = token; this.provider = provider; this.remember = remember; this.device = device != null ? device : null; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TokenRequest, [{ key: "toIdentityToken", value: function toIdentityToken(clientId) { @@ -195894,6 +197123,7 @@ var TokenRequest = /*#__PURE__*/function () { scope: 'api offline_access', client_id: clientId }; + if (this.clientSecret != null) { obj.scope = 'api'; obj.grant_type = 'client_credentials'; @@ -195910,11 +197140,11 @@ var TokenRequest = /*#__PURE__*/function () { } else { throw new Error('must provide credentials or codes'); } + if (this.device) { obj.deviceType = this.device.type; obj.deviceIdentifier = this.device.identifier; - obj.deviceName = this.device.name; - // no push tokens for browser apps yet + obj.deviceName = this.device.name; // no push tokens for browser apps yet // obj.devicePushToken = this.device.pushToken; } @@ -195923,9 +197153,11 @@ var TokenRequest = /*#__PURE__*/function () { obj.twoFactorProvider = this.provider; obj.twoFactorRemember = this.remember ? '1' : '0'; } + return obj; } }]); + return TokenRequest; }(); @@ -196171,43 +197403,44 @@ module.exports = differenceInQuarters "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FieldApi", function() { return FieldApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var FieldApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(FieldApi, _BaseResponse); - var _super = _createSuper(FieldApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(FieldApi, _BaseResponse); + function FieldApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FieldApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FieldApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(FieldApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.type = _this.getResponseProperty('Type'); _this.name = _this.getResponseProperty('Name'); _this.value = _this.getResponseProperty('Value'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(FieldApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return FieldApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -196300,99 +197533,6 @@ if (setProto) $export($export.S, 'Reflect', { }); -/***/ }), - -/***/ "TO1g": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); -var _styles = __webpack_require__("/6lT"); -var _CozyTheme = _interopRequireDefault(__webpack_require__("IMxj")); -var _ConfirmDialog = _interopRequireDefault(__webpack_require__("pSj2")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _Icon = _interopRequireDefault(__webpack_require__("AHiN")); -var _Paper = _interopRequireDefault(__webpack_require__("gQXR")); -var useStyles = (0, _styles.makeStyles)({ - floatingIcon: { - top: '-2.25rem', - width: '4.5rem', - height: '4.5rem' - } -}); -/** - * Dialog for confirmation actions linked to the Cozy system (permissions, authentication, etc.) - */ - -var PermissionDialog = function PermissionDialog(_ref) { - var open = _ref.open, - icon = _ref.icon, - title = _ref.title, - content = _ref.content, - actions = _ref.actions, - actionsLayout = _ref.actionsLayout, - onClose = _ref.onClose; - var styles = useStyles(); - return /*#__PURE__*/_react.default.createElement(_CozyTheme.default, { - variant: "inverted" - }, /*#__PURE__*/_react.default.createElement(_ConfirmDialog.default, { - open: open, - size: "small", - disableTitleAutoPadding: true, - classes: { - // remove overflow in makeOverride and replace it by u-ov-visible when https://github.com/cozy/cozy-ui/issues/2284 is solved - paper: 'overflow' - }, - componentsProps: { - dialogTitle: { - className: 'u-ta-center u-pt-2 u-pb-half' - } - }, - title: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CozyTheme.default, { - variant: "normal", - className: "u-flex u-flex-justify-center" - }, /*#__PURE__*/_react.default.createElement(_Paper.default, { - square: true, - elevation: 2, - className: (0, _classnames.default)(styles.floatingIcon, 'u-pos-absolute u-bdrs-circle u-flex') - }, /*#__PURE__*/_react.default.createElement(_Icon.default, { - className: "u-m-auto", - icon: icon, - size: 48 - }))), title), - content: content, - actions: actions, - actionsLayout: actionsLayout, - onClose: onClose - })); -}; -PermissionDialog.propTypes = { - /** To open/close the modal */ - open: _propTypes.default.bool.isRequired, - /** Icon to describe the action to be taken */ - icon: _propTypes.default.func.isRequired, - /** Title of the modal */ - title: _propTypes.default.string.isRequired, - /** Content of the modal */ - content: _propTypes.default.node, - /** Actions of the modal */ - actions: _propTypes.default.node, - /** Actions can be displayed as "rows" or "columns" */ - actionsLayout: _propTypes.default.oneOf(['row', 'column']), - /** Triggered function on modal close action */ - onClose: _propTypes.default.func -}; -var _default = PermissionDialog; -exports.default = _default; - /***/ }), /***/ "TQc+": @@ -196490,13 +197630,6 @@ module.exports = JSON.parse("{\"drawer\":\"Afficher le menu latéral\",\"profile /***/ }), -/***/ "TbWL": -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__.p + "83ef4de322a6ddf7034d4b1366d1c9fe.png"; - -/***/ }), - /***/ "TbkX": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -196734,20 +197867,20 @@ function debounce(func) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Send", function() { return Send; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _enums_sendType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("Sy4r"); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("6xKo"); /* harmony import */ var _data_sendData__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("p7tm"); @@ -196762,14 +197895,14 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -196778,6 +197911,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -196785,9 +197919,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -196798,18 +197934,24 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Send = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Send, _Domain); - var _super = _createSuper(Send); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Send, _Domain); + function Send(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Send); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Send); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Send).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this), obj, { id: null, accessId: null, userId: null, @@ -196817,6 +197959,7 @@ var Send = /*#__PURE__*/function (_Domain) { notes: null, key: null }, alreadyEncrypted, ['id', 'accessId', 'userId']); + _this.type = obj.type; _this.maxAccessCount = obj.maxAccessCount; _this.accessCount = obj.accessCount; @@ -196825,81 +197968,104 @@ var Send = /*#__PURE__*/function (_Domain) { _this.revisionDate = obj.revisionDate != null ? new Date(obj.revisionDate) : null; _this.deletionDate = obj.deletionDate != null ? new Date(obj.deletionDate) : null; _this.expirationDate = obj.expirationDate != null ? new Date(obj.expirationDate) : null; + switch (_this.type) { case _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].Text: _this.text = new _sendText__WEBPACK_IMPORTED_MODULE_13__["SendText"](obj.text, alreadyEncrypted); break; + case _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].File: _this.file = new _sendFile__WEBPACK_IMPORTED_MODULE_12__["SendFile"](obj.file, alreadyEncrypted); break; + default: break; } + return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Send, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Send, [{ key: "decrypt", value: function decrypt() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var model, cryptoService, containerService; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - model = new _view_sendView__WEBPACK_IMPORTED_MODULE_10__["SendView"](this); - containerService = _misc_utils__WEBPACK_IMPORTED_MODULE_8__["Utils"].global.bitwardenContainerService; - if (!containerService) { - _context.next = 6; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + model = new _view_sendView__WEBPACK_IMPORTED_MODULE_10__["SendView"](this); + containerService = _misc_utils__WEBPACK_IMPORTED_MODULE_8__["Utils"].global.bitwardenContainerService; + + if (!containerService) { + _context.next = 6; + break; + } + + cryptoService = containerService.getCryptoService(); + _context.next = 7; break; - } - cryptoService = containerService.getCryptoService(); - _context.next = 7; - break; - case 6: - throw new Error('global bitwardenContainerService not initialized.'); - case 7: - _context.prev = 7; - _context.next = 10; - return cryptoService.decryptToBytes(this.key, null); - case 10: - model.key = _context.sent; - _context.next = 13; - return cryptoService.makeSendKey(model.key); - case 13: - model.cryptoKey = _context.sent; - _context.next = 18; - break; - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](7); - case 18: - _context.next = 20; - return this.decryptObj(model, { - name: null, - notes: null - }, null, model.cryptoKey); - case 20: - _context.t1 = this.type; - _context.next = _context.t1 === _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].File ? 23 : _context.t1 === _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].Text ? 27 : 31; - break; - case 23: - _context.next = 25; - return this.file.decrypt(model.cryptoKey); - case 25: - model.file = _context.sent; - return _context.abrupt("break", 32); - case 27: - _context.next = 29; - return this.text.decrypt(model.cryptoKey); - case 29: - model.text = _context.sent; - return _context.abrupt("break", 32); - case 31: - return _context.abrupt("break", 32); - case 32: - return _context.abrupt("return", model); - case 33: - case "end": - return _context.stop(); + + case 6: + throw new Error('global bitwardenContainerService not initialized.'); + + case 7: + _context.prev = 7; + _context.next = 10; + return cryptoService.decryptToBytes(this.key, null); + + case 10: + model.key = _context.sent; + _context.next = 13; + return cryptoService.makeSendKey(model.key); + + case 13: + model.cryptoKey = _context.sent; + _context.next = 18; + break; + + case 16: + _context.prev = 16; + _context.t0 = _context["catch"](7); + + case 18: + _context.next = 20; + return this.decryptObj(model, { + name: null, + notes: null + }, null, model.cryptoKey); + + case 20: + _context.t1 = this.type; + _context.next = _context.t1 === _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].File ? 23 : _context.t1 === _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].Text ? 27 : 31; + break; + + case 23: + _context.next = 25; + return this.file.decrypt(model.cryptoKey); + + case 25: + model.file = _context.sent; + return _context.abrupt("break", 32); + + case 27: + _context.next = 29; + return this.text.decrypt(model.cryptoKey); + + case 29: + model.text = _context.sent; + return _context.abrupt("break", 32); + + case 31: + return _context.abrupt("break", 32); + + case 32: + return _context.abrupt("return", model); + + case 33: + case "end": + return _context.stop(); + } } }, _callee, this, [[7, 16]]); })); @@ -196924,19 +198090,24 @@ var Send = /*#__PURE__*/function (_Domain) { notes: null, key: null }); + switch (s.type) { case _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].File: s.text = this.text.toSendTextData(); break; + case _enums_sendType__WEBPACK_IMPORTED_MODULE_7__["SendType"].Text: s.file = this.file.toSendFileData(); break; + default: break; } + return s; } }]); + return Send; }(_domainBase__WEBPACK_IMPORTED_MODULE_11__["default"]); @@ -197771,6 +198942,7 @@ var IdentityView = /*#__PURE__*/function () { // tslint:enable function IdentityView(i) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, IdentityView); + this.title = null; this.middleName = null; this.address1 = null; @@ -197786,13 +198958,13 @@ var IdentityView = /*#__PURE__*/function () { this.ssn = null; this.username = null; this.passportNumber = null; - this.licenseNumber = null; - // tslint:disable + this.licenseNumber = null; // tslint:disable + this._firstName = null; this._lastName = null; - this._subTitle = null; - // ctor + this._subTitle = null; // ctor } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(IdentityView, [{ key: "firstName", get: function get() { @@ -197816,16 +198988,20 @@ var IdentityView = /*#__PURE__*/function () { get: function get() { if (this._subTitle == null && (this.firstName != null || this.lastName != null)) { this._subTitle = ''; + if (this.firstName != null) { this._subTitle = this.firstName; } + if (this.lastName != null) { if (this._subTitle !== '') { this._subTitle += ' '; } + this._subTitle += this.lastName; } } + return this._subTitle; } }, { @@ -197833,38 +199009,49 @@ var IdentityView = /*#__PURE__*/function () { get: function get() { if (this.title != null || this.firstName != null || this.middleName != null || this.lastName != null) { var name = ''; + if (this.title != null) { name += this.title + ' '; } + if (this.firstName != null) { name += this.firstName + ' '; } + if (this.middleName != null) { name += this.middleName + ' '; } + if (this.lastName != null) { name += this.lastName; } + return name.trim(); } + return null; } }, { key: "fullAddress", get: function get() { var address = this.address1; + if (!_misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].isNullOrWhitespace(this.address2)) { if (!_misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].isNullOrWhitespace(address)) { address += ', '; } + address += this.address2; } + if (!_misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].isNullOrWhitespace(this.address3)) { if (!_misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].isNullOrWhitespace(address)) { address += ', '; } + address += this.address3; } + return address; } }, { @@ -197873,17 +199060,21 @@ var IdentityView = /*#__PURE__*/function () { if (this.city == null && this.state == null && this.postalCode == null) { return null; } + var city = this.city || '-'; var state = this.state; var postalCode = this.postalCode || '-'; var addressPart2 = city; + if (!_misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].isNullOrWhitespace(state)) { addressPart2 += ', ' + state; } + addressPart2 += ', ' + postalCode; return addressPart2; } }]); + return IdentityView; }(); @@ -198339,10 +199530,13 @@ __webpack_require__.r(__webpack_exports__); var Identity = /*#__PURE__*/function () { function Identity(o) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Identity); + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; + if (o == null) { return; } + if (o instanceof _view_identityView__WEBPACK_IMPORTED_MODULE_2__["IdentityView"]) { this.title = o.title; this.firstName = o.firstName; @@ -198383,6 +199577,7 @@ var Identity = /*#__PURE__*/function () { this.licenseNumber = (_t = o.licenseNumber) === null || _t === void 0 ? void 0 : _t.encryptedString; } } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Identity, null, [{ key: "template", value: function template() { @@ -198432,6 +199627,7 @@ var Identity = /*#__PURE__*/function () { return view; } }]); + return Identity; }(); @@ -198918,21 +200114,21 @@ exports.default = _default; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordHistoryView", function() { return PasswordHistoryView; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var PasswordHistoryView = function PasswordHistoryView(ph) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordHistoryView); -var PasswordHistoryView = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function PasswordHistoryView(ph) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PasswordHistoryView); this.password = null; this.lastUsedDate = null; + if (!ph) { return; } + this.lastUsedDate = ph.lastUsedDate; -}); +}; /***/ }), @@ -199449,7 +200645,7 @@ __webpack_require__.r(__webpack_exports__); exports = module.exports = __webpack_require__("DjJv")(false); // Module -exports.push([module.i, "html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}:root{--invertedBackgroundColor:#297ef2;--invertedContrastTextColor:#fff}.CozyTheme--inverted{--primaryTextColor:#fff;--secondaryTextColor:rgba(255,255,255,0.64);--disabledTextColor:rgba(255,255,255,0.4);--hintTextColor:rgba(255,255,255,0.4);--iconTextColor:#fff;--actionColorActive:#fff;--actionColorHover:rgba(255,255,255,0.08);--actionColorSelected:rgba(255,255,255,0.16);--actionColorDisabled:rgba(255,255,255,0.32);--actionColorDisabledBackground:rgba(255,255,255,0.12);--actionColorFocus:rgba(255,255,255,0.24);--actionColorGhost:rgba(255,255,255,0.08);--actionColorHoverGhost:rgba(255,255,255,0.16);--dividerColor:rgba(255,255,255,0.16);--borderMainColor:rgba(255,255,255,0.24);--borderDisabledColor:rgba(255,255,255,0.12);--borderGhostColor:rgba(255,255,255,0.48);--borderGhostDisabledColor:rgba(255,255,255,0.24);--paperBackgroundColor:#297ef2;--defaultBackgroundColor:#579eff;--contrastBackgroundColor:rgba(255,255,255,0.12);--primaryColorLight:#fff;--primaryColor:#fff;--primaryColorDark:#eaf3ff;--primaryContrastTextColor:#297ef2;--secondaryColorLight:#f8eefd;--secondaryColor:#ecd7f7;--secondaryColorDark:#deb8f0;--secondaryContrastTextColor:rgba(29,33,42,0.9);--errorColorLight:#ffecec;--errorColor:#ffd3d3;--errorColorDark:#ffb9b9;--errorColorContrastText:rgba(29,33,42,0.9);--errorBackground:#d31f1f;--warningColorLight:#fff3dd;--warningColor:#ffe4b5;--warningColorDark:#ffd58b;--warningColorContrastText:rgba(29,33,42,0.9);--successColorLight:#e3ffe7;--successColor:#c0f4c6;--successColorDark:#97eca1;--successColorContrastText:rgba(29,33,42,0.9);--infoColorLight:#d4feff;--infoColor:#affdff;--infoColorDark:#86f5f7;--infoColorContrastText:rgba(29,33,42,0.9);--iconColor:currentColor;--textIconColor:#fff;--actionMenuIconColor:#fff;--barIconColor:#fff;--barIconColorDisabled:rgba(255,255,255,0.88);--spinnerColor:#fff;--linkColor:#fff;--linkColorActive:#fff;--linkTextDecoration:underline;--regularButtonPrimaryColor:#fff;--regularButtonSecondaryColor:#fff;--regularButtonActiveColor:rgba(255,255,255,0.88);--regularButtonConstrastColor:#297ef2;--secondaryButtonPrimaryColor:#297ef2;--secondaryButtonSecondaryColor:#fff;--secondaryButtonActiveColor:rgba(255,255,255,0.24);--secondaryButtonContrastColor:#fff;--dividerColor2:rgba(255,255,255,0.16)}html{--grey0:#fff;--grey50:#f9fafb;--grey100:#f4f5f6;--grey200:#eceff1;--grey300:#dde0e3;--grey400:#bfc3c7;--grey500:#9da2a6;--grey600:#7c8086;--grey700:#5d6169;--grey800:#3e424a;--grey900:#1d212a;--greyA100:#d3d6d8;--greyA200:#a7abaf;--greyA400:#2c3039;--greyA700:#5d6169;--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,0.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.CozyTheme--normal{--primaryColorLightest:#b3d3ff;--primaryColorLight:#579eff;--primaryColor:#297ef2;--primaryColorDark:#0f5cc7;--primaryContrastTextColor:#fff;--secondaryColorLightest:#ffd3d3;--secondaryColorLight:#f96b6b;--secondaryColor:#ea3f3f;--secondaryColorDark:#d31f1f;--secondaryContrastTextColor:#fff;--primaryBackgroundLight:#f7faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f4f5f6;--contrastBackgroundColor:rgba(29,33,42,0.048);--primaryTextColor:rgba(29,33,42,0.9);--secondaryTextColor:rgba(29,33,42,0.64);--disabledTextColor:rgba(29,33,42,0.32);--hintTextColor:rgba(29,33,42,0.32);--iconTextColor:rgba(29,33,42,0.72);--actionColorActive:rgba(29,33,42,0.56);--actionColorHover:rgba(29,33,42,0.04);--actionColorSelected:rgba(29,33,42,0.08);--actionColorDisabled:rgba(29,33,42,0.24);--actionColorDisabledBackground:rgba(29,33,42,0.12);--actionColorFocus:rgba(29,33,42,0.12);--actionColorGhost:rgba(29,33,42,0.08);--actionColorHoverGhost:rgba(29,33,42,0.16);--borderMainColor:rgba(29,33,42,0.16);--borderDisabledColor:rgba(29,33,42,0.08);--borderGhostColor:rgba(29,33,42,0.48);--borderGhostDisabledColor:rgba(29,33,42,0.16);--dividerColor:rgba(29,33,42,0.12);--successColorLight:#38c949;--successColor:#09ab1b;--successColorDark:#018711;--successColorContrastText:#fff;--warningColorLight:#efa82d;--warningColor:#cb8100;--warningColorDark:#986100;--warningColorContrastText:#fff;--errorColorLightest:#ffecec;--errorColorLight:#f96b6b;--errorColor:#ea3f3f;--errorColorDark:#d31f1f;--errorBackground:#ffecec;--errorColorContrastText:#fff;--infoColorLight:#0ec4c7;--infoColor:#009fa2;--infoColorDark:#007578;--infoColorContrastText:#fff;--shadow0:none;--shadow1:0 2px 4px 0 rgba(29,33,42,0.08),0 4px 16px 0 rgba(29,33,42,0.06),0 0 0 .5px rgba(29,33,42,0.12);--shadow2:0 3px 5px 0 rgba(29,33,42,0.09),0 4px 17px 0 rgba(29,33,42,0.07),0 0 0 .5px rgba(29,33,42,0.12);--shadow3:0 3px 5px -1px rgba(29,33,42,0.09),0 5px 19px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow4:0 3px 6px -1px rgba(29,33,42,0.1),0 5px 20px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow5:0 4px 6px -1px rgba(29,33,42,0.11),0 5px 22px 1px rgba(29,33,42,0.09),0 0 0 .5px rgba(29,33,42,0.12);--shadow6:0 4px 7px -2px rgba(29,33,42,0.11),0 6px 23px 2px rgba(29,33,42,0.1),0 0 0 .5px rgba(29,33,42,0.12);--shadow7:0 5px 7px -2px rgba(29,33,42,0.12),0 6px 24px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow8:0 5px 8px -2px rgba(29,33,42,0.13),0 6px 26px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow9:0 5px 8px -3px rgba(29,33,42,0.14),0 7px 27px 3px rgba(29,33,42,0.12),0 0 0 .5px rgba(29,33,42,0.12);--shadow10:0 6px 9px -3px rgba(29,33,42,0.14),0 7px 29px 3px rgba(29,33,42,0.13),0 0 0 .5px rgba(29,33,42,0.12);--shadow11:0 6px 9px -3px rgba(29,33,42,0.15),0 7px 30px 3px rgba(29,33,42,0.14),0 0 0 .5px rgba(29,33,42,0.12);--shadow12:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 31px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow13:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 33px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow14:0 8px 11px -5px rgba(29,33,42,0.17),0 9px 34px 5px rgba(29,33,42,0.16),0 0 0 .5px rgba(29,33,42,0.12);--shadow15:0 8px 11px -5px rgba(29,33,42,0.18),0 9px 35px 5px rgba(29,33,42,0.17),0 0 0 .5px rgba(29,33,42,0.12);--shadow16:0 9px 12px -5px rgba(29,33,42,0.18),0 9px 37px 5px rgba(29,33,42,0.18),0 0 0 .5px rgba(29,33,42,0.12);--shadow17:0 9px 12px -6px rgba(29,33,42,0.19),0 10px 38px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow18:0 9px 13px -6px rgba(29,33,42,0.2),0 10px 40px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow19:0 10px 13px -6px rgba(29,33,42,0.21),0 10px 41px 6px rgba(29,33,42,0.2),0 0 0 .5px rgba(29,33,42,0.12);--shadow20:0 10px 14px -7px rgba(29,33,42,0.21),0 11px 42px 7px rgba(29,33,42,0.21),0 0 0 .5px rgba(29,33,42,0.12);--shadow21:0 11px 14px -7px rgba(29,33,42,0.22),0 11px 44px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow22:0 11px 15px -7px rgba(29,33,42,0.23),0 11px 45px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow23:0 12px 15px -8px rgba(29,33,42,0.23),0 12px 47px 8px rgba(29,33,42,0.23),0 0 0 .5px rgba(29,33,42,0.12);--shadow24:0 12px 16px -8px rgba(29,33,42,0.24),0 12px 48px 8px rgba(29,33,42,0.24),0 0 0 .5px rgba(29,33,42,0.12);--shadow25:0 1px 4px rgba(29,33,42,0.04);--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}.u-elevation-1{box-shadow:0 4px 12px 0 rgba(0,0,0,0.08);border:1px solid rgba(0,0,0,0.08)}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zIndex-modal-footer:71;--zIndex-modal-toolbar:72;--zindex-alert:80}/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\nhtml{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100%;margin:0}@media (max-width:63.938rem){html,body{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}html,body{background-color:var(--white);color:var(--black)}.u-visuallyhidden{position:absolute !important;border:0 !important;width:.063rem !important;height:.063rem !important;overflow:hidden !important;padding:0 !important;white-space:nowrap !important;clip:rect(.063rem,.063rem,.063rem,.063rem) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important}.u-hide{display:none !important;visibility:hidden !important}@media (max-width:63.938rem){.u-hide--mob{display:none !important}}@media (min-width:64rem){.u-hide--tablet{display:none !important}}@media (min-width:48.063rem){.u-hide--desk{display:none !important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black) !important}.u-charcoalGrey{color:var(--charcoalGrey) !important}.u-coolGrey{color:var(--coolGrey) !important}.u-silver{color:var(--silver) !important}.u-slateGrey{color:var(--slateGrey) !important}.u-lightishPurple{color:#b449e7 !important}.u-dodgerBlue{color:#297ef2 !important}.u-overlay{color:var(--overlay) !important}.u-paleGrey{color:var(--paleGrey) !important}.u-monza{color:#dd0505 !important}.u-pomegranate{color:#f52d2d !important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight) !important}.u-primaryColor{color:var(--primaryColor) !important}.u-primaryColorLight{color:var(--primaryColorLight) !important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor) !important}.u-error{color:var(--errorColor) !important}.u-errorBackground{color:var(--errorBackground) !important}.u-success{color:var(--successColor) !important}.u-warning{color:var(--warningColor) !important}.u-info{color:var(--infoColor) !important}.u-weirdGreen{color:#40de8e !important}.u-white{color:var(--white) !important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis > *{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis > :first-child{text-overflow:ellipsis}.u-midellipsis > :last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:'[...]'){.u-midellipsis > :first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor) !important;-webkit-text-decoration:var(--linkTextDecoration) !important;text-decoration:var(--linkTextDecoration) !important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive) !important}.u-lh-tiny{line-height:1 !important}.u-lh-xsmall{line-height:1.1 !important}.u-lh-small{line-height:1.2 !important}.u-lh-medium{line-height:1.3 !important}.u-lh-large{line-height:1.4 !important}.u-lh-xlarge{line-height:1.5 !important}.u-fz-tiny{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium{font-size:1rem !important;line-height:1.5 !important}.u-fz-large{font-size:1.125rem !important;line-height:1.5 !important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-t{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-t{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-t{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-t{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-s{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-s{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-s{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-s{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-m{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-m{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-m{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-m{font-size:1.125rem !important;line-height:1.5 !important}}.u-ta-left{text-align:left !important}.u-ta-right{text-align:right !important}.u-ta-center{text-align:center !important}.u-ta-justify{text-align:justify !important}@media (max-width:30rem){.u-ta-left-t{text-align:left !important}.u-ta-right-t{text-align:right !important}.u-ta-center-t{text-align:center !important}.u-ta-justify-t{text-align:justify !important}}@media (max-width:48rem){.u-ta-left-s{text-align:left !important}.u-ta-right-s{text-align:right !important}.u-ta-center-s{text-align:center !important}.u-ta-justify-s{text-align:justify !important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left !important}.u-ta-right-m{text-align:right !important}.u-ta-center-m{text-align:center !important}.u-ta-justify-m{text-align:justify !important}}.u-fs-normal{font-style:normal !important}.u-fs-italic{font-style:italic !important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal !important}.u-fs-italic-t{font-style:italic !important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal !important}.u-fs-italic-s{font-style:italic !important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal !important}.u-fs-italic-m{font-style:italic !important}}.u-fw-normal{font-weight:normal}.u-fw-bold{font-weight:bold}@media (max-width:30rem){.u-fw-normal-t{font-weight:normal}.u-fw-bold-t{font-weight:bold}}@media (max-width:48rem){.u-fw-normal-s{font-weight:normal}.u-fw-bold-s{font-weight:bold}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:normal}.u-fw-bold-m{font-weight:bold}}.c-btn,.c-btn--regular,.c-btn-client,.c-btn-client-mobile{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-width:.063rem;border-style:solid;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:bold;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border-color:var(--regularButtonSecondaryColor)}.c-btn svg,.c-btn--regular svg,.c-btn-client svg,.c-btn-client-mobile svg{fill:currentColor}.c-btn svg + span,.c-btn--regular svg + span,.c-btn-client svg + span,.c-btn-client-mobile svg + span{margin-left:.375rem}.c-btn input,.c-btn--regular input,.c-btn-client input,.c-btn-client-mobile input{cursor:pointer}.c-btn > span,.c-btn--regular > span,.c-btn-client > span,.c-btn-client-mobile > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn[disabled],.c-btn--regular[disabled],.c-btn-client[disabled],.c-btn-client-mobile[disabled],.c-btn[aria-disabled=true],.c-btn--regular[aria-disabled=true],.c-btn-client[aria-disabled=true],.c-btn-client-mobile[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn[disabled] input,.c-btn--regular[disabled] input,.c-btn-client[disabled] input,.c-btn-client-mobile[disabled] input,.c-btn[aria-disabled=true] input,.c-btn--regular[aria-disabled=true] input,.c-btn-client[aria-disabled=true] input,.c-btn-client-mobile[aria-disabled=true] input{cursor:not-allowed}.c-btn[aria-busy=true],.c-btn--regular[aria-busy=true],.c-btn-client[aria-busy=true],.c-btn-client-mobile[aria-busy=true]{opacity:.5;pointer-events:none}.c-btn:visited,.c-btn--regular:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--regularButtonConstrastColor)}.c-btn:active,.c-btn--regular:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn:hover,.c-btn--regular:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn:focus,.c-btn--regular:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.c-btn[disabled]:hover,.c-btn--regular[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn[aria-disabled=true]:hover,.c-btn--regular[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.c-btn--ghost{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.c-btn--ghost:visited{color:var(--primaryColor)}.c-btn--ghost:active,.c-btn--ghost:hover,.c-btn--ghost:focus{border-color:#c2dcff;background-color:#c2dcff}.c-btn--ghost[disabled]:hover,.c-btn--ghost[aria-disabled=true]:hover{border-color:#c2dcff;background-color:var(--zircon)}.c-btn--highlight{background-color:#35ce68;color:var(--white);border-color:#35ce68}.c-btn--highlight:visited{color:var(--white)}.c-btn--highlight:active,.c-btn--highlight:hover,.c-btn--highlight:focus{border-color:#08b442;background-color:#08b442}.c-btn--highlight[disabled]:hover,.c-btn--highlight[aria-disabled=true]:hover{border-color:#35ce68;background-color:#35ce68}.c-btn--alpha,.c-btn--action,.c-btn--close{background-color:transparent;color:var(--white);border-color:var(--white)}.c-btn--alpha:visited,.c-btn--action:visited,.c-btn--close:visited{color:var(--white)}.c-btn--alpha:active,.c-btn--action:active,.c-btn--close:active,.c-btn--alpha:hover,.c-btn--action:hover,.c-btn--close:hover,.c-btn--alpha:focus,.c-btn--action:focus,.c-btn--close:focus{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.c-btn--alpha[disabled]:hover,.c-btn--action[disabled]:hover,.c-btn--close[disabled]:hover,.c-btn--alpha[aria-disabled=true]:hover,.c-btn--action[aria-disabled=true]:hover,.c-btn--close[aria-disabled=true]:hover{border-color:var(--white);background-color:transparent}.c-btn--danger{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.c-btn--danger:visited{color:var(--white)}.c-btn--danger:active,.c-btn--danger:hover,.c-btn--danger:focus{border-color:var(--monza);background-color:var(--monza)}.c-btn--danger[disabled]:hover,.c-btn--danger[aria-disabled=true]:hover{border-color:#f52d2d;background-color:#f52d2d}.c-btn--secondary,.c-btn-client,.c-btn-client-mobile{background-color:var(--secondaryButtonPrimaryColor);color:var(--secondaryButtonContrastColor);border-color:var(--secondaryButtonSecondaryColor)}.c-btn--secondary:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--secondaryButtonContrastColor)}.c-btn--secondary:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn--secondary:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn--secondary:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.c-btn--secondary[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn--secondary[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.c-btn--danger-outline{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.c-btn--danger-outline:visited{color:#f52d2d}.c-btn--danger-outline:active,.c-btn--danger-outline:hover,.c-btn--danger-outline:focus{border-color:#fdcbcb;background-color:#fdcbcb}.c-btn--danger-outline[disabled]:hover,.c-btn--danger-outline[aria-disabled=true]:hover{border-color:#fdcbcb;background-color:var(--white)}.c-btn--text{background-color:transparent;color:var(--primaryColor);border-color:transparent}.c-btn--text:visited{color:var(--primaryColor)}.c-btn--text:active,.c-btn--text:hover,.c-btn--text:focus{border-color:transparent;background-color:transparent}.c-btn--text[disabled]:hover,.c-btn--text[aria-disabled=true]:hover{border-color:transparent;background-color:transparent}.c-btn--text:hover,.c-btn--text:focus{color:var(--primaryColorDark)}.c-btn--action{border-color:transparent;padding:.5rem;opacity:.5}.c-btn--action:active,.c-btn--action:hover,.c-btn--action:focus{background-color:transparent;border-color:transparent}.c-btn--close{border-color:transparent;padding:.5rem}.c-btn--close:active,.c-btn--close:hover,.c-btn--close:focus{background-color:transparent;border-color:transparent}.c-btn-alert,.c-btn-alert--error,.c-btn-alert--info,.c-btn-alert--success{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:bold;font-size:.875rem;text-decoration:none}.c-btn-alert--error{color:#f52d2d !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--error:visited{color:#f52d2d !important}.c-btn-alert--error:active,.c-btn-alert--error:hover,.c-btn-alert--error:focus{color:var(--monza) !important;background-color:#fdcbcb !important;border-color:#fdcbcb !important}.c-btn-alert--info{color:var(--white) !important;background-color:var(--coolGrey) !important;border-color:var(--coolGrey) !important}.c-btn-alert--info[disabled]:hover,.c-btn-alert--info[aria-disabled=true]:hover{background-color:var(--coolGrey) !important}.c-btn-alert--info:visited{color:var(--white) !important}.c-btn-alert--info:active,.c-btn-alert--info:hover,.c-btn-alert--info:focus{background-color:var(--charcoalGrey) !important;border-color:var(--charcoalGrey) !important}.c-btn-alert--success{color:#35ce68 !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--success:visited{color:#35ce68 !important}.c-btn-alert--success:active,.c-btn-alert--success:hover,.c-btn-alert--success:focus{color:#08b442 !important;background-color:#def7e7 !important;border-color:#def7e7 !important}.c-btn-client,.c-btn-client-mobile{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:transparent;text-align:left;font-size:.813rem;font-weight:bold;line-height:1.3;color:var(--slateGrey)}.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--slateGrey)}.c-btn-client span,.c-btn-client-mobile span{flex:0 1 auto}.c-btn-client figure,.c-btn-client-mobile figure{flex:0 0 2rem;margin:0 .75rem 0 0}.c-btn-client-mobile{display:flex;justify-content:flex-start;background-color:var(--dodgerBlue);border:0;border-radius:0;margin:0;padding:.5rem 3rem .5rem 1rem;font-size:1rem;font-weight:normal;color:var(--white);text-decoration:none;text-transform:none}.c-btn-client-mobile[disabled]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{background-color:var(--dodgerBlue)}.c-btn-client-mobile:visited{color:var(--white)}.c-btn-client-mobile:active,.c-btn-client-mobile:hover,.c-btn-client-mobile:focus{background-color:var(--dodgerBlue)}.c-btn-client-mobile figure{flex:0 0 2.75rem;border-radius:.5rem;border:.313rem solid var(--white);background-color:var(--white)}.c-btn-client-mobile figure svg{display:block}.c-btn--left > span{justify-content:flex-start}.c-btn--center > span{justify-content:center}.c-btn--right > span{justify-content:flex-end}.c-btn.c-btn--tiny{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.c-btn.c-btn--small{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.c-btn.c-btn--large{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.c-btn.c-btn--full{width:100%;margin-left:0;margin-right:0}.c-btn.c-btn--narrow,.c-btn.c-btn--round{min-width:auto}.c-btn.c-btn--round{border-radius:100%;min-height:auto;padding:.25rem}.c-btn.c-btn--round svg{width:.625rem;height:.625rem}@media (pointer:coarse){.c-btn.c-btn--round:after{content:'';position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.c-btn--subtle{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:baseline;background:transparent;cursor:pointer;font-size:.875rem;font-weight:bold;text-transform:uppercase}.c-btn--subtle:active,.c-btn--subtle:focus,.c-btn--subtle:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn--subtle[disabled],.c-btn--subtle[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn--subtle[disabled]:hover,.c-btn--subtle[aria-disabled=true]:hover{background:transparent}.c-btn--subtle[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.c-btn--subtle[aria-busy=true]:hover{background:transparent}.c-btn--subtle:active,.c-btn--subtle:hover,.c-btn--subtle:focus,.c-btn--subtle:visited{color:var(--primaryColorDark);background:transparent}* + .c-btn--subtle{margin-left:.063rem}.c-btn--subtle.c-btn--tiny{min-height:0;min-width:0;padding:0;font-size:.563rem}.c-btn--subtle.c-btn--small{min-height:0;min-width:0;padding:0;font-size:.75rem}.c-btn--subtle.c-btn--large{min-height:0;min-width:0;padding:0;font-size:1rem}.c-btn--subtle.c-btn--danger{color:#f52d2d}.c-btn--subtle.c-btn--danger:active,.c-btn--subtle.c-btn--danger:focus,.c-btn--subtle.c-btn--danger:hover{color:var(--monza)}.c-btn--subtle.c-btn--highlight{color:#35ce68}.c-btn--subtle.c-btn--highlight:active,.c-btn--subtle.c-btn--highlight:focus,.c-btn--subtle.c-btn--highlight:hover{color:#08b442}.c-btn--subtle.c-btn--regular{color:var(--regularButtonSecondaryColor)}.c-btn--subtle.c-btn--regular:active,.c-btn--subtle.c-btn--regular:focus,.c-btn--subtle.c-btn--regular:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle.c-btn--secondary{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary:active,.c-btn--subtle.c-btn--secondary:focus,.c-btn--subtle.c-btn--secondary:hover{color:var(--charcoalGrey)}.c-btn--subtle.c-btn--secondary:active svg,.c-btn--subtle.c-btn--secondary:focus svg,.c-btn--subtle.c-btn--secondary:hover svg{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary svg{color:var(--coolGrey)}[data-input=radio],[data-input=checkbox]{display:flex}[data-input=radio] input[type=radio],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=checkbox] input[type=checkbox]{display:none !important;visibility:hidden !important}[data-input=radio] label,[data-input=checkbox] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=radio] label::before,[data-input=checkbox] label::before,[data-input=radio] label::after,[data-input=checkbox] label::after{content:'';position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=radio] label::before,[data-input=checkbox] label::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1)}[data-input=radio] label::after,[data-input=checkbox] label::after{transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-label{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:bold;line-height:1rem}.c-label.is-error{color:var(--pomegranate)}.c-label--block{display:block;padding:.5rem 0}.c-input-text[aria-disabled=true],.c-input-text[disabled],.c-textarea[aria-disabled=true],.c-textarea[disabled],.c-select[aria-disabled=true],.c-select[disabled],.wizard-select[aria-disabled=true],.wizard-select[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.c-input-text[aria-disabled=true]:hover,.c-input-text[disabled]:hover,.c-textarea[aria-disabled=true]:hover,.c-textarea[disabled]:hover,.c-select[aria-disabled=true]:hover,.c-select[disabled]:hover,.wizard-select[aria-disabled=true]:hover,.wizard-select[disabled]:hover,.c-input-text[aria-disabled=true]:focus,.c-input-text[disabled]:focus,.c-textarea[aria-disabled=true]:focus,.c-textarea[disabled]:focus,.c-select[aria-disabled=true]:focus,.c-select[disabled]:focus,.wizard-select[aria-disabled=true]:focus,.wizard-select[disabled]:focus{border:.063rem solid var(--dividerColor)}.c-input-text,.c-textarea,.c-select,.wizard-select{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.c-input-text::-webkit-input-placeholder,.c-textarea::-webkit-input-placeholder,.c-select::-webkit-input-placeholder,.wizard-select::-webkit-input-placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text::placeholder,.c-textarea::placeholder,.c-select::placeholder,.wizard-select::placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text:hover,.c-textarea:hover,.c-select:hover,.wizard-select:hover{border:.063rem solid var(--coolGrey)}.c-input-text:focus,.c-textarea:focus,.c-select:focus,.wizard-select:focus{border:.063rem solid var(--dodgerBlue);outline:0}.c-input-text.is-error,.c-textarea.is-error,.c-select.is-error,.wizard-select.is-error,.c-input-text:not(:focus):invalid,.c-textarea:not(:focus):invalid,.c-select:not(:focus):invalid,.wizard-select:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.c-input-text--tiny,.c-textarea--tiny,.c-select--tiny{border-radius:.125rem;padding:.25rem .5rem .375rem}.c-input-text--medium,.c-textarea--medium,.c-select--medium,.wizard-select--medium{border-radius:.125rem;padding:.5rem 1rem .625rem}.c-input-text--large{border-radius:.188rem;padding:.813rem 1rem}.c-input-text--fullwidth,.c-textarea--fullwidth,.c-select--fullwidth{max-width:100%}.c-input-checkbox,.c-input-radio{display:flex;align-items:center;min-width:1rem;min-height:1rem}.c-input-checkbox span,.c-input-radio span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.c-input-checkbox span::before,.c-input-radio span::before,.c-input-checkbox span::after,.c-input-radio span::after{content:'';position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.c-input-checkbox span::before,.c-input-radio span::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.c-input-checkbox span:hover::before,.c-input-radio span:hover::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox span::after,.c-input-radio span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox[aria-checked='mixed'] span::after,.c-input-radio[aria-checked='mixed'] span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}.c-input-checkbox[aria-disabled=true] span,.c-input-radio[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.c-input-checkbox[aria-disabled=true] :hover::before,.c-input-radio[aria-disabled=true] :hover::before{box-shadow:inset 0 0 0 .125rem var(--silver)}.c-input-checkbox[aria-disabled=true] ::before,.c-input-radio[aria-disabled=true] ::before{background-color:var(--paleGrey)}.c-input-checkbox input,.c-input-radio input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0,0 0,0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.c-input-checkbox input:focus + span::before,.c-input-radio input:focus + span::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::before,.c-input-radio input:checked + span::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::after,.c-input-radio input:checked + span::after{opacity:1;-webkit-transform:translateY(-50%) scale(1);transform:translateY(-50%) scale(1)}.c-input-checkbox input:not(:checked) + span::after,.c-input-radio input:not(:checked) + span::after{opacity:0;-webkit-transform:translateY(-50%) scale(0);transform:translateY(-50%) scale(0)}.c-input-checkbox.is-error span,.c-input-radio.is-error span{color:var(--pomegranate)}.c-input-checkbox.is-error span::before,.c-input-radio.is-error span::before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.c-input-checkbox--noGutter span,.c-input-radio--noGutter span{padding-left:0}.c-input-radio span::before,.c-input-radio span::after{border-radius:50%}.c-input-radio span::after{content:'';background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.c-textarea{display:block;width:100%;min-height:7.5rem;resize:vertical}.c-textarea--tiny{min-height:3rem}.c-textarea--medium{min-height:5rem}.c-select,.c-select--tiny,.c-select--medium,.c-select--fullwidth,.wizard-select,.wizard-select--medium{padding-right:2.375rem}.c-select,.wizard-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyLjI4NTcxNCwgMTIuMDAwMDAwKSByb3RhdGUoOTAuMDAwMDAwKSB0cmFuc2xhdGUoLTEyLjI4NTcxNCwgLTEyLjAwMDAwMCkiPgogICAgPHBhdGggZD0iTTYuNDYwMjYwNzcsMjAuMzE3NDAzNiBDNS44NDY1Nzk3NCwyMC45MzEwODQ3IDUuODQ2NTc5NzQsMjEuOTI2MDU4MiA2LjQ2MDI2MDc3LDIyLjUzOTczOTIgQzcuMDczOTQxOCwyMy4xNTM0MjAzIDguMDY4OTE1MzQsMjMuMTUzNDIwMyA4LjY4MjU5NjM3LDIyLjUzOTczOTIgTDE4LjExMTE2NzgsMTMuMTExMTY3OCBDMTguNzI0ODQ4OCwxMi40OTc0ODY4IDE4LjcyNDg0ODgsMTEuNTAyNTEzMiAxOC4xMTExNjc4LDEwLjg4ODgzMjIgTDguNjgyNTk2MzcsMS40NjAyNjA3NyBDOC4wNjg5MTUzNCwwLjg0NjU3OTc0MyA3LjA3Mzk0MTgsMC44NDY1Nzk3NDMgNi40NjAyNjA3NywxLjQ2MDI2MDc3IEM1Ljg0NjU3OTc0LDIuMDczOTQxOCA1Ljg0NjU3OTc0LDMuMDY4OTE1MzQgNi40NjAyNjA3NywzLjY4MjU5NjM3IEwxNC43Nzc2NjQ0LDEyIEw2LjQ2MDI2MDc3LDIwLjMxNzQwMzYgWiIgLz4KICA8L2c+Cjwvc3ZnPgo=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.c-select::-ms-expand,.wizard-select::-ms-expand{display:none}.o-field{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.o-field-inline{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.o-field-inline{flex-direction:column;margin-left:0}}.c-double-field{width:100%}.c-double-field--with-button{box-sizing:border-box;position:relative;padding-right:2.5rem}.c-double-field-label{min-height:2.5rem}.c-double-field-button{position:absolute;right:-2.5rem;top:.625rem}.c-double-field-wrapper{display:inline-flex;width:100%;margin-bottom:.5rem}@media (max-width:48rem){.c-double-field-wrapper{flex-direction:column}}.c-double-field-input{box-sizing:border-box;flex:1 1 70%}.c-double-field-input + .c-double-field-input{flex:1 1 auto}[data-input=radio] label::before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked + label::before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label::before,[data-input=checkbox] label::after{border-radius:.125rem}[data-input=checkbox] label::before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label::before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain}[data-input=checkbox][aria-checked='mixed'] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked + label::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked + label::after{opacity:1;-webkit-transform:scale(1);transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked) + label::after{opacity:0;-webkit-transform:scale(0);transform:scale(0)}.wizard-wrapper{display:flex;flex-flow:column nowrap;align-items:stretch}.wizard-main{background:linear-gradient(#fff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,0.25) 0,rgba(214,216,218,0.25) 25%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 100%),linear-gradient(rgba(255,255,255,0) 0,rgba(255,255,255,0) 74%,rgba(214,216,218,0.25) 75%,rgba(214,216,218,0.25) 100%) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.wizard-header,.wizard-footer{flex:0 0 auto}.o-layout,.o-layout-2panes{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.o-layout main,.o-layout-2panes main{display:flex;flex-direction:column;flex:0 0 auto}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.o-layout,.o-layout-2panes{display:block}.o-layout main,.o-layout-2panes main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{display:block;overflow:visible}.o-layout:before,.o-layout-2panes:before,.o-layout:after,.o-layout-2panes:after{content:'';display:block}.o-layout:before,.o-layout-2panes:before{height:3rem}.o-layout:after,.o-layout-2panes:after{height:3rem}}.o-layout-2panes{flex:0 0 100%;align-items:stretch}.o-layout-2panes > aside{display:flex;flex-direction:column;flex:0 0 auto}.o-layout-2panes main,.o-layout-2panes main > [role=contentinfo],.o-layout-2panes main > [role=main]{height:auto}@media (max-width:63.938rem){.o-layout-2panes > aside{position:fixed;bottom:0;left:0;display:block;z-index:var(--zIndex-nav);width:100%}}.u-media{display:flex;align-items:center}.u-media-top{align-items:flex-start}.u-media-bottom{align-items:flex-end}.u-media-grow{flex:1 1 auto;overflow:hidden}.u-media-fixed{line-height:0;flex:0 0 auto}:root{--sidebarHeight:3rem}.o-sidebar{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.o-sidebar{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.c-avatar{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:var(--zIndex-low)}.c-avatar svg{width:50%;height:50%}.c-avatar-image{width:100%}.u-card{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.c-chip{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.c-chip--round{width:2.5rem;text-align:center;justify-content:center}.c-chip--tinySize{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.c-chip--smallSize{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.c-chip--normalSize{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.c-chip--outlinedVariant{border:1px solid}.c-chip--dashedVariant{border:1px dashed}.c-chip--normalTheme{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.c-chip--primaryTheme{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.c-chip--errorTheme{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.c-chip--hoverableNormalTheme{color:var(--charcoalGrey)}.c-chip--hoverableNormalTheme:hover,.c-chip--hoverableNormalTheme:focus{background-color:var(--silver)}.c-chip--hoverablePrimaryTheme:hover,.c-chip--hoverablePrimaryTheme:focus{background-color:var(--primaryBackgroundLight)}.c-chip--normalPrimaryTheme{background-color:var(--primaryColor);color:var(--white)}.c-chip--hoverableErrorTheme:hover,.c-chip--hoverableErrorTheme:focus{background-color:var(--errorColorLight)}.c-chip--outlinedNormalTheme{background-color:transparent}.c-chip--clickable{cursor:pointer}.c-chip-separator{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.c-chip-button{cursor:pointer;color:var(--slateGrey)}.c-chip-button--disabled{color:var(--coolGrey)}.c-avatar{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize) / 2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.c-avatar--xsmall{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:calc(1rem / 2.28)}.c-avatar--small{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:calc(2rem / 2.28)}.c-avatar--large{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:calc(3rem / 2.28)}.c-avatar--xlarge{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:calc(4rem / 2.28)}.c-avatar-initials{font-weight:bold;line-height:1}.c-nav{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.c-nav{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.c-nav-item{position:relative;z-index:var(--zIndex-app);height:3rem;box-sizing:border-box;cursor:pointer}.c-nav-item:hover::before{content:'';position:absolute;z-index:var(--zIndex-below);border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item:hover::before{content:none}}@media (max-width:63.938rem){.c-nav-item{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.c-nav-item:hover::before{content:none}}.c-nav-icon{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.c-nav-icon svg{display:block}.is-active .c-nav-icon{color:var(--primaryColor)}:hover > .c-nav-icon{color:var(--navTextColor)}@media (max-width:63.938rem){.c-nav-icon{display:block;margin-right:0}.c-nav-icon svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.c-nav-text{display:block;text-align:center;white-space:nowrap}}.c-nav-link{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem center}.c-nav-link:visited{color:var(--navTextColor)}.c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-link.is-active{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:bold;color:var(--navTextActiveColor)}.c-nav-link.is-active .c-nav-icon{color:var(--primaryColor)}@media (max-width:63.938rem){.c-nav-link{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:center top;background-size:1.5rem}.c-nav-link.is-active,.c-nav-link:hover{box-shadow:none;font-weight:normal}}@media not all and (pointer:fine){.c-nav-link:hover:not(.is-active){color:var(--navTextColor)}}.c-nav-item-secondary{height:auto}.c-nav-item-secondary + .c-nav-item-secondary{margin-top:.125rem}@media (max-width:63.938rem){.c-nav-item-secondary{display:none}}.c-nav-item-secondary:hover::before{content:'';position:absolute;z-index:var(--zIndex-below);border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item-secondary:hover::before{content:none}}.c-nav-item-secondary .c-nav-link{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.c-nav-item-secondary .c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-item-secondary .c-nav-link.is-active{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.c-table-divider{background-color:var(--paleGrey);height:2rem;display:flex;align-items:center;text-indent:2rem;font-weight:bold;font-size:.75rem;line-height:1.33;color:var(--coolGrey);text-transform:uppercase}.c-table-divider + .c-table-divider{border-top:0}@media (max-width:48rem){.c-table-divider{text-indent:1rem}}div.c-table{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.c-table-head{flex:0 0 2rem}@media (max-width:48rem){.c-table-head{display:none}}.c-table-body{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.c-table-body{max-height:100%}}.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:var(--actionColorHover)}@media (hover:none){.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:transparent}}.c-table-row:last-child,.c-table-row-head:last-child,table.c-table tr:last-child,table.c-table thead tr:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{max-width:100vw}}.c-table-row-head,table.c-table thead tr{border:0}.c-table-row-head:hover,table.c-table thead tr:hover{background-color:transparent}.c-table-row-head:last-child,table.c-table thead tr:last-child{border-bottom:0}.c-table-row.is-selected,table.c-table tr.is-selected,.c-table-row.is-selected:hover,table.c-table tr.is-selected:hover{background-color:var(--zircon)}.c-table-cell,.c-table-header,table.c-table th,table.c-table td{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.c-table-header,table.c-table th{padding:.5rem 1rem;font-size:.75rem;font-weight:bold;text-transform:uppercase}.c-table-cell--primary,.c-table-ellipsis,table.c-table td.c-table-cell--primary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-table-cell--primary,table.c-table td.c-table-cell--primary{font-size:1rem;line-height:1.15;color:var(--charcoalGrey)}@media (max-width:48rem){.c-table-cell--primary,table.c-table td.c-table-cell--primary{flex:1 1 auto}}.c-table-divider{position:sticky;z-index:var(--zIndex-low);top:0}table.c-table{width:100%;border:0;text-align:left;color:var(--secondaryTextColor);border-collapse:collapse}table.c-table tr{display:table-row}table.c-table thead tr{display:table-row}table.c-table tr.c-table-divider{border:0;width:auto;height:auto;background-color:var(--zircon)}table.c-table tr.c-table-divider::before{content:none}table.c-table tr.c-table-divider td{font-weight:bold;color:var(--secondaryTextColor);padding:0;font-size:.75rem;line-height:1.33}table.c-table tr.c-table-divider + *{border-top:0}table.c-table td.c-table-ellipsis{position:relative}table.c-table td.c-table-ellipsis > div{box-sizing:border-box;position:absolute;top:.875rem;right:1rem;bottom:.875rem;left:1rem;display:block;width:calc(100% - rem(32))}table.c-table td.c-table-ellipsis > div > div{box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wizard{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard{flex-direction:column;justify-content:flex-start}}.wizard--waiting{color:var(--white);background-color:var(--primaryColor)}.wizard--scroll{position:absolute;padding-top:3.5rem}@media (max-width:63.938rem){.wizard--scroll{box-sizing:border-box}}@media (max-width:30rem),(max-height:23.438rem){.wizard--scroll{padding-top:0}}.wizard--dual{position:static;width:100%}.wizard-wrapper{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper{justify-content:flex-start}}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper--center{justify-content:center}}.wizard-wrapper--bleed{align-items:center;max-width:100%}.wizard-wrapper--dual{display:flex;flex-direction:column;align-items:center;height:100vh}@media (max-height:38rem){.wizard-wrapper--dual{min-height:100vh;height:auto}}.wizard-dual{flex:1 1 50%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.wizard-dual:first-child{justify-content:flex-end;color:var(--white);background-color:var(--primaryColor)}.wizard-errors{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.wizard-errors p{margin:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-errors{margin-top:.5rem}}.wizard-header{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-width:30rem),(max-height:23.438rem){.wizard-header{margin:1rem 0 0}}.wizard-dual .wizard-header{margin-bottom:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-header{margin-bottom:1.5rem}}.wizard-main{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.wizard-main > *{flex-shrink:0}.wizard-footer{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem;padding-bottom:env(safe-area-inset-bottom)}.wizard-footer > button,.wizard-footer > a:link{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-footer{margin:1.5rem 0 .5rem}}.wizard--welcome .wizard-footer{justify-content:space-between}@media (min-width:30.063rem){.wizard--welcome .wizard-footer > button,.wizard--welcome .wizard-footer > a:link{flex:0 1 calc(50% - 0.25rem)}}.wizard-dual .wizard-footer{margin-top:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-footer{margin-top:1.5rem;font-size:.875rem}}.wizard-logo{position:relative;margin:0 auto;width:7.5rem}.wizard-logo-img{width:100%;vertical-align:center}.wizard-logo-badge{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.wizard-header-help{order:-1;margin:0 0 .5rem;font-size:1.125rem;line-height:1.5;text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard-header-help{margin:.25rem 0 0;font-size:1rem}}.wizard-disclaimer{display:flex;margin:1.5rem 0 .5rem;flex-direction:row;align-items:flex-start;font-size:.938rem;line-height:1.33}.wizard-disclaimer span{flex:0 0 auto;margin-right:1rem;background-color:var(--grannyApple);padding:.5rem;border-radius:50%}.wizard-disclaimer svg{display:block;fill:var(--emerald)}.wizard-disclaimer strong{color:var(--emerald)}@media (max-width:30rem),(max-height:23.438rem){.wizard-disclaimer{display:none}}.wizard-desc{margin:2rem 0 0;line-height:1.5}.wizard-desc a{color:var(--primaryColor);text-decoration:none}.wizard-desc a:hover,.wizard-desc a:focus{color:var(--primaryColorDark)}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc{margin:1.5rem 0 0}}.wizard-desc--footer{margin:2rem 0}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc--footer{margin:1rem 0}}.wizard-header-fixed{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.wizard-previous{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.wizard-brand{margin-left:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-brand{display:none}}.wizard-brand--invert svg{-webkit-filter:brightness(0) invert(100%);filter:brightness(0) invert(100%)}.wizard-previous + .wizard-brand{position:relative;padding-left:1.5rem;margin-left:.5rem}.wizard-previous + .wizard-brand:before{content:'';position:absolute;left:0;top:50%;height:1.5rem;border-left:.063rem solid var(--dividerColor);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.wizard-next{padding-right:3rem;padding-left:3rem}.wizard-next svg{position:absolute;right:1rem}@media (min-width:30.063rem) and (min-height:23.5rem){.wizard-button{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (min-width:30.063rem){.wizard-buttonlink{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard-input{border-radius:.125rem;padding:.5rem 1rem .625rem}}.wizard-dual-btn{position:absolute;bottom:-2.437rem;left:1rem;right:1rem;margin:0;width:calc(100% - 2rem);font-size:.875rem}@media (min-width:30.063rem){.wizard-dual-btn{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5;bottom:-2rem;font-size:1rem}}.wizard-dual-btn:hover,.wizard-dual-btn:focus{background-color:var(--emerald);border-color:var(--emerald)}.wizard-waiting-icon,.wizard-dual-icon{margin:0 0 2rem;height:6.188rem}.wizard-waiting-icon svg,.wizard-dual-icon svg{display:block;margin:0 auto;height:100%;width:100%}@media (max-width:30rem),(max-height:23.438rem){.wizard-waiting-icon,.wizard-dual-icon{margin-bottom:1rem;height:3.438rem}}.wizard-dual-icon{margin:0 0 1rem;height:7.688rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-icon{height:5.125rem}}.wizard-title,.wizard-dual-title{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-width:30rem),(max-height:23.438rem){.wizard-title,.wizard-dual-title{font-size:1.125rem;line-height:1.78}}.wizard-dual-title{margin-bottom:1rem;font-size:2.5rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-title{margin-bottom:.5rem;font-size:1.5rem;line-height:1.3}}.wizard-title-sub{display:block;margin-top:.5rem;opacity:.64;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-title-sub{margin:0;font-size:1rem;line-height:1.5}}.wizard-subtitle,.wizard-dual-subtitle{margin:0;text-align:center;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-subtitle,.wizard-dual-subtitle{font-size:.875rem;line-height:1.15}}.wizard-dual-subtitle{font-size:1.25rem;line-height:1.4}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-subtitle{font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard--welcome .wizard-title{font-size:1.5rem;line-height:1.17}}.wizard-showbutton{position:absolute;right:0;top:.688rem;margin:0;border:0;padding:0;min-width:auto;background-color:transparent;color:var(--coolGrey)}.wizard-showbutton:hover,.wizard-showbutton:focus{background-color:inherit;color:var(--charcoalGrey)}.wizard-dualfield{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.wizard-dualfield--focus{border-color:var(--primaryColor)}.wizard-dualfield--error{border-color:var(--errorColor)}.wizard-dualfield-wrapper{flex:1 1 auto}.wizard-dualfield-input{border:0;padding-right:.5rem}.wizard-dualfield-input:hover,.wizard-dualfield-input:focus{position:relative;z-index:1;border:0;outline:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-dualfield-input{border-radius:.125rem;padding:.5rem 1rem .625rem;padding-right:.25rem}}.wizard-protocol{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.wizard-protocol svg{fill:currentColor;margin-right:.5rem}.wizard-domain{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;margin-right:1rem;max-width:8.75rem}.wizard-select{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.wizard-select:hover,.wizard-select:focus{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.wizard-select--medium{padding:.313rem 2.375rem .438rem .5rem}.wizard-requirements{order:2;margin-bottom:0;padding:0;list-style:disc inside;line-height:1.5;font-style:italic;color:var(--coolGrey)}.wizard-requirements span{display:inline-block;text-indent:.375rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-requirements{font-size:.875rem;margin-top:.5rem}.wizard-requirements span{text-indent:.125rem}}.wizard-agreements{display:flex;flex-direction:row;margin:0 auto;padding:0;list-style:none;max-width:64.5rem}@media (max-width:63.938rem){.wizard-agreements{flex-direction:column;margin:0 auto;max-width:32rem}}.wizard-agreements-item{position:relative;overflow:hidden;display:flex;flex-direction:column;flex:1 1 calc(100% / 6 - 0.5rem);margin:1rem .25rem 0;border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;color:var(--slateGrey)}@media (max-width:63.938rem){.wizard-agreements-item{flex-direction:row;flex:1 0 auto;margin:1rem 0 0;border:0;padding:0}.wizard-agreements-item:last-child p{border:0;margin:0}}.wizard-agreements-desc{min-height:2rem;font-size:.875rem;line-height:1.43}@media (max-width:63.938rem){.wizard-agreements-desc{flex:1 1 100%;border-bottom:.063rem solid var(--dividerColor);padding-bottom:1rem;font-size:1rem;line-height:1.5}}.wizard-agreements-icon{--bgcolor:var(--dodgerBlue);box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0 auto 1rem;width:3rem;height:3rem;border-radius:50%;padding:.75rem;background-color:var(--bgcolor)}.wizard-agreements-icon svg{display:block;width:100%;height:100%;fill:var(--white)}@media (max-width:63.938rem){.wizard-agreements-icon{margin:0 1.5rem 0 0;width:2rem;height:2rem;border-radius:50%;padding:.5rem}}.wizard-updated{position:absolute;right:-1.687rem;top:1.188rem;width:6.25rem;background-color:var(--primaryColor);text-transform:uppercase;color:var(--primaryContrastTextColor);-webkit-transform:rotate(-315deg);transform:rotate(-315deg);padding:.313rem;font-size:.625rem;line-height:1;font-weight:bold;text-align:center}.wizard-progress{position:relative;margin:.5rem auto 2rem;max-width:32rem;height:.375rem}.wizard-progress:before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;opacity:.24;border-radius:.188rem;background-color:var(--white)}@media (max-width:33.9375rem){.wizard-progress{margin:.5rem 1rem 1.5rem}}@media (max-height:23.4375rem){.wizard-progress{margin-bottom:1.5rem}}.wizard-progress-bar{position:relative;z-index:1;width:0;height:100%;background-color:var(--white);border-radius:.188rem;transition:width .5s ease-out}.wizard-notice{order:2;margin:2rem 0 0;line-height:1.5}.wizard-notice + .wizard-notice{margin-top:1rem}.wizard-notice p{margin:0}.wizard-notice a{color:var(--dodgerBlue);text-decoration:none;font-weight:bold}.wizard-notice a:hover,.wizard-notice a:focus{color:var(--scienceBlue)}@media (min-width:30.063rem){.wizard-notice{margin:2rem 0 0}}.wizard-notice--lost{font-size:1rem}.u-bg-black{background-color:var(--black) !important}.u-bg-charcoalGrey{background-color:var(--charcoalGrey) !important}.u-bg-coolGrey{background-color:var(--coolGrey) !important}.u-bg-silver{background-color:var(--silver) !important}.u-bg-slateGrey{background-color:var(--slateGrey) !important}.u-bg-lightishPurple{background-color:#b449e7 !important}.u-bg-dodgerBlue{background-color:#297ef2 !important}.u-bg-overlay{background-color:var(--overlay) !important}.u-bg-paleGrey{background-color:var(--paleGrey) !important}.u-bg-monza{background-color:#dd0505 !important}.u-bg-pomegranate{background-color:#f52d2d !important}.u-bg-primaryBackgroundLight{background-color:var(--primaryBackgroundLight) !important}.u-bg-primaryColor{background-color:var(--primaryColor) !important}.u-bg-primaryColorLight{background-color:var(--primaryColorLight) !important}.u-bg-primaryContrastTextColor{background-color:var(--primaryContrastTextColor) !important}.u-bg-error{background-color:var(--errorColor) !important}.u-bg-errorBackground{background-color:var(--errorBackground) !important}.u-bg-success{background-color:var(--successColor) !important}.u-bg-warning{background-color:var(--warningColor) !important}.u-bg-info{background-color:var(--infoColor) !important}.u-bg-weirdGreen{background-color:#40de8e !important}.u-bg-white{background-color:var(--white) !important}.u-bdrs-0{border-radius:0}.u-bdrs-1{border-radius:.125rem}.u-bdrs-2{border-radius:.188rem}.u-bdrs-3{border-radius:.25rem}.u-bdrs-4{border-radius:.5rem}.u-bdrs-circle{border-radius:100%}.u-bdw-0{border-width:0}.u-bdw-1{border-width:.125rem}@media (max-width:30rem){.u-bdrs-0-t{border-radius:0}.u-bdrs-1-t{border-radius:.125rem}.u-bdrs-2-t{border-radius:.188rem}.u-bdrs-3-t{border-radius:.25rem}.u-bdrs-4-t{border-radius:.5rem}.u-bdrs-circle-t{border-radius:100%}.u-bdw-0-t{border-width:0}.u-bdw-1-t{border-width:.125rem}}@media (max-width:48rem){.u-bdrs-0-s{border-radius:0}.u-bdrs-1-s{border-radius:.125rem}.u-bdrs-2-s{border-radius:.188rem}.u-bdrs-3-s{border-radius:.25rem}.u-bdrs-4-s{border-radius:.5rem}.u-bdrs-circle-s{border-radius:100%}.u-bdw-0-s{border-width:0}.u-bdw-1-s{border-width:.125rem}}@media (max-width:63.938rem){.u-bdrs-0-m{border-radius:0}.u-bdrs-1-m{border-radius:.125rem}.u-bdrs-2-m{border-radius:.188rem}.u-bdrs-3-m{border-radius:.25rem}.u-bdrs-4-m{border-radius:.5rem}.u-bdrs-circle-m{border-radius:100%}.u-bdw-0-m{border-width:0}.u-bdw-1-m{border-width:.125rem}}.u-bxz{box-sizing:border-box}.u-c-default{cursor:default}.u-c-help{cursor:help}.u-c-pointer{cursor:pointer}.u-c-wait{cursor:wait}.u-c-not-allowed{cursor:not-allowed}.u-debug{background:rgba(0,0,0,0.075);border:1px solid #f00}.u-debug .u-debug{border-color:#00f}.u-debug .u-debug .u-debug{border-color:#008000}.u-miw-1{min-width:1rem !important}.u-maw-1{max-width:1rem !important}.u-mih-1{min-height:1rem !important}.u-mah-1{max-height:1rem !important}.u-miw-2{min-width:2rem !important}.u-maw-2{max-width:2rem !important}.u-mih-2{min-height:2rem !important}.u-mah-2{max-height:2rem !important}.u-miw-3{min-width:4rem !important}.u-maw-3{max-width:4rem !important}.u-mih-3{min-height:4rem !important}.u-mah-3{max-height:4rem !important}.u-miw-4{min-width:8rem !important}.u-maw-4{max-width:8rem !important}.u-mih-4{min-height:8rem !important}.u-mah-4{max-height:8rem !important}.u-miw-5{min-width:16rem !important}.u-maw-5{max-width:16rem !important}.u-mih-5{min-height:16rem !important}.u-mah-5{max-height:16rem !important}.u-miw-6{min-width:32rem !important}.u-maw-6{max-width:32rem !important}.u-mih-6{min-height:32rem !important}.u-mah-6{max-height:32rem !important}.u-miw-7{min-width:48rem !important}.u-maw-7{max-width:48rem !important}.u-mih-7{min-height:48rem !important}.u-mah-7{max-height:48rem !important}.u-miw-8{min-width:64rem !important}.u-maw-8{max-width:64rem !important}.u-mih-8{min-height:64rem !important}.u-mah-8{max-height:64rem !important}.u-miw-9{min-width:96rem !important}.u-maw-9{max-width:96rem !important}.u-mih-9{min-height:96rem !important}.u-mah-9{max-height:96rem !important}.u-miw-100{min-width:100% !important}.u-maw-100{max-width:100% !important}.u-mih-100{min-height:100% !important}.u-mah-100{max-height:100% !important}.u-maw-none{max-width:none !important}.u-mah-none{max-height:none !important}.u-miw-auto{min-width:auto !important}.u-mih-auto{min-height:auto !important}.u-miw-half{min-width:.5rem !important}.u-maw-half{max-width:.5rem !important}.u-mih-half{min-height:.5rem !important}.u-mah-half{max-height:.5rem !important}.u-miw-1-half{min-width:1.5rem !important}.u-maw-1-half{max-width:1.5rem !important}.u-mih-1-half{min-height:1.5rem !important}.u-mah-1-half{max-height:1.5rem !important}.u-miw-2-half{min-width:2.5rem !important}.u-maw-2-half{max-width:2.5rem !important}.u-mih-2-half{min-height:2.5rem !important}.u-mah-2-half{max-height:2.5rem !important}@media (max-width:30rem){.u-miw-1-t{min-width:1rem !important}}@media (max-width:30rem){.u-maw-1-t{max-width:1rem !important}}@media (max-width:30rem){.u-mih-1-t{min-height:1rem !important}}@media (max-width:30rem){.u-mah-1-t{max-height:1rem !important}}@media (max-width:30rem){.u-miw-2-t{min-width:2rem !important}}@media (max-width:30rem){.u-maw-2-t{max-width:2rem !important}}@media (max-width:30rem){.u-mih-2-t{min-height:2rem !important}}@media (max-width:30rem){.u-mah-2-t{max-height:2rem !important}}@media (max-width:30rem){.u-miw-3-t{min-width:4rem !important}}@media (max-width:30rem){.u-maw-3-t{max-width:4rem !important}}@media (max-width:30rem){.u-mih-3-t{min-height:4rem !important}}@media (max-width:30rem){.u-mah-3-t{max-height:4rem !important}}@media (max-width:30rem){.u-miw-4-t{min-width:8rem !important}}@media (max-width:30rem){.u-maw-4-t{max-width:8rem !important}}@media (max-width:30rem){.u-mih-4-t{min-height:8rem !important}}@media (max-width:30rem){.u-mah-4-t{max-height:8rem !important}}@media (max-width:30rem){.u-miw-5-t{min-width:16rem !important}}@media (max-width:30rem){.u-maw-5-t{max-width:16rem !important}}@media (max-width:30rem){.u-mih-5-t{min-height:16rem !important}}@media (max-width:30rem){.u-mah-5-t{max-height:16rem !important}}@media (max-width:30rem){.u-miw-6-t{min-width:32rem !important}}@media (max-width:30rem){.u-maw-6-t{max-width:32rem !important}}@media (max-width:30rem){.u-mih-6-t{min-height:32rem !important}}@media (max-width:30rem){.u-mah-6-t{max-height:32rem !important}}@media (max-width:30rem){.u-miw-7-t{min-width:48rem !important}}@media (max-width:30rem){.u-maw-7-t{max-width:48rem !important}}@media (max-width:30rem){.u-mih-7-t{min-height:48rem !important}}@media (max-width:30rem){.u-mah-7-t{max-height:48rem !important}}@media (max-width:30rem){.u-miw-8-t{min-width:64rem !important}}@media (max-width:30rem){.u-maw-8-t{max-width:64rem !important}}@media (max-width:30rem){.u-mih-8-t{min-height:64rem !important}}@media (max-width:30rem){.u-mah-8-t{max-height:64rem !important}}@media (max-width:30rem){.u-miw-9-t{min-width:96rem !important}}@media (max-width:30rem){.u-maw-9-t{max-width:96rem !important}}@media (max-width:30rem){.u-mih-9-t{min-height:96rem !important}}@media (max-width:30rem){.u-mah-9-t{max-height:96rem !important}}@media (max-width:30rem){.u-miw-100-t{min-width:100% !important}}@media (max-width:30rem){.u-maw-100-t{max-width:100% !important}}@media (max-width:30rem){.u-mih-100-t{min-height:100% !important}}@media (max-width:30rem){.u-mah-100-t{max-height:100% !important}}@media (max-width:30rem){.u-maw-none-t{max-width:none !important}}@media (max-width:30rem){.u-mah-none-t{max-height:none !important}}@media (max-width:30rem){.u-miw-auto-t{min-width:auto !important}}@media (max-width:30rem){.u-mih-auto-t{min-height:auto !important}}@media (max-width:30rem){.u-miw-half-t{min-width:.5rem !important}}@media (max-width:30rem){.u-maw-half-t{max-width:.5rem !important}}@media (max-width:30rem){.u-mih-half-t{min-height:.5rem !important}}@media (max-width:30rem){.u-mah-half-t{max-height:.5rem !important}}@media (max-width:30rem){.u-miw-1-half-t{min-width:1.5rem !important}}@media (max-width:30rem){.u-maw-1-half-t{max-width:1.5rem !important}}@media (max-width:30rem){.u-mih-1-half-t{min-height:1.5rem !important}}@media (max-width:30rem){.u-mah-1-half-t{max-height:1.5rem !important}}@media (max-width:30rem){.u-miw-2-half-t{min-width:2.5rem !important}}@media (max-width:30rem){.u-maw-2-half-t{max-width:2.5rem !important}}@media (max-width:30rem){.u-mih-2-half-t{min-height:2.5rem !important}}@media (max-width:30rem){.u-mah-2-half-t{max-height:2.5rem !important}}@media (max-width:48rem){.u-miw-1-s{min-width:1rem !important}}@media (max-width:48rem){.u-maw-1-s{max-width:1rem !important}}@media (max-width:48rem){.u-mih-1-s{min-height:1rem !important}}@media (max-width:48rem){.u-mah-1-s{max-height:1rem !important}}@media (max-width:48rem){.u-miw-2-s{min-width:2rem !important}}@media (max-width:48rem){.u-maw-2-s{max-width:2rem !important}}@media (max-width:48rem){.u-mih-2-s{min-height:2rem !important}}@media (max-width:48rem){.u-mah-2-s{max-height:2rem !important}}@media (max-width:48rem){.u-miw-3-s{min-width:4rem !important}}@media (max-width:48rem){.u-maw-3-s{max-width:4rem !important}}@media (max-width:48rem){.u-mih-3-s{min-height:4rem !important}}@media (max-width:48rem){.u-mah-3-s{max-height:4rem !important}}@media (max-width:48rem){.u-miw-4-s{min-width:8rem !important}}@media (max-width:48rem){.u-maw-4-s{max-width:8rem !important}}@media (max-width:48rem){.u-mih-4-s{min-height:8rem !important}}@media (max-width:48rem){.u-mah-4-s{max-height:8rem !important}}@media (max-width:48rem){.u-miw-5-s{min-width:16rem !important}}@media (max-width:48rem){.u-maw-5-s{max-width:16rem !important}}@media (max-width:48rem){.u-mih-5-s{min-height:16rem !important}}@media (max-width:48rem){.u-mah-5-s{max-height:16rem !important}}@media (max-width:48rem){.u-miw-6-s{min-width:32rem !important}}@media (max-width:48rem){.u-maw-6-s{max-width:32rem !important}}@media (max-width:48rem){.u-mih-6-s{min-height:32rem !important}}@media (max-width:48rem){.u-mah-6-s{max-height:32rem !important}}@media (max-width:48rem){.u-miw-7-s{min-width:48rem !important}}@media (max-width:48rem){.u-maw-7-s{max-width:48rem !important}}@media (max-width:48rem){.u-mih-7-s{min-height:48rem !important}}@media (max-width:48rem){.u-mah-7-s{max-height:48rem !important}}@media (max-width:48rem){.u-miw-8-s{min-width:64rem !important}}@media (max-width:48rem){.u-maw-8-s{max-width:64rem !important}}@media (max-width:48rem){.u-mih-8-s{min-height:64rem !important}}@media (max-width:48rem){.u-mah-8-s{max-height:64rem !important}}@media (max-width:48rem){.u-miw-9-s{min-width:96rem !important}}@media (max-width:48rem){.u-maw-9-s{max-width:96rem !important}}@media (max-width:48rem){.u-mih-9-s{min-height:96rem !important}}@media (max-width:48rem){.u-mah-9-s{max-height:96rem !important}}@media (max-width:48rem){.u-miw-100-s{min-width:100% !important}}@media (max-width:48rem){.u-maw-100-s{max-width:100% !important}}@media (max-width:48rem){.u-mih-100-s{min-height:100% !important}}@media (max-width:48rem){.u-mah-100-s{max-height:100% !important}}@media (max-width:48rem){.u-maw-none-s{max-width:none !important}}@media (max-width:48rem){.u-mah-none-s{max-height:none !important}}@media (max-width:48rem){.u-miw-auto-s{min-width:auto !important}}@media (max-width:48rem){.u-mih-auto-s{min-height:auto !important}}@media (max-width:48rem){.u-miw-half-s{min-width:.5rem !important}}@media (max-width:48rem){.u-maw-half-s{max-width:.5rem !important}}@media (max-width:48rem){.u-mih-half-s{min-height:.5rem !important}}@media (max-width:48rem){.u-mah-half-s{max-height:.5rem !important}}@media (max-width:48rem){.u-miw-1-half-s{min-width:1.5rem !important}}@media (max-width:48rem){.u-maw-1-half-s{max-width:1.5rem !important}}@media (max-width:48rem){.u-mih-1-half-s{min-height:1.5rem !important}}@media (max-width:48rem){.u-mah-1-half-s{max-height:1.5rem !important}}@media (max-width:48rem){.u-miw-2-half-s{min-width:2.5rem !important}}@media (max-width:48rem){.u-maw-2-half-s{max-width:2.5rem !important}}@media (max-width:48rem){.u-mih-2-half-s{min-height:2.5rem !important}}@media (max-width:48rem){.u-mah-2-half-s{max-height:2.5rem !important}}@media (max-width:63.938rem){.u-miw-1-m{min-width:1rem !important}}@media (max-width:63.938rem){.u-maw-1-m{max-width:1rem !important}}@media (max-width:63.938rem){.u-mih-1-m{min-height:1rem !important}}@media (max-width:63.938rem){.u-mah-1-m{max-height:1rem !important}}@media (max-width:63.938rem){.u-miw-2-m{min-width:2rem !important}}@media (max-width:63.938rem){.u-maw-2-m{max-width:2rem !important}}@media (max-width:63.938rem){.u-mih-2-m{min-height:2rem !important}}@media (max-width:63.938rem){.u-mah-2-m{max-height:2rem !important}}@media (max-width:63.938rem){.u-miw-3-m{min-width:4rem !important}}@media (max-width:63.938rem){.u-maw-3-m{max-width:4rem !important}}@media (max-width:63.938rem){.u-mih-3-m{min-height:4rem !important}}@media (max-width:63.938rem){.u-mah-3-m{max-height:4rem !important}}@media (max-width:63.938rem){.u-miw-4-m{min-width:8rem !important}}@media (max-width:63.938rem){.u-maw-4-m{max-width:8rem !important}}@media (max-width:63.938rem){.u-mih-4-m{min-height:8rem !important}}@media (max-width:63.938rem){.u-mah-4-m{max-height:8rem !important}}@media (max-width:63.938rem){.u-miw-5-m{min-width:16rem !important}}@media (max-width:63.938rem){.u-maw-5-m{max-width:16rem !important}}@media (max-width:63.938rem){.u-mih-5-m{min-height:16rem !important}}@media (max-width:63.938rem){.u-mah-5-m{max-height:16rem !important}}@media (max-width:63.938rem){.u-miw-6-m{min-width:32rem !important}}@media (max-width:63.938rem){.u-maw-6-m{max-width:32rem !important}}@media (max-width:63.938rem){.u-mih-6-m{min-height:32rem !important}}@media (max-width:63.938rem){.u-mah-6-m{max-height:32rem !important}}@media (max-width:63.938rem){.u-miw-7-m{min-width:48rem !important}}@media (max-width:63.938rem){.u-maw-7-m{max-width:48rem !important}}@media (max-width:63.938rem){.u-mih-7-m{min-height:48rem !important}}@media (max-width:63.938rem){.u-mah-7-m{max-height:48rem !important}}@media (max-width:63.938rem){.u-miw-8-m{min-width:64rem !important}}@media (max-width:63.938rem){.u-maw-8-m{max-width:64rem !important}}@media (max-width:63.938rem){.u-mih-8-m{min-height:64rem !important}}@media (max-width:63.938rem){.u-mah-8-m{max-height:64rem !important}}@media (max-width:63.938rem){.u-miw-9-m{min-width:96rem !important}}@media (max-width:63.938rem){.u-maw-9-m{max-width:96rem !important}}@media (max-width:63.938rem){.u-mih-9-m{min-height:96rem !important}}@media (max-width:63.938rem){.u-mah-9-m{max-height:96rem !important}}@media (max-width:63.938rem){.u-miw-100-m{min-width:100% !important}}@media (max-width:63.938rem){.u-maw-100-m{max-width:100% !important}}@media (max-width:63.938rem){.u-mih-100-m{min-height:100% !important}}@media (max-width:63.938rem){.u-mah-100-m{max-height:100% !important}}@media (max-width:63.938rem){.u-maw-none-m{max-width:none !important}}@media (max-width:63.938rem){.u-mah-none-m{max-height:none !important}}@media (max-width:63.938rem){.u-miw-auto-m{min-width:auto !important}}@media (max-width:63.938rem){.u-mih-auto-m{min-height:auto !important}}@media (max-width:63.938rem){.u-miw-half-m{min-width:.5rem !important}}@media (max-width:63.938rem){.u-maw-half-m{max-width:.5rem !important}}@media (max-width:63.938rem){.u-mih-half-m{min-height:.5rem !important}}@media (max-width:63.938rem){.u-mah-half-m{max-height:.5rem !important}}@media (max-width:63.938rem){.u-miw-1-half-m{min-width:1.5rem !important}}@media (max-width:63.938rem){.u-maw-1-half-m{max-width:1.5rem !important}}@media (max-width:63.938rem){.u-mih-1-half-m{min-height:1.5rem !important}}@media (max-width:63.938rem){.u-mah-1-half-m{max-height:1.5rem !important}}@media (max-width:63.938rem){.u-miw-2-half-m{min-width:2.5rem !important}}@media (max-width:63.938rem){.u-maw-2-half-m{max-width:2.5rem !important}}@media (max-width:63.938rem){.u-mih-2-half-m{min-height:2.5rem !important}}@media (max-width:63.938rem){.u-mah-2-half-m{max-height:2.5rem !important}}.u-w-1{width:1rem !important}.u-h-1{height:1rem !important}.u-w-2{width:2rem !important}.u-h-2{height:2rem !important}.u-w-3{width:4rem !important}.u-h-3{height:4rem !important}.u-w-4{width:8rem !important}.u-h-4{height:8rem !important}.u-w-5{width:16rem !important}.u-h-5{height:16rem !important}.u-w-6{width:32rem !important}.u-h-6{height:32rem !important}.u-w-7{width:48rem !important}.u-h-7{height:48rem !important}.u-w-8{width:64rem !important}.u-h-8{height:64rem !important}.u-w-9{width:96rem !important}.u-h-9{height:96rem !important}.u-w-100{width:100% !important}.u-h-100{height:100% !important}.u-w-auto{width:auto !important}.u-h-auto{height:auto !important}.u-w-half{width:.5rem !important}.u-h-half{height:.5rem !important}.u-w-1-half{width:1.5rem !important}.u-h-1-half{height:1.5rem !important}.u-w-2-half{width:2.5rem !important}.u-h-2-half{height:2.5rem !important}@media (max-width:30rem){.u-w-1-t{width:1rem !important}}@media (max-width:30rem){.u-h-1-t{height:1rem !important}}@media (max-width:30rem){.u-w-2-t{width:2rem !important}}@media (max-width:30rem){.u-h-2-t{height:2rem !important}}@media (max-width:30rem){.u-w-3-t{width:4rem !important}}@media (max-width:30rem){.u-h-3-t{height:4rem !important}}@media (max-width:30rem){.u-w-4-t{width:8rem !important}}@media (max-width:30rem){.u-h-4-t{height:8rem !important}}@media (max-width:30rem){.u-w-5-t{width:16rem !important}}@media (max-width:30rem){.u-h-5-t{height:16rem !important}}@media (max-width:30rem){.u-w-6-t{width:32rem !important}}@media (max-width:30rem){.u-h-6-t{height:32rem !important}}@media (max-width:30rem){.u-w-7-t{width:48rem !important}}@media (max-width:30rem){.u-h-7-t{height:48rem !important}}@media (max-width:30rem){.u-w-8-t{width:64rem !important}}@media (max-width:30rem){.u-h-8-t{height:64rem !important}}@media (max-width:30rem){.u-w-9-t{width:96rem !important}}@media (max-width:30rem){.u-h-9-t{height:96rem !important}}@media (max-width:30rem){.u-w-100-t{width:100% !important}}@media (max-width:30rem){.u-h-100-t{height:100% !important}}@media (max-width:30rem){.u-w-auto-t{width:auto !important}}@media (max-width:30rem){.u-h-auto-t{height:auto !important}}@media (max-width:30rem){.u-w-half-t{width:.5rem !important}}@media (max-width:30rem){.u-h-half-t{height:.5rem !important}}@media (max-width:30rem){.u-w-1-half-t{width:1.5rem !important}}@media (max-width:30rem){.u-h-1-half-t{height:1.5rem !important}}@media (max-width:30rem){.u-w-2-half-t{width:2.5rem !important}}@media (max-width:30rem){.u-h-2-half-t{height:2.5rem !important}}@media (max-width:48rem){.u-w-1-s{width:1rem !important}}@media (max-width:48rem){.u-h-1-s{height:1rem !important}}@media (max-width:48rem){.u-w-2-s{width:2rem !important}}@media (max-width:48rem){.u-h-2-s{height:2rem !important}}@media (max-width:48rem){.u-w-3-s{width:4rem !important}}@media (max-width:48rem){.u-h-3-s{height:4rem !important}}@media (max-width:48rem){.u-w-4-s{width:8rem !important}}@media (max-width:48rem){.u-h-4-s{height:8rem !important}}@media (max-width:48rem){.u-w-5-s{width:16rem !important}}@media (max-width:48rem){.u-h-5-s{height:16rem !important}}@media (max-width:48rem){.u-w-6-s{width:32rem !important}}@media (max-width:48rem){.u-h-6-s{height:32rem !important}}@media (max-width:48rem){.u-w-7-s{width:48rem !important}}@media (max-width:48rem){.u-h-7-s{height:48rem !important}}@media (max-width:48rem){.u-w-8-s{width:64rem !important}}@media (max-width:48rem){.u-h-8-s{height:64rem !important}}@media (max-width:48rem){.u-w-9-s{width:96rem !important}}@media (max-width:48rem){.u-h-9-s{height:96rem !important}}@media (max-width:48rem){.u-w-100-s{width:100% !important}}@media (max-width:48rem){.u-h-100-s{height:100% !important}}@media (max-width:48rem){.u-w-auto-s{width:auto !important}}@media (max-width:48rem){.u-h-auto-s{height:auto !important}}@media (max-width:48rem){.u-w-half-s{width:.5rem !important}}@media (max-width:48rem){.u-h-half-s{height:.5rem !important}}@media (max-width:48rem){.u-w-1-half-s{width:1.5rem !important}}@media (max-width:48rem){.u-h-1-half-s{height:1.5rem !important}}@media (max-width:48rem){.u-w-2-half-s{width:2.5rem !important}}@media (max-width:48rem){.u-h-2-half-s{height:2.5rem !important}}@media (max-width:63.938rem){.u-w-1-m{width:1rem !important}}@media (max-width:63.938rem){.u-h-1-m{height:1rem !important}}@media (max-width:63.938rem){.u-w-2-m{width:2rem !important}}@media (max-width:63.938rem){.u-h-2-m{height:2rem !important}}@media (max-width:63.938rem){.u-w-3-m{width:4rem !important}}@media (max-width:63.938rem){.u-h-3-m{height:4rem !important}}@media (max-width:63.938rem){.u-w-4-m{width:8rem !important}}@media (max-width:63.938rem){.u-h-4-m{height:8rem !important}}@media (max-width:63.938rem){.u-w-5-m{width:16rem !important}}@media (max-width:63.938rem){.u-h-5-m{height:16rem !important}}@media (max-width:63.938rem){.u-w-6-m{width:32rem !important}}@media (max-width:63.938rem){.u-h-6-m{height:32rem !important}}@media (max-width:63.938rem){.u-w-7-m{width:48rem !important}}@media (max-width:63.938rem){.u-h-7-m{height:48rem !important}}@media (max-width:63.938rem){.u-w-8-m{width:64rem !important}}@media (max-width:63.938rem){.u-h-8-m{height:64rem !important}}@media (max-width:63.938rem){.u-w-9-m{width:96rem !important}}@media (max-width:63.938rem){.u-h-9-m{height:96rem !important}}@media (max-width:63.938rem){.u-w-100-m{width:100% !important}}@media (max-width:63.938rem){.u-h-100-m{height:100% !important}}@media (max-width:63.938rem){.u-w-auto-m{width:auto !important}}@media (max-width:63.938rem){.u-h-auto-m{height:auto !important}}@media (max-width:63.938rem){.u-w-half-m{width:.5rem !important}}@media (max-width:63.938rem){.u-h-half-m{height:.5rem !important}}@media (max-width:63.938rem){.u-w-1-half-m{width:1.5rem !important}}@media (max-width:63.938rem){.u-h-1-half-m{height:1.5rem !important}}@media (max-width:63.938rem){.u-w-2-half-m{width:2.5rem !important}}@media (max-width:63.938rem){.u-h-2-half-m{height:2.5rem !important}}.u-shake{-webkit-animation-name:shake;animation-name:shake;-webkit-animation-duration:820ms;animation-duration:820ms;-webkit-animation-timing-function:cubic-bezier(.36,.07,.19,.97);animation-timing-function:cubic-bezier(.36,.07,.19,.97);-webkit-animation-fill-mode:both;animation-fill-mode:both}.u-filter-gray-100{-webkit-filter:grayscale(1);filter:grayscale(1)}.u-flex{display:flex}.u-inline-flex{display:inline-flex}.u-flex-none{flex:none}.u-flex-column{flex-direction:column}.u-flex-row{flex-direction:row}.u-flex-wrap{flex-wrap:wrap}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap-reverse{flex-wrap:wrap-reverse}.u-flex-column-reverse{flex-direction:column-reverse}.u-flex-row-reverse{flex-direction:row-reverse}.u-flex-auto{flex:1 1 auto}.u-flex-items-start{align-items:flex-start}.u-flex-items-end{align-items:flex-end}.u-flex-items-center{align-items:center}.u-flex-items-baseline{align-items:baseline}.u-flex-items-stretch{align-items:stretch}.u-flex-self-start{align-self:flex-start}.u-flex-self-end{align-self:flex-end}.u-flex-self-center{align-self:center}.u-flex-self-baseline{align-self:baseline}.u-flex-self-stretch{align-self:stretch}.u-flex-justify-start{justify-content:flex-start}.u-flex-justify-end{justify-content:flex-end}.u-flex-justify-center{justify-content:center}.u-flex-justify-between{justify-content:space-between}.u-flex-justify-around{justify-content:space-around}.u-flex-content-start{align-content:flex-start}.u-flex-content-end{align-content:flex-end}.u-flex-content-center{align-content:center}.u-flex-content-between{align-content:space-between}.u-flex-content-around{align-content:space-around}.u-flex-content-stretch{align-content:stretch}.u-flex-order-0{order:0}.u-flex-order-1{order:1}.u-flex-order-2{order:2}.u-flex-order-3{order:3}.u-flex-order-4{order:4}.u-flex-order-5{order:5}.u-flex-order-6{order:6}.u-flex-order-7{order:7}.u-flex-order-8{order:8}.u-flex-order-last{order:99999}.u-flex-grow-0{flex-grow:0}.u-flex-grow-1{flex-grow:1}.u-flex-shrink-0{flex-shrink:0}.u-flex-shrink-1{flex-shrink:1}@media (max-width:30rem){.u-flex-t{display:flex}.u-inline-flex-t{display:inline-flex}.u-flex-none-t{flex:none}.u-flex-column-t{flex-direction:column}.u-flex-row-t{flex-direction:row}.u-flex-wrap-t{flex-wrap:wrap}.u-flex-nowrap-t{flex-wrap:nowrap}.u-flex-wrap-reverse-t{flex-wrap:wrap-reverse}.u-flex-column-reverse-t{flex-direction:column-reverse}.u-flex-row-reverse-t{flex-direction:row-reverse}.u-flex-auto-t{flex:1 1 auto}.u-flex-items-start-t{align-items:flex-start}.u-flex-items-end-t{align-items:flex-end}.u-flex-items-center-t{align-items:center}.u-flex-items-baseline-t{align-items:baseline}.u-flex-items-stretch-t{align-items:stretch}.u-flex-self-start-t{align-self:flex-start}.u-flex-self-end-t{align-self:flex-end}.u-flex-self-center-t{align-self:center}.u-flex-self-baseline-t{align-self:baseline}.u-flex-self-stretch-t{align-self:stretch}.u-flex-justify-start-t{justify-content:flex-start}.u-flex-justify-end-t{justify-content:flex-end}.u-flex-justify-center-t{justify-content:center}.u-flex-justify-between-t{justify-content:space-between}.u-flex-justify-around-t{justify-content:space-around}.u-flex-content-start-t{align-content:flex-start}.u-flex-content-end-t{align-content:flex-end}.u-flex-content-center-t{align-content:center}.u-flex-content-between-t{align-content:space-between}.u-flex-content-around-t{align-content:space-around}.u-flex-content-stretch-t{align-content:stretch}.u-flex-order-0-t{order:0}.u-flex-order-1-t{order:1}.u-flex-order-2-t{order:2}.u-flex-order-3-t{order:3}.u-flex-order-4-t{order:4}.u-flex-order-5-t{order:5}.u-flex-order-6-t{order:6}.u-flex-order-7-t{order:7}.u-flex-order-8-t{order:8}.u-flex-order-last-t{order:99999}.u-flex-grow-0-t{flex-grow:0}.u-flex-grow-1-t{flex-grow:1}.u-flex-shrink-0-t{flex-shrink:0}.u-flex-shrink-1-t{flex-shrink:1}}@media (max-width:48rem){.u-flex-s{display:flex}.u-inline-flex-s{display:inline-flex}.u-flex-none-s{flex:none}.u-flex-column-s{flex-direction:column}.u-flex-row-s{flex-direction:row}.u-flex-wrap-s{flex-wrap:wrap}.u-flex-nowrap-s{flex-wrap:nowrap}.u-flex-wrap-reverse-s{flex-wrap:wrap-reverse}.u-flex-column-reverse-s{flex-direction:column-reverse}.u-flex-row-reverse-s{flex-direction:row-reverse}.u-flex-auto-s{flex:1 1 auto}.u-flex-items-start-s{align-items:flex-start}.u-flex-items-end-s{align-items:flex-end}.u-flex-items-center-s{align-items:center}.u-flex-items-baseline-s{align-items:baseline}.u-flex-items-stretch-s{align-items:stretch}.u-flex-self-start-s{align-self:flex-start}.u-flex-self-end-s{align-self:flex-end}.u-flex-self-center-s{align-self:center}.u-flex-self-baseline-s{align-self:baseline}.u-flex-self-stretch-s{align-self:stretch}.u-flex-justify-start-s{justify-content:flex-start}.u-flex-justify-end-s{justify-content:flex-end}.u-flex-justify-center-s{justify-content:center}.u-flex-justify-between-s{justify-content:space-between}.u-flex-justify-around-s{justify-content:space-around}.u-flex-content-start-s{align-content:flex-start}.u-flex-content-end-s{align-content:flex-end}.u-flex-content-center-s{align-content:center}.u-flex-content-between-s{align-content:space-between}.u-flex-content-around-s{align-content:space-around}.u-flex-content-stretch-s{align-content:stretch}.u-flex-order-0-s{order:0}.u-flex-order-1-s{order:1}.u-flex-order-2-s{order:2}.u-flex-order-3-s{order:3}.u-flex-order-4-s{order:4}.u-flex-order-5-s{order:5}.u-flex-order-6-s{order:6}.u-flex-order-7-s{order:7}.u-flex-order-8-s{order:8}.u-flex-order-last-s{order:99999}.u-flex-grow-0-s{flex-grow:0}.u-flex-grow-1-s{flex-grow:1}.u-flex-shrink-0-s{flex-shrink:0}.u-flex-shrink-1-s{flex-shrink:1}}@media (max-width:63.938rem){.u-flex-m{display:flex}.u-inline-flex-m{display:inline-flex}.u-flex-none-m{flex:none}.u-flex-column-m{flex-direction:column}.u-flex-row-m{flex-direction:row}.u-flex-wrap-m{flex-wrap:wrap}.u-flex-nowrap-m{flex-wrap:nowrap}.u-flex-wrap-reverse-m{flex-wrap:wrap-reverse}.u-flex-column-reverse-m{flex-direction:column-reverse}.u-flex-row-reverse-m{flex-direction:row-reverse}.u-flex-auto-m{flex:1 1 auto}.u-flex-items-start-m{align-items:flex-start}.u-flex-items-end-m{align-items:flex-end}.u-flex-items-center-m{align-items:center}.u-flex-items-baseline-m{align-items:baseline}.u-flex-items-stretch-m{align-items:stretch}.u-flex-self-start-m{align-self:flex-start}.u-flex-self-end-m{align-self:flex-end}.u-flex-self-center-m{align-self:center}.u-flex-self-baseline-m{align-self:baseline}.u-flex-self-stretch-m{align-self:stretch}.u-flex-justify-start-m{justify-content:flex-start}.u-flex-justify-end-m{justify-content:flex-end}.u-flex-justify-center-m{justify-content:center}.u-flex-justify-between-m{justify-content:space-between}.u-flex-justify-around-m{justify-content:space-around}.u-flex-content-start-m{align-content:flex-start}.u-flex-content-end-m{align-content:flex-end}.u-flex-content-center-m{align-content:center}.u-flex-content-between-m{align-content:space-between}.u-flex-content-around-m{align-content:space-around}.u-flex-content-stretch-m{align-content:stretch}.u-flex-order-0-m{order:0}.u-flex-order-1-m{order:1}.u-flex-order-2-m{order:2}.u-flex-order-3-m{order:3}.u-flex-order-4-m{order:4}.u-flex-order-5-m{order:5}.u-flex-order-6-m{order:6}.u-flex-order-7-m{order:7}.u-flex-order-8-m{order:8}.u-flex-order-last-m{order:99999}.u-flex-grow-0-m{flex-grow:0}.u-flex-grow-1-m{flex-grow:1}.u-flex-shrink-0-m{flex-shrink:0}.u-flex-shrink-1-m{flex-shrink:1}}.u-nolist{list-style-type:none}@media (max-width:30rem){.u-nolist-t{list-style-type:none}}@media (max-width:48rem){.u-nolist-s{list-style-type:none}}@media (max-width:63.938rem){.u-nolist-m{list-style-type:none}}.u-o-100{opacity:1}.u-o-90{opacity:.9}.u-o-80{opacity:.8}.u-o-70{opacity:.7}.u-o-60{opacity:.6}.u-o-50{opacity:.5}.u-o-40{opacity:.4}.u-o-30{opacity:.3}.u-o-20{opacity:.2}.u-o-10{opacity:.1}.u-o-05{opacity:.05}.u-o-025{opacity:.025}.u-o-0{opacity:0}.u-ov-visible{overflow:visible}.u-ov-hidden{overflow:hidden}.u-ov-scroll{overflow:scroll}.u-ov-auto{overflow:auto}.u-p-0{padding:0 !important}.u-pt-0{padding-top:0 !important}.u-pb-0{padding-bottom:0 !important}.u-pl-0{padding-left:0 !important}.u-pr-0{padding-right:0 !important}.u-pv-0{padding-top:0 !important;padding-bottom:0 !important}.u-ph-0{padding-left:0 !important;padding-right:0 !important}.u-p-1{padding:1rem !important}.u-pt-1{padding-top:1rem !important}.u-pb-1{padding-bottom:1rem !important}.u-pl-1{padding-left:1rem !important}.u-pr-1{padding-right:1rem !important}.u-pv-1{padding-top:1rem !important;padding-bottom:1rem !important}.u-ph-1{padding-left:1rem !important;padding-right:1rem !important}.u-p-2{padding:2rem !important}.u-pt-2{padding-top:2rem !important}.u-pb-2{padding-bottom:2rem !important}.u-pl-2{padding-left:2rem !important}.u-pr-2{padding-right:2rem !important}.u-pv-2{padding-top:2rem !important;padding-bottom:2rem !important}.u-ph-2{padding-left:2rem !important;padding-right:2rem !important}.u-p-3{padding:3rem !important}.u-pt-3{padding-top:3rem !important}.u-pb-3{padding-bottom:3rem !important}.u-pl-3{padding-left:3rem !important}.u-pr-3{padding-right:3rem !important}.u-pv-3{padding-top:3rem !important;padding-bottom:3rem !important}.u-ph-3{padding-left:3rem !important;padding-right:3rem !important}.u-p-auto{padding:auto !important}.u-pt-auto{padding-top:auto !important}.u-pb-auto{padding-bottom:auto !important}.u-pl-auto{padding-left:auto !important}.u-pr-auto{padding-right:auto !important}.u-pv-auto{padding-top:auto !important;padding-bottom:auto !important}.u-ph-auto{padding-left:auto !important;padding-right:auto !important}.u-p-half{padding:.5rem !important}.u-pt-half{padding-top:.5rem !important}.u-pb-half{padding-bottom:.5rem !important}.u-pl-half{padding-left:.5rem !important}.u-pr-half{padding-right:.5rem !important}.u-pv-half{padding-top:.5rem !important;padding-bottom:.5rem !important}.u-ph-half{padding-left:.5rem !important;padding-right:.5rem !important}.u-p-1-half{padding:1.5rem !important}.u-pt-1-half{padding-top:1.5rem !important}.u-pb-1-half{padding-bottom:1.5rem !important}.u-pl-1-half{padding-left:1.5rem !important}.u-pr-1-half{padding-right:1.5rem !important}.u-pv-1-half{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.u-ph-1-half{padding-left:1.5rem !important;padding-right:1.5rem !important}.u-p-2-half{padding:2.5rem !important}.u-pt-2-half{padding-top:2.5rem !important}.u-pb-2-half{padding-bottom:2.5rem !important}.u-pl-2-half{padding-left:2.5rem !important}.u-pr-2-half{padding-right:2.5rem !important}.u-pv-2-half{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.u-ph-2-half{padding-left:2.5rem !important;padding-right:2.5rem !important}.u-m-0{margin:0 !important}.u-mt-0{margin-top:0 !important}.u-mb-0{margin-bottom:0 !important}.u-ml-0{margin-left:0 !important}.u-mr-0{margin-right:0 !important}.u-mv-0{margin-top:0 !important;margin-bottom:0 !important}.u-mh-0{margin-left:0 !important;margin-right:0 !important}.u-m-1{margin:1rem !important}.u-mt-1{margin-top:1rem !important}.u-mb-1{margin-bottom:1rem !important}.u-ml-1{margin-left:1rem !important}.u-mr-1{margin-right:1rem !important}.u-mv-1{margin-top:1rem !important;margin-bottom:1rem !important}.u-mh-1{margin-left:1rem !important;margin-right:1rem !important}.u-m-2{margin:2rem !important}.u-mt-2{margin-top:2rem !important}.u-mb-2{margin-bottom:2rem !important}.u-ml-2{margin-left:2rem !important}.u-mr-2{margin-right:2rem !important}.u-mv-2{margin-top:2rem !important;margin-bottom:2rem !important}.u-mh-2{margin-left:2rem !important;margin-right:2rem !important}.u-m-3{margin:3rem !important}.u-mt-3{margin-top:3rem !important}.u-mb-3{margin-bottom:3rem !important}.u-ml-3{margin-left:3rem !important}.u-mr-3{margin-right:3rem !important}.u-mv-3{margin-top:3rem !important;margin-bottom:3rem !important}.u-mh-3{margin-left:3rem !important;margin-right:3rem !important}.u-m-auto{margin:auto !important}.u-mt-auto{margin-top:auto !important}.u-mb-auto{margin-bottom:auto !important}.u-ml-auto{margin-left:auto !important}.u-mr-auto{margin-right:auto !important}.u-mv-auto{margin-top:auto !important;margin-bottom:auto !important}.u-mh-auto{margin-left:auto !important;margin-right:auto !important}.u-m-half{margin:.5rem !important}.u-mt-half{margin-top:.5rem !important}.u-mb-half{margin-bottom:.5rem !important}.u-ml-half{margin-left:.5rem !important}.u-mr-half{margin-right:.5rem !important}.u-mv-half{margin-top:.5rem !important;margin-bottom:.5rem !important}.u-mh-half{margin-left:.5rem !important;margin-right:.5rem !important}.u-m-1-half{margin:1.5rem !important}.u-mt-1-half{margin-top:1.5rem !important}.u-mb-1-half{margin-bottom:1.5rem !important}.u-ml-1-half{margin-left:1.5rem !important}.u-mr-1-half{margin-right:1.5rem !important}.u-mv-1-half{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.u-mh-1-half{margin-left:1.5rem !important;margin-right:1.5rem !important}.u-m-2-half{margin:2.5rem !important}.u-mt-2-half{margin-top:2.5rem !important}.u-mb-2-half{margin-bottom:2.5rem !important}.u-ml-2-half{margin-left:2.5rem !important}.u-mr-2-half{margin-right:2.5rem !important}.u-mv-2-half{margin-top:2.5rem !important;margin-bottom:2.5rem !important}.u-mh-2-half{margin-left:2.5rem !important;margin-right:2.5rem !important}@media (max-width:30rem){.u-p-0-t{padding:0 !important}}@media (max-width:30rem){.u-pt-0-t{padding-top:0 !important}}@media (max-width:30rem){.u-pb-0-t{padding-bottom:0 !important}}@media (max-width:30rem){.u-pl-0-t{padding-left:0 !important}}@media (max-width:30rem){.u-pr-0-t{padding-right:0 !important}}@media (max-width:30rem){.u-pv-0-t{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:30rem){.u-ph-0-t{padding-left:0 !important;padding-right:0 !important}}@media (max-width:30rem){.u-p-1-t{padding:1rem !important}}@media (max-width:30rem){.u-pt-1-t{padding-top:1rem !important}}@media (max-width:30rem){.u-pb-1-t{padding-bottom:1rem !important}}@media (max-width:30rem){.u-pl-1-t{padding-left:1rem !important}}@media (max-width:30rem){.u-pr-1-t{padding-right:1rem !important}}@media (max-width:30rem){.u-pv-1-t{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:30rem){.u-ph-1-t{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:30rem){.u-p-2-t{padding:2rem !important}}@media (max-width:30rem){.u-pt-2-t{padding-top:2rem !important}}@media (max-width:30rem){.u-pb-2-t{padding-bottom:2rem !important}}@media (max-width:30rem){.u-pl-2-t{padding-left:2rem !important}}@media (max-width:30rem){.u-pr-2-t{padding-right:2rem !important}}@media (max-width:30rem){.u-pv-2-t{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:30rem){.u-ph-2-t{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:30rem){.u-p-3-t{padding:3rem !important}}@media (max-width:30rem){.u-pt-3-t{padding-top:3rem !important}}@media (max-width:30rem){.u-pb-3-t{padding-bottom:3rem !important}}@media (max-width:30rem){.u-pl-3-t{padding-left:3rem !important}}@media (max-width:30rem){.u-pr-3-t{padding-right:3rem !important}}@media (max-width:30rem){.u-pv-3-t{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:30rem){.u-ph-3-t{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:30rem){.u-p-auto-t{padding:auto !important}}@media (max-width:30rem){.u-pt-auto-t{padding-top:auto !important}}@media (max-width:30rem){.u-pb-auto-t{padding-bottom:auto !important}}@media (max-width:30rem){.u-pl-auto-t{padding-left:auto !important}}@media (max-width:30rem){.u-pr-auto-t{padding-right:auto !important}}@media (max-width:30rem){.u-pv-auto-t{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:30rem){.u-ph-auto-t{padding-left:auto !important;padding-right:auto !important}}@media (max-width:30rem){.u-p-half-t{padding:.5rem !important}}@media (max-width:30rem){.u-pt-half-t{padding-top:.5rem !important}}@media (max-width:30rem){.u-pb-half-t{padding-bottom:.5rem !important}}@media (max-width:30rem){.u-pl-half-t{padding-left:.5rem !important}}@media (max-width:30rem){.u-pr-half-t{padding-right:.5rem !important}}@media (max-width:30rem){.u-pv-half-t{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:30rem){.u-ph-half-t{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:30rem){.u-p-1-half-t{padding:1.5rem !important}}@media (max-width:30rem){.u-pt-1-half-t{padding-top:1.5rem !important}}@media (max-width:30rem){.u-pb-1-half-t{padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-pl-1-half-t{padding-left:1.5rem !important}}@media (max-width:30rem){.u-pr-1-half-t{padding-right:1.5rem !important}}@media (max-width:30rem){.u-pv-1-half-t{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-ph-1-half-t{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:30rem){.u-p-2-half-t{padding:2.5rem !important}}@media (max-width:30rem){.u-pt-2-half-t{padding-top:2.5rem !important}}@media (max-width:30rem){.u-pb-2-half-t{padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-pl-2-half-t{padding-left:2.5rem !important}}@media (max-width:30rem){.u-pr-2-half-t{padding-right:2.5rem !important}}@media (max-width:30rem){.u-pv-2-half-t{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-ph-2-half-t{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:30rem){.u-m-0-t{margin:0 !important}}@media (max-width:30rem){.u-mt-0-t{margin-top:0 !important}}@media (max-width:30rem){.u-mb-0-t{margin-bottom:0 !important}}@media (max-width:30rem){.u-ml-0-t{margin-left:0 !important}}@media (max-width:30rem){.u-mr-0-t{margin-right:0 !important}}@media (max-width:30rem){.u-mv-0-t{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:30rem){.u-mh-0-t{margin-left:0 !important;margin-right:0 !important}}@media (max-width:30rem){.u-m-1-t{margin:1rem !important}}@media (max-width:30rem){.u-mt-1-t{margin-top:1rem !important}}@media (max-width:30rem){.u-mb-1-t{margin-bottom:1rem !important}}@media (max-width:30rem){.u-ml-1-t{margin-left:1rem !important}}@media (max-width:30rem){.u-mr-1-t{margin-right:1rem !important}}@media (max-width:30rem){.u-mv-1-t{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:30rem){.u-mh-1-t{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:30rem){.u-m-2-t{margin:2rem !important}}@media (max-width:30rem){.u-mt-2-t{margin-top:2rem !important}}@media (max-width:30rem){.u-mb-2-t{margin-bottom:2rem !important}}@media (max-width:30rem){.u-ml-2-t{margin-left:2rem !important}}@media (max-width:30rem){.u-mr-2-t{margin-right:2rem !important}}@media (max-width:30rem){.u-mv-2-t{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:30rem){.u-mh-2-t{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:30rem){.u-m-3-t{margin:3rem !important}}@media (max-width:30rem){.u-mt-3-t{margin-top:3rem !important}}@media (max-width:30rem){.u-mb-3-t{margin-bottom:3rem !important}}@media (max-width:30rem){.u-ml-3-t{margin-left:3rem !important}}@media (max-width:30rem){.u-mr-3-t{margin-right:3rem !important}}@media (max-width:30rem){.u-mv-3-t{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:30rem){.u-mh-3-t{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:30rem){.u-m-auto-t{margin:auto !important}}@media (max-width:30rem){.u-mt-auto-t{margin-top:auto !important}}@media (max-width:30rem){.u-mb-auto-t{margin-bottom:auto !important}}@media (max-width:30rem){.u-ml-auto-t{margin-left:auto !important}}@media (max-width:30rem){.u-mr-auto-t{margin-right:auto !important}}@media (max-width:30rem){.u-mv-auto-t{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:30rem){.u-mh-auto-t{margin-left:auto !important;margin-right:auto !important}}@media (max-width:30rem){.u-m-half-t{margin:.5rem !important}}@media (max-width:30rem){.u-mt-half-t{margin-top:.5rem !important}}@media (max-width:30rem){.u-mb-half-t{margin-bottom:.5rem !important}}@media (max-width:30rem){.u-ml-half-t{margin-left:.5rem !important}}@media (max-width:30rem){.u-mr-half-t{margin-right:.5rem !important}}@media (max-width:30rem){.u-mv-half-t{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:30rem){.u-mh-half-t{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:30rem){.u-m-1-half-t{margin:1.5rem !important}}@media (max-width:30rem){.u-mt-1-half-t{margin-top:1.5rem !important}}@media (max-width:30rem){.u-mb-1-half-t{margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-ml-1-half-t{margin-left:1.5rem !important}}@media (max-width:30rem){.u-mr-1-half-t{margin-right:1.5rem !important}}@media (max-width:30rem){.u-mv-1-half-t{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-mh-1-half-t{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:30rem){.u-m-2-half-t{margin:2.5rem !important}}@media (max-width:30rem){.u-mt-2-half-t{margin-top:2.5rem !important}}@media (max-width:30rem){.u-mb-2-half-t{margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-ml-2-half-t{margin-left:2.5rem !important}}@media (max-width:30rem){.u-mr-2-half-t{margin-right:2.5rem !important}}@media (max-width:30rem){.u-mv-2-half-t{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-mh-2-half-t{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:48rem){.u-p-0-s{padding:0 !important}}@media (max-width:48rem){.u-pt-0-s{padding-top:0 !important}}@media (max-width:48rem){.u-pb-0-s{padding-bottom:0 !important}}@media (max-width:48rem){.u-pl-0-s{padding-left:0 !important}}@media (max-width:48rem){.u-pr-0-s{padding-right:0 !important}}@media (max-width:48rem){.u-pv-0-s{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:48rem){.u-ph-0-s{padding-left:0 !important;padding-right:0 !important}}@media (max-width:48rem){.u-p-1-s{padding:1rem !important}}@media (max-width:48rem){.u-pt-1-s{padding-top:1rem !important}}@media (max-width:48rem){.u-pb-1-s{padding-bottom:1rem !important}}@media (max-width:48rem){.u-pl-1-s{padding-left:1rem !important}}@media (max-width:48rem){.u-pr-1-s{padding-right:1rem !important}}@media (max-width:48rem){.u-pv-1-s{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:48rem){.u-ph-1-s{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:48rem){.u-p-2-s{padding:2rem !important}}@media (max-width:48rem){.u-pt-2-s{padding-top:2rem !important}}@media (max-width:48rem){.u-pb-2-s{padding-bottom:2rem !important}}@media (max-width:48rem){.u-pl-2-s{padding-left:2rem !important}}@media (max-width:48rem){.u-pr-2-s{padding-right:2rem !important}}@media (max-width:48rem){.u-pv-2-s{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:48rem){.u-ph-2-s{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:48rem){.u-p-3-s{padding:3rem !important}}@media (max-width:48rem){.u-pt-3-s{padding-top:3rem !important}}@media (max-width:48rem){.u-pb-3-s{padding-bottom:3rem !important}}@media (max-width:48rem){.u-pl-3-s{padding-left:3rem !important}}@media (max-width:48rem){.u-pr-3-s{padding-right:3rem !important}}@media (max-width:48rem){.u-pv-3-s{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:48rem){.u-ph-3-s{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:48rem){.u-p-auto-s{padding:auto !important}}@media (max-width:48rem){.u-pt-auto-s{padding-top:auto !important}}@media (max-width:48rem){.u-pb-auto-s{padding-bottom:auto !important}}@media (max-width:48rem){.u-pl-auto-s{padding-left:auto !important}}@media (max-width:48rem){.u-pr-auto-s{padding-right:auto !important}}@media (max-width:48rem){.u-pv-auto-s{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:48rem){.u-ph-auto-s{padding-left:auto !important;padding-right:auto !important}}@media (max-width:48rem){.u-p-half-s{padding:.5rem !important}}@media (max-width:48rem){.u-pt-half-s{padding-top:.5rem !important}}@media (max-width:48rem){.u-pb-half-s{padding-bottom:.5rem !important}}@media (max-width:48rem){.u-pl-half-s{padding-left:.5rem !important}}@media (max-width:48rem){.u-pr-half-s{padding-right:.5rem !important}}@media (max-width:48rem){.u-pv-half-s{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:48rem){.u-ph-half-s{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:48rem){.u-p-1-half-s{padding:1.5rem !important}}@media (max-width:48rem){.u-pt-1-half-s{padding-top:1.5rem !important}}@media (max-width:48rem){.u-pb-1-half-s{padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-pl-1-half-s{padding-left:1.5rem !important}}@media (max-width:48rem){.u-pr-1-half-s{padding-right:1.5rem !important}}@media (max-width:48rem){.u-pv-1-half-s{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-ph-1-half-s{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:48rem){.u-p-2-half-s{padding:2.5rem !important}}@media (max-width:48rem){.u-pt-2-half-s{padding-top:2.5rem !important}}@media (max-width:48rem){.u-pb-2-half-s{padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-pl-2-half-s{padding-left:2.5rem !important}}@media (max-width:48rem){.u-pr-2-half-s{padding-right:2.5rem !important}}@media (max-width:48rem){.u-pv-2-half-s{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-ph-2-half-s{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:48rem){.u-m-0-s{margin:0 !important}}@media (max-width:48rem){.u-mt-0-s{margin-top:0 !important}}@media (max-width:48rem){.u-mb-0-s{margin-bottom:0 !important}}@media (max-width:48rem){.u-ml-0-s{margin-left:0 !important}}@media (max-width:48rem){.u-mr-0-s{margin-right:0 !important}}@media (max-width:48rem){.u-mv-0-s{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:48rem){.u-mh-0-s{margin-left:0 !important;margin-right:0 !important}}@media (max-width:48rem){.u-m-1-s{margin:1rem !important}}@media (max-width:48rem){.u-mt-1-s{margin-top:1rem !important}}@media (max-width:48rem){.u-mb-1-s{margin-bottom:1rem !important}}@media (max-width:48rem){.u-ml-1-s{margin-left:1rem !important}}@media (max-width:48rem){.u-mr-1-s{margin-right:1rem !important}}@media (max-width:48rem){.u-mv-1-s{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:48rem){.u-mh-1-s{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:48rem){.u-m-2-s{margin:2rem !important}}@media (max-width:48rem){.u-mt-2-s{margin-top:2rem !important}}@media (max-width:48rem){.u-mb-2-s{margin-bottom:2rem !important}}@media (max-width:48rem){.u-ml-2-s{margin-left:2rem !important}}@media (max-width:48rem){.u-mr-2-s{margin-right:2rem !important}}@media (max-width:48rem){.u-mv-2-s{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:48rem){.u-mh-2-s{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:48rem){.u-m-3-s{margin:3rem !important}}@media (max-width:48rem){.u-mt-3-s{margin-top:3rem !important}}@media (max-width:48rem){.u-mb-3-s{margin-bottom:3rem !important}}@media (max-width:48rem){.u-ml-3-s{margin-left:3rem !important}}@media (max-width:48rem){.u-mr-3-s{margin-right:3rem !important}}@media (max-width:48rem){.u-mv-3-s{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:48rem){.u-mh-3-s{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:48rem){.u-m-auto-s{margin:auto !important}}@media (max-width:48rem){.u-mt-auto-s{margin-top:auto !important}}@media (max-width:48rem){.u-mb-auto-s{margin-bottom:auto !important}}@media (max-width:48rem){.u-ml-auto-s{margin-left:auto !important}}@media (max-width:48rem){.u-mr-auto-s{margin-right:auto !important}}@media (max-width:48rem){.u-mv-auto-s{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:48rem){.u-mh-auto-s{margin-left:auto !important;margin-right:auto !important}}@media (max-width:48rem){.u-m-half-s{margin:.5rem !important}}@media (max-width:48rem){.u-mt-half-s{margin-top:.5rem !important}}@media (max-width:48rem){.u-mb-half-s{margin-bottom:.5rem !important}}@media (max-width:48rem){.u-ml-half-s{margin-left:.5rem !important}}@media (max-width:48rem){.u-mr-half-s{margin-right:.5rem !important}}@media (max-width:48rem){.u-mv-half-s{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:48rem){.u-mh-half-s{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:48rem){.u-m-1-half-s{margin:1.5rem !important}}@media (max-width:48rem){.u-mt-1-half-s{margin-top:1.5rem !important}}@media (max-width:48rem){.u-mb-1-half-s{margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-ml-1-half-s{margin-left:1.5rem !important}}@media (max-width:48rem){.u-mr-1-half-s{margin-right:1.5rem !important}}@media (max-width:48rem){.u-mv-1-half-s{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-mh-1-half-s{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:48rem){.u-m-2-half-s{margin:2.5rem !important}}@media (max-width:48rem){.u-mt-2-half-s{margin-top:2.5rem !important}}@media (max-width:48rem){.u-mb-2-half-s{margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-ml-2-half-s{margin-left:2.5rem !important}}@media (max-width:48rem){.u-mr-2-half-s{margin-right:2.5rem !important}}@media (max-width:48rem){.u-mv-2-half-s{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-mh-2-half-s{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-p-0-m{padding:0 !important}}@media (max-width:63.938rem){.u-pt-0-m{padding-top:0 !important}}@media (max-width:63.938rem){.u-pb-0-m{padding-bottom:0 !important}}@media (max-width:63.938rem){.u-pl-0-m{padding-left:0 !important}}@media (max-width:63.938rem){.u-pr-0-m{padding-right:0 !important}}@media (max-width:63.938rem){.u-pv-0-m{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:63.938rem){.u-ph-0-m{padding-left:0 !important;padding-right:0 !important}}@media (max-width:63.938rem){.u-p-1-m{padding:1rem !important}}@media (max-width:63.938rem){.u-pt-1-m{padding-top:1rem !important}}@media (max-width:63.938rem){.u-pb-1-m{padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-pl-1-m{padding-left:1rem !important}}@media (max-width:63.938rem){.u-pr-1-m{padding-right:1rem !important}}@media (max-width:63.938rem){.u-pv-1-m{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-ph-1-m{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:63.938rem){.u-p-2-m{padding:2rem !important}}@media (max-width:63.938rem){.u-pt-2-m{padding-top:2rem !important}}@media (max-width:63.938rem){.u-pb-2-m{padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-pl-2-m{padding-left:2rem !important}}@media (max-width:63.938rem){.u-pr-2-m{padding-right:2rem !important}}@media (max-width:63.938rem){.u-pv-2-m{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-ph-2-m{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:63.938rem){.u-p-3-m{padding:3rem !important}}@media (max-width:63.938rem){.u-pt-3-m{padding-top:3rem !important}}@media (max-width:63.938rem){.u-pb-3-m{padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-pl-3-m{padding-left:3rem !important}}@media (max-width:63.938rem){.u-pr-3-m{padding-right:3rem !important}}@media (max-width:63.938rem){.u-pv-3-m{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-ph-3-m{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:63.938rem){.u-p-auto-m{padding:auto !important}}@media (max-width:63.938rem){.u-pt-auto-m{padding-top:auto !important}}@media (max-width:63.938rem){.u-pb-auto-m{padding-bottom:auto !important}}@media (max-width:63.938rem){.u-pl-auto-m{padding-left:auto !important}}@media (max-width:63.938rem){.u-pr-auto-m{padding-right:auto !important}}@media (max-width:63.938rem){.u-pv-auto-m{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:63.938rem){.u-ph-auto-m{padding-left:auto !important;padding-right:auto !important}}@media (max-width:63.938rem){.u-p-half-m{padding:.5rem !important}}@media (max-width:63.938rem){.u-pt-half-m{padding-top:.5rem !important}}@media (max-width:63.938rem){.u-pb-half-m{padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-pl-half-m{padding-left:.5rem !important}}@media (max-width:63.938rem){.u-pr-half-m{padding-right:.5rem !important}}@media (max-width:63.938rem){.u-pv-half-m{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ph-half-m{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:63.938rem){.u-p-1-half-m{padding:1.5rem !important}}@media (max-width:63.938rem){.u-pt-1-half-m{padding-top:1.5rem !important}}@media (max-width:63.938rem){.u-pb-1-half-m{padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-pl-1-half-m{padding-left:1.5rem !important}}@media (max-width:63.938rem){.u-pr-1-half-m{padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-pv-1-half-m{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ph-1-half-m{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-p-2-half-m{padding:2.5rem !important}}@media (max-width:63.938rem){.u-pt-2-half-m{padding-top:2.5rem !important}}@media (max-width:63.938rem){.u-pb-2-half-m{padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-pl-2-half-m{padding-left:2.5rem !important}}@media (max-width:63.938rem){.u-pr-2-half-m{padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-pv-2-half-m{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ph-2-half-m{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-m-0-m{margin:0 !important}}@media (max-width:63.938rem){.u-mt-0-m{margin-top:0 !important}}@media (max-width:63.938rem){.u-mb-0-m{margin-bottom:0 !important}}@media (max-width:63.938rem){.u-ml-0-m{margin-left:0 !important}}@media (max-width:63.938rem){.u-mr-0-m{margin-right:0 !important}}@media (max-width:63.938rem){.u-mv-0-m{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:63.938rem){.u-mh-0-m{margin-left:0 !important;margin-right:0 !important}}@media (max-width:63.938rem){.u-m-1-m{margin:1rem !important}}@media (max-width:63.938rem){.u-mt-1-m{margin-top:1rem !important}}@media (max-width:63.938rem){.u-mb-1-m{margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-ml-1-m{margin-left:1rem !important}}@media (max-width:63.938rem){.u-mr-1-m{margin-right:1rem !important}}@media (max-width:63.938rem){.u-mv-1-m{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-mh-1-m{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:63.938rem){.u-m-2-m{margin:2rem !important}}@media (max-width:63.938rem){.u-mt-2-m{margin-top:2rem !important}}@media (max-width:63.938rem){.u-mb-2-m{margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-ml-2-m{margin-left:2rem !important}}@media (max-width:63.938rem){.u-mr-2-m{margin-right:2rem !important}}@media (max-width:63.938rem){.u-mv-2-m{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-mh-2-m{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:63.938rem){.u-m-3-m{margin:3rem !important}}@media (max-width:63.938rem){.u-mt-3-m{margin-top:3rem !important}}@media (max-width:63.938rem){.u-mb-3-m{margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-ml-3-m{margin-left:3rem !important}}@media (max-width:63.938rem){.u-mr-3-m{margin-right:3rem !important}}@media (max-width:63.938rem){.u-mv-3-m{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-mh-3-m{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:63.938rem){.u-m-auto-m{margin:auto !important}}@media (max-width:63.938rem){.u-mt-auto-m{margin-top:auto !important}}@media (max-width:63.938rem){.u-mb-auto-m{margin-bottom:auto !important}}@media (max-width:63.938rem){.u-ml-auto-m{margin-left:auto !important}}@media (max-width:63.938rem){.u-mr-auto-m{margin-right:auto !important}}@media (max-width:63.938rem){.u-mv-auto-m{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:63.938rem){.u-mh-auto-m{margin-left:auto !important;margin-right:auto !important}}@media (max-width:63.938rem){.u-m-half-m{margin:.5rem !important}}@media (max-width:63.938rem){.u-mt-half-m{margin-top:.5rem !important}}@media (max-width:63.938rem){.u-mb-half-m{margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ml-half-m{margin-left:.5rem !important}}@media (max-width:63.938rem){.u-mr-half-m{margin-right:.5rem !important}}@media (max-width:63.938rem){.u-mv-half-m{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-mh-half-m{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:63.938rem){.u-m-1-half-m{margin:1.5rem !important}}@media (max-width:63.938rem){.u-mt-1-half-m{margin-top:1.5rem !important}}@media (max-width:63.938rem){.u-mb-1-half-m{margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ml-1-half-m{margin-left:1.5rem !important}}@media (max-width:63.938rem){.u-mr-1-half-m{margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-mv-1-half-m{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-mh-1-half-m{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-m-2-half-m{margin:2.5rem !important}}@media (max-width:63.938rem){.u-mt-2-half-m{margin-top:2.5rem !important}}@media (max-width:63.938rem){.u-mb-2-half-m{margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ml-2-half-m{margin-left:2.5rem !important}}@media (max-width:63.938rem){.u-mr-2-half-m{margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-mv-2-half-m{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-mh-2-half-m{margin-left:2.5rem !important;margin-right:2.5rem !important}}.u-pos-absolute{position:absolute}.u-pos-relative{position:relative}.u-pos-fixed{position:fixed}.u-pos-sticky{position:sticky}.u-pos-static{position:static}@media (max-width:30rem){.u-pos-absolute-t{position:absolute}.u-pos-relative-t{position:relative}.u-pos-fixed-t{position:fixed}.u-pos-sticky-t{position:sticky}.u-pos-static-t{position:static}}@media (max-width:48rem){.u-pos-absolute-s{position:absolute}.u-pos-relative-s{position:relative}.u-pos-fixed-s{position:fixed}.u-pos-sticky-s{position:sticky}.u-pos-static-s{position:static}}@media (max-width:63.938rem){.u-pos-absolute-m{position:absolute}.u-pos-relative-m{position:relative}.u-pos-fixed-m{position:fixed}.u-pos-sticky-m{position:sticky}.u-pos-static-m{position:static}}.u-top-m{top:1rem}.u-top-xs{top:.5rem}.u-top-s{top:.75rem}.u-top-l{top:1.5rem}.u-top-xl{top:2rem}.u-top-xxl{top:3rem}.u-top-0{top:0}.u-bottom-m{bottom:1rem}.u-bottom-xs{bottom:.5rem}.u-bottom-s{bottom:.75rem}.u-bottom-l{bottom:1.5rem}.u-bottom-xl{bottom:2rem}.u-bottom-xxl{bottom:3rem}.u-bottom-0{bottom:0}.u-left-m{left:1rem}.u-left-xs{left:.5rem}.u-left-s{left:.75rem}.u-left-l{left:1.5rem}.u-left-xl{left:2rem}.u-left-xxl{left:3rem}.u-left-0{left:0}.u-right-m{right:1rem}.u-right-xs{right:.5rem}.u-right-s{right:.75rem}.u-right-l{right:1.5rem}.u-right-xl{right:2rem}.u-right-xxl{right:3rem}.u-right-0{right:0}.u-stack-m > * + *{margin-top:1rem}.u-stack-xs > * + *{margin-top:.5rem}.u-stack-s > * + *{margin-top:.75rem}.u-stack-l > * + *{margin-top:1.5rem}.u-stack-xl > * + *{margin-top:2rem}.u-stack-xxl > * + *{margin-top:3rem}.u-row-m > * + *{margin-left:1rem}.u-row-xs > * + *{margin-left:.5rem}.u-row-s > * + *{margin-left:.75rem}.u-row-l > * + *{margin-left:1.5rem}.u-row-xl > * + *{margin-left:2rem}.u-row-xxl > * + *{margin-left:3rem}.u-title-h1,.u-title-h2,.u-title-h3,.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}.u-title-h1{font-size:1.5rem;letter-spacing:-.012rem}@media (max-width:48rem){.u-title-h1{font-size:1.25rem}}.u-title-h2{font-size:1.25rem}@media (max-width:48rem){.u-title-h2{font-size:1.125rem}}.u-title-h3{font-size:1.125rem}@media (max-width:48rem){.u-title-h3{font-size:1rem}}.u-title-h4{font-size:1rem}@media (max-width:48rem){.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}}.u-text{font-size:1rem;line-height:1.3;color:var(--primaryTextColor)}.u-caption{font-size:.75rem;line-height:1.2;color:var(--coolGrey)}.u-subtitle{font-size:.75rem;line-height:1.313}.u-uppercase{text-transform:uppercase}.u-lowercase{text-transform:lowercase}.u-subtitle{font-size:.75rem;text-transform:uppercase;font-weight:bold}.c-input-checkbox--svg span::after{display:none}.c-input-checkbox-icon{position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;padding:.125rem;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox input:not(:checked) + span .c-input-checkbox-icon{opacity:0;-webkit-transform:scale(0) translateY(-50%);transform:scale(0) translateY(-50%)}.c-input-checkbox input:checked + span .c-input-checkbox-icon{opacity:1;-webkit-transform:scale(1) translateY(-50%);transform:scale(1) translateY(-50%)}.c-avatar--text{color:#fff}.c-avatar--disabled.c-avatar--image{background-color:#fff !important}.c-avatar--disabled:not(.c-avatar--image){background-color:var(--silver) !important}.c-avatar--disabled .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.c-avatar--ghost{background-color:transparent !important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.c-avatar--ghost .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.wizard-agreements-item:nth-child(1) .wizard-agreements-icon{--bgcolor:var(--weirdGreen)}.wizard-agreements-item:nth-child(2) .wizard-agreements-icon{--bgcolor:var(--mango)}.wizard-agreements-item:nth-child(3) .wizard-agreements-icon{--bgcolor:var(--lightishPurple)}.wizard-agreements-item:nth-child(4) .wizard-agreements-icon{--bgcolor:var(--pomegranate)}.wizard-agreements-item:nth-child(5) .wizard-agreements-icon{--bgcolor:var(--azure)}.wizard-agreements-item:nth-child(6) .wizard-agreements-icon{--bgcolor:var(--brightSun)}", ""]); +exports.push([module.i, "html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}:root{--invertedBackgroundColor:#297ef2;--invertedContrastTextColor:#fff}.CozyTheme--inverted{--primaryTextColor:#fff;--secondaryTextColor:rgba(255,255,255,0.64);--disabledTextColor:rgba(255,255,255,0.4);--hintTextColor:rgba(255,255,255,0.4);--iconTextColor:#fff;--actionColorActive:#fff;--actionColorHover:rgba(255,255,255,0.08);--actionColorSelected:rgba(255,255,255,0.16);--actionColorDisabled:rgba(255,255,255,0.32);--actionColorDisabledBackground:rgba(255,255,255,0.12);--actionColorFocus:rgba(255,255,255,0.24);--actionColorGhost:rgba(255,255,255,0.08);--actionColorHoverGhost:rgba(255,255,255,0.16);--dividerColor:rgba(255,255,255,0.16);--borderMainColor:rgba(255,255,255,0.24);--borderDisabledColor:rgba(255,255,255,0.12);--borderGhostColor:rgba(255,255,255,0.48);--borderGhostDisabledColor:rgba(255,255,255,0.24);--paperBackgroundColor:#297ef2;--defaultBackgroundColor:#579eff;--contrastBackgroundColor:rgba(255,255,255,0.12);--primaryColorLight:#fff;--primaryColor:#fff;--primaryColorDark:#eaf3ff;--primaryContrastTextColor:#297ef2;--secondaryColorLight:#f8eefd;--secondaryColor:#ecd7f7;--secondaryColorDark:#deb8f0;--secondaryContrastTextColor:rgba(29,33,42,0.9);--errorColorLight:#ffecec;--errorColor:#ffd3d3;--errorColorDark:#ffb9b9;--errorColorContrastText:rgba(29,33,42,0.9);--errorBackground:#d31f1f;--warningColorLight:#fff3dd;--warningColor:#ffe4b5;--warningColorDark:#ffd58b;--warningColorContrastText:rgba(29,33,42,0.9);--successColorLight:#e3ffe7;--successColor:#c0f4c6;--successColorDark:#97eca1;--successColorContrastText:rgba(29,33,42,0.9);--infoColorLight:#d4feff;--infoColor:#affdff;--infoColorDark:#86f5f7;--infoColorContrastText:rgba(29,33,42,0.9);--iconColor:currentColor;--textIconColor:#fff;--actionMenuIconColor:#fff;--barIconColor:#fff;--barIconColorDisabled:rgba(255,255,255,0.88);--spinnerColor:#fff;--linkColor:#fff;--linkColorActive:#fff;--linkTextDecoration:underline;--regularButtonPrimaryColor:#fff;--regularButtonSecondaryColor:#fff;--regularButtonActiveColor:rgba(255,255,255,0.88);--regularButtonConstrastColor:#297ef2;--secondaryButtonPrimaryColor:#297ef2;--secondaryButtonSecondaryColor:#fff;--secondaryButtonActiveColor:rgba(255,255,255,0.24);--secondaryButtonContrastColor:#fff;--dividerColor2:rgba(255,255,255,0.16)}html{--grey0:#fff;--grey50:#f9fafb;--grey100:#f4f5f6;--grey200:#eceff1;--grey300:#dde0e3;--grey400:#bfc3c7;--grey500:#9da2a6;--grey600:#7c8086;--grey700:#5d6169;--grey800:#3e424a;--grey900:#1d212a;--greyA100:#d3d6d8;--greyA200:#a7abaf;--greyA400:#2c3039;--greyA700:#5d6169;--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,0.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.CozyTheme--normal{--primaryColorLightest:#b3d3ff;--primaryColorLight:#579eff;--primaryColor:#297ef2;--primaryColorDark:#0f5cc7;--primaryContrastTextColor:#fff;--secondaryColorLightest:#ffd3d3;--secondaryColorLight:#f96b6b;--secondaryColor:#ea3f3f;--secondaryColorDark:#d31f1f;--secondaryContrastTextColor:#fff;--primaryBackgroundLight:#f7faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f4f5f6;--contrastBackgroundColor:rgba(29,33,42,0.048);--primaryTextColor:rgba(29,33,42,0.9);--secondaryTextColor:rgba(29,33,42,0.64);--disabledTextColor:rgba(29,33,42,0.32);--hintTextColor:rgba(29,33,42,0.32);--iconTextColor:rgba(29,33,42,0.72);--actionColorActive:rgba(29,33,42,0.56);--actionColorHover:rgba(29,33,42,0.04);--actionColorSelected:rgba(29,33,42,0.08);--actionColorDisabled:rgba(29,33,42,0.24);--actionColorDisabledBackground:rgba(29,33,42,0.12);--actionColorFocus:rgba(29,33,42,0.12);--actionColorGhost:rgba(29,33,42,0.08);--actionColorHoverGhost:rgba(29,33,42,0.16);--borderMainColor:rgba(29,33,42,0.16);--borderDisabledColor:rgba(29,33,42,0.08);--borderGhostColor:rgba(29,33,42,0.48);--borderGhostDisabledColor:rgba(29,33,42,0.16);--dividerColor:rgba(29,33,42,0.12);--successColorLight:#38c949;--successColor:#09ab1b;--successColorDark:#018711;--successColorContrastText:#fff;--warningColorLight:#efa82d;--warningColor:#cb8100;--warningColorDark:#986100;--warningColorContrastText:#fff;--errorColorLightest:#ffecec;--errorColorLight:#f96b6b;--errorColor:#ea3f3f;--errorColorDark:#d31f1f;--errorBackground:#ffecec;--errorColorContrastText:#fff;--infoColorLight:#0ec4c7;--infoColor:#009fa2;--infoColorDark:#007578;--infoColorContrastText:#fff;--shadow0:none;--shadow1:0 2px 4px 0 rgba(29,33,42,0.08),0 4px 16px 0 rgba(29,33,42,0.06),0 0 0 .5px rgba(29,33,42,0.12);--shadow2:0 3px 5px 0 rgba(29,33,42,0.09),0 4px 17px 0 rgba(29,33,42,0.07),0 0 0 .5px rgba(29,33,42,0.12);--shadow3:0 3px 5px -1px rgba(29,33,42,0.09),0 5px 19px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow4:0 3px 6px -1px rgba(29,33,42,0.1),0 5px 20px 1px rgba(29,33,42,0.08),0 0 0 .5px rgba(29,33,42,0.12);--shadow5:0 4px 6px -1px rgba(29,33,42,0.11),0 5px 22px 1px rgba(29,33,42,0.09),0 0 0 .5px rgba(29,33,42,0.12);--shadow6:0 4px 7px -2px rgba(29,33,42,0.11),0 6px 23px 2px rgba(29,33,42,0.1),0 0 0 .5px rgba(29,33,42,0.12);--shadow7:0 5px 7px -2px rgba(29,33,42,0.12),0 6px 24px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow8:0 5px 8px -2px rgba(29,33,42,0.13),0 6px 26px 2px rgba(29,33,42,0.11),0 0 0 .5px rgba(29,33,42,0.12);--shadow9:0 5px 8px -3px rgba(29,33,42,0.14),0 7px 27px 3px rgba(29,33,42,0.12),0 0 0 .5px rgba(29,33,42,0.12);--shadow10:0 6px 9px -3px rgba(29,33,42,0.14),0 7px 29px 3px rgba(29,33,42,0.13),0 0 0 .5px rgba(29,33,42,0.12);--shadow11:0 6px 9px -3px rgba(29,33,42,0.15),0 7px 30px 3px rgba(29,33,42,0.14),0 0 0 .5px rgba(29,33,42,0.12);--shadow12:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 31px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow13:0 7px 10px -4px rgba(29,33,42,0.16),0 8px 33px 4px rgba(29,33,42,0.15),0 0 0 .5px rgba(29,33,42,0.12);--shadow14:0 8px 11px -5px rgba(29,33,42,0.17),0 9px 34px 5px rgba(29,33,42,0.16),0 0 0 .5px rgba(29,33,42,0.12);--shadow15:0 8px 11px -5px rgba(29,33,42,0.18),0 9px 35px 5px rgba(29,33,42,0.17),0 0 0 .5px rgba(29,33,42,0.12);--shadow16:0 9px 12px -5px rgba(29,33,42,0.18),0 9px 37px 5px rgba(29,33,42,0.18),0 0 0 .5px rgba(29,33,42,0.12);--shadow17:0 9px 12px -6px rgba(29,33,42,0.19),0 10px 38px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow18:0 9px 13px -6px rgba(29,33,42,0.2),0 10px 40px 6px rgba(29,33,42,0.19),0 0 0 .5px rgba(29,33,42,0.12);--shadow19:0 10px 13px -6px rgba(29,33,42,0.21),0 10px 41px 6px rgba(29,33,42,0.2),0 0 0 .5px rgba(29,33,42,0.12);--shadow20:0 10px 14px -7px rgba(29,33,42,0.21),0 11px 42px 7px rgba(29,33,42,0.21),0 0 0 .5px rgba(29,33,42,0.12);--shadow21:0 11px 14px -7px rgba(29,33,42,0.22),0 11px 44px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow22:0 11px 15px -7px rgba(29,33,42,0.23),0 11px 45px 7px rgba(29,33,42,0.22),0 0 0 .5px rgba(29,33,42,0.12);--shadow23:0 12px 15px -8px rgba(29,33,42,0.23),0 12px 47px 8px rgba(29,33,42,0.23),0 0 0 .5px rgba(29,33,42,0.12);--shadow24:0 12px 16px -8px rgba(29,33,42,0.24),0 12px 48px 8px rgba(29,33,42,0.24),0 0 0 .5px rgba(29,33,42,0.12);--shadow25:0 1px 4px rgba(29,33,42,0.04);--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}.u-elevation-1{box-shadow:0 4px 12px 0 rgba(0,0,0,0.08);border:1px solid rgba(0,0,0,0.08)}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80}/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\nhtml{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100%;margin:0}@media (max-width:63.938rem){html,body{display:block;height:auto}}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){[role=application]{overflow:visible}}html,body{background-color:var(--white);color:var(--black)}.u-visuallyhidden{position:absolute !important;border:0 !important;width:.063rem !important;height:.063rem !important;overflow:hidden !important;padding:0 !important;white-space:nowrap !important;clip:rect(.063rem,.063rem,.063rem,.063rem) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important}.u-hide{display:none !important;visibility:hidden !important}@media (max-width:63.938rem){.u-hide--mob{display:none !important}}@media (min-width:64rem){.u-hide--tablet{display:none !important}}@media (min-width:48.063rem){.u-hide--desk{display:none !important}}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}@media (max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}}@media (max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}}@media (max-width:63.938rem){.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}}.u-black{color:var(--black) !important}.u-charcoalGrey{color:var(--charcoalGrey) !important}.u-coolGrey{color:var(--coolGrey) !important}.u-silver{color:var(--silver) !important}.u-slateGrey{color:var(--slateGrey) !important}.u-lightishPurple{color:#b449e7 !important}.u-dodgerBlue{color:#297ef2 !important}.u-overlay{color:var(--overlay) !important}.u-paleGrey{color:var(--paleGrey) !important}.u-monza{color:#dd0505 !important}.u-pomegranate{color:#f52d2d !important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight) !important}.u-primaryColor{color:var(--primaryColor) !important}.u-primaryColorLight{color:var(--primaryColorLight) !important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor) !important}.u-error{color:var(--errorColor) !important}.u-errorBackground{color:var(--errorBackground) !important}.u-success{color:var(--successColor) !important}.u-warning{color:var(--warningColor) !important}.u-info{color:var(--infoColor) !important}.u-weirdGreen{color:#40de8e !important}.u-white{color:var(--white) !important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}@media (max-width:30rem){.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:48rem){.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}@media (max-width:63.938rem){.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis > *{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis > :first-child{text-overflow:ellipsis}.u-midellipsis > :last-child{text-overflow:clip;direction:rtl}@supports (text-overflow:'[...]'){.u-midellipsis > :first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor) !important;-webkit-text-decoration:var(--linkTextDecoration) !important;text-decoration:var(--linkTextDecoration) !important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive) !important}.u-lh-tiny{line-height:1 !important}.u-lh-xsmall{line-height:1.1 !important}.u-lh-small{line-height:1.2 !important}.u-lh-medium{line-height:1.3 !important}.u-lh-large{line-height:1.4 !important}.u-lh-xlarge{line-height:1.5 !important}.u-fz-tiny{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium{font-size:1rem !important;line-height:1.5 !important}.u-fz-large{font-size:1.125rem !important;line-height:1.5 !important}@media (max-width:30rem){.u-fz-tiny-t{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-t{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-t{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-t{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-t{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:48rem){.u-fz-tiny-s{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-s{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-s{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-s{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-s{font-size:1.125rem !important;line-height:1.5 !important}}@media (max-width:63.938rem){.u-fz-tiny-m{font-size:.75rem !important;line-height:1.3 !important}.u-fz-xsmall-m{font-size:.813rem !important;line-height:1.4 !important}.u-fz-small-m{font-size:.875rem !important;line-height:1.4 !important}.u-fz-medium-m{font-size:1rem !important;line-height:1.5 !important}.u-fz-large-m{font-size:1.125rem !important;line-height:1.5 !important}}.u-ta-left{text-align:left !important}.u-ta-right{text-align:right !important}.u-ta-center{text-align:center !important}.u-ta-justify{text-align:justify !important}@media (max-width:30rem){.u-ta-left-t{text-align:left !important}.u-ta-right-t{text-align:right !important}.u-ta-center-t{text-align:center !important}.u-ta-justify-t{text-align:justify !important}}@media (max-width:48rem){.u-ta-left-s{text-align:left !important}.u-ta-right-s{text-align:right !important}.u-ta-center-s{text-align:center !important}.u-ta-justify-s{text-align:justify !important}}@media (max-width:63.938rem){.u-ta-left-m{text-align:left !important}.u-ta-right-m{text-align:right !important}.u-ta-center-m{text-align:center !important}.u-ta-justify-m{text-align:justify !important}}.u-fs-normal{font-style:normal !important}.u-fs-italic{font-style:italic !important}@media (max-width:30rem){.u-fs-normal-t{font-style:normal !important}.u-fs-italic-t{font-style:italic !important}}@media (max-width:48rem){.u-fs-normal-s{font-style:normal !important}.u-fs-italic-s{font-style:italic !important}}@media (max-width:63.938rem){.u-fs-normal-m{font-style:normal !important}.u-fs-italic-m{font-style:italic !important}}.u-fw-normal{font-weight:normal}.u-fw-bold{font-weight:bold}@media (max-width:30rem){.u-fw-normal-t{font-weight:normal}.u-fw-bold-t{font-weight:bold}}@media (max-width:48rem){.u-fw-normal-s{font-weight:normal}.u-fw-bold-s{font-weight:bold}}@media (max-width:63.938rem){.u-fw-normal-m{font-weight:normal}.u-fw-bold-m{font-weight:bold}}.c-btn,.c-btn--regular,.c-btn-client,.c-btn-client-mobile{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-width:.063rem;border-style:solid;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:bold;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border-color:var(--regularButtonSecondaryColor)}.c-btn svg,.c-btn--regular svg,.c-btn-client svg,.c-btn-client-mobile svg{fill:currentColor}.c-btn svg + span,.c-btn--regular svg + span,.c-btn-client svg + span,.c-btn-client-mobile svg + span{margin-left:.375rem}.c-btn input,.c-btn--regular input,.c-btn-client input,.c-btn-client-mobile input{cursor:pointer}.c-btn > span,.c-btn--regular > span,.c-btn-client > span,.c-btn-client-mobile > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn[disabled],.c-btn--regular[disabled],.c-btn-client[disabled],.c-btn-client-mobile[disabled],.c-btn[aria-disabled=true],.c-btn--regular[aria-disabled=true],.c-btn-client[aria-disabled=true],.c-btn-client-mobile[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn[disabled] input,.c-btn--regular[disabled] input,.c-btn-client[disabled] input,.c-btn-client-mobile[disabled] input,.c-btn[aria-disabled=true] input,.c-btn--regular[aria-disabled=true] input,.c-btn-client[aria-disabled=true] input,.c-btn-client-mobile[aria-disabled=true] input{cursor:not-allowed}.c-btn[aria-busy=true],.c-btn--regular[aria-busy=true],.c-btn-client[aria-busy=true],.c-btn-client-mobile[aria-busy=true]{opacity:.5;pointer-events:none}.c-btn:visited,.c-btn--regular:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--regularButtonConstrastColor)}.c-btn:active,.c-btn--regular:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn:hover,.c-btn--regular:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn:focus,.c-btn--regular:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.c-btn[disabled]:hover,.c-btn--regular[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn[aria-disabled=true]:hover,.c-btn--regular[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.c-btn--ghost{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.c-btn--ghost:visited{color:var(--primaryColor)}.c-btn--ghost:active,.c-btn--ghost:hover,.c-btn--ghost:focus{border-color:#c2dcff;background-color:#c2dcff}.c-btn--ghost[disabled]:hover,.c-btn--ghost[aria-disabled=true]:hover{border-color:#c2dcff;background-color:var(--zircon)}.c-btn--highlight{background-color:#35ce68;color:var(--white);border-color:#35ce68}.c-btn--highlight:visited{color:var(--white)}.c-btn--highlight:active,.c-btn--highlight:hover,.c-btn--highlight:focus{border-color:#08b442;background-color:#08b442}.c-btn--highlight[disabled]:hover,.c-btn--highlight[aria-disabled=true]:hover{border-color:#35ce68;background-color:#35ce68}.c-btn--alpha,.c-btn--action,.c-btn--close{background-color:transparent;color:var(--white);border-color:var(--white)}.c-btn--alpha:visited,.c-btn--action:visited,.c-btn--close:visited{color:var(--white)}.c-btn--alpha:active,.c-btn--action:active,.c-btn--close:active,.c-btn--alpha:hover,.c-btn--action:hover,.c-btn--close:hover,.c-btn--alpha:focus,.c-btn--action:focus,.c-btn--close:focus{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.c-btn--alpha[disabled]:hover,.c-btn--action[disabled]:hover,.c-btn--close[disabled]:hover,.c-btn--alpha[aria-disabled=true]:hover,.c-btn--action[aria-disabled=true]:hover,.c-btn--close[aria-disabled=true]:hover{border-color:var(--white);background-color:transparent}.c-btn--danger{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.c-btn--danger:visited{color:var(--white)}.c-btn--danger:active,.c-btn--danger:hover,.c-btn--danger:focus{border-color:var(--monza);background-color:var(--monza)}.c-btn--danger[disabled]:hover,.c-btn--danger[aria-disabled=true]:hover{border-color:#f52d2d;background-color:#f52d2d}.c-btn--secondary,.c-btn-client,.c-btn-client-mobile{background-color:var(--secondaryButtonPrimaryColor);color:var(--secondaryButtonContrastColor);border-color:var(--secondaryButtonSecondaryColor)}.c-btn--secondary:visited,.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--secondaryButtonContrastColor)}.c-btn--secondary:active,.c-btn-client:active,.c-btn-client-mobile:active,.c-btn--secondary:hover,.c-btn-client:hover,.c-btn-client-mobile:hover,.c-btn--secondary:focus,.c-btn-client:focus,.c-btn-client-mobile:focus{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.c-btn--secondary[disabled]:hover,.c-btn-client[disabled]:hover,.c-btn-client-mobile[disabled]:hover,.c-btn--secondary[aria-disabled=true]:hover,.c-btn-client[aria-disabled=true]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.c-btn--danger-outline{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.c-btn--danger-outline:visited{color:#f52d2d}.c-btn--danger-outline:active,.c-btn--danger-outline:hover,.c-btn--danger-outline:focus{border-color:#fdcbcb;background-color:#fdcbcb}.c-btn--danger-outline[disabled]:hover,.c-btn--danger-outline[aria-disabled=true]:hover{border-color:#fdcbcb;background-color:var(--white)}.c-btn--text{background-color:transparent;color:var(--primaryColor);border-color:transparent}.c-btn--text:visited{color:var(--primaryColor)}.c-btn--text:active,.c-btn--text:hover,.c-btn--text:focus{border-color:transparent;background-color:transparent}.c-btn--text[disabled]:hover,.c-btn--text[aria-disabled=true]:hover{border-color:transparent;background-color:transparent}.c-btn--text:hover,.c-btn--text:focus{color:var(--primaryColorDark)}.c-btn--action{border-color:transparent;padding:.5rem;opacity:.5}.c-btn--action:active,.c-btn--action:hover,.c-btn--action:focus{background-color:transparent;border-color:transparent}.c-btn--close{border-color:transparent;padding:.5rem}.c-btn--close:active,.c-btn--close:hover,.c-btn--close:focus{background-color:transparent;border-color:transparent}.c-btn-alert,.c-btn-alert--error,.c-btn-alert--info,.c-btn-alert--success{border:0;height:auto;padding:.5rem 1rem;background-color:var(--white);font-weight:bold;font-size:.875rem;text-decoration:none}.c-btn-alert--error{color:#f52d2d !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--error:visited{color:#f52d2d !important}.c-btn-alert--error:active,.c-btn-alert--error:hover,.c-btn-alert--error:focus{color:var(--monza) !important;background-color:#fdcbcb !important;border-color:#fdcbcb !important}.c-btn-alert--info{color:var(--white) !important;background-color:var(--coolGrey) !important;border-color:var(--coolGrey) !important}.c-btn-alert--info[disabled]:hover,.c-btn-alert--info[aria-disabled=true]:hover{background-color:var(--coolGrey) !important}.c-btn-alert--info:visited{color:var(--white) !important}.c-btn-alert--info:active,.c-btn-alert--info:hover,.c-btn-alert--info:focus{background-color:var(--charcoalGrey) !important;border-color:var(--charcoalGrey) !important}.c-btn-alert--success{color:#35ce68 !important;background-color:var(--white) !important;border-color:var(--white) !important}.c-btn-alert--success:visited{color:#35ce68 !important}.c-btn-alert--success:active,.c-btn-alert--success:hover,.c-btn-alert--success:focus{color:#08b442 !important;background-color:#def7e7 !important;border-color:#def7e7 !important}.c-btn-client,.c-btn-client-mobile{display:flex;justify-content:center;align-items:center;height:auto;min-height:3.5rem;margin:0;padding-left:1rem;padding-right:1rem;background-color:transparent;text-align:left;font-size:.813rem;font-weight:bold;line-height:1.3;color:var(--slateGrey)}.c-btn-client:visited,.c-btn-client-mobile:visited{color:var(--slateGrey)}.c-btn-client span,.c-btn-client-mobile span{flex:0 1 auto}.c-btn-client figure,.c-btn-client-mobile figure{flex:0 0 2rem;margin:0 .75rem 0 0}.c-btn-client-mobile{display:flex;justify-content:flex-start;background-color:var(--dodgerBlue);border:0;border-radius:0;margin:0;padding:.5rem 3rem .5rem 1rem;font-size:1rem;font-weight:normal;color:var(--white);text-decoration:none;text-transform:none}.c-btn-client-mobile[disabled]:hover,.c-btn-client-mobile[aria-disabled=true]:hover{background-color:var(--dodgerBlue)}.c-btn-client-mobile:visited{color:var(--white)}.c-btn-client-mobile:active,.c-btn-client-mobile:hover,.c-btn-client-mobile:focus{background-color:var(--dodgerBlue)}.c-btn-client-mobile figure{flex:0 0 2.75rem;border-radius:.5rem;border:.313rem solid var(--white);background-color:var(--white)}.c-btn-client-mobile figure svg{display:block}.c-btn--left > span{justify-content:flex-start}.c-btn--center > span{justify-content:center}.c-btn--right > span{justify-content:flex-end}.c-btn.c-btn--tiny{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.c-btn.c-btn--small{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.c-btn.c-btn--large{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.c-btn.c-btn--full{width:100%;margin-left:0;margin-right:0}.c-btn.c-btn--narrow,.c-btn.c-btn--round{min-width:auto}.c-btn.c-btn--round{border-radius:100%;min-height:auto;padding:.25rem}.c-btn.c-btn--round svg{width:.625rem;height:.625rem}@media (pointer:coarse){.c-btn.c-btn--round:after{content:'';position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}.c-btn--subtle{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:baseline;background:transparent;cursor:pointer;font-size:.875rem;font-weight:bold;text-transform:uppercase}.c-btn--subtle:active,.c-btn--subtle:focus,.c-btn--subtle:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle > span{display:flex;align-items:center;justify-content:center;width:100%}.c-btn--subtle[disabled],.c-btn--subtle[aria-disabled=true]{opacity:.5;cursor:not-allowed}.c-btn--subtle[disabled]:hover,.c-btn--subtle[aria-disabled=true]:hover{background:transparent}.c-btn--subtle[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.c-btn--subtle[aria-busy=true]:hover{background:transparent}.c-btn--subtle:active,.c-btn--subtle:hover,.c-btn--subtle:focus,.c-btn--subtle:visited{color:var(--primaryColorDark);background:transparent}* + .c-btn--subtle{margin-left:.063rem}.c-btn--subtle.c-btn--tiny{min-height:0;min-width:0;padding:0;font-size:.563rem}.c-btn--subtle.c-btn--small{min-height:0;min-width:0;padding:0;font-size:.75rem}.c-btn--subtle.c-btn--large{min-height:0;min-width:0;padding:0;font-size:1rem}.c-btn--subtle.c-btn--danger{color:#f52d2d}.c-btn--subtle.c-btn--danger:active,.c-btn--subtle.c-btn--danger:focus,.c-btn--subtle.c-btn--danger:hover{color:var(--monza)}.c-btn--subtle.c-btn--highlight{color:#35ce68}.c-btn--subtle.c-btn--highlight:active,.c-btn--subtle.c-btn--highlight:focus,.c-btn--subtle.c-btn--highlight:hover{color:#08b442}.c-btn--subtle.c-btn--regular{color:var(--regularButtonSecondaryColor)}.c-btn--subtle.c-btn--regular:active,.c-btn--subtle.c-btn--regular:focus,.c-btn--subtle.c-btn--regular:hover{color:var(--regularButtonActiveColor)}.c-btn--subtle.c-btn--secondary{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary:active,.c-btn--subtle.c-btn--secondary:focus,.c-btn--subtle.c-btn--secondary:hover{color:var(--charcoalGrey)}.c-btn--subtle.c-btn--secondary:active svg,.c-btn--subtle.c-btn--secondary:focus svg,.c-btn--subtle.c-btn--secondary:hover svg{color:var(--slateGrey)}.c-btn--subtle.c-btn--secondary svg{color:var(--coolGrey)}[data-input=radio],[data-input=checkbox]{display:flex}[data-input=radio] input[type=radio],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=checkbox] input[type=checkbox]{display:none !important;visibility:hidden !important}[data-input=radio] label,[data-input=checkbox] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=radio] label::before,[data-input=checkbox] label::before,[data-input=radio] label::after,[data-input=checkbox] label::after{content:'';position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=radio] label::before,[data-input=checkbox] label::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1)}[data-input=radio] label::after,[data-input=checkbox] label::after{transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-label{text-transform:uppercase;color:var(--secondaryTextColor);font-size:.813rem;font-weight:bold;line-height:1rem}.c-label.is-error{color:var(--pomegranate)}.c-label--block{display:block;padding:.5rem 0}.c-input-text[aria-disabled=true],.c-input-text[disabled],.c-textarea[aria-disabled=true],.c-textarea[disabled],.c-select[aria-disabled=true],.c-select[disabled],.wizard-select[aria-disabled=true],.wizard-select[disabled]{cursor:not-allowed;background-color:var(--paleGrey);color:var(--charcoalGrey)}.c-input-text[aria-disabled=true]:hover,.c-input-text[disabled]:hover,.c-textarea[aria-disabled=true]:hover,.c-textarea[disabled]:hover,.c-select[aria-disabled=true]:hover,.c-select[disabled]:hover,.wizard-select[aria-disabled=true]:hover,.wizard-select[disabled]:hover,.c-input-text[aria-disabled=true]:focus,.c-input-text[disabled]:focus,.c-textarea[aria-disabled=true]:focus,.c-textarea[disabled]:focus,.c-select[aria-disabled=true]:focus,.c-select[disabled]:focus,.wizard-select[aria-disabled=true]:focus,.wizard-select[disabled]:focus{border:.063rem solid var(--dividerColor)}.c-input-text,.c-textarea,.c-select,.wizard-select{display:inline-block;width:100%;max-width:32rem;padding:.813rem 1rem;box-sizing:border-box;border-radius:.188rem;background:var(--white);border:.063rem solid var(--dividerColor);font-size:1rem;line-height:1.25;color:var(--charcoalGrey);outline:0}.c-input-text::-webkit-input-placeholder,.c-textarea::-webkit-input-placeholder,.c-select::-webkit-input-placeholder,.wizard-select::-webkit-input-placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text::placeholder,.c-textarea::placeholder,.c-select::placeholder,.wizard-select::placeholder{color:var(--coolGrey);font-size:1rem}.c-input-text:hover,.c-textarea:hover,.c-select:hover,.wizard-select:hover{border:.063rem solid var(--coolGrey)}.c-input-text:focus,.c-textarea:focus,.c-select:focus,.wizard-select:focus{border:.063rem solid var(--dodgerBlue);outline:0}.c-input-text.is-error,.c-textarea.is-error,.c-select.is-error,.wizard-select.is-error,.c-input-text:not(:focus):invalid,.c-textarea:not(:focus):invalid,.c-select:not(:focus):invalid,.wizard-select:not(:focus):invalid{border:.063rem solid var(--pomegranate)}.c-input-text--tiny,.c-textarea--tiny,.c-select--tiny{border-radius:.125rem;padding:.25rem .5rem .375rem}.c-input-text--medium,.c-textarea--medium,.c-select--medium,.wizard-select--medium{border-radius:.125rem;padding:.5rem 1rem .625rem}.c-input-text--large{border-radius:.188rem;padding:.813rem 1rem}.c-input-text--fullwidth,.c-textarea--fullwidth,.c-select--fullwidth{max-width:100%}.c-input-checkbox,.c-input-radio{display:flex;align-items:center;min-width:1rem;min-height:1rem}.c-input-checkbox span,.c-input-radio span{position:relative;display:inline-block;padding-left:1.5rem;cursor:pointer;line-height:1.5}.c-input-checkbox span::before,.c-input-radio span::before,.c-input-checkbox span::after,.c-input-radio span::after{content:'';position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;border-radius:.125rem}.c-input-checkbox span::before,.c-input-radio span::before{transition:box-shadow 350ms cubic-bezier(0,.89,.44,1);background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.c-input-checkbox span:hover::before,.c-input-radio span:hover::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox span::after,.c-input-radio span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox[aria-checked='mixed'] span::after,.c-input-radio[aria-checked='mixed'] span::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}.c-input-checkbox[aria-disabled=true] span,.c-input-radio[aria-disabled=true] span{opacity:.5;cursor:not-allowed}.c-input-checkbox[aria-disabled=true] :hover::before,.c-input-radio[aria-disabled=true] :hover::before{box-shadow:inset 0 0 0 .125rem var(--silver)}.c-input-checkbox[aria-disabled=true] ::before,.c-input-radio[aria-disabled=true] ::before{background-color:var(--paleGrey)}.c-input-checkbox input,.c-input-radio input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0,0 0,0 0);clip-path:polygon(0 0,0 0,0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.c-input-checkbox input:focus + span::before,.c-input-radio input:focus + span::before{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::before,.c-input-radio input:checked + span::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}.c-input-checkbox input:checked + span::after,.c-input-radio input:checked + span::after{opacity:1;-webkit-transform:translateY(-50%) scale(1);transform:translateY(-50%) scale(1)}.c-input-checkbox input:not(:checked) + span::after,.c-input-radio input:not(:checked) + span::after{opacity:0;-webkit-transform:translateY(-50%) scale(0);transform:translateY(-50%) scale(0)}.c-input-checkbox.is-error span,.c-input-radio.is-error span{color:var(--pomegranate)}.c-input-checkbox.is-error span::before,.c-input-radio.is-error span::before{box-shadow:inset 0 0 0 .125rem var(--pomegranate);background-color:var(--yourPink)}.c-input-checkbox--noGutter span,.c-input-radio--noGutter span{padding-left:0}.c-input-radio span::before,.c-input-radio span::after{border-radius:50%}.c-input-radio span::after{content:'';background:var(--white);border:.313rem solid var(--dodgerBlue);box-sizing:border-box;width:1rem;height:1rem}.c-textarea{display:block;width:100%;min-height:7.5rem;resize:vertical}.c-textarea--tiny{min-height:3rem}.c-textarea--medium{min-height:5rem}.c-select,.c-select--tiny,.c-select--medium,.c-select--fullwidth,.wizard-select,.wizard-select--medium{padding-right:2.375rem}.c-select,.wizard-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBmaWxsPSIjOTU5OTlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyLjI4NTcxNCwgMTIuMDAwMDAwKSByb3RhdGUoOTAuMDAwMDAwKSB0cmFuc2xhdGUoLTEyLjI4NTcxNCwgLTEyLjAwMDAwMCkiPgogICAgPHBhdGggZD0iTTYuNDYwMjYwNzcsMjAuMzE3NDAzNiBDNS44NDY1Nzk3NCwyMC45MzEwODQ3IDUuODQ2NTc5NzQsMjEuOTI2MDU4MiA2LjQ2MDI2MDc3LDIyLjUzOTczOTIgQzcuMDczOTQxOCwyMy4xNTM0MjAzIDguMDY4OTE1MzQsMjMuMTUzNDIwMyA4LjY4MjU5NjM3LDIyLjUzOTczOTIgTDE4LjExMTE2NzgsMTMuMTExMTY3OCBDMTguNzI0ODQ4OCwxMi40OTc0ODY4IDE4LjcyNDg0ODgsMTEuNTAyNTEzMiAxOC4xMTExNjc4LDEwLjg4ODgzMjIgTDguNjgyNTk2MzcsMS40NjAyNjA3NyBDOC4wNjg5MTUzNCwwLjg0NjU3OTc0MyA3LjA3Mzk0MTgsMC44NDY1Nzk3NDMgNi40NjAyNjA3NywxLjQ2MDI2MDc3IEM1Ljg0NjU3OTc0LDIuMDczOTQxOCA1Ljg0NjU3OTc0LDMuMDY4OTE1MzQgNi40NjAyNjA3NywzLjY4MjU5NjM3IEwxNC43Nzc2NjQ0LDEyIEw2LjQ2MDI2MDc3LDIwLjMxNzQwMzYgWiIgLz4KICA8L2c+Cjwvc3ZnPgo=\") right 1rem center no-repeat;background-size:.875rem;text-align:left}.c-select::-ms-expand,.wizard-select::-ms-expand{display:none}.o-field{position:relative;display:flex;flex-direction:column;margin:.5rem 0 1rem}.o-field-inline{display:flex;align-items:flex-start;flex-direction:row;margin:.5rem 0 .5rem 1.5rem}@media (max-width:48rem){.o-field-inline{flex-direction:column;margin-left:0}}.c-double-field{width:100%}.c-double-field--with-button{box-sizing:border-box;position:relative;padding-right:2.5rem}.c-double-field-label{min-height:2.5rem}.c-double-field-button{position:absolute;right:-2.5rem;top:.625rem}.c-double-field-wrapper{display:inline-flex;width:100%;margin-bottom:.5rem}@media (max-width:48rem){.c-double-field-wrapper{flex-direction:column}}.c-double-field-input{box-sizing:border-box;flex:1 1 70%}.c-double-field-input + .c-double-field-input{flex:1 1 auto}[data-input=radio] label::before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked + label::before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label::before,[data-input=checkbox] label::after{border-radius:.125rem}[data-input=checkbox] label::before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label::before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");background-size:contain}[data-input=checkbox][aria-checked='mixed'] label::after{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");background-size:contain}[data-input=checkbox] input[type=checkbox]:checked + label::before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked + label::after{opacity:1;-webkit-transform:scale(1);transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked) + label::after{opacity:0;-webkit-transform:scale(0);transform:scale(0)}.wizard-wrapper{display:flex;flex-flow:column nowrap;align-items:stretch}.wizard-main{background:linear-gradient(#fff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,0.25) 0,rgba(214,216,218,0.25) 25%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 100%),linear-gradient(rgba(255,255,255,0) 0,rgba(255,255,255,0) 74%,rgba(214,216,218,0.25) 75%,rgba(214,216,218,0.25) 100%) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.wizard-header,.wizard-footer{flex:0 0 auto}.o-layout,.o-layout-2panes{box-sizing:border-box;display:flex;max-width:100%;width:100%;height:100%}.o-layout main,.o-layout-2panes main{display:flex;flex-direction:column;flex:0 0 auto}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{position:relative;display:flex;flex-direction:column;flex:1 1 auto;box-sizing:border-box;height:100%;overflow-x:hidden;overflow-y:auto}@media (max-width:63.938rem){.o-layout,.o-layout-2panes{display:block}.o-layout main,.o-layout-2panes main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.o-layout main,.o-layout-2panes main,.o-layout main > [role=contentinfo],.o-layout-2panes main > [role=contentinfo],.o-layout main > [role=main],.o-layout-2panes main > [role=main]{display:block;overflow:visible}.o-layout:before,.o-layout-2panes:before,.o-layout:after,.o-layout-2panes:after{content:'';display:block}.o-layout:before,.o-layout-2panes:before{height:3rem}.o-layout:after,.o-layout-2panes:after{height:3rem}}.o-layout-2panes{flex:0 0 100%;align-items:stretch}.o-layout-2panes > aside{display:flex;flex-direction:column;flex:0 0 auto}.o-layout-2panes main,.o-layout-2panes main > [role=contentinfo],.o-layout-2panes main > [role=main]{height:auto}@media (max-width:63.938rem){.o-layout-2panes > aside{position:fixed;bottom:0;left:0;display:block;z-index:20;width:100%}}.u-media{display:flex;align-items:center}.u-media-top{align-items:flex-start}.u-media-bottom{align-items:flex-end}.u-media-grow{flex:1 1 auto;overflow:hidden}.u-media-fixed{line-height:0;flex:0 0 auto}:root{--sidebarHeight:3rem}.o-sidebar{width:13.75rem;border-right:.063rem solid var(--dividerColor);background-color:var(--paleGrey)}@media (max-width:63.938rem){.o-sidebar{justify-content:space-between;border:0;border-top:.063rem solid var(--dividerColor);height:var(--sidebarHeight);width:100%;padding-bottom:env(safe-area-inset-bottom)}}.c-avatar{background-color:var(--paleGrey);color:var(--silver);position:relative;z-index:1}.c-avatar svg{width:50%;height:50%}.c-avatar-image{width:100%}.u-card{border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;text-decoration:none;display:block}.c-chip{box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;margin-right:.25rem;margin-bottom:.25rem;border:0}.c-chip--round{width:2.5rem;text-align:center;justify-content:center}.c-chip--tinySize{height:1.5rem;padding:0 .375rem;border-radius:.75rem;font-size:.75rem}.c-chip--smallSize{height:2rem;padding:0 .5625rem;border-radius:1rem;font-size:.875rem}.c-chip--normalSize{height:2.5rem;padding:0 .75rem;border-radius:1.25rem}.c-chip--outlinedVariant{border:1px solid}.c-chip--dashedVariant{border:1px dashed}.c-chip--normalTheme{border-color:var(--silver);background-color:var(--paleGrey);color:inherit}.c-chip--primaryTheme{border-color:var(--primaryColorLightest);background-color:var(--primaryBackgroundLight);color:var(--primaryColor)}.c-chip--errorTheme{border-color:var(--errorColorLight);background-color:var(--errorColorLightest);color:var(--errorColor)}.c-chip--hoverableNormalTheme{color:var(--charcoalGrey)}.c-chip--hoverableNormalTheme:hover,.c-chip--hoverableNormalTheme:focus{background-color:var(--silver)}.c-chip--hoverablePrimaryTheme:hover,.c-chip--hoverablePrimaryTheme:focus{background-color:var(--primaryBackgroundLight)}.c-chip--normalPrimaryTheme{background-color:var(--primaryColor);color:var(--white)}.c-chip--hoverableErrorTheme:hover,.c-chip--hoverableErrorTheme:focus{background-color:var(--errorColorLight)}.c-chip--outlinedNormalTheme{background-color:transparent}.c-chip--clickable{cursor:pointer}.c-chip-separator{width:.063rem;border-left:.063rem solid var(--dividerColor);display:inline-block;height:40%;margin-left:.5rem;margin-right:.5rem}.c-chip-button{cursor:pointer;color:var(--slateGrey)}.c-chip-button--disabled{color:var(--coolGrey)}.c-avatar{--circleSize:2.5rem;width:var(--circleSize);height:var(--circleSize);min-width:var(--circleSize);min-height:var(--circleSize);font-size:calc(var(--circleSize) / 2.28);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background-color:var(--dodgerBlue);color:var(--white)}.c-avatar--xsmall{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:calc(1rem / 2.28)}.c-avatar--small{width:2rem;height:2rem;min-width:2rem;min-height:2rem;font-size:calc(2rem / 2.28)}.c-avatar--large{width:3rem;height:3rem;min-width:3rem;min-height:3rem;font-size:calc(3rem / 2.28)}.c-avatar--xlarge{width:4rem;height:4rem;min-width:4rem;min-height:4rem;font-size:calc(4rem / 2.28)}.c-avatar-initials{font-weight:bold;line-height:1}.c-nav{margin:1.5rem 0;padding:0;list-style:none}@media (max-width:63.938rem){.c-nav{display:flex;justify-content:space-around;margin:.313rem 0 .25rem;padding-right:0}}.c-nav-item{position:relative;z-index:0;height:3rem;box-sizing:border-box;cursor:pointer}.c-nav-item:hover::before{content:'';position:absolute;z-index:-1;border-radius:0 .188rem .188rem 0;top:0;left:0;right:1rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item:hover::before{content:none}}@media (max-width:63.938rem){.c-nav-item{margin:0 .75rem;height:auto;display:block;flex:0 0 2.5rem;padding-right:0}.c-nav-item:hover::before{content:none}}.c-nav-icon{display:inline-block;margin-right:.688rem;color:var(--coolGrey);fill:currentColor}.c-nav-icon svg{display:block}.is-active .c-nav-icon{color:var(--primaryColor)}:hover > .c-nav-icon{color:var(--navTextColor)}@media (max-width:63.938rem){.c-nav-icon{display:block;margin-right:0}.c-nav-icon svg{margin:0 auto 3px;width:1.5rem;height:1.5rem}}@media (max-width:63.938rem){.c-nav-text{display:block;text-align:center;white-space:nowrap}}.c-nav-link{display:flex;box-shadow:border-box;padding-left:1.5rem;padding-right:1rem;line-height:1.5;text-decoration:none;color:var(--navTextColor);height:100%;align-items:center;flex:1;background-repeat:no-repeat;background-position:1.5rem center}.c-nav-link:visited{color:var(--navTextColor)}.c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-link.is-active{box-shadow:inset .25rem 0 0 0 var(--primaryColor);font-weight:bold;color:var(--navTextActiveColor)}.c-nav-link.is-active .c-nav-icon{color:var(--primaryColor)}@media (max-width:63.938rem){.c-nav-link{display:block;height:auto;padding:0;text-align:center;font-size:.625rem;line-height:.75rem;background-position:center top;background-size:1.5rem}.c-nav-link.is-active,.c-nav-link:hover{box-shadow:none;font-weight:normal}}@media not all and (pointer:fine){.c-nav-link:hover:not(.is-active){color:var(--navTextColor)}}.c-nav-item-secondary{height:auto}.c-nav-item-secondary + .c-nav-item-secondary{margin-top:.125rem}@media (max-width:63.938rem){.c-nav-item-secondary{display:none}}.c-nav-item-secondary:hover::before{content:'';position:absolute;z-index:-1;border-radius:.188rem 0 0 .188rem;top:0;right:0;left:3rem;bottom:0;background:rgba(0,0,0,0.1)}@media (hover:none){.c-nav-item-secondary:hover::before{content:none}}.c-nav-item-secondary .c-nav-link{padding:.5rem 1rem;margin-left:3rem;border-radius:4px 0 0 4px;box-shadow:none;font-size:.875rem;color:var(--navTextColor);text-decoration:none;height:auto}.c-nav-item-secondary .c-nav-link:hover:not(.is-active){color:var(--navTextHoverColor)}.c-nav-item-secondary .c-nav-link.is-active{color:#fff;border-right:1px solid var(--navTextColor);background-color:var(--navTextColor)}.c-table-divider{background-color:var(--paleGrey);height:2rem;display:flex;align-items:center;text-indent:2rem;font-weight:bold;font-size:.75rem;line-height:1.33;color:var(--coolGrey);text-transform:uppercase}.c-table-divider + .c-table-divider{border-top:0}@media (max-width:48rem){.c-table-divider{text-indent:1rem}}div.c-table{position:relative;display:flex;flex-direction:column;flex:1 1 100%;height:100%;text-align:left;color:var(--secondaryTextColor)}.c-table-head{flex:0 0 2rem}@media (max-width:48rem){.c-table-head{display:none}}.c-table-body{flex:1 1 auto;display:flex;flex-direction:column;overflow:auto}@media (max-width:48rem){.c-table-body{max-height:100%}}.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;flex:0 0 auto;height:3rem;width:100%;border-top:.063rem solid var(--dividerColor)}.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:var(--actionColorHover)}@media (hover:none){.c-table-row:hover,.c-table-row-head:hover,table.c-table tr:hover,table.c-table thead tr:hover{background-color:transparent}}.c-table-row:last-child,.c-table-row-head:last-child,table.c-table tr:last-child,table.c-table thead tr:last-child{border-bottom:.063rem solid var(--dividerColor)}@media (max-width:63.938rem){.c-table-row,.c-table-row-head,table.c-table tr,table.c-table thead tr{max-width:100vw}}.c-table-row-head,table.c-table thead tr{border:0}.c-table-row-head:hover,table.c-table thead tr:hover{background-color:transparent}.c-table-row-head:last-child,table.c-table thead tr:last-child{border-bottom:0}.c-table-row.is-selected,table.c-table tr.is-selected,.c-table-row.is-selected:hover,table.c-table tr.is-selected:hover{background-color:var(--zircon)}.c-table-cell,.c-table-header,table.c-table th,table.c-table td{box-sizing:border-box;padding:.875rem 1rem;font-size:.875rem;line-height:1.3}.c-table-header,table.c-table th{padding:.5rem 1rem;font-size:.75rem;font-weight:bold;text-transform:uppercase}.c-table-cell--primary,.c-table-ellipsis,table.c-table td.c-table-cell--primary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-table-cell--primary,table.c-table td.c-table-cell--primary{font-size:1rem;line-height:1.15;color:var(--charcoalGrey)}@media (max-width:48rem){.c-table-cell--primary,table.c-table td.c-table-cell--primary{flex:1 1 auto}}.c-table-divider{position:sticky;z-index:1;top:0}table.c-table{width:100%;border:0;text-align:left;color:var(--secondaryTextColor);border-collapse:collapse}table.c-table tr{display:table-row}table.c-table thead tr{display:table-row}table.c-table tr.c-table-divider{border:0;width:auto;height:auto;background-color:var(--zircon)}table.c-table tr.c-table-divider::before{content:none}table.c-table tr.c-table-divider td{font-weight:bold;color:var(--secondaryTextColor);padding:0;font-size:.75rem;line-height:1.33}table.c-table tr.c-table-divider + *{border-top:0}table.c-table td.c-table-ellipsis{position:relative}table.c-table td.c-table-ellipsis > div{box-sizing:border-box;position:absolute;top:.875rem;right:1rem;bottom:.875rem;left:1rem;display:block;width:calc(100% - rem(32))}table.c-table td.c-table-ellipsis > div > div{box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wizard{position:fixed;top:0;left:0;box-sizing:border-box;height:100%;display:flex;justify-content:center;align-items:center;width:100%;background-color:var(--white);color:var(--charcoalGrey);text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard{flex-direction:column;justify-content:flex-start}}.wizard--waiting{color:var(--white);background-color:var(--primaryColor)}.wizard--scroll{position:absolute;padding-top:3.5rem}@media (max-width:63.938rem){.wizard--scroll{box-sizing:border-box}}@media (max-width:30rem),(max-height:23.438rem){.wizard--scroll{padding-top:0}}.wizard--dual{position:static;width:100%}.wizard-wrapper{justify-content:center;width:100%;height:100%;max-width:34rem;text-align:left}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper{justify-content:flex-start}}@media (max-width:30rem),(max-height:23.438rem){.wizard-wrapper--center{justify-content:center}}.wizard-wrapper--bleed{align-items:center;max-width:100%}.wizard-wrapper--dual{display:flex;flex-direction:column;align-items:center;height:100vh}@media (max-height:38rem){.wizard-wrapper--dual{min-height:100vh;height:auto}}.wizard-dual{flex:1 1 50%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.wizard-dual:first-child{justify-content:flex-end;color:var(--white);background-color:var(--primaryColor)}.wizard-errors{order:1;margin:1rem 0 0;font-size:.875rem;line-height:1.7;font-style:italic}.wizard-errors p{margin:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-errors{margin-top:.5rem}}.wizard-header{display:flex;flex-direction:column;box-sizing:border-box;max-width:34rem;margin:1rem 0 .5rem;padding:0 1rem;position:relative}@media (max-width:30rem),(max-height:23.438rem){.wizard-header{margin:1rem 0 0}}.wizard-dual .wizard-header{margin-bottom:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-header{margin-bottom:1.5rem}}.wizard-main{display:flex;flex-direction:column;flex:0 1 auto;box-sizing:border-box;width:100%;padding:0 1rem}.wizard-main > *{flex-shrink:0}.wizard-footer{display:flex;order:2;flex-wrap:wrap;box-sizing:border-box;max-width:34rem;margin:2rem 0 1.5rem;padding:0 1rem;padding-bottom:env(safe-area-inset-bottom)}.wizard-footer > button,.wizard-footer > a:link{flex:1 1 100%;margin:0 0 .5rem;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-footer{margin:1.5rem 0 .5rem}}.wizard--welcome .wizard-footer{justify-content:space-between}@media (min-width:30.063rem){.wizard--welcome .wizard-footer > button,.wizard--welcome .wizard-footer > a:link{flex:0 1 calc(50% - 0.25rem)}}.wizard-dual .wizard-footer{margin-top:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual .wizard-footer{margin-top:1.5rem;font-size:.875rem}}.wizard-logo{position:relative;margin:0 auto;width:7.5rem}.wizard-logo-img{width:100%;vertical-align:center}.wizard-logo-badge{display:flex;align-items:center;justify-content:center;position:absolute;bottom:-.375rem;right:-.375rem;width:2rem;height:2rem;border:.125rem solid var(--white);background-color:var(--primaryColor);border-radius:50%}.wizard-header-help{order:-1;margin:0 0 .5rem;font-size:1.125rem;line-height:1.5;text-align:center}@media (max-width:30rem),(max-height:23.438rem){.wizard-header-help{margin:.25rem 0 0;font-size:1rem}}.wizard-disclaimer{display:flex;margin:1.5rem 0 .5rem;flex-direction:row;align-items:flex-start;font-size:.938rem;line-height:1.33}.wizard-disclaimer span{flex:0 0 auto;margin-right:1rem;background-color:var(--grannyApple);padding:.5rem;border-radius:50%}.wizard-disclaimer svg{display:block;fill:var(--emerald)}.wizard-disclaimer strong{color:var(--emerald)}@media (max-width:30rem),(max-height:23.438rem){.wizard-disclaimer{display:none}}.wizard-desc{margin:2rem 0 0;line-height:1.5}.wizard-desc a{color:var(--primaryColor);text-decoration:none}.wizard-desc a:hover,.wizard-desc a:focus{color:var(--primaryColorDark)}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc{margin:1.5rem 0 0}}.wizard-desc--footer{margin:2rem 0}@media (max-width:30rem),(max-height:23.438rem){.wizard-desc--footer{margin:1rem 0}}.wizard-header-fixed{position:fixed;top:.5rem;left:1rem;display:inline-flex;align-items:center}.wizard-previous{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;padding:.625rem 1rem;color:var(--coolGrey)}.wizard-brand{margin-left:2rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-brand{display:none}}.wizard-brand--invert svg{-webkit-filter:brightness(0) invert(100%);filter:brightness(0) invert(100%)}.wizard-previous + .wizard-brand{position:relative;padding-left:1.5rem;margin-left:.5rem}.wizard-previous + .wizard-brand:before{content:'';position:absolute;left:0;top:50%;height:1.5rem;border-left:.063rem solid var(--dividerColor);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.wizard-next{padding-right:3rem;padding-left:3rem}.wizard-next svg{position:absolute;right:1rem}@media (min-width:30.063rem) and (min-height:23.5rem){.wizard-button{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (min-width:30.063rem){.wizard-buttonlink{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard-input{border-radius:.125rem;padding:.5rem 1rem .625rem}}.wizard-dual-btn{position:absolute;bottom:-2.437rem;left:1rem;right:1rem;margin:0;width:calc(100% - 2rem);font-size:.875rem}@media (min-width:30.063rem){.wizard-dual-btn{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5;bottom:-2rem;font-size:1rem}}.wizard-dual-btn:hover,.wizard-dual-btn:focus{background-color:var(--emerald);border-color:var(--emerald)}.wizard-waiting-icon,.wizard-dual-icon{margin:0 0 2rem;height:6.188rem}.wizard-waiting-icon svg,.wizard-dual-icon svg{display:block;margin:0 auto;height:100%;width:100%}@media (max-width:30rem),(max-height:23.438rem){.wizard-waiting-icon,.wizard-dual-icon{margin-bottom:1rem;height:3.438rem}}.wizard-dual-icon{margin:0 0 1rem;height:7.688rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-icon{height:5.125rem}}.wizard-title,.wizard-dual-title{margin:0;text-align:center;font-size:2rem;line-height:1.25}@media (max-width:30rem),(max-height:23.438rem){.wizard-title,.wizard-dual-title{font-size:1.125rem;line-height:1.78}}.wizard-dual-title{margin-bottom:1rem;font-size:2.5rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-title{margin-bottom:.5rem;font-size:1.5rem;line-height:1.3}}.wizard-title-sub{display:block;margin-top:.5rem;opacity:.64;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-title-sub{margin:0;font-size:1rem;line-height:1.5}}.wizard-subtitle,.wizard-dual-subtitle{margin:0;text-align:center;font-size:1rem;font-weight:normal;line-height:1.5}@media (max-width:30rem),(max-height:23.438rem){.wizard-subtitle,.wizard-dual-subtitle{font-size:.875rem;line-height:1.15}}.wizard-dual-subtitle{font-size:1.25rem;line-height:1.4}@media (max-width:30rem),(max-height:23.438rem){.wizard-dual-subtitle{font-size:1rem;line-height:1.5}}@media (max-width:30rem),(max-height:23.438rem){.wizard--welcome .wizard-title{font-size:1.5rem;line-height:1.17}}.wizard-showbutton{position:absolute;right:0;top:.688rem;margin:0;border:0;padding:0;min-width:auto;background-color:transparent;color:var(--coolGrey)}.wizard-showbutton:hover,.wizard-showbutton:focus{background-color:inherit;color:var(--charcoalGrey)}.wizard-dualfield{display:flex;flex-direction:row;align-items:stretch;border:.063rem solid var(--dividerColor);border-radius:.125rem}.wizard-dualfield--focus{border-color:var(--primaryColor)}.wizard-dualfield--error{border-color:var(--errorColor)}.wizard-dualfield-wrapper{flex:1 1 auto}.wizard-dualfield-input{border:0;padding-right:.5rem}.wizard-dualfield-input:hover,.wizard-dualfield-input:focus{position:relative;z-index:1;border:0;outline:0}@media (max-width:30rem),(max-height:23.438rem){.wizard-dualfield-input{border-radius:.125rem;padding:.5rem 1rem .625rem;padding-right:.25rem}}.wizard-protocol{display:flex;align-items:center;background-color:var(--paleGrey);border-right:.063rem solid var(--dividerColor);padding:0 1rem}.wizard-protocol svg{fill:currentColor;margin-right:.5rem}.wizard-domain{display:flex;flex-direction:column;justify-content:center;flex:0 1 auto;margin-right:1rem;max-width:8.75rem}.wizard-select{flex:0 0 auto;margin:.125rem;width:9.25rem;border:0;padding:.625rem 2.375rem .625rem .5rem}.wizard-select:hover,.wizard-select:focus{position:relative;z-index:1;background-color:var(--paleGrey);border:0;outline:0}.wizard-select--medium{padding:.313rem 2.375rem .438rem .5rem}.wizard-requirements{order:2;margin-bottom:0;padding:0;list-style:disc inside;line-height:1.5;font-style:italic;color:var(--coolGrey)}.wizard-requirements span{display:inline-block;text-indent:.375rem}@media (max-width:30rem),(max-height:23.438rem){.wizard-requirements{font-size:.875rem;margin-top:.5rem}.wizard-requirements span{text-indent:.125rem}}.wizard-agreements{display:flex;flex-direction:row;margin:0 auto;padding:0;list-style:none;max-width:64.5rem}@media (max-width:63.938rem){.wizard-agreements{flex-direction:column;margin:0 auto;max-width:32rem}}.wizard-agreements-item{position:relative;overflow:hidden;display:flex;flex-direction:column;flex:1 1 calc(100% / 6 - 0.5rem);margin:1rem .25rem 0;border:.063rem solid var(--dividerColor);border-radius:.5rem;padding:1rem;color:var(--slateGrey)}@media (max-width:63.938rem){.wizard-agreements-item{flex-direction:row;flex:1 0 auto;margin:1rem 0 0;border:0;padding:0}.wizard-agreements-item:last-child p{border:0;margin:0}}.wizard-agreements-desc{min-height:2rem;font-size:.875rem;line-height:1.43}@media (max-width:63.938rem){.wizard-agreements-desc{flex:1 1 100%;border-bottom:.063rem solid var(--dividerColor);padding-bottom:1rem;font-size:1rem;line-height:1.5}}.wizard-agreements-icon{--bgcolor:var(--dodgerBlue);box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0 auto 1rem;width:3rem;height:3rem;border-radius:50%;padding:.75rem;background-color:var(--bgcolor)}.wizard-agreements-icon svg{display:block;width:100%;height:100%;fill:var(--white)}@media (max-width:63.938rem){.wizard-agreements-icon{margin:0 1.5rem 0 0;width:2rem;height:2rem;border-radius:50%;padding:.5rem}}.wizard-updated{position:absolute;right:-1.687rem;top:1.188rem;width:6.25rem;background-color:var(--primaryColor);text-transform:uppercase;color:var(--primaryContrastTextColor);-webkit-transform:rotate(-315deg);transform:rotate(-315deg);padding:.313rem;font-size:.625rem;line-height:1;font-weight:bold;text-align:center}.wizard-progress{position:relative;margin:.5rem auto 2rem;max-width:32rem;height:.375rem}.wizard-progress:before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;opacity:.24;border-radius:.188rem;background-color:var(--white)}@media (max-width:33.9375rem){.wizard-progress{margin:.5rem 1rem 1.5rem}}@media (max-height:23.4375rem){.wizard-progress{margin-bottom:1.5rem}}.wizard-progress-bar{position:relative;z-index:1;width:0;height:100%;background-color:var(--white);border-radius:.188rem;transition:width .5s ease-out}.wizard-notice{order:2;margin:2rem 0 0;line-height:1.5}.wizard-notice + .wizard-notice{margin-top:1rem}.wizard-notice p{margin:0}.wizard-notice a{color:var(--dodgerBlue);text-decoration:none;font-weight:bold}.wizard-notice a:hover,.wizard-notice a:focus{color:var(--scienceBlue)}@media (min-width:30.063rem){.wizard-notice{margin:2rem 0 0}}.wizard-notice--lost{font-size:1rem}.u-bg-black{background-color:var(--black) !important}.u-bg-charcoalGrey{background-color:var(--charcoalGrey) !important}.u-bg-coolGrey{background-color:var(--coolGrey) !important}.u-bg-silver{background-color:var(--silver) !important}.u-bg-slateGrey{background-color:var(--slateGrey) !important}.u-bg-lightishPurple{background-color:#b449e7 !important}.u-bg-dodgerBlue{background-color:#297ef2 !important}.u-bg-overlay{background-color:var(--overlay) !important}.u-bg-paleGrey{background-color:var(--paleGrey) !important}.u-bg-monza{background-color:#dd0505 !important}.u-bg-pomegranate{background-color:#f52d2d !important}.u-bg-primaryBackgroundLight{background-color:var(--primaryBackgroundLight) !important}.u-bg-primaryColor{background-color:var(--primaryColor) !important}.u-bg-primaryColorLight{background-color:var(--primaryColorLight) !important}.u-bg-primaryContrastTextColor{background-color:var(--primaryContrastTextColor) !important}.u-bg-error{background-color:var(--errorColor) !important}.u-bg-errorBackground{background-color:var(--errorBackground) !important}.u-bg-success{background-color:var(--successColor) !important}.u-bg-warning{background-color:var(--warningColor) !important}.u-bg-info{background-color:var(--infoColor) !important}.u-bg-weirdGreen{background-color:#40de8e !important}.u-bg-white{background-color:var(--white) !important}.u-bdrs-0{border-radius:0}.u-bdrs-1{border-radius:.125rem}.u-bdrs-2{border-radius:.188rem}.u-bdrs-3{border-radius:.25rem}.u-bdrs-4{border-radius:.5rem}.u-bdrs-circle{border-radius:100%}.u-bdw-0{border-width:0}.u-bdw-1{border-width:.125rem}@media (max-width:30rem){.u-bdrs-0-t{border-radius:0}.u-bdrs-1-t{border-radius:.125rem}.u-bdrs-2-t{border-radius:.188rem}.u-bdrs-3-t{border-radius:.25rem}.u-bdrs-4-t{border-radius:.5rem}.u-bdrs-circle-t{border-radius:100%}.u-bdw-0-t{border-width:0}.u-bdw-1-t{border-width:.125rem}}@media (max-width:48rem){.u-bdrs-0-s{border-radius:0}.u-bdrs-1-s{border-radius:.125rem}.u-bdrs-2-s{border-radius:.188rem}.u-bdrs-3-s{border-radius:.25rem}.u-bdrs-4-s{border-radius:.5rem}.u-bdrs-circle-s{border-radius:100%}.u-bdw-0-s{border-width:0}.u-bdw-1-s{border-width:.125rem}}@media (max-width:63.938rem){.u-bdrs-0-m{border-radius:0}.u-bdrs-1-m{border-radius:.125rem}.u-bdrs-2-m{border-radius:.188rem}.u-bdrs-3-m{border-radius:.25rem}.u-bdrs-4-m{border-radius:.5rem}.u-bdrs-circle-m{border-radius:100%}.u-bdw-0-m{border-width:0}.u-bdw-1-m{border-width:.125rem}}.u-bxz{box-sizing:border-box}.u-c-default{cursor:default}.u-c-help{cursor:help}.u-c-pointer{cursor:pointer}.u-c-wait{cursor:wait}.u-c-not-allowed{cursor:not-allowed}.u-debug{background:rgba(0,0,0,0.075);border:1px solid #f00}.u-debug .u-debug{border-color:#00f}.u-debug .u-debug .u-debug{border-color:#008000}.u-miw-1{min-width:1rem !important}.u-maw-1{max-width:1rem !important}.u-mih-1{min-height:1rem !important}.u-mah-1{max-height:1rem !important}.u-miw-2{min-width:2rem !important}.u-maw-2{max-width:2rem !important}.u-mih-2{min-height:2rem !important}.u-mah-2{max-height:2rem !important}.u-miw-3{min-width:4rem !important}.u-maw-3{max-width:4rem !important}.u-mih-3{min-height:4rem !important}.u-mah-3{max-height:4rem !important}.u-miw-4{min-width:8rem !important}.u-maw-4{max-width:8rem !important}.u-mih-4{min-height:8rem !important}.u-mah-4{max-height:8rem !important}.u-miw-5{min-width:16rem !important}.u-maw-5{max-width:16rem !important}.u-mih-5{min-height:16rem !important}.u-mah-5{max-height:16rem !important}.u-miw-6{min-width:32rem !important}.u-maw-6{max-width:32rem !important}.u-mih-6{min-height:32rem !important}.u-mah-6{max-height:32rem !important}.u-miw-7{min-width:48rem !important}.u-maw-7{max-width:48rem !important}.u-mih-7{min-height:48rem !important}.u-mah-7{max-height:48rem !important}.u-miw-8{min-width:64rem !important}.u-maw-8{max-width:64rem !important}.u-mih-8{min-height:64rem !important}.u-mah-8{max-height:64rem !important}.u-miw-9{min-width:96rem !important}.u-maw-9{max-width:96rem !important}.u-mih-9{min-height:96rem !important}.u-mah-9{max-height:96rem !important}.u-miw-100{min-width:100% !important}.u-maw-100{max-width:100% !important}.u-mih-100{min-height:100% !important}.u-mah-100{max-height:100% !important}.u-maw-none{max-width:none !important}.u-mah-none{max-height:none !important}.u-miw-auto{min-width:auto !important}.u-mih-auto{min-height:auto !important}.u-miw-half{min-width:.5rem !important}.u-maw-half{max-width:.5rem !important}.u-mih-half{min-height:.5rem !important}.u-mah-half{max-height:.5rem !important}.u-miw-1-half{min-width:1.5rem !important}.u-maw-1-half{max-width:1.5rem !important}.u-mih-1-half{min-height:1.5rem !important}.u-mah-1-half{max-height:1.5rem !important}.u-miw-2-half{min-width:2.5rem !important}.u-maw-2-half{max-width:2.5rem !important}.u-mih-2-half{min-height:2.5rem !important}.u-mah-2-half{max-height:2.5rem !important}@media (max-width:30rem){.u-miw-1-t{min-width:1rem !important}}@media (max-width:30rem){.u-maw-1-t{max-width:1rem !important}}@media (max-width:30rem){.u-mih-1-t{min-height:1rem !important}}@media (max-width:30rem){.u-mah-1-t{max-height:1rem !important}}@media (max-width:30rem){.u-miw-2-t{min-width:2rem !important}}@media (max-width:30rem){.u-maw-2-t{max-width:2rem !important}}@media (max-width:30rem){.u-mih-2-t{min-height:2rem !important}}@media (max-width:30rem){.u-mah-2-t{max-height:2rem !important}}@media (max-width:30rem){.u-miw-3-t{min-width:4rem !important}}@media (max-width:30rem){.u-maw-3-t{max-width:4rem !important}}@media (max-width:30rem){.u-mih-3-t{min-height:4rem !important}}@media (max-width:30rem){.u-mah-3-t{max-height:4rem !important}}@media (max-width:30rem){.u-miw-4-t{min-width:8rem !important}}@media (max-width:30rem){.u-maw-4-t{max-width:8rem !important}}@media (max-width:30rem){.u-mih-4-t{min-height:8rem !important}}@media (max-width:30rem){.u-mah-4-t{max-height:8rem !important}}@media (max-width:30rem){.u-miw-5-t{min-width:16rem !important}}@media (max-width:30rem){.u-maw-5-t{max-width:16rem !important}}@media (max-width:30rem){.u-mih-5-t{min-height:16rem !important}}@media (max-width:30rem){.u-mah-5-t{max-height:16rem !important}}@media (max-width:30rem){.u-miw-6-t{min-width:32rem !important}}@media (max-width:30rem){.u-maw-6-t{max-width:32rem !important}}@media (max-width:30rem){.u-mih-6-t{min-height:32rem !important}}@media (max-width:30rem){.u-mah-6-t{max-height:32rem !important}}@media (max-width:30rem){.u-miw-7-t{min-width:48rem !important}}@media (max-width:30rem){.u-maw-7-t{max-width:48rem !important}}@media (max-width:30rem){.u-mih-7-t{min-height:48rem !important}}@media (max-width:30rem){.u-mah-7-t{max-height:48rem !important}}@media (max-width:30rem){.u-miw-8-t{min-width:64rem !important}}@media (max-width:30rem){.u-maw-8-t{max-width:64rem !important}}@media (max-width:30rem){.u-mih-8-t{min-height:64rem !important}}@media (max-width:30rem){.u-mah-8-t{max-height:64rem !important}}@media (max-width:30rem){.u-miw-9-t{min-width:96rem !important}}@media (max-width:30rem){.u-maw-9-t{max-width:96rem !important}}@media (max-width:30rem){.u-mih-9-t{min-height:96rem !important}}@media (max-width:30rem){.u-mah-9-t{max-height:96rem !important}}@media (max-width:30rem){.u-miw-100-t{min-width:100% !important}}@media (max-width:30rem){.u-maw-100-t{max-width:100% !important}}@media (max-width:30rem){.u-mih-100-t{min-height:100% !important}}@media (max-width:30rem){.u-mah-100-t{max-height:100% !important}}@media (max-width:30rem){.u-maw-none-t{max-width:none !important}}@media (max-width:30rem){.u-mah-none-t{max-height:none !important}}@media (max-width:30rem){.u-miw-auto-t{min-width:auto !important}}@media (max-width:30rem){.u-mih-auto-t{min-height:auto !important}}@media (max-width:30rem){.u-miw-half-t{min-width:.5rem !important}}@media (max-width:30rem){.u-maw-half-t{max-width:.5rem !important}}@media (max-width:30rem){.u-mih-half-t{min-height:.5rem !important}}@media (max-width:30rem){.u-mah-half-t{max-height:.5rem !important}}@media (max-width:30rem){.u-miw-1-half-t{min-width:1.5rem !important}}@media (max-width:30rem){.u-maw-1-half-t{max-width:1.5rem !important}}@media (max-width:30rem){.u-mih-1-half-t{min-height:1.5rem !important}}@media (max-width:30rem){.u-mah-1-half-t{max-height:1.5rem !important}}@media (max-width:30rem){.u-miw-2-half-t{min-width:2.5rem !important}}@media (max-width:30rem){.u-maw-2-half-t{max-width:2.5rem !important}}@media (max-width:30rem){.u-mih-2-half-t{min-height:2.5rem !important}}@media (max-width:30rem){.u-mah-2-half-t{max-height:2.5rem !important}}@media (max-width:48rem){.u-miw-1-s{min-width:1rem !important}}@media (max-width:48rem){.u-maw-1-s{max-width:1rem !important}}@media (max-width:48rem){.u-mih-1-s{min-height:1rem !important}}@media (max-width:48rem){.u-mah-1-s{max-height:1rem !important}}@media (max-width:48rem){.u-miw-2-s{min-width:2rem !important}}@media (max-width:48rem){.u-maw-2-s{max-width:2rem !important}}@media (max-width:48rem){.u-mih-2-s{min-height:2rem !important}}@media (max-width:48rem){.u-mah-2-s{max-height:2rem !important}}@media (max-width:48rem){.u-miw-3-s{min-width:4rem !important}}@media (max-width:48rem){.u-maw-3-s{max-width:4rem !important}}@media (max-width:48rem){.u-mih-3-s{min-height:4rem !important}}@media (max-width:48rem){.u-mah-3-s{max-height:4rem !important}}@media (max-width:48rem){.u-miw-4-s{min-width:8rem !important}}@media (max-width:48rem){.u-maw-4-s{max-width:8rem !important}}@media (max-width:48rem){.u-mih-4-s{min-height:8rem !important}}@media (max-width:48rem){.u-mah-4-s{max-height:8rem !important}}@media (max-width:48rem){.u-miw-5-s{min-width:16rem !important}}@media (max-width:48rem){.u-maw-5-s{max-width:16rem !important}}@media (max-width:48rem){.u-mih-5-s{min-height:16rem !important}}@media (max-width:48rem){.u-mah-5-s{max-height:16rem !important}}@media (max-width:48rem){.u-miw-6-s{min-width:32rem !important}}@media (max-width:48rem){.u-maw-6-s{max-width:32rem !important}}@media (max-width:48rem){.u-mih-6-s{min-height:32rem !important}}@media (max-width:48rem){.u-mah-6-s{max-height:32rem !important}}@media (max-width:48rem){.u-miw-7-s{min-width:48rem !important}}@media (max-width:48rem){.u-maw-7-s{max-width:48rem !important}}@media (max-width:48rem){.u-mih-7-s{min-height:48rem !important}}@media (max-width:48rem){.u-mah-7-s{max-height:48rem !important}}@media (max-width:48rem){.u-miw-8-s{min-width:64rem !important}}@media (max-width:48rem){.u-maw-8-s{max-width:64rem !important}}@media (max-width:48rem){.u-mih-8-s{min-height:64rem !important}}@media (max-width:48rem){.u-mah-8-s{max-height:64rem !important}}@media (max-width:48rem){.u-miw-9-s{min-width:96rem !important}}@media (max-width:48rem){.u-maw-9-s{max-width:96rem !important}}@media (max-width:48rem){.u-mih-9-s{min-height:96rem !important}}@media (max-width:48rem){.u-mah-9-s{max-height:96rem !important}}@media (max-width:48rem){.u-miw-100-s{min-width:100% !important}}@media (max-width:48rem){.u-maw-100-s{max-width:100% !important}}@media (max-width:48rem){.u-mih-100-s{min-height:100% !important}}@media (max-width:48rem){.u-mah-100-s{max-height:100% !important}}@media (max-width:48rem){.u-maw-none-s{max-width:none !important}}@media (max-width:48rem){.u-mah-none-s{max-height:none !important}}@media (max-width:48rem){.u-miw-auto-s{min-width:auto !important}}@media (max-width:48rem){.u-mih-auto-s{min-height:auto !important}}@media (max-width:48rem){.u-miw-half-s{min-width:.5rem !important}}@media (max-width:48rem){.u-maw-half-s{max-width:.5rem !important}}@media (max-width:48rem){.u-mih-half-s{min-height:.5rem !important}}@media (max-width:48rem){.u-mah-half-s{max-height:.5rem !important}}@media (max-width:48rem){.u-miw-1-half-s{min-width:1.5rem !important}}@media (max-width:48rem){.u-maw-1-half-s{max-width:1.5rem !important}}@media (max-width:48rem){.u-mih-1-half-s{min-height:1.5rem !important}}@media (max-width:48rem){.u-mah-1-half-s{max-height:1.5rem !important}}@media (max-width:48rem){.u-miw-2-half-s{min-width:2.5rem !important}}@media (max-width:48rem){.u-maw-2-half-s{max-width:2.5rem !important}}@media (max-width:48rem){.u-mih-2-half-s{min-height:2.5rem !important}}@media (max-width:48rem){.u-mah-2-half-s{max-height:2.5rem !important}}@media (max-width:63.938rem){.u-miw-1-m{min-width:1rem !important}}@media (max-width:63.938rem){.u-maw-1-m{max-width:1rem !important}}@media (max-width:63.938rem){.u-mih-1-m{min-height:1rem !important}}@media (max-width:63.938rem){.u-mah-1-m{max-height:1rem !important}}@media (max-width:63.938rem){.u-miw-2-m{min-width:2rem !important}}@media (max-width:63.938rem){.u-maw-2-m{max-width:2rem !important}}@media (max-width:63.938rem){.u-mih-2-m{min-height:2rem !important}}@media (max-width:63.938rem){.u-mah-2-m{max-height:2rem !important}}@media (max-width:63.938rem){.u-miw-3-m{min-width:4rem !important}}@media (max-width:63.938rem){.u-maw-3-m{max-width:4rem !important}}@media (max-width:63.938rem){.u-mih-3-m{min-height:4rem !important}}@media (max-width:63.938rem){.u-mah-3-m{max-height:4rem !important}}@media (max-width:63.938rem){.u-miw-4-m{min-width:8rem !important}}@media (max-width:63.938rem){.u-maw-4-m{max-width:8rem !important}}@media (max-width:63.938rem){.u-mih-4-m{min-height:8rem !important}}@media (max-width:63.938rem){.u-mah-4-m{max-height:8rem !important}}@media (max-width:63.938rem){.u-miw-5-m{min-width:16rem !important}}@media (max-width:63.938rem){.u-maw-5-m{max-width:16rem !important}}@media (max-width:63.938rem){.u-mih-5-m{min-height:16rem !important}}@media (max-width:63.938rem){.u-mah-5-m{max-height:16rem !important}}@media (max-width:63.938rem){.u-miw-6-m{min-width:32rem !important}}@media (max-width:63.938rem){.u-maw-6-m{max-width:32rem !important}}@media (max-width:63.938rem){.u-mih-6-m{min-height:32rem !important}}@media (max-width:63.938rem){.u-mah-6-m{max-height:32rem !important}}@media (max-width:63.938rem){.u-miw-7-m{min-width:48rem !important}}@media (max-width:63.938rem){.u-maw-7-m{max-width:48rem !important}}@media (max-width:63.938rem){.u-mih-7-m{min-height:48rem !important}}@media (max-width:63.938rem){.u-mah-7-m{max-height:48rem !important}}@media (max-width:63.938rem){.u-miw-8-m{min-width:64rem !important}}@media (max-width:63.938rem){.u-maw-8-m{max-width:64rem !important}}@media (max-width:63.938rem){.u-mih-8-m{min-height:64rem !important}}@media (max-width:63.938rem){.u-mah-8-m{max-height:64rem !important}}@media (max-width:63.938rem){.u-miw-9-m{min-width:96rem !important}}@media (max-width:63.938rem){.u-maw-9-m{max-width:96rem !important}}@media (max-width:63.938rem){.u-mih-9-m{min-height:96rem !important}}@media (max-width:63.938rem){.u-mah-9-m{max-height:96rem !important}}@media (max-width:63.938rem){.u-miw-100-m{min-width:100% !important}}@media (max-width:63.938rem){.u-maw-100-m{max-width:100% !important}}@media (max-width:63.938rem){.u-mih-100-m{min-height:100% !important}}@media (max-width:63.938rem){.u-mah-100-m{max-height:100% !important}}@media (max-width:63.938rem){.u-maw-none-m{max-width:none !important}}@media (max-width:63.938rem){.u-mah-none-m{max-height:none !important}}@media (max-width:63.938rem){.u-miw-auto-m{min-width:auto !important}}@media (max-width:63.938rem){.u-mih-auto-m{min-height:auto !important}}@media (max-width:63.938rem){.u-miw-half-m{min-width:.5rem !important}}@media (max-width:63.938rem){.u-maw-half-m{max-width:.5rem !important}}@media (max-width:63.938rem){.u-mih-half-m{min-height:.5rem !important}}@media (max-width:63.938rem){.u-mah-half-m{max-height:.5rem !important}}@media (max-width:63.938rem){.u-miw-1-half-m{min-width:1.5rem !important}}@media (max-width:63.938rem){.u-maw-1-half-m{max-width:1.5rem !important}}@media (max-width:63.938rem){.u-mih-1-half-m{min-height:1.5rem !important}}@media (max-width:63.938rem){.u-mah-1-half-m{max-height:1.5rem !important}}@media (max-width:63.938rem){.u-miw-2-half-m{min-width:2.5rem !important}}@media (max-width:63.938rem){.u-maw-2-half-m{max-width:2.5rem !important}}@media (max-width:63.938rem){.u-mih-2-half-m{min-height:2.5rem !important}}@media (max-width:63.938rem){.u-mah-2-half-m{max-height:2.5rem !important}}.u-w-1{width:1rem !important}.u-h-1{height:1rem !important}.u-w-2{width:2rem !important}.u-h-2{height:2rem !important}.u-w-3{width:4rem !important}.u-h-3{height:4rem !important}.u-w-4{width:8rem !important}.u-h-4{height:8rem !important}.u-w-5{width:16rem !important}.u-h-5{height:16rem !important}.u-w-6{width:32rem !important}.u-h-6{height:32rem !important}.u-w-7{width:48rem !important}.u-h-7{height:48rem !important}.u-w-8{width:64rem !important}.u-h-8{height:64rem !important}.u-w-9{width:96rem !important}.u-h-9{height:96rem !important}.u-w-100{width:100% !important}.u-h-100{height:100% !important}.u-w-auto{width:auto !important}.u-h-auto{height:auto !important}.u-w-half{width:.5rem !important}.u-h-half{height:.5rem !important}.u-w-1-half{width:1.5rem !important}.u-h-1-half{height:1.5rem !important}.u-w-2-half{width:2.5rem !important}.u-h-2-half{height:2.5rem !important}@media (max-width:30rem){.u-w-1-t{width:1rem !important}}@media (max-width:30rem){.u-h-1-t{height:1rem !important}}@media (max-width:30rem){.u-w-2-t{width:2rem !important}}@media (max-width:30rem){.u-h-2-t{height:2rem !important}}@media (max-width:30rem){.u-w-3-t{width:4rem !important}}@media (max-width:30rem){.u-h-3-t{height:4rem !important}}@media (max-width:30rem){.u-w-4-t{width:8rem !important}}@media (max-width:30rem){.u-h-4-t{height:8rem !important}}@media (max-width:30rem){.u-w-5-t{width:16rem !important}}@media (max-width:30rem){.u-h-5-t{height:16rem !important}}@media (max-width:30rem){.u-w-6-t{width:32rem !important}}@media (max-width:30rem){.u-h-6-t{height:32rem !important}}@media (max-width:30rem){.u-w-7-t{width:48rem !important}}@media (max-width:30rem){.u-h-7-t{height:48rem !important}}@media (max-width:30rem){.u-w-8-t{width:64rem !important}}@media (max-width:30rem){.u-h-8-t{height:64rem !important}}@media (max-width:30rem){.u-w-9-t{width:96rem !important}}@media (max-width:30rem){.u-h-9-t{height:96rem !important}}@media (max-width:30rem){.u-w-100-t{width:100% !important}}@media (max-width:30rem){.u-h-100-t{height:100% !important}}@media (max-width:30rem){.u-w-auto-t{width:auto !important}}@media (max-width:30rem){.u-h-auto-t{height:auto !important}}@media (max-width:30rem){.u-w-half-t{width:.5rem !important}}@media (max-width:30rem){.u-h-half-t{height:.5rem !important}}@media (max-width:30rem){.u-w-1-half-t{width:1.5rem !important}}@media (max-width:30rem){.u-h-1-half-t{height:1.5rem !important}}@media (max-width:30rem){.u-w-2-half-t{width:2.5rem !important}}@media (max-width:30rem){.u-h-2-half-t{height:2.5rem !important}}@media (max-width:48rem){.u-w-1-s{width:1rem !important}}@media (max-width:48rem){.u-h-1-s{height:1rem !important}}@media (max-width:48rem){.u-w-2-s{width:2rem !important}}@media (max-width:48rem){.u-h-2-s{height:2rem !important}}@media (max-width:48rem){.u-w-3-s{width:4rem !important}}@media (max-width:48rem){.u-h-3-s{height:4rem !important}}@media (max-width:48rem){.u-w-4-s{width:8rem !important}}@media (max-width:48rem){.u-h-4-s{height:8rem !important}}@media (max-width:48rem){.u-w-5-s{width:16rem !important}}@media (max-width:48rem){.u-h-5-s{height:16rem !important}}@media (max-width:48rem){.u-w-6-s{width:32rem !important}}@media (max-width:48rem){.u-h-6-s{height:32rem !important}}@media (max-width:48rem){.u-w-7-s{width:48rem !important}}@media (max-width:48rem){.u-h-7-s{height:48rem !important}}@media (max-width:48rem){.u-w-8-s{width:64rem !important}}@media (max-width:48rem){.u-h-8-s{height:64rem !important}}@media (max-width:48rem){.u-w-9-s{width:96rem !important}}@media (max-width:48rem){.u-h-9-s{height:96rem !important}}@media (max-width:48rem){.u-w-100-s{width:100% !important}}@media (max-width:48rem){.u-h-100-s{height:100% !important}}@media (max-width:48rem){.u-w-auto-s{width:auto !important}}@media (max-width:48rem){.u-h-auto-s{height:auto !important}}@media (max-width:48rem){.u-w-half-s{width:.5rem !important}}@media (max-width:48rem){.u-h-half-s{height:.5rem !important}}@media (max-width:48rem){.u-w-1-half-s{width:1.5rem !important}}@media (max-width:48rem){.u-h-1-half-s{height:1.5rem !important}}@media (max-width:48rem){.u-w-2-half-s{width:2.5rem !important}}@media (max-width:48rem){.u-h-2-half-s{height:2.5rem !important}}@media (max-width:63.938rem){.u-w-1-m{width:1rem !important}}@media (max-width:63.938rem){.u-h-1-m{height:1rem !important}}@media (max-width:63.938rem){.u-w-2-m{width:2rem !important}}@media (max-width:63.938rem){.u-h-2-m{height:2rem !important}}@media (max-width:63.938rem){.u-w-3-m{width:4rem !important}}@media (max-width:63.938rem){.u-h-3-m{height:4rem !important}}@media (max-width:63.938rem){.u-w-4-m{width:8rem !important}}@media (max-width:63.938rem){.u-h-4-m{height:8rem !important}}@media (max-width:63.938rem){.u-w-5-m{width:16rem !important}}@media (max-width:63.938rem){.u-h-5-m{height:16rem !important}}@media (max-width:63.938rem){.u-w-6-m{width:32rem !important}}@media (max-width:63.938rem){.u-h-6-m{height:32rem !important}}@media (max-width:63.938rem){.u-w-7-m{width:48rem !important}}@media (max-width:63.938rem){.u-h-7-m{height:48rem !important}}@media (max-width:63.938rem){.u-w-8-m{width:64rem !important}}@media (max-width:63.938rem){.u-h-8-m{height:64rem !important}}@media (max-width:63.938rem){.u-w-9-m{width:96rem !important}}@media (max-width:63.938rem){.u-h-9-m{height:96rem !important}}@media (max-width:63.938rem){.u-w-100-m{width:100% !important}}@media (max-width:63.938rem){.u-h-100-m{height:100% !important}}@media (max-width:63.938rem){.u-w-auto-m{width:auto !important}}@media (max-width:63.938rem){.u-h-auto-m{height:auto !important}}@media (max-width:63.938rem){.u-w-half-m{width:.5rem !important}}@media (max-width:63.938rem){.u-h-half-m{height:.5rem !important}}@media (max-width:63.938rem){.u-w-1-half-m{width:1.5rem !important}}@media (max-width:63.938rem){.u-h-1-half-m{height:1.5rem !important}}@media (max-width:63.938rem){.u-w-2-half-m{width:2.5rem !important}}@media (max-width:63.938rem){.u-h-2-half-m{height:2.5rem !important}}.u-shake{-webkit-animation-name:shake;animation-name:shake;-webkit-animation-duration:820ms;animation-duration:820ms;-webkit-animation-timing-function:cubic-bezier(.36,.07,.19,.97);animation-timing-function:cubic-bezier(.36,.07,.19,.97);-webkit-animation-fill-mode:both;animation-fill-mode:both}.u-filter-gray-100{-webkit-filter:grayscale(1);filter:grayscale(1)}.u-flex{display:flex}.u-inline-flex{display:inline-flex}.u-flex-none{flex:none}.u-flex-column{flex-direction:column}.u-flex-row{flex-direction:row}.u-flex-wrap{flex-wrap:wrap}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap-reverse{flex-wrap:wrap-reverse}.u-flex-column-reverse{flex-direction:column-reverse}.u-flex-row-reverse{flex-direction:row-reverse}.u-flex-auto{flex:1 1 auto}.u-flex-items-start{align-items:flex-start}.u-flex-items-end{align-items:flex-end}.u-flex-items-center{align-items:center}.u-flex-items-baseline{align-items:baseline}.u-flex-items-stretch{align-items:stretch}.u-flex-self-start{align-self:flex-start}.u-flex-self-end{align-self:flex-end}.u-flex-self-center{align-self:center}.u-flex-self-baseline{align-self:baseline}.u-flex-self-stretch{align-self:stretch}.u-flex-justify-start{justify-content:flex-start}.u-flex-justify-end{justify-content:flex-end}.u-flex-justify-center{justify-content:center}.u-flex-justify-between{justify-content:space-between}.u-flex-justify-around{justify-content:space-around}.u-flex-content-start{align-content:flex-start}.u-flex-content-end{align-content:flex-end}.u-flex-content-center{align-content:center}.u-flex-content-between{align-content:space-between}.u-flex-content-around{align-content:space-around}.u-flex-content-stretch{align-content:stretch}.u-flex-order-0{order:0}.u-flex-order-1{order:1}.u-flex-order-2{order:2}.u-flex-order-3{order:3}.u-flex-order-4{order:4}.u-flex-order-5{order:5}.u-flex-order-6{order:6}.u-flex-order-7{order:7}.u-flex-order-8{order:8}.u-flex-order-last{order:99999}.u-flex-grow-0{flex-grow:0}.u-flex-grow-1{flex-grow:1}.u-flex-shrink-0{flex-shrink:0}.u-flex-shrink-1{flex-shrink:1}@media (max-width:30rem){.u-flex-t{display:flex}.u-inline-flex-t{display:inline-flex}.u-flex-none-t{flex:none}.u-flex-column-t{flex-direction:column}.u-flex-row-t{flex-direction:row}.u-flex-wrap-t{flex-wrap:wrap}.u-flex-nowrap-t{flex-wrap:nowrap}.u-flex-wrap-reverse-t{flex-wrap:wrap-reverse}.u-flex-column-reverse-t{flex-direction:column-reverse}.u-flex-row-reverse-t{flex-direction:row-reverse}.u-flex-auto-t{flex:1 1 auto}.u-flex-items-start-t{align-items:flex-start}.u-flex-items-end-t{align-items:flex-end}.u-flex-items-center-t{align-items:center}.u-flex-items-baseline-t{align-items:baseline}.u-flex-items-stretch-t{align-items:stretch}.u-flex-self-start-t{align-self:flex-start}.u-flex-self-end-t{align-self:flex-end}.u-flex-self-center-t{align-self:center}.u-flex-self-baseline-t{align-self:baseline}.u-flex-self-stretch-t{align-self:stretch}.u-flex-justify-start-t{justify-content:flex-start}.u-flex-justify-end-t{justify-content:flex-end}.u-flex-justify-center-t{justify-content:center}.u-flex-justify-between-t{justify-content:space-between}.u-flex-justify-around-t{justify-content:space-around}.u-flex-content-start-t{align-content:flex-start}.u-flex-content-end-t{align-content:flex-end}.u-flex-content-center-t{align-content:center}.u-flex-content-between-t{align-content:space-between}.u-flex-content-around-t{align-content:space-around}.u-flex-content-stretch-t{align-content:stretch}.u-flex-order-0-t{order:0}.u-flex-order-1-t{order:1}.u-flex-order-2-t{order:2}.u-flex-order-3-t{order:3}.u-flex-order-4-t{order:4}.u-flex-order-5-t{order:5}.u-flex-order-6-t{order:6}.u-flex-order-7-t{order:7}.u-flex-order-8-t{order:8}.u-flex-order-last-t{order:99999}.u-flex-grow-0-t{flex-grow:0}.u-flex-grow-1-t{flex-grow:1}.u-flex-shrink-0-t{flex-shrink:0}.u-flex-shrink-1-t{flex-shrink:1}}@media (max-width:48rem){.u-flex-s{display:flex}.u-inline-flex-s{display:inline-flex}.u-flex-none-s{flex:none}.u-flex-column-s{flex-direction:column}.u-flex-row-s{flex-direction:row}.u-flex-wrap-s{flex-wrap:wrap}.u-flex-nowrap-s{flex-wrap:nowrap}.u-flex-wrap-reverse-s{flex-wrap:wrap-reverse}.u-flex-column-reverse-s{flex-direction:column-reverse}.u-flex-row-reverse-s{flex-direction:row-reverse}.u-flex-auto-s{flex:1 1 auto}.u-flex-items-start-s{align-items:flex-start}.u-flex-items-end-s{align-items:flex-end}.u-flex-items-center-s{align-items:center}.u-flex-items-baseline-s{align-items:baseline}.u-flex-items-stretch-s{align-items:stretch}.u-flex-self-start-s{align-self:flex-start}.u-flex-self-end-s{align-self:flex-end}.u-flex-self-center-s{align-self:center}.u-flex-self-baseline-s{align-self:baseline}.u-flex-self-stretch-s{align-self:stretch}.u-flex-justify-start-s{justify-content:flex-start}.u-flex-justify-end-s{justify-content:flex-end}.u-flex-justify-center-s{justify-content:center}.u-flex-justify-between-s{justify-content:space-between}.u-flex-justify-around-s{justify-content:space-around}.u-flex-content-start-s{align-content:flex-start}.u-flex-content-end-s{align-content:flex-end}.u-flex-content-center-s{align-content:center}.u-flex-content-between-s{align-content:space-between}.u-flex-content-around-s{align-content:space-around}.u-flex-content-stretch-s{align-content:stretch}.u-flex-order-0-s{order:0}.u-flex-order-1-s{order:1}.u-flex-order-2-s{order:2}.u-flex-order-3-s{order:3}.u-flex-order-4-s{order:4}.u-flex-order-5-s{order:5}.u-flex-order-6-s{order:6}.u-flex-order-7-s{order:7}.u-flex-order-8-s{order:8}.u-flex-order-last-s{order:99999}.u-flex-grow-0-s{flex-grow:0}.u-flex-grow-1-s{flex-grow:1}.u-flex-shrink-0-s{flex-shrink:0}.u-flex-shrink-1-s{flex-shrink:1}}@media (max-width:63.938rem){.u-flex-m{display:flex}.u-inline-flex-m{display:inline-flex}.u-flex-none-m{flex:none}.u-flex-column-m{flex-direction:column}.u-flex-row-m{flex-direction:row}.u-flex-wrap-m{flex-wrap:wrap}.u-flex-nowrap-m{flex-wrap:nowrap}.u-flex-wrap-reverse-m{flex-wrap:wrap-reverse}.u-flex-column-reverse-m{flex-direction:column-reverse}.u-flex-row-reverse-m{flex-direction:row-reverse}.u-flex-auto-m{flex:1 1 auto}.u-flex-items-start-m{align-items:flex-start}.u-flex-items-end-m{align-items:flex-end}.u-flex-items-center-m{align-items:center}.u-flex-items-baseline-m{align-items:baseline}.u-flex-items-stretch-m{align-items:stretch}.u-flex-self-start-m{align-self:flex-start}.u-flex-self-end-m{align-self:flex-end}.u-flex-self-center-m{align-self:center}.u-flex-self-baseline-m{align-self:baseline}.u-flex-self-stretch-m{align-self:stretch}.u-flex-justify-start-m{justify-content:flex-start}.u-flex-justify-end-m{justify-content:flex-end}.u-flex-justify-center-m{justify-content:center}.u-flex-justify-between-m{justify-content:space-between}.u-flex-justify-around-m{justify-content:space-around}.u-flex-content-start-m{align-content:flex-start}.u-flex-content-end-m{align-content:flex-end}.u-flex-content-center-m{align-content:center}.u-flex-content-between-m{align-content:space-between}.u-flex-content-around-m{align-content:space-around}.u-flex-content-stretch-m{align-content:stretch}.u-flex-order-0-m{order:0}.u-flex-order-1-m{order:1}.u-flex-order-2-m{order:2}.u-flex-order-3-m{order:3}.u-flex-order-4-m{order:4}.u-flex-order-5-m{order:5}.u-flex-order-6-m{order:6}.u-flex-order-7-m{order:7}.u-flex-order-8-m{order:8}.u-flex-order-last-m{order:99999}.u-flex-grow-0-m{flex-grow:0}.u-flex-grow-1-m{flex-grow:1}.u-flex-shrink-0-m{flex-shrink:0}.u-flex-shrink-1-m{flex-shrink:1}}.u-nolist{list-style-type:none}@media (max-width:30rem){.u-nolist-t{list-style-type:none}}@media (max-width:48rem){.u-nolist-s{list-style-type:none}}@media (max-width:63.938rem){.u-nolist-m{list-style-type:none}}.u-o-100{opacity:1}.u-o-90{opacity:.9}.u-o-80{opacity:.8}.u-o-70{opacity:.7}.u-o-60{opacity:.6}.u-o-50{opacity:.5}.u-o-40{opacity:.4}.u-o-30{opacity:.3}.u-o-20{opacity:.2}.u-o-10{opacity:.1}.u-o-05{opacity:.05}.u-o-025{opacity:.025}.u-o-0{opacity:0}.u-ov-visible{overflow:visible}.u-ov-hidden{overflow:hidden}.u-ov-scroll{overflow:scroll}.u-ov-auto{overflow:auto}.u-p-0{padding:0 !important}.u-pt-0{padding-top:0 !important}.u-pb-0{padding-bottom:0 !important}.u-pl-0{padding-left:0 !important}.u-pr-0{padding-right:0 !important}.u-pv-0{padding-top:0 !important;padding-bottom:0 !important}.u-ph-0{padding-left:0 !important;padding-right:0 !important}.u-p-1{padding:1rem !important}.u-pt-1{padding-top:1rem !important}.u-pb-1{padding-bottom:1rem !important}.u-pl-1{padding-left:1rem !important}.u-pr-1{padding-right:1rem !important}.u-pv-1{padding-top:1rem !important;padding-bottom:1rem !important}.u-ph-1{padding-left:1rem !important;padding-right:1rem !important}.u-p-2{padding:2rem !important}.u-pt-2{padding-top:2rem !important}.u-pb-2{padding-bottom:2rem !important}.u-pl-2{padding-left:2rem !important}.u-pr-2{padding-right:2rem !important}.u-pv-2{padding-top:2rem !important;padding-bottom:2rem !important}.u-ph-2{padding-left:2rem !important;padding-right:2rem !important}.u-p-3{padding:3rem !important}.u-pt-3{padding-top:3rem !important}.u-pb-3{padding-bottom:3rem !important}.u-pl-3{padding-left:3rem !important}.u-pr-3{padding-right:3rem !important}.u-pv-3{padding-top:3rem !important;padding-bottom:3rem !important}.u-ph-3{padding-left:3rem !important;padding-right:3rem !important}.u-p-auto{padding:auto !important}.u-pt-auto{padding-top:auto !important}.u-pb-auto{padding-bottom:auto !important}.u-pl-auto{padding-left:auto !important}.u-pr-auto{padding-right:auto !important}.u-pv-auto{padding-top:auto !important;padding-bottom:auto !important}.u-ph-auto{padding-left:auto !important;padding-right:auto !important}.u-p-half{padding:.5rem !important}.u-pt-half{padding-top:.5rem !important}.u-pb-half{padding-bottom:.5rem !important}.u-pl-half{padding-left:.5rem !important}.u-pr-half{padding-right:.5rem !important}.u-pv-half{padding-top:.5rem !important;padding-bottom:.5rem !important}.u-ph-half{padding-left:.5rem !important;padding-right:.5rem !important}.u-p-1-half{padding:1.5rem !important}.u-pt-1-half{padding-top:1.5rem !important}.u-pb-1-half{padding-bottom:1.5rem !important}.u-pl-1-half{padding-left:1.5rem !important}.u-pr-1-half{padding-right:1.5rem !important}.u-pv-1-half{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.u-ph-1-half{padding-left:1.5rem !important;padding-right:1.5rem !important}.u-p-2-half{padding:2.5rem !important}.u-pt-2-half{padding-top:2.5rem !important}.u-pb-2-half{padding-bottom:2.5rem !important}.u-pl-2-half{padding-left:2.5rem !important}.u-pr-2-half{padding-right:2.5rem !important}.u-pv-2-half{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.u-ph-2-half{padding-left:2.5rem !important;padding-right:2.5rem !important}.u-m-0{margin:0 !important}.u-mt-0{margin-top:0 !important}.u-mb-0{margin-bottom:0 !important}.u-ml-0{margin-left:0 !important}.u-mr-0{margin-right:0 !important}.u-mv-0{margin-top:0 !important;margin-bottom:0 !important}.u-mh-0{margin-left:0 !important;margin-right:0 !important}.u-m-1{margin:1rem !important}.u-mt-1{margin-top:1rem !important}.u-mb-1{margin-bottom:1rem !important}.u-ml-1{margin-left:1rem !important}.u-mr-1{margin-right:1rem !important}.u-mv-1{margin-top:1rem !important;margin-bottom:1rem !important}.u-mh-1{margin-left:1rem !important;margin-right:1rem !important}.u-m-2{margin:2rem !important}.u-mt-2{margin-top:2rem !important}.u-mb-2{margin-bottom:2rem !important}.u-ml-2{margin-left:2rem !important}.u-mr-2{margin-right:2rem !important}.u-mv-2{margin-top:2rem !important;margin-bottom:2rem !important}.u-mh-2{margin-left:2rem !important;margin-right:2rem !important}.u-m-3{margin:3rem !important}.u-mt-3{margin-top:3rem !important}.u-mb-3{margin-bottom:3rem !important}.u-ml-3{margin-left:3rem !important}.u-mr-3{margin-right:3rem !important}.u-mv-3{margin-top:3rem !important;margin-bottom:3rem !important}.u-mh-3{margin-left:3rem !important;margin-right:3rem !important}.u-m-auto{margin:auto !important}.u-mt-auto{margin-top:auto !important}.u-mb-auto{margin-bottom:auto !important}.u-ml-auto{margin-left:auto !important}.u-mr-auto{margin-right:auto !important}.u-mv-auto{margin-top:auto !important;margin-bottom:auto !important}.u-mh-auto{margin-left:auto !important;margin-right:auto !important}.u-m-half{margin:.5rem !important}.u-mt-half{margin-top:.5rem !important}.u-mb-half{margin-bottom:.5rem !important}.u-ml-half{margin-left:.5rem !important}.u-mr-half{margin-right:.5rem !important}.u-mv-half{margin-top:.5rem !important;margin-bottom:.5rem !important}.u-mh-half{margin-left:.5rem !important;margin-right:.5rem !important}.u-m-1-half{margin:1.5rem !important}.u-mt-1-half{margin-top:1.5rem !important}.u-mb-1-half{margin-bottom:1.5rem !important}.u-ml-1-half{margin-left:1.5rem !important}.u-mr-1-half{margin-right:1.5rem !important}.u-mv-1-half{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.u-mh-1-half{margin-left:1.5rem !important;margin-right:1.5rem !important}.u-m-2-half{margin:2.5rem !important}.u-mt-2-half{margin-top:2.5rem !important}.u-mb-2-half{margin-bottom:2.5rem !important}.u-ml-2-half{margin-left:2.5rem !important}.u-mr-2-half{margin-right:2.5rem !important}.u-mv-2-half{margin-top:2.5rem !important;margin-bottom:2.5rem !important}.u-mh-2-half{margin-left:2.5rem !important;margin-right:2.5rem !important}@media (max-width:30rem){.u-p-0-t{padding:0 !important}}@media (max-width:30rem){.u-pt-0-t{padding-top:0 !important}}@media (max-width:30rem){.u-pb-0-t{padding-bottom:0 !important}}@media (max-width:30rem){.u-pl-0-t{padding-left:0 !important}}@media (max-width:30rem){.u-pr-0-t{padding-right:0 !important}}@media (max-width:30rem){.u-pv-0-t{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:30rem){.u-ph-0-t{padding-left:0 !important;padding-right:0 !important}}@media (max-width:30rem){.u-p-1-t{padding:1rem !important}}@media (max-width:30rem){.u-pt-1-t{padding-top:1rem !important}}@media (max-width:30rem){.u-pb-1-t{padding-bottom:1rem !important}}@media (max-width:30rem){.u-pl-1-t{padding-left:1rem !important}}@media (max-width:30rem){.u-pr-1-t{padding-right:1rem !important}}@media (max-width:30rem){.u-pv-1-t{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:30rem){.u-ph-1-t{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:30rem){.u-p-2-t{padding:2rem !important}}@media (max-width:30rem){.u-pt-2-t{padding-top:2rem !important}}@media (max-width:30rem){.u-pb-2-t{padding-bottom:2rem !important}}@media (max-width:30rem){.u-pl-2-t{padding-left:2rem !important}}@media (max-width:30rem){.u-pr-2-t{padding-right:2rem !important}}@media (max-width:30rem){.u-pv-2-t{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:30rem){.u-ph-2-t{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:30rem){.u-p-3-t{padding:3rem !important}}@media (max-width:30rem){.u-pt-3-t{padding-top:3rem !important}}@media (max-width:30rem){.u-pb-3-t{padding-bottom:3rem !important}}@media (max-width:30rem){.u-pl-3-t{padding-left:3rem !important}}@media (max-width:30rem){.u-pr-3-t{padding-right:3rem !important}}@media (max-width:30rem){.u-pv-3-t{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:30rem){.u-ph-3-t{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:30rem){.u-p-auto-t{padding:auto !important}}@media (max-width:30rem){.u-pt-auto-t{padding-top:auto !important}}@media (max-width:30rem){.u-pb-auto-t{padding-bottom:auto !important}}@media (max-width:30rem){.u-pl-auto-t{padding-left:auto !important}}@media (max-width:30rem){.u-pr-auto-t{padding-right:auto !important}}@media (max-width:30rem){.u-pv-auto-t{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:30rem){.u-ph-auto-t{padding-left:auto !important;padding-right:auto !important}}@media (max-width:30rem){.u-p-half-t{padding:.5rem !important}}@media (max-width:30rem){.u-pt-half-t{padding-top:.5rem !important}}@media (max-width:30rem){.u-pb-half-t{padding-bottom:.5rem !important}}@media (max-width:30rem){.u-pl-half-t{padding-left:.5rem !important}}@media (max-width:30rem){.u-pr-half-t{padding-right:.5rem !important}}@media (max-width:30rem){.u-pv-half-t{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:30rem){.u-ph-half-t{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:30rem){.u-p-1-half-t{padding:1.5rem !important}}@media (max-width:30rem){.u-pt-1-half-t{padding-top:1.5rem !important}}@media (max-width:30rem){.u-pb-1-half-t{padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-pl-1-half-t{padding-left:1.5rem !important}}@media (max-width:30rem){.u-pr-1-half-t{padding-right:1.5rem !important}}@media (max-width:30rem){.u-pv-1-half-t{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:30rem){.u-ph-1-half-t{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:30rem){.u-p-2-half-t{padding:2.5rem !important}}@media (max-width:30rem){.u-pt-2-half-t{padding-top:2.5rem !important}}@media (max-width:30rem){.u-pb-2-half-t{padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-pl-2-half-t{padding-left:2.5rem !important}}@media (max-width:30rem){.u-pr-2-half-t{padding-right:2.5rem !important}}@media (max-width:30rem){.u-pv-2-half-t{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:30rem){.u-ph-2-half-t{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:30rem){.u-m-0-t{margin:0 !important}}@media (max-width:30rem){.u-mt-0-t{margin-top:0 !important}}@media (max-width:30rem){.u-mb-0-t{margin-bottom:0 !important}}@media (max-width:30rem){.u-ml-0-t{margin-left:0 !important}}@media (max-width:30rem){.u-mr-0-t{margin-right:0 !important}}@media (max-width:30rem){.u-mv-0-t{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:30rem){.u-mh-0-t{margin-left:0 !important;margin-right:0 !important}}@media (max-width:30rem){.u-m-1-t{margin:1rem !important}}@media (max-width:30rem){.u-mt-1-t{margin-top:1rem !important}}@media (max-width:30rem){.u-mb-1-t{margin-bottom:1rem !important}}@media (max-width:30rem){.u-ml-1-t{margin-left:1rem !important}}@media (max-width:30rem){.u-mr-1-t{margin-right:1rem !important}}@media (max-width:30rem){.u-mv-1-t{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:30rem){.u-mh-1-t{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:30rem){.u-m-2-t{margin:2rem !important}}@media (max-width:30rem){.u-mt-2-t{margin-top:2rem !important}}@media (max-width:30rem){.u-mb-2-t{margin-bottom:2rem !important}}@media (max-width:30rem){.u-ml-2-t{margin-left:2rem !important}}@media (max-width:30rem){.u-mr-2-t{margin-right:2rem !important}}@media (max-width:30rem){.u-mv-2-t{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:30rem){.u-mh-2-t{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:30rem){.u-m-3-t{margin:3rem !important}}@media (max-width:30rem){.u-mt-3-t{margin-top:3rem !important}}@media (max-width:30rem){.u-mb-3-t{margin-bottom:3rem !important}}@media (max-width:30rem){.u-ml-3-t{margin-left:3rem !important}}@media (max-width:30rem){.u-mr-3-t{margin-right:3rem !important}}@media (max-width:30rem){.u-mv-3-t{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:30rem){.u-mh-3-t{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:30rem){.u-m-auto-t{margin:auto !important}}@media (max-width:30rem){.u-mt-auto-t{margin-top:auto !important}}@media (max-width:30rem){.u-mb-auto-t{margin-bottom:auto !important}}@media (max-width:30rem){.u-ml-auto-t{margin-left:auto !important}}@media (max-width:30rem){.u-mr-auto-t{margin-right:auto !important}}@media (max-width:30rem){.u-mv-auto-t{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:30rem){.u-mh-auto-t{margin-left:auto !important;margin-right:auto !important}}@media (max-width:30rem){.u-m-half-t{margin:.5rem !important}}@media (max-width:30rem){.u-mt-half-t{margin-top:.5rem !important}}@media (max-width:30rem){.u-mb-half-t{margin-bottom:.5rem !important}}@media (max-width:30rem){.u-ml-half-t{margin-left:.5rem !important}}@media (max-width:30rem){.u-mr-half-t{margin-right:.5rem !important}}@media (max-width:30rem){.u-mv-half-t{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:30rem){.u-mh-half-t{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:30rem){.u-m-1-half-t{margin:1.5rem !important}}@media (max-width:30rem){.u-mt-1-half-t{margin-top:1.5rem !important}}@media (max-width:30rem){.u-mb-1-half-t{margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-ml-1-half-t{margin-left:1.5rem !important}}@media (max-width:30rem){.u-mr-1-half-t{margin-right:1.5rem !important}}@media (max-width:30rem){.u-mv-1-half-t{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:30rem){.u-mh-1-half-t{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:30rem){.u-m-2-half-t{margin:2.5rem !important}}@media (max-width:30rem){.u-mt-2-half-t{margin-top:2.5rem !important}}@media (max-width:30rem){.u-mb-2-half-t{margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-ml-2-half-t{margin-left:2.5rem !important}}@media (max-width:30rem){.u-mr-2-half-t{margin-right:2.5rem !important}}@media (max-width:30rem){.u-mv-2-half-t{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:30rem){.u-mh-2-half-t{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:48rem){.u-p-0-s{padding:0 !important}}@media (max-width:48rem){.u-pt-0-s{padding-top:0 !important}}@media (max-width:48rem){.u-pb-0-s{padding-bottom:0 !important}}@media (max-width:48rem){.u-pl-0-s{padding-left:0 !important}}@media (max-width:48rem){.u-pr-0-s{padding-right:0 !important}}@media (max-width:48rem){.u-pv-0-s{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:48rem){.u-ph-0-s{padding-left:0 !important;padding-right:0 !important}}@media (max-width:48rem){.u-p-1-s{padding:1rem !important}}@media (max-width:48rem){.u-pt-1-s{padding-top:1rem !important}}@media (max-width:48rem){.u-pb-1-s{padding-bottom:1rem !important}}@media (max-width:48rem){.u-pl-1-s{padding-left:1rem !important}}@media (max-width:48rem){.u-pr-1-s{padding-right:1rem !important}}@media (max-width:48rem){.u-pv-1-s{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:48rem){.u-ph-1-s{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:48rem){.u-p-2-s{padding:2rem !important}}@media (max-width:48rem){.u-pt-2-s{padding-top:2rem !important}}@media (max-width:48rem){.u-pb-2-s{padding-bottom:2rem !important}}@media (max-width:48rem){.u-pl-2-s{padding-left:2rem !important}}@media (max-width:48rem){.u-pr-2-s{padding-right:2rem !important}}@media (max-width:48rem){.u-pv-2-s{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:48rem){.u-ph-2-s{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:48rem){.u-p-3-s{padding:3rem !important}}@media (max-width:48rem){.u-pt-3-s{padding-top:3rem !important}}@media (max-width:48rem){.u-pb-3-s{padding-bottom:3rem !important}}@media (max-width:48rem){.u-pl-3-s{padding-left:3rem !important}}@media (max-width:48rem){.u-pr-3-s{padding-right:3rem !important}}@media (max-width:48rem){.u-pv-3-s{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:48rem){.u-ph-3-s{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:48rem){.u-p-auto-s{padding:auto !important}}@media (max-width:48rem){.u-pt-auto-s{padding-top:auto !important}}@media (max-width:48rem){.u-pb-auto-s{padding-bottom:auto !important}}@media (max-width:48rem){.u-pl-auto-s{padding-left:auto !important}}@media (max-width:48rem){.u-pr-auto-s{padding-right:auto !important}}@media (max-width:48rem){.u-pv-auto-s{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:48rem){.u-ph-auto-s{padding-left:auto !important;padding-right:auto !important}}@media (max-width:48rem){.u-p-half-s{padding:.5rem !important}}@media (max-width:48rem){.u-pt-half-s{padding-top:.5rem !important}}@media (max-width:48rem){.u-pb-half-s{padding-bottom:.5rem !important}}@media (max-width:48rem){.u-pl-half-s{padding-left:.5rem !important}}@media (max-width:48rem){.u-pr-half-s{padding-right:.5rem !important}}@media (max-width:48rem){.u-pv-half-s{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:48rem){.u-ph-half-s{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:48rem){.u-p-1-half-s{padding:1.5rem !important}}@media (max-width:48rem){.u-pt-1-half-s{padding-top:1.5rem !important}}@media (max-width:48rem){.u-pb-1-half-s{padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-pl-1-half-s{padding-left:1.5rem !important}}@media (max-width:48rem){.u-pr-1-half-s{padding-right:1.5rem !important}}@media (max-width:48rem){.u-pv-1-half-s{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:48rem){.u-ph-1-half-s{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:48rem){.u-p-2-half-s{padding:2.5rem !important}}@media (max-width:48rem){.u-pt-2-half-s{padding-top:2.5rem !important}}@media (max-width:48rem){.u-pb-2-half-s{padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-pl-2-half-s{padding-left:2.5rem !important}}@media (max-width:48rem){.u-pr-2-half-s{padding-right:2.5rem !important}}@media (max-width:48rem){.u-pv-2-half-s{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:48rem){.u-ph-2-half-s{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:48rem){.u-m-0-s{margin:0 !important}}@media (max-width:48rem){.u-mt-0-s{margin-top:0 !important}}@media (max-width:48rem){.u-mb-0-s{margin-bottom:0 !important}}@media (max-width:48rem){.u-ml-0-s{margin-left:0 !important}}@media (max-width:48rem){.u-mr-0-s{margin-right:0 !important}}@media (max-width:48rem){.u-mv-0-s{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:48rem){.u-mh-0-s{margin-left:0 !important;margin-right:0 !important}}@media (max-width:48rem){.u-m-1-s{margin:1rem !important}}@media (max-width:48rem){.u-mt-1-s{margin-top:1rem !important}}@media (max-width:48rem){.u-mb-1-s{margin-bottom:1rem !important}}@media (max-width:48rem){.u-ml-1-s{margin-left:1rem !important}}@media (max-width:48rem){.u-mr-1-s{margin-right:1rem !important}}@media (max-width:48rem){.u-mv-1-s{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:48rem){.u-mh-1-s{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:48rem){.u-m-2-s{margin:2rem !important}}@media (max-width:48rem){.u-mt-2-s{margin-top:2rem !important}}@media (max-width:48rem){.u-mb-2-s{margin-bottom:2rem !important}}@media (max-width:48rem){.u-ml-2-s{margin-left:2rem !important}}@media (max-width:48rem){.u-mr-2-s{margin-right:2rem !important}}@media (max-width:48rem){.u-mv-2-s{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:48rem){.u-mh-2-s{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:48rem){.u-m-3-s{margin:3rem !important}}@media (max-width:48rem){.u-mt-3-s{margin-top:3rem !important}}@media (max-width:48rem){.u-mb-3-s{margin-bottom:3rem !important}}@media (max-width:48rem){.u-ml-3-s{margin-left:3rem !important}}@media (max-width:48rem){.u-mr-3-s{margin-right:3rem !important}}@media (max-width:48rem){.u-mv-3-s{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:48rem){.u-mh-3-s{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:48rem){.u-m-auto-s{margin:auto !important}}@media (max-width:48rem){.u-mt-auto-s{margin-top:auto !important}}@media (max-width:48rem){.u-mb-auto-s{margin-bottom:auto !important}}@media (max-width:48rem){.u-ml-auto-s{margin-left:auto !important}}@media (max-width:48rem){.u-mr-auto-s{margin-right:auto !important}}@media (max-width:48rem){.u-mv-auto-s{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:48rem){.u-mh-auto-s{margin-left:auto !important;margin-right:auto !important}}@media (max-width:48rem){.u-m-half-s{margin:.5rem !important}}@media (max-width:48rem){.u-mt-half-s{margin-top:.5rem !important}}@media (max-width:48rem){.u-mb-half-s{margin-bottom:.5rem !important}}@media (max-width:48rem){.u-ml-half-s{margin-left:.5rem !important}}@media (max-width:48rem){.u-mr-half-s{margin-right:.5rem !important}}@media (max-width:48rem){.u-mv-half-s{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:48rem){.u-mh-half-s{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:48rem){.u-m-1-half-s{margin:1.5rem !important}}@media (max-width:48rem){.u-mt-1-half-s{margin-top:1.5rem !important}}@media (max-width:48rem){.u-mb-1-half-s{margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-ml-1-half-s{margin-left:1.5rem !important}}@media (max-width:48rem){.u-mr-1-half-s{margin-right:1.5rem !important}}@media (max-width:48rem){.u-mv-1-half-s{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:48rem){.u-mh-1-half-s{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:48rem){.u-m-2-half-s{margin:2.5rem !important}}@media (max-width:48rem){.u-mt-2-half-s{margin-top:2.5rem !important}}@media (max-width:48rem){.u-mb-2-half-s{margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-ml-2-half-s{margin-left:2.5rem !important}}@media (max-width:48rem){.u-mr-2-half-s{margin-right:2.5rem !important}}@media (max-width:48rem){.u-mv-2-half-s{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:48rem){.u-mh-2-half-s{margin-left:2.5rem !important;margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-p-0-m{padding:0 !important}}@media (max-width:63.938rem){.u-pt-0-m{padding-top:0 !important}}@media (max-width:63.938rem){.u-pb-0-m{padding-bottom:0 !important}}@media (max-width:63.938rem){.u-pl-0-m{padding-left:0 !important}}@media (max-width:63.938rem){.u-pr-0-m{padding-right:0 !important}}@media (max-width:63.938rem){.u-pv-0-m{padding-top:0 !important;padding-bottom:0 !important}}@media (max-width:63.938rem){.u-ph-0-m{padding-left:0 !important;padding-right:0 !important}}@media (max-width:63.938rem){.u-p-1-m{padding:1rem !important}}@media (max-width:63.938rem){.u-pt-1-m{padding-top:1rem !important}}@media (max-width:63.938rem){.u-pb-1-m{padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-pl-1-m{padding-left:1rem !important}}@media (max-width:63.938rem){.u-pr-1-m{padding-right:1rem !important}}@media (max-width:63.938rem){.u-pv-1-m{padding-top:1rem !important;padding-bottom:1rem !important}}@media (max-width:63.938rem){.u-ph-1-m{padding-left:1rem !important;padding-right:1rem !important}}@media (max-width:63.938rem){.u-p-2-m{padding:2rem !important}}@media (max-width:63.938rem){.u-pt-2-m{padding-top:2rem !important}}@media (max-width:63.938rem){.u-pb-2-m{padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-pl-2-m{padding-left:2rem !important}}@media (max-width:63.938rem){.u-pr-2-m{padding-right:2rem !important}}@media (max-width:63.938rem){.u-pv-2-m{padding-top:2rem !important;padding-bottom:2rem !important}}@media (max-width:63.938rem){.u-ph-2-m{padding-left:2rem !important;padding-right:2rem !important}}@media (max-width:63.938rem){.u-p-3-m{padding:3rem !important}}@media (max-width:63.938rem){.u-pt-3-m{padding-top:3rem !important}}@media (max-width:63.938rem){.u-pb-3-m{padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-pl-3-m{padding-left:3rem !important}}@media (max-width:63.938rem){.u-pr-3-m{padding-right:3rem !important}}@media (max-width:63.938rem){.u-pv-3-m{padding-top:3rem !important;padding-bottom:3rem !important}}@media (max-width:63.938rem){.u-ph-3-m{padding-left:3rem !important;padding-right:3rem !important}}@media (max-width:63.938rem){.u-p-auto-m{padding:auto !important}}@media (max-width:63.938rem){.u-pt-auto-m{padding-top:auto !important}}@media (max-width:63.938rem){.u-pb-auto-m{padding-bottom:auto !important}}@media (max-width:63.938rem){.u-pl-auto-m{padding-left:auto !important}}@media (max-width:63.938rem){.u-pr-auto-m{padding-right:auto !important}}@media (max-width:63.938rem){.u-pv-auto-m{padding-top:auto !important;padding-bottom:auto !important}}@media (max-width:63.938rem){.u-ph-auto-m{padding-left:auto !important;padding-right:auto !important}}@media (max-width:63.938rem){.u-p-half-m{padding:.5rem !important}}@media (max-width:63.938rem){.u-pt-half-m{padding-top:.5rem !important}}@media (max-width:63.938rem){.u-pb-half-m{padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-pl-half-m{padding-left:.5rem !important}}@media (max-width:63.938rem){.u-pr-half-m{padding-right:.5rem !important}}@media (max-width:63.938rem){.u-pv-half-m{padding-top:.5rem !important;padding-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ph-half-m{padding-left:.5rem !important;padding-right:.5rem !important}}@media (max-width:63.938rem){.u-p-1-half-m{padding:1.5rem !important}}@media (max-width:63.938rem){.u-pt-1-half-m{padding-top:1.5rem !important}}@media (max-width:63.938rem){.u-pb-1-half-m{padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-pl-1-half-m{padding-left:1.5rem !important}}@media (max-width:63.938rem){.u-pr-1-half-m{padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-pv-1-half-m{padding-top:1.5rem !important;padding-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ph-1-half-m{padding-left:1.5rem !important;padding-right:1.5rem !important}}@media (max-width:63.938rem){.u-p-2-half-m{padding:2.5rem !important}}@media (max-width:63.938rem){.u-pt-2-half-m{padding-top:2.5rem !important}}@media (max-width:63.938rem){.u-pb-2-half-m{padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-pl-2-half-m{padding-left:2.5rem !important}}@media (max-width:63.938rem){.u-pr-2-half-m{padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-pv-2-half-m{padding-top:2.5rem !important;padding-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ph-2-half-m{padding-left:2.5rem !important;padding-right:2.5rem !important}}@media (max-width:63.938rem){.u-m-0-m{margin:0 !important}}@media (max-width:63.938rem){.u-mt-0-m{margin-top:0 !important}}@media (max-width:63.938rem){.u-mb-0-m{margin-bottom:0 !important}}@media (max-width:63.938rem){.u-ml-0-m{margin-left:0 !important}}@media (max-width:63.938rem){.u-mr-0-m{margin-right:0 !important}}@media (max-width:63.938rem){.u-mv-0-m{margin-top:0 !important;margin-bottom:0 !important}}@media (max-width:63.938rem){.u-mh-0-m{margin-left:0 !important;margin-right:0 !important}}@media (max-width:63.938rem){.u-m-1-m{margin:1rem !important}}@media (max-width:63.938rem){.u-mt-1-m{margin-top:1rem !important}}@media (max-width:63.938rem){.u-mb-1-m{margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-ml-1-m{margin-left:1rem !important}}@media (max-width:63.938rem){.u-mr-1-m{margin-right:1rem !important}}@media (max-width:63.938rem){.u-mv-1-m{margin-top:1rem !important;margin-bottom:1rem !important}}@media (max-width:63.938rem){.u-mh-1-m{margin-left:1rem !important;margin-right:1rem !important}}@media (max-width:63.938rem){.u-m-2-m{margin:2rem !important}}@media (max-width:63.938rem){.u-mt-2-m{margin-top:2rem !important}}@media (max-width:63.938rem){.u-mb-2-m{margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-ml-2-m{margin-left:2rem !important}}@media (max-width:63.938rem){.u-mr-2-m{margin-right:2rem !important}}@media (max-width:63.938rem){.u-mv-2-m{margin-top:2rem !important;margin-bottom:2rem !important}}@media (max-width:63.938rem){.u-mh-2-m{margin-left:2rem !important;margin-right:2rem !important}}@media (max-width:63.938rem){.u-m-3-m{margin:3rem !important}}@media (max-width:63.938rem){.u-mt-3-m{margin-top:3rem !important}}@media (max-width:63.938rem){.u-mb-3-m{margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-ml-3-m{margin-left:3rem !important}}@media (max-width:63.938rem){.u-mr-3-m{margin-right:3rem !important}}@media (max-width:63.938rem){.u-mv-3-m{margin-top:3rem !important;margin-bottom:3rem !important}}@media (max-width:63.938rem){.u-mh-3-m{margin-left:3rem !important;margin-right:3rem !important}}@media (max-width:63.938rem){.u-m-auto-m{margin:auto !important}}@media (max-width:63.938rem){.u-mt-auto-m{margin-top:auto !important}}@media (max-width:63.938rem){.u-mb-auto-m{margin-bottom:auto !important}}@media (max-width:63.938rem){.u-ml-auto-m{margin-left:auto !important}}@media (max-width:63.938rem){.u-mr-auto-m{margin-right:auto !important}}@media (max-width:63.938rem){.u-mv-auto-m{margin-top:auto !important;margin-bottom:auto !important}}@media (max-width:63.938rem){.u-mh-auto-m{margin-left:auto !important;margin-right:auto !important}}@media (max-width:63.938rem){.u-m-half-m{margin:.5rem !important}}@media (max-width:63.938rem){.u-mt-half-m{margin-top:.5rem !important}}@media (max-width:63.938rem){.u-mb-half-m{margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-ml-half-m{margin-left:.5rem !important}}@media (max-width:63.938rem){.u-mr-half-m{margin-right:.5rem !important}}@media (max-width:63.938rem){.u-mv-half-m{margin-top:.5rem !important;margin-bottom:.5rem !important}}@media (max-width:63.938rem){.u-mh-half-m{margin-left:.5rem !important;margin-right:.5rem !important}}@media (max-width:63.938rem){.u-m-1-half-m{margin:1.5rem !important}}@media (max-width:63.938rem){.u-mt-1-half-m{margin-top:1.5rem !important}}@media (max-width:63.938rem){.u-mb-1-half-m{margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-ml-1-half-m{margin-left:1.5rem !important}}@media (max-width:63.938rem){.u-mr-1-half-m{margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-mv-1-half-m{margin-top:1.5rem !important;margin-bottom:1.5rem !important}}@media (max-width:63.938rem){.u-mh-1-half-m{margin-left:1.5rem !important;margin-right:1.5rem !important}}@media (max-width:63.938rem){.u-m-2-half-m{margin:2.5rem !important}}@media (max-width:63.938rem){.u-mt-2-half-m{margin-top:2.5rem !important}}@media (max-width:63.938rem){.u-mb-2-half-m{margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-ml-2-half-m{margin-left:2.5rem !important}}@media (max-width:63.938rem){.u-mr-2-half-m{margin-right:2.5rem !important}}@media (max-width:63.938rem){.u-mv-2-half-m{margin-top:2.5rem !important;margin-bottom:2.5rem !important}}@media (max-width:63.938rem){.u-mh-2-half-m{margin-left:2.5rem !important;margin-right:2.5rem !important}}.u-pos-absolute{position:absolute}.u-pos-relative{position:relative}.u-pos-fixed{position:fixed}.u-pos-sticky{position:sticky}.u-pos-static{position:static}@media (max-width:30rem){.u-pos-absolute-t{position:absolute}.u-pos-relative-t{position:relative}.u-pos-fixed-t{position:fixed}.u-pos-sticky-t{position:sticky}.u-pos-static-t{position:static}}@media (max-width:48rem){.u-pos-absolute-s{position:absolute}.u-pos-relative-s{position:relative}.u-pos-fixed-s{position:fixed}.u-pos-sticky-s{position:sticky}.u-pos-static-s{position:static}}@media (max-width:63.938rem){.u-pos-absolute-m{position:absolute}.u-pos-relative-m{position:relative}.u-pos-fixed-m{position:fixed}.u-pos-sticky-m{position:sticky}.u-pos-static-m{position:static}}.u-top-m{top:1rem}.u-top-xs{top:.5rem}.u-top-s{top:.75rem}.u-top-l{top:1.5rem}.u-top-xl{top:2rem}.u-top-xxl{top:3rem}.u-top-0{top:0}.u-bottom-m{bottom:1rem}.u-bottom-xs{bottom:.5rem}.u-bottom-s{bottom:.75rem}.u-bottom-l{bottom:1.5rem}.u-bottom-xl{bottom:2rem}.u-bottom-xxl{bottom:3rem}.u-bottom-0{bottom:0}.u-left-m{left:1rem}.u-left-xs{left:.5rem}.u-left-s{left:.75rem}.u-left-l{left:1.5rem}.u-left-xl{left:2rem}.u-left-xxl{left:3rem}.u-left-0{left:0}.u-right-m{right:1rem}.u-right-xs{right:.5rem}.u-right-s{right:.75rem}.u-right-l{right:1.5rem}.u-right-xl{right:2rem}.u-right-xxl{right:3rem}.u-right-0{right:0}.u-stack-m > * + *{margin-top:1rem}.u-stack-xs > * + *{margin-top:.5rem}.u-stack-s > * + *{margin-top:.75rem}.u-stack-l > * + *{margin-top:1.5rem}.u-stack-xl > * + *{margin-top:2rem}.u-stack-xxl > * + *{margin-top:3rem}.u-row-m > * + *{margin-left:1rem}.u-row-xs > * + *{margin-left:.5rem}.u-row-s > * + *{margin-left:.75rem}.u-row-l > * + *{margin-left:1.5rem}.u-row-xl > * + *{margin-left:2rem}.u-row-xxl > * + *{margin-left:3rem}.u-title-h1,.u-title-h2,.u-title-h3,.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}.u-title-h1{font-size:1.5rem;letter-spacing:-.012rem}@media (max-width:48rem){.u-title-h1{font-size:1.25rem}}.u-title-h2{font-size:1.25rem}@media (max-width:48rem){.u-title-h2{font-size:1.125rem}}.u-title-h3{font-size:1.125rem}@media (max-width:48rem){.u-title-h3{font-size:1rem}}.u-title-h4{font-size:1rem}@media (max-width:48rem){.u-title-h4{font-weight:bold;color:var(--primaryTextColor)}}.u-text{font-size:1rem;line-height:1.3;color:var(--primaryTextColor)}.u-caption{font-size:.75rem;line-height:1.2;color:var(--coolGrey)}.u-subtitle{font-size:.75rem;line-height:1.313}.u-uppercase{text-transform:uppercase}.u-lowercase{text-transform:lowercase}.u-subtitle{font-size:.75rem;text-transform:uppercase;font-weight:bold}.c-input-checkbox--svg span::after{display:none}.c-input-checkbox-icon{position:absolute;left:0;top:50%;box-sizing:border-box;width:1rem;height:1rem;padding:.125rem;transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.c-input-checkbox input:not(:checked) + span .c-input-checkbox-icon{opacity:0;-webkit-transform:scale(0) translateY(-50%);transform:scale(0) translateY(-50%)}.c-input-checkbox input:checked + span .c-input-checkbox-icon{opacity:1;-webkit-transform:scale(1) translateY(-50%);transform:scale(1) translateY(-50%)}.c-avatar--text{color:#fff}.c-avatar--disabled.c-avatar--image{background-color:#fff !important}.c-avatar--disabled:not(.c-avatar--image){background-color:var(--silver) !important}.c-avatar--disabled .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.c-avatar--ghost{background-color:transparent !important;border:1px dashed var(--borderGhostColor);color:var(--secondaryTextColor)}.c-avatar--ghost .c-avatar-image{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.3}.wizard-agreements-item:nth-child(1) .wizard-agreements-icon{--bgcolor:var(--weirdGreen)}.wizard-agreements-item:nth-child(2) .wizard-agreements-icon{--bgcolor:var(--mango)}.wizard-agreements-item:nth-child(3) .wizard-agreements-icon{--bgcolor:var(--lightishPurple)}.wizard-agreements-item:nth-child(4) .wizard-agreements-icon{--bgcolor:var(--pomegranate)}.wizard-agreements-item:nth-child(5) .wizard-agreements-icon{--bgcolor:var(--azure)}.wizard-agreements-item:nth-child(6) .wizard-agreements-icon{--bgcolor:var(--brightSun)}", ""]); @@ -200138,19 +201334,18 @@ __webpack_require__("iaIa")('RegExp'); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecureNoteData", function() { return SecureNoteData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var SecureNoteData = function SecureNoteData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SecureNoteData); -var SecureNoteData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function SecureNoteData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SecureNoteData); if (data == null) { return; } + this.type = data.type; -}); +}; /***/ }), @@ -201147,42 +202342,6 @@ __webpack_require__.r(__webpack_exports__); -/***/ }), - -/***/ "UuKj": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _TextField = _interopRequireDefault(__webpack_require__("g+2p")); -var _getRandomUUID = __webpack_require__("DIBL"); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var _excluded = ["children"]; -var TextField = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) { - var children = _ref.children, - props = (0, _objectWithoutProperties2.default)(_ref, _excluded); - - // A11Y, https://v4.mui.com/api/text-field/#props - var uuid = (0, _getRandomUUID.getRandomUUID)(); - return /*#__PURE__*/_react.default.createElement(_TextField.default, (0, _extends2.default)({ - ref: ref, - id: uuid - }, props), children); -}); -TextField.displayName = 'TextField'; -var _default = TextField; -exports.default = _default; - /***/ }), /***/ "UvGa": @@ -201259,36 +202418,36 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardApi", function() { return CardApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CardApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CardApi, _BaseResponse); - var _super = _createSuper(CardApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CardApi, _BaseResponse); + function CardApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CardApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CardApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(CardApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.cardholderName = _this.getResponseProperty('CardholderName'); _this.brand = _this.getResponseProperty('Brand'); _this.number = _this.getResponseProperty('Number'); @@ -201297,8 +202456,9 @@ var CardApi = /*#__PURE__*/function (_BaseResponse) { _this.code = _this.getResponseProperty('Code'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(CardApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return CardApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -201873,12 +203033,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -201886,58 +203046,73 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordWalletTxtImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordWalletTxtImporter, _BaseImporter); - var _super = _createSuper(PasswordWalletTxtImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordWalletTxtImporter, _BaseImporter); + function PasswordWalletTxtImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordWalletTxtImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordWalletTxtImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordWalletTxtImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length < 1) { return; } + if (value.length > 5) { _this.processFolder(result, value[5]); } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value[0], '--'); + if (value.length > 4) { cipher.notes = _this.getValueOrDefault(value[4], '').split('¬').join('\n'); } + if (value.length > 2) { cipher.login.username = _this.getValueOrDefault(value[2]); } + if (value.length > 3) { cipher.login.password = _this.getValueOrDefault(value[3]); } + if (value.length > 1) { cipher.login.uris = _this.makeUriArray(value[1]); } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return PasswordWalletTxtImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -202137,39 +203312,37 @@ function formatMs(milliseconds) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FolderResponse", function() { return FolderResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var FolderResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(FolderResponse, _BaseResponse); - var _super = _createSuper(FolderResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(FolderResponse, _BaseResponse); + function FolderResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FolderResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FolderResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(FolderResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.name = _this.getResponseProperty('Name'); _this.revisionDate = _this.getResponseProperty('RevisionDate'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(FolderResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return FolderResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -202216,12 +203389,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -202229,54 +203402,66 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var KeeperCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KeeperCsvImporter, _BaseImporter); - var _super = _createSuper(KeeperCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(KeeperCsvImporter, _BaseImporter); + function KeeperCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KeeperCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(KeeperCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(KeeperCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length < 6) { return; } + _this.processFolder(result, value[0]); + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value[5]) + '\n'; cipher.name = _this.getValueOrDefault(value[1], '--'); cipher.login.username = _this.getValueOrDefault(value[2]); cipher.login.password = _this.getValueOrDefault(value[3]); cipher.login.uris = _this.makeUriArray(value[4]); + if (value.length > 7) { // we have some custom fields. for (var i = 7; i < value.length; i = i + 2) { _this.processKvp(cipher, value[i], value[i + 1]); } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return KeeperCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -202925,36 +204110,33 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendResponse", function() { return SendResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _api_sendFileApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("moVg"); -/* harmony import */ var _api_sendTextApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("6HIV"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _api_sendFileApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("moVg"); +/* harmony import */ var _api_sendTextApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("6HIV"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SendResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SendResponse, _BaseResponse); - var _super = _createSuper(SendResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SendResponse, _BaseResponse); + function SendResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SendResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.accessId = _this.getResponseProperty('AccessId'); _this.type = _this.getResponseProperty('Type'); @@ -202968,18 +204150,24 @@ var SendResponse = /*#__PURE__*/function (_BaseResponse) { _this.deletionDate = _this.getResponseProperty('DeletionDate'); _this.password = _this.getResponseProperty('Password'); _this.disable = _this.getResponseProperty('Disabled') || false; + var text = _this.getResponseProperty('Text'); + if (text != null) { - _this.text = new _api_sendTextApi__WEBPACK_IMPORTED_MODULE_7__["SendTextApi"](text); + _this.text = new _api_sendTextApi__WEBPACK_IMPORTED_MODULE_6__["SendTextApi"](text); } + var file = _this.getResponseProperty('File'); + if (file != null) { - _this.file = new _api_sendFileApi__WEBPACK_IMPORTED_MODULE_6__["SendFileApi"](file); + _this.file = new _api_sendFileApi__WEBPACK_IMPORTED_MODULE_5__["SendFileApi"](file); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SendResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SendResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -205370,19 +206558,21 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ivGQ"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); + /* Made automatically with svgr from <rootDir>/assets/icon-cozy-security.svg */ function SvgIconCozySecurity(props) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("svg", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ + return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("svg", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ width: 96, height: 64 - }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("path", { + }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("path", { fill: "#FFF", fillRule: "evenodd", d: "M80 32c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm0 8c-2.206 0-4 1.794-4 4v2h-1c-.552 0-1 .456-1 .995v8.01c0 .55.456.995 1.002.995h9.996c.553 0 1.002-.456 1.002-.995v-8.01A.995.995 0 0085 46h-1v-2c0-2.206-1.795-4-4-4zm0 8.5c.826 0 1.5.672 1.5 1.5 0 .552-.305 1.032-.75 1.29v2.46a.751.751 0 01-1.5 0v-2.46A1.49 1.49 0 0178.5 50a1.5 1.5 0 011.5-1.5zM47.755 0c4.455 0 8.665 1.689 11.85 4.762 2.779 2.679 4.507 6.147 4.97 9.9 8.201.724 14.74 7.229 15.374 15.339L80 30c-9.941 0-18 8.059-18 18H32.946C23.6 48 16 40.507 16 31.297c0-4.393 1.716-8.542 4.833-11.681a16.942 16.942 0 0110.096-4.903c.452-3.772 2.185-7.26 4.975-9.95C39.09 1.689 43.298 0 47.754 0zM80 42c1.103 0 2 1.121 2 2.5V46h-4v-1.5c0-1.379.897-2.5 2-2.5zM55.386 28a1.132 1.132 0 00-1.113 1.154c.011.203.02.3.056.51.04.227.096.46.172.692-3.7 3.16-9.297 3.168-13.007.023.165-.49.233-.942.233-1.234a1.13 1.13 0 00-1.104-1.143 1.136 1.136 0 00-1.157 1.1c0 .11-.04.36-.135.618-.153.419-.41.771-.802 1.017a1.136 1.136 0 00-.333 1.597 1.127 1.127 0 001.538.323 4.21 4.21 0 00.505-.375C42.426 34.054 45.163 35 47.986 35c2.83 0 5.573-.95 7.764-2.73.16.141.332.27.517.387a1.134 1.134 0 001.307-1.848l-.101-.073-.077-.048a1.9 1.9 0 01-.546-.589 2.312 2.312 0 01-.316-1.003A1.128 1.128 0 0055.386 28z" })); } + /* harmony default export */ __webpack_exports__["default"] = (SvgIconCozySecurity); /***/ }), @@ -209460,17 +210650,15 @@ if (false) {} "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KvpRequest", function() { return KvpRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var KvpRequest = function KvpRequest(key, value) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KvpRequest); -var KvpRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function KvpRequest(key, value) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, KvpRequest); this.key = key; this.value = value; -}); +}; /***/ }), @@ -210105,40 +211293,38 @@ module.exports = subMilliseconds "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorDuoResponse", function() { return TwoFactorDuoResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var TwoFactorDuoResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorDuoResponse, _BaseResponse); - var _super = _createSuper(TwoFactorDuoResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorDuoResponse, _BaseResponse); + function TwoFactorDuoResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorDuoResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorDuoResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorDuoResponse).call(this, response)); _this.enabled = _this.getResponseProperty('Enabled'); _this.host = _this.getResponseProperty('Host'); _this.secretKey = _this.getResponseProperty('SecretKey'); _this.integrationKey = _this.getResponseProperty('IntegrationKey'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorDuoResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorDuoResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -210260,12 +211446,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -210275,34 +211461,40 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var EncryptrCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EncryptrCsvImporter, _BaseImporter); - var _super = _createSuper(EncryptrCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(EncryptrCsvImporter, _BaseImporter); + function EncryptrCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EncryptrCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(EncryptrCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EncryptrCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.Label, '--'); cipher.notes = _this.getValueOrDefault(value.Notes); + var text = _this.getValueOrDefault(value.Text); + if (!_this.isNullOrWhitespace(text)) { if (_this.isNullOrWhitespace(cipher.notes)) { cipher.notes = text; @@ -210310,7 +211502,9 @@ var EncryptrCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.notes += '\n\n' + text; } } + var type = value['Entry Type']; + if (type === 'Password') { cipher.login.username = _this.getValueOrDefault(value.Username); cipher.login.password = _this.getValueOrDefault(value.Password); @@ -210322,23 +211516,30 @@ var EncryptrCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.card.number = _this.getValueOrDefault(value['Card Number']); cipher.card.brand = _this.getCardBrand(cipher.card.number); cipher.card.code = _this.getValueOrDefault(value.CVV); + var expiry = _this.getValueOrDefault(value.Expiry); + if (!_this.isNullOrWhitespace(expiry)) { var expParts = expiry.split('/'); + if (expParts.length > 1) { cipher.card.expMonth = parseInt(expParts[0], null).toString(); cipher.card.expYear = (2000 + parseInt(expParts[1], null)).toString(); } } } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return EncryptrCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -210814,12 +212015,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -210827,44 +212028,52 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var UpmCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(UpmCsvImporter, _BaseImporter); - var _super = _createSuper(UpmCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(UpmCsvImporter, _BaseImporter); + function UpmCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, UpmCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(UpmCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(UpmCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length !== 5) { return; } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value[0], '--'); cipher.notes = _this.getValueOrDefault(value[4]); cipher.login.username = _this.getValueOrDefault(value[1]); cipher.login.password = _this.getValueOrDefault(value[2]); cipher.login.uris = _this.makeUriArray(value[3]); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return UpmCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -210962,35 +212171,34 @@ $export($export.P + $export.F * (fails(function () { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Policy", function() { return Policy; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("L7vP"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("L7vP"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Policy = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Policy, _Domain); - var _super = _createSuper(Policy); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Policy, _Domain); + function Policy(obj) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Policy); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Policy); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(Policy).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.id = obj.id; _this.organizationId = obj.organizationId; _this.type = obj.type; @@ -210998,8 +212206,9 @@ var Policy = /*#__PURE__*/function (_Domain) { _this.enabled = obj.enabled; return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Policy); -}(_domainBase__WEBPACK_IMPORTED_MODULE_5__["default"]); + + return Policy; +}(_domainBase__WEBPACK_IMPORTED_MODULE_4__["default"]); /***/ }), @@ -211311,36 +212520,36 @@ if (false) {} "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IdentityApi", function() { return IdentityApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var IdentityApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(IdentityApi, _BaseResponse); - var _super = _createSuper(IdentityApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(IdentityApi, _BaseResponse); + function IdentityApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, IdentityApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, IdentityApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(IdentityApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.title = _this.getResponseProperty('Title'); _this.firstName = _this.getResponseProperty('FirstName'); _this.middleName = _this.getResponseProperty('MiddleName'); @@ -211361,8 +212570,9 @@ var IdentityApi = /*#__PURE__*/function (_BaseResponse) { _this.licenseNumber = _this.getResponseProperty('LicenseNumber'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(IdentityApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return IdentityApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -211441,14 +212651,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("RNXH"); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("RNXH"); +/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _folder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("nvu6"); @@ -211456,25 +212666,26 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var FolderWithId = /*#__PURE__*/function (_Folder) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(FolderWithId, _Folder); - var _super = _createSuper(FolderWithId); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(FolderWithId, _Folder); + function FolderWithId() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FolderWithId); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(FolderWithId).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FolderWithId, [{ key: "build", - value: // Use build method instead of ctor so that we can control order of JSON stringify for pretty print - function build(o) { + value: function build(o) { this.id = o.id; - _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(FolderWithId.prototype), "build", this).call(this, o); + + _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(FolderWithId.prototype), "build", this).call(this, o); } }]); + return FolderWithId; }(_folder__WEBPACK_IMPORTED_MODULE_6__["Folder"]); @@ -212401,12 +213612,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_collectionView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("7/l8"); @@ -212415,28 +213626,31 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasspackCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasspackCsvImporter, _BaseImporter); - var _super = _createSuper(PasspackCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasspackCsvImporter, _BaseImporter); + function PasspackCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasspackCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasspackCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasspackCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var tagsJson = !_this.isNullOrWhitespace(value.Tags) ? JSON.parse(value.Tags) : null; var tags = tagsJson != null && tagsJson.tags != null && tagsJson.tags.length > 0 ? tagsJson.tags.map(function (tagJson) { @@ -212444,14 +213658,17 @@ var PasspackCsvImporter = /*#__PURE__*/function (_BaseImporter) { var t = JSON.parse(tagJson); return _this.getValueOrDefault(t.tag); } catch (_a) {} + return null; }).filter(function (t) { return !_this.isNullOrWhitespace(t); }) : null; + if (_this.organization && tags != null && tags.length > 0) { tags.forEach(function (tag) { var addCollection = true; var collectionIndex = result.collections.length; + for (var i = 0; i < result.collections.length; i++) { if (result.collections[i].name === tag) { addCollection = false; @@ -212459,23 +213676,28 @@ var PasspackCsvImporter = /*#__PURE__*/function (_BaseImporter) { break; } } + if (addCollection) { var collection = new _models_view_collectionView__WEBPACK_IMPORTED_MODULE_7__["CollectionView"](); collection.name = tag; result.collections.push(collection); } + result.collectionRelationships.push([result.ciphers.length, collectionIndex]); }); } else if (!_this.organization && tags != null && tags.length > 0) { _this.processFolder(result, tags[0]); } + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value.Notes, ''); cipher.notes += '\n\n' + _this.getValueOrDefault(value['Shared Notes'], '') + '\n'; cipher.name = _this.getValueOrDefault(value['Entry Name'], '--'); cipher.login.username = _this.getValueOrDefault(value['User ID']); cipher.login.password = _this.getValueOrDefault(value.Password); cipher.login.uris = _this.makeUriArray(value.URL); + if (value.__parsed_extra != null && value.__parsed_extra.length > 0) { value.__parsed_extra.forEach(function (extra) { if (!_this.isNullOrWhitespace(extra)) { @@ -212483,13 +213705,16 @@ var PasspackCsvImporter = /*#__PURE__*/function (_BaseImporter) { } }); } + var fieldsJson = !_this.isNullOrWhitespace(value['Extra Fields']) ? JSON.parse(value['Extra Fields']) : null; var fields = fieldsJson != null && fieldsJson.extraFields != null && fieldsJson.extraFields.length > 0 ? fieldsJson.extraFields.map(function (fieldJson) { try { return JSON.parse(fieldJson); } catch (_a) {} + return null; }) : null; + if (fields != null) { fields.forEach(function (f) { if (f != null) { @@ -212497,13 +213722,16 @@ var PasspackCsvImporter = /*#__PURE__*/function (_BaseImporter) { } }); } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return PasspackCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -214505,12 +215733,12 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FolderService", function() { return FolderService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_data_folderData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("GYgE"); /* harmony import */ var _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Kizp"); /* harmony import */ var _models_request_folderRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("qoEE"); @@ -214520,12 +215748,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -214534,6 +215764,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -214541,9 +215772,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -214553,6 +215786,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Keys = { foldersPrefix: 'folders_', ciphersPrefix: 'ciphers_' @@ -214560,7 +215794,8 @@ var Keys = { var NestingDelimiter = '/'; var FolderService = /*#__PURE__*/function () { function FolderService(cryptoService, userService, apiService, storageService, i18nService, cipherService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FolderService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FolderService); + this.cryptoService = cryptoService; this.userService = userService; this.apiService = apiService; @@ -214568,7 +215803,8 @@ var FolderService = /*#__PURE__*/function () { this.i18nService = i18nService; this.cipherService = cipherService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FolderService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(FolderService, [{ key: "clearCache", value: function clearCache() { this.decryptedFolderCache = null; @@ -214576,21 +215812,25 @@ var FolderService = /*#__PURE__*/function () { }, { key: "encrypt", value: function encrypt(model, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var folder; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - folder = new _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__["Folder"](); - folder.id = model.id; - _context.next = 4; - return this.cryptoService.encrypt(model.name, key); - case 4: - folder.name = _context.sent; - return _context.abrupt("return", folder); - case 6: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + folder = new _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__["Folder"](); + folder.id = model.id; + _context.next = 4; + return this.cryptoService.encrypt(model.name, key); + + case 4: + folder.name = _context.sent; + return _context.abrupt("return", folder); + + case 6: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -214598,29 +215838,37 @@ var FolderService = /*#__PURE__*/function () { }, { key: "get", value: function get(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var userId, folders; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context2.sent; - _context2.next = 5; - return this.storageService.get(Keys.foldersPrefix + userId); - case 5: - folders = _context2.sent; - if (!(folders == null || !folders.hasOwnProperty(id))) { - _context2.next = 8; - break; - } - return _context2.abrupt("return", null); - case 8: - return _context2.abrupt("return", new _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__["Folder"](folders[id])); - case 9: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context2.sent; + _context2.next = 5; + return this.storageService.get(Keys.foldersPrefix + userId); + + case 5: + folders = _context2.sent; + + if (!(folders == null || !folders.hasOwnProperty(id))) { + _context2.next = 8; + break; + } + + return _context2.abrupt("return", null); + + case 8: + return _context2.abrupt("return", new _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__["Folder"](folders[id])); + + case 9: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -214628,29 +215876,36 @@ var FolderService = /*#__PURE__*/function () { }, { key: "getAll", value: function getAll() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var userId, folders, response, id; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context3.sent; - _context3.next = 5; - return this.storageService.get(Keys.foldersPrefix + userId); - case 5: - folders = _context3.sent; - response = []; - for (id in folders) { - if (folders.hasOwnProperty(id)) { - response.push(new _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__["Folder"](folders[id])); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context3.sent; + _context3.next = 5; + return this.storageService.get(Keys.foldersPrefix + userId); + + case 5: + folders = _context3.sent; + response = []; + + for (id in folders) { + if (folders.hasOwnProperty(id)) { + response.push(new _models_domain_folder__WEBPACK_IMPORTED_MODULE_4__["Folder"](folders[id])); + } } - } - return _context3.abrupt("return", response); - case 9: - case "end": - return _context3.stop(); + + return _context3.abrupt("return", response); + + case 9: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -214658,50 +215913,61 @@ var FolderService = /*#__PURE__*/function () { }, { key: "getAllDecrypted", value: function getAllDecrypted() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var hasKey, decFolders, promises, folders, noneFolder; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.decryptedFolderCache != null)) { - _context4.next = 2; - break; - } - return _context4.abrupt("return", this.decryptedFolderCache); - case 2: - _context4.next = 4; - return this.cryptoService.hasKey(); - case 4: - hasKey = _context4.sent; - if (hasKey) { - _context4.next = 7; - break; - } - throw new Error('No key.'); - case 7: - decFolders = []; - promises = []; - _context4.next = 11; - return this.getAll(); - case 11: - folders = _context4.sent; - folders.forEach(function (folder) { - promises.push(folder.decrypt().then(function (f) { - return decFolders.push(f); - })); - }); - _context4.next = 15; - return Promise.all(promises); - case 15: - decFolders.sort(_misc_utils__WEBPACK_IMPORTED_MODULE_8__["Utils"].getSortFunction(this.i18nService, 'name')); - noneFolder = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_6__["FolderView"](); - noneFolder.name = this.i18nService.t('noneFolder'); - decFolders.push(noneFolder); - this.decryptedFolderCache = decFolders; - return _context4.abrupt("return", this.decryptedFolderCache); - case 21: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.decryptedFolderCache != null)) { + _context4.next = 2; + break; + } + + return _context4.abrupt("return", this.decryptedFolderCache); + + case 2: + _context4.next = 4; + return this.cryptoService.hasKey(); + + case 4: + hasKey = _context4.sent; + + if (hasKey) { + _context4.next = 7; + break; + } + + throw new Error('No key.'); + + case 7: + decFolders = []; + promises = []; + _context4.next = 11; + return this.getAll(); + + case 11: + folders = _context4.sent; + folders.forEach(function (folder) { + promises.push(folder.decrypt().then(function (f) { + return decFolders.push(f); + })); + }); + _context4.next = 15; + return Promise.all(promises); + + case 15: + decFolders.sort(_misc_utils__WEBPACK_IMPORTED_MODULE_8__["Utils"].getSortFunction(this.i18nService, 'name')); + noneFolder = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_6__["FolderView"](); + noneFolder.name = this.i18nService.t('noneFolder'); + decFolders.push(noneFolder); + this.decryptedFolderCache = decFolders; + return _context4.abrupt("return", this.decryptedFolderCache); + + case 21: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -214709,27 +215975,31 @@ var FolderService = /*#__PURE__*/function () { }, { key: "getAllNested", value: function getAllNested() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var folders, nodes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return this.getAllDecrypted(); - case 2: - folders = _context5.sent; - nodes = []; - folders.forEach(function (f) { - var folderCopy = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_6__["FolderView"](); - folderCopy.id = f.id; - folderCopy.revisionDate = f.revisionDate; - var parts = f.name != null ? f.name.replace(/^\/+|\/+$/g, '').split(NestingDelimiter) : []; - _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_7__["ServiceUtils"].nestedTraverse(nodes, 0, parts, folderCopy, null, NestingDelimiter); - }); - return _context5.abrupt("return", nodes); - case 6: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return this.getAllDecrypted(); + + case 2: + folders = _context5.sent; + nodes = []; + folders.forEach(function (f) { + var folderCopy = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_6__["FolderView"](); + folderCopy.id = f.id; + folderCopy.revisionDate = f.revisionDate; + var parts = f.name != null ? f.name.replace(/^\/+|\/+$/g, '').split(NestingDelimiter) : []; + _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_7__["ServiceUtils"].nestedTraverse(nodes, 0, parts, folderCopy, null, NestingDelimiter); + }); + return _context5.abrupt("return", nodes); + + case 6: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -214737,19 +216007,23 @@ var FolderService = /*#__PURE__*/function () { }, { key: "getNested", value: function getNested(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var folders; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.getAllNested(); - case 2: - folders = _context6.sent; - return _context6.abrupt("return", _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_7__["ServiceUtils"].getTreeNodeObject(folders, id)); - case 4: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.getAllNested(); + + case 2: + folders = _context6.sent; + return _context6.abrupt("return", _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_7__["ServiceUtils"].getTreeNodeObject(folders, id)); + + case 4: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -214757,39 +216031,49 @@ var FolderService = /*#__PURE__*/function () { }, { key: "saveWithServer", value: function saveWithServer(folder) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var request, response, userId, data; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - request = new _models_request_folderRequest__WEBPACK_IMPORTED_MODULE_5__["FolderRequest"](folder); - if (!(folder.id == null)) { - _context7.next = 8; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + request = new _models_request_folderRequest__WEBPACK_IMPORTED_MODULE_5__["FolderRequest"](folder); + + if (!(folder.id == null)) { + _context7.next = 8; + break; + } + + _context7.next = 4; + return this.apiService.postFolder(request); + + case 4: + response = _context7.sent; + folder.id = response.id; + _context7.next = 11; break; - } - _context7.next = 4; - return this.apiService.postFolder(request); - case 4: - response = _context7.sent; - folder.id = response.id; - _context7.next = 11; - break; - case 8: - _context7.next = 10; - return this.apiService.putFolder(folder.id, request); - case 10: - response = _context7.sent; - case 11: - _context7.next = 13; - return this.userService.getUserId(); - case 13: - userId = _context7.sent; - data = new _models_data_folderData__WEBPACK_IMPORTED_MODULE_3__["FolderData"](response, userId); - _context7.next = 17; - return this.upsert(data); - case 17: - case "end": - return _context7.stop(); + + case 8: + _context7.next = 10; + return this.apiService.putFolder(folder.id, request); + + case 10: + response = _context7.sent; + + case 11: + _context7.next = 13; + return this.userService.getUserId(); + + case 13: + userId = _context7.sent; + data = new _models_data_folderData__WEBPACK_IMPORTED_MODULE_3__["FolderData"](response, userId); + _context7.next = 17; + return this.upsert(data); + + case 17: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -214797,37 +216081,46 @@ var FolderService = /*#__PURE__*/function () { }, { key: "upsert", value: function upsert(folder) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var userId, folders, f; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context8.sent; - _context8.next = 5; - return this.storageService.get(Keys.foldersPrefix + userId); - case 5: - folders = _context8.sent; - if (folders == null) { - folders = {}; - } - if (folder instanceof _models_data_folderData__WEBPACK_IMPORTED_MODULE_3__["FolderData"]) { - f = folder; - folders[f.id] = f; - } else { - folder.forEach(function (f) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context8.sent; + _context8.next = 5; + return this.storageService.get(Keys.foldersPrefix + userId); + + case 5: + folders = _context8.sent; + + if (folders == null) { + folders = {}; + } + + if (folder instanceof _models_data_folderData__WEBPACK_IMPORTED_MODULE_3__["FolderData"]) { + f = folder; folders[f.id] = f; - }); - } - _context8.next = 10; - return this.storageService.save(Keys.foldersPrefix + userId, folders); - case 10: - this.decryptedFolderCache = null; - case 11: - case "end": - return _context8.stop(); + } else { + folder.forEach(function (f) { + folders[f.id] = f; + }); + } + + _context8.next = 10; + return this.storageService.save(Keys.foldersPrefix + userId, folders); + + case 10: + this.decryptedFolderCache = null; + + case 11: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -214835,22 +216128,27 @@ var FolderService = /*#__PURE__*/function () { }, { key: "replace", value: function replace(folders) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context9.sent; - _context9.next = 5; - return this.storageService.save(Keys.foldersPrefix + userId, folders); - case 5: - this.decryptedFolderCache = null; - case 6: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context9.sent; + _context9.next = 5; + return this.storageService.save(Keys.foldersPrefix + userId, folders); + + case 5: + this.decryptedFolderCache = null; + + case 6: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -214858,17 +216156,21 @@ var FolderService = /*#__PURE__*/function () { }, { key: "clear", value: function clear(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.storageService.remove(Keys.foldersPrefix + userId); - case 2: - this.decryptedFolderCache = null; - case 3: - case "end": - return _context10.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.storageService.remove(Keys.foldersPrefix + userId); + + case 2: + this.decryptedFolderCache = null; + + case 3: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -214876,67 +216178,85 @@ var FolderService = /*#__PURE__*/function () { }, { key: "delete", value: function _delete(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var userId, folders, ciphers, updates, cId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - _context11.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context11.sent; - _context11.next = 5; - return this.storageService.get(Keys.foldersPrefix + userId); - case 5: - folders = _context11.sent; - if (!(folders == null)) { - _context11.next = 8; - break; - } - return _context11.abrupt("return"); - case 8: - if (!(typeof id === 'string')) { - _context11.next = 14; - break; - } - if (!(folders[id] == null)) { - _context11.next = 11; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context11.sent; + _context11.next = 5; + return this.storageService.get(Keys.foldersPrefix + userId); + + case 5: + folders = _context11.sent; + + if (!(folders == null)) { + _context11.next = 8; + break; + } + + return _context11.abrupt("return"); + + case 8: + if (!(typeof id === 'string')) { + _context11.next = 14; + break; + } + + if (!(folders[id] == null)) { + _context11.next = 11; + break; + } + + return _context11.abrupt("return"); + + case 11: + delete folders[id]; + _context11.next = 15; break; - } - return _context11.abrupt("return"); - case 11: - delete folders[id]; - _context11.next = 15; - break; - case 14: - id.forEach(function (i) { - delete folders[i]; - }); - case 15: - _context11.next = 17; - return this.storageService.save(Keys.foldersPrefix + userId, folders); - case 17: - this.decryptedFolderCache = null; - // Items in a deleted folder are re-assigned to "No Folder" - _context11.next = 20; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 20: - ciphers = _context11.sent; - if (ciphers != null) { - updates = []; - for (cId in ciphers) { - if (ciphers[cId].folderId === id) { - ciphers[cId].folderId = null; - updates.push(ciphers[cId]); + + case 14: + id.forEach(function (i) { + delete folders[i]; + }); + + case 15: + _context11.next = 17; + return this.storageService.save(Keys.foldersPrefix + userId, folders); + + case 17: + this.decryptedFolderCache = null; // Items in a deleted folder are re-assigned to "No Folder" + + _context11.next = 20; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 20: + ciphers = _context11.sent; + + if (ciphers != null) { + updates = []; + + for (cId in ciphers) { + if (ciphers[cId].folderId === id) { + ciphers[cId].folderId = null; + updates.push(ciphers[cId]); + } + } + + if (updates.length > 0) { + this.cipherService.upsert(updates); } } - if (updates.length > 0) { - this.cipherService.upsert(updates); - } - } - case 22: - case "end": - return _context11.stop(); + + case 22: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -214944,23 +216264,28 @@ var FolderService = /*#__PURE__*/function () { }, { key: "deleteWithServer", value: function deleteWithServer(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - _context12.next = 2; - return this.apiService.deleteFolder(id); - case 2: - _context12.next = 4; - return this.delete(id); - case 4: - case "end": - return _context12.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return this.apiService.deleteFolder(id); + + case 2: + _context12.next = 4; + return this.delete(id); + + case 4: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); } }]); + return FolderService; }(); @@ -215116,19 +216441,17 @@ exports.themesList = themesList; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return TreeNode; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var TreeNode = function TreeNode(node, name, parent) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TreeNode); -var TreeNode = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function TreeNode(node, name, parent) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TreeNode); this.children = []; this.parent = parent; this.node = node; this.node.name = name; -}); +}; /***/ }), @@ -215295,12 +216618,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_export_cipherWithIds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("CQW4"); @@ -215311,34 +216634,39 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var BitwardenJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BitwardenJsonImporter, _BaseImporter); - var _super = _createSuper(BitwardenJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(BitwardenJsonImporter, _BaseImporter); + function BitwardenJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BitwardenJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(BitwardenJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BitwardenJsonImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || results.items == null || results.items.length === 0) { result.success = false; return result; } + var groupingsMap = new Map(); + if (this.organization && results.collections != null) { results.collections.forEach(function (c) { var collection = _models_export_collectionWithId__WEBPACK_IMPORTED_MODULE_8__["CollectionWithId"].toView(c); + if (collection != null) { collection.id = null; collection.organizationId = null; @@ -215349,6 +216677,7 @@ var BitwardenJsonImporter = /*#__PURE__*/function (_BaseImporter) { } else if (!this.organization && results.folders != null) { results.folders.forEach(function (f) { var folder = _models_export_folderWithId__WEBPACK_IMPORTED_MODULE_9__["FolderWithId"].toView(f); + if (folder != null) { folder.id = null; groupingsMap.set(f.id, result.folders.length); @@ -215356,17 +216685,19 @@ var BitwardenJsonImporter = /*#__PURE__*/function (_BaseImporter) { } }); } + results.items.forEach(function (c) { - var cipher = _models_export_cipherWithIds__WEBPACK_IMPORTED_MODULE_7__["CipherWithIds"].toView(c); - // reset ids incase they were set for some reason + var cipher = _models_export_cipherWithIds__WEBPACK_IMPORTED_MODULE_7__["CipherWithIds"].toView(c); // reset ids incase they were set for some reason + cipher.id = null; cipher.folderId = null; cipher.organizationId = null; - cipher.collectionIds = null; - // make sure password history is limited + cipher.collectionIds = null; // make sure password history is limited + if (cipher.passwordHistory != null && cipher.passwordHistory.length > 5) { cipher.passwordHistory = cipher.passwordHistory.slice(0, 5); } + if (!_this.organization && c.folderId != null && groupingsMap.has(c.folderId)) { result.folderRelationships.push([result.ciphers.length, groupingsMap.get(c.folderId)]); } else if (_this.organization && c.collectionIds != null) { @@ -215376,13 +216707,16 @@ var BitwardenJsonImporter = /*#__PURE__*/function (_BaseImporter) { } }); } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return BitwardenJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -215798,12 +217132,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -215811,41 +217145,48 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var MeldiumCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(MeldiumCsvImporter, _BaseImporter); - var _super = _createSuper(MeldiumCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MeldiumCsvImporter, _BaseImporter); + function MeldiumCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MeldiumCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MeldiumCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MeldiumCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.DisplayName, '--'); cipher.notes = _this.getValueOrDefault(value.Notes); cipher.login.username = _this.getValueOrDefault(value.UserName); cipher.login.password = _this.getValueOrDefault(value.Password); cipher.login.uris = _this.makeUriArray(value.Url); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return MeldiumCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -217415,17 +218756,15 @@ module.exports = _slicedToArray, module.exports.__esModule = true, module.export "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneratedPasswordHistory", function() { return GeneratedPasswordHistory; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var GeneratedPasswordHistory = function GeneratedPasswordHistory(password, date) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GeneratedPasswordHistory); -var GeneratedPasswordHistory = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function GeneratedPasswordHistory(password, date) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GeneratedPasswordHistory); this.password = password; this.date = date; -}); +}; /***/ }), @@ -217443,32 +218782,29 @@ module.exports = __webpack_require__("CVZc").EventEmitter; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanResponse", function() { return PlanResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PlanResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PlanResponse, _BaseResponse); - var _super = _createSuper(PlanResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PlanResponse, _BaseResponse); + function PlanResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PlanResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PlanResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(PlanResponse).call(this, response)); _this.type = _this.getResponseProperty('Type'); _this.product = _this.getResponseProperty('Product'); _this.name = _this.getResponseProperty('Name'); @@ -217510,8 +218846,9 @@ var PlanResponse = /*#__PURE__*/function (_BaseResponse) { _this.premiumAccessOptionPrice = _this.getResponseProperty('PremiumAccessOptionPrice'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PlanResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return PlanResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -220923,12 +222260,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -220936,40 +222273,47 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var YotiCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(YotiCsvImporter, _BaseImporter); - var _super = _createSuper(YotiCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(YotiCsvImporter, _BaseImporter); + function YotiCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, YotiCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(YotiCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(YotiCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.Name, '--'); cipher.login.username = _this.getValueOrDefault(value['User name']); cipher.login.password = _this.getValueOrDefault(value.Password); cipher.login.uris = _this.makeUriArray(value.URL); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return YotiCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -221054,34 +222398,31 @@ module.exports = partialRight(merge, mergeBuffer); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KdfRequest", function() { return KdfRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _passwordRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("FHzr"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _passwordRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("FHzr"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var KdfRequest = /*#__PURE__*/function (_PasswordRequest) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KdfRequest, _PasswordRequest); - var _super = _createSuper(KdfRequest); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(KdfRequest, _PasswordRequest); + function KdfRequest() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, KdfRequest); - return _super.apply(this, arguments); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KdfRequest); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(KdfRequest).apply(this, arguments)); } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(KdfRequest); -}(_passwordRequest__WEBPACK_IMPORTED_MODULE_5__["PasswordRequest"]); + + return KdfRequest; +}(_passwordRequest__WEBPACK_IMPORTED_MODULE_4__["PasswordRequest"]); /***/ }), @@ -221168,12 +222509,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ykCz"); @@ -221185,8 +222526,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -221194,48 +222533,61 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var EnpassCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EnpassCsvImporter, _BaseImporter); - var _super = _createSuper(EnpassCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(EnpassCsvImporter, _BaseImporter); + function EnpassCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EnpassCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(EnpassCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EnpassCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + var firstRow = true; results.forEach(function (value) { if (value.length < 2 || firstRow && (value[0] === 'Title' || value[0] === 'title')) { firstRow = false; return; } + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value[value.length - 1]); cipher.name = _this.getValueOrDefault(value[0], '--'); + if (value.length === 2 || !_this.containsField(value, 'username') && !_this.containsField(value, 'password') && !_this.containsField(value, 'email') && !_this.containsField(value, 'url')) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote; cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_10__["SecureNoteView"](); cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_8__["SecureNoteType"].Generic; } + if (_this.containsField(value, 'cardholder') && _this.containsField(value, 'number') && _this.containsField(value, 'expiry date')) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Card; cipher.card = new _models_view_cardView__WEBPACK_IMPORTED_MODULE_9__["CardView"](); } + if (value.length > 2 && value.length % 2 === 0) { for (var i = 0; i < value.length - 2; i += 2) { var fieldValue = value[i + 2]; + if (_this.isNullOrWhitespace(fieldValue)) { continue; } + var fieldName = value[i + 1]; var fieldNameLower = fieldName.toLowerCase(); + if (cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login) { if (fieldNameLower === 'url' && (cipher.login.uris == null || cipher.login.uris.length === 0)) { cipher.login.uris = _this.makeUriArray(fieldValue); @@ -221270,10 +222622,13 @@ var EnpassCsvImporter = /*#__PURE__*/function (_BaseImporter) { continue; } } + _this.processKvp(cipher, fieldName, fieldValue); } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; @@ -221283,14 +222638,17 @@ var EnpassCsvImporter = /*#__PURE__*/function (_BaseImporter) { key: "containsField", value: function containsField(fields, name) { var _this2 = this; + if (fields == null || name == null) { return false; } + return fields.filter(function (f) { return !_this2.isNullOrWhitespace(f) && f.toLowerCase() === name.toLowerCase(); }).length > 0; } }]); + return EnpassCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -224674,12 +226032,12 @@ module.exports = function GetIntrinsic(name, allowMissing) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CryptoService", function() { return CryptoService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var big_integer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("c2FM"); /* harmony import */ var big_integer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(big_integer__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("iA/q"); @@ -224694,22 +226052,28 @@ __webpack_require__.r(__webpack_exports__); + var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) { var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) { + if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + } return c > 3 && r && Object.defineProperty(target, key, r), r; }; + var __metadata = undefined && undefined.__metadata || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -224718,6 +226082,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -224725,9 +226090,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -224741,6 +226108,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Keys = { key: 'key', encOrgKeys: 'encOrgKeys', @@ -224750,39 +226118,49 @@ var Keys = { }; var CryptoService = /*#__PURE__*/function () { function CryptoService(storageService, secureStorageService, cryptoFunctionService, platformUtilService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CryptoService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CryptoService); + this.storageService = storageService; this.secureStorageService = secureStorageService; this.cryptoFunctionService = cryptoFunctionService; this.platformUtilService = platformUtilService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CryptoService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(CryptoService, [{ key: "setKey", value: function setKey(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var option, biometric; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - this.key = key; - _context.next = 3; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].vaultTimeoutKey); - case 3: - option = _context.sent; - _context.next = 6; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].biometricUnlockKey); - case 6: - biometric = _context.sent; - if (!(option != null && !(biometric && this.platformUtilService.supportsSecureStorage()))) { - _context.next = 9; - break; - } - return _context.abrupt("return"); - case 9: - return _context.abrupt("return", this.secureStorageService.save(Keys.key, key.keyB64)); - case 10: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + this.key = key; + _context.next = 3; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].vaultTimeoutKey); + + case 3: + option = _context.sent; + _context.next = 6; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].biometricUnlockKey); + + case 6: + biometric = _context.sent; + + if (!(option != null && !(biometric && this.platformUtilService.supportsSecureStorage()))) { + _context.next = 9; + break; + } + + return _context.abrupt("return"); + + case 9: + return _context.abrupt("return", this.secureStorageService.save(Keys.key, key.keyB64)); + + case 10: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -224796,23 +226174,29 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "setEncKey", value: function setEncKey(encKey) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!(encKey == null)) { - _context2.next = 2; - break; - } - return _context2.abrupt("return"); - case 2: - _context2.next = 4; - return this.storageService.save(Keys.encKey, encKey); - case 4: - this.encKey = null; - case 5: - case "end": - return _context2.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!(encKey == null)) { + _context2.next = 2; + break; + } + + return _context2.abrupt("return"); + + case 2: + _context2.next = 4; + return this.storageService.save(Keys.encKey, encKey); + + case 4: + this.encKey = null; + + case 5: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -224820,23 +226204,29 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "setEncPrivateKey", value: function setEncPrivateKey(encPrivateKey) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - if (!(encPrivateKey == null)) { - _context3.next = 2; - break; - } - return _context3.abrupt("return"); - case 2: - _context3.next = 4; - return this.storageService.save(Keys.encPrivateKey, encPrivateKey); - case 4: - this.privateKey = null; - case 5: - case "end": - return _context3.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + if (!(encPrivateKey == null)) { + _context3.next = 2; + break; + } + + return _context3.abrupt("return"); + + case 2: + _context3.next = 4; + return this.storageService.save(Keys.encPrivateKey, encPrivateKey); + + case 4: + this.privateKey = null; + + case 5: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -224854,28 +226244,36 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getKey", value: function getKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var key; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.key != null)) { - _context4.next = 2; - break; - } - return _context4.abrupt("return", this.key); - case 2: - _context4.next = 4; - return this.secureStorageService.get(Keys.key); - case 4: - key = _context4.sent; - if (key != null) { - this.key = new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](_misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(key).buffer); - } - return _context4.abrupt("return", key == null ? null : this.key); - case 7: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.key != null)) { + _context4.next = 2; + break; + } + + return _context4.abrupt("return", this.key); + + case 2: + _context4.next = 4; + return this.secureStorageService.get(Keys.key); + + case 4: + key = _context4.sent; + + if (key != null) { + this.key = new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](_misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(key).buffer); + } + + return _context4.abrupt("return", key == null ? null : this.key); + + case 7: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -224883,28 +226281,36 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getKeyHash", value: function getKeyHash() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var keyHash; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - if (!(this.keyHash != null)) { - _context5.next = 2; - break; - } - return _context5.abrupt("return", this.keyHash); - case 2: - _context5.next = 4; - return this.storageService.get(Keys.keyHash); - case 4: - keyHash = _context5.sent; - if (keyHash != null) { - this.keyHash = keyHash; - } - return _context5.abrupt("return", keyHash == null ? null : this.keyHash); - case 7: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + if (!(this.keyHash != null)) { + _context5.next = 2; + break; + } + + return _context5.abrupt("return", this.keyHash); + + case 2: + _context5.next = 4; + return this.storageService.get(Keys.keyHash); + + case 4: + keyHash = _context5.sent; + + if (keyHash != null) { + this.keyHash = keyHash; + } + + return _context5.abrupt("return", keyHash == null ? null : this.keyHash); + + case 7: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -224913,82 +226319,107 @@ var CryptoService = /*#__PURE__*/function () { key: "getEncKey", value: function getEncKey() { var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var encKey, decEncKey, encKeyCipher, newKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - if (!(this.encKey != null)) { - _context6.next = 2; - break; - } - return _context6.abrupt("return", this.encKey); - case 2: - _context6.next = 4; - return this.storageService.get(Keys.encKey); - case 4: - encKey = _context6.sent; - if (!(encKey == null)) { - _context6.next = 7; - break; - } - return _context6.abrupt("return", null); - case 7: - if (!(key == null)) { - _context6.next = 11; - break; - } - _context6.next = 10; - return this.getKey(); - case 10: - key = _context6.sent; - case 11: - if (!(key == null)) { - _context6.next = 13; - break; - } - return _context6.abrupt("return", null); - case 13: - encKeyCipher = new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](encKey); - if (!(encKeyCipher.encryptionType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_B64)) { - _context6.next = 20; - break; - } - _context6.next = 17; - return this.decryptToBytes(encKeyCipher, key); - case 17: - decEncKey = _context6.sent; - _context6.next = 30; - break; - case 20: - if (!(encKeyCipher.encryptionType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_HmacSha256_B64)) { - _context6.next = 29; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + if (!(this.encKey != null)) { + _context6.next = 2; + break; + } + + return _context6.abrupt("return", this.encKey); + + case 2: + _context6.next = 4; + return this.storageService.get(Keys.encKey); + + case 4: + encKey = _context6.sent; + + if (!(encKey == null)) { + _context6.next = 7; + break; + } + + return _context6.abrupt("return", null); + + case 7: + if (!(key == null)) { + _context6.next = 11; + break; + } + + _context6.next = 10; + return this.getKey(); + + case 10: + key = _context6.sent; + + case 11: + if (!(key == null)) { + _context6.next = 13; + break; + } + + return _context6.abrupt("return", null); + + case 13: + encKeyCipher = new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](encKey); + + if (!(encKeyCipher.encryptionType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_B64)) { + _context6.next = 20; + break; + } + + _context6.next = 17; + return this.decryptToBytes(encKeyCipher, key); + + case 17: + decEncKey = _context6.sent; + _context6.next = 30; break; - } - _context6.next = 23; - return this.stretchKey(key); - case 23: - newKey = _context6.sent; - _context6.next = 26; - return this.decryptToBytes(encKeyCipher, newKey); - case 26: - decEncKey = _context6.sent; - _context6.next = 30; - break; - case 29: - throw new Error('Unsupported encKey type.'); - case 30: - if (!(decEncKey == null)) { - _context6.next = 32; + + case 20: + if (!(encKeyCipher.encryptionType === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_HmacSha256_B64)) { + _context6.next = 29; + break; + } + + _context6.next = 23; + return this.stretchKey(key); + + case 23: + newKey = _context6.sent; + _context6.next = 26; + return this.decryptToBytes(encKeyCipher, newKey); + + case 26: + decEncKey = _context6.sent; + _context6.next = 30; break; - } - return _context6.abrupt("return", null); - case 32: - this.encKey = new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](decEncKey); - return _context6.abrupt("return", this.encKey); - case 34: - case "end": - return _context6.stop(); + + case 29: + throw new Error('Unsupported encKey type.'); + + case 30: + if (!(decEncKey == null)) { + _context6.next = 32; + break; + } + + return _context6.abrupt("return", null); + + case 32: + this.encKey = new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](decEncKey); + return _context6.abrupt("return", this.encKey); + + case 34: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -224996,35 +226427,45 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getPublicKey", value: function getPublicKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var privateKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - if (!(this.publicKey != null)) { - _context7.next = 2; - break; - } - return _context7.abrupt("return", this.publicKey); - case 2: - _context7.next = 4; - return this.getPrivateKey(); - case 4: - privateKey = _context7.sent; - if (!(privateKey == null)) { - _context7.next = 7; - break; - } - return _context7.abrupt("return", null); - case 7: - _context7.next = 9; - return this.cryptoFunctionService.rsaExtractPublicKey(privateKey); - case 9: - this.publicKey = _context7.sent; - return _context7.abrupt("return", this.publicKey); - case 11: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + if (!(this.publicKey != null)) { + _context7.next = 2; + break; + } + + return _context7.abrupt("return", this.publicKey); + + case 2: + _context7.next = 4; + return this.getPrivateKey(); + + case 4: + privateKey = _context7.sent; + + if (!(privateKey == null)) { + _context7.next = 7; + break; + } + + return _context7.abrupt("return", null); + + case 7: + _context7.next = 9; + return this.cryptoFunctionService.rsaExtractPublicKey(privateKey); + + case 9: + this.publicKey = _context7.sent; + return _context7.abrupt("return", this.publicKey); + + case 11: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -225032,35 +226473,45 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getPrivateKey", value: function getPrivateKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var encPrivateKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - if (!(this.privateKey != null)) { - _context8.next = 2; - break; - } - return _context8.abrupt("return", this.privateKey); - case 2: - _context8.next = 4; - return this.storageService.get(Keys.encPrivateKey); - case 4: - encPrivateKey = _context8.sent; - if (!(encPrivateKey == null)) { - _context8.next = 7; - break; - } - return _context8.abrupt("return", null); - case 7: - _context8.next = 9; - return this.decryptToBytes(new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](encPrivateKey), null); - case 9: - this.privateKey = _context8.sent; - return _context8.abrupt("return", this.privateKey); - case 11: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + if (!(this.privateKey != null)) { + _context8.next = 2; + break; + } + + return _context8.abrupt("return", this.privateKey); + + case 2: + _context8.next = 4; + return this.storageService.get(Keys.encPrivateKey); + + case 4: + encPrivateKey = _context8.sent; + + if (!(encPrivateKey == null)) { + _context8.next = 7; + break; + } + + return _context8.abrupt("return", null); + + case 7: + _context8.next = 9; + return this.decryptToBytes(new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](encPrivateKey), null); + + case 9: + this.privateKey = _context8.sent; + return _context8.abrupt("return", this.privateKey); + + case 11: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -225068,38 +226519,48 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getFingerprint", value: function getFingerprint(userId, publicKey) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var keyFingerprint, userFingerprint; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - if (!(publicKey == null)) { - _context9.next = 4; - break; - } - _context9.next = 3; - return this.getPublicKey(); - case 3: - publicKey = _context9.sent; - case 4: - if (!(publicKey === null)) { - _context9.next = 6; - break; - } - throw new Error('No public key available.'); - case 6: - _context9.next = 8; - return this.cryptoFunctionService.hash(publicKey, 'sha256'); - case 8: - keyFingerprint = _context9.sent; - _context9.next = 11; - return this.cryptoFunctionService.hkdfExpand(keyFingerprint, userId, 32, 'sha256'); - case 11: - userFingerprint = _context9.sent; - return _context9.abrupt("return", this.hashPhrase(userFingerprint)); - case 13: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + if (!(publicKey == null)) { + _context9.next = 4; + break; + } + + _context9.next = 3; + return this.getPublicKey(); + + case 3: + publicKey = _context9.sent; + + case 4: + if (!(publicKey === null)) { + _context9.next = 6; + break; + } + + throw new Error('No public key available.'); + + case 6: + _context9.next = 8; + return this.cryptoFunctionService.hash(publicKey, 'sha256'); + + case 8: + keyFingerprint = _context9.sent; + _context9.next = 11; + return this.cryptoFunctionService.hkdfExpand(keyFingerprint, userId, 32, 'sha256'); + + case 11: + userFingerprint = _context9.sent; + return _context9.abrupt("return", this.hashPhrase(userFingerprint)); + + case 13: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -225107,58 +226568,75 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getOrgKeys", value: function getOrgKeys() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var encOrgKeys, orgKeys, setKey, orgId, decValue; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - if (!(this.orgKeys != null && this.orgKeys.size > 0)) { - _context10.next = 2; - break; - } - return _context10.abrupt("return", this.orgKeys); - case 2: - _context10.next = 4; - return this.storageService.get(Keys.encOrgKeys); - case 4: - encOrgKeys = _context10.sent; - if (!(encOrgKeys == null)) { - _context10.next = 7; - break; - } - return _context10.abrupt("return", null); - case 7: - orgKeys = new Map(); - setKey = false; - _context10.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.keys(encOrgKeys); - case 10: - if ((_context10.t1 = _context10.t0()).done) { - _context10.next = 21; - break; - } - orgId = _context10.t1.value; - if (encOrgKeys.hasOwnProperty(orgId)) { - _context10.next = 14; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + if (!(this.orgKeys != null && this.orgKeys.size > 0)) { + _context10.next = 2; + break; + } + + return _context10.abrupt("return", this.orgKeys); + + case 2: + _context10.next = 4; + return this.storageService.get(Keys.encOrgKeys); + + case 4: + encOrgKeys = _context10.sent; + + if (!(encOrgKeys == null)) { + _context10.next = 7; + break; + } + + return _context10.abrupt("return", null); + + case 7: + orgKeys = new Map(); + setKey = false; + _context10.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.keys(encOrgKeys); + + case 10: + if ((_context10.t1 = _context10.t0()).done) { + _context10.next = 21; + break; + } + + orgId = _context10.t1.value; + + if (encOrgKeys.hasOwnProperty(orgId)) { + _context10.next = 14; + break; + } + + return _context10.abrupt("continue", 10); + + case 14: + _context10.next = 16; + return this.rsaDecrypt(encOrgKeys[orgId]); + + case 16: + decValue = _context10.sent; + orgKeys.set(orgId, new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](decValue)); + setKey = true; + _context10.next = 10; break; - } - return _context10.abrupt("continue", 10); - case 14: - _context10.next = 16; - return this.rsaDecrypt(encOrgKeys[orgId]); - case 16: - decValue = _context10.sent; - orgKeys.set(orgId, new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](decValue)); - setKey = true; - _context10.next = 10; - break; - case 21: - if (setKey) { - this.orgKeys = orgKeys; - } - return _context10.abrupt("return", this.orgKeys); - case 23: - case "end": - return _context10.stop(); + + case 21: + if (setKey) { + this.orgKeys = orgKeys; + } + + return _context10.abrupt("return", this.orgKeys); + + case 23: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -225166,31 +226644,40 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getOrgKey", value: function getOrgKey(orgId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var orgKeys; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - if (!(orgId == null)) { - _context11.next = 2; - break; - } - return _context11.abrupt("return", null); - case 2: - _context11.next = 4; - return this.getOrgKeys(); - case 4: - orgKeys = _context11.sent; - if (!(orgKeys == null || !orgKeys.has(orgId))) { - _context11.next = 7; - break; - } - return _context11.abrupt("return", null); - case 7: - return _context11.abrupt("return", orgKeys.get(orgId)); - case 8: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + if (!(orgId == null)) { + _context11.next = 2; + break; + } + + return _context11.abrupt("return", null); + + case 2: + _context11.next = 4; + return this.getOrgKeys(); + + case 4: + orgKeys = _context11.sent; + + if (!(orgKeys == null || !orgKeys.has(orgId))) { + _context11.next = 7; + break; + } + + return _context11.abrupt("return", null); + + case 7: + return _context11.abrupt("return", orgKeys.get(orgId)); + + case 8: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -225198,18 +226685,22 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "hasKey", value: function hasKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - _context12.next = 2; - return this.getKey(); - case 2: - _context12.t0 = _context12.sent; - return _context12.abrupt("return", _context12.t0 != null); - case 4: - case "end": - return _context12.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return this.getKey(); + + case 2: + _context12.t0 = _context12.sent; + return _context12.abrupt("return", _context12.t0 != null); + + case 4: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); @@ -225217,19 +226708,23 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "hasEncKey", value: function hasEncKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee13() { var encKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - _context13.next = 2; - return this.storageService.get(Keys.encKey); - case 2: - encKey = _context13.sent; - return _context13.abrupt("return", encKey != null); - case 4: - case "end": - return _context13.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + _context13.next = 2; + return this.storageService.get(Keys.encKey); + + case 2: + encKey = _context13.sent; + return _context13.abrupt("return", encKey != null); + + case 4: + case "end": + return _context13.stop(); + } } }, _callee13, this); })); @@ -225250,9 +226745,11 @@ var CryptoService = /*#__PURE__*/function () { key: "clearEncKey", value: function clearEncKey(memoryOnly) { this.encKey = null; + if (memoryOnly) { return Promise.resolve(); } + return this.storageService.remove(Keys.encKey); } }, { @@ -225260,18 +226757,22 @@ var CryptoService = /*#__PURE__*/function () { value: function clearKeyPair(memoryOnly) { this.privateKey = null; this.publicKey = null; + if (memoryOnly) { return Promise.resolve(); } + return this.storageService.remove(Keys.encPrivateKey); } }, { key: "clearOrgKeys", value: function clearOrgKeys(memoryOnly) { this.orgKeys = null; + if (memoryOnly) { return Promise.resolve(); } + return this.storageService.remove(Keys.encOrgKeys); } }, { @@ -225287,38 +226788,48 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "toggleKey", value: function toggleKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee14() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee14() { var key, option, biometric; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee14$(_context14) { - while (1) switch (_context14.prev = _context14.next) { - case 0: - _context14.next = 2; - return this.getKey(); - case 2: - key = _context14.sent; - _context14.next = 5; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].vaultTimeoutKey); - case 5: - option = _context14.sent; - _context14.next = 8; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].biometricUnlockKey); - case 8: - biometric = _context14.sent; - if (!(!biometric && this.platformUtilService.supportsSecureStorage() && (option != null || option === 0))) { - _context14.next = 14; - break; - } - _context14.next = 12; - return this.clearKey(); - case 12: - this.key = key; - return _context14.abrupt("return"); - case 14: - _context14.next = 16; - return this.setKey(key); - case 16: - case "end": - return _context14.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee14$(_context14) { + while (1) { + switch (_context14.prev = _context14.next) { + case 0: + _context14.next = 2; + return this.getKey(); + + case 2: + key = _context14.sent; + _context14.next = 5; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].vaultTimeoutKey); + + case 5: + option = _context14.sent; + _context14.next = 8; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].biometricUnlockKey); + + case 8: + biometric = _context14.sent; + + if (!(!biometric && this.platformUtilService.supportsSecureStorage() && (option != null || option === 0))) { + _context14.next = 14; + break; + } + + _context14.next = 12; + return this.clearKey(); + + case 12: + this.key = key; + return _context14.abrupt("return"); + + case 14: + _context14.next = 16; + return this.setKey(key); + + case 16: + case "end": + return _context14.stop(); + } } }, _callee14, this); })); @@ -225326,43 +226837,55 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "makeKey", value: function makeKey(password, salt, kdf, kdfIterations) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee15() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee15() { var key; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee15$(_context15) { - while (1) switch (_context15.prev = _context15.next) { - case 0: - key = null; - if (!(kdf == null || kdf === _enums_kdfType__WEBPACK_IMPORTED_MODULE_5__["KdfType"].PBKDF2_SHA256)) { - _context15.next = 13; - break; - } - if (!(kdfIterations == null)) { - _context15.next = 6; - break; - } - kdfIterations = 5000; - _context15.next = 8; - break; - case 6: - if (!(kdfIterations < 5000)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee15$(_context15) { + while (1) { + switch (_context15.prev = _context15.next) { + case 0: + key = null; + + if (!(kdf == null || kdf === _enums_kdfType__WEBPACK_IMPORTED_MODULE_5__["KdfType"].PBKDF2_SHA256)) { + _context15.next = 13; + break; + } + + if (!(kdfIterations == null)) { + _context15.next = 6; + break; + } + + kdfIterations = 5000; _context15.next = 8; break; - } - throw new Error('PBKDF2 iteration minimum is 5000.'); - case 8: - _context15.next = 10; - return this.cryptoFunctionService.pbkdf2(password, salt, 'sha256', kdfIterations); - case 10: - key = _context15.sent; - _context15.next = 14; - break; - case 13: - throw new Error('Unknown Kdf.'); - case 14: - return _context15.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](key)); - case 15: - case "end": - return _context15.stop(); + + case 6: + if (!(kdfIterations < 5000)) { + _context15.next = 8; + break; + } + + throw new Error('PBKDF2 iteration minimum is 5000.'); + + case 8: + _context15.next = 10; + return this.cryptoFunctionService.pbkdf2(password, salt, 'sha256', kdfIterations); + + case 10: + key = _context15.sent; + _context15.next = 14; + break; + + case 13: + throw new Error('Unknown Kdf.'); + + case 14: + return _context15.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](key)); + + case 15: + case "end": + return _context15.stop(); + } } }, _callee15, this); })); @@ -225371,39 +226894,50 @@ var CryptoService = /*#__PURE__*/function () { key: "makeKeyFromPin", value: function makeKeyFromPin(pin, salt, kdf, kdfIterations) { var protectedKeyCs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee16() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee16() { var pinProtectedKey, pinKey, decKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee16$(_context16) { - while (1) switch (_context16.prev = _context16.next) { - case 0: - if (!(protectedKeyCs == null)) { - _context16.next = 7; - break; - } - _context16.next = 3; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].pinProtectedKey); - case 3: - pinProtectedKey = _context16.sent; - if (!(pinProtectedKey == null)) { - _context16.next = 6; - break; - } - throw new Error('No PIN protected key found.'); - case 6: - protectedKeyCs = new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](pinProtectedKey); - case 7: - _context16.next = 9; - return this.makePinKey(pin, salt, kdf, kdfIterations); - case 9: - pinKey = _context16.sent; - _context16.next = 12; - return this.decryptToBytes(protectedKeyCs, pinKey); - case 12: - decKey = _context16.sent; - return _context16.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](decKey)); - case 14: - case "end": - return _context16.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee16$(_context16) { + while (1) { + switch (_context16.prev = _context16.next) { + case 0: + if (!(protectedKeyCs == null)) { + _context16.next = 7; + break; + } + + _context16.next = 3; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_9__["ConstantsService"].pinProtectedKey); + + case 3: + pinProtectedKey = _context16.sent; + + if (!(pinProtectedKey == null)) { + _context16.next = 6; + break; + } + + throw new Error('No PIN protected key found.'); + + case 6: + protectedKeyCs = new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](pinProtectedKey); + + case 7: + _context16.next = 9; + return this.makePinKey(pin, salt, kdf, kdfIterations); + + case 9: + pinKey = _context16.sent; + _context16.next = 12; + return this.decryptToBytes(protectedKeyCs, pinKey); + + case 12: + decKey = _context16.sent; + return _context16.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](decKey)); + + case 14: + case "end": + return _context16.stop(); + } } }, _callee16, this); })); @@ -225411,27 +226945,33 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "makeShareKey", value: function makeShareKey() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee17() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee17() { var shareKey, publicKey, encShareKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee17$(_context17) { - while (1) switch (_context17.prev = _context17.next) { - case 0: - _context17.next = 2; - return this.cryptoFunctionService.randomBytes(64); - case 2: - shareKey = _context17.sent; - _context17.next = 5; - return this.getPublicKey(); - case 5: - publicKey = _context17.sent; - _context17.next = 8; - return this.rsaEncrypt(shareKey, publicKey); - case 8: - encShareKey = _context17.sent; - return _context17.abrupt("return", [encShareKey, new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](shareKey)]); - case 10: - case "end": - return _context17.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee17$(_context17) { + while (1) { + switch (_context17.prev = _context17.next) { + case 0: + _context17.next = 2; + return this.cryptoFunctionService.randomBytes(64); + + case 2: + shareKey = _context17.sent; + _context17.next = 5; + return this.getPublicKey(); + + case 5: + publicKey = _context17.sent; + _context17.next = 8; + return this.rsaEncrypt(shareKey, publicKey); + + case 8: + encShareKey = _context17.sent; + return _context17.abrupt("return", [encShareKey, new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](shareKey)]); + + case 10: + case "end": + return _context17.stop(); + } } }, _callee17, this); })); @@ -225439,24 +226979,29 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "makeKeyPair", value: function makeKeyPair(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee18() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee18() { var keyPair, publicB64, privateEnc; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee18$(_context18) { - while (1) switch (_context18.prev = _context18.next) { - case 0: - _context18.next = 2; - return this.cryptoFunctionService.rsaGenerateKeyPair(2048); - case 2: - keyPair = _context18.sent; - publicB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(keyPair[0]); - _context18.next = 6; - return this.encrypt(keyPair[1], key); - case 6: - privateEnc = _context18.sent; - return _context18.abrupt("return", [publicB64, privateEnc]); - case 8: - case "end": - return _context18.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee18$(_context18) { + while (1) { + switch (_context18.prev = _context18.next) { + case 0: + _context18.next = 2; + return this.cryptoFunctionService.rsaGenerateKeyPair(2048); + + case 2: + keyPair = _context18.sent; + publicB64 = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(keyPair[0]); + _context18.next = 6; + return this.encrypt(keyPair[1], key); + + case 6: + privateEnc = _context18.sent; + return _context18.abrupt("return", [publicB64, privateEnc]); + + case 8: + case "end": + return _context18.stop(); + } } }, _callee18, this); })); @@ -225464,22 +227009,27 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "makePinKey", value: function makePinKey(pin, salt, kdf, kdfIterations) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee19() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee19() { var pinKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee19$(_context19) { - while (1) switch (_context19.prev = _context19.next) { - case 0: - _context19.next = 2; - return this.makeKey(pin, salt, kdf, kdfIterations); - case 2: - pinKey = _context19.sent; - _context19.next = 5; - return this.stretchKey(pinKey); - case 5: - return _context19.abrupt("return", _context19.sent); - case 6: - case "end": - return _context19.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee19$(_context19) { + while (1) { + switch (_context19.prev = _context19.next) { + case 0: + _context19.next = 2; + return this.makeKey(pin, salt, kdf, kdfIterations); + + case 2: + pinKey = _context19.sent; + _context19.next = 5; + return this.stretchKey(pinKey); + + case 5: + return _context19.abrupt("return", _context19.sent); + + case 6: + case "end": + return _context19.stop(); + } } }, _callee19, this); })); @@ -225487,19 +227037,23 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "makeSendKey", value: function makeSendKey(keyMaterial) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee20() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee20() { var sendKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee20$(_context20) { - while (1) switch (_context20.prev = _context20.next) { - case 0: - _context20.next = 2; - return this.cryptoFunctionService.hkdf(keyMaterial, 'bitwarden-send', 'send', 64, 'sha256'); - case 2: - sendKey = _context20.sent; - return _context20.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](sendKey)); - case 4: - case "end": - return _context20.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee20$(_context20) { + while (1) { + switch (_context20.prev = _context20.next) { + case 0: + _context20.next = 2; + return this.cryptoFunctionService.hkdf(keyMaterial, 'bitwarden-send', 'send', 64, 'sha256'); + + case 2: + sendKey = _context20.sent; + return _context20.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](sendKey)); + + case 4: + case "end": + return _context20.stop(); + } } }, _callee20, this); })); @@ -225507,34 +227061,43 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "hashPassword", value: function hashPassword(password, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee21() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee21() { var hash; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee21$(_context21) { - while (1) switch (_context21.prev = _context21.next) { - case 0: - if (!(key == null)) { - _context21.next = 4; - break; - } - _context21.next = 3; - return this.getKey(); - case 3: - key = _context21.sent; - case 4: - if (!(password == null || key == null)) { - _context21.next = 6; - break; - } - throw new Error('Invalid parameters.'); - case 6: - _context21.next = 8; - return this.cryptoFunctionService.pbkdf2(key.key, password, 'sha256', 1); - case 8: - hash = _context21.sent; - return _context21.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(hash)); - case 10: - case "end": - return _context21.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee21$(_context21) { + while (1) { + switch (_context21.prev = _context21.next) { + case 0: + if (!(key == null)) { + _context21.next = 4; + break; + } + + _context21.next = 3; + return this.getKey(); + + case 3: + key = _context21.sent; + + case 4: + if (!(password == null || key == null)) { + _context21.next = 6; + break; + } + + throw new Error('Invalid parameters.'); + + case 6: + _context21.next = 8; + return this.cryptoFunctionService.pbkdf2(key.key, password, 'sha256', 1); + + case 8: + hash = _context21.sent; + return _context21.abrupt("return", _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(hash)); + + case 10: + case "end": + return _context21.stop(); + } } }, _callee21, this); })); @@ -225542,23 +227105,28 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "makeEncKey", value: function makeEncKey(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee22() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee22() { var theKey, encKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee22$(_context22) { - while (1) switch (_context22.prev = _context22.next) { - case 0: - _context22.next = 2; - return this.getKeyForEncryption(key); - case 2: - theKey = _context22.sent; - _context22.next = 5; - return this.cryptoFunctionService.randomBytes(64); - case 5: - encKey = _context22.sent; - return _context22.abrupt("return", this.buildEncKey(theKey, encKey)); - case 7: - case "end": - return _context22.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee22$(_context22) { + while (1) { + switch (_context22.prev = _context22.next) { + case 0: + _context22.next = 2; + return this.getKeyForEncryption(key); + + case 2: + theKey = _context22.sent; + _context22.next = 5; + return this.cryptoFunctionService.randomBytes(64); + + case 5: + encKey = _context22.sent; + return _context22.abrupt("return", this.buildEncKey(theKey, encKey)); + + case 7: + case "end": + return _context22.stop(); + } } }, _callee22, this); })); @@ -225566,19 +227134,23 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "remakeEncKey", value: function remakeEncKey(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee23() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee23() { var encKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee23$(_context23) { - while (1) switch (_context23.prev = _context23.next) { - case 0: - _context23.next = 2; - return this.getEncKey(); - case 2: - encKey = _context23.sent; - return _context23.abrupt("return", this.buildEncKey(key, encKey.key)); - case 4: - case "end": - return _context23.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee23$(_context23) { + while (1) { + switch (_context23.prev = _context23.next) { + case 0: + _context23.next = 2; + return this.getEncKey(); + + case 2: + encKey = _context23.sent; + return _context23.abrupt("return", this.buildEncKey(key, encKey.key)); + + case 4: + case "end": + return _context23.stop(); + } } }, _callee23, this); })); @@ -225586,33 +227158,40 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "encrypt", value: function encrypt(plainValue, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee24() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee24() { var plainBuf, encObj, iv, data, mac; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee24$(_context24) { - while (1) switch (_context24.prev = _context24.next) { - case 0: - if (!(plainValue == null)) { - _context24.next = 2; - break; - } - return _context24.abrupt("return", Promise.resolve(null)); - case 2: - if (typeof plainValue === 'string') { - plainBuf = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromUtf8ToArray(plainValue).buffer; - } else { - plainBuf = plainValue; - } - _context24.next = 5; - return this.aesEncrypt(plainBuf, key); - case 5: - encObj = _context24.sent; - iv = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encObj.iv); - data = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encObj.data); - mac = encObj.mac != null ? _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encObj.mac) : null; - return _context24.abrupt("return", new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](encObj.key.encType, data, iv, mac)); - case 10: - case "end": - return _context24.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee24$(_context24) { + while (1) { + switch (_context24.prev = _context24.next) { + case 0: + if (!(plainValue == null)) { + _context24.next = 2; + break; + } + + return _context24.abrupt("return", Promise.resolve(null)); + + case 2: + if (typeof plainValue === 'string') { + plainBuf = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromUtf8ToArray(plainValue).buffer; + } else { + plainBuf = plainValue; + } + + _context24.next = 5; + return this.aesEncrypt(plainBuf, key); + + case 5: + encObj = _context24.sent; + iv = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encObj.iv); + data = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encObj.data); + mac = encObj.mac != null ? _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encObj.mac) : null; + return _context24.abrupt("return", new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](encObj.key.encType, data, iv, mac)); + + case 10: + case "end": + return _context24.stop(); + } } }, _callee24, this); })); @@ -225620,30 +227199,38 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "encryptToBytes", value: function encryptToBytes(plainValue, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee25() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee25() { var encValue, macLen, encBytes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee25$(_context25) { - while (1) switch (_context25.prev = _context25.next) { - case 0: - _context25.next = 2; - return this.aesEncrypt(plainValue, key); - case 2: - encValue = _context25.sent; - macLen = 0; - if (encValue.mac != null) { - macLen = encValue.mac.byteLength; - } - encBytes = new Uint8Array(1 + encValue.iv.byteLength + macLen + encValue.data.byteLength); - encBytes.set([encValue.key.encType]); - encBytes.set(new Uint8Array(encValue.iv), 1); - if (encValue.mac != null) { - encBytes.set(new Uint8Array(encValue.mac), 1 + encValue.iv.byteLength); - } - encBytes.set(new Uint8Array(encValue.data), 1 + encValue.iv.byteLength + macLen); - return _context25.abrupt("return", encBytes.buffer); - case 11: - case "end": - return _context25.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee25$(_context25) { + while (1) { + switch (_context25.prev = _context25.next) { + case 0: + _context25.next = 2; + return this.aesEncrypt(plainValue, key); + + case 2: + encValue = _context25.sent; + macLen = 0; + + if (encValue.mac != null) { + macLen = encValue.mac.byteLength; + } + + encBytes = new Uint8Array(1 + encValue.iv.byteLength + macLen + encValue.data.byteLength); + encBytes.set([encValue.key.encType]); + encBytes.set(new Uint8Array(encValue.iv), 1); + + if (encValue.mac != null) { + encBytes.set(new Uint8Array(encValue.mac), 1 + encValue.iv.byteLength); + } + + encBytes.set(new Uint8Array(encValue.data), 1 + encValue.iv.byteLength + macLen); + return _context25.abrupt("return", encBytes.buffer); + + case 11: + case "end": + return _context25.stop(); + } } }, _callee25, this); })); @@ -225651,63 +227238,79 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "rsaEncrypt", value: function rsaEncrypt(data, publicKey) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee26() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee26() { var encBytes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee26$(_context26) { - while (1) switch (_context26.prev = _context26.next) { - case 0: - if (!(publicKey == null)) { - _context26.next = 4; - break; - } - _context26.next = 3; - return this.getPublicKey(); - case 3: - publicKey = _context26.sent; - case 4: - if (!(publicKey == null)) { - _context26.next = 6; - break; - } - throw new Error('Public key unavailable.'); - case 6: - _context26.next = 8; - return this.cryptoFunctionService.rsaEncrypt(data, publicKey, 'sha1'); - case 8: - encBytes = _context26.sent; - return _context26.abrupt("return", new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](_enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_B64, _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encBytes))); - case 10: - case "end": - return _context26.stop(); - } - }, _callee26, this); - })); - } - }, { - key: "decryptToBytes", - value: function decryptToBytes(cipherString, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee27() { - var iv, data, mac, decipher; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee27$(_context27) { - while (1) switch (_context27.prev = _context27.next) { - case 0: - iv = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(cipherString.iv).buffer; - data = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(cipherString.data).buffer; - mac = cipherString.mac ? _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(cipherString.mac).buffer : null; - _context27.next = 5; - return this.aesDecryptToBytes(cipherString.encryptionType, data, iv, mac, key); - case 5: - decipher = _context27.sent; - if (!(decipher == null)) { - _context27.next = 8; - break; - } - return _context27.abrupt("return", null); - case 8: - return _context27.abrupt("return", decipher); - case 9: - case "end": - return _context27.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee26$(_context26) { + while (1) { + switch (_context26.prev = _context26.next) { + case 0: + if (!(publicKey == null)) { + _context26.next = 4; + break; + } + + _context26.next = 3; + return this.getPublicKey(); + + case 3: + publicKey = _context26.sent; + + case 4: + if (!(publicKey == null)) { + _context26.next = 6; + break; + } + + throw new Error('Public key unavailable.'); + + case 6: + _context26.next = 8; + return this.cryptoFunctionService.rsaEncrypt(data, publicKey, 'sha1'); + + case 8: + encBytes = _context26.sent; + return _context26.abrupt("return", new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_6__["CipherString"](_enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_B64, _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromBufferToB64(encBytes))); + + case 10: + case "end": + return _context26.stop(); + } + } + }, _callee26, this); + })); + } + }, { + key: "decryptToBytes", + value: function decryptToBytes(cipherString, key) { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee27() { + var iv, data, mac, decipher; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee27$(_context27) { + while (1) { + switch (_context27.prev = _context27.next) { + case 0: + iv = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(cipherString.iv).buffer; + data = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(cipherString.data).buffer; + mac = cipherString.mac ? _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(cipherString.mac).buffer : null; + _context27.next = 5; + return this.aesDecryptToBytes(cipherString.encryptionType, data, iv, mac, key); + + case 5: + decipher = _context27.sent; + + if (!(decipher == null)) { + _context27.next = 8; + break; + } + + return _context27.abrupt("return", null); + + case 8: + return _context27.abrupt("return", decipher); + + case 9: + case "end": + return _context27.stop(); + } } }, _callee27, this); })); @@ -225715,17 +227318,21 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "decryptToUtf8", value: function decryptToUtf8(cipherString, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee28() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee28$(_context28) { - while (1) switch (_context28.prev = _context28.next) { - case 0: - _context28.next = 2; - return this.aesDecryptToUtf8(cipherString.encryptionType, cipherString.data, cipherString.iv, cipherString.mac, key); - case 2: - return _context28.abrupt("return", _context28.sent); - case 3: - case "end": - return _context28.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee28() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee28$(_context28) { + while (1) { + switch (_context28.prev = _context28.next) { + case 0: + _context28.next = 2; + return this.aesDecryptToUtf8(cipherString.encryptionType, cipherString.data, cipherString.iv, cipherString.mac, key); + + case 2: + return _context28.abrupt("return", _context28.sent); + + case 3: + case "end": + return _context28.stop(); + } } }, _callee28, this); })); @@ -225733,148 +227340,185 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "decryptFromBytes", value: function decryptFromBytes(encBuf, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee29() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee29() { var encBytes, encType, ctBytes, ivBytes, macBytes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee29$(_context29) { - while (1) switch (_context29.prev = _context29.next) { - case 0: - if (!(encBuf == null)) { - _context29.next = 2; - break; - } - throw new Error('no encBuf.'); - case 2: - encBytes = new Uint8Array(encBuf); - encType = encBytes[0]; - ctBytes = null; - ivBytes = null; - macBytes = null; - _context29.t0 = encType; - _context29.next = _context29.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc128_HmacSha256_B64 ? 10 : _context29.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_HmacSha256_B64 ? 10 : _context29.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_B64 ? 16 : 21; - break; - case 10: - if (!(encBytes.length <= 49)) { - _context29.next = 12; - break; - } - return _context29.abrupt("return", null); - case 12: - ivBytes = encBytes.slice(1, 17); - macBytes = encBytes.slice(17, 49); - ctBytes = encBytes.slice(49); - return _context29.abrupt("break", 22); - case 16: - if (!(encBytes.length <= 17)) { - _context29.next = 18; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee29$(_context29) { + while (1) { + switch (_context29.prev = _context29.next) { + case 0: + if (!(encBuf == null)) { + _context29.next = 2; + break; + } + + throw new Error('no encBuf.'); + + case 2: + encBytes = new Uint8Array(encBuf); + encType = encBytes[0]; + ctBytes = null; + ivBytes = null; + macBytes = null; + _context29.t0 = encType; + _context29.next = _context29.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc128_HmacSha256_B64 ? 10 : _context29.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_HmacSha256_B64 ? 10 : _context29.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc256_B64 ? 16 : 21; break; - } - return _context29.abrupt("return", null); - case 18: - ivBytes = encBytes.slice(1, 17); - ctBytes = encBytes.slice(17); - return _context29.abrupt("break", 22); - case 21: - return _context29.abrupt("return", null); - case 22: - _context29.next = 24; - return this.aesDecryptToBytes(encType, ctBytes.buffer, ivBytes.buffer, macBytes != null ? macBytes.buffer : null, key); - case 24: - return _context29.abrupt("return", _context29.sent); - case 25: - case "end": - return _context29.stop(); + + case 10: + if (!(encBytes.length <= 49)) { + _context29.next = 12; + break; + } + + return _context29.abrupt("return", null); + + case 12: + ivBytes = encBytes.slice(1, 17); + macBytes = encBytes.slice(17, 49); + ctBytes = encBytes.slice(49); + return _context29.abrupt("break", 22); + + case 16: + if (!(encBytes.length <= 17)) { + _context29.next = 18; + break; + } + + return _context29.abrupt("return", null); + + case 18: + ivBytes = encBytes.slice(1, 17); + ctBytes = encBytes.slice(17); + return _context29.abrupt("break", 22); + + case 21: + return _context29.abrupt("return", null); + + case 22: + _context29.next = 24; + return this.aesDecryptToBytes(encType, ctBytes.buffer, ivBytes.buffer, macBytes != null ? macBytes.buffer : null, key); + + case 24: + return _context29.abrupt("return", _context29.sent); + + case 25: + case "end": + return _context29.stop(); + } } }, _callee29, this); })); - } - // EFForg/OpenWireless + } // EFForg/OpenWireless // ref https://github.com/EFForg/OpenWireless/blob/master/app/js/diceware.js + }, { key: "randomNumber", value: function randomNumber(min, max) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee30() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee30() { var rval, range, bitsNeeded, bytesNeeded, mask, byteArray, p, i; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee30$(_context30) { - while (1) switch (_context30.prev = _context30.next) { - case 0: - rval = 0; - range = max - min + 1; - bitsNeeded = Math.ceil(Math.log2(range)); - if (!(bitsNeeded > 53)) { - _context30.next = 5; - break; - } - throw new Error('We cannot generate numbers larger than 53 bits.'); - case 5: - bytesNeeded = Math.ceil(bitsNeeded / 8); - mask = Math.pow(2, bitsNeeded) - 1; // 7776 -> (2^13 = 8192) -1 == 8191 or 0x00001111 11111111 - // Fill a byte array with N random numbers - _context30.t0 = Uint8Array; - _context30.next = 10; - return this.cryptoFunctionService.randomBytes(bytesNeeded); - case 10: - _context30.t1 = _context30.sent; - byteArray = new _context30.t0(_context30.t1); - p = (bytesNeeded - 1) * 8; - for (i = 0; i < bytesNeeded; i++) { - rval += byteArray[i] * Math.pow(2, p); - p -= 8; - } - // Use & to apply the mask and reduce the number of recursive lookups - // tslint:disable-next-line - rval = rval & mask; - if (!(rval >= range)) { - _context30.next = 17; - break; - } - return _context30.abrupt("return", this.randomNumber(min, max)); - case 17: - return _context30.abrupt("return", min + rval); - case 18: - case "end": - return _context30.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee30$(_context30) { + while (1) { + switch (_context30.prev = _context30.next) { + case 0: + rval = 0; + range = max - min + 1; + bitsNeeded = Math.ceil(Math.log2(range)); + + if (!(bitsNeeded > 53)) { + _context30.next = 5; + break; + } + + throw new Error('We cannot generate numbers larger than 53 bits.'); + + case 5: + bytesNeeded = Math.ceil(bitsNeeded / 8); + mask = Math.pow(2, bitsNeeded) - 1; // 7776 -> (2^13 = 8192) -1 == 8191 or 0x00001111 11111111 + // Fill a byte array with N random numbers + + _context30.t0 = Uint8Array; + _context30.next = 10; + return this.cryptoFunctionService.randomBytes(bytesNeeded); + + case 10: + _context30.t1 = _context30.sent; + byteArray = new _context30.t0(_context30.t1); + p = (bytesNeeded - 1) * 8; + + for (i = 0; i < bytesNeeded; i++) { + rval += byteArray[i] * Math.pow(2, p); + p -= 8; + } // Use & to apply the mask and reduce the number of recursive lookups + // tslint:disable-next-line + + + rval = rval & mask; + + if (!(rval >= range)) { + _context30.next = 17; + break; + } + + return _context30.abrupt("return", this.randomNumber(min, max)); + + case 17: + return _context30.abrupt("return", min + rval); + + case 18: + case "end": + return _context30.stop(); + } } }, _callee30, this); })); - } - // Helpers + } // Helpers + }, { key: "aesEncrypt", value: function aesEncrypt(data, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee31() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee31() { var obj, macData; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee31$(_context31) { - while (1) switch (_context31.prev = _context31.next) { - case 0: - obj = new _models_domain_encryptedObject__WEBPACK_IMPORTED_MODULE_7__["EncryptedObject"](); - _context31.next = 3; - return this.getKeyForEncryption(key); - case 3: - obj.key = _context31.sent; - _context31.next = 6; - return this.cryptoFunctionService.randomBytes(16); - case 6: - obj.iv = _context31.sent; - _context31.next = 9; - return this.cryptoFunctionService.aesEncrypt(data, obj.iv, obj.key.encKey); - case 9: - obj.data = _context31.sent; - if (!(obj.key.macKey != null)) { - _context31.next = 17; - break; - } - macData = new Uint8Array(obj.iv.byteLength + obj.data.byteLength); - macData.set(new Uint8Array(obj.iv), 0); - macData.set(new Uint8Array(obj.data), obj.iv.byteLength); - _context31.next = 16; - return this.cryptoFunctionService.hmac(macData.buffer, obj.key.macKey, 'sha256'); - case 16: - obj.mac = _context31.sent; - case 17: - return _context31.abrupt("return", obj); - case 18: - case "end": - return _context31.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee31$(_context31) { + while (1) { + switch (_context31.prev = _context31.next) { + case 0: + obj = new _models_domain_encryptedObject__WEBPACK_IMPORTED_MODULE_7__["EncryptedObject"](); + _context31.next = 3; + return this.getKeyForEncryption(key); + + case 3: + obj.key = _context31.sent; + _context31.next = 6; + return this.cryptoFunctionService.randomBytes(16); + + case 6: + obj.iv = _context31.sent; + _context31.next = 9; + return this.cryptoFunctionService.aesEncrypt(data, obj.iv, obj.key.encKey); + + case 9: + obj.data = _context31.sent; + + if (!(obj.key.macKey != null)) { + _context31.next = 17; + break; + } + + macData = new Uint8Array(obj.iv.byteLength + obj.data.byteLength); + macData.set(new Uint8Array(obj.iv), 0); + macData.set(new Uint8Array(obj.data), obj.iv.byteLength); + _context31.next = 16; + return this.cryptoFunctionService.hmac(macData.buffer, obj.key.macKey, 'sha256'); + + case 16: + obj.mac = _context31.sent; + + case 17: + return _context31.abrupt("return", obj); + + case 18: + case "end": + return _context31.stop(); + } } }, _callee31, this); })); @@ -225882,57 +227526,73 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "aesDecryptToUtf8", value: function aesDecryptToUtf8(encType, data, iv, mac, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee32() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee32() { var keyForEnc, theKey, fastParams, computedMac, macsEqual; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee32$(_context32) { - while (1) switch (_context32.prev = _context32.next) { - case 0: - _context32.next = 2; - return this.getKeyForEncryption(key); - case 2: - keyForEnc = _context32.sent; - theKey = this.resolveLegacyKey(encType, keyForEnc); - if (!(theKey.macKey != null && mac == null)) { - _context32.next = 7; - break; - } - // tslint:disable-next-line - console.error('mac required.'); - return _context32.abrupt("return", null); - case 7: - if (!(theKey.encType !== encType)) { - _context32.next = 10; - break; - } - // tslint:disable-next-line - console.error('encType unavailable.'); - return _context32.abrupt("return", null); - case 10: - fastParams = this.cryptoFunctionService.aesDecryptFastParameters(data, iv, mac, theKey); - if (!(fastParams.macKey != null && fastParams.mac != null)) { - _context32.next = 21; - break; - } - _context32.next = 14; - return this.cryptoFunctionService.hmacFast(fastParams.macData, fastParams.macKey, 'sha256'); - case 14: - computedMac = _context32.sent; - _context32.next = 17; - return this.cryptoFunctionService.compareFast(fastParams.mac, computedMac); - case 17: - macsEqual = _context32.sent; - if (macsEqual) { - _context32.next = 21; - break; - } - // tslint:disable-next-line - console.error('mac failed.'); - return _context32.abrupt("return", null); - case 21: - return _context32.abrupt("return", this.cryptoFunctionService.aesDecryptFast(fastParams)); - case 22: - case "end": - return _context32.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee32$(_context32) { + while (1) { + switch (_context32.prev = _context32.next) { + case 0: + _context32.next = 2; + return this.getKeyForEncryption(key); + + case 2: + keyForEnc = _context32.sent; + theKey = this.resolveLegacyKey(encType, keyForEnc); + + if (!(theKey.macKey != null && mac == null)) { + _context32.next = 7; + break; + } + + // tslint:disable-next-line + console.error('mac required.'); + return _context32.abrupt("return", null); + + case 7: + if (!(theKey.encType !== encType)) { + _context32.next = 10; + break; + } + + // tslint:disable-next-line + console.error('encType unavailable.'); + return _context32.abrupt("return", null); + + case 10: + fastParams = this.cryptoFunctionService.aesDecryptFastParameters(data, iv, mac, theKey); + + if (!(fastParams.macKey != null && fastParams.mac != null)) { + _context32.next = 21; + break; + } + + _context32.next = 14; + return this.cryptoFunctionService.hmacFast(fastParams.macData, fastParams.macKey, 'sha256'); + + case 14: + computedMac = _context32.sent; + _context32.next = 17; + return this.cryptoFunctionService.compareFast(fastParams.mac, computedMac); + + case 17: + macsEqual = _context32.sent; + + if (macsEqual) { + _context32.next = 21; + break; + } + + // tslint:disable-next-line + console.error('mac failed.'); + return _context32.abrupt("return", null); + + case 21: + return _context32.abrupt("return", this.cryptoFunctionService.aesDecryptFast(fastParams)); + + case 22: + case "end": + return _context32.stop(); + } } }, _callee32, this); })); @@ -225940,64 +227600,83 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "aesDecryptToBytes", value: function aesDecryptToBytes(encType, data, iv, mac, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee33() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee33() { var keyForEnc, theKey, macData, computedMac, macsMatch; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee33$(_context33) { - while (1) switch (_context33.prev = _context33.next) { - case 0: - _context33.next = 2; - return this.getKeyForEncryption(key); - case 2: - keyForEnc = _context33.sent; - theKey = this.resolveLegacyKey(encType, keyForEnc); - if (!(theKey.macKey != null && mac == null)) { - _context33.next = 6; - break; - } - return _context33.abrupt("return", null); - case 6: - if (!(theKey.encType !== encType)) { - _context33.next = 8; - break; - } - return _context33.abrupt("return", null); - case 8: - if (!(theKey.macKey != null && mac != null)) { - _context33.next = 23; - break; - } - macData = new Uint8Array(iv.byteLength + data.byteLength); - macData.set(new Uint8Array(iv), 0); - macData.set(new Uint8Array(data), iv.byteLength); - _context33.next = 14; - return this.cryptoFunctionService.hmac(macData.buffer, theKey.macKey, 'sha256'); - case 14: - computedMac = _context33.sent; - if (!(computedMac === null)) { - _context33.next = 17; - break; - } - return _context33.abrupt("return", null); - case 17: - _context33.next = 19; - return this.cryptoFunctionService.compare(mac, computedMac); - case 19: - macsMatch = _context33.sent; - if (macsMatch) { - _context33.next = 23; - break; - } - // tslint:disable-next-line - console.error('mac failed.'); - return _context33.abrupt("return", null); - case 23: - _context33.next = 25; - return this.cryptoFunctionService.aesDecrypt(data, iv, theKey.encKey); - case 25: - return _context33.abrupt("return", _context33.sent); - case 26: - case "end": - return _context33.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee33$(_context33) { + while (1) { + switch (_context33.prev = _context33.next) { + case 0: + _context33.next = 2; + return this.getKeyForEncryption(key); + + case 2: + keyForEnc = _context33.sent; + theKey = this.resolveLegacyKey(encType, keyForEnc); + + if (!(theKey.macKey != null && mac == null)) { + _context33.next = 6; + break; + } + + return _context33.abrupt("return", null); + + case 6: + if (!(theKey.encType !== encType)) { + _context33.next = 8; + break; + } + + return _context33.abrupt("return", null); + + case 8: + if (!(theKey.macKey != null && mac != null)) { + _context33.next = 23; + break; + } + + macData = new Uint8Array(iv.byteLength + data.byteLength); + macData.set(new Uint8Array(iv), 0); + macData.set(new Uint8Array(data), iv.byteLength); + _context33.next = 14; + return this.cryptoFunctionService.hmac(macData.buffer, theKey.macKey, 'sha256'); + + case 14: + computedMac = _context33.sent; + + if (!(computedMac === null)) { + _context33.next = 17; + break; + } + + return _context33.abrupt("return", null); + + case 17: + _context33.next = 19; + return this.cryptoFunctionService.compare(mac, computedMac); + + case 19: + macsMatch = _context33.sent; + + if (macsMatch) { + _context33.next = 23; + break; + } + + // tslint:disable-next-line + console.error('mac failed.'); + return _context33.abrupt("return", null); + + case 23: + _context33.next = 25; + return this.cryptoFunctionService.aesDecrypt(data, iv, theKey.encKey); + + case 25: + return _context33.abrupt("return", _context33.sent); + + case 26: + case "end": + return _context33.stop(); + } } }, _callee33, this); })); @@ -226005,63 +227684,81 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "rsaDecrypt", value: function rsaDecrypt(encValue) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee34() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee34() { var headerPieces, encType, encPieces, data, privateKey, alg; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee34$(_context34) { - while (1) switch (_context34.prev = _context34.next) { - case 0: - headerPieces = encValue.split('.'); - encType = null; - if (headerPieces.length === 1) { - encType = _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_B64; - encPieces = [headerPieces[0]]; - } else if (headerPieces.length === 2) { - try { - encType = parseInt(headerPieces[0], null); - encPieces = headerPieces[1].split('|'); - } catch (e) {} - } - _context34.t0 = encType; - _context34.next = _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_B64 ? 6 : _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_B64 ? 6 : _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_HmacSha256_B64 ? 6 : _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_HmacSha256_B64 ? 6 : 7; - break; - case 6: - return _context34.abrupt("break", 8); - case 7: - throw new Error('encType unavailable.'); - case 8: - if (!(encPieces == null || encPieces.length <= 0)) { - _context34.next = 10; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee34$(_context34) { + while (1) { + switch (_context34.prev = _context34.next) { + case 0: + headerPieces = encValue.split('.'); + encType = null; + + if (headerPieces.length === 1) { + encType = _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_B64; + encPieces = [headerPieces[0]]; + } else if (headerPieces.length === 2) { + try { + encType = parseInt(headerPieces[0], null); + encPieces = headerPieces[1].split('|'); + } catch (e) {} + } + + _context34.t0 = encType; + _context34.next = _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_B64 ? 6 : _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_B64 ? 6 : _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_HmacSha256_B64 ? 6 : _context34.t0 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_HmacSha256_B64 ? 6 : 7; break; - } - throw new Error('encPieces unavailable.'); - case 10: - data = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(encPieces[0]).buffer; - _context34.next = 13; - return this.getPrivateKey(); - case 13: - privateKey = _context34.sent; - if (!(privateKey == null)) { - _context34.next = 16; + + case 6: + return _context34.abrupt("break", 8); + + case 7: + throw new Error('encType unavailable.'); + + case 8: + if (!(encPieces == null || encPieces.length <= 0)) { + _context34.next = 10; + break; + } + + throw new Error('encPieces unavailable.'); + + case 10: + data = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].fromB64ToArray(encPieces[0]).buffer; + _context34.next = 13; + return this.getPrivateKey(); + + case 13: + privateKey = _context34.sent; + + if (!(privateKey == null)) { + _context34.next = 16; + break; + } + + throw new Error('No private key.'); + + case 16: + alg = 'sha1'; + _context34.t1 = encType; + _context34.next = _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_B64 ? 20 : _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_HmacSha256_B64 ? 20 : _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_B64 ? 22 : _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_HmacSha256_B64 ? 22 : 23; break; - } - throw new Error('No private key.'); - case 16: - alg = 'sha1'; - _context34.t1 = encType; - _context34.next = _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_B64 ? 20 : _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha256_HmacSha256_B64 ? 20 : _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_B64 ? 22 : _context34.t1 === _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].Rsa2048_OaepSha1_HmacSha256_B64 ? 22 : 23; - break; - case 20: - alg = 'sha256'; - return _context34.abrupt("break", 24); - case 22: - return _context34.abrupt("break", 24); - case 23: - throw new Error('encType unavailable.'); - case 24: - return _context34.abrupt("return", this.cryptoFunctionService.rsaDecrypt(data, privateKey, alg)); - case 25: - case "end": - return _context34.stop(); + + case 20: + alg = 'sha256'; + return _context34.abrupt("break", 24); + + case 22: + return _context34.abrupt("break", 24); + + case 23: + throw new Error('encType unavailable.'); + + case 24: + return _context34.abrupt("return", this.cryptoFunctionService.rsaDecrypt(data, privateKey, alg)); + + case 25: + case "end": + return _context34.stop(); + } } }, _callee34, this); })); @@ -226069,34 +227766,44 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "getKeyForEncryption", value: function getKeyForEncryption(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee35() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee35() { var encKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee35$(_context35) { - while (1) switch (_context35.prev = _context35.next) { - case 0: - if (!(key != null)) { - _context35.next = 2; - break; - } - return _context35.abrupt("return", key); - case 2: - _context35.next = 4; - return this.getEncKey(); - case 4: - encKey = _context35.sent; - if (!(encKey != null)) { - _context35.next = 7; - break; - } - return _context35.abrupt("return", encKey); - case 7: - _context35.next = 9; - return this.getKey(); - case 9: - return _context35.abrupt("return", _context35.sent); - case 10: - case "end": - return _context35.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee35$(_context35) { + while (1) { + switch (_context35.prev = _context35.next) { + case 0: + if (!(key != null)) { + _context35.next = 2; + break; + } + + return _context35.abrupt("return", key); + + case 2: + _context35.next = 4; + return this.getEncKey(); + + case 4: + encKey = _context35.sent; + + if (!(encKey != null)) { + _context35.next = 7; + break; + } + + return _context35.abrupt("return", encKey); + + case 7: + _context35.next = 9; + return this.getKey(); + + case 9: + return _context35.abrupt("return", _context35.sent); + + case 10: + case "end": + return _context35.stop(); + } } }, _callee35, this); })); @@ -226109,33 +227816,40 @@ var CryptoService = /*#__PURE__*/function () { if (this.legacyEtmKey == null) { this.legacyEtmKey = new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](key.key, _enums_encryptionType__WEBPACK_IMPORTED_MODULE_4__["EncryptionType"].AesCbc128_HmacSha256_B64); } + return this.legacyEtmKey; } + return key; } }, { key: "stretchKey", value: function stretchKey(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee36() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee36() { var newKey, encKey, macKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee36$(_context36) { - while (1) switch (_context36.prev = _context36.next) { - case 0: - newKey = new Uint8Array(64); - _context36.next = 3; - return this.cryptoFunctionService.hkdfExpand(key.key, 'enc', 32, 'sha256'); - case 3: - encKey = _context36.sent; - _context36.next = 6; - return this.cryptoFunctionService.hkdfExpand(key.key, 'mac', 32, 'sha256'); - case 6: - macKey = _context36.sent; - newKey.set(new Uint8Array(encKey)); - newKey.set(new Uint8Array(macKey), 32); - return _context36.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](newKey.buffer)); - case 10: - case "end": - return _context36.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee36$(_context36) { + while (1) { + switch (_context36.prev = _context36.next) { + case 0: + newKey = new Uint8Array(64); + _context36.next = 3; + return this.cryptoFunctionService.hkdfExpand(key.key, 'enc', 32, 'sha256'); + + case 3: + encKey = _context36.sent; + _context36.next = 6; + return this.cryptoFunctionService.hkdfExpand(key.key, 'mac', 32, 'sha256'); + + case 6: + macKey = _context36.sent; + newKey.set(new Uint8Array(encKey)); + newKey.set(new Uint8Array(macKey), 32); + return _context36.abrupt("return", new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](newKey.buffer)); + + case 10: + case "end": + return _context36.stop(); + } } }, _callee36, this); })); @@ -226144,32 +227858,40 @@ var CryptoService = /*#__PURE__*/function () { key: "hashPhrase", value: function hashPhrase(hash) { var minimumEntropy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 64; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee37() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee37() { var entropyPerWord, numWords, hashArr, entropyAvailable, phrase, hashNumber, remainder; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee37$(_context37) { - while (1) switch (_context37.prev = _context37.next) { - case 0: - entropyPerWord = Math.log(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"].length) / Math.log(2); - numWords = Math.ceil(minimumEntropy / entropyPerWord); - hashArr = Array.from(new Uint8Array(hash)); - entropyAvailable = hashArr.length * 4; - if (!(numWords * entropyPerWord > entropyAvailable)) { - _context37.next = 6; - break; - } - throw new Error('Output entropy of hash function is too small'); - case 6: - phrase = []; - hashNumber = big_integer__WEBPACK_IMPORTED_MODULE_3__["fromArray"](hashArr, 256); - while (numWords--) { - remainder = hashNumber.mod(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"].length); - hashNumber = hashNumber.divide(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"].length); - phrase.push(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"][remainder]); - } - return _context37.abrupt("return", phrase); - case 10: - case "end": - return _context37.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee37$(_context37) { + while (1) { + switch (_context37.prev = _context37.next) { + case 0: + entropyPerWord = Math.log(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"].length) / Math.log(2); + numWords = Math.ceil(minimumEntropy / entropyPerWord); + hashArr = Array.from(new Uint8Array(hash)); + entropyAvailable = hashArr.length * 4; + + if (!(numWords * entropyPerWord > entropyAvailable)) { + _context37.next = 6; + break; + } + + throw new Error('Output entropy of hash function is too small'); + + case 6: + phrase = []; + hashNumber = big_integer__WEBPACK_IMPORTED_MODULE_3__["fromArray"](hashArr, 256); + + while (numWords--) { + remainder = hashNumber.mod(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"].length); + hashNumber = hashNumber.divide(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"].length); + phrase.push(_stubs_null_js__WEBPACK_IMPORTED_MODULE_12__["EEFLongWordList"][remainder]); + } + + return _context37.abrupt("return", phrase); + + case 10: + case "end": + return _context37.stop(); + } } }, _callee37); })); @@ -226177,54 +227899,69 @@ var CryptoService = /*#__PURE__*/function () { }, { key: "buildEncKey", value: function buildEncKey(key, encKey) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee38() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee38() { var encKeyEnc, newKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee38$(_context38) { - while (1) switch (_context38.prev = _context38.next) { - case 0: - encKeyEnc = null; - if (!(key.key.byteLength === 32)) { - _context38.next = 10; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee38$(_context38) { + while (1) { + switch (_context38.prev = _context38.next) { + case 0: + encKeyEnc = null; + + if (!(key.key.byteLength === 32)) { + _context38.next = 10; + break; + } + + _context38.next = 4; + return this.stretchKey(key); + + case 4: + newKey = _context38.sent; + _context38.next = 7; + return this.encrypt(encKey, newKey); + + case 7: + encKeyEnc = _context38.sent; + _context38.next = 17; break; - } - _context38.next = 4; - return this.stretchKey(key); - case 4: - newKey = _context38.sent; - _context38.next = 7; - return this.encrypt(encKey, newKey); - case 7: - encKeyEnc = _context38.sent; - _context38.next = 17; - break; - case 10: - if (!(key.key.byteLength === 64)) { - _context38.next = 16; + + case 10: + if (!(key.key.byteLength === 64)) { + _context38.next = 16; + break; + } + + _context38.next = 13; + return this.encrypt(encKey, key); + + case 13: + encKeyEnc = _context38.sent; + _context38.next = 17; break; - } - _context38.next = 13; - return this.encrypt(encKey, key); - case 13: - encKeyEnc = _context38.sent; - _context38.next = 17; - break; - case 16: - throw new Error('Invalid key size.'); - case 17: - return _context38.abrupt("return", [new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](encKey), encKeyEnc]); - case 18: - case "end": - return _context38.stop(); + + case 16: + throw new Error('Invalid key size.'); + + case 17: + return _context38.abrupt("return", [new _models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"](encKey), encKeyEnc]); + + case 18: + case "end": + return _context38.stop(); + } } }, _callee38, this); })); } }]); + return CryptoService; }(); + __decorate([Object(_misc_sequentialize__WEBPACK_IMPORTED_MODULE_10__["sequentialize"])(function () { return 'getEncKey'; }), __metadata("design:type", Function), __metadata("design:paramtypes", [_models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_8__["SymmetricCryptoKey"]]), __metadata("design:returntype", Promise)], CryptoService.prototype, "getEncKey", null); + __decorate([Object(_misc_sequentialize__WEBPACK_IMPORTED_MODULE_10__["sequentialize"])(function () { return 'getOrgKeys'; }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], CryptoService.prototype, "getOrgKeys", null); @@ -226546,21 +228283,20 @@ function _getEventFilterUrl(event) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FieldData", function() { return FieldData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var FieldData = function FieldData(response) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FieldData); -var FieldData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function FieldData(response) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FieldData); if (response == null) { return; } + this.type = response.type; this.name = response.name; this.value = response.value; -}); +}; /***/ }), @@ -227466,9 +229202,11 @@ __webpack_require__.r(__webpack_exports__); var ContainerService = /*#__PURE__*/function () { function ContainerService(cryptoService) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ContainerService); + this.cryptoService = cryptoService; - } - // deprecated, use attachToGlobal instead + } // deprecated, use attachToGlobal instead + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContainerService, [{ key: "attachToWindow", value: function attachToWindow(win) { @@ -227487,6 +229225,7 @@ var ContainerService = /*#__PURE__*/function () { return this.cryptoService; } }]); + return ContainerService; }(); @@ -228354,13 +230093,16 @@ __webpack_require__.r(__webpack_exports__); var VaultUnlockPlaceholder = function VaultUnlockPlaceholder(_ref) { var unlockFormPropsProp = _ref.unlockFormProps; + var _useVaultUnlockContex = Object(_vaultUnlockContext__WEBPACK_IMPORTED_MODULE_2__["useVaultUnlockContext"])(), - showingUnlockForm = _useVaultUnlockContex.showingUnlockForm, - unlockFormProps = _useVaultUnlockContex.unlockFormProps; + showingUnlockForm = _useVaultUnlockContex.showingUnlockForm, + unlockFormProps = _useVaultUnlockContex.unlockFormProps; + if (!showingUnlockForm) { return null; } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_VaultUnlocker__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, unlockFormProps, unlockFormPropsProp)); + + return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_VaultUnlocker__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, unlockFormProps, unlockFormPropsProp)); }; /* harmony default export */ __webpack_exports__["default"] = (VaultUnlockPlaceholder); @@ -228372,12 +230114,13 @@ var VaultUnlockPlaceholder = function VaultUnlockPlaceholder(_ref) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I18nService", function() { return I18nService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); + @@ -228387,6 +230130,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -228395,6 +230139,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -228402,76 +230147,95 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var I18nService = /*#__PURE__*/function () { function I18nService(systemLanguage, localesDirectory, getLocalesJson) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, I18nService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, I18nService); + this.systemLanguage = systemLanguage; this.localesDirectory = localesDirectory; - this.getLocalesJson = getLocalesJson; - // First locale is the default (English) + this.getLocalesJson = getLocalesJson; // First locale is the default (English) + this.supportedTranslationLocales = ['en']; this.localeNames = new Map([['af', 'Afrikaans'], ['be', 'Беларуская'], ['bg', 'български'], ['ca', 'català'], ['cs', 'čeština'], ['da', 'dansk'], ['de', 'Deutsch'], ['el', 'Ελληνικά'], ['en', 'English'], ['en-GB', 'English (British)'], ['eo', 'Esperanto'], ['es', 'español'], ['et', 'eesti'], ['fa', 'فارسی'], ['fi', 'suomi'], ['fr', 'français'], ['he', 'עברית'], ['hi', 'हिन्दी'], ['hr', 'hrvatski'], ['hu', 'magyar'], ['id', 'Bahasa Indonesia'], ['it', 'italiano'], ['ja', '日本語'], ['ko', '한국어'], ['lv', 'Latvietis'], ['ml', 'മലയാളം'], ['nb', 'norsk (bokmål)'], ['nl', 'Nederlands'], ['pl', 'polski'], ['pt-BR', 'português do Brasil'], ['pt-PT', 'português'], ['ro', 'română'], ['ru', 'русский'], ['sk', 'slovenčina'], ['sr', 'Српски'], ['sv', 'svenska'], ['th', 'ไทย'], ['tr', 'Türkçe'], ['uk', 'українська'], ['vi', 'Tiếng Việt'], ['zh-CN', '中文(中国大陆)'], ['zh-TW', '中文(台灣)']]); this.defaultMessages = {}; this.localeMessages = {}; this.systemLanguage = systemLanguage.replace('_', '-'); } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(I18nService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(I18nService, [{ key: "init", value: function init(locale) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!this.inited) { - _context.next = 2; - break; - } - throw new Error('i18n already initialized.'); - case 2: - if (!(this.supportedTranslationLocales == null || this.supportedTranslationLocales.length === 0)) { - _context.next = 4; - break; - } - throw new Error('supportedTranslationLocales not set.'); - case 4: - this.inited = true; - this.locale = this.translationLocale = locale != null ? locale : this.systemLanguage; - try { - this.collator = new Intl.Collator(this.locale, { - numeric: true, - sensitivity: 'base' - }); - } catch (_a) { - this.collator = null; - } - if (this.supportedTranslationLocales.indexOf(this.translationLocale) === -1) { - this.translationLocale = this.translationLocale.slice(0, 2); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!this.inited) { + _context.next = 2; + break; + } + + throw new Error('i18n already initialized.'); + + case 2: + if (!(this.supportedTranslationLocales == null || this.supportedTranslationLocales.length === 0)) { + _context.next = 4; + break; + } + + throw new Error('supportedTranslationLocales not set.'); + + case 4: + this.inited = true; + this.locale = this.translationLocale = locale != null ? locale : this.systemLanguage; + + try { + this.collator = new Intl.Collator(this.locale, { + numeric: true, + sensitivity: 'base' + }); + } catch (_a) { + this.collator = null; + } + if (this.supportedTranslationLocales.indexOf(this.translationLocale) === -1) { - this.translationLocale = this.supportedTranslationLocales[0]; + this.translationLocale = this.translationLocale.slice(0, 2); + + if (this.supportedTranslationLocales.indexOf(this.translationLocale) === -1) { + this.translationLocale = this.supportedTranslationLocales[0]; + } } - } - if (!(this.localesDirectory != null)) { - _context.next = 14; - break; - } - _context.next = 11; - return this.loadMessages(this.translationLocale, this.localeMessages); - case 11: - if (!(this.translationLocale !== this.supportedTranslationLocales[0])) { + + if (!(this.localesDirectory != null)) { + _context.next = 14; + break; + } + + _context.next = 11; + return this.loadMessages(this.translationLocale, this.localeMessages); + + case 11: + if (!(this.translationLocale !== this.supportedTranslationLocales[0])) { + _context.next = 14; + break; + } + _context.next = 14; - break; - } - _context.next = 14; - return this.loadMessages(this.supportedTranslationLocales[0], this.defaultMessages); - case 14: - case "end": - return _context.stop(); + return this.loadMessages(this.supportedTranslationLocales[0], this.defaultMessages); + + case 14: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -228485,6 +230249,7 @@ var I18nService = /*#__PURE__*/function () { key: "translate", value: function translate(id, p1, p2, p3) { var result; + if (this.localeMessages.hasOwnProperty(id) && this.localeMessages[id]) { result = this.localeMessages[id]; } else if (this.defaultMessages.hasOwnProperty(id) && this.defaultMessages[id]) { @@ -228492,82 +230257,106 @@ var I18nService = /*#__PURE__*/function () { } else { result = ''; } + if (result !== '') { if (p1 != null) { result = result.split('__$1__').join(p1); } + if (p2 != null) { result = result.split('__$2__').join(p2); } + if (p3 != null) { result = result.split('__$3__').join(p3); } } + return result; } }, { key: "loadMessages", value: function loadMessages(locale, messagesObj) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var formattedLocale, locales, prop, placeProp, replaceToken, replaceContent; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - formattedLocale = locale.replace('-', '_'); - _context2.next = 3; - return this.getLocalesJson(formattedLocale); - case 3: - locales = _context2.sent; - _context2.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.keys(locales); - case 5: - if ((_context2.t1 = _context2.t0()).done) { - _context2.next = 24; - break; - } - prop = _context2.t1.value; - if (locales.hasOwnProperty(prop)) { - _context2.next = 9; - break; - } - return _context2.abrupt("continue", 5); - case 9: - messagesObj[prop] = locales[prop].message; - if (!locales[prop].placeholders) { - _context2.next = 22; - break; - } - _context2.t2 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.keys(locales[prop].placeholders); - case 12: - if ((_context2.t3 = _context2.t2()).done) { - _context2.next = 22; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + formattedLocale = locale.replace('-', '_'); + _context2.next = 3; + return this.getLocalesJson(formattedLocale); + + case 3: + locales = _context2.sent; + _context2.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.keys(locales); + + case 5: + if ((_context2.t1 = _context2.t0()).done) { + _context2.next = 24; + break; + } + + prop = _context2.t1.value; + + if (locales.hasOwnProperty(prop)) { + _context2.next = 9; + break; + } + + return _context2.abrupt("continue", 5); + + case 9: + messagesObj[prop] = locales[prop].message; + + if (!locales[prop].placeholders) { + _context2.next = 22; + break; + } + + _context2.t2 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.keys(locales[prop].placeholders); + + case 12: + if ((_context2.t3 = _context2.t2()).done) { + _context2.next = 22; + break; + } + + placeProp = _context2.t3.value; + + if (!(!locales[prop].placeholders.hasOwnProperty(placeProp) || !locales[prop].placeholders[placeProp].content)) { + _context2.next = 16; + break; + } + + return _context2.abrupt("continue", 12); + + case 16: + replaceToken = '\\$' + placeProp.toUpperCase() + '\\$'; + replaceContent = locales[prop].placeholders[placeProp].content; + + if (replaceContent === '$1' || replaceContent === '$2' || replaceContent === '$3') { + replaceContent = '__$' + replaceContent + '__'; + } + + messagesObj[prop] = messagesObj[prop].replace(new RegExp(replaceToken, 'g'), replaceContent); + _context2.next = 12; break; - } - placeProp = _context2.t3.value; - if (!(!locales[prop].placeholders.hasOwnProperty(placeProp) || !locales[prop].placeholders[placeProp].content)) { - _context2.next = 16; + + case 22: + _context2.next = 5; break; - } - return _context2.abrupt("continue", 12); - case 16: - replaceToken = '\\$' + placeProp.toUpperCase() + '\\$'; - replaceContent = locales[prop].placeholders[placeProp].content; - if (replaceContent === '$1' || replaceContent === '$2' || replaceContent === '$3') { - replaceContent = '__$' + replaceContent + '__'; - } - messagesObj[prop] = messagesObj[prop].replace(new RegExp(replaceToken, 'g'), replaceContent); - _context2.next = 12; - break; - case 22: - _context2.next = 5; - break; - case 24: - case "end": - return _context2.stop(); + + case 24: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); } }]); + return I18nService; }(); @@ -228816,9 +230605,11 @@ __webpack_require__.r(__webpack_exports__); var Organization = /*#__PURE__*/function () { function Organization(obj) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Organization); + if (obj == null) { return; } + this.id = obj.id; this.name = obj.name; this.status = obj.status; @@ -228841,12 +230632,14 @@ var Organization = /*#__PURE__*/function () { this.ssoBound = obj.ssoBound; this.identifier = obj.identifier; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Organization, [{ key: "canAccess", get: function get() { if (this.type === _enums_organizationUserType__WEBPACK_IMPORTED_MODULE_3__["OrganizationUserType"].Owner) { return true; } + return this.enabled && this.status === _enums_organizationUserStatusType__WEBPACK_IMPORTED_MODULE_2__["OrganizationUserStatusType"].Confirmed; } }, { @@ -228865,6 +230658,7 @@ var Organization = /*#__PURE__*/function () { return this.type === _enums_organizationUserType__WEBPACK_IMPORTED_MODULE_3__["OrganizationUserType"].Owner; } }]); + return Organization; }(); @@ -230283,6 +232077,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); + /* * This file is a modified version of /services/memoryStorageService.service.ts * in https://github.com/bitwarden/web which is licensed with the terms of the @@ -230291,8 +232086,10 @@ __webpack_require__.r(__webpack_exports__); var MemoryStorageService = /*#__PURE__*/function () { function MemoryStorageService() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MemoryStorageService); + this.store = new Map(); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MemoryStorageService, [{ key: "get", value: function get(key) { @@ -230300,6 +232097,7 @@ var MemoryStorageService = /*#__PURE__*/function () { var obj = this.store.get(key); return Promise.resolve(obj); } + return Promise.resolve(null); } }, { @@ -230308,6 +232106,7 @@ var MemoryStorageService = /*#__PURE__*/function () { if (obj == null) { return this.remove(key); } + this.store.set(key, obj); return Promise.resolve(); } @@ -230318,10 +232117,12 @@ var MemoryStorageService = /*#__PURE__*/function () { return Promise.resolve(); } }]); + return MemoryStorageService; }(); + /***/ }), /***/ "Zk3l": @@ -230432,23 +232233,25 @@ function makeDsn(from) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherString", function() { return CipherString; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("iA/q"); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("6xKo"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -230457,6 +232260,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -230464,41 +232268,52 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var CipherString = /*#__PURE__*/function () { function CipherString(encryptedStringOrType, data, iv, mac) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherString); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherString); + if (data != null) { // data and header var encType = encryptedStringOrType; + if (iv != null) { this.encryptedString = encType + '.' + iv + '|' + data; } else { this.encryptedString = encType + '.' + data; - } - // mac + } // mac + + if (mac != null) { this.encryptedString += '|' + mac; } + this.encryptionType = encType; this.data = data; this.iv = iv; this.mac = mac; return; } + this.encryptedString = encryptedStringOrType; + if (!this.encryptedString) { return; } + var headerPieces = this.encryptedString.split('.'); var encPieces = null; + if (headerPieces.length === 2) { try { this.encryptionType = parseInt(headerPieces[0], null); @@ -230510,90 +232325,115 @@ var CipherString = /*#__PURE__*/function () { encPieces = this.encryptedString.split('|'); this.encryptionType = encPieces.length === 3 ? _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].AesCbc128_HmacSha256_B64 : _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].AesCbc256_B64; } + switch (this.encryptionType) { case _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].AesCbc128_HmacSha256_B64: case _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].AesCbc256_HmacSha256_B64: if (encPieces.length !== 3) { return; } + this.iv = encPieces[0]; this.data = encPieces[1]; this.mac = encPieces[2]; break; + case _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].AesCbc256_B64: if (encPieces.length !== 2) { return; } + this.iv = encPieces[0]; this.data = encPieces[1]; break; + case _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].Rsa2048_OaepSha256_B64: case _enums_encryptionType__WEBPACK_IMPORTED_MODULE_3__["EncryptionType"].Rsa2048_OaepSha1_B64: if (encPieces.length !== 1) { return; } + this.data = encPieces[0]; break; + default: return; } } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CipherString, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(CipherString, [{ key: "decrypt", value: function decrypt(orgId) { var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var cryptoService, containerService; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(this.decryptedValue != null)) { - _context.next = 2; - break; - } - return _context.abrupt("return", this.decryptedValue); - case 2: - containerService = _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].global.bitwardenContainerService; - if (!containerService) { - _context.next = 7; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(this.decryptedValue != null)) { + _context.next = 2; + break; + } + + return _context.abrupt("return", this.decryptedValue); + + case 2: + containerService = _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].global.bitwardenContainerService; + + if (!containerService) { + _context.next = 7; + break; + } + + cryptoService = containerService.getCryptoService(); + _context.next = 8; break; - } - cryptoService = containerService.getCryptoService(); - _context.next = 8; - break; - case 7: - throw new Error('global bitwardenContainerService not initialized.'); - case 8: - _context.prev = 8; - if (!(key == null)) { - _context.next = 13; + + case 7: + throw new Error('global bitwardenContainerService not initialized.'); + + case 8: + _context.prev = 8; + + if (!(key == null)) { + _context.next = 13; + break; + } + + _context.next = 12; + return cryptoService.getOrgKey(orgId); + + case 12: + key = _context.sent; + + case 13: + _context.next = 15; + return cryptoService.decryptToUtf8(this, key); + + case 15: + this.decryptedValue = _context.sent; + _context.next = 21; break; - } - _context.next = 12; - return cryptoService.getOrgKey(orgId); - case 12: - key = _context.sent; - case 13: - _context.next = 15; - return cryptoService.decryptToUtf8(this, key); - case 15: - this.decryptedValue = _context.sent; - _context.next = 21; - break; - case 18: - _context.prev = 18; - _context.t0 = _context["catch"](8); - this.decryptedValue = '[error: cannot decrypt]'; - case 21: - return _context.abrupt("return", this.decryptedValue); - case 22: - case "end": - return _context.stop(); + + case 18: + _context.prev = 18; + _context.t0 = _context["catch"](8); + this.decryptedValue = '[error: cannot decrypt]'; + + case 21: + return _context.abrupt("return", this.decryptedValue); + + case 22: + case "end": + return _context.stop(); + } } }, _callee, this, [[8, 18]]); })); } }]); + return CipherString; }(); @@ -231168,39 +233008,37 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalDomainResponse", function() { return GlobalDomainResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var GlobalDomainResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GlobalDomainResponse, _BaseResponse); - var _super = _createSuper(GlobalDomainResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(GlobalDomainResponse, _BaseResponse); + function GlobalDomainResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GlobalDomainResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GlobalDomainResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(GlobalDomainResponse).call(this, response)); _this.type = _this.getResponseProperty('Type'); _this.domains = _this.getResponseProperty('Domains'); _this.excluded = _this.getResponseProperty('Excluded'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(GlobalDomainResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return GlobalDomainResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -231598,17 +233436,23 @@ var CardView = /*#__PURE__*/function () { // tslint:enable function CardView(c) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CardView); + this.cardholderName = null; this.expMonth = null; this.expYear = null; - this.code = null; - // tslint:disable + this.code = null; // tslint:disable + this._brand = null; this._number = null; - this._subTitle = null; - // ctor + this._subTitle = null; // ctor } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CardView, [{ + key: "formatYear", + value: function formatYear(year) { + return year.length === 2 ? '20' + year : year; + } + }, { key: "maskedCode", get: function get() { return this.code != null ? '•'.repeat(this.code.length) : null; @@ -231636,17 +233480,20 @@ var CardView = /*#__PURE__*/function () { get: function get() { if (this._subTitle == null) { this._subTitle = this.brand; + if (this.number != null && this.number.length >= 4) { if (this._subTitle != null && this._subTitle !== '') { this._subTitle += ', '; } else { this._subTitle = ''; - } - // Show last 5 on amex, last 4 for all others + } // Show last 5 on amex, last 4 for all others + + var count = this.number.length >= 5 && this.number.match(new RegExp('^3[47]')) != null ? 5 : 4; this._subTitle += '*' + this.number.substr(this.number.length - count); } } + return this._subTitle; } }, { @@ -231655,16 +233502,13 @@ var CardView = /*#__PURE__*/function () { if (!this.expMonth && !this.expYear) { return null; } + var exp = this.expMonth != null ? ('0' + this.expMonth).slice(-2) : '__'; exp += ' / ' + (this.expYear != null ? this.formatYear(this.expYear) : '____'); return exp; } - }, { - key: "formatYear", - value: function formatYear(year) { - return year.length === 2 ? '20' + year : year; - } }]); + return CardView; }(); @@ -232516,98 +234360,6 @@ function setupIntegrations(integrations) { //# sourceMappingURL=integration.js.map -/***/ }), - -/***/ "aCpG": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _CozyDialogs = __webpack_require__("asoS"); -var _I18n = __webpack_require__("nUfk"); -var _Link = _interopRequireDefault(__webpack_require__("gMSI")); -var _Typography = _interopRequireDefault(__webpack_require__("9Ub/")); -var _QRCodeInstallFlagshipAppDialog = _interopRequireDefault(__webpack_require__("TbWL")); -var _appstore = _interopRequireDefault(__webpack_require__("limT")); -var _playstore = _interopRequireDefault(__webpack_require__("1n3X")); -var _withSpecificDialogsLocales = _interopRequireDefault(__webpack_require__("9DSx")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var InstallFlagshipAppDialog = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) { - var onClose = _ref.onClose, - playStoreUrl = _ref.playStoreUrl, - appStoreUrl = _ref.appStoreUrl, - QRCode = _ref.QRCode; - var _useI18n = (0, _I18n.useI18n)(), - t = _useI18n.t; - return /*#__PURE__*/_react.default.createElement(_CozyDialogs.IllustrationDialog, { - open: true, - ref: ref, - size: "small", - onClose: onClose, - componentsProps: { - dialogTitle: { - className: 'u-pt-2-half' - } - }, - title: /*#__PURE__*/_react.default.createElement(_Link.default, { - href: "https://cozy.io/download", - target: "_blank", - rel: "noopener noreferrer" - }, /*#__PURE__*/_react.default.createElement("img", { - src: QRCode, - width: "100%", - alt: "", - "aria-hidden": true - }), /*#__PURE__*/_react.default.createElement("span", { - className: "u-visuallyhidden" - }, t('install-flagship-app-dialog.a11n'))), - content: /*#__PURE__*/_react.default.createElement("div", { - className: "u-ta-center" - }, /*#__PURE__*/_react.default.createElement(_Typography.default, { - gutterBottom: true, - variant: "h3", - color: "textPrimary" - }, t('install-flagship-app-dialog.title')), /*#__PURE__*/_react.default.createElement(_Typography.default, { - color: "textSecondary", - className: "u-ta-center", - dangerouslySetInnerHTML: { - __html: t('install-flagship-app-dialog.text', { - androidUrl: playStoreUrl, - androidIconSrc: _playstore.default, - iosUrl: appStoreUrl, - iosIconSrc: _appstore.default - }) - } - })) - }); -}); -InstallFlagshipAppDialog.propTypes = { - onClose: _propTypes.default.func, - /** Url to the Play Store link in the dialog description */ - playStoreUrl: _propTypes.default.string, - /** Url to the App Store link in the dialog description */ - appStoreUrl: _propTypes.default.string, - /** An image representing a QR code to a link where you can download the flagship app */ - QRCode: _propTypes.default.any -}; -InstallFlagshipAppDialog.defaultProps = { - playStoreUrl: 'https://play.google.com/store/apps/details?id=io.cozy.flagship.mobile', - appStoreUrl: 'https://apps.apple.com/app/my-cozy/id1600636174', - QRCode: _QRCodeInstallFlagshipAppDialog.default -}; -InstallFlagshipAppDialog.displayName = 'InstallFlagshipAppDialog'; -var _default = (0, _withSpecificDialogsLocales.default)(InstallFlagshipAppDialog); -exports.default = _default; - /***/ }), /***/ "aDp4": @@ -234612,12 +236364,19 @@ __webpack_require__.r(__webpack_exports__); /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("W1mo"); + __webpack_require__("D+gi"); + __webpack_require__("QaIp"); + __webpack_require__("osNv"); + __webpack_require__("iE+z"); + __webpack_require__("IMIK"); + __webpack_require__("zEdA"); + __webpack_require__("CtV+"); /***/ }), @@ -235458,12 +237217,6 @@ var _interopRequireDefault = __webpack_require__("jm00"); Object.defineProperty(exports, "__esModule", { value: true }); -Object.defineProperty(exports, "AuthentificationDialog", { - enumerable: true, - get: function get() { - return _SpecificDialogs.AuthentificationDialog; - } -}); Object.defineProperty(exports, "ConfirmDialog", { enumerable: true, get: function get() { @@ -235506,18 +237259,6 @@ Object.defineProperty(exports, "IllustrationDialog", { return _IllustrationDialog.default; } }); -Object.defineProperty(exports, "InstallFlagshipAppDialog", { - enumerable: true, - get: function get() { - return _SpecificDialogs.InstallFlagshipAppDialog; - } -}); -Object.defineProperty(exports, "PermissionDialog", { - enumerable: true, - get: function get() { - return _PermissionDialog.default; - } -}); Object.defineProperty(exports, "TopAnchoredDialog", { enumerable: true, get: function get() { @@ -235537,10 +237278,8 @@ var _ConfirmDialog = _interopRequireDefault(__webpack_require__("pSj2")); var _FixedActionsDialog = _interopRequireDefault(__webpack_require__("mtyO")); var _FixedDialog = _interopRequireDefault(__webpack_require__("18/i")); var _IllustrationDialog = _interopRequireDefault(__webpack_require__("5Q9Z")); -var _PermissionDialog = _interopRequireDefault(__webpack_require__("TO1g")); var _useCozyDialog = _interopRequireDefault(__webpack_require__("mhvD")); var _TopAnchoredDialog = _interopRequireDefault(__webpack_require__("f/cn")); -var _SpecificDialogs = __webpack_require__("2bhu"); /***/ }), @@ -236563,12 +238302,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -236576,40 +238315,47 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var AvastCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AvastCsvImporter, _BaseImporter); - var _super = _createSuper(AvastCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(AvastCsvImporter, _BaseImporter); + function AvastCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AvastCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(AvastCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AvastCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.name); cipher.login.uris = _this.makeUriArray(value.web); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.username = _this.getValueOrDefault(value.login); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return AvastCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -238982,31 +240728,26 @@ var index = createJss(); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SyncResponse", function() { return SyncResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _cipherResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("wHMY"); -/* harmony import */ var _collectionResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("GqzV"); -/* harmony import */ var _domainsResponse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("JzPX"); -/* harmony import */ var _folderResponse__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("V7rq"); -/* harmony import */ var _policyResponse__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("t7+L"); -/* harmony import */ var _profileResponse__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("eGVb"); -/* harmony import */ var _sendResponse__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("VCVe"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _cipherResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wHMY"); +/* harmony import */ var _collectionResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("GqzV"); +/* harmony import */ var _domainsResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("JzPX"); +/* harmony import */ var _folderResponse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("V7rq"); +/* harmony import */ var _policyResponse__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("t7+L"); +/* harmony import */ var _profileResponse__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("eGVb"); +/* harmony import */ var _sendResponse__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("VCVe"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -239016,59 +240757,77 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var SyncResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SyncResponse, _BaseResponse); - var _super = _createSuper(SyncResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SyncResponse, _BaseResponse); + function SyncResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SyncResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SyncResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SyncResponse).call(this, response)); _this.folders = []; _this.collections = []; _this.ciphers = []; _this.policies = []; _this.sends = []; + var profile = _this.getResponseProperty('Profile'); + if (profile != null) { - _this.profile = new _profileResponse__WEBPACK_IMPORTED_MODULE_11__["ProfileResponse"](profile); + _this.profile = new _profileResponse__WEBPACK_IMPORTED_MODULE_10__["ProfileResponse"](profile); } + var folders = _this.getResponseProperty('Folders'); + if (folders != null) { _this.folders = folders.map(function (f) { - return new _folderResponse__WEBPACK_IMPORTED_MODULE_9__["FolderResponse"](f); + return new _folderResponse__WEBPACK_IMPORTED_MODULE_8__["FolderResponse"](f); }); } + var collections = _this.getResponseProperty('Collections'); + if (collections != null) { _this.collections = collections.map(function (c) { - return new _collectionResponse__WEBPACK_IMPORTED_MODULE_7__["CollectionDetailsResponse"](c); + return new _collectionResponse__WEBPACK_IMPORTED_MODULE_6__["CollectionDetailsResponse"](c); }); } + var ciphers = _this.getResponseProperty('Ciphers'); + if (ciphers != null) { _this.ciphers = ciphers.map(function (c) { - return new _cipherResponse__WEBPACK_IMPORTED_MODULE_6__["CipherResponse"](c); + return new _cipherResponse__WEBPACK_IMPORTED_MODULE_5__["CipherResponse"](c); }); } + var domains = _this.getResponseProperty('Domains'); + if (domains != null) { - _this.domains = new _domainsResponse__WEBPACK_IMPORTED_MODULE_8__["DomainsResponse"](domains); + _this.domains = new _domainsResponse__WEBPACK_IMPORTED_MODULE_7__["DomainsResponse"](domains); } + var policies = _this.getResponseProperty('Policies'); + if (policies != null) { _this.policies = policies.map(function (p) { - return new _policyResponse__WEBPACK_IMPORTED_MODULE_10__["PolicyResponse"](p); + return new _policyResponse__WEBPACK_IMPORTED_MODULE_9__["PolicyResponse"](p); }); } + var sends = _this.getResponseProperty('Sends'); + if (sends != null) { _this.sends = sends.map(function (s) { - return new _sendResponse__WEBPACK_IMPORTED_MODULE_12__["SendResponse"](s); + return new _sendResponse__WEBPACK_IMPORTED_MODULE_11__["SendResponse"](s); }); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SyncResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SyncResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -239372,14 +241131,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _data_fieldData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("Z2DF"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); /* harmony import */ var _view_fieldView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("vARZ"); @@ -239389,29 +241148,35 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Field = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Field, _Domain); - var _super = _createSuper(Field); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Field, _Domain); + function Field(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Field); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Field).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } + _this.type = obj.type; - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { name: null, value: null }, alreadyEncrypted, []); + return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Field, [{ key: "decrypt", value: function decrypt(orgId) { @@ -239432,6 +241197,7 @@ var Field = /*#__PURE__*/function (_Domain) { return f; } }]); + return Field; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); @@ -240065,12 +241831,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -240078,50 +241844,63 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SplashIdCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SplashIdCsvImporter, _BaseImporter); - var _super = _createSuper(SplashIdCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SplashIdCsvImporter, _BaseImporter); + function SplashIdCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SplashIdCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SplashIdCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SplashIdCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length < 3) { return; } + _this.processFolder(result, _this.getValueOrDefault(value[value.length - 1])); + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value[value.length - 2], ''); cipher.name = _this.getValueOrDefault(value[1], '--'); + if (value[0] === 'Web Logins' || value[0] === 'Servers' || value[0] === 'Email Accounts') { cipher.login.username = _this.getValueOrDefault(value[2]); cipher.login.password = _this.getValueOrDefault(value[3]); cipher.login.uris = _this.makeUriArray(value[4]); + _this.parseFieldsToNotes(cipher, 5, value); } else { _this.parseFieldsToNotes(cipher, 2, value); } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } @@ -240133,10 +241912,12 @@ var SplashIdCsvImporter = /*#__PURE__*/function (_BaseImporter) { if (this.isNullOrWhitespace(value[i])) { continue; } + cipher.notes += value[i] + '\n'; } } }]); + return SplashIdCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -240627,51 +242408,54 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendAccessResponse", function() { return SendAccessResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _api_sendFileApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("moVg"); -/* harmony import */ var _api_sendTextApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("6HIV"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _api_sendFileApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("moVg"); +/* harmony import */ var _api_sendTextApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("6HIV"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SendAccessResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SendAccessResponse, _BaseResponse); - var _super = _createSuper(SendAccessResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SendAccessResponse, _BaseResponse); + function SendAccessResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendAccessResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendAccessResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SendAccessResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.type = _this.getResponseProperty('Type'); _this.name = _this.getResponseProperty('Name'); + var text = _this.getResponseProperty('Text'); + if (text != null) { - _this.text = new _api_sendTextApi__WEBPACK_IMPORTED_MODULE_7__["SendTextApi"](text); + _this.text = new _api_sendTextApi__WEBPACK_IMPORTED_MODULE_6__["SendTextApi"](text); } + var file = _this.getResponseProperty('File'); + if (file != null) { - _this.file = new _api_sendFileApi__WEBPACK_IMPORTED_MODULE_6__["SendFileApi"](file); + _this.file = new _api_sendFileApi__WEBPACK_IMPORTED_MODULE_5__["SendFileApi"](file); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SendAccessResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SendAccessResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -242057,18 +243841,16 @@ exports.default = _default; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthResult", function() { return AuthResult; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var AuthResult = function AuthResult() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AuthResult); -var AuthResult = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function AuthResult() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AuthResult); this.twoFactor = false; this.resetMasterPassword = false; this.twoFactorProviders = null; -}); +}; /***/ }), @@ -242232,45 +244014,47 @@ var BaseTransport = /** @class */ (function () { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationSubscriptionResponse", function() { return OrganizationSubscriptionResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _organizationResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("KnnX"); -/* harmony import */ var _subscriptionResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("g6UA"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _organizationResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("KnnX"); +/* harmony import */ var _subscriptionResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("g6UA"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var OrganizationSubscriptionResponse = /*#__PURE__*/function (_OrganizationResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationSubscriptionResponse, _OrganizationResponse); - var _super = _createSuper(OrganizationSubscriptionResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(OrganizationSubscriptionResponse, _OrganizationResponse); + function OrganizationSubscriptionResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, OrganizationSubscriptionResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OrganizationSubscriptionResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationSubscriptionResponse).call(this, response)); _this.storageName = _this.getResponseProperty('StorageName'); _this.storageGb = _this.getResponseProperty('StorageGb'); + var subscription = _this.getResponseProperty('Subscription'); - _this.subscription = subscription == null ? null : new _subscriptionResponse__WEBPACK_IMPORTED_MODULE_6__["BillingSubscriptionResponse"](subscription); + + _this.subscription = subscription == null ? null : new _subscriptionResponse__WEBPACK_IMPORTED_MODULE_5__["BillingSubscriptionResponse"](subscription); + var upcomingInvoice = _this.getResponseProperty('UpcomingInvoice'); - _this.upcomingInvoice = upcomingInvoice == null ? null : new _subscriptionResponse__WEBPACK_IMPORTED_MODULE_6__["BillingSubscriptionUpcomingInvoiceResponse"](upcomingInvoice); + + _this.upcomingInvoice = upcomingInvoice == null ? null : new _subscriptionResponse__WEBPACK_IMPORTED_MODULE_5__["BillingSubscriptionUpcomingInvoiceResponse"](upcomingInvoice); _this.expiration = _this.getResponseProperty('Expiration'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(OrganizationSubscriptionResponse); -}(_organizationResponse__WEBPACK_IMPORTED_MODULE_5__["OrganizationResponse"]); + + return OrganizationSubscriptionResponse; +}(_organizationResponse__WEBPACK_IMPORTED_MODULE_4__["OrganizationResponse"]); /***/ }), @@ -243543,44 +245327,45 @@ function y(p) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaymentResponse", function() { return PaymentResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _profileResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("eGVb"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _profileResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("eGVb"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PaymentResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PaymentResponse, _BaseResponse); - var _super = _createSuper(PaymentResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PaymentResponse, _BaseResponse); + function PaymentResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PaymentResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PaymentResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(PaymentResponse).call(this, response)); + var userProfile = _this.getResponseProperty('UserProfile'); + if (userProfile != null) { - _this.userProfile = new _profileResponse__WEBPACK_IMPORTED_MODULE_6__["ProfileResponse"](userProfile); + _this.userProfile = new _profileResponse__WEBPACK_IMPORTED_MODULE_5__["ProfileResponse"](userProfile); } + _this.paymentIntentClientSecret = _this.getResponseProperty('PaymentIntentClientSecret'); _this.success = _this.getResponseProperty('Success'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PaymentResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return PaymentResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -246049,32 +247834,29 @@ var CardMedia = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](fu "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreachAccountResponse", function() { return BreachAccountResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var BreachAccountResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BreachAccountResponse, _BaseResponse); - var _super = _createSuper(BreachAccountResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BreachAccountResponse, _BaseResponse); + function BreachAccountResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BreachAccountResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BreachAccountResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BreachAccountResponse).call(this, response)); _this.addedDate = _this.getResponseProperty('AddedDate'); _this.breachDate = _this.getResponseProperty('BreachDate'); _this.dataClasses = _this.getResponseProperty('DataClasses'); @@ -246089,8 +247871,9 @@ var BreachAccountResponse = /*#__PURE__*/function (_BaseResponse) { _this.title = _this.getResponseProperty('Title'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BreachAccountResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BreachAccountResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -250564,18 +252347,18 @@ module.exports = { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("J58c"); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("qAtN"); +/* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("XkwL"); /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var microee__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("GIvT"); /* harmony import */ var microee__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(microee__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("lBlV"); @@ -250593,32 +252376,32 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _bitwarden_jslib_services_cipher_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("nORA"); /* harmony import */ var _bitwarden_jslib_services_collection_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("mYI0"); /* harmony import */ var _bitwarden_jslib_services_container_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("ZAfq"); -/* harmony import */ var _bitwarden_jslib_services_environment_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("C5Jz"); -/* harmony import */ var _bitwarden_jslib_services_folder_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("WycH"); -/* harmony import */ var _bitwarden_jslib_services_i18n_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("ZKzz"); -/* harmony import */ var _bitwarden_jslib_services_import_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("Dwxr"); -/* harmony import */ var _bitwarden_jslib_services_noopMessaging_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("QYiE"); -/* harmony import */ var _bitwarden_jslib_services_passwordGeneration_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("ymk4"); -/* harmony import */ var _bitwarden_jslib_services_policy_service__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("wiC3"); -/* harmony import */ var _bitwarden_jslib_services_search_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("thSa"); -/* harmony import */ var _bitwarden_jslib_services_send_service__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("dhA0"); -/* harmony import */ var _bitwarden_jslib_services_settings_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("ruF5"); -/* harmony import */ var _bitwarden_jslib_services_sync_service__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("qFgA"); -/* harmony import */ var _bitwarden_jslib_services_token_service__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("rNcX"); -/* harmony import */ var _bitwarden_jslib_services_user_service__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("nIvw"); -/* harmony import */ var _bitwarden_jslib_services_vaultTimeout_service__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("n9Bk"); -/* harmony import */ var _bitwarden_jslib_services_webCryptoFunction_service__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("Cfs9"); -/* harmony import */ var _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("ykCz"); -/* harmony import */ var _bitwarden_jslib_enums_kdfType__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("6XQz"); -/* harmony import */ var _bitwarden_jslib_models_request_importCiphersRequest__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("o07U"); -/* harmony import */ var _bitwarden_jslib_models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("COvv"); -/* harmony import */ var _bitwarden_jslib_models_domain_cipherString__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("Zk9R"); -/* harmony import */ var _bitwarden_jslib_models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("P86X"); -/* harmony import */ var _bitwarden_jslib_models_request_kdfRequest__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("YbNH"); -/* harmony import */ var _WebPlatformUtilsService__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("Br+W"); -/* harmony import */ var _HtmlStorageService__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("txNa"); -/* harmony import */ var _MemoryStorageService__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__("Zijh"); -/* harmony import */ var _services_crypto_service__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__("pDQ3"); +/* harmony import */ var _bitwarden_jslib_services_crypto_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("Yrrk"); +/* harmony import */ var _bitwarden_jslib_services_environment_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("C5Jz"); +/* harmony import */ var _bitwarden_jslib_services_folder_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("WycH"); +/* harmony import */ var _bitwarden_jslib_services_i18n_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("ZKzz"); +/* harmony import */ var _bitwarden_jslib_services_import_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("Dwxr"); +/* harmony import */ var _bitwarden_jslib_services_noopMessaging_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("QYiE"); +/* harmony import */ var _bitwarden_jslib_services_passwordGeneration_service__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("ymk4"); +/* harmony import */ var _bitwarden_jslib_services_policy_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("wiC3"); +/* harmony import */ var _bitwarden_jslib_services_search_service__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("thSa"); +/* harmony import */ var _bitwarden_jslib_services_send_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("dhA0"); +/* harmony import */ var _bitwarden_jslib_services_settings_service__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("ruF5"); +/* harmony import */ var _bitwarden_jslib_services_sync_service__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("qFgA"); +/* harmony import */ var _bitwarden_jslib_services_token_service__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("rNcX"); +/* harmony import */ var _bitwarden_jslib_services_user_service__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("nIvw"); +/* harmony import */ var _bitwarden_jslib_services_vaultTimeout_service__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("n9Bk"); +/* harmony import */ var _bitwarden_jslib_services_webCryptoFunction_service__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("Cfs9"); +/* harmony import */ var _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("ykCz"); +/* harmony import */ var _bitwarden_jslib_enums_kdfType__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("6XQz"); +/* harmony import */ var _bitwarden_jslib_models_request_importCiphersRequest__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("o07U"); +/* harmony import */ var _bitwarden_jslib_models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("COvv"); +/* harmony import */ var _bitwarden_jslib_models_domain_cipherString__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("Zk9R"); +/* harmony import */ var _bitwarden_jslib_models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("P86X"); +/* harmony import */ var _bitwarden_jslib_models_request_kdfRequest__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("YbNH"); +/* harmony import */ var _WebPlatformUtilsService__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("Br+W"); +/* harmony import */ var _HtmlStorageService__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__("txNa"); +/* harmony import */ var _MemoryStorageService__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__("Zijh"); /* harmony import */ var _CozyUtils__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__("+mqW"); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__("+Yev"); @@ -250626,11 +252409,6 @@ __webpack_require__.r(__webpack_exports__); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } @@ -250673,16 +252451,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len _bitwarden_jslib_misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].init(); - /** * Some password managers (Dashlane for example) can manage things * that when imported do not have the login field. We do not support * them at the moment */ + var isSupportedCipher = function isSupportedCipher(cipher) { return cipher.login; }; - /** * Password vault * @@ -250711,6 +252488,8 @@ var isSupportedCipher = function isSupportedCipher(cipher) { * @property {ImportService} importService * @property {Utils} utils */ + + var WebVaultClient = /*#__PURE__*/function () { /** * @constructor @@ -250726,13 +252505,17 @@ var WebVaultClient = /*#__PURE__*/function () { */ function WebVaultClient(instance_or_email) { var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - urls = _ref.urls, - locale = _ref.locale, - unsafeStorage = _ref.unsafeStorage; + urls = _ref.urls, + locale = _ref.locale, + unsafeStorage = _ref.unsafeStorage; + var vaultData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this, WebVaultClient); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this, WebVaultClient); + this.instance = instance_or_email; this.email = _CozyUtils__WEBPACK_IMPORTED_MODULE_44__["getEmail"](instance_or_email); + if (urls) { this.urls = urls; } else if (_CozyUtils__WEBPACK_IMPORTED_MODULE_44__["isInstance"](instance_or_email)) { @@ -250742,77 +252525,87 @@ var WebVaultClient = /*#__PURE__*/function () { } else { this.urls = {}; } + this.locale = locale || 'en'; this.init({ unsafeStorage: unsafeStorage }, vaultData); } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(WebVaultClient, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(WebVaultClient, [{ key: "createServices", value: function createServices(unsafeStorage) { - var messagingService = new _bitwarden_jslib_services_noopMessaging_service__WEBPACK_IMPORTED_MODULE_22__["NoopMessagingService"](); - var i18nService = new _bitwarden_jslib_services_i18n_service__WEBPACK_IMPORTED_MODULE_20__["I18nService"](this.locale, './locales'); + var messagingService = new _bitwarden_jslib_services_noopMessaging_service__WEBPACK_IMPORTED_MODULE_23__["NoopMessagingService"](); + var i18nService = new _bitwarden_jslib_services_i18n_service__WEBPACK_IMPORTED_MODULE_21__["I18nService"](this.locale, './locales'); var platformUtilsService = this.initPlatformUtilsService(i18nService, messagingService); var cryptoFunctionService = this.initCryptoFunctionService(platformUtilsService); var storageService = this.initStorageService(platformUtilsService); var secureStorageService = this.initSecureStorageService(); - var cryptoService = new _services_crypto_service__WEBPACK_IMPORTED_MODULE_43__["CryptoService"](storageService, unsafeStorage ? storageService : secureStorageService, cryptoFunctionService); - var tokenService = new _bitwarden_jslib_services_token_service__WEBPACK_IMPORTED_MODULE_29__["TokenService"](storageService); + var cryptoService = new _bitwarden_jslib_services_crypto_service__WEBPACK_IMPORTED_MODULE_18__["CryptoService"](storageService, unsafeStorage ? storageService : secureStorageService, cryptoFunctionService); + var tokenService = new _bitwarden_jslib_services_token_service__WEBPACK_IMPORTED_MODULE_30__["TokenService"](storageService); var appIdService = new _bitwarden_jslib_services_appId_service__WEBPACK_IMPORTED_MODULE_13__["AppIdService"](storageService); var apiService = new _bitwarden_jslib_services_api_service__WEBPACK_IMPORTED_MODULE_12__["ApiService"](tokenService, platformUtilsService, /*#__PURE__*/function () { - var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee(expired) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - return _context.abrupt("return", messagingService.send('logout', { - expired: expired - })); - case 1: - case "end": - return _context.stop(); + var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(expired) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + return _context.abrupt("return", messagingService.send('logout', { + expired: expired + })); + + case 1: + case "end": + return _context.stop(); + } } }, _callee); })); + return function (_x) { return _ref2.apply(this, arguments); }; }()); - var userService = new _bitwarden_jslib_services_user_service__WEBPACK_IMPORTED_MODULE_30__["UserService"](tokenService, storageService); - var policyService = new _bitwarden_jslib_services_policy_service__WEBPACK_IMPORTED_MODULE_24__["PolicyService"](userService, storageService); - var sendService = new _bitwarden_jslib_services_send_service__WEBPACK_IMPORTED_MODULE_26__["SendService"](cryptoService, userService, apiService, storageService, i18nService, cryptoFunctionService); - var settingsService = new _bitwarden_jslib_services_settings_service__WEBPACK_IMPORTED_MODULE_27__["SettingsService"](userService, storageService); + var userService = new _bitwarden_jslib_services_user_service__WEBPACK_IMPORTED_MODULE_31__["UserService"](tokenService, storageService); + var policyService = new _bitwarden_jslib_services_policy_service__WEBPACK_IMPORTED_MODULE_25__["PolicyService"](userService, storageService); + var sendService = new _bitwarden_jslib_services_send_service__WEBPACK_IMPORTED_MODULE_27__["SendService"](cryptoService, userService, apiService, storageService, i18nService, cryptoFunctionService); + var settingsService = new _bitwarden_jslib_services_settings_service__WEBPACK_IMPORTED_MODULE_28__["SettingsService"](userService, storageService); var searchService = null; var cipherService = new _bitwarden_jslib_services_cipher_service__WEBPACK_IMPORTED_MODULE_15__["CipherService"](cryptoService, userService, settingsService, apiService, storageService, i18nService, function () { return searchService; }); - var folderService = new _bitwarden_jslib_services_folder_service__WEBPACK_IMPORTED_MODULE_19__["FolderService"](cryptoService, userService, apiService, storageService, i18nService, cipherService); + var folderService = new _bitwarden_jslib_services_folder_service__WEBPACK_IMPORTED_MODULE_20__["FolderService"](cryptoService, userService, apiService, storageService, i18nService, cipherService); var collectionService = new _bitwarden_jslib_services_collection_service__WEBPACK_IMPORTED_MODULE_16__["CollectionService"](cryptoService, userService, storageService, i18nService); - searchService = new _bitwarden_jslib_services_search_service__WEBPACK_IMPORTED_MODULE_25__["SearchService"](cipherService, platformUtilsService); - var vaultTimeoutService = new _bitwarden_jslib_services_vaultTimeout_service__WEBPACK_IMPORTED_MODULE_31__["VaultTimeoutService"](cipherService, folderService, collectionService, cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, null); - var syncService = new _bitwarden_jslib_services_sync_service__WEBPACK_IMPORTED_MODULE_28__["SyncService"](userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, sendService, /*#__PURE__*/function () { - var _ref3 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee2(expired) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - return _context2.abrupt("return", messagingService.send('logout', { - expired: expired - })); - case 1: - case "end": - return _context2.stop(); + searchService = new _bitwarden_jslib_services_search_service__WEBPACK_IMPORTED_MODULE_26__["SearchService"](cipherService, platformUtilsService); + var vaultTimeoutService = new _bitwarden_jslib_services_vaultTimeout_service__WEBPACK_IMPORTED_MODULE_32__["VaultTimeoutService"](cipherService, folderService, collectionService, cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, null); + var syncService = new _bitwarden_jslib_services_sync_service__WEBPACK_IMPORTED_MODULE_29__["SyncService"](userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, sendService, /*#__PURE__*/function () { + var _ref3 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2(expired) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + return _context2.abrupt("return", messagingService.send('logout', { + expired: expired + })); + + case 1: + case "end": + return _context2.stop(); + } } }, _callee2); })); + return function (_x2) { return _ref3.apply(this, arguments); }; }()); - var passwordGenerationService = new _bitwarden_jslib_services_passwordGeneration_service__WEBPACK_IMPORTED_MODULE_23__["PasswordGenerationService"](cryptoService, storageService, policyService); + var passwordGenerationService = new _bitwarden_jslib_services_passwordGeneration_service__WEBPACK_IMPORTED_MODULE_24__["PasswordGenerationService"](cryptoService, storageService, policyService); var containerService = new _bitwarden_jslib_services_container_service__WEBPACK_IMPORTED_MODULE_17__["ContainerService"](cryptoService); var authService = new _bitwarden_jslib_services_auth_service__WEBPACK_IMPORTED_MODULE_14__["AuthService"](cryptoService, apiService, userService, tokenService, appIdService, i18nService, platformUtilsService, messagingService); var notificationsService = null; - var environmentService = new _bitwarden_jslib_services_environment_service__WEBPACK_IMPORTED_MODULE_18__["EnvironmentService"](apiService, storageService, notificationsService); - var importService = new _bitwarden_jslib_services_import_service__WEBPACK_IMPORTED_MODULE_21__["ImportService"](cipherService, folderService, apiService, i18nService, collectionService); + var environmentService = new _bitwarden_jslib_services_environment_service__WEBPACK_IMPORTED_MODULE_19__["EnvironmentService"](apiService, storageService, notificationsService); + var importService = new _bitwarden_jslib_services_import_service__WEBPACK_IMPORTED_MODULE_22__["ImportService"](cipherService, folderService, apiService, i18nService, collectionService); return { apiService: apiService, environmentService: environmentService, @@ -250829,15 +252622,16 @@ var WebVaultClient = /*#__PURE__*/function () { utils: _bitwarden_jslib_misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"] }; } - /* * @private * Initialize the undelying libraries */ + }, { key: "init", value: function init(_ref4, vaultData) { var _this = this; + var unsafeStorage = _ref4.unsafeStorage; vaultData = vaultData || this.createServices(unsafeStorage); this.apiService = vaultData.apiService; @@ -250862,29 +252656,29 @@ var WebVaultClient = /*#__PURE__*/function () { }, { key: "initPlatformUtilsService", value: function initPlatformUtilsService(i18nService, messagingService) { - return new _WebPlatformUtilsService__WEBPACK_IMPORTED_MODULE_40__["default"](i18nService, messagingService); + return new _WebPlatformUtilsService__WEBPACK_IMPORTED_MODULE_41__["default"](i18nService, messagingService); } }, { key: "initCryptoFunctionService", value: function initCryptoFunctionService(platformUtilsService) { - return new _bitwarden_jslib_services_webCryptoFunction_service__WEBPACK_IMPORTED_MODULE_32__["WebCryptoFunctionService"](window, platformUtilsService); + return new _bitwarden_jslib_services_webCryptoFunction_service__WEBPACK_IMPORTED_MODULE_33__["WebCryptoFunctionService"](window, platformUtilsService); } }, { key: "initSecureStorageService", value: function initSecureStorageService() { - return new _MemoryStorageService__WEBPACK_IMPORTED_MODULE_42__["default"](); + return new _MemoryStorageService__WEBPACK_IMPORTED_MODULE_43__["default"](); } }, { key: "initStorageService", value: function initStorageService(platformUtilsService) { - return new _HtmlStorageService__WEBPACK_IMPORTED_MODULE_41__["default"](platformUtilsService); + return new _HtmlStorageService__WEBPACK_IMPORTED_MODULE_42__["default"](platformUtilsService); } - /** * Register the containerService in globals to be able to decrypt ciphers * * @private */ + }, { key: "attachToGlobal", value: function attachToGlobal() { @@ -250898,104 +252692,127 @@ var WebVaultClient = /*#__PURE__*/function () { // times by a react app. _bitwarden_jslib_misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].global.bitwardenContainerService = this.containerService; } - /** * Is the vault locked? * It is locked if not initialized or if manually locked afterwards * @return {boolean} */ + }, { key: "isLocked", value: function () { - var _isLocked = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee3() { + var _isLocked = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { var isAuthed, isLocked; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - this.attachToGlobal(); - _context3.next = 3; - return this.userService.isAuthenticated(); - case 3: - isAuthed = _context3.sent; - isLocked = this.vaultTimeoutService.isLocked(); - return _context3.abrupt("return", !isAuthed || isLocked); - case 6: - case "end": - return _context3.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + this.attachToGlobal(); + _context3.next = 3; + return this.userService.isAuthenticated(); + + case 3: + isAuthed = _context3.sent; + isLocked = this.vaultTimeoutService.isLocked(); + return _context3.abrupt("return", !isAuthed || isLocked); + + case 6: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); + function isLocked() { return _isLocked.apply(this, arguments); } + return isLocked; }() /** * Lock the vault, forget the key and master password */ + }, { key: "lock", value: function () { - var _lock = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee4() { + var _lock = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { var lock; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - this.attachToGlobal(); - _context4.next = 3; - return this.initFinished; - case 3: - _context4.next = 5; - return this.vaultTimeoutService.lock(); - case 5: - lock = _context4.sent; - this.emit('lock', this); - return _context4.abrupt("return", lock); - case 8: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + this.attachToGlobal(); + _context4.next = 3; + return this.initFinished; + + case 3: + _context4.next = 5; + return this.vaultTimeoutService.lock(); + + case 5: + lock = _context4.sent; + this.emit('lock', this); + return _context4.abrupt("return", lock); + + case 8: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); + function lock() { return _lock.apply(this, arguments); } + return lock; }() /** * Login to the bitwarden server and fill the master password * for future use */ + }, { key: "login", value: function () { - var _login = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee5(masterPassword) { + var _login = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5(masterPassword) { var login; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - this.attachToGlobal(); - _context5.next = 3; - return this.initFinished; - case 3: - _context5.next = 5; - return this.authService.logIn(this.email, masterPassword); - case 5: - login = _context5.sent; - _context5.next = 8; - return this.sync(); - case 8: - this.emit('login', this); - return _context5.abrupt("return", login); - case 10: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + this.attachToGlobal(); + _context5.next = 3; + return this.initFinished; + + case 3: + _context5.next = 5; + return this.authService.logIn(this.email, masterPassword); + + case 5: + login = _context5.sent; + _context5.next = 8; + return this.sync(); + + case 8: + this.emit('login', this); + return _context5.abrupt("return", login); + + case 10: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); + function login(_x3) { return _login.apply(this, arguments); } + return login; }() /** @@ -251008,33 +252825,41 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {integer} newIterations - (optional) number of kdf iterations * @param {KdfType} newKdf - (optional) kdf algorithm, PBKDF2_SHA256 by default */ + }, { key: "changePassword", value: function () { - var _changePassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee6(currentMasterPassword, newMasterPassword, newIterations, newKdf) { + var _changePassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6(currentMasterPassword, newMasterPassword, newIterations, newKdf) { var _yield$this$computeNe, kdf, kdfIterations, currentPasswordHash, newPasswordHash, newEncryptionKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.computeNewHashAndKeys(currentMasterPassword, newMasterPassword, newIterations, newKdf); - case 2: - _yield$this$computeNe = _context6.sent; - kdf = _yield$this$computeNe.kdf; - kdfIterations = _yield$this$computeNe.kdfIterations; - currentPasswordHash = _yield$this$computeNe.currentPasswordHash; - newPasswordHash = _yield$this$computeNe.newPasswordHash; - newEncryptionKey = _yield$this$computeNe.newEncryptionKey; - return _context6.abrupt("return", this.bitwardenChangePassword(currentPasswordHash, newPasswordHash, newEncryptionKey, kdf, kdfIterations)); - case 9: - case "end": - return _context6.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.computeNewHashAndKeys(currentMasterPassword, newMasterPassword, newIterations, newKdf); + + case 2: + _yield$this$computeNe = _context6.sent; + kdf = _yield$this$computeNe.kdf; + kdfIterations = _yield$this$computeNe.kdfIterations; + currentPasswordHash = _yield$this$computeNe.currentPasswordHash; + newPasswordHash = _yield$this$computeNe.newPasswordHash; + newEncryptionKey = _yield$this$computeNe.newEncryptionKey; + return _context6.abrupt("return", this.bitwardenChangePassword(currentPasswordHash, newPasswordHash, newEncryptionKey, kdf, kdfIterations)); + + case 9: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); + function changePassword(_x4, _x5, _x6, _x7) { return _changePassword.apply(this, arguments); } + return changePassword; }() /** @@ -251046,72 +252871,91 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {KdfType} newKdf - (optional) kdf algorithm, PBKDF2_SHA256 by default * @return {object} */ + }, { key: "computeNewHashAndKeys", value: function () { - var _computeNewHashAndKeys = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee7(currentMasterPassword, newMasterPassword, newIterations, newKdf) { + var _computeNewHashAndKeys = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7(currentMasterPassword, newMasterPassword, newIterations, newKdf) { var currentPasswordHash, kdf, kdfIterations, newMasterKey, newPasswordHash, currentEncryptionKey, newEncryptionKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.computeHashedPassword(currentMasterPassword); - case 2: - currentPasswordHash = _context7.sent; - _context7.t0 = newKdf; - if (_context7.t0) { - _context7.next = 8; - break; - } - _context7.next = 7; - return this.userService.getKdf(); - case 7: - _context7.t0 = _context7.sent; - case 8: - kdf = _context7.t0; - _context7.t1 = newIterations; - if (_context7.t1) { - _context7.next = 14; - break; - } - _context7.next = 13; - return this.userService.getKdfIterations(); - case 13: - _context7.t1 = _context7.sent; - case 14: - kdfIterations = _context7.t1; - _context7.next = 17; - return this.computeMasterKey(newMasterPassword, kdfIterations, kdf); - case 17: - newMasterKey = _context7.sent; - _context7.next = 20; - return this.computeHashedPassword(newMasterPassword, newMasterKey); - case 20: - newPasswordHash = _context7.sent; - _context7.next = 23; - return this.getEncryptionKey(); - case 23: - currentEncryptionKey = _context7.sent; - _context7.next = 26; - return this.encryptEncryptionKey(currentEncryptionKey, newMasterKey); - case 26: - newEncryptionKey = _context7.sent; - return _context7.abrupt("return", { - kdf: kdf, - kdfIterations: kdfIterations, - currentPasswordHash: currentPasswordHash, - newPasswordHash: newPasswordHash, - newEncryptionKey: newEncryptionKey - }); - case 28: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.computeHashedPassword(currentMasterPassword); + + case 2: + currentPasswordHash = _context7.sent; + _context7.t0 = newKdf; + + if (_context7.t0) { + _context7.next = 8; + break; + } + + _context7.next = 7; + return this.userService.getKdf(); + + case 7: + _context7.t0 = _context7.sent; + + case 8: + kdf = _context7.t0; + _context7.t1 = newIterations; + + if (_context7.t1) { + _context7.next = 14; + break; + } + + _context7.next = 13; + return this.userService.getKdfIterations(); + + case 13: + _context7.t1 = _context7.sent; + + case 14: + kdfIterations = _context7.t1; + _context7.next = 17; + return this.computeMasterKey(newMasterPassword, kdfIterations, kdf); + + case 17: + newMasterKey = _context7.sent; + _context7.next = 20; + return this.computeHashedPassword(newMasterPassword, newMasterKey); + + case 20: + newPasswordHash = _context7.sent; + _context7.next = 23; + return this.getEncryptionKey(); + + case 23: + currentEncryptionKey = _context7.sent; + _context7.next = 26; + return this.encryptEncryptionKey(currentEncryptionKey, newMasterKey); + + case 26: + newEncryptionKey = _context7.sent; + return _context7.abrupt("return", { + kdf: kdf, + kdfIterations: kdfIterations, + currentPasswordHash: currentPasswordHash, + newPasswordHash: newPasswordHash, + newEncryptionKey: newEncryptionKey + }); + + case 28: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); + function computeNewHashAndKeys(_x8, _x9, _x10, _x11) { return _computeNewHashAndKeys.apply(this, arguments); } + return computeNewHashAndKeys; }() /** @@ -251122,35 +252966,42 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {KdfType} kdfType * @param {integer} kdfIterations */ + }, { key: "bitwardenChangePassword", value: function () { - var _bitwardenChangePassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee8(currentPasswordHash, newPasswordHash, encryptionKey, kdf, kdfIterations) { + var _bitwardenChangePassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8(currentPasswordHash, newPasswordHash, encryptionKey, kdf, kdfIterations) { var request, res; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - request = new _bitwarden_jslib_models_request_kdfRequest__WEBPACK_IMPORTED_MODULE_39__["KdfRequest"](); - request.kdf = kdf; - request.kdfIterations = kdfIterations; - request.masterPasswordHash = currentPasswordHash; - request.newMasterPasswordHash = newPasswordHash; - request.key = encryptionKey.encryptedString; - _context8.next = 8; - return this.apiService.postAccountKdf(request); - case 8: - res = _context8.sent; - if (res) this.emit('passwordChange', this); - return _context8.abrupt("return", res); - case 11: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + request = new _bitwarden_jslib_models_request_kdfRequest__WEBPACK_IMPORTED_MODULE_40__["KdfRequest"](); + request.kdf = kdf; + request.kdfIterations = kdfIterations; + request.masterPasswordHash = currentPasswordHash; + request.newMasterPasswordHash = newPasswordHash; + request.key = encryptionKey.encryptedString; + _context8.next = 8; + return this.apiService.postAccountKdf(request); + + case 8: + res = _context8.sent; + if (res) this.emit('passwordChange', this); + return _context8.abrupt("return", res); + + case 11: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); + function bitwardenChangePassword(_x12, _x13, _x14, _x15, _x16) { return _bitwardenChangePassword.apply(this, arguments); } + return bitwardenChangePassword; }() /** @@ -251160,26 +253011,33 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {KdfType} kdf - (optional) kdf algorithm, PBKDF2_SHA256 by default * @return {string} hashed password for login */ + }, { key: "computeMasterKey", value: function () { - var _computeMasterKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee9(masterPassword, iterations, kdf) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.cryptoService.makeKey(masterPassword, this.email, kdf || _bitwarden_jslib_enums_kdfType__WEBPACK_IMPORTED_MODULE_34__["KdfType"].PBKDF2_SHA256, iterations); - case 2: - return _context9.abrupt("return", _context9.sent); - case 3: - case "end": - return _context9.stop(); + var _computeMasterKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9(masterPassword, iterations, kdf) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.cryptoService.makeKey(masterPassword, this.email, kdf || _bitwarden_jslib_enums_kdfType__WEBPACK_IMPORTED_MODULE_35__["KdfType"].PBKDF2_SHA256, iterations); + + case 2: + return _context9.abrupt("return", _context9.sent); + + case 3: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); + function computeMasterKey(_x17, _x18, _x19) { return _computeMasterKey.apply(this, arguments); } + return computeMasterKey; }() /** @@ -251189,78 +253047,99 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {SymmetricCryptoKey} masterKey - optional master key * @return {string} hashed password for login */ + }, { key: "computeHashedPassword", value: function () { - var _computeHashedPassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee10(masterPassword, masterKey) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.cryptoService.hashPassword(masterPassword, masterKey || null); - case 2: - return _context10.abrupt("return", _context10.sent); - case 3: - case "end": - return _context10.stop(); + var _computeHashedPassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10(masterPassword, masterKey) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.cryptoService.hashPassword(masterPassword, masterKey || null); + + case 2: + return _context10.abrupt("return", _context10.sent); + + case 3: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); + function computeHashedPassword(_x20, _x21) { return _computeHashedPassword.apply(this, arguments); } + return computeHashedPassword; }() /** * Get the Encryption Key * @return {SymmetricCryptoKey} the encryption AES key */ + }, { key: "getEncryptionKey", value: function () { - var _getEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee11() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - _context11.next = 2; - return this.cryptoService.getEncKey(); - case 2: - return _context11.abrupt("return", _context11.sent); - case 3: - case "end": - return _context11.stop(); + var _getEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return this.cryptoService.getEncKey(); + + case 2: + return _context11.abrupt("return", _context11.sent); + + case 3: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); + function getEncryptionKey() { return _getEncryptionKey.apply(this, arguments); } + return getEncryptionKey; }() /** * Get the Master Key * @return {SymmetricCryptoKey} the master key, password derivation */ + }, { key: "getMasterKey", value: function () { - var _getMasterKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee12() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - _context12.next = 2; - return this.cryptoService.getKey(); - case 2: - return _context12.abrupt("return", _context12.sent); - case 3: - case "end": - return _context12.stop(); + var _getMasterKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return this.cryptoService.getKey(); + + case 2: + return _context12.abrupt("return", _context12.sent); + + case 3: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); + function getMasterKey() { return _getMasterKey.apply(this, arguments); } + return getMasterKey; }() /** @@ -251271,44 +253150,56 @@ var WebVaultClient = /*#__PURE__*/function () { * Generate a new encryption key * @return {EncryptionKey} the generated key and its encrypted version */ + }, { key: "generateEncryptionKey", value: function () { - var _generateEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee13() { + var _generateEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { var encKey, _yield$this$cryptoSer, _yield$this$cryptoSer2, key, encryptedKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - _context13.next = 2; - return this.getEncryptionKey(); - case 2: - encKey = _context13.sent; - if (encKey) { - _context13.next = 5; - break; - } - throw new Error('NO_ENCRYPTION_KEY'); - case 5: - _context13.next = 7; - return this.cryptoService.makeEncKey(encKey); - case 7: - _yield$this$cryptoSer = _context13.sent; - _yield$this$cryptoSer2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_yield$this$cryptoSer, 2); - key = _yield$this$cryptoSer2[0]; - encryptedKey = _yield$this$cryptoSer2[1]; - return _context13.abrupt("return", { - key: key, - encryptedKey: encryptedKey - }); - case 12: - case "end": - return _context13.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + _context13.next = 2; + return this.getEncryptionKey(); + + case 2: + encKey = _context13.sent; + + if (encKey) { + _context13.next = 5; + break; + } + + throw new Error('NO_ENCRYPTION_KEY'); + + case 5: + _context13.next = 7; + return this.cryptoService.makeEncKey(encKey); + + case 7: + _yield$this$cryptoSer = _context13.sent; + _yield$this$cryptoSer2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_yield$this$cryptoSer, 2); + key = _yield$this$cryptoSer2[0]; + encryptedKey = _yield$this$cryptoSer2[1]; + return _context13.abrupt("return", { + key: key, + encryptedKey: encryptedKey + }); + + case 12: + case "end": + return _context13.stop(); + } } }, _callee13, this); })); + function generateEncryptionKey() { return _generateEncryptionKey.apply(this, arguments); } + return generateEncryptionKey; }() /** @@ -251318,42 +253209,54 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {SymmetricCryptoKey} masterKey - optional * @return {CipherString} encrypted encryption key */ + }, { key: "encryptEncryptionKey", value: function () { - var _encryptEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee14(encryptionKey, masterKey) { + var _encryptEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee14(encryptionKey, masterKey) { var key, toEncrypt, _yield$this$cryptoSer3, _yield$this$cryptoSer4, encrypted; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee14$(_context14) { - while (1) switch (_context14.prev = _context14.next) { - case 0: - _context14.t0 = masterKey; - if (_context14.t0) { - _context14.next = 5; - break; - } - _context14.next = 4; - return this.getMasterKey(); - case 4: - _context14.t0 = _context14.sent; - case 5: - key = _context14.t0; - toEncrypt = encryptionKey.key; - _context14.next = 9; - return this.cryptoService.buildEncKey(key, toEncrypt); - case 9: - _yield$this$cryptoSer3 = _context14.sent; - _yield$this$cryptoSer4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_yield$this$cryptoSer3, 2); - encrypted = _yield$this$cryptoSer4[1]; - return _context14.abrupt("return", encrypted); - case 13: - case "end": - return _context14.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee14$(_context14) { + while (1) { + switch (_context14.prev = _context14.next) { + case 0: + _context14.t0 = masterKey; + + if (_context14.t0) { + _context14.next = 5; + break; + } + + _context14.next = 4; + return this.getMasterKey(); + + case 4: + _context14.t0 = _context14.sent; + + case 5: + key = _context14.t0; + toEncrypt = encryptionKey.key; + _context14.next = 9; + return this.cryptoService.buildEncKey(key, toEncrypt); + + case 9: + _yield$this$cryptoSer3 = _context14.sent; + _yield$this$cryptoSer4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_yield$this$cryptoSer3, 2); + encrypted = _yield$this$cryptoSer4[1]; + return _context14.abrupt("return", encrypted); + + case 13: + case "end": + return _context14.stop(); + } } }, _callee14, this); })); + function encryptEncryptionKey(_x22, _x23) { return _encryptEncryptionKey.apply(this, arguments); } + return encryptEncryptionKey; }() /** @@ -251362,66 +253265,85 @@ var WebVaultClient = /*#__PURE__*/function () { * See `sync()` for that * @param {string} masterPassword - the master password */ + }, { key: "unlock", value: function () { - var _unlock = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee15(masterPassword) { + var _unlock = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee15(masterPassword) { var isAuthed, kdf, kdfIterations, storedKeyHash, key, keyHash; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee15$(_context15) { - while (1) switch (_context15.prev = _context15.next) { - case 0: - _context15.next = 2; - return this.initFinished; - case 2: - _context15.next = 4; - return this.userService.isAuthenticated(); - case 4: - isAuthed = _context15.sent; - kdf = this.cryptoService.kdf; - kdfIterations = this.cryptoService.kdfIterations; - _context15.next = 9; - return this.cryptoService.getKeyHash(); - case 9: - storedKeyHash = _context15.sent; - if (!(!isAuthed || !kdf || !storedKeyHash)) { - _context15.next = 15; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee15$(_context15) { + while (1) { + switch (_context15.prev = _context15.next) { + case 0: + _context15.next = 2; + return this.initFinished; + + case 2: + _context15.next = 4; + return this.userService.isAuthenticated(); + + case 4: + isAuthed = _context15.sent; + kdf = this.cryptoService.kdf; + kdfIterations = this.cryptoService.kdfIterations; + _context15.next = 9; + return this.cryptoService.getKeyHash(); + + case 9: + storedKeyHash = _context15.sent; + + if (!(!isAuthed || !kdf || !storedKeyHash)) { + _context15.next = 15; + break; + } + + _context15.next = 13; + return this.login(masterPassword); + + case 13: + _context15.next = 25; break; - } - _context15.next = 13; - return this.login(masterPassword); - case 13: - _context15.next = 25; - break; - case 15: - _context15.next = 17; - return this.cryptoService.makeKey(masterPassword, this.email, kdf, kdfIterations); - case 17: - key = _context15.sent; - _context15.next = 20; - return this.cryptoService.hashPassword(this.masterPassword, key); - case 20: - keyHash = _context15.sent; - if (!(storedKeyHash == keyHash)) { + + case 15: + _context15.next = 17; + return this.cryptoService.makeKey(masterPassword, this.email, kdf, kdfIterations); + + case 17: + key = _context15.sent; + _context15.next = 20; + return this.cryptoService.hashPassword(this.masterPassword, key); + + case 20: + keyHash = _context15.sent; + + if (!(storedKeyHash == keyHash)) { + _context15.next = 24; + break; + } + _context15.next = 24; - break; - } - _context15.next = 24; - return this.cryptoService.setKey(key); - case 24: - this.emit('unlock_no_login', this); - case 25: - this.sync(); - this.emit('unlock', this); - return _context15.abrupt("return", true); - case 28: - case "end": - return _context15.stop(); + return this.cryptoService.setKey(key); + + case 24: + this.emit('unlock_no_login', this); + + case 25: + this.sync(); + this.emit('unlock', this); + return _context15.abrupt("return", true); + + case 28: + case "end": + return _context15.stop(); + } } }, _callee15, this); })); + function unlock(_x24) { return _unlock.apply(this, arguments); } + return unlock; }() /** @@ -251429,32 +253351,40 @@ var WebVaultClient = /*#__PURE__*/function () { * * This method should be called at least once */ + }, { key: "sync", value: function () { - var _sync = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee16() { + var _sync = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee16() { var sync; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee16$(_context16) { - while (1) switch (_context16.prev = _context16.next) { - case 0: - _context16.next = 2; - return this.initFinished; - case 2: - _context16.next = 4; - return this.syncService.fullSync(); - case 4: - sync = _context16.sent; - this.emit('sync', this); - return _context16.abrupt("return", sync); - case 7: - case "end": - return _context16.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee16$(_context16) { + while (1) { + switch (_context16.prev = _context16.next) { + case 0: + _context16.next = 2; + return this.initFinished; + + case 2: + _context16.next = 4; + return this.syncService.fullSync(); + + case 4: + sync = _context16.sent; + this.emit('sync', this); + return _context16.abrupt("return", sync); + + case 7: + case "end": + return _context16.stop(); + } } }, _callee16, this); })); + function sync() { return _sync.apply(this, arguments); } + return sync; }() /** @@ -251464,59 +253394,73 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {integer} options.type - type of data to get, see `CipherType` * @return {[Cipher]} all ciphers in the vault, filtered by type if requested */ + }, { key: "getAll", value: function () { - var _getAll = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee17() { + var _getAll = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee17() { var _ref5, - type, - all, - _args17 = arguments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee17$(_context17) { - while (1) switch (_context17.prev = _context17.next) { - case 0: - _ref5 = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {}, type = _ref5.type; - _context17.next = 3; - return this.cipherService.getAll(); - case 3: - all = _context17.sent; - return _context17.abrupt("return", type ? all.filter(function (cipher) { - return cipher.type == type; - }) : all); - case 5: - case "end": - return _context17.stop(); + type, + all, + _args17 = arguments; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee17$(_context17) { + while (1) { + switch (_context17.prev = _context17.next) { + case 0: + _ref5 = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {}, type = _ref5.type; + _context17.next = 3; + return this.cipherService.getAll(); + + case 3: + all = _context17.sent; + return _context17.abrupt("return", type ? all.filter(function (cipher) { + return cipher.type == type; + }) : all); + + case 5: + case "end": + return _context17.stop(); + } } }, _callee17, this); })); + function getAll() { return _getAll.apply(this, arguments); } + return getAll; }() /** * Get all (encrypted) logins from the local vault * @return {[Cipher]} all ciphers of type "Login" in the vault */ + }, { key: "getAllLogins", value: function () { - var _getAllLogins = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee18() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee18$(_context18) { - while (1) switch (_context18.prev = _context18.next) { - case 0: - return _context18.abrupt("return", this.getAll({ - type: _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_33__["CipherType"].Login - })); - case 1: - case "end": - return _context18.stop(); + var _getAllLogins = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee18() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee18$(_context18) { + while (1) { + switch (_context18.prev = _context18.next) { + case 0: + return _context18.abrupt("return", this.getAll({ + type: _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_34__["CipherType"].Login + })); + + case 1: + case "end": + return _context18.stop(); + } } }, _callee18, this); })); + function getAllLogins() { return _getAllLogins.apply(this, arguments); } + return getAllLogins; }() /** @@ -251530,77 +253474,96 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string} options.uri - uri of the remote service * @return {[CipherView]} decrypted ciphers, filtered by type if requested */ + }, { key: "getAllDecrypted", value: function () { - var _getAllDecrypted = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee19() { + var _getAllDecrypted = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee19() { var _this2 = this; + var _ref6, - type, - uri, - all, - _all, - _args19 = arguments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee19$(_context19) { - while (1) switch (_context19.prev = _context19.next) { - case 0: - _ref6 = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {}, type = _ref6.type, uri = _ref6.uri; - this.attachToGlobal(); - if (!uri) { - _context19.next = 9; - break; - } - _context19.next = 5; - return this.cipherService.getAllDecryptedForUrl(uri); - case 5: - all = _context19.sent; - return _context19.abrupt("return", type ? all.filter(function (c) { - return c.type == type; - }) : all); - case 9: - _context19.next = 11; - return this.getAll({ - type: type - }); - case 11: - _all = _context19.sent; - return _context19.abrupt("return", Promise.all(_all.map(function (cipher) { - return _this2.decrypt(cipher); - }))); - case 13: - case "end": - return _context19.stop(); + type, + uri, + all, + _all, + _args19 = arguments; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee19$(_context19) { + while (1) { + switch (_context19.prev = _context19.next) { + case 0: + _ref6 = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {}, type = _ref6.type, uri = _ref6.uri; + this.attachToGlobal(); + + if (!uri) { + _context19.next = 9; + break; + } + + _context19.next = 5; + return this.cipherService.getAllDecryptedForUrl(uri); + + case 5: + all = _context19.sent; + return _context19.abrupt("return", type ? all.filter(function (c) { + return c.type == type; + }) : all); + + case 9: + _context19.next = 11; + return this.getAll({ + type: type + }); + + case 11: + _all = _context19.sent; + return _context19.abrupt("return", Promise.all(_all.map(function (cipher) { + return _this2.decrypt(cipher); + }))); + + case 13: + case "end": + return _context19.stop(); + } } }, _callee19, this); })); + function getAllDecrypted() { return _getAllDecrypted.apply(this, arguments); } + return getAllDecrypted; }() /** * Get all logins from the local vault and decrypt them * @return {[CipherView]} decrypted ciphers of type "Login" */ + }, { key: "getAllDecryptedLogins", value: function () { - var _getAllDecryptedLogins = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee20() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee20$(_context20) { - while (1) switch (_context20.prev = _context20.next) { - case 0: - return _context20.abrupt("return", this.getAllDecrypted({ - type: _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_33__["CipherType"].Login - })); - case 1: - case "end": - return _context20.stop(); + var _getAllDecryptedLogins = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee20() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee20$(_context20) { + while (1) { + switch (_context20.prev = _context20.next) { + case 0: + return _context20.abrupt("return", this.getAllDecrypted({ + type: _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_34__["CipherType"].Login + })); + + case 1: + case "end": + return _context20.stop(); + } } }, _callee20, this); })); + function getAllDecryptedLogins() { return _getAllDecryptedLogins.apply(this, arguments); } + return getAllDecryptedLogins; }() /** @@ -251612,42 +253575,52 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string|RegExp} match.uri - an login.uri to match * @return {CipherView[]} */ + }, { key: "getAllDecryptedFor", value: function () { - var _getAllDecryptedFor = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee21(_ref7) { + var _getAllDecryptedFor = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee21(_ref7) { var _this3 = this; + var type, uri, username, name, all; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee21$(_context21) { - while (1) switch (_context21.prev = _context21.next) { - case 0: - type = _ref7.type, uri = _ref7.uri, username = _ref7.username, name = _ref7.name; - _context21.next = 3; - return this.getAllDecrypted({ - type: type, - uri: uri - }); - case 3: - all = _context21.sent; - return _context21.abrupt("return", all.filter(function (view) { - if (username) { - if (!view.login) return false; - if (!_this3.weakMatch(view.login.username, username)) return false; - } - if (name) { - if (!_this3.weakMatch(view.name, name)) return false; - } - return true; - })); - case 5: - case "end": - return _context21.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee21$(_context21) { + while (1) { + switch (_context21.prev = _context21.next) { + case 0: + type = _ref7.type, uri = _ref7.uri, username = _ref7.username, name = _ref7.name; + _context21.next = 3; + return this.getAllDecrypted({ + type: type, + uri: uri + }); + + case 3: + all = _context21.sent; + return _context21.abrupt("return", all.filter(function (view) { + if (username) { + if (!view.login) return false; + if (!_this3.weakMatch(view.login.username, username)) return false; + } + + if (name) { + if (!_this3.weakMatch(view.name, name)) return false; + } + + return true; + })); + + case 5: + case "end": + return _context21.stop(); + } } }, _callee21, this); })); + function getAllDecryptedFor(_x25) { return _getAllDecryptedFor.apply(this, arguments); } + return getAllDecryptedFor; }() /** @@ -251659,62 +253632,82 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {Array|function|string} sort - given to lodash.sortBy * @return {Cipher} encrypted cipher */ + }, { key: "getByIdOrSearch", value: function () { - var _getByIdOrSearch = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee22(id, search, sort) { + var _getByIdOrSearch = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee22(id, search, sort) { var cipher, all, first, _id, searchedCipher; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee22$(_context22) { - while (1) switch (_context22.prev = _context22.next) { - case 0: - if (!id) { - _context22.next = 6; - break; - } - _context22.next = 3; - return this.get(id); - case 3: - cipher = _context22.sent; - if (!cipher) { - _context22.next = 6; - break; - } - return _context22.abrupt("return", cipher); - case 6: - if (!search) { - _context22.next = 18; - break; - } - _context22.next = 9; - return this.getAllDecryptedFor(search); - case 9: - all = _context22.sent; - first = lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default()(all, sort)[0]; - _id = lodash_get__WEBPACK_IMPORTED_MODULE_8___default()(first, 'id'); - if (!_id) { - _context22.next = 18; - break; - } - _context22.next = 15; - return this.get(_id); - case 15: - searchedCipher = _context22.sent; - if (!searchedCipher) { - _context22.next = 18; - break; - } - return _context22.abrupt("return", searchedCipher); - case 18: - return _context22.abrupt("return", null); - case 19: - case "end": - return _context22.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee22$(_context22) { + while (1) { + switch (_context22.prev = _context22.next) { + case 0: + if (!id) { + _context22.next = 6; + break; + } + + _context22.next = 3; + return this.get(id); + + case 3: + cipher = _context22.sent; + + if (!cipher) { + _context22.next = 6; + break; + } + + return _context22.abrupt("return", cipher); + + case 6: + if (!search) { + _context22.next = 18; + break; + } + + _context22.next = 9; + return this.getAllDecryptedFor(search); + + case 9: + all = _context22.sent; + first = lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default()(all, sort)[0]; + _id = lodash_get__WEBPACK_IMPORTED_MODULE_8___default()(first, 'id'); + + if (!_id) { + _context22.next = 18; + break; + } + + _context22.next = 15; + return this.get(_id); + + case 15: + searchedCipher = _context22.sent; + + if (!searchedCipher) { + _context22.next = 18; + break; + } + + return _context22.abrupt("return", searchedCipher); + + case 18: + return _context22.abrupt("return", null); + + case 19: + case "end": + return _context22.stop(); + } } }, _callee22, this); })); + function getByIdOrSearch(_x26, _x27, _x28) { return _getByIdOrSearch.apply(this, arguments); } + return getByIdOrSearch; }() /** @@ -251724,12 +253717,15 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string|number|boolean|RegExp|Array} compare * @return boolean */ + }, { key: "weakMatch", value: function weakMatch(source, compare) { var _this4 = this; + if (compare === null) return true; if (source === null) return false; + if (compare instanceof Array) { return compare.find(function (c) { return _this4.weakMatch(source, c); @@ -251740,29 +253736,34 @@ var WebVaultClient = /*#__PURE__*/function () { return lodash_eq__WEBPACK_IMPORTED_MODULE_7___default()(source, compare); } } - /** * Get an encrypted cipher by its id * @param {string} id - uuid of the cipher * @return {Cipher} */ + }, { key: "get", value: function () { - var _get = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee23(id) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee23$(_context23) { - while (1) switch (_context23.prev = _context23.next) { - case 0: - return _context23.abrupt("return", this.cipherService.get(id)); - case 1: - case "end": - return _context23.stop(); + var _get = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee23(id) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee23$(_context23) { + while (1) { + switch (_context23.prev = _context23.next) { + case 0: + return _context23.abrupt("return", this.cipherService.get(id)); + + case 1: + case "end": + return _context23.stop(); + } } }, _callee23, this); })); + function get(_x29) { return _get.apply(this, arguments); } + return get; }() /** @@ -251785,29 +253786,36 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {object} options * @return {string} a password */ + }, { key: "generatePassword", value: function () { - var _generatePassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee24() { + var _generatePassword = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee24() { var options, - _args24 = arguments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee24$(_context24) { - while (1) switch (_context24.prev = _context24.next) { - case 0: - options = _args24.length > 0 && _args24[0] !== undefined ? _args24[0] : {}; - _context24.next = 3; - return this.initFinished; - case 3: - return _context24.abrupt("return", this.passwordGenerationService.generatePassword(options)); - case 4: - case "end": - return _context24.stop(); + _args24 = arguments; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee24$(_context24) { + while (1) { + switch (_context24.prev = _context24.next) { + case 0: + options = _args24.length > 0 && _args24[0] !== undefined ? _args24[0] : {}; + _context24.next = 3; + return this.initFinished; + + case 3: + return _context24.abrupt("return", this.passwordGenerationService.generatePassword(options)); + + case 4: + case "end": + return _context24.stop(); + } } }, _callee24, this); })); + function generatePassword() { return _generatePassword.apply(this, arguments); } + return generatePassword; }() /** @@ -251815,24 +253823,30 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {CipherView} - cipher to encrypt * @return {Cipher} encrypted cipher */ + }, { key: "encrypt", value: function () { - var _encrypt = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee25(cipherView) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee25$(_context25) { - while (1) switch (_context25.prev = _context25.next) { - case 0: - this.attachToGlobal(); - return _context25.abrupt("return", this.cipherService.encrypt(cipherView)); - case 2: - case "end": - return _context25.stop(); + var _encrypt = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee25(cipherView) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee25$(_context25) { + while (1) { + switch (_context25.prev = _context25.next) { + case 0: + this.attachToGlobal(); + return _context25.abrupt("return", this.cipherService.encrypt(cipherView)); + + case 2: + case "end": + return _context25.stop(); + } } }, _callee25, this); })); + function encrypt(_x30) { return _encrypt.apply(this, arguments); } + return encrypt; }() /** @@ -251840,24 +253854,30 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {Cipher} cipher * @return {CipherView} decrypted cipher */ + }, { key: "decrypt", value: function () { - var _decrypt = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee26(cipher) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee26$(_context26) { - while (1) switch (_context26.prev = _context26.next) { - case 0: - this.attachToGlobal(); - return _context26.abrupt("return", cipher.decrypt()); - case 2: - case "end": - return _context26.stop(); + var _decrypt = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee26(cipher) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee26$(_context26) { + while (1) { + switch (_context26.prev = _context26.next) { + case 0: + this.attachToGlobal(); + return _context26.abrupt("return", cipher.decrypt()); + + case 2: + case "end": + return _context26.stop(); + } } }, _callee26, this); })); + function decrypt(_x31) { return _decrypt.apply(this, arguments); } + return decrypt; }() /** @@ -251865,39 +253885,50 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string} encryptedKey - The string-encoded encrypted key * @return {SymmetricCryptoKey} The encryption key */ + }, { key: "decryptEncryptionKey", value: function () { - var _decryptEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee27(encryptedKey) { + var _decryptEncryptionKey = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee27(encryptedKey) { var encKey, cipher, decryptedBuffer; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee27$(_context27) { - while (1) switch (_context27.prev = _context27.next) { - case 0: - _context27.next = 2; - return this.getEncryptionKey(); - case 2: - encKey = _context27.sent; - if (encKey) { - _context27.next = 5; - break; - } - throw new Error('NO_ENCRYPTION_KEY'); - case 5: - cipher = new _bitwarden_jslib_models_domain_cipherString__WEBPACK_IMPORTED_MODULE_37__["CipherString"](encryptedKey); - _context27.next = 8; - return this.cryptoService.decryptToBytes(cipher, encKey); - case 8: - decryptedBuffer = _context27.sent; - return _context27.abrupt("return", new _bitwarden_jslib_models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_38__["SymmetricCryptoKey"](decryptedBuffer)); - case 10: - case "end": - return _context27.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee27$(_context27) { + while (1) { + switch (_context27.prev = _context27.next) { + case 0: + _context27.next = 2; + return this.getEncryptionKey(); + + case 2: + encKey = _context27.sent; + + if (encKey) { + _context27.next = 5; + break; + } + + throw new Error('NO_ENCRYPTION_KEY'); + + case 5: + cipher = new _bitwarden_jslib_models_domain_cipherString__WEBPACK_IMPORTED_MODULE_38__["CipherString"](encryptedKey); + _context27.next = 8; + return this.cryptoService.decryptToBytes(cipher, encKey); + + case 8: + decryptedBuffer = _context27.sent; + return _context27.abrupt("return", new _bitwarden_jslib_models_domain_symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_39__["SymmetricCryptoKey"](decryptedBuffer)); + + case 10: + case "end": + return _context27.stop(); + } } }, _callee27, this); })); + function decryptEncryptionKey(_x32) { return _decryptEncryptionKey.apply(this, arguments); } + return decryptEncryptionKey; }() /** @@ -251906,29 +253937,36 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string} encryptedKey - the encrypted encryption key * @return {ArrayBuffer} encrypted file */ + }, { key: "encryptFile", value: function () { - var _encryptFile = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee28(file, encryptedKey) { + var _encryptFile = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee28(file, encryptedKey) { var encryptionKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee28$(_context28) { - while (1) switch (_context28.prev = _context28.next) { - case 0: - this.attachToGlobal(); - _context28.next = 3; - return this.decryptEncryptionKey(encryptedKey); - case 3: - encryptionKey = _context28.sent; - return _context28.abrupt("return", this.cryptoService.encryptToBytes(file, encryptionKey)); - case 5: - case "end": - return _context28.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee28$(_context28) { + while (1) { + switch (_context28.prev = _context28.next) { + case 0: + this.attachToGlobal(); + _context28.next = 3; + return this.decryptEncryptionKey(encryptedKey); + + case 3: + encryptionKey = _context28.sent; + return _context28.abrupt("return", this.cryptoService.encryptToBytes(file, encryptionKey)); + + case 5: + case "end": + return _context28.stop(); + } } }, _callee28, this); })); + function encryptFile(_x33, _x34) { return _encryptFile.apply(this, arguments); } + return encryptFile; }() /** @@ -251937,151 +253975,211 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string} encryptedKey - the encrypted decryption key * @return {ArrayBuffer} decrypted file */ + }, { key: "decryptFile", value: function () { - var _decryptFile = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee29(encryptedFile, encryptedKey) { + var _decryptFile = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee29(encryptedFile, encryptedKey) { var decryptionKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee29$(_context29) { - while (1) switch (_context29.prev = _context29.next) { - case 0: - this.attachToGlobal(); - _context29.next = 3; - return this.decryptEncryptionKey(encryptedKey); - case 3: - decryptionKey = _context29.sent; - return _context29.abrupt("return", this.cryptoService.decryptFromBytes(encryptedFile, decryptionKey)); - case 5: - case "end": - return _context29.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee29$(_context29) { + while (1) { + switch (_context29.prev = _context29.next) { + case 0: + this.attachToGlobal(); + _context29.next = 3; + return this.decryptEncryptionKey(encryptedKey); + + case 3: + decryptionKey = _context29.sent; + return _context29.abrupt("return", this.cryptoService.decryptFromBytes(encryptedFile, decryptionKey)); + + case 5: + case "end": + return _context29.stop(); + } } }, _callee29, this); })); + function decryptFile(_x35, _x36) { return _decryptFile.apply(this, arguments); } + return decryptFile; }() /** * Save a new or modified (encrypted) cipher to the server * @param {Cipher} - cipher to save */ + }, { key: "saveCipher", value: function () { - var _saveCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee30(cipher) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee30$(_context30) { - while (1) switch (_context30.prev = _context30.next) { - case 0: - return _context30.abrupt("return", this.cipherService.saveWithServer(cipher)); - case 1: - case "end": - return _context30.stop(); + var _saveCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee30(cipher) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee30$(_context30) { + while (1) { + switch (_context30.prev = _context30.next) { + case 0: + return _context30.abrupt("return", this.cipherService.saveWithServer(cipher)); + + case 1: + case "end": + return _context30.stop(); + } } }, _callee30, this); })); + function saveCipher(_x37) { return _saveCipher.apply(this, arguments); } + return saveCipher; }() /** * Saves imported ciphers to the server * @param {Cipher} - cipher to save */ + }, { key: "postImportCiphers", value: function () { - var _postImportCiphers = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee31(encryptedCiphersToSave) { - var _groupBy, _groupBy$true, existingCiphersToSave, _groupBy$false, newCiphersToSave, req, _iterator, _step, existingCipherToSave; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee31$(_context31) { - while (1) switch (_context31.prev = _context31.next) { - case 0: - _groupBy = lodash_groupBy__WEBPACK_IMPORTED_MODULE_10___default()(encryptedCiphersToSave, function (x) { - return Boolean(x.id); - }), _groupBy$true = _groupBy.true, existingCiphersToSave = _groupBy$true === void 0 ? [] : _groupBy$true, _groupBy$false = _groupBy.false, newCiphersToSave = _groupBy$false === void 0 ? [] : _groupBy$false; - if (!(newCiphersToSave.length > 0)) { + var _postImportCiphers = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee31(encryptedCiphersToSave) { + var _groupBy, _groupBy$true, existingCiphersToSave, _groupBy$false, newCiphersToSave, req, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, existingCipherToSave; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee31$(_context31) { + while (1) { + switch (_context31.prev = _context31.next) { + case 0: + _groupBy = lodash_groupBy__WEBPACK_IMPORTED_MODULE_10___default()(encryptedCiphersToSave, function (x) { + return Boolean(x.id); + }), _groupBy$true = _groupBy.true, existingCiphersToSave = _groupBy$true === void 0 ? [] : _groupBy$true, _groupBy$false = _groupBy.false, newCiphersToSave = _groupBy$false === void 0 ? [] : _groupBy$false; + + if (!(newCiphersToSave.length > 0)) { + _context31.next = 7; + break; + } + + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("Bulk import of ".concat(newCiphersToSave.length, " ciphers")); + req = new _bitwarden_jslib_models_request_importCiphersRequest__WEBPACK_IMPORTED_MODULE_36__["ImportCiphersRequest"](); + newCiphersToSave.forEach(function (cipher) { + var cipherReq = new _bitwarden_jslib_models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_37__["CipherRequest"](cipher); + req.ciphers.push(cipherReq); + }); _context31.next = 7; - break; - } - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("Bulk import of ".concat(newCiphersToSave.length, " ciphers")); - req = new _bitwarden_jslib_models_request_importCiphersRequest__WEBPACK_IMPORTED_MODULE_35__["ImportCiphersRequest"](); - newCiphersToSave.forEach(function (cipher) { - var cipherReq = new _bitwarden_jslib_models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_36__["CipherRequest"](cipher); - req.ciphers.push(cipherReq); - }); - _context31.next = 7; - return this.apiService.postImportCiphers(req); - case 7: - if (!(existingCiphersToSave.length > 0)) { - _context31.next = 26; - break; - } - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("1 by 1 import of ".concat(existingCiphersToSave.length, " ciphers")); - _iterator = _createForOfIteratorHelper(existingCiphersToSave); - _context31.prev = 10; - _iterator.s(); - case 12: - if ((_step = _iterator.n()).done) { + return this.apiService.postImportCiphers(req); + + case 7: + if (!(existingCiphersToSave.length > 0)) { + _context31.next = 35; + break; + } + + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("1 by 1 import of ".concat(existingCiphersToSave.length, " ciphers")); + _iteratorNormalCompletion = true; + _didIteratorError = false; + _iteratorError = undefined; + _context31.prev = 12; + _iterator = existingCiphersToSave[Symbol.iterator](); + + case 14: + if (_iteratorNormalCompletion = (_step = _iterator.next()).done) { + _context31.next = 21; + break; + } + + existingCipherToSave = _step.value; _context31.next = 18; + return this.saveCipher(existingCipherToSave); + + case 18: + _iteratorNormalCompletion = true; + _context31.next = 14; break; - } - existingCipherToSave = _step.value; - _context31.next = 16; - return this.saveCipher(existingCipherToSave); - case 16: - _context31.next = 12; - break; - case 18: - _context31.next = 23; - break; - case 20: - _context31.prev = 20; - _context31.t0 = _context31["catch"](10); - _iterator.e(_context31.t0); - case 23: - _context31.prev = 23; - _iterator.f(); - return _context31.finish(23); - case 26: - return _context31.abrupt("return", { - nbNewCiphers: newCiphersToSave.length, - nbUpdatedCiphers: existingCiphersToSave.length - }); - case 27: - case "end": - return _context31.stop(); + + case 21: + _context31.next = 27; + break; + + case 23: + _context31.prev = 23; + _context31.t0 = _context31["catch"](12); + _didIteratorError = true; + _iteratorError = _context31.t0; + + case 27: + _context31.prev = 27; + _context31.prev = 28; + + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + + case 30: + _context31.prev = 30; + + if (!_didIteratorError) { + _context31.next = 33; + break; + } + + throw _iteratorError; + + case 33: + return _context31.finish(30); + + case 34: + return _context31.finish(27); + + case 35: + return _context31.abrupt("return", { + nbNewCiphers: newCiphersToSave.length, + nbUpdatedCiphers: existingCiphersToSave.length + }); + + case 36: + case "end": + return _context31.stop(); + } } - }, _callee31, this, [[10, 20, 23, 26]]); + }, _callee31, this, [[12, 23, 27, 35], [28,, 30, 34]]); })); + function postImportCiphers(_x38) { return _postImportCiphers.apply(this, arguments); } + return postImportCiphers; }() /** * Delete a cipher by its id * @param {string} id - uuid of the cipher */ + }, { key: "deleteCipher", value: function () { - var _deleteCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee32(id) { + var _deleteCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee32(id) { var realId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee32$(_context32) { - while (1) switch (_context32.prev = _context32.next) { - case 0: - realId = id.id ? id.id : id; - return _context32.abrupt("return", this.cipherService.deleteWithServer(realId)); - case 2: - case "end": - return _context32.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee32$(_context32) { + while (1) { + switch (_context32.prev = _context32.next) { + case 0: + realId = id.id ? id.id : id; + return _context32.abrupt("return", this.cipherService.deleteWithServer(realId)); + + case 2: + case "end": + return _context32.stop(); + } } }, _callee32, this); })); + function deleteCipher(_x39) { return _deleteCipher.apply(this, arguments); } + return deleteCipher; }() /** @@ -252089,42 +254187,53 @@ var WebVaultClient = /*#__PURE__*/function () { * If the organization has multiples collections, share with all collections * @param {CipherView} cipherView - cipher to share */ + }, { key: "shareWithCozy", value: function () { - var _shareWithCozy = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee33(cipherView) { + var _shareWithCozy = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee33(cipherView) { var org, cols, colIds; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee33$(_context33) { - while (1) switch (_context33.prev = _context33.next) { - case 0: - this.attachToGlobal(); - _context33.next = 3; - return this.getCozyOrg(); - case 3: - org = _context33.sent; - if (!(cipherView.organizationId != org.id)) { - _context33.next = 12; - break; - } - _context33.next = 7; - return this.getCollectionsForOrg(org); - case 7: - cols = _context33.sent; - colIds = cols.map(function (col) { - return col.id; - }); - return _context33.abrupt("return", this.cipherService.shareWithServer(cipherView, org.id, colIds)); - case 12: - return _context33.abrupt("return", undefined); - case 13: - case "end": - return _context33.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee33$(_context33) { + while (1) { + switch (_context33.prev = _context33.next) { + case 0: + this.attachToGlobal(); + _context33.next = 3; + return this.getCozyOrg(); + + case 3: + org = _context33.sent; + + if (!(cipherView.organizationId != org.id)) { + _context33.next = 12; + break; + } + + _context33.next = 7; + return this.getCollectionsForOrg(org); + + case 7: + cols = _context33.sent; + colIds = cols.map(function (col) { + return col.id; + }); + return _context33.abrupt("return", this.cipherService.shareWithServer(cipherView, org.id, colIds)); + + case 12: + return _context33.abrupt("return", undefined); + + case 13: + case "end": + return _context33.stop(); + } } }, _callee33, this); })); + function shareWithCozy(_x40) { return _shareWithCozy.apply(this, arguments); } + return shareWithCozy; }() /** @@ -252133,31 +254242,38 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {string|object} org - organization object or its uuid * @return {Collection} collections in this organization */ + }, { key: "getCollectionsForOrg", value: function () { - var _getCollectionsForOrg = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee34(org) { + var _getCollectionsForOrg = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee34(org) { var id, collections; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee34$(_context34) { - while (1) switch (_context34.prev = _context34.next) { - case 0: - id = org.id ? org.id : org; - _context34.next = 3; - return this.collectionService.getAll(); - case 3: - collections = _context34.sent; - return _context34.abrupt("return", collections.filter(function (col) { - return col.organizationId === id; - })); - case 5: - case "end": - return _context34.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee34$(_context34) { + while (1) { + switch (_context34.prev = _context34.next) { + case 0: + id = org.id ? org.id : org; + _context34.next = 3; + return this.collectionService.getAll(); + + case 3: + collections = _context34.sent; + return _context34.abrupt("return", collections.filter(function (col) { + return col.organizationId === id; + })); + + case 5: + case "end": + return _context34.stop(); + } } }, _callee34, this); })); + function getCollectionsForOrg(_x41) { return _getCollectionsForOrg.apply(this, arguments); } + return getCollectionsForOrg; }() /** @@ -252165,30 +254281,37 @@ var WebVaultClient = /*#__PURE__*/function () { * Get the Cozy organization from the vault * @return {Organization} */ + }, { key: "getCozyOrg", value: function () { - var _getCozyOrg = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee35() { + var _getCozyOrg = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee35() { var orgs; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee35$(_context35) { - while (1) switch (_context35.prev = _context35.next) { - case 0: - _context35.next = 2; - return this.userService.getAllOrganizations(); - case 2: - orgs = _context35.sent; - return _context35.abrupt("return", orgs.filter(function (org) { - return org.name.match(/^cozy\b/i); - })[0]); - case 4: - case "end": - return _context35.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee35$(_context35) { + while (1) { + switch (_context35.prev = _context35.next) { + case 0: + _context35.next = 2; + return this.userService.getAllOrganizations(); + + case 2: + orgs = _context35.sent; + return _context35.abrupt("return", orgs.filter(function (org) { + return org.name.match(/^cozy\b/i); + })[0]); + + case 4: + case "end": + return _context35.stop(); + } } }, _callee35, this); })); + function getCozyOrg() { return _getCozyOrg.apply(this, arguments); } + return getCozyOrg; }() /** @@ -252202,34 +254325,41 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {object} originalCipher * @return {Cipher} */ + }, { key: "createOrUpdateCipher", value: function () { - var _createOrUpdateCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee36(decryptedData) { + var _createOrUpdateCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee36(decryptedData) { var originalCipher, - orgId, - key, - _args36 = arguments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee36$(_context36) { - while (1) switch (_context36.prev = _context36.next) { - case 0: - originalCipher = _args36.length > 1 && _args36[1] !== undefined ? _args36[1] : null; - this.attachToGlobal(); - orgId = decryptedData.organizationId; - _context36.next = 5; - return orgId ? this.cryptoService.getOrgKey(orgId) : this.cryptoService.getEncKey(); - case 5: - key = _context36.sent; - return _context36.abrupt("return", this.cipherService.encrypt(decryptedData, key, originalCipher)); - case 7: - case "end": - return _context36.stop(); + orgId, + key, + _args36 = arguments; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee36$(_context36) { + while (1) { + switch (_context36.prev = _context36.next) { + case 0: + originalCipher = _args36.length > 1 && _args36[1] !== undefined ? _args36[1] : null; + this.attachToGlobal(); + orgId = decryptedData.organizationId; + _context36.next = 5; + return orgId ? this.cryptoService.getOrgKey(orgId) : this.cryptoService.getEncKey(); + + case 5: + key = _context36.sent; + return _context36.abrupt("return", this.cipherService.encrypt(decryptedData, key, originalCipher)); + + case 7: + case "end": + return _context36.stop(); + } } }, _callee36, this); })); + function createOrUpdateCipher(_x42) { return _createOrUpdateCipher.apply(this, arguments); } + return createOrUpdateCipher; }() /** @@ -252237,42 +254367,50 @@ var WebVaultClient = /*#__PURE__*/function () { * @param {object} decryptedData * @return {Cipher} */ + }, { key: "createNewCozySharedCipher", value: function () { - var _createNewCozySharedCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee37(decryptedData) { + var _createNewCozySharedCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee37(decryptedData) { var originalCipher, - org, - cols, - colIds, - _args37 = arguments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee37$(_context37) { - while (1) switch (_context37.prev = _context37.next) { - case 0: - originalCipher = _args37.length > 1 && _args37[1] !== undefined ? _args37[1] : null; - _context37.next = 3; - return this.getCozyOrg(); - case 3: - org = _context37.sent; - _context37.next = 6; - return this.getCollectionsForOrg(org); - case 6: - cols = _context37.sent; - colIds = cols.map(function (col) { - return col.id; - }); - decryptedData.organizationId = org.id; - decryptedData.collectionIds = colIds; - return _context37.abrupt("return", this.createOrUpdateCipher(decryptedData, originalCipher)); - case 11: - case "end": - return _context37.stop(); + org, + cols, + colIds, + _args37 = arguments; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee37$(_context37) { + while (1) { + switch (_context37.prev = _context37.next) { + case 0: + originalCipher = _args37.length > 1 && _args37[1] !== undefined ? _args37[1] : null; + _context37.next = 3; + return this.getCozyOrg(); + + case 3: + org = _context37.sent; + _context37.next = 6; + return this.getCollectionsForOrg(org); + + case 6: + cols = _context37.sent; + colIds = cols.map(function (col) { + return col.id; + }); + decryptedData.organizationId = org.id; + decryptedData.collectionIds = colIds; + return _context37.abrupt("return", this.createOrUpdateCipher(decryptedData, originalCipher)); + + case 11: + case "end": + return _context37.stop(); + } } }, _callee37, this); })); + function createNewCozySharedCipher(_x43) { return _createNewCozySharedCipher.apply(this, arguments); } + return createNewCozySharedCipher; }() /** @@ -252280,227 +254418,307 @@ var WebVaultClient = /*#__PURE__*/function () { * * Copy/pasted from ImportService::import */ + }, { key: "assertImportedCiphersSeemOK", value: function assertImportedCiphersSeemOK(importedCiphers) { var halfway = Math.floor(importedCiphers.length / 2); var last = importedCiphers.length - 1; + if (this.importService.badData(importedCiphers[0]) && this.importService.badData(importedCiphers[halfway]) && this.importService.badData(importedCiphers[last])) { throw new Error('IMPORT_BAD_FILE_CONTENT'); } } - /** * Import ciphers contained in a file in a given format * * @param {string} fileContent - the raw content of the file being imported * @param {string} format - the format of the file (see ImportService for all available formats) */ + }, { key: "import", value: function () { - var _import2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee38(fileContent, format) { + var _import2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee38(fileContent, format) { var _this5 = this; + var importer, parseResult, supportedCiphers, ciphersToSave, postImportRes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee38$(_context38) { - while (1) switch (_context38.prev = _context38.next) { - case 0: - importer = this.importService.getImporter(format, false); - if (importer) { - _context38.next = 3; - break; - } - throw new Error('IMPORT_UNKNOWN_FORMAT'); - case 3: - _context38.next = 5; - return importer.parse(fileContent); - case 5: - parseResult = _context38.sent; - if (parseResult.success) { - _context38.next = 8; - break; - } - throw new Error('IMPORT_FORMAT_ERROR'); - case 8: - if (parseResult.ciphers.length > 0) { - this.assertImportedCiphersSeemOK(parseResult.ciphers); - } - supportedCiphers = parseResult.ciphers.filter(function (cipher) { - return isSupportedCipher(cipher); - }); - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("Parsed ".concat(parseResult.ciphers.length)); - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("Importing ".concat(supportedCiphers.length, " supported ciphers")); - _context38.next = 14; - return Promise.all(supportedCiphers.map(function (cipher) { - return _this5.prepareCipherToImport(cipher); - })); - case 14: - ciphersToSave = _context38.sent; - _context38.next = 17; - return this.postImportCiphers(ciphersToSave); - case 17: - postImportRes = _context38.sent; - return _context38.abrupt("return", _objectSpread(_objectSpread({}, postImportRes), {}, { - nbParsedCiphers: parseResult.ciphers.length, - nbSupportedCiphers: supportedCiphers.length - })); - case 19: - case "end": - return _context38.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee38$(_context38) { + while (1) { + switch (_context38.prev = _context38.next) { + case 0: + importer = this.importService.getImporter(format, false); + + if (importer) { + _context38.next = 3; + break; + } + + throw new Error('IMPORT_UNKNOWN_FORMAT'); + + case 3: + _context38.next = 5; + return importer.parse(fileContent); + + case 5: + parseResult = _context38.sent; + + if (parseResult.success) { + _context38.next = 8; + break; + } + + throw new Error('IMPORT_FORMAT_ERROR'); + + case 8: + if (parseResult.ciphers.length > 0) { + this.assertImportedCiphersSeemOK(parseResult.ciphers); + } + + supportedCiphers = parseResult.ciphers.filter(function (cipher) { + return isSupportedCipher(cipher); + }); + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("Parsed ".concat(parseResult.ciphers.length)); + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info("Importing ".concat(supportedCiphers.length, " supported ciphers")); + _context38.next = 14; + return Promise.all(supportedCiphers.map(function (cipher) { + return _this5.prepareCipherToImport(cipher); + })); + + case 14: + ciphersToSave = _context38.sent; + _context38.next = 17; + return this.postImportCiphers(ciphersToSave); + + case 17: + postImportRes = _context38.sent; + return _context38.abrupt("return", _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_0___default()({}, postImportRes, { + nbParsedCiphers: parseResult.ciphers.length, + nbSupportedCiphers: supportedCiphers.length + })); + + case 19: + case "end": + return _context38.stop(); + } } }, _callee38, this); })); + function _import(_x44, _x45) { return _import2.apply(this, arguments); } + return _import; }() }, { key: "searchExistingCipher", value: function () { - var _searchExistingCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee39(cipher) { - var encryptedExistingCipher, _iterator2, _step2, uri, search, sort, decrypted; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee39$(_context39) { - while (1) switch (_context39.prev = _context39.next) { - case 0: - // Since we search existing cipher by username, password and URI; and a - // cipher being imported can have multiple URIs, we have to look for an - // existing cipher for each URI. The getByIdOrSearch API may be better - // and accepts an array of strings - _iterator2 = _createForOfIteratorHelper(cipher.login.uris); - _context39.prev = 1; - _iterator2.s(); - case 3: - if ((_step2 = _iterator2.n()).done) { - _context39.next = 24; - break; - } - uri = _step2.value; - search = { - username: cipher.login.username, - uri: uri._uri, - type: _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_33__["CipherType"].Login - }; - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Searching existing cipher with', search); - sort = [function (cipherView) { - return cipherView.login.password === cipher.login.password ? 0 : 1; - }, 'revisionDate']; - _context39.next = 10; - return this.getByIdOrSearch(null, search, sort); - case 10: - encryptedExistingCipher = _context39.sent; - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Found potential matching cipher', encryptedExistingCipher); - if (!encryptedExistingCipher) { - _context39.next = 22; + var _searchExistingCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee39(cipher) { + var encryptedExistingCipher, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, uri, search, sort, decrypted; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee39$(_context39) { + while (1) { + switch (_context39.prev = _context39.next) { + case 0: + // Since we search existing cipher by username, password and URI; and a + // cipher being imported can have multiple URIs, we have to look for an + // existing cipher for each URI. The getByIdOrSearch API may be better + // and accepts an array of strings + _iteratorNormalCompletion2 = true; + _didIteratorError2 = false; + _iteratorError2 = undefined; + _context39.prev = 3; + _iterator2 = cipher.login.uris[Symbol.iterator](); + + case 5: + if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) { + _context39.next = 27; + break; + } + + uri = _step2.value; + search = { + username: cipher.login.username, + uri: uri._uri, + type: _bitwarden_jslib_enums_cipherType__WEBPACK_IMPORTED_MODULE_34__["CipherType"].Login + }; + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Searching existing cipher with', search); + sort = [function (cipherView) { + return cipherView.login.password === cipher.login.password ? 0 : 1; + }, 'revisionDate']; + _context39.next = 12; + return this.getByIdOrSearch(null, search, sort); + + case 12: + encryptedExistingCipher = _context39.sent; + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Found potential matching cipher', encryptedExistingCipher); + + if (!encryptedExistingCipher) { + _context39.next = 24; + break; + } + + _context39.next = 17; + return this.decrypt(encryptedExistingCipher); + + case 17: + decrypted = _context39.sent; + + if (!(decrypted.login.password == cipher.login.password)) { + _context39.next = 23; + break; + } + + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Passwords are identical !'); + return _context39.abrupt("return", encryptedExistingCipher); + + case 23: + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Passwords are different'); + + case 24: + _iteratorNormalCompletion2 = true; + _context39.next = 5; break; - } - _context39.next = 15; - return this.decrypt(encryptedExistingCipher); - case 15: - decrypted = _context39.sent; - if (!(decrypted.login.password == cipher.login.password)) { - _context39.next = 21; + + case 27: + _context39.next = 33; break; - } - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Passwords are identical !'); - return _context39.abrupt("return", encryptedExistingCipher); - case 21: - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].debug('Passwords are different'); - case 22: - _context39.next = 3; - break; - case 24: - _context39.next = 29; - break; - case 26: - _context39.prev = 26; - _context39.t0 = _context39["catch"](1); - _iterator2.e(_context39.t0); - case 29: - _context39.prev = 29; - _iterator2.f(); - return _context39.finish(29); - case 32: - case "end": - return _context39.stop(); + + case 29: + _context39.prev = 29; + _context39.t0 = _context39["catch"](3); + _didIteratorError2 = true; + _iteratorError2 = _context39.t0; + + case 33: + _context39.prev = 33; + _context39.prev = 34; + + if (!_iteratorNormalCompletion2 && _iterator2.return != null) { + _iterator2.return(); + } + + case 36: + _context39.prev = 36; + + if (!_didIteratorError2) { + _context39.next = 39; + break; + } + + throw _iteratorError2; + + case 39: + return _context39.finish(36); + + case 40: + return _context39.finish(33); + + case 41: + case "end": + return _context39.stop(); + } } - }, _callee39, this, [[1, 26, 29, 32]]); + }, _callee39, this, [[3, 29, 33, 41], [34,, 36, 40]]); })); + function searchExistingCipher(_x46) { return _searchExistingCipher.apply(this, arguments); } + return searchExistingCipher; }() }, { key: "mergeCiphers", value: function () { - var _mergeCiphers = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee40(encryptedExistingCipher, cipher) { - var decryptedExistingCipher, _iterator3, _step3, _loop, mergedCipher; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee40$(_context41) { - while (1) switch (_context41.prev = _context41.next) { - case 0: - _context41.next = 2; - return this.decrypt(encryptedExistingCipher); - case 2: - decryptedExistingCipher = _context41.sent; - _iterator3 = _createForOfIteratorHelper(cipher.login.uris); - _context41.prev = 4; - _loop = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _loop() { - var uri, hasUri; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _loop$(_context40) { - while (1) switch (_context40.prev = _context40.next) { - case 0: - uri = _step3.value; - hasUri = decryptedExistingCipher.login.uris.find(function (existingUri) { - return existingUri.match === uri.match && existingUri.uri === uri.uri; - }); - if (!hasUri) { - decryptedExistingCipher.login.uris.push(uri); - } - case 3: - case "end": - return _context40.stop(); + var _mergeCiphers = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee40(encryptedExistingCipher, cipher) { + var decryptedExistingCipher, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _loop, _iterator3, _step3, mergedCipher; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee40$(_context40) { + while (1) { + switch (_context40.prev = _context40.next) { + case 0: + _context40.next = 2; + return this.decrypt(encryptedExistingCipher); + + case 2: + decryptedExistingCipher = _context40.sent; + _iteratorNormalCompletion3 = true; + _didIteratorError3 = false; + _iteratorError3 = undefined; + _context40.prev = 6; + + _loop = function _loop() { + var uri = _step3.value; + var hasUri = decryptedExistingCipher.login.uris.find(function (existingUri) { + return existingUri.match === uri.match && existingUri.uri === uri.uri; + }); + + if (!hasUri) { + decryptedExistingCipher.login.uris.push(uri); } - }, _loop); - }); - _iterator3.s(); - case 7: - if ((_step3 = _iterator3.n()).done) { - _context41.next = 11; + }; + + for (_iterator3 = cipher.login.uris[Symbol.iterator](); !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { + _loop(); + } + + _context40.next = 15; break; - } - return _context41.delegateYield(_loop(), "t0", 9); - case 9: - _context41.next = 7; - break; - case 11: - _context41.next = 16; - break; - case 13: - _context41.prev = 13; - _context41.t1 = _context41["catch"](4); - _iterator3.e(_context41.t1); - case 16: - _context41.prev = 16; - _iterator3.f(); - return _context41.finish(16); - case 19: - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Merging ciphers', decryptedExistingCipher, cipher); - _context41.next = 22; - return this.createOrUpdateCipher(decryptedExistingCipher, encryptedExistingCipher); - case 22: - mergedCipher = _context41.sent; - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Merge result', mergedCipher); - return _context41.abrupt("return", mergedCipher); - case 25: - case "end": - return _context41.stop(); + + case 11: + _context40.prev = 11; + _context40.t0 = _context40["catch"](6); + _didIteratorError3 = true; + _iteratorError3 = _context40.t0; + + case 15: + _context40.prev = 15; + _context40.prev = 16; + + if (!_iteratorNormalCompletion3 && _iterator3.return != null) { + _iterator3.return(); + } + + case 18: + _context40.prev = 18; + + if (!_didIteratorError3) { + _context40.next = 21; + break; + } + + throw _iteratorError3; + + case 21: + return _context40.finish(18); + + case 22: + return _context40.finish(15); + + case 23: + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Merging ciphers', decryptedExistingCipher, cipher); + _context40.next = 26; + return this.createOrUpdateCipher(decryptedExistingCipher, encryptedExistingCipher); + + case 26: + mergedCipher = _context40.sent; + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Merge result', mergedCipher); + return _context40.abrupt("return", mergedCipher); + + case 29: + case "end": + return _context40.stop(); + } } - }, _callee40, this, [[4, 13, 16, 19]]); + }, _callee40, this, [[6, 11, 15, 23], [16,, 18, 22]]); })); + function mergeCiphers(_x47, _x48) { return _mergeCiphers.apply(this, arguments); } + return mergeCiphers; }() /** @@ -252508,48 +254726,61 @@ var WebVaultClient = /*#__PURE__*/function () { * * The returned cipher has to be saved */ + }, { key: "prepareCipherToImport", value: function () { - var _prepareCipherToImport = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee41(cipher) { + var _prepareCipherToImport = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee41(cipher) { var cipherToSave, encryptedExistingCipher; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee41$(_context42) { - while (1) switch (_context42.prev = _context42.next) { - case 0: - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Preparing cipher to import'); - cipher.login.uris = cipher.login.uris || []; - _context42.next = 4; - return this.searchExistingCipher(cipher); - case 4: - encryptedExistingCipher = _context42.sent; - if (!encryptedExistingCipher) { - _context42.next = 12; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee41$(_context41) { + while (1) { + switch (_context41.prev = _context41.next) { + case 0: + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Preparing cipher to import'); + cipher.login.uris = cipher.login.uris || []; + _context41.next = 4; + return this.searchExistingCipher(cipher); + + case 4: + encryptedExistingCipher = _context41.sent; + + if (!encryptedExistingCipher) { + _context41.next = 12; + break; + } + + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Found existing cipher'); + _context41.next = 9; + return this.mergeCiphers(encryptedExistingCipher, cipher); + + case 9: + cipherToSave = _context41.sent; + _context41.next = 16; break; - } - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Found existing cipher'); - _context42.next = 9; - return this.mergeCiphers(encryptedExistingCipher, cipher); - case 9: - cipherToSave = _context42.sent; - _context42.next = 16; - break; - case 12: - _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Creating a new cipher'); - _context42.next = 15; - return this.createOrUpdateCipher(cipher); - case 15: - cipherToSave = _context42.sent; - case 16: - return _context42.abrupt("return", cipherToSave); - case 17: - case "end": - return _context42.stop(); + + case 12: + _logger__WEBPACK_IMPORTED_MODULE_45__["default"].info('Creating a new cipher'); + _context41.next = 15; + return this.createOrUpdateCipher(cipher); + + case 15: + cipherToSave = _context41.sent; + + case 16: + return _context41.abrupt("return", cipherToSave); + + case 17: + case "end": + return _context41.stop(); + } } }, _callee41, this); })); + function prepareCipherToImport(_x49) { return _prepareCipherToImport.apply(this, arguments); } + return prepareCipherToImport; }() /** @@ -252557,29 +254788,36 @@ var WebVaultClient = /*#__PURE__*/function () { * * @param {CipherView} cipher - the cipher to import */ + }, { key: "importCipher", value: function () { - var _importCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee42(cipher) { + var _importCipher = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee42(cipher) { var cipherToSave; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee42$(_context43) { - while (1) switch (_context43.prev = _context43.next) { - case 0: - _context43.next = 2; - return this.prepareCipherToImport(cipher); - case 2: - cipherToSave = _context43.sent; - _context43.next = 5; - return this.saveCipher(cipherToSave); - case 5: - case "end": - return _context43.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee42$(_context42) { + while (1) { + switch (_context42.prev = _context42.next) { + case 0: + _context42.next = 2; + return this.prepareCipherToImport(cipher); + + case 2: + cipherToSave = _context42.sent; + _context42.next = 5; + return this.saveCipher(cipherToSave); + + case 5: + case "end": + return _context42.stop(); + } } }, _callee42, this); })); + function importCipher(_x50) { return _importCipher.apply(this, arguments); } + return importCipher; }() }, { @@ -252591,8 +254829,10 @@ var WebVaultClient = /*#__PURE__*/function () { }; } }]); + return WebVaultClient; }(); + microee__WEBPACK_IMPORTED_MODULE_6___default.a.mixin(WebVaultClient); /* harmony default export */ __webpack_exports__["default"] = (WebVaultClient); @@ -256016,41 +258256,42 @@ module.exports = _inherits; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecureNoteApi", function() { return SecureNoteApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SecureNoteApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SecureNoteApi, _BaseResponse); - var _super = _createSuper(SecureNoteApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SecureNoteApi, _BaseResponse); + function SecureNoteApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SecureNoteApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SecureNoteApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SecureNoteApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.type = _this.getResponseProperty('Type'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SecureNoteApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SecureNoteApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -257122,12 +259363,12 @@ var waitForRealtimeEvent = function waitForRealtimeEvent(client, job, eventType) "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendService", function() { return SendService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_data_sendData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("p7tm"); /* harmony import */ var _models_request_sendRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("FuPC"); /* harmony import */ var _models_domain_send__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("To5L"); @@ -257138,12 +259379,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -257152,6 +259395,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -257159,9 +259403,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -257172,12 +259418,14 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Keys = { sendsPrefix: 'sends_' }; var SendService = /*#__PURE__*/function () { function SendService(cryptoService, userService, apiService, storageService, i18nService, cryptoFunctionService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendService); + this.cryptoService = cryptoService; this.userService = userService; this.apiService = apiService; @@ -257185,7 +259433,8 @@ var SendService = /*#__PURE__*/function () { this.i18nService = i18nService; this.cryptoFunctionService = cryptoFunctionService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SendService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SendService, [{ key: "clearCache", value: function clearCache() { this.decryptedSendCache = null; @@ -257193,83 +259442,106 @@ var SendService = /*#__PURE__*/function () { }, { key: "encrypt", value: function encrypt(model, file, password, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var fileData, send, passwordHash; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - fileData = null; - send = new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__["Send"](); - send.id = model.id; - send.type = model.type; - send.disabled = model.disabled; - send.maxAccessCount = model.maxAccessCount; - if (!(model.key == null)) { - _context.next = 13; - break; - } - _context.next = 9; - return this.cryptoFunctionService.randomBytes(16); - case 9: - model.key = _context.sent; - _context.next = 12; - return this.cryptoService.makeSendKey(model.key); - case 12: - model.cryptoKey = _context.sent; - case 13: - if (!(password != null)) { - _context.next = 18; - break; - } - _context.next = 16; - return this.cryptoFunctionService.pbkdf2(password, model.key, 'sha256', 100000); - case 16: - passwordHash = _context.sent; - send.password = _misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].fromBufferToB64(passwordHash); - case 18: - _context.next = 20; - return this.cryptoService.encrypt(model.key, key); - case 20: - send.key = _context.sent; - _context.next = 23; - return this.cryptoService.encrypt(model.name, model.cryptoKey); - case 23: - send.name = _context.sent; - _context.next = 26; - return this.cryptoService.encrypt(model.notes, model.cryptoKey); - case 26: - send.notes = _context.sent; - if (!(send.type === _enums_sendType__WEBPACK_IMPORTED_MODULE_8__["SendType"].Text)) { - _context.next = 35; - break; - } - send.text = new _models_domain_sendText__WEBPACK_IMPORTED_MODULE_7__["SendText"](); - _context.next = 31; - return this.cryptoService.encrypt(model.text.text, model.cryptoKey); - case 31: - send.text.text = _context.sent; - send.text.hidden = model.text.hidden; - _context.next = 41; - break; - case 35: - if (!(send.type === _enums_sendType__WEBPACK_IMPORTED_MODULE_8__["SendType"].File)) { - _context.next = 41; - break; - } - send.file = new _models_domain_sendFile__WEBPACK_IMPORTED_MODULE_6__["SendFile"](); - if (!(file != null)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + fileData = null; + send = new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__["Send"](); + send.id = model.id; + send.type = model.type; + send.disabled = model.disabled; + send.maxAccessCount = model.maxAccessCount; + + if (!(model.key == null)) { + _context.next = 13; + break; + } + + _context.next = 9; + return this.cryptoFunctionService.randomBytes(16); + + case 9: + model.key = _context.sent; + _context.next = 12; + return this.cryptoService.makeSendKey(model.key); + + case 12: + model.cryptoKey = _context.sent; + + case 13: + if (!(password != null)) { + _context.next = 18; + break; + } + + _context.next = 16; + return this.cryptoFunctionService.pbkdf2(password, model.key, 'sha256', 100000); + + case 16: + passwordHash = _context.sent; + send.password = _misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].fromBufferToB64(passwordHash); + + case 18: + _context.next = 20; + return this.cryptoService.encrypt(model.key, key); + + case 20: + send.key = _context.sent; + _context.next = 23; + return this.cryptoService.encrypt(model.name, model.cryptoKey); + + case 23: + send.name = _context.sent; + _context.next = 26; + return this.cryptoService.encrypt(model.notes, model.cryptoKey); + + case 26: + send.notes = _context.sent; + + if (!(send.type === _enums_sendType__WEBPACK_IMPORTED_MODULE_8__["SendType"].Text)) { + _context.next = 35; + break; + } + + send.text = new _models_domain_sendText__WEBPACK_IMPORTED_MODULE_7__["SendText"](); + _context.next = 31; + return this.cryptoService.encrypt(model.text.text, model.cryptoKey); + + case 31: + send.text.text = _context.sent; + send.text.hidden = model.text.hidden; _context.next = 41; break; - } - _context.next = 40; - return this.parseFile(send, file, model.cryptoKey); - case 40: - fileData = _context.sent; - case 41: - return _context.abrupt("return", [send, fileData]); - case 42: - case "end": - return _context.stop(); + + case 35: + if (!(send.type === _enums_sendType__WEBPACK_IMPORTED_MODULE_8__["SendType"].File)) { + _context.next = 41; + break; + } + + send.file = new _models_domain_sendFile__WEBPACK_IMPORTED_MODULE_6__["SendFile"](); + + if (!(file != null)) { + _context.next = 41; + break; + } + + _context.next = 40; + return this.parseFile(send, file, model.cryptoKey); + + case 40: + fileData = _context.sent; + + case 41: + return _context.abrupt("return", [send, fileData]); + + case 42: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -257277,29 +259549,37 @@ var SendService = /*#__PURE__*/function () { }, { key: "get", value: function get(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var userId, sends; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context2.sent; - _context2.next = 5; - return this.storageService.get(Keys.sendsPrefix + userId); - case 5: - sends = _context2.sent; - if (!(sends == null || !sends.hasOwnProperty(id))) { - _context2.next = 8; - break; - } - return _context2.abrupt("return", null); - case 8: - return _context2.abrupt("return", new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__["Send"](sends[id])); - case 9: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context2.sent; + _context2.next = 5; + return this.storageService.get(Keys.sendsPrefix + userId); + + case 5: + sends = _context2.sent; + + if (!(sends == null || !sends.hasOwnProperty(id))) { + _context2.next = 8; + break; + } + + return _context2.abrupt("return", null); + + case 8: + return _context2.abrupt("return", new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__["Send"](sends[id])); + + case 9: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -257307,29 +259587,36 @@ var SendService = /*#__PURE__*/function () { }, { key: "getAll", value: function getAll() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var userId, sends, response, id; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context3.sent; - _context3.next = 5; - return this.storageService.get(Keys.sendsPrefix + userId); - case 5: - sends = _context3.sent; - response = []; - for (id in sends) { - if (sends.hasOwnProperty(id)) { - response.push(new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__["Send"](sends[id])); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context3.sent; + _context3.next = 5; + return this.storageService.get(Keys.sendsPrefix + userId); + + case 5: + sends = _context3.sent; + response = []; + + for (id in sends) { + if (sends.hasOwnProperty(id)) { + response.push(new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__["Send"](sends[id])); + } } - } - return _context3.abrupt("return", response); - case 9: - case "end": - return _context3.stop(); + + return _context3.abrupt("return", response); + + case 9: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -257337,47 +259624,58 @@ var SendService = /*#__PURE__*/function () { }, { key: "getAllDecrypted", value: function getAllDecrypted() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var hasKey, decSends, promises, sends; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.decryptedSendCache != null)) { - _context4.next = 2; - break; - } - return _context4.abrupt("return", this.decryptedSendCache); - case 2: - _context4.next = 4; - return this.cryptoService.hasKey(); - case 4: - hasKey = _context4.sent; - if (hasKey) { - _context4.next = 7; - break; - } - throw new Error('No key.'); - case 7: - decSends = []; - promises = []; - _context4.next = 11; - return this.getAll(); - case 11: - sends = _context4.sent; - sends.forEach(function (send) { - promises.push(send.decrypt().then(function (f) { - return decSends.push(f); - })); - }); - _context4.next = 15; - return Promise.all(promises); - case 15: - decSends.sort(_misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].getSortFunction(this.i18nService, 'name')); - this.decryptedSendCache = decSends; - return _context4.abrupt("return", this.decryptedSendCache); - case 18: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.decryptedSendCache != null)) { + _context4.next = 2; + break; + } + + return _context4.abrupt("return", this.decryptedSendCache); + + case 2: + _context4.next = 4; + return this.cryptoService.hasKey(); + + case 4: + hasKey = _context4.sent; + + if (hasKey) { + _context4.next = 7; + break; + } + + throw new Error('No key.'); + + case 7: + decSends = []; + promises = []; + _context4.next = 11; + return this.getAll(); + + case 11: + sends = _context4.sent; + sends.forEach(function (send) { + promises.push(send.decrypt().then(function (f) { + return decSends.push(f); + })); + }); + _context4.next = 15; + return Promise.all(promises); + + case 15: + decSends.sort(_misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].getSortFunction(this.i18nService, 'name')); + this.decryptedSendCache = decSends; + return _context4.abrupt("return", this.decryptedSendCache); + + case 18: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -257385,77 +259683,96 @@ var SendService = /*#__PURE__*/function () { }, { key: "saveWithServer", value: function saveWithServer(sendData) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var request, response, fd, blob, userId, data; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - request = new _models_request_sendRequest__WEBPACK_IMPORTED_MODULE_4__["SendRequest"](sendData[0]); - if (!(sendData[0].id == null)) { - _context5.next = 29; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + request = new _models_request_sendRequest__WEBPACK_IMPORTED_MODULE_4__["SendRequest"](sendData[0]); + + if (!(sendData[0].id == null)) { + _context5.next = 29; + break; + } + + if (!(sendData[0].type === _enums_sendType__WEBPACK_IMPORTED_MODULE_8__["SendType"].Text)) { + _context5.next = 8; + break; + } + + _context5.next = 5; + return this.apiService.postSend(request); + + case 5: + response = _context5.sent; + _context5.next = 26; break; - } - if (!(sendData[0].type === _enums_sendType__WEBPACK_IMPORTED_MODULE_8__["SendType"].Text)) { - _context5.next = 8; + + case 8: + fd = new FormData(); + _context5.prev = 9; + blob = new Blob([sendData[1]], { + type: 'application/octet-stream' + }); + fd.append('model', JSON.stringify(request)); + fd.append('data', blob, sendData[0].file.fileName.encryptedString); + _context5.next = 23; break; - } - _context5.next = 5; - return this.apiService.postSend(request); - case 5: - response = _context5.sent; - _context5.next = 26; - break; - case 8: - fd = new FormData(); - _context5.prev = 9; - blob = new Blob([sendData[1]], { - type: 'application/octet-stream' - }); - fd.append('model', JSON.stringify(request)); - fd.append('data', blob, sendData[0].file.fileName.encryptedString); - _context5.next = 23; - break; - case 15: - _context5.prev = 15; - _context5.t0 = _context5["catch"](9); - if (!(_misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].isBrowser)) { - _context5.next = 22; + + case 15: + _context5.prev = 15; + _context5.t0 = _context5["catch"](9); + + if (!(_misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_9__["Utils"].isBrowser)) { + _context5.next = 22; + break; + } + + fd.append('model', JSON.stringify(request)); + fd.append('data', Buffer.from(sendData[1]), { + filepath: sendData[0].file.fileName.encryptedString, + contentType: 'application/octet-stream' + }); + _context5.next = 23; break; - } - fd.append('model', JSON.stringify(request)); - fd.append('data', Buffer.from(sendData[1]), { - filepath: sendData[0].file.fileName.encryptedString, - contentType: 'application/octet-stream' - }); - _context5.next = 23; - break; - case 22: - throw _context5.t0; - case 23: - _context5.next = 25; - return this.apiService.postSendFile(fd); - case 25: - response = _context5.sent; - case 26: - sendData[0].id = response.id; - _context5.next = 32; - break; - case 29: - _context5.next = 31; - return this.apiService.putSend(sendData[0].id, request); - case 31: - response = _context5.sent; - case 32: - _context5.next = 34; - return this.userService.getUserId(); - case 34: - userId = _context5.sent; - data = new _models_data_sendData__WEBPACK_IMPORTED_MODULE_3__["SendData"](response, userId); - _context5.next = 38; - return this.upsert(data); - case 38: - case "end": - return _context5.stop(); + + case 22: + throw _context5.t0; + + case 23: + _context5.next = 25; + return this.apiService.postSendFile(fd); + + case 25: + response = _context5.sent; + + case 26: + sendData[0].id = response.id; + _context5.next = 32; + break; + + case 29: + _context5.next = 31; + return this.apiService.putSend(sendData[0].id, request); + + case 31: + response = _context5.sent; + + case 32: + _context5.next = 34; + return this.userService.getUserId(); + + case 34: + userId = _context5.sent; + data = new _models_data_sendData__WEBPACK_IMPORTED_MODULE_3__["SendData"](response, userId); + _context5.next = 38; + return this.upsert(data); + + case 38: + case "end": + return _context5.stop(); + } } }, _callee5, this, [[9, 15]]); })); @@ -257463,37 +259780,46 @@ var SendService = /*#__PURE__*/function () { }, { key: "upsert", value: function upsert(send) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var userId, sends, s; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context6.sent; - _context6.next = 5; - return this.storageService.get(Keys.sendsPrefix + userId); - case 5: - sends = _context6.sent; - if (sends == null) { - sends = {}; - } - if (send instanceof _models_data_sendData__WEBPACK_IMPORTED_MODULE_3__["SendData"]) { - s = send; - sends[s.id] = s; - } else { - send.forEach(function (s) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context6.sent; + _context6.next = 5; + return this.storageService.get(Keys.sendsPrefix + userId); + + case 5: + sends = _context6.sent; + + if (sends == null) { + sends = {}; + } + + if (send instanceof _models_data_sendData__WEBPACK_IMPORTED_MODULE_3__["SendData"]) { + s = send; sends[s.id] = s; - }); - } - _context6.next = 10; - return this.storageService.save(Keys.sendsPrefix + userId, sends); - case 10: - this.decryptedSendCache = null; - case 11: - case "end": - return _context6.stop(); + } else { + send.forEach(function (s) { + sends[s.id] = s; + }); + } + + _context6.next = 10; + return this.storageService.save(Keys.sendsPrefix + userId, sends); + + case 10: + this.decryptedSendCache = null; + + case 11: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -257501,22 +259827,27 @@ var SendService = /*#__PURE__*/function () { }, { key: "replace", value: function replace(sends) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context7.sent; - _context7.next = 5; - return this.storageService.save(Keys.sendsPrefix + userId, sends); - case 5: - this.decryptedSendCache = null; - case 6: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context7.sent; + _context7.next = 5; + return this.storageService.save(Keys.sendsPrefix + userId, sends); + + case 5: + this.decryptedSendCache = null; + + case 6: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -257524,17 +259855,21 @@ var SendService = /*#__PURE__*/function () { }, { key: "clear", value: function clear(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.storageService.remove(Keys.sendsPrefix + userId); - case 2: - this.decryptedSendCache = null; - case 3: - case "end": - return _context8.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.storageService.remove(Keys.sendsPrefix + userId); + + case 2: + this.decryptedSendCache = null; + + case 3: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -257542,50 +259877,64 @@ var SendService = /*#__PURE__*/function () { }, { key: "delete", value: function _delete(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var userId, sends; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context9.sent; - _context9.next = 5; - return this.storageService.get(Keys.sendsPrefix + userId); - case 5: - sends = _context9.sent; - if (!(sends == null)) { - _context9.next = 8; - break; - } - return _context9.abrupt("return"); - case 8: - if (!(typeof id === 'string')) { - _context9.next = 14; - break; - } - if (!(sends[id] == null)) { - _context9.next = 11; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context9.sent; + _context9.next = 5; + return this.storageService.get(Keys.sendsPrefix + userId); + + case 5: + sends = _context9.sent; + + if (!(sends == null)) { + _context9.next = 8; + break; + } + + return _context9.abrupt("return"); + + case 8: + if (!(typeof id === 'string')) { + _context9.next = 14; + break; + } + + if (!(sends[id] == null)) { + _context9.next = 11; + break; + } + + return _context9.abrupt("return"); + + case 11: + delete sends[id]; + _context9.next = 15; break; - } - return _context9.abrupt("return"); - case 11: - delete sends[id]; - _context9.next = 15; - break; - case 14: - id.forEach(function (i) { - delete sends[i]; - }); - case 15: - _context9.next = 17; - return this.storageService.save(Keys.sendsPrefix + userId, sends); - case 17: - this.decryptedSendCache = null; - case 18: - case "end": - return _context9.stop(); + + case 14: + id.forEach(function (i) { + delete sends[i]; + }); + + case 15: + _context9.next = 17; + return this.storageService.save(Keys.sendsPrefix + userId, sends); + + case 17: + this.decryptedSendCache = null; + + case 18: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -257593,18 +259942,22 @@ var SendService = /*#__PURE__*/function () { }, { key: "deleteWithServer", value: function deleteWithServer(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.apiService.deleteSend(id); - case 2: - _context10.next = 4; - return this.delete(id); - case 4: - case "end": - return _context10.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.apiService.deleteSend(id); + + case 2: + _context10.next = 4; + return this.delete(id); + + case 4: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -257613,44 +259966,54 @@ var SendService = /*#__PURE__*/function () { key: "parseFile", value: function parseFile(send, file, key) { var _this = this; + return new Promise(function (resolve, reject) { var reader = new FileReader(); reader.readAsArrayBuffer(file); + reader.onload = function (evt) { - return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var fileData; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - _context11.prev = 0; - _context11.next = 3; - return this.cryptoService.encrypt(file.name, key); - case 3: - send.file.fileName = _context11.sent; - _context11.next = 6; - return this.cryptoService.encryptToBytes(evt.target.result, key); - case 6: - fileData = _context11.sent; - resolve(fileData); - _context11.next = 13; - break; - case 10: - _context11.prev = 10; - _context11.t0 = _context11["catch"](0); - reject(_context11.t0); - case 13: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + _context11.prev = 0; + _context11.next = 3; + return this.cryptoService.encrypt(file.name, key); + + case 3: + send.file.fileName = _context11.sent; + _context11.next = 6; + return this.cryptoService.encryptToBytes(evt.target.result, key); + + case 6: + fileData = _context11.sent; + resolve(fileData); + _context11.next = 13; + break; + + case 10: + _context11.prev = 10; + _context11.t0 = _context11["catch"](0); + reject(_context11.t0); + + case 13: + case "end": + return _context11.stop(); + } } }, _callee11, this, [[0, 10]]); })); }; + reader.onerror = function (evt) { reject('Error reading file.'); }; }); } }]); + return SendService; }(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("O+Yk").Buffer)) @@ -258429,21 +260792,21 @@ function defaultY(d) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginUriData", function() { return LoginUriData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var LoginUriData = function LoginUriData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginUriData); -var LoginUriData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function LoginUriData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, LoginUriData); this.match = null; + if (data == null) { return; } + this.uri = data.uri; this.match = data.match; -}); +}; /***/ }), @@ -259583,6 +261946,7 @@ __webpack_require__.r(__webpack_exports__); var SendView = /*#__PURE__*/function () { function SendView(s) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendView); + this.id = null; this.accessId = null; this.name = null; @@ -259597,9 +261961,11 @@ var SendView = /*#__PURE__*/function () { this.expirationDate = null; this.password = null; this.disabled = false; + if (!s) { return; } + this.id = s.id; this.accessId = s.accessId; this.type = s.type; @@ -259611,12 +261977,14 @@ var SendView = /*#__PURE__*/function () { this.disabled = s.disabled; this.password = s.password; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SendView, [{ key: "urlB64Key", get: function get() { return _misc_utils__WEBPACK_IMPORTED_MODULE_2__["Utils"].fromBufferToUrlB64(this.key); } }]); + return SendView; }(); @@ -261761,34 +264129,31 @@ function useIsFocusVisible() { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProfileResponse", function() { return ProfileResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _profileOrganizationResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("Ruwu"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _profileOrganizationResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Ruwu"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ProfileResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ProfileResponse, _BaseResponse); - var _super = _createSuper(ProfileResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ProfileResponse, _BaseResponse); + function ProfileResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ProfileResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ProfileResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(ProfileResponse).call(this, response)); _this.organizations = []; _this.id = _this.getResponseProperty('Id'); _this.name = _this.getResponseProperty('Name'); @@ -261801,16 +264166,20 @@ var ProfileResponse = /*#__PURE__*/function (_BaseResponse) { _this.key = _this.getResponseProperty('Key'); _this.privateKey = _this.getResponseProperty('PrivateKey'); _this.securityStamp = _this.getResponseProperty('SecurityStamp'); + var organizations = _this.getResponseProperty('Organizations'); + if (organizations != null) { _this.organizations = organizations.map(function (o) { - return new _profileOrganizationResponse__WEBPACK_IMPORTED_MODULE_6__["ProfileOrganizationResponse"](o); + return new _profileOrganizationResponse__WEBPACK_IMPORTED_MODULE_5__["ProfileOrganizationResponse"](o); }); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ProfileResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return ProfileResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -262388,40 +264757,6 @@ __webpack_require__.r(__webpack_exports__); }); -/***/ }), - -/***/ "eVGC": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/illus/cozy-authentification.svg` to regenerate; - -function SvgCozyAuthentification(props) { - return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({ - viewBox: "0 0 64 64", - fill: "none" - }, props), /*#__PURE__*/_react.default.createElement("path", { - d: "M0 35.333c0 9.819 7.96 17.778 17.778 17.778h28.444c9.819 0 17.778-7.96 17.778-17.778 0-8.705-6.258-15.95-14.52-17.48C47.95 9.591 40.706 3.333 32 3.333c-8.706 0-15.95 6.258-17.48 14.52C6.257 19.383 0 26.628 0 35.333z", - fill: "#B3D3FF" - }), /*#__PURE__*/_react.default.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M34.667 35.445A6.668 6.668 0 0032 22.667a6.667 6.667 0 00-2.667 12.778v5.888a2.667 2.667 0 105.334 0v-5.888z", - fill: "#297EF2" - })); -} -var _default = SvgCozyAuthentification; -exports.default = _default; - /***/ }), /***/ "eVKw": @@ -262805,16 +265140,14 @@ exports.default = _default; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherBulkRestoreRequest", function() { return CipherBulkRestoreRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CipherBulkRestoreRequest = function CipherBulkRestoreRequest(ids) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherBulkRestoreRequest); -var CipherBulkRestoreRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherBulkRestoreRequest(ids) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherBulkRestoreRequest); this.ids = ids == null ? [] : ids; -}); +}; /***/ }), @@ -263166,14 +265499,12 @@ function useEventCallback(fn) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationData", function() { return OrganizationData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var OrganizationData = function OrganizationData(response) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OrganizationData); -var OrganizationData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function OrganizationData(response) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, OrganizationData); this.id = response.id; this.name = response.name; this.status = response.status; @@ -263195,7 +265526,7 @@ var OrganizationData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_ this.maxStorageGb = response.maxStorageGb; this.ssoBound = response.ssoBound; this.identifier = response.identifier; -}); +}; /***/ }), @@ -263657,25 +265988,28 @@ __webpack_require__.r(__webpack_exports__); -var CanLaunchWhitelist = ['https://', 'http://', 'ssh://', 'ftp://', 'sftp://', 'irc://', 'vnc://', -// https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-uri +var CanLaunchWhitelist = ['https://', 'http://', 'ssh://', 'ftp://', 'sftp://', 'irc://', 'vnc://', // https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-uri 'rdp://', 'ms-rd:', 'chrome://', 'iosapp://', 'androidapp://']; var LoginUriView = /*#__PURE__*/function () { // tslint:enable function LoginUriView(u) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginUriView); - this.match = null; - // tslint:disable + + this.match = null; // tslint:disable + this._uri = null; this._domain = null; this._hostname = null; this._host = null; this._canLaunch = null; + if (!u) { return; } + this.match = u.match; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LoginUriView, [{ key: "uri", get: function get() { @@ -263691,10 +266025,12 @@ var LoginUriView = /*#__PURE__*/function () { get: function get() { if (this._domain == null && this.uri != null) { this._domain = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].getDomain(this.uri); + if (this._domain === '') { this._domain = null; } } + return this._domain; } }, { @@ -263703,12 +266039,15 @@ var LoginUriView = /*#__PURE__*/function () { if (this.match === _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_2__["UriMatchType"].RegularExpression) { return null; } + if (this._hostname == null && this.uri != null) { this._hostname = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].getHostname(this.uri); + if (this._hostname === '') { this._hostname = null; } } + return this._hostname; } }, { @@ -263717,12 +266056,15 @@ var LoginUriView = /*#__PURE__*/function () { if (this.match === _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_2__["UriMatchType"].RegularExpression) { return null; } + if (this._host == null && this.uri != null) { this._host = _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].getHost(this.uri); + if (this._host === '') { this._host = null; } } + return this._host; } }, { @@ -263746,8 +266088,10 @@ var LoginUriView = /*#__PURE__*/function () { if (this._canLaunch != null) { return this._canLaunch; } + if (this.uri != null && this.match !== _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_2__["UriMatchType"].RegularExpression) { var uri = this.launchUri; + for (var i = 0; i < CanLaunchWhitelist.length; i++) { if (uri.indexOf(CanLaunchWhitelist[i]) === 0) { this._canLaunch = true; @@ -263755,6 +266099,7 @@ var LoginUriView = /*#__PURE__*/function () { } } } + this._canLaunch = false; return this._canLaunch; } @@ -263764,6 +266109,7 @@ var LoginUriView = /*#__PURE__*/function () { return this.uri.indexOf('://') < 0 && _misc_utils__WEBPACK_IMPORTED_MODULE_3__["Utils"].tldEndingRegex.test(this.uri) ? 'http://' + this.uri : this.uri; } }]); + return LoginUriView; }(); @@ -265957,7 +268303,7 @@ Object.defineProperty(exports, "__esModule", { exports.default = void 0; var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/eye-closed.svg` to regenerate; +// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/ui/eye-closed.svg` to regenerate; function SvgEyeClosed(props) { return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({ @@ -265965,7 +268311,13 @@ function SvgEyeClosed(props) { }, props), /*#__PURE__*/_react.default.createElement("g", { fillRule: "evenodd" }, /*#__PURE__*/_react.default.createElement("path", { - d: "M1 10s3-6 9-6 9 6 9 6-3 6-9 6-9-6-9-6zm9 4a4 4 0 100-8 4 4 0 000 8zm0-2a2 2 0 100-4 2 2 0 000 4zm-7 5L17 4" + d: "M1 10s3-6 9-6 9 6 9 6-3 6-9 6-9-6-9-6zm9 4a4 4 0 100-8 4 4 0 000 8zm0-2a2 2 0 100-4 2 2 0 000 4z" + }), /*#__PURE__*/_react.default.createElement("path", { + stroke: "#FFF", + strokeWidth: 4, + d: "M3 17L17 4", + strokeLinecap: "round", + strokeLinejoin: "round" }), /*#__PURE__*/_react.default.createElement("path", { d: "M16.32 3.267c.966-.832 2.311.514 1.36 1.466l-14 13c-.992.854-2.31-.516-1.36-1.466l14-13z", fillRule: "nonzero" @@ -267310,20 +269662,20 @@ module.exports = ReactPropTypesSecret; "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("XkwL"); -/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("XkwL"); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ivGQ"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ii0b"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var cozy_ui_transpiled_react_Spinner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("bQqJ"); /* harmony import */ var cozy_ui_transpiled_react_Spinner__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Spinner__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var cozy_ui_transpiled_react_deprecated_Overlay__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("9WMr"); -/* harmony import */ var cozy_ui_transpiled_react_deprecated_Overlay__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_deprecated_Overlay__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var cozy_ui_transpiled_react_Overlay__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("9ilv"); +/* harmony import */ var cozy_ui_transpiled_react_Overlay__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Overlay__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var cozy_ui_transpiled_react_I18n_withLocales__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("JuFE"); /* harmony import */ var cozy_ui_transpiled_react_I18n_withLocales__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_I18n_withLocales__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _locales_en_json__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("GzLc"); @@ -267350,28 +269702,34 @@ var locales = { en: _locales_en_json__WEBPACK_IMPORTED_MODULE_8__, fr: _locales_fr_json__WEBPACK_IMPORTED_MODULE_9__ }; + var VaultUnlocker = function VaultUnlocker(_ref) { var children = _ref.children, - onDismiss = _ref.onDismiss, - closable = _ref.closable, - onUnlock = _ref.onUnlock, - UnlockForm = _ref.UnlockForm, - addCheckShouldUnlock = _ref.addCheckShouldUnlock; + onDismiss = _ref.onDismiss, + closable = _ref.closable, + onUnlock = _ref.onUnlock, + UnlockForm = _ref.UnlockForm, + addCheckShouldUnlock = _ref.addCheckShouldUnlock; + var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_VaultContext__WEBPACK_IMPORTED_MODULE_10__["VaultContext"]), - locked = _useContext.locked, - vaultClient = _useContext.vaultClient; + locked = _useContext.locked, + vaultClient = _useContext.vaultClient; + var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false), - _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2), - showSpinner = _useState2[0], - setShowSpinner = _useState2[1]; + _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2), + showSpinner = _useState2[0], + setShowSpinner = _useState2[1]; + var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(true), - _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState3, 2), - isChecking = _useState4[0], - setIsChecking = _useState4[1]; + _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2), + isChecking = _useState4[0], + setIsChecking = _useState4[1]; + var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false), - _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState5, 2), - shouldUnlock = _useState6[0], - setShouldUnlock = _useState6[1]; + _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2), + shouldUnlock = _useState6[0], + setShouldUnlock = _useState6[1]; + Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () { var interval = setInterval(function () { setShowSpinner(true); @@ -267383,47 +269741,56 @@ var VaultUnlocker = function VaultUnlocker(_ref) { Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () { var doCheckShouldUnlock = /*#__PURE__*/function () { - var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var shouldUnlock; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return Object(_defaults__WEBPACK_IMPORTED_MODULE_12__["checkShouldUnlock"])(vaultClient, addCheckShouldUnlock); - case 2: - shouldUnlock = _context.sent; - setShouldUnlock(shouldUnlock); - setIsChecking(false); - if (!shouldUnlock && onUnlock) { - onUnlock(); - } - case 6: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return Object(_defaults__WEBPACK_IMPORTED_MODULE_12__["checkShouldUnlock"])(vaultClient, addCheckShouldUnlock); + + case 2: + shouldUnlock = _context.sent; + setShouldUnlock(shouldUnlock); + setIsChecking(false); + + if (!shouldUnlock && onUnlock) { + onUnlock(); + } + + case 6: + case "end": + return _context.stop(); + } } }, _callee); })); + return function doCheckShouldUnlock() { return _ref2.apply(this, arguments); }; }(); + doCheckShouldUnlock(); }, []); // eslint-disable-line react-hooks/exhaustive-deps if (isChecking) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_deprecated_Overlay__WEBPACK_IMPORTED_MODULE_6___default.a, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { + return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Overlay__WEBPACK_IMPORTED_MODULE_6___default.a, null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: "u-ta-center u-flex u-flex-column u-flex-grow-1 u-mv-3" - }, showSpinner ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Spinner__WEBPACK_IMPORTED_MODULE_5___default.a, { + }, showSpinner ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Spinner__WEBPACK_IMPORTED_MODULE_5___default.a, { size: "large", color: "white" }) : null)); } - return locked && shouldUnlock ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(UnlockForm, { + + return locked && shouldUnlock ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(UnlockForm, { onDismiss: onDismiss, closable: closable, onUnlock: onUnlock }) : children || null; }; + VaultUnlocker.propTypes = { onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func.isRequired, closable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, @@ -268091,53 +270458,56 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BillingSubscriptionResponse", function() { return BillingSubscriptionResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BillingSubscriptionItemResponse", function() { return BillingSubscriptionItemResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BillingSubscriptionUpcomingInvoiceResponse", function() { return BillingSubscriptionUpcomingInvoiceResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SubscriptionResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SubscriptionResponse, _BaseResponse); - var _super = _createSuper(SubscriptionResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SubscriptionResponse, _BaseResponse); + function SubscriptionResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SubscriptionResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SubscriptionResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SubscriptionResponse).call(this, response)); _this.storageName = _this.getResponseProperty('StorageName'); _this.storageGb = _this.getResponseProperty('StorageGb'); _this.maxStorageGb = _this.getResponseProperty('MaxStorageGb'); _this.license = _this.getResponseProperty('License'); _this.expiration = _this.getResponseProperty('Expiration'); _this.usingInAppPurchase = _this.getResponseProperty('UsingInAppPurchase'); + var subscription = _this.getResponseProperty('Subscription'); + var upcomingInvoice = _this.getResponseProperty('UpcomingInvoice'); + _this.subscription = subscription == null ? null : new BillingSubscriptionResponse(subscription); _this.upcomingInvoice = upcomingInvoice == null ? null : new BillingSubscriptionUpcomingInvoiceResponse(upcomingInvoice); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SubscriptionResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SubscriptionResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var BillingSubscriptionResponse = /*#__PURE__*/function (_BaseResponse2) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingSubscriptionResponse, _BaseResponse2); - var _super2 = _createSuper(BillingSubscriptionResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingSubscriptionResponse, _BaseResponse2); + function BillingSubscriptionResponse(response) { var _this2; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingSubscriptionResponse); - _this2 = _super2.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingSubscriptionResponse); + + _this2 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingSubscriptionResponse).call(this, response)); _this2.items = []; _this2.trialEndDate = _this2.getResponseProperty('TrialStartDate'); _this2.trialEndDate = _this2.getResponseProperty('TrialEndDate'); @@ -268147,44 +270517,54 @@ var BillingSubscriptionResponse = /*#__PURE__*/function (_BaseResponse2) { _this2.cancelAtEndDate = _this2.getResponseProperty('CancelAtEndDate'); _this2.status = _this2.getResponseProperty('Status'); _this2.cancelled = _this2.getResponseProperty('Cancelled'); + var items = _this2.getResponseProperty('Items'); + if (items != null) { _this2.items = items.map(function (i) { return new BillingSubscriptionItemResponse(i); }); } + return _this2; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingSubscriptionResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingSubscriptionResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var BillingSubscriptionItemResponse = /*#__PURE__*/function (_BaseResponse3) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingSubscriptionItemResponse, _BaseResponse3); - var _super3 = _createSuper(BillingSubscriptionItemResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingSubscriptionItemResponse, _BaseResponse3); + function BillingSubscriptionItemResponse(response) { var _this3; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingSubscriptionItemResponse); - _this3 = _super3.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingSubscriptionItemResponse); + + _this3 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingSubscriptionItemResponse).call(this, response)); _this3.name = _this3.getResponseProperty('Name'); _this3.amount = _this3.getResponseProperty('Amount'); _this3.quantity = _this3.getResponseProperty('Quantity'); _this3.interval = _this3.getResponseProperty('Interval'); return _this3; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingSubscriptionItemResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingSubscriptionItemResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var BillingSubscriptionUpcomingInvoiceResponse = /*#__PURE__*/function (_BaseResponse4) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingSubscriptionUpcomingInvoiceResponse, _BaseResponse4); - var _super4 = _createSuper(BillingSubscriptionUpcomingInvoiceResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingSubscriptionUpcomingInvoiceResponse, _BaseResponse4); + function BillingSubscriptionUpcomingInvoiceResponse(response) { var _this4; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingSubscriptionUpcomingInvoiceResponse); - _this4 = _super4.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingSubscriptionUpcomingInvoiceResponse); + + _this4 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingSubscriptionUpcomingInvoiceResponse).call(this, response)); _this4.date = _this4.getResponseProperty('Date'); _this4.amount = _this4.getResponseProperty('Amount'); return _this4; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingSubscriptionUpcomingInvoiceResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingSubscriptionUpcomingInvoiceResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -268237,14 +270617,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _data_passwordHistoryData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("QQBa"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); /* harmony import */ var _view_passwordHistoryView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("UJYq"); @@ -268254,28 +270634,33 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Password = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Password, _Domain); - var _super = _createSuper(Password); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Password, _Domain); + function Password(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Password); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Password).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { password: null }, alreadyEncrypted); + _this.lastUsedDate = new Date(obj.lastUsedDate); return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Password, [{ key: "decrypt", value: function decrypt(orgId) { @@ -268294,6 +270679,7 @@ var Password = /*#__PURE__*/function (_Domain) { return ph; } }]); + return Password; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); @@ -269325,23 +271711,6 @@ function lengthPoint(x, y) { /* harmony default export */ __webpack_exports__["default"] = (lengthStream); -/***/ }), - -/***/ "gMSI": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _Link = _interopRequireDefault(__webpack_require__("VjqM")); -var _default = _Link.default; -exports.default = _default; - /***/ }), /***/ "gMoU": @@ -269388,23 +271757,6 @@ var Symbol = root.Symbol; module.exports = Symbol; -/***/ }), - -/***/ "gQXR": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _Paper = _interopRequireDefault(__webpack_require__("vwQl")); -var _default = _Paper.default; -exports.default = _default; - /***/ }), /***/ "gQm3": @@ -269818,12 +272170,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_collectionView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("7/l8"); @@ -269832,28 +272184,31 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PadlockCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PadlockCsvImporter, _BaseImporter); - var _super = _createSuper(PadlockCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PadlockCsvImporter, _BaseImporter); + function PadlockCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PadlockCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PadlockCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PadlockCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + var headers = null; results.forEach(function (value) { if (headers == null) { @@ -269862,9 +272217,11 @@ var PadlockCsvImporter = /*#__PURE__*/function (_BaseImporter) { }); return; } + if (value.length < 2 || value.length !== headers.length) { return; } + if (!_this.isNullOrWhitespace(value[1])) { if (_this.organization) { var tags = value[1].split(','); @@ -269872,6 +272229,7 @@ var PadlockCsvImporter = /*#__PURE__*/function (_BaseImporter) { tag = tag.trim(); var addCollection = true; var collectionIndex = result.collections.length; + for (var i = 0; i < result.collections.length; i++) { if (result.collections[i].name === tag) { addCollection = false; @@ -269879,26 +272237,35 @@ var PadlockCsvImporter = /*#__PURE__*/function (_BaseImporter) { break; } } + if (addCollection) { var collection = new _models_view_collectionView__WEBPACK_IMPORTED_MODULE_7__["CollectionView"](); collection.name = tag; result.collections.push(collection); } + result.collectionRelationships.push([result.ciphers.length, collectionIndex]); }); } else { var _tags = value[1].split(','); + var tag = _tags.length > 0 ? _tags[0].trim() : null; + _this.processFolder(result, tag); } } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value[0], '--'); + for (var i = 2; i < value.length; i++) { var header = headers[i].trim().toLowerCase(); + if (_this.isNullOrWhitespace(value[i]) || _this.isNullOrWhitespace(header)) { continue; } + if (_this.usernameFieldNames.indexOf(header) > -1) { cipher.login.username = value[i]; } else if (_this.passwordFieldNames.indexOf(header) > -1) { @@ -269909,13 +272276,16 @@ var PadlockCsvImporter = /*#__PURE__*/function (_BaseImporter) { _this.processKvp(cipher, headers[i], value[i]); } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return PadlockCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -270555,19 +272925,17 @@ module.exports = __webpack_require__("WSXa").Array.includes; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherShareRequest", function() { return CipherShareRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _cipherRequest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("COvv"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _cipherRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("COvv"); +var CipherShareRequest = function CipherShareRequest(cipher) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherShareRequest); -var CipherShareRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherShareRequest(cipher) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherShareRequest); - this.cipher = new _cipherRequest__WEBPACK_IMPORTED_MODULE_2__["CipherRequest"](cipher); + this.cipher = new _cipherRequest__WEBPACK_IMPORTED_MODULE_1__["CipherRequest"](cipher); this.collectionIds = cipher.collectionIds; -}); +}; /***/ }), @@ -271737,38 +274105,36 @@ module.exports = buildDistanceInWordsLocale "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorProviderResponse", function() { return TwoFactorProviderResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var TwoFactorProviderResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorProviderResponse, _BaseResponse); - var _super = _createSuper(TwoFactorProviderResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorProviderResponse, _BaseResponse); + function TwoFactorProviderResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorProviderResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorProviderResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorProviderResponse).call(this, response)); _this.enabled = _this.getResponseProperty('Enabled'); _this.type = _this.getResponseProperty('Type'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorProviderResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorProviderResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -272413,44 +274779,47 @@ function startOfUTCISOWeek(dirtyDate) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginUriApi", function() { return LoginUriApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var LoginUriApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LoginUriApi, _BaseResponse); - var _super = _createSuper(LoginUriApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(LoginUriApi, _BaseResponse); + function LoginUriApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, LoginUriApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginUriApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(LoginUriApi).call(this, data)); _this.match = null; + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.uri = _this.getResponseProperty('Uri'); + var match = _this.getResponseProperty('Match'); + _this.match = match != null ? match : null; return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(LoginUriApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return LoginUriApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -272714,20 +275083,20 @@ module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Login", function() { return Login; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _loginUri__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("7Tu9"); /* harmony import */ var _data_loginData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("xEoU"); /* harmony import */ var _view_loginView__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("NAI5"); @@ -272739,14 +275108,14 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -272755,6 +275124,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -272762,9 +275132,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -272772,72 +275144,93 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Login = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Login, _Domain); - var _super = _createSuper(Login); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Login, _Domain); + function Login(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Login); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Login); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Login).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); } + _this.passwordRevisionDate = obj.passwordRevisionDate != null ? new Date(obj.passwordRevisionDate) : null; - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this), obj, { username: null, password: null, totp: null }, alreadyEncrypted, []); + if (obj.uris) { _this.uris = []; obj.uris.forEach(function (u) { _this.uris.push(new _loginUri__WEBPACK_IMPORTED_MODULE_7__["LoginUri"](u, alreadyEncrypted)); }); } + return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Login, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Login, [{ key: "decrypt", value: function decrypt(orgId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var view, i, uri; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.decryptObj(new _view_loginView__WEBPACK_IMPORTED_MODULE_9__["LoginView"](this), { - username: null, - password: null, - totp: null - }, orgId); - case 2: - view = _context.sent; - if (!(this.uris != null)) { - _context.next = 14; - break; - } - view.uris = []; - i = 0; - case 6: - if (!(i < this.uris.length)) { - _context.next = 14; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.decryptObj(new _view_loginView__WEBPACK_IMPORTED_MODULE_9__["LoginView"](this), { + username: null, + password: null, + totp: null + }, orgId); + + case 2: + view = _context.sent; + + if (!(this.uris != null)) { + _context.next = 14; + break; + } + + view.uris = []; + i = 0; + + case 6: + if (!(i < this.uris.length)) { + _context.next = 14; + break; + } + + _context.next = 9; + return this.uris[i].decrypt(orgId); + + case 9: + uri = _context.sent; + view.uris.push(uri); + + case 11: + i++; + _context.next = 6; break; - } - _context.next = 9; - return this.uris[i].decrypt(orgId); - case 9: - uri = _context.sent; - view.uris.push(uri); - case 11: - i++; - _context.next = 6; - break; - case 14: - return _context.abrupt("return", view); - case 15: - case "end": - return _context.stop(); + + case 14: + return _context.abrupt("return", view); + + case 15: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -272852,15 +275245,18 @@ var Login = /*#__PURE__*/function (_Domain) { password: null, totp: null }); + if (this.uris != null && this.uris.length > 0) { l.uris = []; this.uris.forEach(function (u) { l.uris.push(u.toLoginUriData()); }); } + return l; } }]); + return Login; }(_domainBase__WEBPACK_IMPORTED_MODULE_10__["default"]); @@ -272928,33 +275324,44 @@ function sequentialize(cacheKey) { return function (target, propertyKey, descriptor) { var originalMethod = descriptor.value; var caches = new Map(); + var getCache = function getCache(obj) { var cache = caches.get(obj); + if (cache != null) { return cache; } + cache = new Map(); caches.set(obj, cache); return cache; }; + return { value: function value() { var _this = this; + var cache = getCache(this); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } + var argsCacheKey = cacheKey(args); var response = cache.get(argsCacheKey); + if (response != null) { return response; } + var onFinally = function onFinally() { cache.delete(argsCacheKey); + if (cache.size === 0) { caches.delete(_this); } }; + response = originalMethod.apply(this, args).then(function (val) { onFinally(); return val; @@ -275222,12 +277629,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -275235,48 +277642,58 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var BlackBerryCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BlackBerryCsvImporter, _BaseImporter); - var _super = _createSuper(BlackBerryCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(BlackBerryCsvImporter, _BaseImporter); + function BlackBerryCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BlackBerryCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(BlackBerryCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BlackBerryCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.grouping === 'list') { return; } + var cipher = _this.initLoginCipher(); + cipher.favorite = value.fav === '1'; cipher.name = _this.getValueOrDefault(value.name); cipher.notes = _this.getValueOrDefault(value.extra); + if (value.grouping !== 'note') { cipher.login.uris = _this.makeUriArray(value.url); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.username = _this.getValueOrDefault(value.username); } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return BlackBerryCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -275973,6 +278390,7 @@ module.exports = baseForOwn; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return EncryptionType; }); var EncryptionType; + (function (EncryptionType) { EncryptionType[EncryptionType["AesCbc256_B64"] = 0] = "AesCbc256_B64"; EncryptionType[EncryptionType["AesCbc128_HmacSha256_B64"] = 1] = "AesCbc128_HmacSha256_B64"; @@ -275991,17 +278409,15 @@ var EncryptionType; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherBulkMoveRequest", function() { return CipherBulkMoveRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CipherBulkMoveRequest = function CipherBulkMoveRequest(ids, folderId) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherBulkMoveRequest); -var CipherBulkMoveRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherBulkMoveRequest(ids, folderId) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherBulkMoveRequest); this.ids = ids == null ? [] : ids; this.folderId = folderId; -}); +}; /***/ }), @@ -276412,12 +278828,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -276425,42 +278841,51 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var AscendoCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AscendoCsvImporter, _BaseImporter); - var _super = _createSuper(AscendoCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(AscendoCsvImporter, _BaseImporter); + function AscendoCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AscendoCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(AscendoCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AscendoCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length < 2) { return; } + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value[value.length - 1]); cipher.name = _this.getValueOrDefault(value[0], '--'); + if (value.length > 2 && value.length % 2 === 0) { for (var i = 0; i < value.length - 2; i += 2) { var val = value[i + 2]; var field = value[i + 1]; + if (_this.isNullOrWhitespace(val) || _this.isNullOrWhitespace(field)) { continue; } + var fieldLower = field.toLowerCase(); + if (cipher.login.password == null && _this.passwordFieldNames.indexOf(fieldLower) > -1) { cipher.login.password = _this.getValueOrDefault(val); } else if (cipher.login.username == null && _this.usernameFieldNames.indexOf(fieldLower) > -1) { @@ -276472,14 +278897,18 @@ var AscendoCsvImporter = /*#__PURE__*/function (_BaseImporter) { } } } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return AscendoCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -277699,12 +280128,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_folderView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("HNJe"); @@ -277716,8 +280145,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -277725,32 +280152,40 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var SafeInCloudXmlImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SafeInCloudXmlImporter, _BaseImporter); - var _super = _createSuper(SafeInCloudXmlImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SafeInCloudXmlImporter, _BaseImporter); + function SafeInCloudXmlImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SafeInCloudXmlImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SafeInCloudXmlImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SafeInCloudXmlImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var doc = this.parseXml(data); + if (doc == null) { result.success = false; return result; } + var db = doc.querySelector('database'); + if (db == null) { result.errorMessage = 'Missing `database` node.'; result.success = false; return result; } + var foldersMap = new Map(); Array.from(doc.querySelectorAll('database > label')).forEach(function (labelEl) { var name = labelEl.getAttribute('name'); var id = labelEl.getAttribute('id'); + if (!_this.isNullOrWhitespace(name) && !_this.isNullOrWhitespace(id)) { foldersMap.set(id, result.folders.length); var folder = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_7__["FolderView"](); @@ -277762,16 +280197,22 @@ var SafeInCloudXmlImporter = /*#__PURE__*/function (_BaseImporter) { if (cardEl.getAttribute('template') === 'true') { return; } + var labelIdEl = _this.querySelectorDirectChild(cardEl, 'label_id'); + if (labelIdEl != null) { var labelId = labelIdEl.textContent; + if (!_this.isNullOrWhitespace(labelId) && foldersMap.has(labelId)) { result.folderRelationships.push([result.ciphers.length, foldersMap.get(labelId)]); } } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(cardEl.getAttribute('title'), '--'); var cardType = cardEl.getAttribute('type'); + if (cardType === 'note') { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_9__["CipherType"].SecureNote; cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_8__["SecureNoteView"](); @@ -277779,11 +280220,15 @@ var SafeInCloudXmlImporter = /*#__PURE__*/function (_BaseImporter) { } else { Array.from(_this.querySelectorAllDirectChild(cardEl, 'field')).forEach(function (fieldEl) { var text = fieldEl.textContent; + if (_this.isNullOrWhitespace(text)) { return; } + var name = fieldEl.getAttribute('name'); + var fieldType = _this.getValueOrDefault(fieldEl.getAttribute('type'), '').toLowerCase(); + if (fieldType === 'login') { cipher.login.username = text; } else if (fieldType === 'password') { @@ -277799,19 +280244,25 @@ var SafeInCloudXmlImporter = /*#__PURE__*/function (_BaseImporter) { } }); } + Array.from(_this.querySelectorAllDirectChild(cardEl, 'notes')).forEach(function (notesEl) { cipher.notes += notesEl.textContent + '\n'; }); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return SafeInCloudXmlImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -279284,6 +281735,55 @@ function startOfYesterday () { module.exports = startOfYesterday +/***/ }), + +/***/ "is8I": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__("jm00"); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); +var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); +var _react = _interopRequireDefault(__webpack_require__("ivGQ")); +var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); +var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); +var _Typography = _interopRequireDefault(__webpack_require__("9Ub/")); +var _excluded = ["color", "variant", "textAlign", "children", "className"]; +var styles = { + "divider": "styles__divider___-oC9I", + "center": "styles__center___2jZEg" +}; +/** + * @description This component is composing `<Typography />` and has access to the same props + */ + +var TextDivider = function TextDivider(_ref) { + var _ref$color = _ref.color, + color = _ref$color === void 0 ? 'textPrimary' : _ref$color, + _ref$variant = _ref.variant, + variant = _ref$variant === void 0 ? 'body2' : _ref$variant, + textAlign = _ref.textAlign, + children = _ref.children, + className = _ref.className, + props = (0, _objectWithoutProperties2.default)(_ref, _excluded); + return /*#__PURE__*/_react.default.createElement(_Typography.default, (0, _extends2.default)({ + color: color, + variant: variant, + className: (0, _classnames.default)(styles['divider'], styles[textAlign], className) + }, props), children); +}; +TextDivider.propTypes = { + textAlign: _propTypes.default.oneOf(['center']) +}; +var _default = TextDivider; +exports.default = _default; + /***/ }), /***/ "ivGQ": @@ -279686,12 +282186,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -279699,46 +282199,59 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ZohoVaultCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ZohoVaultCsvImporter, _BaseImporter); - var _super = _createSuper(ZohoVaultCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ZohoVaultCsvImporter, _BaseImporter); + function ZohoVaultCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ZohoVaultCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ZohoVaultCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ZohoVaultCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (_this.isNullOrWhitespace(value['Password Name']) && _this.isNullOrWhitespace(value['Secret Name'])) { return; } + _this.processFolder(result, _this.getValueOrDefault(value.ChamberName)); + var cipher = _this.initLoginCipher(); + cipher.favorite = _this.getValueOrDefault(value.Favorite, '0') === '1'; cipher.notes = _this.getValueOrDefault(value.Notes); cipher.name = _this.getValueOrDefault(value['Password Name'], _this.getValueOrDefault(value['Secret Name'], '--')); cipher.login.uris = _this.makeUriArray(_this.getValueOrDefault(value['Password URL'], _this.getValueOrDefault(value['Secret URL']))); + _this.parseData(cipher, value.SecretData); + _this.parseData(cipher, value.CustomData); + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } @@ -279746,21 +282259,28 @@ var ZohoVaultCsvImporter = /*#__PURE__*/function (_BaseImporter) { key: "parseData", value: function parseData(cipher, data) { var _this2 = this; + if (this.isNullOrWhitespace(data)) { return; } + var dataLines = this.splitNewLine(data); dataLines.forEach(function (line) { var delimPosition = line.indexOf(':'); + if (delimPosition < 0) { return; } + var field = line.substring(0, delimPosition); var value = line.length > delimPosition ? line.substring(delimPosition + 1) : null; + if (_this2.isNullOrWhitespace(field) || _this2.isNullOrWhitespace(value) || field === 'SecretType') { return; } + var fieldLower = field.toLowerCase(); + if (cipher.login.username == null && _this2.usernameFieldNames.indexOf(fieldLower) > -1) { cipher.login.username = value; } else if (cipher.login.password == null && _this2.passwordFieldNames.indexOf(fieldLower) > -1) { @@ -279771,6 +282291,7 @@ var ZohoVaultCsvImporter = /*#__PURE__*/function (_BaseImporter) { }); } }]); + return ZohoVaultCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -286691,55 +289212,6 @@ function shouldDisableAutoInstrumentation(getCurrentHub) { //# sourceMappingURL=node-utils.js.map -/***/ }), - -/***/ "kCM+": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("UdSB")); -var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); -var _propTypes = _interopRequireDefault(__webpack_require__("ii0b")); -var _Typography = _interopRequireDefault(__webpack_require__("9Ub/")); -var _excluded = ["color", "variant", "textAlign", "children", "className"]; -var styles = { - "divider": "styles__divider___SuA5q", - "center": "styles__center___3K8dw" -}; -/** - * @description This component is composing `<Typography />` and has access to the same props - */ - -var TextDivider = function TextDivider(_ref) { - var _ref$color = _ref.color, - color = _ref$color === void 0 ? 'textPrimary' : _ref$color, - _ref$variant = _ref.variant, - variant = _ref$variant === void 0 ? 'body2' : _ref$variant, - textAlign = _ref.textAlign, - children = _ref.children, - className = _ref.className, - props = (0, _objectWithoutProperties2.default)(_ref, _excluded); - return /*#__PURE__*/_react.default.createElement(_Typography.default, (0, _extends2.default)({ - color: color, - variant: variant, - className: (0, _classnames.default)(styles['divider'], styles[textAlign], className) - }, props), children); -}; -TextDivider.propTypes = { - textAlign: _propTypes.default.oneOf(['center']) -}; -var _default = TextDivider; -exports.default = _default; - /***/ }), /***/ "kCd/": @@ -293100,12 +295572,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -293113,40 +295585,47 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ChromeCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ChromeCsvImporter, _BaseImporter); - var _super = _createSuper(ChromeCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ChromeCsvImporter, _BaseImporter); + function ChromeCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ChromeCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ChromeCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ChromeCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.name, '--'); cipher.login.username = _this.getValueOrDefault(value.username); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.uris = _this.makeUriArray(value.url); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return ChromeCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -294718,12 +297197,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -294731,41 +297210,49 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var FirefoxCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(FirefoxCsvImporter, _BaseImporter); - var _super = _createSuper(FirefoxCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(FirefoxCsvImporter, _BaseImporter); + function FirefoxCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FirefoxCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(FirefoxCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FirefoxCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + var url = _this.getValueOrDefault(value.url, _this.getValueOrDefault(value.hostname)); + cipher.name = _this.getValueOrDefault(_this.nameFromUrl(url), '--'); cipher.login.username = _this.getValueOrDefault(value.username); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.uris = _this.makeUriArray(url); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return FirefoxCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -295396,13 +297883,6 @@ __webpack_require__.r(__webpack_exports__); -/***/ }), - -/***/ "limT": -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__.p + "8751e4271e335d10b8e2d7ca83837d1b.png"; - /***/ }), /***/ "lj7x": @@ -298869,21 +301349,21 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionRequest", function() { return CollectionRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CollectionRequest = function CollectionRequest(collection) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionRequest); -var CollectionRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CollectionRequest(collection) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionRequest); this.groups = []; + if (collection == null) { return; } + this.name = collection.name ? collection.name.encryptedString : null; this.externalId = collection.externalId; -}); +}; /***/ }), @@ -298893,15 +301373,12 @@ var CollectionRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnvironmentUrls", function() { return EnvironmentUrls; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -var EnvironmentUrls = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function EnvironmentUrls() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, EnvironmentUrls); -}); +var EnvironmentUrls = function EnvironmentUrls() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EnvironmentUrls); +}; /***/ }), @@ -299057,20 +301534,20 @@ module.exports = baseAssignValue; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Attachment", function() { return Attachment; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _data_attachmentData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("/EpU"); /* harmony import */ var _view_attachmentView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("JKjz"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("L7vP"); @@ -299083,14 +301560,14 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -299099,6 +301576,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -299106,9 +301584,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -299117,76 +301597,99 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Attachment = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Attachment, _Domain); - var _super = _createSuper(Attachment); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Attachment, _Domain); + function Attachment(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Attachment); - _this = _super.call(this); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Attachment); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Attachment).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); } + _this.size = obj.size; - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(_this), obj, { id: null, url: null, sizeName: null, fileName: null, key: null }, alreadyEncrypted, ['id', 'url', 'sizeName']); + return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Attachment, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Attachment, [{ key: "decrypt", value: function decrypt(orgId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var view, cryptoService, containerService, orgKey, decValue; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.decryptObj(new _view_attachmentView__WEBPACK_IMPORTED_MODULE_8__["AttachmentView"](this), { - fileName: null - }, orgId); - case 2: - view = _context.sent; - if (!(this.key != null)) { - _context.next = 22; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.decryptObj(new _view_attachmentView__WEBPACK_IMPORTED_MODULE_8__["AttachmentView"](this), { + fileName: null + }, orgId); + + case 2: + view = _context.sent; + + if (!(this.key != null)) { + _context.next = 22; + break; + } + + containerService = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].global.bitwardenContainerService; + + if (!containerService) { + _context.next = 9; + break; + } + + cryptoService = containerService.getCryptoService(); + _context.next = 10; break; - } - containerService = _misc_utils__WEBPACK_IMPORTED_MODULE_11__["Utils"].global.bitwardenContainerService; - if (!containerService) { - _context.next = 9; + + case 9: + throw new Error('global bitwardenContainerService not initialized.'); + + case 10: + _context.prev = 10; + _context.next = 13; + return cryptoService.getOrgKey(orgId); + + case 13: + orgKey = _context.sent; + _context.next = 16; + return cryptoService.decryptToBytes(this.key, orgKey); + + case 16: + decValue = _context.sent; + view.key = new _symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_10__["SymmetricCryptoKey"](decValue); + _context.next = 22; break; - } - cryptoService = containerService.getCryptoService(); - _context.next = 10; - break; - case 9: - throw new Error('global bitwardenContainerService not initialized.'); - case 10: - _context.prev = 10; - _context.next = 13; - return cryptoService.getOrgKey(orgId); - case 13: - orgKey = _context.sent; - _context.next = 16; - return cryptoService.decryptToBytes(this.key, orgKey); - case 16: - decValue = _context.sent; - view.key = new _symmetricCryptoKey__WEBPACK_IMPORTED_MODULE_10__["SymmetricCryptoKey"](decValue); - _context.next = 22; - break; - case 20: - _context.prev = 20; - _context.t0 = _context["catch"](10); - case 22: - return _context.abrupt("return", view); - case 23: - case "end": - return _context.stop(); + + case 20: + _context.prev = 20; + _context.t0 = _context["catch"](10); + + case 22: + return _context.abrupt("return", view); + + case 23: + case "end": + return _context.stop(); + } } }, _callee, this, [[10, 20]]); })); @@ -299206,6 +301709,7 @@ var Attachment = /*#__PURE__*/function (_Domain) { return a; } }]); + return Attachment; }(_domainBase__WEBPACK_IMPORTED_MODULE_9__["default"]); @@ -300194,12 +302698,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -300207,56 +302711,68 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var OfficialProps = ['!group_id', '!group_name', 'title', 'username', 'password', 'URL', 'id']; var ButtercupCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ButtercupCsvImporter, _BaseImporter); - var _super = _createSuper(ButtercupCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ButtercupCsvImporter, _BaseImporter); + function ButtercupCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ButtercupCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ButtercupCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ButtercupCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { _this.processFolder(result, _this.getValueOrDefault(value['!group_name'])); + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.title, '--'); cipher.login.username = _this.getValueOrDefault(value.username); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.uris = _this.makeUriArray(value.URL); var processingCustomFields = false; + for (var prop in value) { if (value.hasOwnProperty(prop)) { if (!processingCustomFields && OfficialProps.indexOf(prop) === -1) { processingCustomFields = true; } + if (processingCustomFields) { _this.processKvp(cipher, prop, value[prop]); } } } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return ButtercupCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -324876,12 +327392,12 @@ const version = XLSX.version; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CollectionService", function() { return CollectionService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_data_collectionData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("AClQ"); /* harmony import */ var _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("S+gd"); /* harmony import */ var _models_view_collectionView__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7/l8"); @@ -324890,12 +327406,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -324904,6 +327422,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -324911,9 +327430,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -324922,19 +327443,22 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Keys = { collectionsPrefix: 'collections_' }; var NestingDelimiter = '/'; var CollectionService = /*#__PURE__*/function () { function CollectionService(cryptoService, userService, storageService, i18nService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CollectionService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CollectionService); + this.cryptoService = cryptoService; this.userService = userService; this.storageService = storageService; this.i18nService = i18nService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CollectionService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(CollectionService, [{ key: "clearCache", value: function clearCache() { this.decryptedCollectionCache = null; @@ -324942,39 +327466,49 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "encrypt", value: function encrypt(model) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var key, collection; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(model.organizationId == null)) { - _context.next = 2; - break; - } - throw new Error('Collection has no organization id.'); - case 2: - _context.next = 4; - return this.cryptoService.getOrgKey(model.organizationId); - case 4: - key = _context.sent; - if (!(key == null)) { - _context.next = 7; - break; - } - throw new Error('No key for this collection\'s organization.'); - case 7: - collection = new _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__["Collection"](); - collection.id = model.id; - collection.organizationId = model.organizationId; - collection.readOnly = model.readOnly; - _context.next = 13; - return this.cryptoService.encrypt(model.name, key); - case 13: - collection.name = _context.sent; - return _context.abrupt("return", collection); - case 15: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(model.organizationId == null)) { + _context.next = 2; + break; + } + + throw new Error('Collection has no organization id.'); + + case 2: + _context.next = 4; + return this.cryptoService.getOrgKey(model.organizationId); + + case 4: + key = _context.sent; + + if (!(key == null)) { + _context.next = 7; + break; + } + + throw new Error('No key for this collection\'s organization.'); + + case 7: + collection = new _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__["Collection"](); + collection.id = model.id; + collection.organizationId = model.organizationId; + collection.readOnly = model.readOnly; + _context.next = 13; + return this.cryptoService.encrypt(model.name, key); + + case 13: + collection.name = _context.sent; + return _context.abrupt("return", collection); + + case 15: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -324982,31 +327516,37 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "decryptMany", value: function decryptMany(collections) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var decCollections, promises; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!(collections == null)) { - _context2.next = 2; - break; - } - return _context2.abrupt("return", []); - case 2: - decCollections = []; - promises = []; - collections.forEach(function (collection) { - promises.push(collection.decrypt().then(function (c) { - return decCollections.push(c); - })); - }); - _context2.next = 7; - return Promise.all(promises); - case 7: - return _context2.abrupt("return", decCollections.sort(_misc_utils__WEBPACK_IMPORTED_MODULE_7__["Utils"].getSortFunction(this.i18nService, 'name'))); - case 8: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!(collections == null)) { + _context2.next = 2; + break; + } + + return _context2.abrupt("return", []); + + case 2: + decCollections = []; + promises = []; + collections.forEach(function (collection) { + promises.push(collection.decrypt().then(function (c) { + return decCollections.push(c); + })); + }); + _context2.next = 7; + return Promise.all(promises); + + case 7: + return _context2.abrupt("return", decCollections.sort(_misc_utils__WEBPACK_IMPORTED_MODULE_7__["Utils"].getSortFunction(this.i18nService, 'name'))); + + case 8: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -325014,29 +327554,37 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "get", value: function get(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var userId, collections; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context3.sent; - _context3.next = 5; - return this.storageService.get(Keys.collectionsPrefix + userId); - case 5: - collections = _context3.sent; - if (!(collections == null || !collections.hasOwnProperty(id))) { - _context3.next = 8; - break; - } - return _context3.abrupt("return", null); - case 8: - return _context3.abrupt("return", new _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__["Collection"](collections[id])); - case 9: - case "end": - return _context3.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context3.sent; + _context3.next = 5; + return this.storageService.get(Keys.collectionsPrefix + userId); + + case 5: + collections = _context3.sent; + + if (!(collections == null || !collections.hasOwnProperty(id))) { + _context3.next = 8; + break; + } + + return _context3.abrupt("return", null); + + case 8: + return _context3.abrupt("return", new _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__["Collection"](collections[id])); + + case 9: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -325044,29 +327592,36 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "getAll", value: function getAll() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var userId, collections, response, id; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context4.sent; - _context4.next = 5; - return this.storageService.get(Keys.collectionsPrefix + userId); - case 5: - collections = _context4.sent; - response = []; - for (id in collections) { - if (collections.hasOwnProperty(id)) { - response.push(new _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__["Collection"](collections[id])); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _context4.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context4.sent; + _context4.next = 5; + return this.storageService.get(Keys.collectionsPrefix + userId); + + case 5: + collections = _context4.sent; + response = []; + + for (id in collections) { + if (collections.hasOwnProperty(id)) { + response.push(new _models_domain_collection__WEBPACK_IMPORTED_MODULE_4__["Collection"](collections[id])); + } } - } - return _context4.abrupt("return", response); - case 9: - case "end": - return _context4.stop(); + + return _context4.abrupt("return", response); + + case 9: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -325074,39 +327629,50 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "getAllDecrypted", value: function getAllDecrypted() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var hasKey, collections; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - if (!(this.decryptedCollectionCache != null)) { - _context5.next = 2; - break; - } - return _context5.abrupt("return", this.decryptedCollectionCache); - case 2: - _context5.next = 4; - return this.cryptoService.hasKey(); - case 4: - hasKey = _context5.sent; - if (hasKey) { - _context5.next = 7; - break; - } - throw new Error('No key.'); - case 7: - _context5.next = 9; - return this.getAll(); - case 9: - collections = _context5.sent; - _context5.next = 12; - return this.decryptMany(collections); - case 12: - this.decryptedCollectionCache = _context5.sent; - return _context5.abrupt("return", this.decryptedCollectionCache); - case 14: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + if (!(this.decryptedCollectionCache != null)) { + _context5.next = 2; + break; + } + + return _context5.abrupt("return", this.decryptedCollectionCache); + + case 2: + _context5.next = 4; + return this.cryptoService.hasKey(); + + case 4: + hasKey = _context5.sent; + + if (hasKey) { + _context5.next = 7; + break; + } + + throw new Error('No key.'); + + case 7: + _context5.next = 9; + return this.getAll(); + + case 9: + collections = _context5.sent; + _context5.next = 12; + return this.decryptMany(collections); + + case 12: + this.decryptedCollectionCache = _context5.sent; + return _context5.abrupt("return", this.decryptedCollectionCache); + + case 14: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -325115,32 +327681,38 @@ var CollectionService = /*#__PURE__*/function () { key: "getAllNested", value: function getAllNested() { var collections = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var nodes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - if (!(collections == null)) { - _context6.next = 4; - break; - } - _context6.next = 3; - return this.getAllDecrypted(); - case 3: - collections = _context6.sent; - case 4: - nodes = []; - collections.forEach(function (c) { - var collectionCopy = new _models_view_collectionView__WEBPACK_IMPORTED_MODULE_5__["CollectionView"](); - collectionCopy.id = c.id; - collectionCopy.organizationId = c.organizationId; - var parts = c.name != null ? c.name.replace(/^\/+|\/+$/g, '').split(NestingDelimiter) : []; - _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_6__["ServiceUtils"].nestedTraverse(nodes, 0, parts, collectionCopy, null, NestingDelimiter); - }); - return _context6.abrupt("return", nodes); - case 7: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + if (!(collections == null)) { + _context6.next = 4; + break; + } + + _context6.next = 3; + return this.getAllDecrypted(); + + case 3: + collections = _context6.sent; + + case 4: + nodes = []; + collections.forEach(function (c) { + var collectionCopy = new _models_view_collectionView__WEBPACK_IMPORTED_MODULE_5__["CollectionView"](); + collectionCopy.id = c.id; + collectionCopy.organizationId = c.organizationId; + var parts = c.name != null ? c.name.replace(/^\/+|\/+$/g, '').split(NestingDelimiter) : []; + _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_6__["ServiceUtils"].nestedTraverse(nodes, 0, parts, collectionCopy, null, NestingDelimiter); + }); + return _context6.abrupt("return", nodes); + + case 7: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -325148,19 +327720,23 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "getNested", value: function getNested(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var collections; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.getAllNested(); - case 2: - collections = _context7.sent; - return _context7.abrupt("return", _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_6__["ServiceUtils"].getTreeNodeObject(collections, id)); - case 4: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.getAllNested(); + + case 2: + collections = _context7.sent; + return _context7.abrupt("return", _misc_serviceUtils__WEBPACK_IMPORTED_MODULE_6__["ServiceUtils"].getTreeNodeObject(collections, id)); + + case 4: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -325168,37 +327744,46 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "upsert", value: function upsert(collection) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var userId, collections, c; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context8.sent; - _context8.next = 5; - return this.storageService.get(Keys.collectionsPrefix + userId); - case 5: - collections = _context8.sent; - if (collections == null) { - collections = {}; - } - if (collection instanceof _models_data_collectionData__WEBPACK_IMPORTED_MODULE_3__["CollectionData"]) { - c = collection; - collections[c.id] = c; - } else { - collection.forEach(function (c) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context8.sent; + _context8.next = 5; + return this.storageService.get(Keys.collectionsPrefix + userId); + + case 5: + collections = _context8.sent; + + if (collections == null) { + collections = {}; + } + + if (collection instanceof _models_data_collectionData__WEBPACK_IMPORTED_MODULE_3__["CollectionData"]) { + c = collection; collections[c.id] = c; - }); - } - _context8.next = 10; - return this.storageService.save(Keys.collectionsPrefix + userId, collections); - case 10: - this.decryptedCollectionCache = null; - case 11: - case "end": - return _context8.stop(); + } else { + collection.forEach(function (c) { + collections[c.id] = c; + }); + } + + _context8.next = 10; + return this.storageService.save(Keys.collectionsPrefix + userId, collections); + + case 10: + this.decryptedCollectionCache = null; + + case 11: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -325206,22 +327791,27 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "replace", value: function replace(collections) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context9.sent; - _context9.next = 5; - return this.storageService.save(Keys.collectionsPrefix + userId, collections); - case 5: - this.decryptedCollectionCache = null; - case 6: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context9.sent; + _context9.next = 5; + return this.storageService.save(Keys.collectionsPrefix + userId, collections); + + case 5: + this.decryptedCollectionCache = null; + + case 6: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -325229,17 +327819,21 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "clear", value: function clear(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.storageService.remove(Keys.collectionsPrefix + userId); - case 2: - this.decryptedCollectionCache = null; - case 3: - case "end": - return _context10.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.storageService.remove(Keys.collectionsPrefix + userId); + + case 2: + this.decryptedCollectionCache = null; + + case 3: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -325247,45 +327841,56 @@ var CollectionService = /*#__PURE__*/function () { }, { key: "delete", value: function _delete(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var userId, collections, i; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - _context11.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context11.sent; - _context11.next = 5; - return this.storageService.get(Keys.collectionsPrefix + userId); - case 5: - collections = _context11.sent; - if (!(collections == null)) { - _context11.next = 8; - break; - } - return _context11.abrupt("return"); - case 8: - if (typeof id === 'string') { - i = id; - delete collections[id]; - } else { - id.forEach(function (i) { - delete collections[i]; - }); - } - _context11.next = 11; - return this.storageService.save(Keys.collectionsPrefix + userId, collections); - case 11: - this.decryptedCollectionCache = null; - case 12: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context11.sent; + _context11.next = 5; + return this.storageService.get(Keys.collectionsPrefix + userId); + + case 5: + collections = _context11.sent; + + if (!(collections == null)) { + _context11.next = 8; + break; + } + + return _context11.abrupt("return"); + + case 8: + if (typeof id === 'string') { + i = id; + delete collections[id]; + } else { + id.forEach(function (i) { + delete collections[i]; + }); + } + + _context11.next = 11; + return this.storageService.save(Keys.collectionsPrefix + userId, collections); + + case 11: + this.decryptedCollectionCache = null; + + case 12: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); } }]); + return CollectionService; }(); @@ -327095,12 +329700,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -327108,41 +329713,48 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SecureSafeCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SecureSafeCsvImporter, _BaseImporter); - var _super = _createSuper(SecureSafeCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SecureSafeCsvImporter, _BaseImporter); + function SecureSafeCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SecureSafeCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SecureSafeCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SecureSafeCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.Title); cipher.notes = _this.getValueOrDefault(value.Comment); cipher.login.uris = _this.makeUriArray(value.Url); cipher.login.password = _this.getValueOrDefault(value.Password); cipher.login.username = _this.getValueOrDefault(value.Username); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return SecureSafeCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -327172,36 +329784,36 @@ module.exports = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendFileApi", function() { return SendFileApi; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _response_baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SendFileApi = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SendFileApi, _BaseResponse); - var _super = _createSuper(SendFileApi); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SendFileApi, _BaseResponse); + function SendFileApi() { var _this; + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendFileApi); - _this = _super.call(this, data); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendFileApi); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(SendFileApi).call(this, data)); + if (data == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(_this); } + _this.id = _this.getResponseProperty('Id'); _this.url = _this.getResponseProperty('Url'); _this.fileName = _this.getResponseProperty('FileName'); @@ -327210,8 +329822,9 @@ var SendFileApi = /*#__PURE__*/function (_BaseResponse) { _this.sizeName = _this.getResponseProperty('SizeName'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SendFileApi); -}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return SendFileApi; +}(_response_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -327547,7 +330160,7 @@ var _react = _interopRequireDefault(__webpack_require__("ivGQ")); var _dedupe = _interopRequireDefault(__webpack_require__("OOPZ")); var _useCozyDialog2 = _interopRequireDefault(__webpack_require__("mhvD")); var _Dialog = _interopRequireWildcard(__webpack_require__("i+n1")); -var _Divider = _interopRequireDefault(__webpack_require__("xr2j")); +var _Divider = _interopRequireDefault(__webpack_require__("Kk0D")); var _dialogPropTypes = _interopRequireDefault(__webpack_require__("OE89")); var _DialogBackButton = _interopRequireDefault(__webpack_require__("KSKb")); var _DialogCloseButton = _interopRequireDefault(__webpack_require__("y7Nh")); @@ -327753,12 +330366,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -327770,8 +330383,6 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -327779,22 +330390,27 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EnpassJsonImporter, _BaseImporter); - var _super = _createSuper(EnpassJsonImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(EnpassJsonImporter, _BaseImporter); + function EnpassJsonImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EnpassJsonImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(EnpassJsonImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EnpassJsonImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || results.items == null || results.items.length === 0) { result.success = false; return result; } + var foldersMap = new Map(); var foldersIndexMap = new Map(); var folderTree = this.buildFolderTree(results.folders); @@ -327809,9 +330425,12 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { if (item.folders != null && item.folders.length > 0 && foldersIndexMap.has(item.folders[0])) { result.folderRelationships.push([result.ciphers.length, foldersIndexMap.get(item.folders[0])]); } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(item.title); cipher.favorite = item.favorite > 0; + if (item.template_type != null && item.fields != null && item.fields.length > 0) { if (item.template_type.indexOf('login.') === 0 || item.template_type.indexOf('password.') === 0) { _this.processLogin(cipher, item.fields); @@ -327825,9 +330444,13 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { _this.processNote(cipher, item.fields); } } + cipher.notes += '\n' + _this.getValueOrDefault(item.note, ''); + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; @@ -327837,11 +330460,13 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processLogin", value: function processLogin(cipher, fields) { var _this2 = this; + var urls = []; fields.forEach(function (field) { if (_this2.isNullOrWhitespace(field.value) || field.type === 'section') { return; } + if ((field.type === 'username' || field.type === 'email') && _this2.isNullOrWhitespace(cipher.login.username)) { cipher.login.username = field.value; } else if (field.type === 'password' && _this2.isNullOrWhitespace(cipher.login.password)) { @@ -327860,12 +330485,14 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processCard", value: function processCard(cipher, fields) { var _this3 = this; + cipher.card = new _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__["CardView"](); cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_9__["CipherType"].Card; fields.forEach(function (field) { if (_this3.isNullOrWhitespace(field.value) || field.type === 'section' || field.type === 'ccType') { return; } + if (field.type === 'ccName' && _this3.isNullOrWhitespace(cipher.card.cardholderName)) { cipher.card.cardholderName = field.value; } else if (field.type === 'ccNumber' && _this3.isNullOrWhitespace(cipher.card.number)) { @@ -327886,10 +330513,12 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "processNote", value: function processNote(cipher, fields) { var _this4 = this; + fields.forEach(function (field) { if (_this4.isNullOrWhitespace(field.value) || field.type === 'section') { return; } + _this4.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? _enums_fieldType__WEBPACK_IMPORTED_MODULE_10__["FieldType"].Hidden : _enums_fieldType__WEBPACK_IMPORTED_MODULE_10__["FieldType"].Text); }); } @@ -327899,6 +330528,7 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { if (folders == null) { return []; } + var folderTree = []; var map = new Map([]); folders.forEach(function (obj) { @@ -327918,16 +330548,21 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { key: "flattenFolderTree", value: function flattenFolderTree(titlePrefix, tree, map) { var _this5 = this; + if (tree == null) { return; } + tree.forEach(function (f) { if (f.title != null && f.title.trim() !== '') { var title = f.title.trim(); + if (titlePrefix != null && titlePrefix.trim() !== '') { title = titlePrefix + '/' + title; } + map.set(f.uuid, title); + if (f.children != null && f.children.length !== 0) { _this5.flattenFolderTree(title, f.children, map); } @@ -327935,6 +330570,7 @@ var EnpassJsonImporter = /*#__PURE__*/function (_BaseImporter) { }); } }]); + return EnpassJsonImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -328997,22 +331633,24 @@ function treeRoot(root) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VaultTimeoutService", function() { return VaultTimeoutService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _constants_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Rqrh"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -329021,6 +331659,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -329028,18 +331667,23 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var VaultTimeoutService = /*#__PURE__*/function () { function VaultTimeoutService(cipherService, folderService, collectionService, cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, tokenService) { var lockedCallback = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : null; var loggedOutCallback = arguments.length > 11 && arguments[11] !== undefined ? arguments[11] : null; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, VaultTimeoutService); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, VaultTimeoutService); + this.cipherService = cipherService; this.folderService = folderService; this.collectionService = collectionService; @@ -329056,58 +331700,74 @@ var VaultTimeoutService = /*#__PURE__*/function () { this.biometricLocked = true; this.inited = false; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(VaultTimeoutService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(VaultTimeoutService, [{ key: "init", value: function init(checkOnInterval) { var _this = this; + if (this.inited) { return; } + this.inited = true; + if (checkOnInterval) { this.checkVaultTimeout(); setInterval(function () { return _this.checkVaultTimeout(); }, 10 * 1000); // check every 10 seconds } - } - // Keys aren't stored for a device that is locked or logged out. + } // Keys aren't stored for a device that is locked or logged out. + }, { key: "isLocked", value: function isLocked() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var hasKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.cryptoService.hasKey(); - case 2: - hasKey = _context.sent; - if (!hasKey) { - _context.next = 11; - break; - } - _context.next = 6; - return this.isBiometricLockSet(); - case 6: - _context.t0 = _context.sent; - if (!_context.t0) { - _context.next = 9; - break; - } - _context.t0 = this.biometricLocked; - case 9: - if (!_context.t0) { - _context.next = 11; - break; - } - return _context.abrupt("return", true); - case 11: - return _context.abrupt("return", !hasKey); - case 12: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.cryptoService.hasKey(); + + case 2: + hasKey = _context.sent; + + if (!hasKey) { + _context.next = 11; + break; + } + + _context.next = 6; + return this.isBiometricLockSet(); + + case 6: + _context.t0 = _context.sent; + + if (!_context.t0) { + _context.next = 9; + break; + } + + _context.t0 = this.biometricLocked; + + case 9: + if (!_context.t0) { + _context.next = 11; + break; + } + + return _context.abrupt("return", true); + + case 11: + return _context.abrupt("return", !hasKey); + + case 12: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -329115,91 +331775,121 @@ var VaultTimeoutService = /*#__PURE__*/function () { }, { key: "checkVaultTimeout", value: function checkVaultTimeout() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var authed, vaultTimeout, lastActive, vaultTimeoutSeconds, diffSeconds, timeoutAction; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return this.platformUtilsService.isViewOpen(); - case 2: - if (!_context2.sent) { - _context2.next = 4; - break; - } - return _context2.abrupt("return"); - case 4: - _context2.next = 6; - return this.userService.isAuthenticated(); - case 6: - authed = _context2.sent; - if (authed) { - _context2.next = 9; - break; - } - return _context2.abrupt("return"); - case 9: - _context2.next = 11; - return this.isLocked(); - case 11: - if (!_context2.sent) { - _context2.next = 13; - break; - } - return _context2.abrupt("return"); - case 13: - // This has the potential to be removed. Evaluate after all platforms complete with auto-logout - vaultTimeout = this.platformUtilsService.lockTimeout(); - if (!(vaultTimeout == null)) { - _context2.next = 18; - break; - } - _context2.next = 17; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey); - case 17: - vaultTimeout = _context2.sent; - case 18: - if (!(vaultTimeout == null || vaultTimeout < 0)) { - _context2.next = 20; - break; - } - return _context2.abrupt("return"); - case 20: - _context2.next = 22; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].lastActiveKey); - case 22: - lastActive = _context2.sent; - if (!(lastActive == null)) { - _context2.next = 25; - break; - } - return _context2.abrupt("return"); - case 25: - vaultTimeoutSeconds = vaultTimeout * 60; - diffSeconds = (new Date().getTime() - lastActive) / 1000; - if (!(diffSeconds >= vaultTimeoutSeconds)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return this.platformUtilsService.isViewOpen(); + + case 2: + if (!_context2.sent) { + _context2.next = 4; + break; + } + + return _context2.abrupt("return"); + + case 4: + _context2.next = 6; + return this.userService.isAuthenticated(); + + case 6: + authed = _context2.sent; + + if (authed) { + _context2.next = 9; + break; + } + + return _context2.abrupt("return"); + + case 9: + _context2.next = 11; + return this.isLocked(); + + case 11: + if (!_context2.sent) { + _context2.next = 13; + break; + } + + return _context2.abrupt("return"); + + case 13: + // This has the potential to be removed. Evaluate after all platforms complete with auto-logout + vaultTimeout = this.platformUtilsService.lockTimeout(); + + if (!(vaultTimeout == null)) { + _context2.next = 18; + break; + } + + _context2.next = 17; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey); + + case 17: + vaultTimeout = _context2.sent; + + case 18: + if (!(vaultTimeout == null || vaultTimeout < 0)) { + _context2.next = 20; + break; + } + + return _context2.abrupt("return"); + + case 20: + _context2.next = 22; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].lastActiveKey); + + case 22: + lastActive = _context2.sent; + + if (!(lastActive == null)) { + _context2.next = 25; + break; + } + + return _context2.abrupt("return"); + + case 25: + vaultTimeoutSeconds = vaultTimeout * 60; + diffSeconds = (new Date().getTime() - lastActive) / 1000; + + if (!(diffSeconds >= vaultTimeoutSeconds)) { + _context2.next = 38; + break; + } + + _context2.next = 30; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey); + + case 30: + timeoutAction = _context2.sent; + + if (!(timeoutAction === 'logOut')) { + _context2.next = 36; + break; + } + + _context2.next = 34; + return this.logOut(); + + case 34: _context2.next = 38; break; - } - _context2.next = 30; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey); - case 30: - timeoutAction = _context2.sent; - if (!(timeoutAction === 'logOut')) { - _context2.next = 36; - break; - } - _context2.next = 34; - return this.logOut(); - case 34: - _context2.next = 38; - break; - case 36: - _context2.next = 38; - return this.lock(true); - case 38: - case "end": - return _context2.stop(); + + case 36: + _context2.next = 38; + return this.lock(true); + + case 38: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -329208,61 +331898,80 @@ var VaultTimeoutService = /*#__PURE__*/function () { key: "lock", value: function lock() { var allowSoftLock = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var authed, biometricLocked; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return this.userService.isAuthenticated(); - case 2: - authed = _context3.sent; - if (authed) { - _context3.next = 5; - break; - } - return _context3.abrupt("return"); - case 5: - this.biometricLocked = true; - if (!allowSoftLock) { - _context3.next = 16; - break; - } - _context3.next = 9; - return this.isBiometricLockSet(); - case 9: - biometricLocked = _context3.sent; - if (!(biometricLocked && this.platformUtilsService.supportsSecureStorage())) { - _context3.next = 16; - break; - } - this.messagingService.send('locked'); - if (!(this.lockedCallback != null)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return this.userService.isAuthenticated(); + + case 2: + authed = _context3.sent; + + if (authed) { + _context3.next = 5; + break; + } + + return _context3.abrupt("return"); + + case 5: + this.biometricLocked = true; + + if (!allowSoftLock) { + _context3.next = 16; + break; + } + + _context3.next = 9; + return this.isBiometricLockSet(); + + case 9: + biometricLocked = _context3.sent; + + if (!(biometricLocked && this.platformUtilsService.supportsSecureStorage())) { + _context3.next = 16; + break; + } + + this.messagingService.send('locked'); + + if (!(this.lockedCallback != null)) { + _context3.next = 15; + break; + } + _context3.next = 15; - break; - } - _context3.next = 15; - return this.lockedCallback(); - case 15: - return _context3.abrupt("return"); - case 16: - _context3.next = 18; - return Promise.all([this.cryptoService.clearKey(), this.cryptoService.clearOrgKeys(true), this.cryptoService.clearKeyPair(true), this.cryptoService.clearEncKey(true)]); - case 18: - this.folderService.clearCache(); - this.cipherService.clearCache(); - this.collectionService.clearCache(); - this.searchService.clearIndex(); - this.messagingService.send('locked'); - if (!(this.lockedCallback != null)) { + return this.lockedCallback(); + + case 15: + return _context3.abrupt("return"); + + case 16: + _context3.next = 18; + return Promise.all([this.cryptoService.clearKey(), this.cryptoService.clearOrgKeys(true), this.cryptoService.clearKeyPair(true), this.cryptoService.clearEncKey(true)]); + + case 18: + this.folderService.clearCache(); + this.cipherService.clearCache(); + this.collectionService.clearCache(); + this.searchService.clearIndex(); + this.messagingService.send('locked'); + + if (!(this.lockedCallback != null)) { + _context3.next = 26; + break; + } + _context3.next = 26; - break; - } - _context3.next = 26; - return this.lockedCallback(); - case 26: - case "end": - return _context3.stop(); + return this.lockedCallback(); + + case 26: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -329270,19 +331979,23 @@ var VaultTimeoutService = /*#__PURE__*/function () { }, { key: "logOut", value: function logOut() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.loggedOutCallback != null)) { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.loggedOutCallback != null)) { + _context4.next = 3; + break; + } + _context4.next = 3; - break; - } - _context4.next = 3; - return this.loggedOutCallback(); - case 3: - case "end": - return _context4.stop(); + return this.loggedOutCallback(); + + case 3: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -329290,24 +332003,30 @@ var VaultTimeoutService = /*#__PURE__*/function () { }, { key: "setVaultTimeoutOptions", value: function setVaultTimeoutOptions(timeout, action) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return this.storageService.save(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey, timeout); - case 2: - _context5.next = 4; - return this.storageService.save(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey, action); - case 4: - _context5.next = 6; - return this.cryptoService.toggleKey(); - case 6: - _context5.next = 8; - return this.tokenService.toggleTokens(); - case 8: - case "end": - return _context5.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return this.storageService.save(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey, timeout); + + case 2: + _context5.next = 4; + return this.storageService.save(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey, action); + + case 4: + _context5.next = 6; + return this.cryptoService.toggleKey(); + + case 6: + _context5.next = 8; + return this.tokenService.toggleTokens(); + + case 8: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -329315,23 +332034,28 @@ var VaultTimeoutService = /*#__PURE__*/function () { }, { key: "isPinLockSet", value: function isPinLockSet() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var protectedPin, pinProtectedKey; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].protectedPin); - case 2: - protectedPin = _context6.sent; - _context6.next = 5; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].pinProtectedKey); - case 5: - pinProtectedKey = _context6.sent; - return _context6.abrupt("return", [protectedPin != null, pinProtectedKey != null]); - case 7: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].protectedPin); + + case 2: + protectedPin = _context6.sent; + _context6.next = 5; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].pinProtectedKey); + + case 5: + pinProtectedKey = _context6.sent; + return _context6.abrupt("return", [protectedPin != null, pinProtectedKey != null]); + + case 7: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -329339,17 +332063,21 @@ var VaultTimeoutService = /*#__PURE__*/function () { }, { key: "isBiometricLockSet", value: function isBiometricLockSet() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].biometricUnlockKey); - case 2: - return _context7.abrupt("return", _context7.sent); - case 3: - case "end": - return _context7.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].biometricUnlockKey); + + case 2: + return _context7.abrupt("return", _context7.sent); + + case 3: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -329361,6 +332089,7 @@ var VaultTimeoutService = /*#__PURE__*/function () { return this.storageService.remove(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].protectedPin); } }]); + return VaultTimeoutService; }(); @@ -347565,22 +350294,24 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserService", function() { return UserService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ZQBC"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -347589,6 +350320,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -347596,13 +350328,16 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var Keys = { userId: 'userId', userEmail: 'userEmail', @@ -347613,11 +350348,13 @@ var Keys = { }; var UserService = /*#__PURE__*/function () { function UserService(tokenService, storageService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, UserService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, UserService); + this.tokenService = tokenService; this.storageService = storageService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(UserService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(UserService, [{ key: "setInformation", value: function setInformation(userId, email, kdf, kdfIterations) { this.email = email; @@ -347635,23 +350372,29 @@ var UserService = /*#__PURE__*/function () { }, { key: "getUserId", value: function getUserId() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(this.userId == null)) { - _context.next = 4; - break; - } - _context.next = 3; - return this.storageService.get(Keys.userId); - case 3: - this.userId = _context.sent; - case 4: - return _context.abrupt("return", this.userId); - case 5: - case "end": - return _context.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(this.userId == null)) { + _context.next = 4; + break; + } + + _context.next = 3; + return this.storageService.get(Keys.userId); + + case 3: + this.userId = _context.sent; + + case 4: + return _context.abrupt("return", this.userId); + + case 5: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -347659,23 +350402,29 @@ var UserService = /*#__PURE__*/function () { }, { key: "getEmail", value: function getEmail() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!(this.email == null)) { - _context2.next = 4; - break; - } - _context2.next = 3; - return this.storageService.get(Keys.userEmail); - case 3: - this.email = _context2.sent; - case 4: - return _context2.abrupt("return", this.email); - case 5: - case "end": - return _context2.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!(this.email == null)) { + _context2.next = 4; + break; + } + + _context2.next = 3; + return this.storageService.get(Keys.userEmail); + + case 3: + this.email = _context2.sent; + + case 4: + return _context2.abrupt("return", this.email); + + case 5: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -347683,23 +350432,29 @@ var UserService = /*#__PURE__*/function () { }, { key: "getSecurityStamp", value: function getSecurityStamp() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - if (!(this.stamp == null)) { - _context3.next = 4; - break; - } - _context3.next = 3; - return this.storageService.get(Keys.stamp); - case 3: - this.stamp = _context3.sent; - case 4: - return _context3.abrupt("return", this.stamp); - case 5: - case "end": - return _context3.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + if (!(this.stamp == null)) { + _context3.next = 4; + break; + } + + _context3.next = 3; + return this.storageService.get(Keys.stamp); + + case 3: + this.stamp = _context3.sent; + + case 4: + return _context3.abrupt("return", this.stamp); + + case 5: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -347707,23 +350462,29 @@ var UserService = /*#__PURE__*/function () { }, { key: "getKdf", value: function getKdf() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.kdf == null)) { - _context4.next = 4; - break; - } - _context4.next = 3; - return this.storageService.get(Keys.kdf); - case 3: - this.kdf = _context4.sent; - case 4: - return _context4.abrupt("return", this.kdf); - case 5: - case "end": - return _context4.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.kdf == null)) { + _context4.next = 4; + break; + } + + _context4.next = 3; + return this.storageService.get(Keys.kdf); + + case 3: + this.kdf = _context4.sent; + + case 4: + return _context4.abrupt("return", this.kdf); + + case 5: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -347731,23 +350492,29 @@ var UserService = /*#__PURE__*/function () { }, { key: "getKdfIterations", value: function getKdfIterations() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - if (!(this.kdfIterations == null)) { - _context5.next = 4; - break; - } - _context5.next = 3; - return this.storageService.get(Keys.kdfIterations); - case 3: - this.kdfIterations = _context5.sent; - case 4: - return _context5.abrupt("return", this.kdfIterations); - case 5: - case "end": - return _context5.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + if (!(this.kdfIterations == null)) { + _context5.next = 4; + break; + } + + _context5.next = 3; + return this.storageService.get(Keys.kdfIterations); + + case 3: + this.kdfIterations = _context5.sent; + + case 4: + return _context5.abrupt("return", this.kdfIterations); + + case 5: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -347755,24 +350522,29 @@ var UserService = /*#__PURE__*/function () { }, { key: "clear", value: function clear() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.getUserId(); - case 2: - userId = _context6.sent; - _context6.next = 5; - return Promise.all([this.storageService.remove(Keys.userId), this.storageService.remove(Keys.userEmail), this.storageService.remove(Keys.stamp), this.storageService.remove(Keys.kdf), this.storageService.remove(Keys.kdfIterations), this.clearOrganizations(userId)]); - case 5: - this.userId = this.email = this.stamp = null; - this.kdf = null; - this.kdfIterations = null; - case 8: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.getUserId(); + + case 2: + userId = _context6.sent; + _context6.next = 5; + return Promise.all([this.storageService.remove(Keys.userId), this.storageService.remove(Keys.userEmail), this.storageService.remove(Keys.stamp), this.storageService.remove(Keys.kdf), this.storageService.remove(Keys.kdfIterations), this.clearOrganizations(userId)]); + + case 5: + this.userId = this.email = this.stamp = null; + this.kdf = null; + this.kdfIterations = null; + + case 8: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -347780,29 +350552,37 @@ var UserService = /*#__PURE__*/function () { }, { key: "isAuthenticated", value: function isAuthenticated() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var token, userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.tokenService.getToken(); - case 2: - token = _context7.sent; - if (!(token == null)) { - _context7.next = 5; - break; - } - return _context7.abrupt("return", false); - case 5: - _context7.next = 7; - return this.getUserId(); - case 7: - userId = _context7.sent; - return _context7.abrupt("return", userId != null); - case 9: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.tokenService.getToken(); + + case 2: + token = _context7.sent; + + if (!(token == null)) { + _context7.next = 5; + break; + } + + return _context7.abrupt("return", false); + + case 5: + _context7.next = 7; + return this.getUserId(); + + case 7: + userId = _context7.sent; + return _context7.abrupt("return", userId != null); + + case 9: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -347810,52 +350590,68 @@ var UserService = /*#__PURE__*/function () { }, { key: "canAccessPremium", value: function canAccessPremium() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var authed, tokenPremium, orgs, i; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.isAuthenticated(); - case 2: - authed = _context8.sent; - if (authed) { - _context8.next = 5; - break; - } - return _context8.abrupt("return", false); - case 5: - tokenPremium = this.tokenService.getPremium(); - if (!tokenPremium) { - _context8.next = 8; - break; - } - return _context8.abrupt("return", true); - case 8: - _context8.next = 10; - return this.getAllOrganizations(); - case 10: - orgs = _context8.sent; - i = 0; - case 12: - if (!(i < orgs.length)) { - _context8.next = 18; - break; - } - if (!(orgs[i].usersGetPremium && orgs[i].enabled)) { - _context8.next = 15; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.isAuthenticated(); + + case 2: + authed = _context8.sent; + + if (authed) { + _context8.next = 5; + break; + } + + return _context8.abrupt("return", false); + + case 5: + tokenPremium = this.tokenService.getPremium(); + + if (!tokenPremium) { + _context8.next = 8; + break; + } + + return _context8.abrupt("return", true); + + case 8: + _context8.next = 10; + return this.getAllOrganizations(); + + case 10: + orgs = _context8.sent; + i = 0; + + case 12: + if (!(i < orgs.length)) { + _context8.next = 18; + break; + } + + if (!(orgs[i].usersGetPremium && orgs[i].enabled)) { + _context8.next = 15; + break; + } + + return _context8.abrupt("return", true); + + case 15: + i++; + _context8.next = 12; break; - } - return _context8.abrupt("return", true); - case 15: - i++; - _context8.next = 12; - break; - case 18: - return _context8.abrupt("return", false); - case 19: - case "end": - return _context8.stop(); + + case 18: + return _context8.abrupt("return", false); + + case 19: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -347863,29 +350659,37 @@ var UserService = /*#__PURE__*/function () { }, { key: "getOrganization", value: function getOrganization(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var userId, organizations; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.getUserId(); - case 2: - userId = _context9.sent; - _context9.next = 5; - return this.storageService.get(Keys.organizationsPrefix + userId); - case 5: - organizations = _context9.sent; - if (!(organizations == null || !organizations.hasOwnProperty(id))) { - _context9.next = 8; - break; - } - return _context9.abrupt("return", null); - case 8: - return _context9.abrupt("return", new _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__["Organization"](organizations[id])); - case 9: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.getUserId(); + + case 2: + userId = _context9.sent; + _context9.next = 5; + return this.storageService.get(Keys.organizationsPrefix + userId); + + case 5: + organizations = _context9.sent; + + if (!(organizations == null || !organizations.hasOwnProperty(id))) { + _context9.next = 8; + break; + } + + return _context9.abrupt("return", null); + + case 8: + return _context9.abrupt("return", new _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__["Organization"](organizations[id])); + + case 9: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -347893,29 +350697,36 @@ var UserService = /*#__PURE__*/function () { }, { key: "getAllOrganizations", value: function getAllOrganizations() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var userId, organizations, response, id; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.getUserId(); - case 2: - userId = _context10.sent; - _context10.next = 5; - return this.storageService.get(Keys.organizationsPrefix + userId); - case 5: - organizations = _context10.sent; - response = []; - for (id in organizations) { - if (organizations.hasOwnProperty(id)) { - response.push(new _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__["Organization"](organizations[id])); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.getUserId(); + + case 2: + userId = _context10.sent; + _context10.next = 5; + return this.storageService.get(Keys.organizationsPrefix + userId); + + case 5: + organizations = _context10.sent; + response = []; + + for (id in organizations) { + if (organizations.hasOwnProperty(id)) { + response.push(new _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__["Organization"](organizations[id])); + } } - } - return _context10.abrupt("return", response); - case 9: - case "end": - return _context10.stop(); + + return _context10.abrupt("return", response); + + case 9: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -347923,20 +350734,24 @@ var UserService = /*#__PURE__*/function () { }, { key: "replaceOrganizations", value: function replaceOrganizations(organizations) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - _context11.next = 2; - return this.getUserId(); - case 2: - userId = _context11.sent; - _context11.next = 5; - return this.storageService.save(Keys.organizationsPrefix + userId, organizations); - case 5: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return this.getUserId(); + + case 2: + userId = _context11.sent; + _context11.next = 5; + return this.storageService.save(Keys.organizationsPrefix + userId, organizations); + + case 5: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -347944,20 +350759,24 @@ var UserService = /*#__PURE__*/function () { }, { key: "clearOrganizations", value: function clearOrganizations(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - _context12.next = 2; - return this.storageService.remove(Keys.organizationsPrefix + userId); - case 2: - case "end": - return _context12.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return this.storageService.remove(Keys.organizationsPrefix + userId); + + case 2: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); } }]); + return UserService; }(); @@ -348258,104 +351077,6 @@ TransitionGroup.defaultProps = defaultProps; /***/ }), -/***/ "nKHg": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.locales = exports.default = void 0; -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _slicedToArray2 = _interopRequireDefault(__webpack_require__("XkwL")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _TextField = _interopRequireDefault(__webpack_require__("UuKj")); -var _IconButton = _interopRequireDefault(__webpack_require__("HCvV")); -var _Icon = _interopRequireDefault(__webpack_require__("AHiN")); -var _InputAdornment = _interopRequireDefault(__webpack_require__("0JGJ")); -var _Eye = _interopRequireDefault(__webpack_require__("76ec")); -var _EyeClosed = _interopRequireDefault(__webpack_require__("fYln")); -var _I18n = __webpack_require__("nUfk"); -var _withOnlyLocales = _interopRequireDefault(__webpack_require__("Cxz7")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - return keys; -} -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - (0, _defineProperty2.default)(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - return target; -} -var en = { - "password-field": { - show: "Show password", - hide: "Hide password" - } -}; -var fr = { - "password-field": { - show: "Afficher le mot de passe", - hide: "Masquer le mot de passe" - } -}; -var locales = { - en: en, - fr: fr -}; -/** - * Password field with the option of hiding or displaying it - */ -exports.locales = locales; -var PasswordField = function PasswordField(props) { - var _useI18n = (0, _I18n.useI18n)(), - t = _useI18n.t; - var _useState = (0, _react.useState)(true), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - hidden = _useState2[0], - setHidden = _useState2[1]; - return /*#__PURE__*/_react.default.createElement(_TextField.default, (0, _extends2.default)({ - variant: "outlined", - type: hidden ? 'password' : 'text' - }, props, { - InputProps: _objectSpread({ - endAdornment: /*#__PURE__*/_react.default.createElement(_InputAdornment.default, { - position: "end" - }, /*#__PURE__*/_react.default.createElement(_IconButton.default, { - label: hidden ? t('password-field.show') : t('password-field.hide'), - disabled: props.disabled, - onClick: function onClick() { - return setHidden(!hidden); - }, - edge: "end" - }, /*#__PURE__*/_react.default.createElement(_Icon.default, { - icon: hidden ? _Eye.default : _EyeClosed.default - }))) - }, props.InputProps) - })); -}; -var _default = (0, _withOnlyLocales.default)(locales)(PasswordField); -exports.default = _default; - -/***/ }), - /***/ "nM0j": /***/ (function(module, exports, __webpack_require__) { @@ -348454,12 +351175,12 @@ module.exports = { "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherService", function() { return CipherService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ykCz"); /* harmony import */ var _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("9EMJ"); /* harmony import */ var _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("+swF"); @@ -348488,26 +351209,29 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("6xKo"); -function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) { var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) { + if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + } return c > 3 && r && Object.defineProperty(target, key, r), r; }; + var __metadata = undefined && undefined.__metadata || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -348516,6 +351240,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -348523,9 +351248,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -348553,6 +351280,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Keys = { @@ -348563,7 +351291,8 @@ var Keys = { var DomainMatchBlacklist = new Map([['google.com', new Set(['script.google.com'])]]); var CipherService = /*#__PURE__*/function () { function CipherService(cryptoService, userService, settingsService, apiService, storageService, i18nService, searchService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherService); + this.cryptoService = cryptoService; this.userService = userService; this.settingsService = settingsService; @@ -348573,22 +351302,8 @@ var CipherService = /*#__PURE__*/function () { this.searchService = searchService; this.sortedCiphersCache = new _models_domain_sortedCiphersCache__WEBPACK_IMPORTED_MODULE_25__["SortedCiphersCache"](this.sortCiphersByLastUsed); } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CipherService, [{ - key: "decryptedCipherCache", - get: function get() { - return this._decryptedCipherCache; - }, - set: function set(value) { - this._decryptedCipherCache = value; - if (this.searchService != null) { - if (value == null) { - this.searchService().clearIndex(); - } else { - this.searchService().indexCiphers(); - } - } - } - }, { + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(CipherService, [{ key: "clearCache", value: function clearCache() { this.decryptedCipherCache = null; @@ -348598,108 +351313,130 @@ var CipherService = /*#__PURE__*/function () { key: "encrypt", value: function encrypt(model, key) { var originalCipher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var existingCipher, ph, existingHiddenFields, hiddenFields, cipher; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(model.id != null)) { - _context.next = 13; - break; - } - if (!(originalCipher == null)) { - _context.next = 5; - break; - } - _context.next = 4; - return this.get(model.id); - case 4: - originalCipher = _context.sent; - case 5: - if (!(originalCipher != null)) { - _context.next = 12; - break; - } - _context.next = 8; - return originalCipher.decrypt(); - case 8: - existingCipher = _context.sent; - model.passwordHistory = existingCipher.passwordHistory || []; - if (model.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login && existingCipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login) { - if (existingCipher.login.password != null && existingCipher.login.password !== '' && existingCipher.login.password !== model.login.password) { - ph = new _models_view_passwordHistoryView__WEBPACK_IMPORTED_MODULE_24__["PasswordHistoryView"](); - ph.password = existingCipher.login.password; - ph.lastUsedDate = model.login.passwordRevisionDate = new Date(); - model.passwordHistory.splice(0, 0, ph); - } else { - model.login.passwordRevisionDate = existingCipher.login.passwordRevisionDate; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(model.id != null)) { + _context.next = 13; + break; } - } - if (existingCipher.hasFields) { - existingHiddenFields = existingCipher.fields.filter(function (f) { - return f.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__["FieldType"].Hidden && f.name != null && f.name !== '' && f.value != null && f.value !== ''; - }); - hiddenFields = model.fields == null ? [] : model.fields.filter(function (f) { - return f.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__["FieldType"].Hidden && f.name != null && f.name !== ''; - }); - existingHiddenFields.forEach(function (ef) { - var matchedField = hiddenFields.find(function (f) { - return f.name === ef.name; - }); - if (matchedField == null || matchedField.value !== ef.value) { - var _ph = new _models_view_passwordHistoryView__WEBPACK_IMPORTED_MODULE_24__["PasswordHistoryView"](); - _ph.password = ef.name + ': ' + ef.value; - _ph.lastUsedDate = new Date(); - model.passwordHistory.splice(0, 0, _ph); + + if (!(originalCipher == null)) { + _context.next = 5; + break; + } + + _context.next = 4; + return this.get(model.id); + + case 4: + originalCipher = _context.sent; + + case 5: + if (!(originalCipher != null)) { + _context.next = 12; + break; + } + + _context.next = 8; + return originalCipher.decrypt(); + + case 8: + existingCipher = _context.sent; + model.passwordHistory = existingCipher.passwordHistory || []; + + if (model.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login && existingCipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login) { + if (existingCipher.login.password != null && existingCipher.login.password !== '' && existingCipher.login.password !== model.login.password) { + ph = new _models_view_passwordHistoryView__WEBPACK_IMPORTED_MODULE_24__["PasswordHistoryView"](); + ph.password = existingCipher.login.password; + ph.lastUsedDate = model.login.passwordRevisionDate = new Date(); + model.passwordHistory.splice(0, 0, ph); + } else { + model.login.passwordRevisionDate = existingCipher.login.passwordRevisionDate; } - }); - } - case 12: - if (model.passwordHistory != null && model.passwordHistory.length === 0) { - model.passwordHistory = null; - } else if (model.passwordHistory != null && model.passwordHistory.length > 5) { - // only save last 5 history - model.passwordHistory = model.passwordHistory.slice(0, 5); - } - case 13: - cipher = new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](); - cipher.id = model.id; - cipher.folderId = model.folderId; - cipher.favorite = model.favorite; - cipher.organizationId = model.organizationId; - cipher.type = model.type; - cipher.collectionIds = model.collectionIds; - cipher.revisionDate = model.revisionDate; - if (!(key == null && cipher.organizationId != null)) { - _context.next = 27; - break; - } - _context.next = 24; - return this.cryptoService.getOrgKey(cipher.organizationId); - case 24: - key = _context.sent; - if (!(key == null)) { - _context.next = 27; - break; - } - throw new Error('Cannot encrypt cipher for organization. No key.'); - case 27: - _context.next = 29; - return Promise.all([this.encryptObjProperty(model, cipher, { - name: null, - notes: null - }, key), this.encryptCipherData(cipher, model, key), this.encryptFields(model.fields, key).then(function (fields) { - cipher.fields = fields; - }), this.encryptPasswordHistories(model.passwordHistory, key).then(function (ph) { - cipher.passwordHistory = ph; - }), this.encryptAttachments(model.attachments, key).then(function (attachments) { - cipher.attachments = attachments; - })]); - case 29: - return _context.abrupt("return", cipher); - case 30: - case "end": - return _context.stop(); + } + + if (existingCipher.hasFields) { + existingHiddenFields = existingCipher.fields.filter(function (f) { + return f.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__["FieldType"].Hidden && f.name != null && f.name !== '' && f.value != null && f.value !== ''; + }); + hiddenFields = model.fields == null ? [] : model.fields.filter(function (f) { + return f.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__["FieldType"].Hidden && f.name != null && f.name !== ''; + }); + existingHiddenFields.forEach(function (ef) { + var matchedField = hiddenFields.find(function (f) { + return f.name === ef.name; + }); + + if (matchedField == null || matchedField.value !== ef.value) { + var _ph = new _models_view_passwordHistoryView__WEBPACK_IMPORTED_MODULE_24__["PasswordHistoryView"](); + + _ph.password = ef.name + ': ' + ef.value; + _ph.lastUsedDate = new Date(); + model.passwordHistory.splice(0, 0, _ph); + } + }); + } + + case 12: + if (model.passwordHistory != null && model.passwordHistory.length === 0) { + model.passwordHistory = null; + } else if (model.passwordHistory != null && model.passwordHistory.length > 5) { + // only save last 5 history + model.passwordHistory = model.passwordHistory.slice(0, 5); + } + + case 13: + cipher = new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](); + cipher.id = model.id; + cipher.folderId = model.folderId; + cipher.favorite = model.favorite; + cipher.organizationId = model.organizationId; + cipher.type = model.type; + cipher.collectionIds = model.collectionIds; + cipher.revisionDate = model.revisionDate; + + if (!(key == null && cipher.organizationId != null)) { + _context.next = 27; + break; + } + + _context.next = 24; + return this.cryptoService.getOrgKey(cipher.organizationId); + + case 24: + key = _context.sent; + + if (!(key == null)) { + _context.next = 27; + break; + } + + throw new Error('Cannot encrypt cipher for organization. No key.'); + + case 27: + _context.next = 29; + return Promise.all([this.encryptObjProperty(model, cipher, { + name: null, + notes: null + }, key), this.encryptCipherData(cipher, model, key), this.encryptFields(model.fields, key).then(function (fields) { + cipher.fields = fields; + }), this.encryptPasswordHistories(model.passwordHistory, key).then(function (ph) { + cipher.passwordHistory = ph; + }), this.encryptAttachments(model.attachments, key).then(function (attachments) { + cipher.attachments = attachments; + })]); + + case 29: + return _context.abrupt("return", cipher); + + case 30: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -348707,71 +351444,88 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptAttachments", value: function encryptAttachments(attachmentsModel, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var _this = this; + var promises, encAttachments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(attachmentsModel == null || attachmentsModel.length === 0)) { - _context4.next = 2; - break; - } - return _context4.abrupt("return", null); - case 2: - promises = []; - encAttachments = []; - attachmentsModel.forEach(function (model) { - return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { - var _this2 = this; - var attachment, promise; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - attachment = new _models_domain_attachment__WEBPACK_IMPORTED_MODULE_7__["Attachment"](); - attachment.id = model.id; - attachment.size = model.size; - attachment.sizeName = model.sizeName; - attachment.url = model.url; - promise = this.encryptObjProperty(model, attachment, { - fileName: null - }, key).then(function () { - return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!(model.key != null)) { - _context2.next = 4; - break; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(attachmentsModel == null || attachmentsModel.length === 0)) { + _context4.next = 2; + break; + } + + return _context4.abrupt("return", null); + + case 2: + promises = []; + encAttachments = []; + attachmentsModel.forEach(function (model) { + return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + var _this2 = this; + + var attachment, promise; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + attachment = new _models_domain_attachment__WEBPACK_IMPORTED_MODULE_7__["Attachment"](); + attachment.id = model.id; + attachment.size = model.size; + attachment.sizeName = model.sizeName; + attachment.url = model.url; + promise = this.encryptObjProperty(model, attachment, { + fileName: null + }, key).then(function () { + return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!(model.key != null)) { + _context2.next = 4; + break; + } + + _context2.next = 3; + return this.cryptoService.encrypt(model.key.key, key); + + case 3: + attachment.key = _context2.sent; + + case 4: + encAttachments.push(attachment); + + case 5: + case "end": + return _context2.stop(); + } } - _context2.next = 3; - return this.cryptoService.encrypt(model.key.key, key); - case 3: - attachment.key = _context2.sent; - case 4: - encAttachments.push(attachment); - case 5: - case "end": - return _context2.stop(); - } - }, _callee2, this); - })); - }); - promises.push(promise); - case 7: - case "end": - return _context3.stop(); - } - }, _callee3, this); - })); - }); - _context4.next = 7; - return Promise.all(promises); - case 7: - return _context4.abrupt("return", encAttachments); - case 8: - case "end": - return _context4.stop(); + }, _callee2, this); + })); + }); + promises.push(promise); + + case 7: + case "end": + return _context3.stop(); + } + } + }, _callee3, this); + })); + }); + _context4.next = 7; + return Promise.all(promises); + + case 7: + return _context4.abrupt("return", encAttachments); + + case 8: + case "end": + return _context4.stop(); + } } }, _callee4); })); @@ -348779,32 +351533,38 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptFields", value: function encryptFields(fieldsModel, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var self, encFields; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - if (!(!fieldsModel || !fieldsModel.length)) { - _context5.next = 2; - break; - } - return _context5.abrupt("return", null); - case 2: - self = this; - encFields = []; - _context5.next = 6; - return fieldsModel.reduce(function (promise, field) { - return promise.then(function () { - return self.encryptField(field, key); - }).then(function (encField) { - encFields.push(encField); - }); - }, Promise.resolve()); - case 6: - return _context5.abrupt("return", encFields); - case 7: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + if (!(!fieldsModel || !fieldsModel.length)) { + _context5.next = 2; + break; + } + + return _context5.abrupt("return", null); + + case 2: + self = this; + encFields = []; + _context5.next = 6; + return fieldsModel.reduce(function (promise, field) { + return promise.then(function () { + return self.encryptField(field, key); + }).then(function (encField) { + encFields.push(encField); + }); + }, Promise.resolve()); + + case 6: + return _context5.abrupt("return", encFields); + + case 7: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -348812,27 +351572,32 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptField", value: function encryptField(fieldModel, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var field; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - field = new _models_domain_field__WEBPACK_IMPORTED_MODULE_10__["Field"](); - field.type = fieldModel.type; - // normalize boolean type field values - if (fieldModel.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__["FieldType"].Boolean && fieldModel.value !== 'true') { - fieldModel.value = 'false'; - } - _context6.next = 5; - return this.encryptObjProperty(fieldModel, field, { - name: null, - value: null - }, key); - case 5: - return _context6.abrupt("return", field); - case 6: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + field = new _models_domain_field__WEBPACK_IMPORTED_MODULE_10__["Field"](); + field.type = fieldModel.type; // normalize boolean type field values + + if (fieldModel.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_4__["FieldType"].Boolean && fieldModel.value !== 'true') { + fieldModel.value = 'false'; + } + + _context6.next = 5; + return this.encryptObjProperty(fieldModel, field, { + name: null, + value: null + }, key); + + case 5: + return _context6.abrupt("return", field); + + case 6: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -348840,32 +351605,38 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptPasswordHistories", value: function encryptPasswordHistories(phModels, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var self, encPhs; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - if (!(!phModels || !phModels.length)) { - _context7.next = 2; - break; - } - return _context7.abrupt("return", null); - case 2: - self = this; - encPhs = []; - _context7.next = 6; - return phModels.reduce(function (promise, ph) { - return promise.then(function () { - return self.encryptPasswordHistory(ph, key); - }).then(function (encPh) { - encPhs.push(encPh); - }); - }, Promise.resolve()); - case 6: - return _context7.abrupt("return", encPhs); - case 7: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + if (!(!phModels || !phModels.length)) { + _context7.next = 2; + break; + } + + return _context7.abrupt("return", null); + + case 2: + self = this; + encPhs = []; + _context7.next = 6; + return phModels.reduce(function (promise, ph) { + return promise.then(function () { + return self.encryptPasswordHistory(ph, key); + }).then(function (encPh) { + encPhs.push(encPh); + }); + }, Promise.resolve()); + + case 6: + return _context7.abrupt("return", encPhs); + + case 7: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -348873,22 +351644,26 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptPasswordHistory", value: function encryptPasswordHistory(phModel, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var ph; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - ph = new _models_domain_password__WEBPACK_IMPORTED_MODULE_14__["Password"](); - ph.lastUsedDate = phModel.lastUsedDate; - _context8.next = 4; - return this.encryptObjProperty(phModel, ph, { - password: null - }, key); - case 4: - return _context8.abrupt("return", ph); - case 5: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + ph = new _models_domain_password__WEBPACK_IMPORTED_MODULE_14__["Password"](); + ph.lastUsedDate = phModel.lastUsedDate; + _context8.next = 4; + return this.encryptObjProperty(phModel, ph, { + password: null + }, key); + + case 4: + return _context8.abrupt("return", ph); + + case 5: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -348896,33 +351671,42 @@ var CipherService = /*#__PURE__*/function () { }, { key: "get", value: function get(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var userId, localData, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context9.sent; - _context9.next = 5; - return this.storageService.get(Keys.localData); - case 5: - localData = _context9.sent; - _context9.next = 8; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 8: - ciphers = _context9.sent; - if (!(ciphers == null || !ciphers.hasOwnProperty(id))) { - _context9.next = 11; - break; - } - return _context9.abrupt("return", null); - case 11: - return _context9.abrupt("return", new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](ciphers[id], false, localData ? localData[id] : null)); - case 12: - case "end": - return _context9.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context9.sent; + _context9.next = 5; + return this.storageService.get(Keys.localData); + + case 5: + localData = _context9.sent; + _context9.next = 8; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 8: + ciphers = _context9.sent; + + if (!(ciphers == null || !ciphers.hasOwnProperty(id))) { + _context9.next = 11; + break; + } + + return _context9.abrupt("return", null); + + case 11: + return _context9.abrupt("return", new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](ciphers[id], false, localData ? localData[id] : null)); + + case 12: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -348930,33 +351714,41 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getAll", value: function getAll() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var userId, localData, ciphers, response, id; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - _context10.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context10.sent; - _context10.next = 5; - return this.storageService.get(Keys.localData); - case 5: - localData = _context10.sent; - _context10.next = 8; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 8: - ciphers = _context10.sent; - response = []; - for (id in ciphers) { - if (ciphers.hasOwnProperty(id)) { - response.push(new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](ciphers[id], false, localData ? localData[id] : null)); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context10.sent; + _context10.next = 5; + return this.storageService.get(Keys.localData); + + case 5: + localData = _context10.sent; + _context10.next = 8; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 8: + ciphers = _context10.sent; + response = []; + + for (id in ciphers) { + if (ciphers.hasOwnProperty(id)) { + response.push(new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](ciphers[id], false, localData ? localData[id] : null)); + } } - } - return _context10.abrupt("return", response); - case 12: - case "end": - return _context10.stop(); + + return _context10.abrupt("return", response); + + case 12: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -348964,47 +351756,58 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getAllDecrypted", value: function getAllDecrypted() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var decCiphers, hasKey, promises, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - if (!(this.decryptedCipherCache != null)) { - _context11.next = 2; - break; - } - return _context11.abrupt("return", this.decryptedCipherCache); - case 2: - decCiphers = []; - _context11.next = 5; - return this.cryptoService.hasKey(); - case 5: - hasKey = _context11.sent; - if (hasKey) { - _context11.next = 8; - break; - } - throw new Error('No key.'); - case 8: - promises = []; - _context11.next = 11; - return this.getAll(); - case 11: - ciphers = _context11.sent; - ciphers.forEach(function (cipher) { - promises.push(cipher.decrypt().then(function (c) { - return decCiphers.push(c); - })); - }); - _context11.next = 15; - return Promise.all(promises); - case 15: - decCiphers.sort(this.getLocaleSortingFunction()); - this.decryptedCipherCache = decCiphers; - return _context11.abrupt("return", this.decryptedCipherCache); - case 18: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + if (!(this.decryptedCipherCache != null)) { + _context11.next = 2; + break; + } + + return _context11.abrupt("return", this.decryptedCipherCache); + + case 2: + decCiphers = []; + _context11.next = 5; + return this.cryptoService.hasKey(); + + case 5: + hasKey = _context11.sent; + + if (hasKey) { + _context11.next = 8; + break; + } + + throw new Error('No key.'); + + case 8: + promises = []; + _context11.next = 11; + return this.getAll(); + + case 11: + ciphers = _context11.sent; + ciphers.forEach(function (cipher) { + promises.push(cipher.decrypt().then(function (c) { + return decCiphers.push(c); + })); + }); + _context11.next = 15; + return Promise.all(promises); + + case 15: + decCiphers.sort(this.getLocaleSortingFunction()); + this.decryptedCipherCache = decCiphers; + return _context11.abrupt("return", this.decryptedCipherCache); + + case 18: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -349013,29 +351816,35 @@ var CipherService = /*#__PURE__*/function () { key: "getAllDecryptedForGrouping", value: function getAllDecryptedForGrouping(groupingId) { var folder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { var ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - _context12.next = 2; - return this.getAllDecrypted(); - case 2: - ciphers = _context12.sent; - return _context12.abrupt("return", ciphers.filter(function (cipher) { - if (cipher.isDeleted) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return this.getAllDecrypted(); + + case 2: + ciphers = _context12.sent; + return _context12.abrupt("return", ciphers.filter(function (cipher) { + if (cipher.isDeleted) { + return false; + } + + if (folder && cipher.folderId === groupingId) { + return true; + } else if (!folder && cipher.collectionIds != null && cipher.collectionIds.indexOf(groupingId) > -1) { + return true; + } + return false; - } - if (folder && cipher.folderId === groupingId) { - return true; - } else if (!folder && cipher.collectionIds != null && cipher.collectionIds.indexOf(groupingId) > -1) { - return true; - } - return false; - })); - case 4: - case "end": - return _context12.stop(); + })); + + case 4: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); @@ -349044,110 +351853,142 @@ var CipherService = /*#__PURE__*/function () { key: "getAllDecryptedForUrl", value: function getAllDecryptedForUrl(url, includeOtherTypes) { var defaultMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee13() { var domain, eqDomainsPromise, result, matchingDomains, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - if (!(url == null && includeOtherTypes == null)) { - _context13.next = 2; - break; - } - return _context13.abrupt("return", Promise.resolve([])); - case 2: - domain = _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getDomain(url); - eqDomainsPromise = domain == null ? Promise.resolve([]) : this.settingsService.getEquivalentDomains().then(function (eqDomains) { - var matches = []; - eqDomains.forEach(function (eqDomain) { - if (eqDomain.length && eqDomain.indexOf(domain) >= 0) { - matches = matches.concat(eqDomain); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + if (!(url == null && includeOtherTypes == null)) { + _context13.next = 2; + break; + } + + return _context13.abrupt("return", Promise.resolve([])); + + case 2: + domain = _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getDomain(url); + eqDomainsPromise = domain == null ? Promise.resolve([]) : this.settingsService.getEquivalentDomains().then(function (eqDomains) { + var matches = []; + eqDomains.forEach(function (eqDomain) { + if (eqDomain.length && eqDomain.indexOf(domain) >= 0) { + matches = matches.concat(eqDomain); + } + }); + + if (!matches.length) { + matches.push(domain); } + + return matches; }); - if (!matches.length) { - matches.push(domain); - } - return matches; - }); - _context13.next = 6; - return Promise.all([eqDomainsPromise, this.getAllDecrypted()]); - case 6: - result = _context13.sent; - matchingDomains = result[0]; - ciphers = result[1]; - if (!(defaultMatch == null)) { - _context13.next = 14; - break; - } - _context13.next = 12; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_26__["ConstantsService"].defaultUriMatch); - case 12: - defaultMatch = _context13.sent; - if (defaultMatch == null) { - defaultMatch = _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Domain; - } - case 14: - return _context13.abrupt("return", ciphers.filter(function (cipher) { - if (cipher.deletedDate != null) { - return false; + _context13.next = 6; + return Promise.all([eqDomainsPromise, this.getAllDecrypted()]); + + case 6: + result = _context13.sent; + matchingDomains = result[0]; + ciphers = result[1]; + + if (!(defaultMatch == null)) { + _context13.next = 14; + break; } - if (includeOtherTypes != null && includeOtherTypes.indexOf(cipher.type) > -1) { - return true; + + _context13.next = 12; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_26__["ConstantsService"].defaultUriMatch); + + case 12: + defaultMatch = _context13.sent; + + if (defaultMatch == null) { + defaultMatch = _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Domain; } - if (url != null && cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login && cipher.login.uris != null) { - for (var i = 0; i < cipher.login.uris.length; i++) { - var u = cipher.login.uris[i]; - if (u.uri == null) { - continue; - } - var match = u.match == null ? defaultMatch : u.match; - switch (match) { - case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Domain: - if (domain != null && u.domain != null && matchingDomains.indexOf(u.domain) > -1) { - if (DomainMatchBlacklist.has(u.domain)) { - var domainUrlHost = _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getHost(url); - if (!DomainMatchBlacklist.get(u.domain).has(domainUrlHost)) { + + case 14: + return _context13.abrupt("return", ciphers.filter(function (cipher) { + if (cipher.deletedDate != null) { + return false; + } + + if (includeOtherTypes != null && includeOtherTypes.indexOf(cipher.type) > -1) { + return true; + } + + if (url != null && cipher.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login && cipher.login.uris != null) { + for (var i = 0; i < cipher.login.uris.length; i++) { + var u = cipher.login.uris[i]; + + if (u.uri == null) { + continue; + } + + var match = u.match == null ? defaultMatch : u.match; + + switch (match) { + case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Domain: + if (domain != null && u.domain != null && matchingDomains.indexOf(u.domain) > -1) { + if (DomainMatchBlacklist.has(u.domain)) { + var domainUrlHost = _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getHost(url); + + if (!DomainMatchBlacklist.get(u.domain).has(domainUrlHost)) { + return true; + } + } else { return true; } - } else { + } + + break; + + case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Host: + var urlHost = _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getHost(url); + + if (urlHost != null && urlHost === _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getHost(u.uri)) { return true; } - } - break; - case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Host: - var urlHost = _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getHost(url); - if (urlHost != null && urlHost === _misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].getHost(u.uri)) { - return true; - } - break; - case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Exact: - if (url === u.uri) { - return true; - } - break; - case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].StartsWith: - if (url.startsWith(u.uri)) { - return true; - } - break; - case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].RegularExpression: - try { - var regex = new RegExp(u.uri, 'i'); - if (regex.test(url)) { + + break; + + case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Exact: + if (url === u.uri) { return true; } - } catch (_a) {} - break; - case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Never: - default: - break; + + break; + + case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].StartsWith: + if (url.startsWith(u.uri)) { + return true; + } + + break; + + case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].RegularExpression: + try { + var regex = new RegExp(u.uri, 'i'); + + if (regex.test(url)) { + return true; + } + } catch (_a) {} + + break; + + case _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_5__["UriMatchType"].Never: + default: + break; + } } } - } - return false; - })); - case 15: - case "end": - return _context13.stop(); + + return false; + })); + + case 15: + case "end": + return _context13.stop(); + } } }, _callee13, this); })); @@ -349155,38 +351996,46 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getAllFromApiForOrganization", value: function getAllFromApiForOrganization(organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee14() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee14() { var ciphers, decCiphers, promises; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee14$(_context14) { - while (1) switch (_context14.prev = _context14.next) { - case 0: - _context14.next = 2; - return this.apiService.getCiphersOrganization(organizationId); - case 2: - ciphers = _context14.sent; - if (!(ciphers != null && ciphers.data != null && ciphers.data.length)) { - _context14.next = 13; - break; - } - decCiphers = []; - promises = []; - ciphers.data.forEach(function (r) { - var data = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](r); - var cipher = new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](data); - promises.push(cipher.decrypt().then(function (c) { - return decCiphers.push(c); - })); - }); - _context14.next = 9; - return Promise.all(promises); - case 9: - decCiphers.sort(this.getLocaleSortingFunction()); - return _context14.abrupt("return", decCiphers); - case 13: - return _context14.abrupt("return", []); - case 14: - case "end": - return _context14.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee14$(_context14) { + while (1) { + switch (_context14.prev = _context14.next) { + case 0: + _context14.next = 2; + return this.apiService.getCiphersOrganization(organizationId); + + case 2: + ciphers = _context14.sent; + + if (!(ciphers != null && ciphers.data != null && ciphers.data.length)) { + _context14.next = 13; + break; + } + + decCiphers = []; + promises = []; + ciphers.data.forEach(function (r) { + var data = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](r); + var cipher = new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](data); + promises.push(cipher.decrypt().then(function (c) { + return decCiphers.push(c); + })); + }); + _context14.next = 9; + return Promise.all(promises); + + case 9: + decCiphers.sort(this.getLocaleSortingFunction()); + return _context14.abrupt("return", decCiphers); + + case 13: + return _context14.abrupt("return", []); + + case 14: + case "end": + return _context14.stop(); + } } }, _callee14, this); })); @@ -349194,14 +352043,17 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getLastUsedForUrl", value: function getLastUsedForUrl(url) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee15() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee15$(_context15) { - while (1) switch (_context15.prev = _context15.next) { - case 0: - return _context15.abrupt("return", this.getCipherForUrl(url, true, false)); - case 1: - case "end": - return _context15.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee15() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee15$(_context15) { + while (1) { + switch (_context15.prev = _context15.next) { + case 0: + return _context15.abrupt("return", this.getCipherForUrl(url, true, false)); + + case 1: + case "end": + return _context15.stop(); + } } }, _callee15, this); })); @@ -349209,14 +352061,17 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getLastLaunchedForUrl", value: function getLastLaunchedForUrl(url) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee16() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee16$(_context16) { - while (1) switch (_context16.prev = _context16.next) { - case 0: - return _context16.abrupt("return", this.getCipherForUrl(url, false, true)); - case 1: - case "end": - return _context16.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee16() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee16$(_context16) { + while (1) { + switch (_context16.prev = _context16.next) { + case 0: + return _context16.abrupt("return", this.getCipherForUrl(url, false, true)); + + case 1: + case "end": + return _context16.stop(); + } } }, _callee16, this); })); @@ -349224,14 +352079,17 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getNextCipherForUrl", value: function getNextCipherForUrl(url) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee17() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee17$(_context17) { - while (1) switch (_context17.prev = _context17.next) { - case 0: - return _context17.abrupt("return", this.getCipherForUrl(url, false, false)); - case 1: - case "end": - return _context17.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee17() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee17$(_context17) { + while (1) { + switch (_context17.prev = _context17.next) { + case 0: + return _context17.abrupt("return", this.getCipherForUrl(url, false, false)); + + case 1: + case "end": + return _context17.stop(); + } } }, _callee17, this); })); @@ -349244,54 +352102,69 @@ var CipherService = /*#__PURE__*/function () { }, { key: "updateLastUsedDate", value: function updateLastUsedDate(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee18() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee18() { var ciphersLocalData, i, cached; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee18$(_context18) { - while (1) switch (_context18.prev = _context18.next) { - case 0: - _context18.next = 2; - return this.storageService.get(Keys.localData); - case 2: - ciphersLocalData = _context18.sent; - if (!ciphersLocalData) { - ciphersLocalData = {}; - } - if (ciphersLocalData[id]) { - ciphersLocalData[id].lastUsedDate = new Date().getTime(); - } else { - ciphersLocalData[id] = { - lastUsedDate: new Date().getTime() - }; - } - _context18.next = 7; - return this.storageService.save(Keys.localData, ciphersLocalData); - case 7: - if (!(this.decryptedCipherCache == null)) { - _context18.next = 9; - break; - } - return _context18.abrupt("return"); - case 9: - i = 0; - case 10: - if (!(i < this.decryptedCipherCache.length)) { - _context18.next = 18; - break; - } - cached = this.decryptedCipherCache[i]; - if (!(cached.id === id)) { - _context18.next = 15; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee18$(_context18) { + while (1) { + switch (_context18.prev = _context18.next) { + case 0: + _context18.next = 2; + return this.storageService.get(Keys.localData); + + case 2: + ciphersLocalData = _context18.sent; + + if (!ciphersLocalData) { + ciphersLocalData = {}; + } + + if (ciphersLocalData[id]) { + ciphersLocalData[id].lastUsedDate = new Date().getTime(); + } else { + ciphersLocalData[id] = { + lastUsedDate: new Date().getTime() + }; + } + + _context18.next = 7; + return this.storageService.save(Keys.localData, ciphersLocalData); + + case 7: + if (!(this.decryptedCipherCache == null)) { + _context18.next = 9; + break; + } + + return _context18.abrupt("return"); + + case 9: + i = 0; + + case 10: + if (!(i < this.decryptedCipherCache.length)) { + _context18.next = 18; + break; + } + + cached = this.decryptedCipherCache[i]; + + if (!(cached.id === id)) { + _context18.next = 15; + break; + } + + cached.localData = ciphersLocalData[id]; + return _context18.abrupt("break", 18); + + case 15: + i++; + _context18.next = 10; break; - } - cached.localData = ciphersLocalData[id]; - return _context18.abrupt("break", 18); - case 15: - i++; - _context18.next = 10; - break; - case 18: - case "end": - return _context18.stop(); + + case 18: + case "end": + return _context18.stop(); + } } }, _callee18, this); })); @@ -349299,54 +352172,69 @@ var CipherService = /*#__PURE__*/function () { }, { key: "updateLastLaunchedDate", value: function updateLastLaunchedDate(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee19() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee19() { var ciphersLocalData, i, cached; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee19$(_context19) { - while (1) switch (_context19.prev = _context19.next) { - case 0: - _context19.next = 2; - return this.storageService.get(Keys.localData); - case 2: - ciphersLocalData = _context19.sent; - if (!ciphersLocalData) { - ciphersLocalData = {}; - } - if (ciphersLocalData[id]) { - ciphersLocalData[id].lastLaunched = new Date().getTime(); - } else { - ciphersLocalData[id] = { - lastUsedDate: new Date().getTime() - }; - } - _context19.next = 7; - return this.storageService.save(Keys.localData, ciphersLocalData); - case 7: - if (!(this.decryptedCipherCache == null)) { - _context19.next = 9; - break; - } - return _context19.abrupt("return"); - case 9: - i = 0; - case 10: - if (!(i < this.decryptedCipherCache.length)) { - _context19.next = 18; - break; - } - cached = this.decryptedCipherCache[i]; - if (!(cached.id === id)) { - _context19.next = 15; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee19$(_context19) { + while (1) { + switch (_context19.prev = _context19.next) { + case 0: + _context19.next = 2; + return this.storageService.get(Keys.localData); + + case 2: + ciphersLocalData = _context19.sent; + + if (!ciphersLocalData) { + ciphersLocalData = {}; + } + + if (ciphersLocalData[id]) { + ciphersLocalData[id].lastLaunched = new Date().getTime(); + } else { + ciphersLocalData[id] = { + lastUsedDate: new Date().getTime() + }; + } + + _context19.next = 7; + return this.storageService.save(Keys.localData, ciphersLocalData); + + case 7: + if (!(this.decryptedCipherCache == null)) { + _context19.next = 9; + break; + } + + return _context19.abrupt("return"); + + case 9: + i = 0; + + case 10: + if (!(i < this.decryptedCipherCache.length)) { + _context19.next = 18; + break; + } + + cached = this.decryptedCipherCache[i]; + + if (!(cached.id === id)) { + _context19.next = 15; + break; + } + + cached.localData = ciphersLocalData[id]; + return _context19.abrupt("break", 18); + + case 15: + i++; + _context19.next = 10; break; - } - cached.localData = ciphersLocalData[id]; - return _context19.abrupt("break", 18); - case 15: - i++; - _context19.next = 10; - break; - case 18: - case "end": - return _context19.stop(); + + case 18: + case "end": + return _context19.stop(); + } } }, _callee19, this); })); @@ -349354,30 +352242,38 @@ var CipherService = /*#__PURE__*/function () { }, { key: "saveNeverDomain", value: function saveNeverDomain(domain) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee20() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee20() { var domains; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee20$(_context20) { - while (1) switch (_context20.prev = _context20.next) { - case 0: - if (!(domain == null)) { - _context20.next = 2; - break; - } - return _context20.abrupt("return"); - case 2: - _context20.next = 4; - return this.storageService.get(Keys.neverDomains); - case 4: - domains = _context20.sent; - if (!domains) { - domains = {}; - } - domains[domain] = null; - _context20.next = 9; - return this.storageService.save(Keys.neverDomains, domains); - case 9: - case "end": - return _context20.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee20$(_context20) { + while (1) { + switch (_context20.prev = _context20.next) { + case 0: + if (!(domain == null)) { + _context20.next = 2; + break; + } + + return _context20.abrupt("return"); + + case 2: + _context20.next = 4; + return this.storageService.get(Keys.neverDomains); + + case 4: + domains = _context20.sent; + + if (!domains) { + domains = {}; + } + + domains[domain] = null; + _context20.next = 9; + return this.storageService.save(Keys.neverDomains, domains); + + case 9: + case "end": + return _context20.stop(); + } } }, _callee20, this); })); @@ -349385,53 +352281,67 @@ var CipherService = /*#__PURE__*/function () { }, { key: "saveWithServer", value: function saveWithServer(cipher) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee21() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee21() { var response, request, _request, _request2, userId, data; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee21$(_context21) { - while (1) switch (_context21.prev = _context21.next) { - case 0: - if (!(cipher.id == null)) { - _context21.next = 15; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee21$(_context21) { + while (1) { + switch (_context21.prev = _context21.next) { + case 0: + if (!(cipher.id == null)) { + _context21.next = 15; + break; + } + + if (!(cipher.collectionIds != null)) { + _context21.next = 8; + break; + } + + request = new _models_request_cipherCreateRequest__WEBPACK_IMPORTED_MODULE_21__["CipherCreateRequest"](cipher); + _context21.next = 5; + return this.apiService.postCipherCreate(request); + + case 5: + response = _context21.sent; + _context21.next = 12; break; - } - if (!(cipher.collectionIds != null)) { - _context21.next = 8; + + case 8: + _request = new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_22__["CipherRequest"](cipher); + _context21.next = 11; + return this.apiService.postCipher(_request); + + case 11: + response = _context21.sent; + + case 12: + cipher.id = response.id; + _context21.next = 19; break; - } - request = new _models_request_cipherCreateRequest__WEBPACK_IMPORTED_MODULE_21__["CipherCreateRequest"](cipher); - _context21.next = 5; - return this.apiService.postCipherCreate(request); - case 5: - response = _context21.sent; - _context21.next = 12; - break; - case 8: - _request = new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_22__["CipherRequest"](cipher); - _context21.next = 11; - return this.apiService.postCipher(_request); - case 11: - response = _context21.sent; - case 12: - cipher.id = response.id; - _context21.next = 19; - break; - case 15: - _request2 = new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_22__["CipherRequest"](cipher); - _context21.next = 18; - return this.apiService.putCipher(cipher.id, _request2); - case 18: - response = _context21.sent; - case 19: - _context21.next = 21; - return this.userService.getUserId(); - case 21: - userId = _context21.sent; - data = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](response, userId, cipher.collectionIds); - _context21.next = 25; - return this.upsert(data); - case 25: - case "end": - return _context21.stop(); + + case 15: + _request2 = new _models_request_cipherRequest__WEBPACK_IMPORTED_MODULE_22__["CipherRequest"](cipher); + _context21.next = 18; + return this.apiService.putCipher(cipher.id, _request2); + + case 18: + response = _context21.sent; + + case 19: + _context21.next = 21; + return this.userService.getUserId(); + + case 21: + userId = _context21.sent; + data = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](response, userId, cipher.collectionIds); + _context21.next = 25; + return this.upsert(data); + + case 25: + case "end": + return _context21.stop(); + } } }, _callee21, this); })); @@ -349439,44 +352349,54 @@ var CipherService = /*#__PURE__*/function () { }, { key: "shareWithServer", value: function shareWithServer(cipher, organizationId, collectionIds) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee22() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee22() { var _this3 = this; + var attachmentPromises, encCipher, request, response, userId, data; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee22$(_context22) { - while (1) switch (_context22.prev = _context22.next) { - case 0: - attachmentPromises = []; - if (cipher.attachments != null) { - cipher.attachments.forEach(function (attachment) { - if (attachment.key == null) { - attachmentPromises.push(_this3.shareAttachmentWithServer(attachment, cipher.id, organizationId)); - } - }); - } - _context22.next = 4; - return Promise.all(attachmentPromises); - case 4: - cipher.organizationId = organizationId; - cipher.collectionIds = collectionIds; - _context22.next = 8; - return this.encrypt(cipher); - case 8: - encCipher = _context22.sent; - request = new _models_request_cipherShareRequest__WEBPACK_IMPORTED_MODULE_23__["CipherShareRequest"](encCipher); - _context22.next = 12; - return this.apiService.putShareCipher(cipher.id, request); - case 12: - response = _context22.sent; - _context22.next = 15; - return this.userService.getUserId(); - case 15: - userId = _context22.sent; - data = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](response, userId, collectionIds); - _context22.next = 19; - return this.upsert(data); - case 19: - case "end": - return _context22.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee22$(_context22) { + while (1) { + switch (_context22.prev = _context22.next) { + case 0: + attachmentPromises = []; + + if (cipher.attachments != null) { + cipher.attachments.forEach(function (attachment) { + if (attachment.key == null) { + attachmentPromises.push(_this3.shareAttachmentWithServer(attachment, cipher.id, organizationId)); + } + }); + } + + _context22.next = 4; + return Promise.all(attachmentPromises); + + case 4: + cipher.organizationId = organizationId; + cipher.collectionIds = collectionIds; + _context22.next = 8; + return this.encrypt(cipher); + + case 8: + encCipher = _context22.sent; + request = new _models_request_cipherShareRequest__WEBPACK_IMPORTED_MODULE_23__["CipherShareRequest"](encCipher); + _context22.next = 12; + return this.apiService.putShareCipher(cipher.id, request); + + case 12: + response = _context22.sent; + _context22.next = 15; + return this.userService.getUserId(); + + case 15: + userId = _context22.sent; + data = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](response, userId, collectionIds); + _context22.next = 19; + return this.upsert(data); + + case 19: + case "end": + return _context22.stop(); + } } }, _callee22, this); })); @@ -349484,16 +352404,21 @@ var CipherService = /*#__PURE__*/function () { }, { key: "shareManyWithServer", value: function shareManyWithServer(ciphers, organizationId, collectionIds) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee23() { - var promises, encCiphers, _iterator, _step, cipher, request, userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee23$(_context23) { - while (1) switch (_context23.prev = _context23.next) { - case 0: - promises = []; - encCiphers = []; - _iterator = _createForOfIteratorHelper(ciphers); - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee23() { + var promises, encCiphers, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, cipher, request, userId; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee23$(_context23) { + while (1) { + switch (_context23.prev = _context23.next) { + case 0: + promises = []; + encCiphers = []; + _iteratorNormalCompletion = true; + _didIteratorError = false; + _iteratorError = undefined; + _context23.prev = 5; + + for (_iterator = ciphers[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { cipher = _step.value; cipher.organizationId = organizationId; cipher.collectionIds = collectionIds; @@ -349501,66 +352426,109 @@ var CipherService = /*#__PURE__*/function () { encCiphers.push(c); })); } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - _context23.next = 6; - return Promise.all(promises); - case 6: - request = new _models_request_cipherBulkShareRequest__WEBPACK_IMPORTED_MODULE_19__["CipherBulkShareRequest"](encCiphers, collectionIds); - _context23.next = 9; - return this.apiService.putShareCiphers(request); - case 9: - _context23.next = 11; - return this.userService.getUserId(); - case 11: - userId = _context23.sent; - _context23.next = 14; - return this.upsert(encCiphers.map(function (c) { - return c.toCipherData(userId); - })); - case 14: - case "end": - return _context23.stop(); + + _context23.next = 13; + break; + + case 9: + _context23.prev = 9; + _context23.t0 = _context23["catch"](5); + _didIteratorError = true; + _iteratorError = _context23.t0; + + case 13: + _context23.prev = 13; + _context23.prev = 14; + + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + + case 16: + _context23.prev = 16; + + if (!_didIteratorError) { + _context23.next = 19; + break; + } + + throw _iteratorError; + + case 19: + return _context23.finish(16); + + case 20: + return _context23.finish(13); + + case 21: + _context23.next = 23; + return Promise.all(promises); + + case 23: + request = new _models_request_cipherBulkShareRequest__WEBPACK_IMPORTED_MODULE_19__["CipherBulkShareRequest"](encCiphers, collectionIds); + _context23.next = 26; + return this.apiService.putShareCiphers(request); + + case 26: + _context23.next = 28; + return this.userService.getUserId(); + + case 28: + userId = _context23.sent; + _context23.next = 31; + return this.upsert(encCiphers.map(function (c) { + return c.toCipherData(userId); + })); + + case 31: + case "end": + return _context23.stop(); + } } - }, _callee23, this); + }, _callee23, this, [[5, 9, 13, 21], [14,, 16, 20]]); })); } }, { key: "saveAttachmentWithServer", value: function saveAttachmentWithServer(cipher, unencryptedFile) { var _this4 = this; + var admin = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; return new Promise(function (resolve, reject) { var reader = new FileReader(); reader.readAsArrayBuffer(unencryptedFile); + reader.onload = function (evt) { - return __awaiter(_this4, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee24() { + return __awaiter(_this4, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee24() { var cData; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee24$(_context24) { - while (1) switch (_context24.prev = _context24.next) { - case 0: - _context24.prev = 0; - _context24.next = 3; - return this.saveAttachmentRawWithServer(cipher, unencryptedFile.name, evt.target.result, admin); - case 3: - cData = _context24.sent; - resolve(cData); - _context24.next = 10; - break; - case 7: - _context24.prev = 7; - _context24.t0 = _context24["catch"](0); - reject(_context24.t0); - case 10: - case "end": - return _context24.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee24$(_context24) { + while (1) { + switch (_context24.prev = _context24.next) { + case 0: + _context24.prev = 0; + _context24.next = 3; + return this.saveAttachmentRawWithServer(cipher, unencryptedFile.name, evt.target.result, admin); + + case 3: + cData = _context24.sent; + resolve(cData); + _context24.next = 10; + break; + + case 7: + _context24.prev = 7; + _context24.t0 = _context24["catch"](0); + reject(_context24.t0); + + case 10: + case "end": + return _context24.stop(); + } } }, _callee24, this, [[0, 7]]); })); }; + reader.onerror = function (evt) { reject('Error reading file.'); }; @@ -349570,93 +352538,117 @@ var CipherService = /*#__PURE__*/function () { key: "saveAttachmentRawWithServer", value: function saveAttachmentRawWithServer(cipher, filename, data) { var admin = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee25() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee25() { var key, encFileName, dataEncKey, encData, fd, blob, response, userId, cData; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee25$(_context25) { - while (1) switch (_context25.prev = _context25.next) { - case 0: - _context25.next = 2; - return this.cryptoService.getOrgKey(cipher.organizationId); - case 2: - key = _context25.sent; - _context25.next = 5; - return this.cryptoService.encrypt(filename, key); - case 5: - encFileName = _context25.sent; - _context25.next = 8; - return this.cryptoService.makeEncKey(key); - case 8: - dataEncKey = _context25.sent; - _context25.next = 11; - return this.cryptoService.encryptToBytes(data, dataEncKey[0]); - case 11: - encData = _context25.sent; - fd = new FormData(); - _context25.prev = 13; - blob = new Blob([encData], { - type: 'application/octet-stream' - }); - fd.append('key', dataEncKey[1].encryptedString); - fd.append('data', blob, encFileName.encryptedString); - _context25.next = 27; - break; - case 19: - _context25.prev = 19; - _context25.t0 = _context25["catch"](13); - if (!(_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isBrowser)) { - _context25.next = 26; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee25$(_context25) { + while (1) { + switch (_context25.prev = _context25.next) { + case 0: + _context25.next = 2; + return this.cryptoService.getOrgKey(cipher.organizationId); + + case 2: + key = _context25.sent; + _context25.next = 5; + return this.cryptoService.encrypt(filename, key); + + case 5: + encFileName = _context25.sent; + _context25.next = 8; + return this.cryptoService.makeEncKey(key); + + case 8: + dataEncKey = _context25.sent; + _context25.next = 11; + return this.cryptoService.encryptToBytes(data, dataEncKey[0]); + + case 11: + encData = _context25.sent; + fd = new FormData(); + _context25.prev = 13; + blob = new Blob([encData], { + type: 'application/octet-stream' + }); + fd.append('key', dataEncKey[1].encryptedString); + fd.append('data', blob, encFileName.encryptedString); + _context25.next = 27; break; - } - fd.append('key', dataEncKey[1].encryptedString); - fd.append('data', Buffer.from(encData), { - filepath: encFileName.encryptedString, - contentType: 'application/octet-stream' - }); - _context25.next = 27; - break; - case 26: - throw _context25.t0; - case 27: - _context25.prev = 27; - if (!admin) { - _context25.next = 34; + + case 19: + _context25.prev = 19; + _context25.t0 = _context25["catch"](13); + + if (!(_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isBrowser)) { + _context25.next = 26; + break; + } + + fd.append('key', dataEncKey[1].encryptedString); + fd.append('data', Buffer.from(encData), { + filepath: encFileName.encryptedString, + contentType: 'application/octet-stream' + }); + _context25.next = 27; break; - } - _context25.next = 31; - return this.apiService.postCipherAttachmentAdmin(cipher.id, fd); - case 31: - response = _context25.sent; - _context25.next = 37; - break; - case 34: - _context25.next = 36; - return this.apiService.postCipherAttachment(cipher.id, fd); - case 36: - response = _context25.sent; - case 37: - _context25.next = 42; - break; - case 39: - _context25.prev = 39; - _context25.t1 = _context25["catch"](27); - throw new Error(_context25.t1.getSingleMessage()); - case 42: - _context25.next = 44; - return this.userService.getUserId(); - case 44: - userId = _context25.sent; - cData = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](response, userId, cipher.collectionIds); - if (admin) { - _context25.next = 49; + + case 26: + throw _context25.t0; + + case 27: + _context25.prev = 27; + + if (!admin) { + _context25.next = 34; + break; + } + + _context25.next = 31; + return this.apiService.postCipherAttachmentAdmin(cipher.id, fd); + + case 31: + response = _context25.sent; + _context25.next = 37; break; - } - _context25.next = 49; - return this.upsert(cData); - case 49: - return _context25.abrupt("return", new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](cData)); - case 50: - case "end": - return _context25.stop(); + + case 34: + _context25.next = 36; + return this.apiService.postCipherAttachment(cipher.id, fd); + + case 36: + response = _context25.sent; + + case 37: + _context25.next = 42; + break; + + case 39: + _context25.prev = 39; + _context25.t1 = _context25["catch"](27); + throw new Error(_context25.t1.getSingleMessage()); + + case 42: + _context25.next = 44; + return this.userService.getUserId(); + + case 44: + userId = _context25.sent; + cData = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"](response, userId, cipher.collectionIds); + + if (admin) { + _context25.next = 49; + break; + } + + _context25.next = 49; + return this.upsert(cData); + + case 49: + return _context25.abrupt("return", new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_9__["Cipher"](cData)); + + case 50: + case "end": + return _context25.stop(); + } } }, _callee25, this, [[13, 19], [27, 39]]); })); @@ -349664,25 +352656,30 @@ var CipherService = /*#__PURE__*/function () { }, { key: "saveCollectionsWithServer", value: function saveCollectionsWithServer(cipher) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee26() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee26() { var request, userId, data; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee26$(_context26) { - while (1) switch (_context26.prev = _context26.next) { - case 0: - request = new _models_request_cipherCollectionsRequest__WEBPACK_IMPORTED_MODULE_20__["CipherCollectionsRequest"](cipher.collectionIds); - _context26.next = 3; - return this.apiService.putCipherCollections(cipher.id, request); - case 3: - _context26.next = 5; - return this.userService.getUserId(); - case 5: - userId = _context26.sent; - data = cipher.toCipherData(userId); - _context26.next = 9; - return this.upsert(data); - case 9: - case "end": - return _context26.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee26$(_context26) { + while (1) { + switch (_context26.prev = _context26.next) { + case 0: + request = new _models_request_cipherCollectionsRequest__WEBPACK_IMPORTED_MODULE_20__["CipherCollectionsRequest"](cipher.collectionIds); + _context26.next = 3; + return this.apiService.putCipherCollections(cipher.id, request); + + case 3: + _context26.next = 5; + return this.userService.getUserId(); + + case 5: + userId = _context26.sent; + data = cipher.toCipherData(userId); + _context26.next = 9; + return this.upsert(data); + + case 9: + case "end": + return _context26.stop(); + } } }, _callee26, this); })); @@ -349690,37 +352687,46 @@ var CipherService = /*#__PURE__*/function () { }, { key: "upsert", value: function upsert(cipher) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee27() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee27() { var userId, ciphers, c; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee27$(_context27) { - while (1) switch (_context27.prev = _context27.next) { - case 0: - _context27.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context27.sent; - _context27.next = 5; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 5: - ciphers = _context27.sent; - if (ciphers == null) { - ciphers = {}; - } - if (cipher instanceof _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"]) { - c = cipher; - ciphers[c.id] = c; - } else { - cipher.forEach(function (c) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee27$(_context27) { + while (1) { + switch (_context27.prev = _context27.next) { + case 0: + _context27.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context27.sent; + _context27.next = 5; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 5: + ciphers = _context27.sent; + + if (ciphers == null) { + ciphers = {}; + } + + if (cipher instanceof _models_data_cipherData__WEBPACK_IMPORTED_MODULE_6__["CipherData"]) { + c = cipher; ciphers[c.id] = c; - }); - } - _context27.next = 10; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 10: - this.decryptedCipherCache = null; - case 11: - case "end": - return _context27.stop(); + } else { + cipher.forEach(function (c) { + ciphers[c.id] = c; + }); + } + + _context27.next = 10; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 10: + this.decryptedCipherCache = null; + + case 11: + case "end": + return _context27.stop(); + } } }, _callee27, this); })); @@ -349728,22 +352734,27 @@ var CipherService = /*#__PURE__*/function () { }, { key: "replace", value: function replace(ciphers) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee28() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee28() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee28$(_context28) { - while (1) switch (_context28.prev = _context28.next) { - case 0: - _context28.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context28.sent; - _context28.next = 5; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 5: - this.decryptedCipherCache = null; - case 6: - case "end": - return _context28.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee28$(_context28) { + while (1) { + switch (_context28.prev = _context28.next) { + case 0: + _context28.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context28.sent; + _context28.next = 5; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 5: + this.decryptedCipherCache = null; + + case 6: + case "end": + return _context28.stop(); + } } }, _callee28, this); })); @@ -349751,17 +352762,21 @@ var CipherService = /*#__PURE__*/function () { }, { key: "clear", value: function clear(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee29() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee29$(_context29) { - while (1) switch (_context29.prev = _context29.next) { - case 0: - _context29.next = 2; - return this.storageService.remove(Keys.ciphersPrefix + userId); - case 2: - this.clearCache(); - case 3: - case "end": - return _context29.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee29() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee29$(_context29) { + while (1) { + switch (_context29.prev = _context29.next) { + case 0: + _context29.next = 2; + return this.storageService.remove(Keys.ciphersPrefix + userId); + + case 2: + this.clearCache(); + + case 3: + case "end": + return _context29.stop(); + } } }, _callee29, this); })); @@ -349769,37 +352784,46 @@ var CipherService = /*#__PURE__*/function () { }, { key: "moveManyWithServer", value: function moveManyWithServer(ids, folderId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee30() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee30() { var userId, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee30$(_context30) { - while (1) switch (_context30.prev = _context30.next) { - case 0: - _context30.next = 2; - return this.apiService.putMoveCiphers(new _models_request_cipherBulkMoveRequest__WEBPACK_IMPORTED_MODULE_17__["CipherBulkMoveRequest"](ids, folderId)); - case 2: - _context30.next = 4; - return this.userService.getUserId(); - case 4: - userId = _context30.sent; - _context30.next = 7; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 7: - ciphers = _context30.sent; - if (ciphers == null) { - ciphers = {}; - } - ids.forEach(function (id) { - if (ciphers.hasOwnProperty(id)) { - ciphers[id].folderId = folderId; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee30$(_context30) { + while (1) { + switch (_context30.prev = _context30.next) { + case 0: + _context30.next = 2; + return this.apiService.putMoveCiphers(new _models_request_cipherBulkMoveRequest__WEBPACK_IMPORTED_MODULE_17__["CipherBulkMoveRequest"](ids, folderId)); + + case 2: + _context30.next = 4; + return this.userService.getUserId(); + + case 4: + userId = _context30.sent; + _context30.next = 7; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 7: + ciphers = _context30.sent; + + if (ciphers == null) { + ciphers = {}; } - }); - _context30.next = 12; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 12: - this.decryptedCipherCache = null; - case 13: - case "end": - return _context30.stop(); + + ids.forEach(function (id) { + if (ciphers.hasOwnProperty(id)) { + ciphers[id].folderId = folderId; + } + }); + _context30.next = 12; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 12: + this.decryptedCipherCache = null; + + case 13: + case "end": + return _context30.stop(); + } } }, _callee30, this); })); @@ -349807,50 +352831,64 @@ var CipherService = /*#__PURE__*/function () { }, { key: "delete", value: function _delete(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee31() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee31() { var userId, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee31$(_context31) { - while (1) switch (_context31.prev = _context31.next) { - case 0: - _context31.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context31.sent; - _context31.next = 5; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 5: - ciphers = _context31.sent; - if (!(ciphers == null)) { - _context31.next = 8; - break; - } - return _context31.abrupt("return"); - case 8: - if (!(typeof id === 'string')) { - _context31.next = 14; - break; - } - if (!(ciphers[id] == null)) { - _context31.next = 11; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee31$(_context31) { + while (1) { + switch (_context31.prev = _context31.next) { + case 0: + _context31.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context31.sent; + _context31.next = 5; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 5: + ciphers = _context31.sent; + + if (!(ciphers == null)) { + _context31.next = 8; + break; + } + + return _context31.abrupt("return"); + + case 8: + if (!(typeof id === 'string')) { + _context31.next = 14; + break; + } + + if (!(ciphers[id] == null)) { + _context31.next = 11; + break; + } + + return _context31.abrupt("return"); + + case 11: + delete ciphers[id]; + _context31.next = 15; break; - } - return _context31.abrupt("return"); - case 11: - delete ciphers[id]; - _context31.next = 15; - break; - case 14: - id.forEach(function (i) { - delete ciphers[i]; - }); - case 15: - _context31.next = 17; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 17: - this.decryptedCipherCache = null; - case 18: - case "end": - return _context31.stop(); + + case 14: + id.forEach(function (i) { + delete ciphers[i]; + }); + + case 15: + _context31.next = 17; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 17: + this.decryptedCipherCache = null; + + case 18: + case "end": + return _context31.stop(); + } } }, _callee31, this); })); @@ -349858,18 +352896,22 @@ var CipherService = /*#__PURE__*/function () { }, { key: "deleteWithServer", value: function deleteWithServer(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee32() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee32$(_context32) { - while (1) switch (_context32.prev = _context32.next) { - case 0: - _context32.next = 2; - return this.apiService.deleteCipher(id); - case 2: - _context32.next = 4; - return this.delete(id); - case 4: - case "end": - return _context32.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee32() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee32$(_context32) { + while (1) { + switch (_context32.prev = _context32.next) { + case 0: + _context32.next = 2; + return this.apiService.deleteCipher(id); + + case 2: + _context32.next = 4; + return this.delete(id); + + case 4: + case "end": + return _context32.stop(); + } } }, _callee32, this); })); @@ -349877,18 +352919,22 @@ var CipherService = /*#__PURE__*/function () { }, { key: "deleteManyWithServer", value: function deleteManyWithServer(ids) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee33() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee33$(_context33) { - while (1) switch (_context33.prev = _context33.next) { - case 0: - _context33.next = 2; - return this.apiService.deleteManyCiphers(new _models_request_cipherBulkDeleteRequest__WEBPACK_IMPORTED_MODULE_16__["CipherBulkDeleteRequest"](ids)); - case 2: - _context33.next = 4; - return this.delete(ids); - case 4: - case "end": - return _context33.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee33() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee33$(_context33) { + while (1) { + switch (_context33.prev = _context33.next) { + case 0: + _context33.next = 2; + return this.apiService.deleteManyCiphers(new _models_request_cipherBulkDeleteRequest__WEBPACK_IMPORTED_MODULE_16__["CipherBulkDeleteRequest"](ids)); + + case 2: + _context33.next = 4; + return this.delete(ids); + + case 4: + case "end": + return _context33.stop(); + } } }, _callee33, this); })); @@ -349896,37 +352942,47 @@ var CipherService = /*#__PURE__*/function () { }, { key: "deleteAttachment", value: function deleteAttachment(id, attachmentId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee34() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee34() { var userId, ciphers, i; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee34$(_context34) { - while (1) switch (_context34.prev = _context34.next) { - case 0: - _context34.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context34.sent; - _context34.next = 5; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 5: - ciphers = _context34.sent; - if (!(ciphers == null || !ciphers.hasOwnProperty(id) || ciphers[id].attachments == null)) { - _context34.next = 8; - break; - } - return _context34.abrupt("return"); - case 8: - for (i = 0; i < ciphers[id].attachments.length; i++) { - if (ciphers[id].attachments[i].id === attachmentId) { - ciphers[id].attachments.splice(i, 1); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee34$(_context34) { + while (1) { + switch (_context34.prev = _context34.next) { + case 0: + _context34.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context34.sent; + _context34.next = 5; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 5: + ciphers = _context34.sent; + + if (!(ciphers == null || !ciphers.hasOwnProperty(id) || ciphers[id].attachments == null)) { + _context34.next = 8; + break; } - } - _context34.next = 11; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 11: - this.decryptedCipherCache = null; - case 12: - case "end": - return _context34.stop(); + + return _context34.abrupt("return"); + + case 8: + for (i = 0; i < ciphers[id].attachments.length; i++) { + if (ciphers[id].attachments[i].id === attachmentId) { + ciphers[id].attachments.splice(i, 1); + } + } + + _context34.next = 11; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 11: + this.decryptedCipherCache = null; + + case 12: + case "end": + return _context34.stop(); + } } }, _callee34, this); })); @@ -349934,26 +352990,32 @@ var CipherService = /*#__PURE__*/function () { }, { key: "deleteAttachmentWithServer", value: function deleteAttachmentWithServer(id, attachmentId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee35() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee35$(_context35) { - while (1) switch (_context35.prev = _context35.next) { - case 0: - _context35.prev = 0; - _context35.next = 3; - return this.apiService.deleteCipherAttachment(id, attachmentId); - case 3: - _context35.next = 8; - break; - case 5: - _context35.prev = 5; - _context35.t0 = _context35["catch"](0); - return _context35.abrupt("return", Promise.reject(_context35.t0.getSingleMessage())); - case 8: - _context35.next = 10; - return this.deleteAttachment(id, attachmentId); - case 10: - case "end": - return _context35.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee35() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee35$(_context35) { + while (1) { + switch (_context35.prev = _context35.next) { + case 0: + _context35.prev = 0; + _context35.next = 3; + return this.apiService.deleteCipherAttachment(id, attachmentId); + + case 3: + _context35.next = 8; + break; + + case 5: + _context35.prev = 5; + _context35.t0 = _context35["catch"](0); + return _context35.abrupt("return", Promise.reject(_context35.t0.getSingleMessage())); + + case 8: + _context35.next = 10; + return this.deleteAttachment(id, attachmentId); + + case 10: + case "end": + return _context35.stop(); + } } }, _callee35, this, [[0, 5]]); })); @@ -349964,98 +353026,126 @@ var CipherService = /*#__PURE__*/function () { var aLastUsed = a.localData && a.localData.lastUsedDate ? a.localData.lastUsedDate : null; var bLastUsed = b.localData && b.localData.lastUsedDate ? b.localData.lastUsedDate : null; var bothNotNull = aLastUsed != null && bLastUsed != null; + if (bothNotNull && aLastUsed < bLastUsed) { return 1; } + if (aLastUsed != null && bLastUsed == null) { return -1; } + if (bothNotNull && aLastUsed > bLastUsed) { return -1; } + if (bLastUsed != null && aLastUsed == null) { return 1; } + return 0; } }, { key: "sortCiphersByLastUsedThenName", value: function sortCiphersByLastUsedThenName(a, b) { var result = this.sortCiphersByLastUsed(a, b); + if (result !== 0) { return result; } + return this.getLocaleSortingFunction()(a, b); } }, { key: "getLocaleSortingFunction", value: function getLocaleSortingFunction() { var _this5 = this; + return function (a, b) { var aName = a.name; var bName = b.name; + if (aName == null && bName != null) { return -1; } + if (aName != null && bName == null) { return 1; } + if (aName == null && bName == null) { return 0; } + var result = _this5.i18nService.collator ? _this5.i18nService.collator.compare(aName, bName) : aName.localeCompare(bName); + if (result !== 0 || a.type !== _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login || b.type !== _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login) { return result; } + if (a.login.username != null) { aName += a.login.username; } + if (b.login.username != null) { bName += b.login.username; } + return _this5.i18nService.collator ? _this5.i18nService.collator.compare(aName, bName) : aName.localeCompare(bName); }; } }, { key: "softDelete", value: function softDelete(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee36() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee36() { var userId, ciphers, setDeletedDate; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee36$(_context36) { - while (1) switch (_context36.prev = _context36.next) { - case 0: - _context36.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context36.sent; - _context36.next = 5; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 5: - ciphers = _context36.sent; - if (!(ciphers == null)) { - _context36.next = 8; - break; - } - return _context36.abrupt("return"); - case 8: - setDeletedDate = function setDeletedDate(cipherId) { - if (ciphers[cipherId] == null) { - return; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee36$(_context36) { + while (1) { + switch (_context36.prev = _context36.next) { + case 0: + _context36.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context36.sent; + _context36.next = 5; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 5: + ciphers = _context36.sent; + + if (!(ciphers == null)) { + _context36.next = 8; + break; } - ciphers[cipherId].deletedDate = new Date().toISOString(); - }; - if (typeof id === 'string') { - setDeletedDate(id); - } else { - id.forEach(setDeletedDate); - } - _context36.next = 12; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 12: - this.decryptedCipherCache = null; - case 13: - case "end": - return _context36.stop(); + + return _context36.abrupt("return"); + + case 8: + setDeletedDate = function setDeletedDate(cipherId) { + if (ciphers[cipherId] == null) { + return; + } + + ciphers[cipherId].deletedDate = new Date().toISOString(); + }; + + if (typeof id === 'string') { + setDeletedDate(id); + } else { + id.forEach(setDeletedDate); + } + + _context36.next = 12; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 12: + this.decryptedCipherCache = null; + + case 13: + case "end": + return _context36.stop(); + } } }, _callee36, this); })); @@ -350063,18 +353153,22 @@ var CipherService = /*#__PURE__*/function () { }, { key: "softDeleteWithServer", value: function softDeleteWithServer(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee37() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee37$(_context37) { - while (1) switch (_context37.prev = _context37.next) { - case 0: - _context37.next = 2; - return this.apiService.putDeleteCipher(id); - case 2: - _context37.next = 4; - return this.softDelete(id); - case 4: - case "end": - return _context37.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee37() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee37$(_context37) { + while (1) { + switch (_context37.prev = _context37.next) { + case 0: + _context37.next = 2; + return this.apiService.putDeleteCipher(id); + + case 2: + _context37.next = 4; + return this.softDelete(id); + + case 4: + case "end": + return _context37.stop(); + } } }, _callee37, this); })); @@ -350082,18 +353176,22 @@ var CipherService = /*#__PURE__*/function () { }, { key: "softDeleteManyWithServer", value: function softDeleteManyWithServer(ids) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee38() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee38$(_context38) { - while (1) switch (_context38.prev = _context38.next) { - case 0: - _context38.next = 2; - return this.apiService.putDeleteManyCiphers(new _models_request_cipherBulkDeleteRequest__WEBPACK_IMPORTED_MODULE_16__["CipherBulkDeleteRequest"](ids)); - case 2: - _context38.next = 4; - return this.softDelete(ids); - case 4: - case "end": - return _context38.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee38() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee38$(_context38) { + while (1) { + switch (_context38.prev = _context38.next) { + case 0: + _context38.next = 2; + return this.apiService.putDeleteManyCiphers(new _models_request_cipherBulkDeleteRequest__WEBPACK_IMPORTED_MODULE_16__["CipherBulkDeleteRequest"](ids)); + + case 2: + _context38.next = 4; + return this.softDelete(ids); + + case 4: + case "end": + return _context38.stop(); + } } }, _callee38, this); })); @@ -350101,43 +353199,55 @@ var CipherService = /*#__PURE__*/function () { }, { key: "restore", value: function restore(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee39() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee39() { var userId, ciphers, clearDeletedDate; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee39$(_context39) { - while (1) switch (_context39.prev = _context39.next) { - case 0: - _context39.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context39.sent; - _context39.next = 5; - return this.storageService.get(Keys.ciphersPrefix + userId); - case 5: - ciphers = _context39.sent; - if (!(ciphers == null)) { - _context39.next = 8; - break; - } - return _context39.abrupt("return"); - case 8: - clearDeletedDate = function clearDeletedDate(cipherId) { - if (ciphers[cipherId] == null) { - return; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee39$(_context39) { + while (1) { + switch (_context39.prev = _context39.next) { + case 0: + _context39.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context39.sent; + _context39.next = 5; + return this.storageService.get(Keys.ciphersPrefix + userId); + + case 5: + ciphers = _context39.sent; + + if (!(ciphers == null)) { + _context39.next = 8; + break; } - ciphers[cipherId].deletedDate = null; - }; - if (typeof id === 'string') { - clearDeletedDate(id); - } else { - id.forEach(clearDeletedDate); - } - _context39.next = 12; - return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); - case 12: - this.decryptedCipherCache = null; - case 13: - case "end": - return _context39.stop(); + + return _context39.abrupt("return"); + + case 8: + clearDeletedDate = function clearDeletedDate(cipherId) { + if (ciphers[cipherId] == null) { + return; + } + + ciphers[cipherId].deletedDate = null; + }; + + if (typeof id === 'string') { + clearDeletedDate(id); + } else { + id.forEach(clearDeletedDate); + } + + _context39.next = 12; + return this.storageService.save(Keys.ciphersPrefix + userId, ciphers); + + case 12: + this.decryptedCipherCache = null; + + case 13: + case "end": + return _context39.stop(); + } } }, _callee39, this); })); @@ -350145,18 +353255,22 @@ var CipherService = /*#__PURE__*/function () { }, { key: "restoreWithServer", value: function restoreWithServer(id) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee40() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee40$(_context40) { - while (1) switch (_context40.prev = _context40.next) { - case 0: - _context40.next = 2; - return this.apiService.putRestoreCipher(id); - case 2: - _context40.next = 4; - return this.restore(id); - case 4: - case "end": - return _context40.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee40() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee40$(_context40) { + while (1) { + switch (_context40.prev = _context40.next) { + case 0: + _context40.next = 2; + return this.apiService.putRestoreCipher(id); + + case 2: + _context40.next = 4; + return this.restore(id); + + case 4: + case "end": + return _context40.stop(); + } } }, _callee40, this); })); @@ -350164,106 +353278,130 @@ var CipherService = /*#__PURE__*/function () { }, { key: "restoreManyWithServer", value: function restoreManyWithServer(ids) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee41() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee41$(_context41) { - while (1) switch (_context41.prev = _context41.next) { - case 0: - _context41.next = 2; - return this.apiService.putRestoreManyCiphers(new _models_request_cipherBulkRestoreRequest__WEBPACK_IMPORTED_MODULE_18__["CipherBulkRestoreRequest"](ids)); - case 2: - _context41.next = 4; - return this.restore(ids); - case 4: - case "end": - return _context41.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee41() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee41$(_context41) { + while (1) { + switch (_context41.prev = _context41.next) { + case 0: + _context41.next = 2; + return this.apiService.putRestoreManyCiphers(new _models_request_cipherBulkRestoreRequest__WEBPACK_IMPORTED_MODULE_18__["CipherBulkRestoreRequest"](ids)); + + case 2: + _context41.next = 4; + return this.restore(ids); + + case 4: + case "end": + return _context41.stop(); + } } }, _callee41, this); })); - } - // Helpers + } // Helpers + }, { key: "shareAttachmentWithServer", value: function shareAttachmentWithServer(attachmentView, cipherId, organizationId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee42() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee42() { var attachmentResponse, buf, decBuf, key, encFileName, dataEncKey, encData, fd, blob; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee42$(_context42) { - while (1) switch (_context42.prev = _context42.next) { - case 0: - _context42.next = 2; - return this.apiService.nativeFetch(new Request(attachmentView.url, { - cache: 'no-store' - })); - case 2: - attachmentResponse = _context42.sent; - if (!(attachmentResponse.status !== 200)) { - _context42.next = 5; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee42$(_context42) { + while (1) { + switch (_context42.prev = _context42.next) { + case 0: + _context42.next = 2; + return this.apiService.nativeFetch(new Request(attachmentView.url, { + cache: 'no-store' + })); + + case 2: + attachmentResponse = _context42.sent; + + if (!(attachmentResponse.status !== 200)) { + _context42.next = 5; + break; + } + + throw Error('Failed to download attachment: ' + attachmentResponse.status.toString()); + + case 5: + _context42.next = 7; + return attachmentResponse.arrayBuffer(); + + case 7: + buf = _context42.sent; + _context42.next = 10; + return this.cryptoService.decryptFromBytes(buf, null); + + case 10: + decBuf = _context42.sent; + _context42.next = 13; + return this.cryptoService.getOrgKey(organizationId); + + case 13: + key = _context42.sent; + _context42.next = 16; + return this.cryptoService.encrypt(attachmentView.fileName, key); + + case 16: + encFileName = _context42.sent; + _context42.next = 19; + return this.cryptoService.makeEncKey(key); + + case 19: + dataEncKey = _context42.sent; + _context42.next = 22; + return this.cryptoService.encryptToBytes(decBuf, dataEncKey[0]); + + case 22: + encData = _context42.sent; + fd = new FormData(); + _context42.prev = 24; + blob = new Blob([encData], { + type: 'application/octet-stream' + }); + fd.append('key', dataEncKey[1].encryptedString); + fd.append('data', blob, encFileName.encryptedString); + _context42.next = 38; break; - } - throw Error('Failed to download attachment: ' + attachmentResponse.status.toString()); - case 5: - _context42.next = 7; - return attachmentResponse.arrayBuffer(); - case 7: - buf = _context42.sent; - _context42.next = 10; - return this.cryptoService.decryptFromBytes(buf, null); - case 10: - decBuf = _context42.sent; - _context42.next = 13; - return this.cryptoService.getOrgKey(organizationId); - case 13: - key = _context42.sent; - _context42.next = 16; - return this.cryptoService.encrypt(attachmentView.fileName, key); - case 16: - encFileName = _context42.sent; - _context42.next = 19; - return this.cryptoService.makeEncKey(key); - case 19: - dataEncKey = _context42.sent; - _context42.next = 22; - return this.cryptoService.encryptToBytes(decBuf, dataEncKey[0]); - case 22: - encData = _context42.sent; - fd = new FormData(); - _context42.prev = 24; - blob = new Blob([encData], { - type: 'application/octet-stream' - }); - fd.append('key', dataEncKey[1].encryptedString); - fd.append('data', blob, encFileName.encryptedString); - _context42.next = 38; - break; - case 30: - _context42.prev = 30; - _context42.t0 = _context42["catch"](24); - if (!(_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isBrowser)) { - _context42.next = 37; + + case 30: + _context42.prev = 30; + _context42.t0 = _context42["catch"](24); + + if (!(_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_28__["Utils"].isBrowser)) { + _context42.next = 37; + break; + } + + fd.append('key', dataEncKey[1].encryptedString); + fd.append('data', Buffer.from(encData), { + filepath: encFileName.encryptedString, + contentType: 'application/octet-stream' + }); + _context42.next = 38; break; - } - fd.append('key', dataEncKey[1].encryptedString); - fd.append('data', Buffer.from(encData), { - filepath: encFileName.encryptedString, - contentType: 'application/octet-stream' - }); - _context42.next = 38; - break; - case 37: - throw _context42.t0; - case 38: - _context42.prev = 38; - _context42.next = 41; - return this.apiService.postShareCipherAttachment(cipherId, attachmentView.id, fd, organizationId); - case 41: - _context42.next = 46; - break; - case 43: - _context42.prev = 43; - _context42.t1 = _context42["catch"](38); - throw new Error(_context42.t1.getSingleMessage()); - case 46: - case "end": - return _context42.stop(); + + case 37: + throw _context42.t0; + + case 38: + _context42.prev = 38; + _context42.next = 41; + return this.apiService.postShareCipherAttachment(cipherId, attachmentView.id, fd, organizationId); + + case 41: + _context42.next = 46; + break; + + case 43: + _context42.prev = 43; + _context42.t1 = _context42["catch"](38); + throw new Error(_context42.t1.getSingleMessage()); + + case 46: + case "end": + return _context42.stop(); + } } }, _callee42, this, [[24, 30], [38, 43]]); })); @@ -350271,47 +353409,59 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptObjProperty", value: function encryptObjProperty(model, obj, map, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee43() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee43() { var promises, self, prop; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee43$(_context43) { - while (1) switch (_context43.prev = _context43.next) { - case 0: - promises = []; - self = this; - _context43.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.keys(map); - case 3: - if ((_context43.t1 = _context43.t0()).done) { - _context43.next = 10; - break; - } - prop = _context43.t1.value; - if (map.hasOwnProperty(prop)) { - _context43.next = 7; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee43$(_context43) { + while (1) { + switch (_context43.prev = _context43.next) { + case 0: + promises = []; + self = this; + _context43.t0 = _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.keys(map); + + case 3: + if ((_context43.t1 = _context43.t0()).done) { + _context43.next = 10; + break; + } + + prop = _context43.t1.value; + + if (map.hasOwnProperty(prop)) { + _context43.next = 7; + break; + } + + return _context43.abrupt("continue", 3); + + case 7: + // tslint:disable-next-line + (function (theProp, theObj) { + var p = Promise.resolve().then(function () { + var modelProp = model[map[theProp] || theProp]; + + if (modelProp && modelProp !== '') { + return self.cryptoService.encrypt(modelProp, key); + } + + return null; + }).then(function (val) { + theObj[theProp] = val; + }); + promises.push(p); + })(prop, obj); + + _context43.next = 3; break; - } - return _context43.abrupt("continue", 3); - case 7: - // tslint:disable-next-line - (function (theProp, theObj) { - var p = Promise.resolve().then(function () { - var modelProp = model[map[theProp] || theProp]; - if (modelProp && modelProp !== '') { - return self.cryptoService.encrypt(modelProp, key); - } - return null; - }).then(function (val) { - theObj[theProp] = val; - }); - promises.push(p); - })(prop, obj); - _context43.next = 3; - break; - case 10: - _context43.next = 12; - return Promise.all(promises); - case 12: - case "end": - return _context43.stop(); + + case 10: + _context43.next = 12; + return Promise.all(promises); + + case 12: + case "end": + return _context43.stop(); + } } }, _callee43, this); })); @@ -350319,96 +353469,113 @@ var CipherService = /*#__PURE__*/function () { }, { key: "encryptCipherData", value: function encryptCipherData(cipher, model, key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee44() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee44() { var i, loginUri; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee44$(_context44) { - while (1) switch (_context44.prev = _context44.next) { - case 0: - _context44.t0 = cipher.type; - _context44.next = _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login ? 3 : _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].SecureNote ? 20 : _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Card ? 23 : _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Identity ? 27 : 31; - break; - case 3: - cipher.login = new _models_domain_login__WEBPACK_IMPORTED_MODULE_12__["Login"](); - cipher.login.passwordRevisionDate = model.login.passwordRevisionDate; - _context44.next = 7; - return this.encryptObjProperty(model.login, cipher.login, { - username: null, - password: null, - totp: null - }, key); - case 7: - if (!(model.login.uris != null)) { - _context44.next = 19; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee44$(_context44) { + while (1) { + switch (_context44.prev = _context44.next) { + case 0: + _context44.t0 = cipher.type; + _context44.next = _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Login ? 3 : _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].SecureNote ? 20 : _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Card ? 23 : _context44.t0 === _enums_cipherType__WEBPACK_IMPORTED_MODULE_3__["CipherType"].Identity ? 27 : 31; break; - } - cipher.login.uris = []; - i = 0; - case 10: - if (!(i < model.login.uris.length)) { - _context44.next = 19; + + case 3: + cipher.login = new _models_domain_login__WEBPACK_IMPORTED_MODULE_12__["Login"](); + cipher.login.passwordRevisionDate = model.login.passwordRevisionDate; + _context44.next = 7; + return this.encryptObjProperty(model.login, cipher.login, { + username: null, + password: null, + totp: null + }, key); + + case 7: + if (!(model.login.uris != null)) { + _context44.next = 19; + break; + } + + cipher.login.uris = []; + i = 0; + + case 10: + if (!(i < model.login.uris.length)) { + _context44.next = 19; + break; + } + + loginUri = new _models_domain_loginUri__WEBPACK_IMPORTED_MODULE_13__["LoginUri"](); + loginUri.match = model.login.uris[i].match; + _context44.next = 15; + return this.encryptObjProperty(model.login.uris[i], loginUri, { + uri: null + }, key); + + case 15: + cipher.login.uris.push(loginUri); + + case 16: + i++; + _context44.next = 10; break; - } - loginUri = new _models_domain_loginUri__WEBPACK_IMPORTED_MODULE_13__["LoginUri"](); - loginUri.match = model.login.uris[i].match; - _context44.next = 15; - return this.encryptObjProperty(model.login.uris[i], loginUri, { - uri: null - }, key); - case 15: - cipher.login.uris.push(loginUri); - case 16: - i++; - _context44.next = 10; - break; - case 19: - return _context44.abrupt("return"); - case 20: - cipher.secureNote = new _models_domain_secureNote__WEBPACK_IMPORTED_MODULE_15__["SecureNote"](); - cipher.secureNote.type = model.secureNote.type; - return _context44.abrupt("return"); - case 23: - cipher.card = new _models_domain_card__WEBPACK_IMPORTED_MODULE_8__["Card"](); - _context44.next = 26; - return this.encryptObjProperty(model.card, cipher.card, { - cardholderName: null, - brand: null, - number: null, - expMonth: null, - expYear: null, - code: null - }, key); - case 26: - return _context44.abrupt("return"); - case 27: - cipher.identity = new _models_domain_identity__WEBPACK_IMPORTED_MODULE_11__["Identity"](); - _context44.next = 30; - return this.encryptObjProperty(model.identity, cipher.identity, { - title: null, - firstName: null, - middleName: null, - lastName: null, - address1: null, - address2: null, - address3: null, - city: null, - state: null, - postalCode: null, - country: null, - company: null, - email: null, - phone: null, - ssn: null, - username: null, - passportNumber: null, - licenseNumber: null - }, key); - case 30: - return _context44.abrupt("return"); - case 31: - throw new Error('Unknown cipher type.'); - case 32: - case "end": - return _context44.stop(); + + case 19: + return _context44.abrupt("return"); + + case 20: + cipher.secureNote = new _models_domain_secureNote__WEBPACK_IMPORTED_MODULE_15__["SecureNote"](); + cipher.secureNote.type = model.secureNote.type; + return _context44.abrupt("return"); + + case 23: + cipher.card = new _models_domain_card__WEBPACK_IMPORTED_MODULE_8__["Card"](); + _context44.next = 26; + return this.encryptObjProperty(model.card, cipher.card, { + cardholderName: null, + brand: null, + number: null, + expMonth: null, + expYear: null, + code: null + }, key); + + case 26: + return _context44.abrupt("return"); + + case 27: + cipher.identity = new _models_domain_identity__WEBPACK_IMPORTED_MODULE_11__["Identity"](); + _context44.next = 30; + return this.encryptObjProperty(model.identity, cipher.identity, { + title: null, + firstName: null, + middleName: null, + lastName: null, + address1: null, + address2: null, + address3: null, + city: null, + state: null, + postalCode: null, + country: null, + company: null, + email: null, + phone: null, + ssn: null, + username: null, + passportNumber: null, + licenseNumber: null + }, key); + + case 30: + return _context44.abrupt("return"); + + case 31: + throw new Error('Unknown cipher type.'); + + case 32: + case "end": + return _context44.stop(); + } } }, _callee44, this); })); @@ -350416,50 +353583,82 @@ var CipherService = /*#__PURE__*/function () { }, { key: "getCipherForUrl", value: function getCipherForUrl(url, lastUsed, lastLaunched) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee45() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee45() { var _ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee45$(_context45) { - while (1) switch (_context45.prev = _context45.next) { - case 0: - if (this.sortedCiphersCache.isCached(url)) { - _context45.next = 7; - break; - } - _context45.next = 3; - return this.getAllDecryptedForUrl(url); - case 3: - _ciphers = _context45.sent; - if (_ciphers) { - _context45.next = 6; - break; - } - return _context45.abrupt("return", null); - case 6: - this.sortedCiphersCache.addCiphers(url, _ciphers); - case 7: - if (!lastLaunched) { - _context45.next = 11; - break; - } - return _context45.abrupt("return", this.sortedCiphersCache.getLastLaunched(url)); - case 11: - if (!lastUsed) { - _context45.next = 15; - break; - } - return _context45.abrupt("return", this.sortedCiphersCache.getLastUsed(url)); - case 15: - return _context45.abrupt("return", this.sortedCiphersCache.getNext(url)); - case 16: - case "end": - return _context45.stop(); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee45$(_context45) { + while (1) { + switch (_context45.prev = _context45.next) { + case 0: + if (this.sortedCiphersCache.isCached(url)) { + _context45.next = 7; + break; + } + + _context45.next = 3; + return this.getAllDecryptedForUrl(url); + + case 3: + _ciphers = _context45.sent; + + if (_ciphers) { + _context45.next = 6; + break; + } + + return _context45.abrupt("return", null); + + case 6: + this.sortedCiphersCache.addCiphers(url, _ciphers); + + case 7: + if (!lastLaunched) { + _context45.next = 11; + break; + } + + return _context45.abrupt("return", this.sortedCiphersCache.getLastLaunched(url)); + + case 11: + if (!lastUsed) { + _context45.next = 15; + break; + } + + return _context45.abrupt("return", this.sortedCiphersCache.getLastUsed(url)); + + case 15: + return _context45.abrupt("return", this.sortedCiphersCache.getNext(url)); + + case 16: + case "end": + return _context45.stop(); + } } }, _callee45, this); })); } + }, { + key: "decryptedCipherCache", + get: function get() { + return this._decryptedCipherCache; + }, + set: function set(value) { + this._decryptedCipherCache = value; + + if (this.searchService != null) { + if (value == null) { + this.searchService().clearIndex(); + } else { + this.searchService().indexCiphers(); + } + } + } }]); + return CipherService; }(); + __decorate([Object(_misc_sequentialize__WEBPACK_IMPORTED_MODULE_27__["sequentialize"])(function () { return 'getAllDecrypted'; }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], CipherService.prototype, "getAllDecrypted", null); @@ -351520,32 +354719,29 @@ return sprite$1; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorYubiKeyResponse", function() { return TwoFactorYubiKeyResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var TwoFactorYubiKeyResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorYubiKeyResponse, _BaseResponse); - var _super = _createSuper(TwoFactorYubiKeyResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorYubiKeyResponse, _BaseResponse); + function TwoFactorYubiKeyResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorYubiKeyResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorYubiKeyResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorYubiKeyResponse).call(this, response)); _this.enabled = _this.getResponseProperty('Enabled'); _this.key1 = _this.getResponseProperty('Key1'); _this.key2 = _this.getResponseProperty('Key2'); @@ -351555,8 +354751,9 @@ var TwoFactorYubiKeyResponse = /*#__PURE__*/function (_BaseResponse) { _this.nfc = _this.getResponseProperty('Nfc'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorYubiKeyResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorYubiKeyResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -353161,8 +356358,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ivGQ"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var cozy_ui_transpiled_react_TextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("UuKj"); -/* harmony import */ var cozy_ui_transpiled_react_TextField__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_TextField__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var cozy_ui_transpiled_react_MuiCozyTheme_TextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("PM49"); +/* harmony import */ var cozy_ui_transpiled_react_MuiCozyTheme_TextField__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_MuiCozyTheme_TextField__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _material_ui_core_InputAdornment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("qsPT"); /* harmony import */ var cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("nUfk"); /* harmony import */ var cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_6__); @@ -353172,12 +356369,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var cozy_ui_transpiled_react_Icons_Eye__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Icons_Eye__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var cozy_ui_transpiled_react_Icons_EyeClosed__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("fYln"); /* harmony import */ var cozy_ui_transpiled_react_Icons_EyeClosed__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Icons_EyeClosed__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("7u78"); -/* harmony import */ var cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var cozy_ui_transpiled_react_MuiCozyTheme_Buttons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("7lvu"); +/* harmony import */ var cozy_ui_transpiled_react_MuiCozyTheme_Buttons__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_MuiCozyTheme_Buttons__WEBPACK_IMPORTED_MODULE_10__); + -var _excluded = ["hidden"]; @@ -353188,34 +356385,39 @@ var _excluded = ["hidden"]; var EyeAdornment = function EyeAdornment(props) { var hidden = props.hidden, - rest = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(props, _excluded); + rest = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(props, ["hidden"]); + var _useI18n = Object(cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_6__["useI18n"])(), - t = _useI18n.t; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_material_ui_core_InputAdornment__WEBPACK_IMPORTED_MODULE_5__["default"], { + t = _useI18n.t; + + return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_material_ui_core_InputAdornment__WEBPACK_IMPORTED_MODULE_5__["default"], { position: "end" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_10___default.a, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({ + }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_MuiCozyTheme_Buttons__WEBPACK_IMPORTED_MODULE_10___default.a, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({ className: "u-ph-half u-mh-0 u-miw-auto", color: "secondary", label: hidden ? t('unlock.show') : t('unlock.hide') - }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_7___default.a, { + }, rest), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_7___default.a, { icon: hidden ? cozy_ui_transpiled_react_Icons_Eye__WEBPACK_IMPORTED_MODULE_8___default.a : cozy_ui_transpiled_react_Icons_EyeClosed__WEBPACK_IMPORTED_MODULE_9___default.a }))); }; + var passwordInputProps = { 'data-testid': 'password', autoFocus: true }; + var PasswordField = function PasswordField(props) { var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(true), - _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2), - hidden = _useState2[0], - setHidden = _useState2[1]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_TextField__WEBPACK_IMPORTED_MODULE_4___default.a, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, { + _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2), + hidden = _useState2[0], + setHidden = _useState2[1]; + + return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_MuiCozyTheme_TextField__WEBPACK_IMPORTED_MODULE_4___default.a, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, { variant: "outlined", type: hidden ? 'password' : 'text', InputProps: { inputProps: passwordInputProps, - endAdornment: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(EyeAdornment, { + endAdornment: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(EyeAdornment, { onClick: function onClick() { return setHidden(!hidden); }, @@ -353224,6 +356426,7 @@ var PasswordField = function PasswordField(props) { } })); }; + /* harmony default export */ __webpack_exports__["default"] = (PasswordField); /***/ }), @@ -353287,12 +356490,13 @@ var Folder = /*#__PURE__*/function () { function Folder() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Folder); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Folder, [{ key: "build", - value: // Use build method instead of ctor so that we can control order of JSON stringify for pretty print - function build(o) { + value: function build(o) { var _a; + if (o instanceof _view_folderView__WEBPACK_IMPORTED_MODULE_2__["FolderView"]) { this.name = o.name; } else { @@ -353314,6 +356518,7 @@ var Folder = /*#__PURE__*/function () { return view; } }]); + return Folder; }(); @@ -353377,18 +356582,16 @@ module.exports = charsStartIndex; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportCiphersRequest", function() { return ImportCiphersRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var ImportCiphersRequest = function ImportCiphersRequest() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ImportCiphersRequest); -var ImportCiphersRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function ImportCiphersRequest() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ImportCiphersRequest); this.ciphers = []; this.folders = []; this.folderRelationships = []; -}); +}; /***/ }), @@ -355035,21 +358238,19 @@ __webpack_require__.r(__webpack_exports__); var BaseImporter = /*#__PURE__*/function () { function BaseImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BaseImporter); + this.organization = false; this.newLineRegex = /(?:\r\n|\r|\n)/; - this.passwordFieldNames = ['password', 'pass word', 'passphrase', 'pass phrase', 'pass', 'code', 'code word', 'codeword', 'secret', 'secret word', 'personpwd', 'key', 'keyword', 'key word', 'keyphrase', 'key phrase', 'form_pw', 'wppassword', 'pin', 'pwd', 'pw', 'pword', 'passwd', 'p', 'serial', 'serial#', 'license key', 'reg #', - // Non-English names + this.passwordFieldNames = ['password', 'pass word', 'passphrase', 'pass phrase', 'pass', 'code', 'code word', 'codeword', 'secret', 'secret word', 'personpwd', 'key', 'keyword', 'key word', 'keyphrase', 'key phrase', 'form_pw', 'wppassword', 'pin', 'pwd', 'pw', 'pword', 'passwd', 'p', 'serial', 'serial#', 'license key', 'reg #', // Non-English names 'passwort']; - this.usernameFieldNames = ['user', 'name', 'user name', 'username', 'login name', 'email', 'e-mail', 'id', 'userid', 'user id', 'login', 'form_loginname', 'wpname', 'mail', 'loginid', 'login id', 'log', 'personlogin', 'first name', 'last name', 'card#', 'account #', 'member', 'member #', - // Non-English names + this.usernameFieldNames = ['user', 'name', 'user name', 'username', 'login name', 'email', 'e-mail', 'id', 'userid', 'user id', 'login', 'form_loginname', 'wpname', 'mail', 'loginid', 'login id', 'log', 'personlogin', 'first name', 'last name', 'card#', 'account #', 'member', 'member #', // Non-English names 'nom', 'benutzername']; - this.notesFieldNames = ['note', 'notes', 'comment', 'comments', 'memo', 'description', 'free form', 'freeform', 'free text', 'freetext', 'free', - // Non-English names + this.notesFieldNames = ['note', 'notes', 'comment', 'comments', 'memo', 'description', 'free form', 'freeform', 'free text', 'freetext', 'free', // Non-English names 'kommentar']; - this.uriFieldNames = ['url', 'hyper link', 'hyperlink', 'link', 'host', 'hostname', 'host name', 'server', 'address', 'hyper ref', 'href', 'web', 'website', 'web site', 'site', 'web-site', 'uri', - // Non-English names + this.uriFieldNames = ['url', 'hyper link', 'hyperlink', 'link', 'host', 'hostname', 'host name', 'server', 'address', 'hyper ref', 'href', 'web', 'website', 'web site', 'site', 'web-site', 'uri', // Non-English names 'ort', 'adresse']; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BaseImporter, [{ key: "parseXml", value: function parseXml(data) { @@ -355066,6 +358267,7 @@ var BaseImporter = /*#__PURE__*/function () { encoding: 'UTF-8', skipEmptyLines: false }); + if (result.errors != null && result.errors.length > 0) { result.errors.forEach(function (e) { if (e.row != null) { @@ -355074,6 +358276,7 @@ var BaseImporter = /*#__PURE__*/function () { } }); } + return result.data && result.data.length > 0 ? result.data : null; } }, { @@ -355082,41 +358285,52 @@ var BaseImporter = /*#__PURE__*/function () { if (this.isNullOrWhitespace(rowData)) { return null; } + var parsedRow = this.parseCsv(rowData, false); + if (parsedRow != null && parsedRow.length > 0 && parsedRow[0].length > 0) { return parsedRow[0]; } + return null; } }, { key: "makeUriArray", value: function makeUriArray(uri) { var _this = this; + if (uri == null) { return null; } + if (typeof uri === 'string') { var loginUri = new _models_view_loginUriView__WEBPACK_IMPORTED_MODULE_5__["LoginUriView"](); loginUri.uri = this.fixUri(uri); + if (this.isNullOrWhitespace(loginUri.uri)) { return null; } + loginUri.match = null; return [loginUri]; } + if (uri.length > 0) { var returnArr = []; uri.forEach(function (u) { var loginUri = new _models_view_loginUriView__WEBPACK_IMPORTED_MODULE_5__["LoginUriView"](); loginUri.uri = _this.fixUri(u); + if (_this.isNullOrWhitespace(loginUri.uri)) { return; } + loginUri.match = null; returnArr.push(loginUri); }); return returnArr.length === 0 ? null : returnArr; } + return null; } }, { @@ -355125,22 +358339,28 @@ var BaseImporter = /*#__PURE__*/function () { if (uri == null) { return null; } + uri = uri.trim(); + if (uri.indexOf('://') === -1 && uri.indexOf('.') >= 0) { uri = 'http://' + uri; } + if (uri.length > 1000) { return uri.substring(0, 1000); } + return uri; } }, { key: "nameFromUrl", value: function nameFromUrl(url) { var hostname = _misc_utils__WEBPACK_IMPORTED_MODULE_6__["Utils"].getHostname(url); + if (this.isNullOrWhitespace(hostname)) { return null; } + return hostname.startsWith('www.') ? hostname.replace('www.', '') : hostname; } }, { @@ -355152,63 +358372,81 @@ var BaseImporter = /*#__PURE__*/function () { key: "getValueOrDefault", value: function getValueOrDefault(str) { var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + if (this.isNullOrWhitespace(str)) { return defaultValue; } + return str; } }, { key: "splitNewLine", value: function splitNewLine(str) { return str.split(this.newLineRegex); - } - // ref https://stackoverflow.com/a/5911300 + } // ref https://stackoverflow.com/a/5911300 + }, { key: "getCardBrand", value: function getCardBrand(cardNum) { if (this.isNullOrWhitespace(cardNum)) { return null; - } - // Visa + } // Visa + + var re = new RegExp('^4'); + if (cardNum.match(re) != null) { return 'Visa'; - } - // Mastercard + } // Mastercard // Updated for Mastercard 2017 BINs expansion + + if (/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(cardNum)) { return 'Mastercard'; - } - // AMEX + } // AMEX + + re = new RegExp('^3[47]'); + if (cardNum.match(re) != null) { return 'Amex'; - } - // Discover + } // Discover + + re = new RegExp('^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)'); + if (cardNum.match(re) != null) { return 'Discover'; - } - // Diners + } // Diners + + re = new RegExp('^36'); + if (cardNum.match(re) != null) { return 'Diners Club'; - } - // Diners - Carte Blanche + } // Diners - Carte Blanche + + re = new RegExp('^30[0-5]'); + if (cardNum.match(re) != null) { return 'Diners Club'; - } - // JCB + } // JCB + + re = new RegExp('^35(2[89]|[3-8][0-9])'); + if (cardNum.match(re) != null) { return 'JCB'; - } - // Visa Electron + } // Visa Electron + + re = new RegExp('^(4026|417500|4508|4844|491(3|7))'); + if (cardNum.match(re) != null) { return 'Visa'; } + return null; } }, { @@ -355216,18 +358454,23 @@ var BaseImporter = /*#__PURE__*/function () { value: function setCardExpiration(cipher, expiration) { if (!this.isNullOrWhitespace(expiration)) { var parts = expiration.split('/'); + if (parts.length === 2) { var month = null; var year = null; + if (parts[0].length === 1 || parts[0].length === 2) { month = parts[0]; + if (month.length === 2 && month[0] === '0') { month = month.substr(1, 1); } } + if (parts[1].length === 2 || parts[1].length === 4) { year = month.length === 2 ? '20' + parts[1] : parts[1]; } + if (month != null && year != null) { cipher.card.expMonth = month; cipher.card.expYear = year; @@ -355235,6 +358478,7 @@ var BaseImporter = /*#__PURE__*/function () { } } } + return false; } }, { @@ -355281,17 +358525,21 @@ var BaseImporter = /*#__PURE__*/function () { if (cipher == null) { return; } + if (cipher.type !== _enums_cipherType__WEBPACK_IMPORTED_MODULE_11__["CipherType"].Login) { cipher.login = null; } + if (this.isNullOrWhitespace(cipher.name)) { cipher.name = '--'; } + if (this.isNullOrWhitespace(cipher.notes)) { cipher.notes = null; } else { cipher.notes = cipher.notes.trim(); } + if (cipher.fields != null && cipher.fields.length === 0) { cipher.fields = null; } @@ -355300,21 +358548,26 @@ var BaseImporter = /*#__PURE__*/function () { key: "processKvp", value: function processKvp(cipher, key, value) { var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _enums_fieldType__WEBPACK_IMPORTED_MODULE_12__["FieldType"].Text; + if (this.isNullOrWhitespace(value)) { return; } + if (this.isNullOrWhitespace(key)) { key = ''; } + if (value.length > 200 || value.trim().search(this.newLineRegex) > -1) { if (cipher.notes == null) { cipher.notes = ''; } + cipher.notes += key + ': ' + this.splitNewLine(value).join('\n') + '\n'; } else { if (cipher.fields == null) { cipher.fields = []; } + var field = new _models_view_fieldView__WEBPACK_IMPORTED_MODULE_7__["FieldView"](); field.type = type; field.name = key; @@ -355328,6 +358581,7 @@ var BaseImporter = /*#__PURE__*/function () { var folderIndex = result.folders.length; var hasFolder = !this.isNullOrWhitespace(folderName); var addFolder = hasFolder; + if (hasFolder) { for (var i = 0; i < result.folders.length; i++) { if (result.folders[i].name === folderName) { @@ -355337,11 +358591,13 @@ var BaseImporter = /*#__PURE__*/function () { } } } + if (addFolder) { var f = new _models_view_folderView__WEBPACK_IMPORTED_MODULE_8__["FolderView"](); f.name = folderName; result.folders.push(f); } + if (hasFolder) { result.folderRelationships.push([result.ciphers.length, folderIndex]); } @@ -355356,6 +358612,7 @@ var BaseImporter = /*#__PURE__*/function () { } } }]); + return BaseImporter; }(); @@ -355487,12 +358744,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -355500,43 +358757,51 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var LogMeOnceCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LogMeOnceCsvImporter, _BaseImporter); - var _super = _createSuper(LogMeOnceCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(LogMeOnceCsvImporter, _BaseImporter); + function LogMeOnceCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LogMeOnceCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(LogMeOnceCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LogMeOnceCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length < 4) { return; } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value[0], '--'); cipher.login.username = _this.getValueOrDefault(value[2]); cipher.login.password = _this.getValueOrDefault(value[3]); cipher.login.uris = _this.makeUriArray(value[1]); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return LogMeOnceCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -356023,17 +359288,15 @@ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](funct "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherBulkDeleteRequest", function() { return CipherBulkDeleteRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CipherBulkDeleteRequest = function CipherBulkDeleteRequest(ids, organizationId) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherBulkDeleteRequest); -var CipherBulkDeleteRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherBulkDeleteRequest(ids, organizationId) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherBulkDeleteRequest); this.ids = ids == null ? [] : ids; this.organizationId = organizationId; -}); +}; /***/ }), @@ -357962,18 +361225,16 @@ SvgIcon.muiName = 'SvgIcon'; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherData", function() { return CipherData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ykCz"); -/* harmony import */ var _attachmentData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("/EpU"); -/* harmony import */ var _cardData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("w/lD"); -/* harmony import */ var _fieldData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Z2DF"); -/* harmony import */ var _identityData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("wVKE"); -/* harmony import */ var _loginData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("xEoU"); -/* harmony import */ var _passwordHistoryData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("QQBa"); -/* harmony import */ var _secureNoteData__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("Ubn6"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ykCz"); +/* harmony import */ var _attachmentData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("/EpU"); +/* harmony import */ var _cardData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("w/lD"); +/* harmony import */ var _fieldData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Z2DF"); +/* harmony import */ var _identityData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wVKE"); +/* harmony import */ var _loginData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("xEoU"); +/* harmony import */ var _passwordHistoryData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("QQBa"); +/* harmony import */ var _secureNoteData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("Ubn6"); @@ -357983,12 +361244,13 @@ __webpack_require__.r(__webpack_exports__); +var CipherData = function CipherData(response, userId, collectionIds) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherData); -var CipherData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CipherData(response, userId, collectionIds) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherData); if (response == null) { return; } + this.id = response.id; this.organizationId = response.organizationId; this.folderId = response.folderId; @@ -358003,38 +361265,46 @@ var CipherData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORT this.notes = response.notes; this.collectionIds = collectionIds != null ? collectionIds : response.collectionIds; this.deletedDate = response.deletedDate; + switch (this.type) { - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Login: - this.login = new _loginData__WEBPACK_IMPORTED_MODULE_7__["LoginData"](response.login); + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].Login: + this.login = new _loginData__WEBPACK_IMPORTED_MODULE_6__["LoginData"](response.login); break; - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].SecureNote: - this.secureNote = new _secureNoteData__WEBPACK_IMPORTED_MODULE_9__["SecureNoteData"](response.secureNote); + + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].SecureNote: + this.secureNote = new _secureNoteData__WEBPACK_IMPORTED_MODULE_8__["SecureNoteData"](response.secureNote); break; - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Card: - this.card = new _cardData__WEBPACK_IMPORTED_MODULE_4__["CardData"](response.card); + + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].Card: + this.card = new _cardData__WEBPACK_IMPORTED_MODULE_3__["CardData"](response.card); break; - case _enums_cipherType__WEBPACK_IMPORTED_MODULE_2__["CipherType"].Identity: - this.identity = new _identityData__WEBPACK_IMPORTED_MODULE_6__["IdentityData"](response.identity); + + case _enums_cipherType__WEBPACK_IMPORTED_MODULE_1__["CipherType"].Identity: + this.identity = new _identityData__WEBPACK_IMPORTED_MODULE_5__["IdentityData"](response.identity); break; + default: break; } + if (response.fields != null) { this.fields = response.fields.map(function (f) { - return new _fieldData__WEBPACK_IMPORTED_MODULE_5__["FieldData"](f); + return new _fieldData__WEBPACK_IMPORTED_MODULE_4__["FieldData"](f); }); } + if (response.attachments != null) { this.attachments = response.attachments.map(function (a) { - return new _attachmentData__WEBPACK_IMPORTED_MODULE_3__["AttachmentData"](a); + return new _attachmentData__WEBPACK_IMPORTED_MODULE_2__["AttachmentData"](a); }); } + if (response.passwordHistory != null) { this.passwordHistory = response.passwordHistory.map(function (ph) { - return new _passwordHistoryData__WEBPACK_IMPORTED_MODULE_8__["PasswordHistoryData"](ph); + return new _passwordHistoryData__WEBPACK_IMPORTED_MODULE_7__["PasswordHistoryData"](ph); }); } -}); +}; /***/ }), @@ -359231,32 +362501,29 @@ $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IdentityTokenResponse", function() { return IdentityTokenResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var IdentityTokenResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(IdentityTokenResponse, _BaseResponse); - var _super = _createSuper(IdentityTokenResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(IdentityTokenResponse, _BaseResponse); + function IdentityTokenResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, IdentityTokenResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, IdentityTokenResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(IdentityTokenResponse).call(this, response)); _this.accessToken = response.access_token; _this.expiresIn = response.expires_in; _this.refreshToken = response.refresh_token; @@ -359269,8 +362536,9 @@ var IdentityTokenResponse = /*#__PURE__*/function (_BaseResponse) { _this.kdfIterations = _this.getResponseProperty('KdfIterations'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(IdentityTokenResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return IdentityTokenResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -359320,12 +362588,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -359333,63 +362601,83 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordDragonXmlImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordDragonXmlImporter, _BaseImporter); - var _super = _createSuper(PasswordDragonXmlImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordDragonXmlImporter, _BaseImporter); + function PasswordDragonXmlImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordDragonXmlImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordDragonXmlImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordDragonXmlImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var doc = this.parseXml(data); + if (doc == null) { result.success = false; return result; } + var records = doc.querySelectorAll('PasswordManager > record'); Array.from(records).forEach(function (record) { var category = _this.querySelectorDirectChild(record, 'Category'); + var categoryText = category != null && !_this.isNullOrWhitespace(category.textContent) && category.textContent !== 'Unfiled' ? category.textContent : null; + _this.processFolder(result, categoryText); + var accountName = _this.querySelectorDirectChild(record, 'Account-Name'); + var userId = _this.querySelectorDirectChild(record, 'User-Id'); + var password = _this.querySelectorDirectChild(record, 'Password'); + var url = _this.querySelectorDirectChild(record, 'URL'); + var notes = _this.querySelectorDirectChild(record, 'Notes'); + var cipher = _this.initLoginCipher(); + cipher.name = accountName != null ? _this.getValueOrDefault(accountName.textContent, '--') : '--'; cipher.notes = notes != null ? _this.getValueOrDefault(notes.textContent) : ''; cipher.login.username = userId != null ? _this.getValueOrDefault(userId.textContent) : null; cipher.login.password = password != null ? _this.getValueOrDefault(password.textContent) : null; cipher.login.uris = url != null ? _this.makeUriArray(url.textContent) : null; var attributes = []; + for (var i = 1; i <= 10; i++) { attributes.push('Attribute-' + i); } + _this.querySelectorAllDirectChild(record, attributes.join(',')).forEach(function (attr) { if (_this.isNullOrWhitespace(attr.textContent) || attr.textContent === 'null') { return; } + _this.processKvp(cipher, attr.tagName, attr.textContent); }); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return PasswordDragonXmlImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -359401,21 +362689,19 @@ var PasswordDragonXmlImporter = /*#__PURE__*/function (_BaseImporter) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportResult", function() { return ImportResult; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var ImportResult = function ImportResult() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ImportResult); -var ImportResult = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function ImportResult() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ImportResult); this.success = false; this.ciphers = []; this.folders = []; this.folderRelationships = []; this.collections = []; this.collectionRelationships = []; -}); +}; /***/ }), @@ -359556,23 +362842,22 @@ module.exports = setMonth "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendData", function() { return SendData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _enums_sendType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Sy4r"); -/* harmony import */ var _sendFileData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("OaLA"); -/* harmony import */ var _sendTextData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("7sXg"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _enums_sendType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Sy4r"); +/* harmony import */ var _sendFileData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("OaLA"); +/* harmony import */ var _sendTextData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7sXg"); +var SendData = function SendData(response, userId) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendData); -var SendData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function SendData(response, userId) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SendData); if (response == null) { return; } + this.id = response.id; this.accessId = response.accessId; this.userId = userId; @@ -359587,17 +362872,20 @@ var SendData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED this.deletionDate = response.deletionDate; this.password = response.password; this.disabled = response.disable; + switch (this.type) { - case _enums_sendType__WEBPACK_IMPORTED_MODULE_2__["SendType"].Text: - this.text = new _sendTextData__WEBPACK_IMPORTED_MODULE_4__["SendTextData"](response.text); + case _enums_sendType__WEBPACK_IMPORTED_MODULE_1__["SendType"].Text: + this.text = new _sendTextData__WEBPACK_IMPORTED_MODULE_3__["SendTextData"](response.text); break; - case _enums_sendType__WEBPACK_IMPORTED_MODULE_2__["SendType"].File: - this.file = new _sendFileData__WEBPACK_IMPORTED_MODULE_3__["SendFileData"](response.file); + + case _enums_sendType__WEBPACK_IMPORTED_MODULE_1__["SendType"].File: + this.file = new _sendFileData__WEBPACK_IMPORTED_MODULE_2__["SendFileData"](response.file); break; + default: break; } -}); +}; /***/ }), @@ -359643,55 +362931,6 @@ __webpack_require__.r(__webpack_exports__); -/***/ }), - -/***/ "pDQ3": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CryptoService", function() { return CryptoService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("RNXH"); -/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _bitwarden_jslib_services_crypto_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("Yrrk"); - - - - - - -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - -var CryptoService = /*#__PURE__*/function (_CryptoServiceBase) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CryptoService, _CryptoServiceBase); - var _super = _createSuper(CryptoService); - function CryptoService(storageService, secureStorageService, cryptoFunctionService, platformUtilService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CryptoService); - return _super.call(this, storageService, secureStorageService, cryptoFunctionService, platformUtilService); - } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CryptoService, [{ - key: "setOrgKeys", - value: function setOrgKeys(orgs) { - var validOrgs = orgs.filter(function (org) { - return org.key !== ''; - }); - return _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(CryptoService.prototype), "setOrgKeys", this).call(this, validOrgs); - } - }]); - return CryptoService; -}(_bitwarden_jslib_services_crypto_service__WEBPACK_IMPORTED_MODULE_6__["CryptoService"]); - /***/ }), /***/ "pExS": @@ -362431,6 +365670,7 @@ var getOrCreateStore = function getOrCreateStore() { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationUserStatusType", function() { return OrganizationUserStatusType; }); var OrganizationUserStatusType; + (function (OrganizationUserStatusType) { OrganizationUserStatusType[OrganizationUserStatusType["Invited"] = 0] = "Invited"; OrganizationUserStatusType[OrganizationUserStatusType["Accepted"] = 1] = "Accepted"; @@ -365289,12 +368529,12 @@ exports.WebviewService = WebviewService; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SyncService", function() { return SyncService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_data_cipherData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("oejA"); /* harmony import */ var _models_data_collectionData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("AClQ"); /* harmony import */ var _models_data_folderData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("GYgE"); @@ -365304,12 +368544,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -365318,6 +368560,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -365325,9 +368568,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -365337,12 +368582,14 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var Keys = { lastSyncPrefix: 'lastSync_' }; var SyncService = /*#__PURE__*/function () { function SyncService(userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, sendService, logoutCallback) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SyncService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SyncService); + this.userService = userService; this.apiService = apiService; this.settingsService = settingsService; @@ -365357,38 +368604,50 @@ var SyncService = /*#__PURE__*/function () { this.logoutCallback = logoutCallback; this.syncInProgress = false; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SyncService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SyncService, [{ key: "getLastSync", value: function getLastSync() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var userId, lastSync; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context.sent; - if (!(userId == null)) { - _context.next = 5; - break; - } - return _context.abrupt("return", null); - case 5: - _context.next = 7; - return this.storageService.get(Keys.lastSyncPrefix + userId); - case 7: - lastSync = _context.sent; - if (!lastSync) { - _context.next = 10; - break; - } - return _context.abrupt("return", new Date(lastSync)); - case 10: - return _context.abrupt("return", null); - case 11: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context.sent; + + if (!(userId == null)) { + _context.next = 5; + break; + } + + return _context.abrupt("return", null); + + case 5: + _context.next = 7; + return this.storageService.get(Keys.lastSyncPrefix + userId); + + case 7: + lastSync = _context.sent; + + if (!lastSync) { + _context.next = 10; + break; + } + + return _context.abrupt("return", new Date(lastSync)); + + case 10: + return _context.abrupt("return", null); + + case 11: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -365396,26 +368655,33 @@ var SyncService = /*#__PURE__*/function () { }, { key: "setLastSync", value: function setLastSync(date) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context2.sent; - if (!(userId == null)) { - _context2.next = 5; - break; - } - return _context2.abrupt("return"); - case 5: - _context2.next = 7; - return this.storageService.save(Keys.lastSyncPrefix + userId, date.toJSON()); - case 7: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context2.sent; + + if (!(userId == null)) { + _context2.next = 5; + break; + } + + return _context2.abrupt("return"); + + case 5: + _context2.next = 7; + return this.storageService.save(Keys.lastSyncPrefix + userId, date.toJSON()); + + case 7: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -365424,96 +368690,125 @@ var SyncService = /*#__PURE__*/function () { key: "fullSync", value: function fullSync(forceSync) { var allowThrowOnError = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var isAuthenticated, now, needsSync, userId, response; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - this.syncStarted(); - _context3.next = 3; - return this.userService.isAuthenticated(); - case 3: - isAuthenticated = _context3.sent; - if (isAuthenticated) { - _context3.next = 6; - break; - } - return _context3.abrupt("return", this.syncCompleted(false)); - case 6: - now = new Date(); - needsSync = false; - _context3.prev = 8; - _context3.next = 11; - return this.needsSyncing(forceSync); - case 11: - needsSync = _context3.sent; - _context3.next = 18; - break; - case 14: - _context3.prev = 14; - _context3.t0 = _context3["catch"](8); - if (!allowThrowOnError) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + this.syncStarted(); + _context3.next = 3; + return this.userService.isAuthenticated(); + + case 3: + isAuthenticated = _context3.sent; + + if (isAuthenticated) { + _context3.next = 6; + break; + } + + return _context3.abrupt("return", this.syncCompleted(false)); + + case 6: + now = new Date(); + needsSync = false; + _context3.prev = 8; + _context3.next = 11; + return this.needsSyncing(forceSync); + + case 11: + needsSync = _context3.sent; _context3.next = 18; break; - } - throw _context3.t0; - case 18: - if (needsSync) { - _context3.next = 22; - break; - } - _context3.next = 21; - return this.setLastSync(now); - case 21: - return _context3.abrupt("return", this.syncCompleted(false)); - case 22: - _context3.next = 24; - return this.userService.getUserId(); - case 24: - userId = _context3.sent; - _context3.prev = 25; - _context3.next = 28; - return this.apiService.getSync(); - case 28: - response = _context3.sent; - _context3.next = 31; - return this.syncProfile(response.profile); - case 31: - _context3.next = 33; - return this.syncFolders(userId, response.folders); - case 33: - _context3.next = 35; - return this.syncCollections(response.collections); - case 35: - _context3.next = 37; - return this.syncCiphers(userId, response.ciphers); - case 37: - _context3.next = 39; - return this.syncSends(userId, response.sends); - case 39: - _context3.next = 41; - return this.syncSettings(userId, response.domains); - case 41: - _context3.next = 43; - return this.syncPolicies(response.policies); - case 43: - _context3.next = 45; - return this.setLastSync(now); - case 45: - return _context3.abrupt("return", this.syncCompleted(true)); - case 48: - _context3.prev = 48; - _context3.t1 = _context3["catch"](25); - if (!allowThrowOnError) { - _context3.next = 54; - break; - } - throw _context3.t1; - case 54: - return _context3.abrupt("return", this.syncCompleted(false)); - case 55: - case "end": - return _context3.stop(); + + case 14: + _context3.prev = 14; + _context3.t0 = _context3["catch"](8); + + if (!allowThrowOnError) { + _context3.next = 18; + break; + } + + throw _context3.t0; + + case 18: + if (needsSync) { + _context3.next = 22; + break; + } + + _context3.next = 21; + return this.setLastSync(now); + + case 21: + return _context3.abrupt("return", this.syncCompleted(false)); + + case 22: + _context3.next = 24; + return this.userService.getUserId(); + + case 24: + userId = _context3.sent; + _context3.prev = 25; + _context3.next = 28; + return this.apiService.getSync(); + + case 28: + response = _context3.sent; + _context3.next = 31; + return this.syncProfile(response.profile); + + case 31: + _context3.next = 33; + return this.syncFolders(userId, response.folders); + + case 33: + _context3.next = 35; + return this.syncCollections(response.collections); + + case 35: + _context3.next = 37; + return this.syncCiphers(userId, response.ciphers); + + case 37: + _context3.next = 39; + return this.syncSends(userId, response.sends); + + case 39: + _context3.next = 41; + return this.syncSettings(userId, response.domains); + + case 41: + _context3.next = 43; + return this.syncPolicies(response.policies); + + case 43: + _context3.next = 45; + return this.setLastSync(now); + + case 45: + return _context3.abrupt("return", this.syncCompleted(true)); + + case 48: + _context3.prev = 48; + _context3.t1 = _context3["catch"](25); + + if (!allowThrowOnError) { + _context3.next = 54; + break; + } + + throw _context3.t1; + + case 54: + return _context3.abrupt("return", this.syncCompleted(false)); + + case 55: + case "end": + return _context3.stop(); + } } }, _callee3, this, [[8, 14], [25, 48]]); })); @@ -365521,58 +368816,74 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncUpsertFolder", value: function syncUpsertFolder(notification, isEdit) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var localFolder, remoteFolder, userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - this.syncStarted(); - _context4.next = 3; - return this.userService.isAuthenticated(); - case 3: - if (!_context4.sent) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + this.syncStarted(); + _context4.next = 3; + return this.userService.isAuthenticated(); + + case 3: + if (!_context4.sent) { + _context4.next = 24; + break; + } + + _context4.prev = 4; + _context4.next = 7; + return this.folderService.get(notification.id); + + case 7: + localFolder = _context4.sent; + + if (!(!isEdit && localFolder == null || isEdit && localFolder != null && localFolder.revisionDate < notification.revisionDate)) { + _context4.next = 20; + break; + } + + _context4.next = 11; + return this.apiService.getFolder(notification.id); + + case 11: + remoteFolder = _context4.sent; + + if (!(remoteFolder != null)) { + _context4.next = 20; + break; + } + + _context4.next = 15; + return this.userService.getUserId(); + + case 15: + userId = _context4.sent; + _context4.next = 18; + return this.folderService.upsert(new _models_data_folderData__WEBPACK_IMPORTED_MODULE_5__["FolderData"](remoteFolder, userId)); + + case 18: + this.messagingService.send('syncedUpsertedFolder', { + folderId: notification.id + }); + return _context4.abrupt("return", this.syncCompleted(true)); + + case 20: _context4.next = 24; break; - } - _context4.prev = 4; - _context4.next = 7; - return this.folderService.get(notification.id); - case 7: - localFolder = _context4.sent; - if (!(!isEdit && localFolder == null || isEdit && localFolder != null && localFolder.revisionDate < notification.revisionDate)) { - _context4.next = 20; - break; - } - _context4.next = 11; - return this.apiService.getFolder(notification.id); - case 11: - remoteFolder = _context4.sent; - if (!(remoteFolder != null)) { - _context4.next = 20; - break; - } - _context4.next = 15; - return this.userService.getUserId(); - case 15: - userId = _context4.sent; - _context4.next = 18; - return this.folderService.upsert(new _models_data_folderData__WEBPACK_IMPORTED_MODULE_5__["FolderData"](remoteFolder, userId)); - case 18: - this.messagingService.send('syncedUpsertedFolder', { - folderId: notification.id - }); - return _context4.abrupt("return", this.syncCompleted(true)); - case 20: - _context4.next = 24; - break; - case 22: - _context4.prev = 22; - _context4.t0 = _context4["catch"](4); - case 24: - return _context4.abrupt("return", this.syncCompleted(false)); - case 25: - case "end": - return _context4.stop(); + + case 22: + _context4.prev = 22; + _context4.t0 = _context4["catch"](4); + + case 24: + return _context4.abrupt("return", this.syncCompleted(false)); + + case 25: + case "end": + return _context4.stop(); + } } }, _callee4, this, [[4, 22]]); })); @@ -365580,31 +368891,38 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncDeleteFolder", value: function syncDeleteFolder(notification) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - this.syncStarted(); - _context5.next = 3; - return this.userService.isAuthenticated(); - case 3: - if (!_context5.sent) { - _context5.next = 9; - break; - } - _context5.next = 6; - return this.folderService.delete(notification.id); - case 6: - this.messagingService.send('syncedDeletedFolder', { - folderId: notification.id - }); - this.syncCompleted(true); - return _context5.abrupt("return", true); - case 9: - return _context5.abrupt("return", this.syncCompleted(false)); - case 10: - case "end": - return _context5.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + this.syncStarted(); + _context5.next = 3; + return this.userService.isAuthenticated(); + + case 3: + if (!_context5.sent) { + _context5.next = 9; + break; + } + + _context5.next = 6; + return this.folderService.delete(notification.id); + + case 6: + this.messagingService.send('syncedDeletedFolder', { + folderId: notification.id + }); + this.syncCompleted(true); + return _context5.abrupt("return", true); + + case 9: + return _context5.abrupt("return", this.syncCompleted(false)); + + case 10: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -365612,116 +368930,147 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncUpsertCipher", value: function syncUpsertCipher(notification, isEdit) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var shouldUpdate, localCipher, checkCollections, collections, i, remoteCipher, userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - this.syncStarted(); - _context6.next = 3; - return this.userService.isAuthenticated(); - case 3: - if (!_context6.sent) { - _context6.next = 46; - break; - } - _context6.prev = 4; - shouldUpdate = true; - _context6.next = 8; - return this.cipherService.get(notification.id); - case 8: - localCipher = _context6.sent; - if (localCipher != null && localCipher.revisionDate >= notification.revisionDate) { - shouldUpdate = false; - } - checkCollections = false; - if (shouldUpdate) { - if (isEdit) { - shouldUpdate = localCipher != null; - checkCollections = true; - } else { - if (notification.collectionIds == null || notification.organizationId == null) { - shouldUpdate = localCipher == null; - } else { - shouldUpdate = false; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + this.syncStarted(); + _context6.next = 3; + return this.userService.isAuthenticated(); + + case 3: + if (!_context6.sent) { + _context6.next = 46; + break; + } + + _context6.prev = 4; + shouldUpdate = true; + _context6.next = 8; + return this.cipherService.get(notification.id); + + case 8: + localCipher = _context6.sent; + + if (localCipher != null && localCipher.revisionDate >= notification.revisionDate) { + shouldUpdate = false; + } + + checkCollections = false; + + if (shouldUpdate) { + if (isEdit) { + shouldUpdate = localCipher != null; checkCollections = true; + } else { + if (notification.collectionIds == null || notification.organizationId == null) { + shouldUpdate = localCipher == null; + } else { + shouldUpdate = false; + checkCollections = true; + } } } - } - if (!(!shouldUpdate && checkCollections && notification.organizationId != null && notification.collectionIds != null && notification.collectionIds.length > 0)) { - _context6.next = 25; - break; - } - _context6.next = 15; - return this.collectionService.getAll(); - case 15: - collections = _context6.sent; - if (!(collections != null)) { - _context6.next = 25; - break; - } - i = 0; - case 18: - if (!(i < collections.length)) { - _context6.next = 25; - break; - } - if (!(notification.collectionIds.indexOf(collections[i].id) > -1)) { - _context6.next = 22; - break; - } - shouldUpdate = true; - return _context6.abrupt("break", 25); - case 22: - i++; - _context6.next = 18; - break; - case 25: - if (!shouldUpdate) { - _context6.next = 37; - break; - } - _context6.next = 28; - return this.apiService.getCipher(notification.id); - case 28: - remoteCipher = _context6.sent; - if (!(remoteCipher != null)) { - _context6.next = 37; + + if (!(!shouldUpdate && checkCollections && notification.organizationId != null && notification.collectionIds != null && notification.collectionIds.length > 0)) { + _context6.next = 25; + break; + } + + _context6.next = 15; + return this.collectionService.getAll(); + + case 15: + collections = _context6.sent; + + if (!(collections != null)) { + _context6.next = 25; + break; + } + + i = 0; + + case 18: + if (!(i < collections.length)) { + _context6.next = 25; + break; + } + + if (!(notification.collectionIds.indexOf(collections[i].id) > -1)) { + _context6.next = 22; + break; + } + + shouldUpdate = true; + return _context6.abrupt("break", 25); + + case 22: + i++; + _context6.next = 18; break; - } - _context6.next = 32; - return this.userService.getUserId(); - case 32: - userId = _context6.sent; - _context6.next = 35; - return this.cipherService.upsert(new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_3__["CipherData"](remoteCipher, userId)); - case 35: - this.messagingService.send('syncedUpsertedCipher', { - cipherId: notification.id - }); - return _context6.abrupt("return", this.syncCompleted(true)); - case 37: - _context6.next = 46; - break; - case 39: - _context6.prev = 39; - _context6.t0 = _context6["catch"](4); - if (!(_context6.t0 != null && _context6.t0.statusCode === 404 && isEdit)) { + + case 25: + if (!shouldUpdate) { + _context6.next = 37; + break; + } + + _context6.next = 28; + return this.apiService.getCipher(notification.id); + + case 28: + remoteCipher = _context6.sent; + + if (!(remoteCipher != null)) { + _context6.next = 37; + break; + } + + _context6.next = 32; + return this.userService.getUserId(); + + case 32: + userId = _context6.sent; + _context6.next = 35; + return this.cipherService.upsert(new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_3__["CipherData"](remoteCipher, userId)); + + case 35: + this.messagingService.send('syncedUpsertedCipher', { + cipherId: notification.id + }); + return _context6.abrupt("return", this.syncCompleted(true)); + + case 37: _context6.next = 46; break; - } - _context6.next = 44; - return this.cipherService.delete(notification.id); - case 44: - this.messagingService.send('syncedDeletedCipher', { - cipherId: notification.id - }); - return _context6.abrupt("return", this.syncCompleted(true)); - case 46: - return _context6.abrupt("return", this.syncCompleted(false)); - case 47: - case "end": - return _context6.stop(); + + case 39: + _context6.prev = 39; + _context6.t0 = _context6["catch"](4); + + if (!(_context6.t0 != null && _context6.t0.statusCode === 404 && isEdit)) { + _context6.next = 46; + break; + } + + _context6.next = 44; + return this.cipherService.delete(notification.id); + + case 44: + this.messagingService.send('syncedDeletedCipher', { + cipherId: notification.id + }); + return _context6.abrupt("return", this.syncCompleted(true)); + + case 46: + return _context6.abrupt("return", this.syncCompleted(false)); + + case 47: + case "end": + return _context6.stop(); + } } }, _callee6, this, [[4, 39]]); })); @@ -365729,35 +369078,42 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncDeleteCipher", value: function syncDeleteCipher(notification) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - this.syncStarted(); - _context7.next = 3; - return this.userService.isAuthenticated(); - case 3: - if (!_context7.sent) { - _context7.next = 8; - break; - } - _context7.next = 6; - return this.cipherService.delete(notification.id); - case 6: - this.messagingService.send('syncedDeletedCipher', { - cipherId: notification.id - }); - return _context7.abrupt("return", this.syncCompleted(true)); - case 8: - return _context7.abrupt("return", this.syncCompleted(false)); - case 9: - case "end": - return _context7.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + this.syncStarted(); + _context7.next = 3; + return this.userService.isAuthenticated(); + + case 3: + if (!_context7.sent) { + _context7.next = 8; + break; + } + + _context7.next = 6; + return this.cipherService.delete(notification.id); + + case 6: + this.messagingService.send('syncedDeletedCipher', { + cipherId: notification.id + }); + return _context7.abrupt("return", this.syncCompleted(true)); + + case 8: + return _context7.abrupt("return", this.syncCompleted(false)); + + case 9: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); - } - // Helpers + } // Helpers + }, { key: "syncStarted", value: function syncStarted() { @@ -365776,41 +369132,54 @@ var SyncService = /*#__PURE__*/function () { }, { key: "needsSyncing", value: function needsSyncing(forceSync) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var lastSync, response; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - if (!forceSync) { - _context8.next = 2; - break; - } - return _context8.abrupt("return", true); - case 2: - _context8.next = 4; - return this.getLastSync(); - case 4: - lastSync = _context8.sent; - if (!(lastSync == null || lastSync.getTime() === 0)) { - _context8.next = 7; - break; - } - return _context8.abrupt("return", true); - case 7: - _context8.next = 9; - return this.apiService.getAccountRevisionDate(); - case 9: - response = _context8.sent; - if (!(new Date(response) <= lastSync)) { - _context8.next = 12; - break; - } - return _context8.abrupt("return", false); - case 12: - return _context8.abrupt("return", true); - case 13: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + if (!forceSync) { + _context8.next = 2; + break; + } + + return _context8.abrupt("return", true); + + case 2: + _context8.next = 4; + return this.getLastSync(); + + case 4: + lastSync = _context8.sent; + + if (!(lastSync == null || lastSync.getTime() === 0)) { + _context8.next = 7; + break; + } + + return _context8.abrupt("return", true); + + case 7: + _context8.next = 9; + return this.apiService.getAccountRevisionDate(); + + case 9: + response = _context8.sent; + + if (!(new Date(response) <= lastSync)) { + _context8.next = 12; + break; + } + + return _context8.abrupt("return", false); + + case 12: + return _context8.abrupt("return", true); + + case 13: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -365818,51 +369187,65 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncProfile", value: function syncProfile(response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var stamp, organizations; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.userService.getSecurityStamp(); - case 2: - stamp = _context9.sent; - if (!(stamp != null && stamp !== response.securityStamp)) { - _context9.next = 8; - break; - } - if (!(this.logoutCallback != null)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.userService.getSecurityStamp(); + + case 2: + stamp = _context9.sent; + + if (!(stamp != null && stamp !== response.securityStamp)) { + _context9.next = 8; + break; + } + + if (!(this.logoutCallback != null)) { + _context9.next = 7; + break; + } + _context9.next = 7; - break; - } - _context9.next = 7; - return this.logoutCallback(true); - case 7: - throw new Error('Stamp has changed'); - case 8: - _context9.next = 10; - return this.cryptoService.setEncKey(response.key); - case 10: - _context9.next = 12; - return this.cryptoService.setEncPrivateKey(response.privateKey); - case 12: - _context9.next = 14; - return this.cryptoService.setOrgKeys(response.organizations); - case 14: - _context9.next = 16; - return this.userService.setSecurityStamp(response.securityStamp); - case 16: - organizations = {}; - response.organizations.forEach(function (o) { - organizations[o.id] = new _models_data_organizationData__WEBPACK_IMPORTED_MODULE_6__["OrganizationData"](o); - }); - _context9.next = 20; - return this.userService.replaceOrganizations(organizations); - case 20: - return _context9.abrupt("return", _context9.sent); - case 21: - case "end": - return _context9.stop(); + return this.logoutCallback(true); + + case 7: + throw new Error('Stamp has changed'); + + case 8: + _context9.next = 10; + return this.cryptoService.setEncKey(response.key); + + case 10: + _context9.next = 12; + return this.cryptoService.setEncPrivateKey(response.privateKey); + + case 12: + _context9.next = 14; + return this.cryptoService.setOrgKeys(response.organizations); + + case 14: + _context9.next = 16; + return this.userService.setSecurityStamp(response.securityStamp); + + case 16: + organizations = {}; + response.organizations.forEach(function (o) { + organizations[o.id] = new _models_data_organizationData__WEBPACK_IMPORTED_MODULE_6__["OrganizationData"](o); + }); + _context9.next = 20; + return this.userService.replaceOrganizations(organizations); + + case 20: + return _context9.abrupt("return", _context9.sent); + + case 21: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -365870,22 +369253,26 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncFolders", value: function syncFolders(userId, response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var folders; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - folders = {}; - response.forEach(function (f) { - folders[f.id] = new _models_data_folderData__WEBPACK_IMPORTED_MODULE_5__["FolderData"](f, userId); - }); - _context10.next = 4; - return this.folderService.replace(folders); - case 4: - return _context10.abrupt("return", _context10.sent); - case 5: - case "end": - return _context10.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + folders = {}; + response.forEach(function (f) { + folders[f.id] = new _models_data_folderData__WEBPACK_IMPORTED_MODULE_5__["FolderData"](f, userId); + }); + _context10.next = 4; + return this.folderService.replace(folders); + + case 4: + return _context10.abrupt("return", _context10.sent); + + case 5: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -365893,22 +369280,26 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncCollections", value: function syncCollections(response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { var collections; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - collections = {}; - response.forEach(function (c) { - collections[c.id] = new _models_data_collectionData__WEBPACK_IMPORTED_MODULE_4__["CollectionData"](c); - }); - _context11.next = 4; - return this.collectionService.replace(collections); - case 4: - return _context11.abrupt("return", _context11.sent); - case 5: - case "end": - return _context11.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + collections = {}; + response.forEach(function (c) { + collections[c.id] = new _models_data_collectionData__WEBPACK_IMPORTED_MODULE_4__["CollectionData"](c); + }); + _context11.next = 4; + return this.collectionService.replace(collections); + + case 4: + return _context11.abrupt("return", _context11.sent); + + case 5: + case "end": + return _context11.stop(); + } } }, _callee11, this); })); @@ -365916,22 +369307,26 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncCiphers", value: function syncCiphers(userId, response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { var ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - ciphers = {}; - response.forEach(function (c) { - ciphers[c.id] = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_3__["CipherData"](c, userId); - }); - _context12.next = 4; - return this.cipherService.replace(ciphers); - case 4: - return _context12.abrupt("return", _context12.sent); - case 5: - case "end": - return _context12.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + ciphers = {}; + response.forEach(function (c) { + ciphers[c.id] = new _models_data_cipherData__WEBPACK_IMPORTED_MODULE_3__["CipherData"](c, userId); + }); + _context12.next = 4; + return this.cipherService.replace(ciphers); + + case 4: + return _context12.abrupt("return", _context12.sent); + + case 5: + case "end": + return _context12.stop(); + } } }, _callee12, this); })); @@ -365939,22 +369334,26 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncSends", value: function syncSends(userId, response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee13() { var sends; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - sends = {}; - response.forEach(function (s) { - sends[s.id] = new _models_data_sendData__WEBPACK_IMPORTED_MODULE_8__["SendData"](s, userId); - }); - _context13.next = 4; - return this.sendService.replace(sends); - case 4: - return _context13.abrupt("return", _context13.sent); - case 5: - case "end": - return _context13.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + sends = {}; + response.forEach(function (s) { + sends[s.id] = new _models_data_sendData__WEBPACK_IMPORTED_MODULE_8__["SendData"](s, userId); + }); + _context13.next = 4; + return this.sendService.replace(sends); + + case 4: + return _context13.abrupt("return", _context13.sent); + + case 5: + case "end": + return _context13.stop(); + } } }, _callee13, this); })); @@ -365962,26 +369361,32 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncSettings", value: function syncSettings(userId, response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee14() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee14() { var eqDomains; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee14$(_context14) { - while (1) switch (_context14.prev = _context14.next) { - case 0: - eqDomains = []; - if (response != null && response.equivalentDomains != null) { - eqDomains = eqDomains.concat(response.equivalentDomains); - } - if (response != null && response.globalEquivalentDomains != null) { - response.globalEquivalentDomains.forEach(function (global) { - if (global.domains.length > 0) { - eqDomains.push(global.domains); - } - }); - } - return _context14.abrupt("return", this.settingsService.setEquivalentDomains(eqDomains)); - case 4: - case "end": - return _context14.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee14$(_context14) { + while (1) { + switch (_context14.prev = _context14.next) { + case 0: + eqDomains = []; + + if (response != null && response.equivalentDomains != null) { + eqDomains = eqDomains.concat(response.equivalentDomains); + } + + if (response != null && response.globalEquivalentDomains != null) { + response.globalEquivalentDomains.forEach(function (global) { + if (global.domains.length > 0) { + eqDomains.push(global.domains); + } + }); + } + + return _context14.abrupt("return", this.settingsService.setEquivalentDomains(eqDomains)); + + case 4: + case "end": + return _context14.stop(); + } } }, _callee14, this); })); @@ -365989,29 +369394,36 @@ var SyncService = /*#__PURE__*/function () { }, { key: "syncPolicies", value: function syncPolicies(response) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee15() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee15() { var policies; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee15$(_context15) { - while (1) switch (_context15.prev = _context15.next) { - case 0: - policies = {}; - if (response != null) { - response.forEach(function (p) { - policies[p.id] = new _models_data_policyData__WEBPACK_IMPORTED_MODULE_7__["PolicyData"](p); - }); - } - _context15.next = 4; - return this.policyService.replace(policies); - case 4: - return _context15.abrupt("return", _context15.sent); - case 5: - case "end": - return _context15.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee15$(_context15) { + while (1) { + switch (_context15.prev = _context15.next) { + case 0: + policies = {}; + + if (response != null) { + response.forEach(function (p) { + policies[p.id] = new _models_data_policyData__WEBPACK_IMPORTED_MODULE_7__["PolicyData"](p); + }); + } + + _context15.next = 4; + return this.policyService.replace(policies); + + case 4: + return _context15.abrupt("return", _context15.sent); + + case 5: + case "end": + return _context15.stop(); + } } }, _callee15, this); })); } }]); + return SyncService; }(); @@ -367087,12 +370499,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -367100,41 +370512,48 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SaferPassCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SaferPassCsvImporter, _BaseImporter); - var _super = _createSuper(SaferPassCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SaferPassCsvImporter, _BaseImporter); + function SaferPassCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SaferPassCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SaferPassCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SaferPassCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(_this.nameFromUrl(value.url), '--'); cipher.notes = _this.getValueOrDefault(value.notes); cipher.login.username = _this.getValueOrDefault(value.username); cipher.login.password = _this.getValueOrDefault(value.password); cipher.login.uris = _this.makeUriArray(value.url); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return SaferPassCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -371874,16 +375293,14 @@ var assert = function assert(condition, message) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FolderRequest", function() { return FolderRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var FolderRequest = function FolderRequest(folder) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FolderRequest); -var FolderRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function FolderRequest(folder) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FolderRequest); this.name = folder.name ? folder.name.encryptedString : null; -}); +}; /***/ }), @@ -372851,16 +376268,14 @@ module.exports = baseKeys; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreloginRequest", function() { return PreloginRequest; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var PreloginRequest = function PreloginRequest(email) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PreloginRequest); -var PreloginRequest = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function PreloginRequest(email) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PreloginRequest); this.email = email; -}); +}; /***/ }), @@ -375280,23 +378695,25 @@ class Path { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenService", function() { return TokenService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _constants_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Rqrh"); /* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("6xKo"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -375305,6 +378722,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -375312,14 +378730,17 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var Keys = { accessToken: 'accessToken', refreshToken: 'refreshToken', @@ -375327,10 +378748,12 @@ var Keys = { }; var TokenService = /*#__PURE__*/function () { function TokenService(storageService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TokenService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TokenService); + this.storageService = storageService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TokenService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TokenService, [{ key: "setTokens", value: function setTokens(accessToken, refreshToken) { return Promise.all([this.setToken(accessToken), this.setRefreshToken(refreshToken)]); @@ -375338,25 +378761,31 @@ var TokenService = /*#__PURE__*/function () { }, { key: "setToken", value: function setToken(token) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - this.token = token; - this.decodedToken = null; - _context.next = 4; - return this.skipTokenStorage(); - case 4: - if (!_context.sent) { - _context.next = 6; - break; - } - return _context.abrupt("return"); - case 6: - return _context.abrupt("return", this.storageService.save(Keys.accessToken, token)); - case 7: - case "end": - return _context.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + this.token = token; + this.decodedToken = null; + _context.next = 4; + return this.skipTokenStorage(); + + case 4: + if (!_context.sent) { + _context.next = 6; + break; + } + + return _context.abrupt("return"); + + case 6: + return _context.abrupt("return", this.storageService.save(Keys.accessToken, token)); + + case 7: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -375364,24 +378793,30 @@ var TokenService = /*#__PURE__*/function () { }, { key: "getToken", value: function getToken() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - if (!(this.token != null)) { - _context2.next = 2; - break; - } - return _context2.abrupt("return", this.token); - case 2: - _context2.next = 4; - return this.storageService.get(Keys.accessToken); - case 4: - this.token = _context2.sent; - return _context2.abrupt("return", this.token); - case 6: - case "end": - return _context2.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + if (!(this.token != null)) { + _context2.next = 2; + break; + } + + return _context2.abrupt("return", this.token); + + case 2: + _context2.next = 4; + return this.storageService.get(Keys.accessToken); + + case 4: + this.token = _context2.sent; + return _context2.abrupt("return", this.token); + + case 6: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -375389,24 +378824,30 @@ var TokenService = /*#__PURE__*/function () { }, { key: "setRefreshToken", value: function setRefreshToken(refreshToken) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - this.refreshToken = refreshToken; - _context3.next = 3; - return this.skipTokenStorage(); - case 3: - if (!_context3.sent) { - _context3.next = 5; - break; - } - return _context3.abrupt("return"); - case 5: - return _context3.abrupt("return", this.storageService.save(Keys.refreshToken, refreshToken)); - case 6: - case "end": - return _context3.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + this.refreshToken = refreshToken; + _context3.next = 3; + return this.skipTokenStorage(); + + case 3: + if (!_context3.sent) { + _context3.next = 5; + break; + } + + return _context3.abrupt("return"); + + case 5: + return _context3.abrupt("return", this.storageService.save(Keys.refreshToken, refreshToken)); + + case 6: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -375414,24 +378855,30 @@ var TokenService = /*#__PURE__*/function () { }, { key: "getRefreshToken", value: function getRefreshToken() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - if (!(this.refreshToken != null)) { - _context4.next = 2; - break; - } - return _context4.abrupt("return", this.refreshToken); - case 2: - _context4.next = 4; - return this.storageService.get(Keys.refreshToken); - case 4: - this.refreshToken = _context4.sent; - return _context4.abrupt("return", this.refreshToken); - case 6: - case "end": - return _context4.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(this.refreshToken != null)) { + _context4.next = 2; + break; + } + + return _context4.abrupt("return", this.refreshToken); + + case 2: + _context4.next = 4; + return this.storageService.get(Keys.refreshToken); + + case 4: + this.refreshToken = _context4.sent; + return _context4.abrupt("return", this.refreshToken); + + case 6: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -375439,46 +378886,58 @@ var TokenService = /*#__PURE__*/function () { }, { key: "toggleTokens", value: function toggleTokens() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var token, refreshToken, timeout, action; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return this.getToken(); - case 2: - token = _context5.sent; - _context5.next = 5; - return this.getRefreshToken(); - case 5: - refreshToken = _context5.sent; - _context5.next = 8; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey); - case 8: - timeout = _context5.sent; - _context5.next = 11; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey); - case 11: - action = _context5.sent; - if (!((timeout != null || timeout === 0) && action === 'logOut')) { - _context5.next = 18; - break; - } - _context5.next = 15; - return this.clearToken(); - case 15: - this.token = token; - this.refreshToken = refreshToken; - return _context5.abrupt("return"); - case 18: - _context5.next = 20; - return this.setToken(token); - case 20: - _context5.next = 22; - return this.setRefreshToken(refreshToken); - case 22: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return this.getToken(); + + case 2: + token = _context5.sent; + _context5.next = 5; + return this.getRefreshToken(); + + case 5: + refreshToken = _context5.sent; + _context5.next = 8; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey); + + case 8: + timeout = _context5.sent; + _context5.next = 11; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey); + + case 11: + action = _context5.sent; + + if (!((timeout != null || timeout === 0) && action === 'logOut')) { + _context5.next = 18; + break; + } + + _context5.next = 15; + return this.clearToken(); + + case 15: + this.token = token; + this.refreshToken = refreshToken; + return _context5.abrupt("return"); + + case 18: + _context5.next = 20; + return this.setToken(token); + + case 20: + _context5.next = 22; + return this.setRefreshToken(refreshToken); + + case 22: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -375505,26 +378964,32 @@ var TokenService = /*#__PURE__*/function () { this.decodedToken = null; this.refreshToken = null; return Promise.all([this.storageService.remove(Keys.accessToken), this.storageService.remove(Keys.refreshToken)]); - } - // jwthelper methods + } // jwthelper methods // ref https://github.com/auth0/angular-jwt/blob/master/src/angularJwt/services/jwt.js + }, { key: "decodeToken", value: function decodeToken() { if (this.decodedToken) { return this.decodedToken; } + if (this.token == null) { throw new Error('Token not found.'); } + var parts = this.token.split('.'); + if (parts.length !== 3) { throw new Error('JWT must have 3 parts'); } + var decoded = _misc_utils__WEBPACK_IMPORTED_MODULE_4__["Utils"].fromUrlB64ToUtf8(parts[1]); + if (decoded == null) { throw new Error('Cannot decode the token'); } + this.decodedToken = JSON.parse(decoded); return this.decodedToken; } @@ -375532,10 +378997,13 @@ var TokenService = /*#__PURE__*/function () { key: "getTokenExpirationDate", value: function getTokenExpirationDate() { var decoded = this.decodeToken(); + if (typeof decoded.exp === 'undefined') { return null; } + var d = new Date(0); // The 0 here is the key, which sets the date to the epoch + d.setUTCSeconds(decoded.exp); return d; } @@ -375544,9 +379012,11 @@ var TokenService = /*#__PURE__*/function () { value: function tokenSecondsRemaining() { var offsetSeconds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; var d = this.getTokenExpirationDate(); + if (d == null) { return 0; } + var msRemaining = d.valueOf() - (new Date().valueOf() + offsetSeconds * 1000); return Math.round(msRemaining / 1000); } @@ -375561,81 +379031,99 @@ var TokenService = /*#__PURE__*/function () { key: "getUserId", value: function getUserId() { var decoded = this.decodeToken(); + if (typeof decoded.sub === 'undefined') { throw new Error('No user id found'); } + return decoded.sub; } }, { key: "getEmail", value: function getEmail() { var decoded = this.decodeToken(); + if (typeof decoded.email === 'undefined') { throw new Error('No email found'); } + return decoded.email; } }, { key: "getEmailVerified", value: function getEmailVerified() { var decoded = this.decodeToken(); + if (typeof decoded.email_verified === 'undefined') { throw new Error('No email verification found'); } + return decoded.email_verified; } }, { key: "getName", value: function getName() { var decoded = this.decodeToken(); + if (typeof decoded.name === 'undefined') { return null; } + return decoded.name; } }, { key: "getPremium", value: function getPremium() { var decoded = this.decodeToken(); + if (typeof decoded.premium === 'undefined') { return false; } + return decoded.premium; } }, { key: "getIssuer", value: function getIssuer() { var decoded = this.decodeToken(); + if (typeof decoded.iss === 'undefined') { throw new Error('No issuer found'); } + return decoded.iss; } }, { key: "skipTokenStorage", value: function skipTokenStorage() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { var timeout, action; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey); - case 2: - timeout = _context6.sent; - _context6.next = 5; - return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey); - case 5: - action = _context6.sent; - return _context6.abrupt("return", timeout != null && action === 'logOut'); - case 7: - case "end": - return _context6.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutKey); + + case 2: + timeout = _context6.sent; + _context6.next = 5; + return this.storageService.get(_constants_service__WEBPACK_IMPORTED_MODULE_3__["ConstantsService"].vaultTimeoutActionKey); + + case 5: + action = _context6.sent; + return _context6.abrupt("return", timeout != null && action === 'logOut'); + + case 7: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); } }]); + return TokenService; }(); @@ -376061,10 +379549,13 @@ __webpack_require__.r(__webpack_exports__); var Field = /*#__PURE__*/function () { function Field(o) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Field); + var _a, _b; + if (o == null) { return; } + if (o instanceof _view_fieldView__WEBPACK_IMPORTED_MODULE_3__["FieldView"]) { this.name = o.name; this.value = o.value; @@ -376072,8 +379563,10 @@ var Field = /*#__PURE__*/function () { this.name = (_a = o.name) === null || _a === void 0 ? void 0 : _a.encryptedString; this.value = (_b = o.value) === null || _b === void 0 ? void 0 : _b.encryptedString; } + this.type = o.type; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Field, null, [{ key: "template", value: function template() { @@ -376093,6 +379586,7 @@ var Field = /*#__PURE__*/function () { return view; } }]); + return Field; }(); @@ -376252,12 +379746,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _models_view_cardView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a16p"); @@ -376267,36 +379761,40 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var FSecureFskImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(FSecureFskImporter, _BaseImporter); - var _super = _createSuper(FSecureFskImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(FSecureFskImporter, _BaseImporter); + function FSecureFskImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FSecureFskImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(FSecureFskImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FSecureFskImporter, [{ key: "parse", value: function parse(data) { var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = JSON.parse(data); + if (results == null || results.data == null) { result.success = false; return result; } + for (var key in results.data) { if (!results.data.hasOwnProperty(key)) { continue; } + var value = results.data[key]; var cipher = this.initLoginCipher(); cipher.name = this.getValueOrDefault(value.service); cipher.notes = this.getValueOrDefault(value.notes); + if (value.style === 'website') { cipher.login.username = this.getValueOrDefault(value.username); cipher.login.password = this.getValueOrDefault(value.password); @@ -376308,25 +379806,30 @@ var FSecureFskImporter = /*#__PURE__*/function (_BaseImporter) { cipher.card.number = this.getValueOrDefault(value.creditNumber); cipher.card.brand = this.getCardBrand(cipher.card.number); cipher.card.code = this.getValueOrDefault(value.creditCvv); + if (!this.isNullOrWhitespace(value.creditExpiry)) { if (!this.setCardExpiration(cipher, value.creditExpiry)) { this.processKvp(cipher, 'Expiration', value.creditExpiry); } } + if (!this.isNullOrWhitespace(value.password)) { this.processKvp(cipher, 'PIN', value.password); } } else { continue; } + this.convertToNoteIfNeeded(cipher); this.cleanupCipher(cipher); result.ciphers.push(cipher); } + result.success = true; return result; } }]); + return FSecureFskImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -378804,12 +382307,13 @@ var cases = [ "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SettingsService", function() { return SettingsService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); + @@ -378819,6 +382323,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -378827,6 +382332,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -378834,23 +382340,28 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var Keys = { settingsPrefix: 'settings_', equivalentDomains: 'equivalentDomains' }; var SettingsService = /*#__PURE__*/function () { function SettingsService(userService, storageService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SettingsService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SettingsService); + this.userService = userService; this.storageService = storageService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SettingsService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SettingsService, [{ key: "clearCache", value: function clearCache() { this.settingsCache = null; @@ -378863,15 +382374,18 @@ var SettingsService = /*#__PURE__*/function () { }, { key: "setEquivalentDomains", value: function setEquivalentDomains(equivalentDomains) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.setSettingsKey(Keys.equivalentDomains, equivalentDomains); - case 2: - case "end": - return _context.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.setSettingsKey(Keys.equivalentDomains, equivalentDomains); + + case 2: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -378879,44 +382393,54 @@ var SettingsService = /*#__PURE__*/function () { }, { key: "clear", value: function clear(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return this.storageService.remove(Keys.settingsPrefix + userId); - case 2: - this.clearCache(); - case 3: - case "end": - return _context2.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return this.storageService.remove(Keys.settingsPrefix + userId); + + case 2: + this.clearCache(); + + case 3: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); - } - // Helpers + } // Helpers + }, { key: "getSettings", value: function getSettings() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - if (!(this.settingsCache == null)) { - _context3.next = 5; - break; - } - _context3.next = 3; - return this.userService.getUserId(); - case 3: - userId = _context3.sent; - this.settingsCache = this.storageService.get(Keys.settingsPrefix + userId); - case 5: - return _context3.abrupt("return", this.settingsCache); - case 6: - case "end": - return _context3.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + if (!(this.settingsCache == null)) { + _context3.next = 5; + break; + } + + _context3.next = 3; + return this.userService.getUserId(); + + case 3: + userId = _context3.sent; + this.settingsCache = this.storageService.get(Keys.settingsPrefix + userId); + + case 5: + return _context3.abrupt("return", this.settingsCache); + + case 6: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -378924,25 +382448,32 @@ var SettingsService = /*#__PURE__*/function () { }, { key: "getSettingsKey", value: function getSettingsKey(key) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var settings; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return this.getSettings(); - case 2: - settings = _context4.sent; - if (!(settings != null && settings[key])) { - _context4.next = 5; - break; - } - return _context4.abrupt("return", settings[key]); - case 5: - return _context4.abrupt("return", null); - case 6: - case "end": - return _context4.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _context4.next = 2; + return this.getSettings(); + + case 2: + settings = _context4.sent; + + if (!(settings != null && settings[key])) { + _context4.next = 5; + break; + } + + return _context4.abrupt("return", settings[key]); + + case 5: + return _context4.abrupt("return", null); + + case 6: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -378950,35 +382481,44 @@ var SettingsService = /*#__PURE__*/function () { }, { key: "setSettingsKey", value: function setSettingsKey(key, value) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var userId, settings; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context5.sent; - _context5.next = 5; - return this.getSettings(); - case 5: - settings = _context5.sent; - if (!settings) { - settings = {}; - } - settings[key] = value; - _context5.next = 10; - return this.storageService.save(Keys.settingsPrefix + userId, settings); - case 10: - this.settingsCache = settings; - case 11: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context5.sent; + _context5.next = 5; + return this.getSettings(); + + case 5: + settings = _context5.sent; + + if (!settings) { + settings = {}; + } + + settings[key] = value; + _context5.next = 10; + return this.storageService.save(Keys.settingsPrefix + userId, settings); + + case 10: + this.settingsCache = settings; + + case 11: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); } }]); + return SettingsService; }(); @@ -379088,14 +382628,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withVaultUnlockContext", function() { return withVaultUnlockContext; }); /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("LGLP"); /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("J58c"); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("XkwL"); -/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("qAtN"); +/* harmony import */ var _babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("XkwL"); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("ivGQ"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _VaultContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("vUTj"); @@ -379105,16 +382645,13 @@ __webpack_require__.r(__webpack_exports__); -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -var vaultUnlockContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createContext(); +var vaultUnlockContext = react__WEBPACK_IMPORTED_MODULE_5___default.a.createContext(); var useVaultUnlockContext = function useVaultUnlockContext() { return Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(vaultUnlockContext); }; - /** * Provides a way to unlock the vault from the context * @@ -379147,62 +382684,77 @@ var useVaultUnlockContext = function useVaultUnlockContext() { * </VaultProvider> * ``` */ + var VaultUnlockProvider = function VaultUnlockProvider(_ref) { var children = _ref.children, - addCheckShouldUnlock = _ref.addCheckShouldUnlock; + addCheckShouldUnlock = _ref.addCheckShouldUnlock; var vaultClient = Object(_VaultContext__WEBPACK_IMPORTED_MODULE_6__["useVaultClient"])(); + var _useState = Object(react__WEBPACK_IMPORTED_MODULE_5__["useState"])(false), - _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2), - showingUnlockForm = _useState2[0], - setShowingUnlockForm = _useState2[1]; + _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState, 2), + showingUnlockForm = _useState2[0], + setShowingUnlockForm = _useState2[1]; + var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_5__["useState"])(null), - _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2), - unlockFormProps = _useState4[0], - setUnlockFormProps = _useState4[1]; + _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState3, 2), + unlockFormProps = _useState4[0], + setUnlockFormProps = _useState4[1]; + var value = Object(react__WEBPACK_IMPORTED_MODULE_5__["useMemo"])(function () { var showUnlockForm = /*#__PURE__*/function () { - var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.mark(function _callee(unlockFormProps) { + var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(unlockFormProps) { var onUnlock, onDismiss, shouldUnlock; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(!unlockFormProps || !unlockFormProps.onUnlock)) { - _context.next = 2; - break; - } - throw new Error('onUnlock must be passed in showUnlockForm options. showUnlockForm({ onUnlock: () => alert("Vault has been unlocked") })'); - case 2: - onUnlock = function onUnlock() { - setShowingUnlockForm(false); - unlockFormProps.onUnlock && unlockFormProps.onUnlock(); - }; - onDismiss = function onDismiss() { - setShowingUnlockForm(false); - unlockFormProps.onDismiss && unlockFormProps.onDismiss(); - }; - _context.next = 6; - return Object(_defaults__WEBPACK_IMPORTED_MODULE_7__["checkShouldUnlock"])(vaultClient, addCheckShouldUnlock); - case 6: - shouldUnlock = _context.sent; - if (shouldUnlock) { - setUnlockFormProps(_objectSpread(_objectSpread({}, unlockFormProps), {}, { - onUnlock: onUnlock, - onDismiss: onDismiss - })); - setShowingUnlockForm(true); - } else { - onUnlock(); - } - case 8: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(!unlockFormProps || !unlockFormProps.onUnlock)) { + _context.next = 2; + break; + } + + throw new Error('onUnlock must be passed in showUnlockForm options. showUnlockForm({ onUnlock: () => alert("Vault has been unlocked") })'); + + case 2: + onUnlock = function onUnlock() { + setShowingUnlockForm(false); + unlockFormProps.onUnlock && unlockFormProps.onUnlock(); + }; + + onDismiss = function onDismiss() { + setShowingUnlockForm(false); + unlockFormProps.onDismiss && unlockFormProps.onDismiss(); + }; + + _context.next = 6; + return Object(_defaults__WEBPACK_IMPORTED_MODULE_7__["checkShouldUnlock"])(vaultClient, addCheckShouldUnlock); + + case 6: + shouldUnlock = _context.sent; + + if (shouldUnlock) { + setUnlockFormProps(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({}, unlockFormProps, { + onUnlock: onUnlock, + onDismiss: onDismiss + })); + setShowingUnlockForm(true); + } else { + onUnlock(); + } + + case 8: + case "end": + return _context.stop(); + } } }, _callee); })); + return function showUnlockForm(_x) { return _ref2.apply(this, arguments); }; }(); + return { showingUnlockForm: showingUnlockForm, showUnlockForm: showUnlockForm, @@ -379210,15 +382762,16 @@ var VaultUnlockProvider = function VaultUnlockProvider(_ref) { vaultClient: vaultClient }; }, [showingUnlockForm, unlockFormProps, vaultClient, addCheckShouldUnlock]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(vaultUnlockContext.Provider, { + return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(vaultUnlockContext.Provider, { value: value }, children); }; var withVaultUnlockContext = function withVaultUnlockContext(Component) { var Wrapper = function Wrapper(props) { var vaultUnlockContextValue = useVaultUnlockContext(); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, vaultUnlockContextValue)); + return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, vaultUnlockContextValue)); }; + Wrapper.displayName = "withVaultUnlockContext(".concat(Component.displayName || Component.name, ")"); return Wrapper; }; @@ -379264,34 +382817,31 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationUserResponse", function() { return OrganizationUserResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationUserUserDetailsResponse", function() { return OrganizationUserUserDetailsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationUserDetailsResponse", function() { return OrganizationUserDetailsResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("F3ch"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("F3ch"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var OrganizationUserResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationUserResponse, _BaseResponse); - var _super = _createSuper(OrganizationUserResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(OrganizationUserResponse, _BaseResponse); + function OrganizationUserResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, OrganizationUserResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OrganizationUserResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationUserResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.userId = _this.getResponseProperty('UserId'); _this.type = _this.getResponseProperty('Type'); @@ -379299,39 +382849,49 @@ var OrganizationUserResponse = /*#__PURE__*/function (_BaseResponse) { _this.accessAll = _this.getResponseProperty('AccessAll'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(OrganizationUserResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return OrganizationUserResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var OrganizationUserUserDetailsResponse = /*#__PURE__*/function (_OrganizationUserResp) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationUserUserDetailsResponse, _OrganizationUserResp); - var _super2 = _createSuper(OrganizationUserUserDetailsResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(OrganizationUserUserDetailsResponse, _OrganizationUserResp); + function OrganizationUserUserDetailsResponse(response) { var _this2; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, OrganizationUserUserDetailsResponse); - _this2 = _super2.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OrganizationUserUserDetailsResponse); + + _this2 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationUserUserDetailsResponse).call(this, response)); _this2.name = _this2.getResponseProperty('Name'); _this2.email = _this2.getResponseProperty('Email'); _this2.twoFactorEnabled = _this2.getResponseProperty('TwoFactorEnabled'); return _this2; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(OrganizationUserUserDetailsResponse); + + return OrganizationUserUserDetailsResponse; }(OrganizationUserResponse); var OrganizationUserDetailsResponse = /*#__PURE__*/function (_OrganizationUserResp2) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationUserDetailsResponse, _OrganizationUserResp2); - var _super3 = _createSuper(OrganizationUserDetailsResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(OrganizationUserDetailsResponse, _OrganizationUserResp2); + function OrganizationUserDetailsResponse(response) { var _this3; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, OrganizationUserDetailsResponse); - _this3 = _super3.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OrganizationUserDetailsResponse); + + _this3 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(OrganizationUserDetailsResponse).call(this, response)); _this3.collections = []; + var collections = _this3.getResponseProperty('Collections'); + if (collections != null) { _this3.collections = collections.map(function (c) { - return new _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_6__["SelectionReadOnlyResponse"](c); + return new _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_5__["SelectionReadOnlyResponse"](c); }); } + return _this3; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(OrganizationUserDetailsResponse); + + return OrganizationUserDetailsResponse; }(OrganizationUserResponse); /***/ }), @@ -382001,12 +385561,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ykCz"); @@ -382017,38 +385577,46 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var MSecureCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(MSecureCsvImporter, _BaseImporter); - var _super = _createSuper(MSecureCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MSecureCsvImporter, _BaseImporter); + function MSecureCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MSecureCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MSecureCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MSecureCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.length < 3) { return; } + var folderName = _this.getValueOrDefault(value[0], 'Unassigned') !== 'Unassigned' ? value[0] : null; + _this.processFolder(result, folderName); + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value[2], '--'); + if (value[1] === 'Web Logins' || value[1] === 'Login') { cipher.login.uris = _this.makeUriArray(value[4]); cipher.login.username = _this.getValueOrDefault(value[5]); @@ -382058,25 +385626,32 @@ var MSecureCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.type = _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].SecureNote; cipher.secureNote = new _models_view_secureNoteView__WEBPACK_IMPORTED_MODULE_9__["SecureNoteView"](); cipher.secureNote.type = _enums_secureNoteType__WEBPACK_IMPORTED_MODULE_8__["SecureNoteType"].Generic; + for (var i = 3; i < value.length; i++) { if (!_this.isNullOrWhitespace(value[i])) { cipher.notes += value[i] + '\n'; } } } + if (!_this.isNullOrWhitespace(value[1]) && cipher.type !== _enums_cipherType__WEBPACK_IMPORTED_MODULE_7__["CipherType"].Login) { cipher.name = value[1] + ': ' + cipher.name; } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return MSecureCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -386660,38 +390235,36 @@ function exactProp(propTypes) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserKeyResponse", function() { return UserKeyResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } - var UserKeyResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(UserKeyResponse, _BaseResponse); - var _super = _createSuper(UserKeyResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(UserKeyResponse, _BaseResponse); + function UserKeyResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, UserKeyResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, UserKeyResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(UserKeyResponse).call(this, response)); _this.userId = _this.getResponseProperty('UserId'); _this.publicKey = _this.getResponseProperty('PublicKey'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(UserKeyResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return UserKeyResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -387118,12 +390691,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _data_secureNoteData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Ubn6"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("L7vP"); /* harmony import */ var _view_secureNoteView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("6O/2"); @@ -387132,25 +390705,29 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SecureNote = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SecureNote, _Domain); - var _super = _createSuper(SecureNote); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SecureNote, _Domain); + function SecureNote(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SecureNote); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SecureNote).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } + _this.type = obj.type; return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SecureNote, [{ key: "decrypt", value: function decrypt(orgId) { @@ -387164,6 +390741,7 @@ var SecureNote = /*#__PURE__*/function (_Domain) { return n; } }]); + return SecureNote; }(_domainBase__WEBPACK_IMPORTED_MODULE_6__["default"]); @@ -387380,32 +390958,29 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolicyResponse", function() { return PolicyResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PolicyResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolicyResponse, _BaseResponse); - var _super = _createSuper(PolicyResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PolicyResponse, _BaseResponse); + function PolicyResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PolicyResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolicyResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(PolicyResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.organizationId = _this.getResponseProperty('OrganizationId'); _this.type = _this.getResponseProperty('Type'); @@ -387413,8 +390988,9 @@ var PolicyResponse = /*#__PURE__*/function (_BaseResponse) { _this.enabled = _this.getResponseProperty('Enabled'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PolicyResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return PolicyResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -389504,7 +393080,7 @@ var _react = _interopRequireDefault(__webpack_require__("ivGQ")); var _classnames = _interopRequireDefault(__webpack_require__("1ytp")); var _useCozyDialog2 = _interopRequireDefault(__webpack_require__("mhvD")); var _Dialog = _interopRequireWildcard(__webpack_require__("i+n1")); -var _Divider = _interopRequireDefault(__webpack_require__("xr2j")); +var _Divider = _interopRequireDefault(__webpack_require__("Kk0D")); var _dialogPropTypes = _interopRequireDefault(__webpack_require__("OE89")); var _DialogBackButton = _interopRequireDefault(__webpack_require__("KSKb")); var _DialogCloseButton = _interopRequireDefault(__webpack_require__("y7Nh")); @@ -390855,12 +394431,12 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchService", function() { return SearchService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lunr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("qd+Z"); /* harmony import */ var lunr__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lunr__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _enums_cipherType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ykCz"); @@ -390869,12 +394445,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -390883,6 +394461,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -390890,9 +394469,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -390900,14 +394481,17 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var SearchService = /*#__PURE__*/function () { function SearchService(cipherService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SearchService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, SearchService); + this.cipherService = cipherService; this.indexing = false; this.index = null; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SearchService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SearchService, [{ key: "clearIndex", value: function clearIndex() { this.index = null; @@ -390921,93 +394505,101 @@ var SearchService = /*#__PURE__*/function () { }, { key: "indexCiphers", value: function indexCiphers() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var _this = this; + var builder, ciphers; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!this.indexing) { - _context.next = 2; - break; - } - return _context.abrupt("return"); - case 2: - // tslint:disable-next-line - console.time('search indexing'); - this.indexing = true; - this.index = null; - builder = new lunr__WEBPACK_IMPORTED_MODULE_3__["Builder"](); - builder.ref('id'); - builder.field('shortid', { - boost: 100, - extractor: function extractor(c) { - return c.id.substr(0, 8); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!this.indexing) { + _context.next = 2; + break; } - }); - builder.field('name', { - boost: 10 - }); - builder.field('subtitle', { - boost: 5, - extractor: function extractor(c) { - if (c.subTitle != null && c.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_4__["CipherType"].Card) { - return c.subTitle.replace(/\*/g, ''); + + return _context.abrupt("return"); + + case 2: + // tslint:disable-next-line + console.time('search indexing'); + this.indexing = true; + this.index = null; + builder = new lunr__WEBPACK_IMPORTED_MODULE_3__["Builder"](); + builder.ref('id'); + builder.field('shortid', { + boost: 100, + extractor: function extractor(c) { + return c.id.substr(0, 8); } - return c.subTitle; - } - }); - builder.field('notes'); - builder.field('login.username', { - extractor: function extractor(c) { - return c.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_4__["CipherType"].Login && c.login != null ? c.login.username : null; - } - }); - builder.field('login.uris', { - boost: 2, - extractor: function extractor(c) { - return _this.uriExtractor(c); - } - }); - builder.field('fields', { - extractor: function extractor(c) { - return _this.fieldExtractor(c, false); - } - }); - builder.field('fields_joined', { - extractor: function extractor(c) { - return _this.fieldExtractor(c, true); - } - }); - builder.field('attachments', { - extractor: function extractor(c) { - return _this.attachmentExtractor(c, false); - } - }); - builder.field('attachments_joined', { - extractor: function extractor(c) { - return _this.attachmentExtractor(c, true); - } - }); - builder.field('organizationid', { - extractor: function extractor(c) { - return c.organizationId; - } - }); - _context.next = 20; - return this.cipherService.getAllDecrypted(); - case 20: - ciphers = _context.sent; - ciphers.forEach(function (c) { - return builder.add(c); - }); - this.index = builder.build(); - this.indexing = false; - // tslint:disable-next-line - console.timeEnd('search indexing'); - case 25: - case "end": - return _context.stop(); + }); + builder.field('name', { + boost: 10 + }); + builder.field('subtitle', { + boost: 5, + extractor: function extractor(c) { + if (c.subTitle != null && c.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_4__["CipherType"].Card) { + return c.subTitle.replace(/\*/g, ''); + } + + return c.subTitle; + } + }); + builder.field('notes'); + builder.field('login.username', { + extractor: function extractor(c) { + return c.type === _enums_cipherType__WEBPACK_IMPORTED_MODULE_4__["CipherType"].Login && c.login != null ? c.login.username : null; + } + }); + builder.field('login.uris', { + boost: 2, + extractor: function extractor(c) { + return _this.uriExtractor(c); + } + }); + builder.field('fields', { + extractor: function extractor(c) { + return _this.fieldExtractor(c, false); + } + }); + builder.field('fields_joined', { + extractor: function extractor(c) { + return _this.fieldExtractor(c, true); + } + }); + builder.field('attachments', { + extractor: function extractor(c) { + return _this.attachmentExtractor(c, false); + } + }); + builder.field('attachments_joined', { + extractor: function extractor(c) { + return _this.attachmentExtractor(c, true); + } + }); + builder.field('organizationid', { + extractor: function extractor(c) { + return c.organizationId; + } + }); + _context.next = 20; + return this.cipherService.getAllDecrypted(); + + case 20: + ciphers = _context.sent; + ciphers.forEach(function (c) { + return builder.add(c); + }); + this.index = builder.build(); + this.indexing = false; // tslint:disable-next-line + + console.timeEnd('search indexing'); + + case 25: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -391017,110 +394609,132 @@ var SearchService = /*#__PURE__*/function () { value: function searchCiphers(query) { var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var ciphers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var results, index, ciphersMap, searchResults, isQueryString, soWild; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - results = []; - if (query != null) { - query = query.trim().toLowerCase(); - } - if (query === '') { - query = null; - } - if (!(ciphers == null)) { - _context2.next = 7; - break; - } - _context2.next = 6; - return this.cipherService.getAllDecrypted(); - case 6: - ciphers = _context2.sent; - case 7: - if (filter != null && Array.isArray(filter) && filter.length > 0) { - ciphers = ciphers.filter(function (c) { - return filter.every(function (f) { - return f == null || f(c); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + results = []; + + if (query != null) { + query = query.trim().toLowerCase(); + } + + if (query === '') { + query = null; + } + + if (!(ciphers == null)) { + _context2.next = 7; + break; + } + + _context2.next = 6; + return this.cipherService.getAllDecrypted(); + + case 6: + ciphers = _context2.sent; + + case 7: + if (filter != null && Array.isArray(filter) && filter.length > 0) { + ciphers = ciphers.filter(function (c) { + return filter.every(function (f) { + return f == null || f(c); + }); }); + } else if (filter != null) { + ciphers = ciphers.filter(filter); + } + + if (this.isSearchable(query)) { + _context2.next = 10; + break; + } + + return _context2.abrupt("return", ciphers); + + case 10: + if (!this.indexing) { + _context2.next = 16; + break; + } + + _context2.next = 13; + return new Promise(function (r) { + return setTimeout(r, 250); }); - } else if (filter != null) { - ciphers = ciphers.filter(filter); - } - if (this.isSearchable(query)) { - _context2.next = 10; - break; - } - return _context2.abrupt("return", ciphers); - case 10: - if (!this.indexing) { - _context2.next = 16; - break; - } - _context2.next = 13; - return new Promise(function (r) { - return setTimeout(r, 250); - }); - case 13: - if (!this.indexing) { + + case 13: + if (!this.indexing) { + _context2.next = 16; + break; + } + _context2.next = 16; - break; - } - _context2.next = 16; - return new Promise(function (r) { - return setTimeout(r, 500); - }); - case 16: - index = this.getIndexForSearch(); - if (!(index == null)) { - _context2.next = 19; - break; - } - return _context2.abrupt("return", this.searchCiphersBasic(ciphers, query)); - case 19: - ciphersMap = new Map(); - ciphers.forEach(function (c) { - return ciphersMap.set(c.id, c); - }); - searchResults = null; - isQueryString = query != null && query.length > 1 && query.indexOf('>') === 0; - if (isQueryString) { - try { - searchResults = index.search(query.substr(1).trim()); - } catch (_a) {} - } else { - // tslint:disable-next-line - soWild = lunr__WEBPACK_IMPORTED_MODULE_3__["Query"].wildcard.LEADING | lunr__WEBPACK_IMPORTED_MODULE_3__["Query"].wildcard.TRAILING; - searchResults = index.query(function (q) { - lunr__WEBPACK_IMPORTED_MODULE_3__["tokenizer"](query).forEach(function (token) { - var t = token.toString(); - q.term(t, { - fields: ['name'], - wildcard: soWild - }); - q.term(t, { - fields: ['subtitle'], - wildcard: soWild - }); - q.term(t, { - fields: ['login.uris'], - wildcard: soWild - }); - q.term(t, {}); - }); + return new Promise(function (r) { + return setTimeout(r, 500); }); - } - if (searchResults != null) { - searchResults.forEach(function (r) { - if (ciphersMap.has(r.ref)) { - results.push(ciphersMap.get(r.ref)); - } + + case 16: + index = this.getIndexForSearch(); + + if (!(index == null)) { + _context2.next = 19; + break; + } + + return _context2.abrupt("return", this.searchCiphersBasic(ciphers, query)); + + case 19: + ciphersMap = new Map(); + ciphers.forEach(function (c) { + return ciphersMap.set(c.id, c); }); - } - return _context2.abrupt("return", results); - case 26: - case "end": - return _context2.stop(); + searchResults = null; + isQueryString = query != null && query.length > 1 && query.indexOf('>') === 0; + + if (isQueryString) { + try { + searchResults = index.search(query.substr(1).trim()); + } catch (_a) {} + } else { + // tslint:disable-next-line + soWild = lunr__WEBPACK_IMPORTED_MODULE_3__["Query"].wildcard.LEADING | lunr__WEBPACK_IMPORTED_MODULE_3__["Query"].wildcard.TRAILING; + searchResults = index.query(function (q) { + lunr__WEBPACK_IMPORTED_MODULE_3__["tokenizer"](query).forEach(function (token) { + var t = token.toString(); + q.term(t, { + fields: ['name'], + wildcard: soWild + }); + q.term(t, { + fields: ['subtitle'], + wildcard: soWild + }); + q.term(t, { + fields: ['login.uris'], + wildcard: soWild + }); + q.term(t, {}); + }); + }); + } + + if (searchResults != null) { + searchResults.forEach(function (r) { + if (ciphersMap.has(r.ref)) { + results.push(ciphersMap.get(r.ref)); + } + }); + } + + return _context2.abrupt("return", results); + + case 26: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -391134,18 +394748,23 @@ var SearchService = /*#__PURE__*/function () { if (deleted !== c.isDeleted) { return false; } + if (c.name != null && c.name.toLowerCase().indexOf(query) > -1) { return true; } + if (query.length >= 8 && c.id.startsWith(query)) { return true; } + if (c.subTitle != null && c.subTitle.toLowerCase().indexOf(query) > -1) { return true; } + if (c.login && c.login.uri != null && c.login.uri.toLowerCase().indexOf(query) > -1) { return true; } + return false; }); } @@ -391160,11 +394779,13 @@ var SearchService = /*#__PURE__*/function () { if (!c.hasFields) { return null; } + var fields = []; c.fields.forEach(function (f) { if (f.name != null) { fields.push(f.name); } + if (f.type === _enums_fieldType__WEBPACK_IMPORTED_MODULE_5__["FieldType"].Text && f.value != null) { fields.push(f.value); } @@ -391172,9 +394793,11 @@ var SearchService = /*#__PURE__*/function () { fields = fields.filter(function (f) { return f.trim() !== ''; }); + if (fields.length === 0) { return null; } + return joined ? fields.join(' ') : fields; } }, { @@ -391183,6 +394806,7 @@ var SearchService = /*#__PURE__*/function () { if (!c.hasAttachments) { return null; } + var attachments = []; c.attachments.forEach(function (a) { if (a != null && a.fileName != null) { @@ -391196,9 +394820,11 @@ var SearchService = /*#__PURE__*/function () { attachments = attachments.filter(function (f) { return f.trim() !== ''; }); + if (attachments.length === 0) { return null; } + return joined ? attachments.join(' ') : attachments; } }, { @@ -391207,31 +394833,40 @@ var SearchService = /*#__PURE__*/function () { if (c.type !== _enums_cipherType__WEBPACK_IMPORTED_MODULE_4__["CipherType"].Login || c.login == null || !c.login.hasUris) { return null; } + var uris = []; c.login.uris.forEach(function (u) { if (u.uri == null || u.uri === '') { return; } + if (u.hostname != null) { uris.push(u.hostname); return; } + var uri = u.uri; + if (u.match !== _enums_uriMatchType__WEBPACK_IMPORTED_MODULE_6__["UriMatchType"].RegularExpression) { var protocolIndex = uri.indexOf('://'); + if (protocolIndex > -1) { uri = uri.substr(protocolIndex + 3); } + var queryIndex = uri.search(/\?|&|#/); + if (queryIndex > -1) { uri = uri.substring(0, queryIndex); } } + uris.push(uri); }); return uris.length > 0 ? uris : null; } }]); + return SearchService; }(); @@ -392109,24 +395744,22 @@ module.exports = _interopRequireDefault; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HtmlStorageService; }); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("J58c"); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J58c"); +/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Rqrh"); -function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + /* * This file is a modified version of /services/htmlStorageService.service.ts @@ -392137,53 +395770,68 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len var HtmlStorageService = /*#__PURE__*/function () { function HtmlStorageService(platformUtilsService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, HtmlStorageService); - _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(this, "localStorageKeys", new Set(['appId', 'anonymousAppId', 'rememberedEmail', 'passwordGenerationOptions', _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].disableFaviconKey, _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey, 'rememberEmail', 'enableGravatars', _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].localeKey, _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey, _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].autoConfirmFingerprints])); - _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(this, "localStorageStartsWithKeys", ['twoFactorToken_', _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].collapsedGroupingsKey + '_']); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, HtmlStorageService); + + _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(this, "localStorageKeys", new Set(['appId', 'anonymousAppId', 'rememberedEmail', 'passwordGenerationOptions', _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].disableFaviconKey, _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey, 'rememberEmail', 'enableGravatars', _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].localeKey, _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey, _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].autoConfirmFingerprints])); + + _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(this, "localStorageStartsWithKeys", ['twoFactorToken_', _bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].collapsedGroupingsKey + '_']); + this.platformUtilsService = platformUtilsService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(HtmlStorageService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(HtmlStorageService, [{ key: "init", value: function () { - var _init = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.mark(function _callee() { + var _init = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var lockOption; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return this.get(_bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey); - case 2: - lockOption = _context.sent; - if (!(lockOption == null && !this.platformUtilsService.isDev())) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return this.get(_bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey); + + case 2: + lockOption = _context.sent; + + if (!(lockOption == null && !this.platformUtilsService.isDev())) { + _context.next = 6; + break; + } + _context.next = 6; - break; - } - _context.next = 6; - return this.save(_bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey, 15); - case 6: - case "end": - return _context.stop(); + return this.save(_bitwarden_jslib_services_constants_service__WEBPACK_IMPORTED_MODULE_5__["ConstantsService"].lockOptionKey, 15); + + case 6: + case "end": + return _context.stop(); + } } }, _callee, this); })); + function init() { return _init.apply(this, arguments); } + return init; }() }, { key: "get", value: function get(key) { var json = null; + if (this.isLocalStorage(key)) { json = window.localStorage.getItem(key); } else { json = window.sessionStorage.getItem(key); } + if (json != null) { var obj = JSON.parse(json); return Promise.resolve(obj); } + return Promise.resolve(null); } }, { @@ -392192,12 +395840,15 @@ var HtmlStorageService = /*#__PURE__*/function () { if (obj == null) { return this.remove(key); } + var json = JSON.stringify(obj); + if (this.isLocalStorage(key)) { window.localStorage.setItem(key, json); } else { window.sessionStorage.setItem(key, json); } + return Promise.resolve(); } }, { @@ -392208,6 +395859,7 @@ var HtmlStorageService = /*#__PURE__*/function () { } else { window.sessionStorage.removeItem(key); } + return Promise.resolve(); } }, { @@ -392216,27 +395868,43 @@ var HtmlStorageService = /*#__PURE__*/function () { if (this.localStorageKeys.has(key)) { return true; } - var _iterator = _createForOfIteratorHelper(this.localStorageStartsWithKeys), - _step; + + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { + for (var _iterator = this.localStorageStartsWithKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var swKey = _step.value; + if (key.startsWith(swKey)) { return true; } } } catch (err) { - _iterator.e(err); + _didIteratorError = true; + _iteratorError = err; } finally { - _iterator.f(); + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } } + return false; } }]); + return HtmlStorageService; }(); + /***/ }), /***/ "u+n3": @@ -393172,14 +396840,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("L7vP"); /* harmony import */ var _data_sendTextData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("7sXg"); /* harmony import */ var _view_sendTextView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("6Lbw"); @@ -393189,28 +396857,34 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var SendText = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SendText, _Domain); - var _super = _createSuper(SendText); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(SendText, _Domain); + function SendText(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SendText); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SendText).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } + _this.hidden = obj.hidden; - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { text: null }, alreadyEncrypted, []); + return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SendText, [{ key: "decrypt", value: function decrypt(key) { @@ -393229,6 +396903,7 @@ var SendText = /*#__PURE__*/function (_Domain) { return t; } }]); + return SendText; }(_domainBase__WEBPACK_IMPORTED_MODULE_6__["default"]); @@ -394070,12 +397745,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -394083,45 +397758,53 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var AviraCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AviraCsvImporter, _BaseImporter); - var _super = _createSuper(AviraCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(AviraCsvImporter, _BaseImporter); + function AviraCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AviraCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(AviraCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AviraCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.name, _this.getValueOrDefault(_this.nameFromUrl(value.website), '--')); cipher.login.uris = _this.makeUriArray(value.website); cipher.login.password = _this.getValueOrDefault(value.password); + if (_this.isNullOrWhitespace(value.username) && !_this.isNullOrWhitespace(value.secondary_username)) { cipher.login.username = value.secondary_username; } else { cipher.login.username = _this.getValueOrDefault(value.username); cipher.notes = _this.getValueOrDefault(value.secondary_username); } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return AviraCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -400629,41 +404312,41 @@ module.exports = function ToIntegerOrInfinity(value) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListResponse", function() { return ListResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var ListResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ListResponse, _BaseResponse); - var _super = _createSuper(ListResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ListResponse, _BaseResponse); + function ListResponse(response, t) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ListResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ListResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(ListResponse).call(this, response)); + var data = _this.getResponseProperty('Data'); + _this.data = data == null ? [] : data.map(function (dr) { return new t(dr); }); _this.continuationToken = _this.getResponseProperty('ContinuationToken'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ListResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return ListResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -400956,12 +404639,12 @@ module.exports = !__webpack_require__("1bdm") && !__webpack_require__("pmGf")(fu "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("XkwL"); -/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("XkwL"); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ivGQ"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("PqS7"); @@ -400980,8 +404663,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var cozy_ui_transpiled_react_hooks_useBreakpoints__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_hooks_useBreakpoints__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("nUfk"); /* harmony import */ var cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var cozy_ui_transpiled_react_deprecated_Button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("/dlN"); -/* harmony import */ var cozy_ui_transpiled_react_deprecated_Button__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_deprecated_Button__WEBPACK_IMPORTED_MODULE_12__); +/* harmony import */ var cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("7u78"); +/* harmony import */ var cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("AHiN"); /* harmony import */ var cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var cozy_ui_transpiled_react_CozyTheme__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("IMxj"); @@ -401014,66 +404697,83 @@ __webpack_require__.r(__webpack_exports__); + var getPassphraseResetUrl = function getPassphraseResetUrl(client) { var url = new URL('/auth/passphrase_reset', client.getStackClient().uri); return url.href; }; + var canClientAuthWithOIDC = function canClientAuthWithOIDC(client) { return lodash_get__WEBPACK_IMPORTED_MODULE_5___default()(client, 'capabilities.can_auth_with_oidc') || cozy_flags__WEBPACK_IMPORTED_MODULE_8___default()('vault.force-oidc-display'); }; + var UnlockForm = function UnlockForm(props) { var client = Object(cozy_client__WEBPACK_IMPORTED_MODULE_7__["useClient"])(); var vaultClient = Object(_VaultContext__WEBPACK_IMPORTED_MODULE_20__["useVaultClient"])(); + var _useBreakpoints = cozy_ui_transpiled_react_hooks_useBreakpoints__WEBPACK_IMPORTED_MODULE_10___default()(), - isMobile = _useBreakpoints.isMobile; + isMobile = _useBreakpoints.isMobile; + var _useI18n = Object(cozy_ui_transpiled_react_I18n__WEBPACK_IMPORTED_MODULE_11__["useI18n"])(), - t = _useI18n.t; + t = _useI18n.t; + var onUnlock = props.onUnlock, - onDismiss = props.onDismiss, - closable = props.closable; + onDismiss = props.onDismiss, + closable = props.closable; + var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false), - _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2), - unlocking = _useState2[0], - setUnlocking = _useState2[1]; + _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2), + unlocking = _useState2[0], + setUnlocking = _useState2[1]; + var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(null), - _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState3, 2), - error = _useState4[0], - setError = _useState4[1]; + _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2), + error = _useState4[0], + setError = _useState4[1]; + var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(''), - _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState5, 2), - password = _useState6[0], - setPassword = _useState6[1]; + _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2), + password = _useState6[0], + setPassword = _useState6[1]; + var handlePasswordChange = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (ev) { setPassword(ev.currentTarget.value); }); - var unlockVault = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])( /*#__PURE__*/_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - setUnlocking(true); - setError(null); - _context.prev = 2; - _context.next = 5; - return vaultClient.unlock(password); - case 5: - if (onUnlock) { - onUnlock(); - } - _context.next = 11; - break; - case 8: - _context.prev = 8; - _context.t0 = _context["catch"](2); - setError(_context.t0); - case 11: - _context.prev = 11; - setUnlocking(false); - return _context.finish(11); - case 14: - case "end": - return _context.stop(); + var unlockVault = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])( /*#__PURE__*/_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + setUnlocking(true); + setError(null); + _context.prev = 2; + _context.next = 5; + return vaultClient.unlock(password); + + case 5: + if (onUnlock) { + onUnlock(); + } + + _context.next = 11; + break; + + case 8: + _context.prev = 8; + _context.t0 = _context["catch"](2); + setError(_context.t0); + + case 11: + _context.prev = 11; + setUnlocking(false); + return _context.finish(11); + + case 14: + case "end": + return _context.stop(); + } } }, _callee, null, [[2, 8, 11, 14]]); })), [vaultClient, onUnlock, password]); @@ -401098,44 +404798,44 @@ var UnlockForm = function UnlockForm(props) { }, 'cozy-keys-lib/UnlockForm'); }; }, [webviewIntent]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_CozyTheme__WEBPACK_IMPORTED_MODULE_14___default.a, { + return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_CozyTheme__WEBPACK_IMPORTED_MODULE_14___default.a, { variant: "inverted" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_CozyDialogs__WEBPACK_IMPORTED_MODULE_15__["IllustrationDialog"], { + }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_CozyDialogs__WEBPACK_IMPORTED_MODULE_15__["IllustrationDialog"], { size: "small", open: true, onClose: closable && onDismiss, - content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("form", { + content: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("form", { onSubmit: handleVaultUnlock, className: "u-stack-m u-flex u-flex-column u-flex-items-center" - }, canAuthWithOIDC ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_13___default.a, { + }, canAuthWithOIDC ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Icon__WEBPACK_IMPORTED_MODULE_13___default.a, { icon: cozy_ui_transpiled_react_Icons_Keychain__WEBPACK_IMPORTED_MODULE_16___default.a, size: 64, className: "u-mb-half" - }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_IconCozySecurity__WEBPACK_IMPORTED_MODULE_18__["default"], { + }) : react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_IconCozySecurity__WEBPACK_IMPORTED_MODULE_18__["default"], { className: "u-mb-half" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { + }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { variant: "h3", gutterBottom: true - }, canAuthWithOIDC ? t('unlock.title-oidc') : t('unlock.title')), error ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { + }, canAuthWithOIDC ? t('unlock.title-oidc') : t('unlock.title')), error ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { variant: "body1", className: "u-error" - }, t('unlock.error')) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { + }, t('unlock.error')) : react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { variant: "body1" - }, t('unlock.subtitle')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_PasswordField__WEBPACK_IMPORTED_MODULE_19__["default"], { + }, t('unlock.subtitle')), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_PasswordField__WEBPACK_IMPORTED_MODULE_19__["default"], { id: "idField", label: canAuthWithOIDC ? t('unlock.label-oidc') : t('unlock.label'), value: password, onChange: handlePasswordChange, fullWidth: true, className: "u-mt-2" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { + }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Typography__WEBPACK_IMPORTED_MODULE_9___default.a, { variant: "body1", component: "a", color: "primary", href: getPassphraseResetUrlCb, className: "u-link u-mt-1 u-flex-self-start" }, t('unlock.forgotten-password'))), - actions: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_deprecated_Button__WEBPACK_IMPORTED_MODULE_12___default.a, { + actions: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(cozy_ui_transpiled_react_Button__WEBPACK_IMPORTED_MODULE_12___default.a, { onClick: handleVaultUnlock, label: t('unlock.unlock'), theme: "primary", @@ -401148,6 +404848,7 @@ var UnlockForm = function UnlockForm(props) { }) })); }; + UnlockForm.propTypes = { onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired, closable: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, @@ -402967,22 +406668,28 @@ __webpack_require__.r(__webpack_exports__); var FieldView = /*#__PURE__*/function () { function FieldView(f) { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FieldView); + this.name = null; this.value = null; this.type = null; this.newField = false; // Marks if the field is new and hasn't been saved + this.showValue = false; + if (!f) { return; } + this.type = f.type; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FieldView, [{ key: "maskedValue", get: function get() { return this.value != null ? '••••••••' : null; } }]); + return FieldView; }(); @@ -403514,12 +407221,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -403527,50 +407234,62 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var KeePassXCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KeePassXCsvImporter, _BaseImporter); - var _super = _createSuper(KeePassXCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(KeePassXCsvImporter, _BaseImporter); + function KeePassXCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KeePassXCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(KeePassXCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(KeePassXCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (_this.isNullOrWhitespace(value.Title)) { return; } + value.Group = !_this.isNullOrWhitespace(value.Group) && value.Group.startsWith('Root/') ? value.Group.replace('Root/', '') : value.Group; var groupName = !_this.isNullOrWhitespace(value.Group) ? value.Group : null; + _this.processFolder(result, groupName); + var cipher = _this.initLoginCipher(); + cipher.notes = _this.getValueOrDefault(value.Notes); cipher.name = _this.getValueOrDefault(value.Title, '--'); cipher.login.username = _this.getValueOrDefault(value.Username); cipher.login.password = _this.getValueOrDefault(value.Password); cipher.login.uris = _this.makeUriArray(value.URL); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return KeePassXCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -404263,22 +407982,22 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useVaultClient", function() { return useVaultClient; }); /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("LGLP"); /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("ivGQ"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("ii0b"); @@ -404295,48 +408014,55 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -var VaultContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createContext(); +var VaultContext = react__WEBPACK_IMPORTED_MODULE_9___default.a.createContext(); var getVaultClient = lodash_memoize__WEBPACK_IMPORTED_MODULE_12___default()(function (instance, unsafeStorage, vaultData) { return new _WebVaultClient__WEBPACK_IMPORTED_MODULE_11__["default"](instance, { unsafeStorage: unsafeStorage }, vaultData); }); + var VaultProvider = /*#__PURE__*/function (_React$Component) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(VaultProvider, _React$Component); - var _super = _createSuper(VaultProvider); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(VaultProvider, _React$Component); + function VaultProvider(props) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, VaultProvider); - _this = _super.call(this, props); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this, VaultProvider); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(VaultProvider).call(this, props)); var vaultClient = _this.props.vaultClient; + if (_this.props.client) { - vaultClient = _this.props.client; - // eslint-disable-next-line no-console + vaultClient = _this.props.client; // eslint-disable-next-line no-console + console.warn('Passing client in props is deprecated, please use vaultClient instead.'); } + _this.state = { vaultClient: vaultClient, locked: true }; - _this.updateLockedState = _this.updateLockedState.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this)); - _this.setupClient = _this.setupClient.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this)); + _this.updateLockedState = _this.updateLockedState.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)); + _this.setupClient = _this.setupClient.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7___default()(_this)); return _this; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(VaultProvider, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(VaultProvider, [{ key: "componentDidMount", value: function componentDidMount() { var _this2 = this; + var _this$props = this.props, - cozyClient = _this$props.cozyClient, - instance = _this$props.instance; + cozyClient = _this$props.cozyClient, + instance = _this$props.instance; + if (cozyClient) { var uri = cozyClient.getStackClient().uri; + if (!uri) { cozyClient.on('login', function () { _this2.setupClient(cozyClient.getStackClient().uri); @@ -404345,6 +408071,7 @@ var VaultProvider = /*#__PURE__*/function (_React$Component) { this.setupClient(uri); } } + if (instance) { this.setupClient(this.props.instance); } @@ -404353,9 +408080,11 @@ var VaultProvider = /*#__PURE__*/function (_React$Component) { key: "componentWillUnmount", value: function componentWillUnmount() { var vaultClient = this.state.vaultClient; + if (!vaultClient) { return; } + vaultClient.removeListener('unlock', this.updateLockedState); vaultClient.removeListener('lock', this.updateLockedState); vaultClient.removeListener('login', this.updateLockedState); @@ -404363,36 +408092,44 @@ var VaultProvider = /*#__PURE__*/function (_React$Component) { }, { key: "updateLockedState", value: function () { - var _updateLockedState = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default.a.mark(function _callee() { + var _updateLockedState = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee() { var vaultClient, locked; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - vaultClient = this.state.vaultClient; - _context.next = 3; - return vaultClient.isLocked(); - case 3: - locked = _context.sent; - if (locked != this.state.locked) { - this.setState({ - locked: locked - }); - } - case 5: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + vaultClient = this.state.vaultClient; + _context.next = 3; + return vaultClient.isLocked(); + + case 3: + locked = _context.sent; + + if (locked != this.state.locked) { + this.setState({ + locked: locked + }); + } + + case 5: + case "end": + return _context.stop(); + } } }, _callee, this); })); + function updateLockedState() { return _updateLockedState.apply(this, arguments); } + return updateLockedState; }() }, { key: "setupClient", value: function setupClient(instance) { var _this3 = this; + var unsafeStorage = this.props.unsafeStorage; var vaultClient = this.props.vaultClient || this.props.client || getVaultClient(instance, unsafeStorage, this.props.vaultData); this.setState({ @@ -404402,8 +408139,10 @@ var VaultProvider = /*#__PURE__*/function (_React$Component) { vaultClient.on('unlock', _this3.updateLockedState); vaultClient.on('lock', _this3.updateLockedState); vaultClient.on('login', _this3.updateLockedState); + _this3.updateLockedState(); }); + if (this.props.setClient) { this.props.setClient(vaultClient); } @@ -404411,13 +408150,15 @@ var VaultProvider = /*#__PURE__*/function (_React$Component) { }, { key: "render", value: function render() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(VaultContext.Provider, { + return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(VaultContext.Provider, { value: this.state }, this.props.children); } }]); + return VaultProvider; }(react__WEBPACK_IMPORTED_MODULE_9___default.a.Component); + VaultProvider.propTypes = { instance: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string, vaultClient: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.object, @@ -404427,27 +408168,33 @@ VaultProvider.propTypes = { setClient: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func, cozyClient: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.object }; + var withVaultClient = function withVaultClient(BaseComponent) { var Component = function Component(props) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(VaultContext.Consumer, null, function (_ref) { + return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(VaultContext.Consumer, null, function (_ref) { var vaultClient = _ref.vaultClient; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(BaseComponent, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ + return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(BaseComponent, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ vaultClient: vaultClient }, props)); }); }; + Component.displayName = "withVaultClient(".concat(BaseComponent.displayName || BaseComponent.name, ")"); return Component; }; + var useVaultClient = function useVaultClient() { var ctx = Object(react__WEBPACK_IMPORTED_MODULE_9__["useContext"])(VaultContext); + if (!ctx) { throw new Error('useVaultClient must be used within a VaultProvider'); } + return ctx.vaultClient; }; + /***/ }), /***/ "vWU+": @@ -407276,24 +411023,23 @@ function insertIntentIframe(intent, element, url, onload) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardData", function() { return CardData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var CardData = function CardData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CardData); -var CardData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function CardData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CardData); if (data == null) { return; } + this.cardholderName = data.cardholderName; this.brand = data.brand; this.number = data.number; this.expMonth = data.expMonth; this.expYear = data.expYear; this.code = data.code; -}); +}; /***/ }), @@ -407813,31 +411559,26 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherResponse", function() { return CipherResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _attachmentResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("ONjh"); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("HDe7"); -/* harmony import */ var _passwordHistoryResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("B4L7"); -/* harmony import */ var _api_cardApi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("UyQB"); -/* harmony import */ var _api_fieldApi__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("TKJ5"); -/* harmony import */ var _api_identityApi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("WELE"); -/* harmony import */ var _api_loginApi__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("InD+"); -/* harmony import */ var _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("dU00"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _attachmentResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ONjh"); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); +/* harmony import */ var _passwordHistoryResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("B4L7"); +/* harmony import */ var _api_cardApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("UyQB"); +/* harmony import */ var _api_fieldApi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("TKJ5"); +/* harmony import */ var _api_identityApi__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("WELE"); +/* harmony import */ var _api_loginApi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("InD+"); +/* harmony import */ var _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("dU00"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } @@ -407847,12 +411588,14 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var CipherResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CipherResponse, _BaseResponse); - var _super = _createSuper(CipherResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CipherResponse, _BaseResponse); + function CipherResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CipherResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CipherResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(CipherResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.organizationId = _this.getResponseProperty('OrganizationId'); _this.folderId = _this.getResponseProperty('FolderId') || null; @@ -407861,53 +411604,71 @@ var CipherResponse = /*#__PURE__*/function (_BaseResponse) { _this.notes = _this.getResponseProperty('Notes'); _this.favorite = _this.getResponseProperty('Favorite') || false; _this.edit = !!_this.getResponseProperty('Edit'); + if (_this.getResponseProperty('ViewPassword') == null) { _this.viewPassword = true; } else { _this.viewPassword = _this.getResponseProperty('ViewPassword'); } + _this.organizationUseTotp = _this.getResponseProperty('OrganizationUseTotp'); _this.revisionDate = _this.getResponseProperty('RevisionDate'); _this.collectionIds = _this.getResponseProperty('CollectionIds'); _this.deletedDate = _this.getResponseProperty('DeletedDate'); + var login = _this.getResponseProperty('Login'); + if (login != null) { - _this.login = new _api_loginApi__WEBPACK_IMPORTED_MODULE_11__["LoginApi"](login); + _this.login = new _api_loginApi__WEBPACK_IMPORTED_MODULE_10__["LoginApi"](login); } + var card = _this.getResponseProperty('Card'); + if (card != null) { - _this.card = new _api_cardApi__WEBPACK_IMPORTED_MODULE_8__["CardApi"](card); + _this.card = new _api_cardApi__WEBPACK_IMPORTED_MODULE_7__["CardApi"](card); } + var identity = _this.getResponseProperty('Identity'); + if (identity != null) { - _this.identity = new _api_identityApi__WEBPACK_IMPORTED_MODULE_10__["IdentityApi"](identity); + _this.identity = new _api_identityApi__WEBPACK_IMPORTED_MODULE_9__["IdentityApi"](identity); } + var secureNote = _this.getResponseProperty('SecureNote'); + if (secureNote != null) { - _this.secureNote = new _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_12__["SecureNoteApi"](secureNote); + _this.secureNote = new _api_secureNoteApi__WEBPACK_IMPORTED_MODULE_11__["SecureNoteApi"](secureNote); } + var fields = _this.getResponseProperty('Fields'); + if (fields != null) { _this.fields = fields.map(function (f) { - return new _api_fieldApi__WEBPACK_IMPORTED_MODULE_9__["FieldApi"](f); + return new _api_fieldApi__WEBPACK_IMPORTED_MODULE_8__["FieldApi"](f); }); } + var attachments = _this.getResponseProperty('Attachments'); + if (attachments != null) { _this.attachments = attachments.map(function (a) { - return new _attachmentResponse__WEBPACK_IMPORTED_MODULE_5__["AttachmentResponse"](a); + return new _attachmentResponse__WEBPACK_IMPORTED_MODULE_4__["AttachmentResponse"](a); }); } + var passwordHistory = _this.getResponseProperty('PasswordHistory'); + if (passwordHistory != null) { _this.passwordHistory = passwordHistory.map(function (h) { - return new _passwordHistoryResponse__WEBPACK_IMPORTED_MODULE_7__["PasswordHistoryResponse"](h); + return new _passwordHistoryResponse__WEBPACK_IMPORTED_MODULE_6__["PasswordHistoryResponse"](h); }); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(CipherResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_6__["BaseResponse"]); + + return CipherResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); /***/ }), @@ -408820,17 +412581,16 @@ module.exports = buildDistanceInWordsLocale "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IdentityData", function() { return IdentityData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +var IdentityData = function IdentityData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, IdentityData); -var IdentityData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function IdentityData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, IdentityData); if (data == null) { return; } + this.title = data.title; this.firstName = data.firstName; this.middleName = data.middleName; @@ -408849,7 +412609,7 @@ var IdentityData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPO this.username = data.username; this.passportNumber = data.passportNumber; this.licenseNumber = data.licenseNumber; -}); +}; /***/ }), @@ -411098,6 +414858,7 @@ module.exports = baseCreate; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorProviderType", function() { return TwoFactorProviderType; }); var TwoFactorProviderType; + (function (TwoFactorProviderType) { TwoFactorProviderType[TwoFactorProviderType["Authenticator"] = 0] = "Authenticator"; TwoFactorProviderType[TwoFactorProviderType["Email"] = 1] = "Email"; @@ -411250,24 +415011,26 @@ function createClientReportEnvelope(discarded_events, dsn, timestamp) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolicyService", function() { return PolicyService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _models_domain_masterPasswordPolicyOptions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("CrEc"); /* harmony import */ var _models_domain_policy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("W9Z0"); /* harmony import */ var _enums_policyType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("IJ4U"); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -411276,6 +415039,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -411283,25 +415047,30 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; + var Keys = { policiesPrefix: 'policies_' }; var PolicyService = /*#__PURE__*/function () { function PolicyService(userService, storageService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolicyService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PolicyService); + this.userService = userService; this.storageService = storageService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolicyService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(PolicyService, [{ key: "clearCache", value: function clearCache() { this.policyCache = null; @@ -411309,43 +415078,54 @@ var PolicyService = /*#__PURE__*/function () { }, { key: "getAll", value: function getAll(type) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var userId, policies, response, id; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - if (!(this.policyCache == null)) { - _context.next = 10; - break; - } - _context.next = 3; - return this.userService.getUserId(); - case 3: - userId = _context.sent; - _context.next = 6; - return this.storageService.get(Keys.policiesPrefix + userId); - case 6: - policies = _context.sent; - response = []; - for (id in policies) { - if (policies.hasOwnProperty(id)) { - response.push(new _models_domain_policy__WEBPACK_IMPORTED_MODULE_4__["Policy"](policies[id])); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!(this.policyCache == null)) { + _context.next = 10; + break; } - } - this.policyCache = response; - case 10: - if (!(type != null)) { - _context.next = 14; - break; - } - return _context.abrupt("return", this.policyCache.filter(function (p) { - return p.type === type; - })); - case 14: - return _context.abrupt("return", this.policyCache); - case 15: - case "end": - return _context.stop(); + + _context.next = 3; + return this.userService.getUserId(); + + case 3: + userId = _context.sent; + _context.next = 6; + return this.storageService.get(Keys.policiesPrefix + userId); + + case 6: + policies = _context.sent; + response = []; + + for (id in policies) { + if (policies.hasOwnProperty(id)) { + response.push(new _models_domain_policy__WEBPACK_IMPORTED_MODULE_4__["Policy"](policies[id])); + } + } + + this.policyCache = response; + + case 10: + if (!(type != null)) { + _context.next = 14; + break; + } + + return _context.abrupt("return", this.policyCache.filter(function (p) { + return p.type === type; + })); + + case 14: + return _context.abrupt("return", this.policyCache); + + case 15: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -411353,22 +415133,27 @@ var PolicyService = /*#__PURE__*/function () { }, { key: "replace", value: function replace(policies) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var userId; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return this.userService.getUserId(); - case 2: - userId = _context2.sent; - _context2.next = 5; - return this.storageService.save(Keys.policiesPrefix + userId, policies); - case 5: - this.policyCache = null; - case 6: - case "end": - return _context2.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return this.userService.getUserId(); + + case 2: + userId = _context2.sent; + _context2.next = 5; + return this.storageService.save(Keys.policiesPrefix + userId, policies); + + case 5: + this.policyCache = null; + + case 6: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -411376,17 +415161,21 @@ var PolicyService = /*#__PURE__*/function () { }, { key: "clear", value: function clear(userId) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return this.storageService.remove(Keys.policiesPrefix + userId); - case 2: - this.policyCache = null; - case 3: - case "end": - return _context3.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return this.storageService.remove(Keys.policiesPrefix + userId); + + case 2: + this.policyCache = null; + + case 3: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -411394,63 +415183,80 @@ var PolicyService = /*#__PURE__*/function () { }, { key: "getMasterPasswordPolicyOptions", value: function getMasterPasswordPolicyOptions(policies) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var enforcedOptions; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - enforcedOptions = null; - if (!(policies == null)) { - _context4.next = 7; - break; - } - _context4.next = 4; - return this.getAll(_enums_policyType__WEBPACK_IMPORTED_MODULE_5__["PolicyType"].MasterPassword); - case 4: - policies = _context4.sent; - _context4.next = 8; - break; - case 7: - policies = policies.filter(function (p) { - return p.type === _enums_policyType__WEBPACK_IMPORTED_MODULE_5__["PolicyType"].MasterPassword; - }); - case 8: - if (!(policies == null || policies.length === 0)) { - _context4.next = 10; - break; - } - return _context4.abrupt("return", enforcedOptions); - case 10: - policies.forEach(function (currentPolicy) { - if (!currentPolicy.enabled || currentPolicy.data == null) { - return; - } - if (enforcedOptions == null) { - enforcedOptions = new _models_domain_masterPasswordPolicyOptions__WEBPACK_IMPORTED_MODULE_3__["MasterPasswordPolicyOptions"](); - } - if (currentPolicy.data.minComplexity != null && currentPolicy.data.minComplexity > enforcedOptions.minComplexity) { - enforcedOptions.minComplexity = currentPolicy.data.minComplexity; - } - if (currentPolicy.data.minLength != null && currentPolicy.data.minLength > enforcedOptions.minLength) { - enforcedOptions.minLength = currentPolicy.data.minLength; - } - if (currentPolicy.data.requireUpper) { - enforcedOptions.requireUpper = true; - } - if (currentPolicy.data.requireLower) { - enforcedOptions.requireLower = true; - } - if (currentPolicy.data.requireNumbers) { - enforcedOptions.requireNumbers = true; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + enforcedOptions = null; + + if (!(policies == null)) { + _context4.next = 7; + break; } - if (currentPolicy.data.requireSpecial) { - enforcedOptions.requireSpecial = true; + + _context4.next = 4; + return this.getAll(_enums_policyType__WEBPACK_IMPORTED_MODULE_5__["PolicyType"].MasterPassword); + + case 4: + policies = _context4.sent; + _context4.next = 8; + break; + + case 7: + policies = policies.filter(function (p) { + return p.type === _enums_policyType__WEBPACK_IMPORTED_MODULE_5__["PolicyType"].MasterPassword; + }); + + case 8: + if (!(policies == null || policies.length === 0)) { + _context4.next = 10; + break; } - }); - return _context4.abrupt("return", enforcedOptions); - case 12: - case "end": - return _context4.stop(); + + return _context4.abrupt("return", enforcedOptions); + + case 10: + policies.forEach(function (currentPolicy) { + if (!currentPolicy.enabled || currentPolicy.data == null) { + return; + } + + if (enforcedOptions == null) { + enforcedOptions = new _models_domain_masterPasswordPolicyOptions__WEBPACK_IMPORTED_MODULE_3__["MasterPasswordPolicyOptions"](); + } + + if (currentPolicy.data.minComplexity != null && currentPolicy.data.minComplexity > enforcedOptions.minComplexity) { + enforcedOptions.minComplexity = currentPolicy.data.minComplexity; + } + + if (currentPolicy.data.minLength != null && currentPolicy.data.minLength > enforcedOptions.minLength) { + enforcedOptions.minLength = currentPolicy.data.minLength; + } + + if (currentPolicy.data.requireUpper) { + enforcedOptions.requireUpper = true; + } + + if (currentPolicy.data.requireLower) { + enforcedOptions.requireLower = true; + } + + if (currentPolicy.data.requireNumbers) { + enforcedOptions.requireNumbers = true; + } + + if (currentPolicy.data.requireSpecial) { + enforcedOptions.requireSpecial = true; + } + }); + return _context4.abrupt("return", enforcedOptions); + + case 12: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -411461,27 +415267,35 @@ var PolicyService = /*#__PURE__*/function () { if (enforcedPolicyOptions == null) { return true; } + if (enforcedPolicyOptions.minComplexity > 0 && enforcedPolicyOptions.minComplexity > passwordStrength) { return false; } + if (enforcedPolicyOptions.minLength > 0 && enforcedPolicyOptions.minLength > newPassword.length) { return false; } + if (enforcedPolicyOptions.requireUpper && newPassword.toLocaleLowerCase() === newPassword) { return false; } + if (enforcedPolicyOptions.requireLower && newPassword.toLocaleUpperCase() === newPassword) { return false; } + if (enforcedPolicyOptions.requireNumbers && !/[0-9]/.test(newPassword)) { return false; } + if (enforcedPolicyOptions.requireSpecial && !/[!@#$%\^&*]/g.test(newPassword)) { return false; } + return true; } }]); + return PolicyService; }(); @@ -412946,14 +416760,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _data_identityData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("wVKE"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); /* harmony import */ var _view_identityView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("U6wF"); @@ -412963,23 +416777,26 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Identity = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Identity, _Domain); - var _super = _createSuper(Identity); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Identity, _Domain); + function Identity(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Identity); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Identity).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { title: null, firstName: null, middleName: null, @@ -412999,8 +416816,10 @@ var Identity = /*#__PURE__*/function (_Domain) { passportNumber: null, licenseNumber: null }, alreadyEncrypted, []); + return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Identity, [{ key: "decrypt", value: function decrypt(orgId) { @@ -413052,6 +416871,7 @@ var Identity = /*#__PURE__*/function (_Domain) { return i; } }]); + return Identity; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); @@ -414252,29 +418072,29 @@ function useReduxContext() { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginData", function() { return LoginData; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _loginUriData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("dsMk"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _loginUriData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("dsMk"); +var LoginData = function LoginData(data) { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoginData); -var LoginData = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function LoginData(data) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, LoginData); if (data == null) { return; } + this.username = data.username; this.password = data.password; this.passwordRevisionDate = data.passwordRevisionDate; this.totp = data.totp; + if (data.uris) { this.uris = data.uris.map(function (u) { - return new _loginUriData__WEBPACK_IMPORTED_MODULE_2__["LoginUriData"](u); + return new _loginUriData__WEBPACK_IMPORTED_MODULE_1__["LoginUriData"](u); }); } -}); +}; /***/ }), @@ -415119,10 +418939,11 @@ function supportsHistory() { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkShouldUnlock", function() { return checkShouldUnlock; }); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("HZZ/"); -/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("HZZ/"); +/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__); + /** @@ -415133,35 +418954,44 @@ __webpack_require__.r(__webpack_exports__); * @returns {boolean} True if the vault should be unlocked */ var checkShouldUnlock = /*#__PURE__*/function () { - var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(vaultClient) { + var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(vaultClient) { var addCheckShouldUnlock, - _args = arguments; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - addCheckShouldUnlock = _args.length > 1 && _args[1] !== undefined ? _args[1] : function () { - return true; - }; - _context.next = 3; - return addCheckShouldUnlock(); - case 3: - _context.t0 = _context.sent; - if (!_context.t0) { - _context.next = 8; - break; - } - _context.next = 7; - return vaultClient.isLocked(); - case 7: - _context.t0 = _context.sent; - case 8: - return _context.abrupt("return", _context.t0); - case 9: - case "end": - return _context.stop(); + _args = arguments; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + addCheckShouldUnlock = _args.length > 1 && _args[1] !== undefined ? _args[1] : function () { + return true; + }; + _context.next = 3; + return addCheckShouldUnlock(); + + case 3: + _context.t0 = _context.sent; + + if (!_context.t0) { + _context.next = 8; + break; + } + + _context.next = 7; + return vaultClient.isLocked(); + + case 7: + _context.t0 = _context.sent; + + case 8: + return _context.abrupt("return", _context.t0); + + case 9: + case "end": + return _context.stop(); + } } }, _callee); })); + return function checkShouldUnlock(_x) { return _ref.apply(this, arguments); }; @@ -415450,14 +419280,14 @@ var map = array.map; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorProviders", function() { return TwoFactorProviders; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthService", function() { return AuthService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J58c"); -/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("J58c"); +/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wfLG"); /* harmony import */ var _models_domain_authResult__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("bjCw"); /* harmony import */ var _models_request_deviceRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("9LaN"); @@ -415467,6 +419297,8 @@ __webpack_require__.r(__webpack_exports__); + + var _TwoFactorProviders; var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { @@ -415475,6 +419307,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -415483,6 +419316,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -415490,9 +419324,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -415502,42 +419338,43 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument -var TwoFactorProviders = (_TwoFactorProviders = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Authenticator, { + +var TwoFactorProviders = (_TwoFactorProviders = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Authenticator, { type: _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Authenticator, name: null, description: null, priority: 1, sort: 1, premium: false -}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Yubikey, { +}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Yubikey, { type: _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Yubikey, name: null, description: null, priority: 3, sort: 2, premium: true -}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Duo, { +}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Duo, { type: _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Duo, name: 'Duo', description: null, priority: 2, sort: 3, premium: true -}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].OrganizationDuo, { +}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].OrganizationDuo, { type: _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].OrganizationDuo, name: 'Duo (Organization)', description: null, priority: 10, sort: 4, premium: false -}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].U2f, { +}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].U2f, { type: _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].U2f, name: null, description: null, priority: 4, sort: 5, premium: true -}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Email, { +}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_TwoFactorProviders, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Email, { type: _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Email, name: null, description: null, @@ -415548,7 +419385,9 @@ var TwoFactorProviders = (_TwoFactorProviders = {}, _babel_runtime_helpers_defin var AuthService = /*#__PURE__*/function () { function AuthService(cryptoService, apiService, userService, tokenService, appIdService, i18nService, platformUtilsService, messagingService, vaultTimeoutService) { var setCryptoKeys = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : true; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AuthService); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AuthService); + this.cryptoService = cryptoService; this.apiService = apiService; this.userService = userService; @@ -415561,7 +419400,8 @@ var AuthService = /*#__PURE__*/function () { this.setCryptoKeys = setCryptoKeys; this.selectedTwoFactorProviderType = null; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AuthService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(AuthService, [{ key: "init", value: function init() { TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Email].name = this.i18nService.t('emailTitle'); @@ -415579,27 +419419,33 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logIn", value: function logIn(email, masterPassword) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var key, hashedPassword; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - this.selectedTwoFactorProviderType = null; - _context.next = 3; - return this.makePreloginKey(masterPassword, email); - case 3: - key = _context.sent; - _context.next = 6; - return this.cryptoService.hashPassword(masterPassword, key); - case 6: - hashedPassword = _context.sent; - _context.next = 9; - return this.logInHelper(email, hashedPassword, null, null, null, null, null, key, null, null, null); - case 9: - return _context.abrupt("return", _context.sent); - case 10: - case "end": - return _context.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + this.selectedTwoFactorProviderType = null; + _context.next = 3; + return this.makePreloginKey(masterPassword, email); + + case 3: + key = _context.sent; + _context.next = 6; + return this.cryptoService.hashPassword(masterPassword, key); + + case 6: + hashedPassword = _context.sent; + _context.next = 9; + return this.logInHelper(email, hashedPassword, null, null, null, null, null, key, null, null, null); + + case 9: + return _context.abrupt("return", _context.sent); + + case 10: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -415607,18 +419453,22 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInSso", value: function logInSso(code, codeVerifier, redirectUrl) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee2() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - this.selectedTwoFactorProviderType = null; - _context2.next = 3; - return this.logInHelper(null, null, code, codeVerifier, redirectUrl, null, null, null, null, null, null); - case 3: - return _context2.abrupt("return", _context2.sent); - case 4: - case "end": - return _context2.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + this.selectedTwoFactorProviderType = null; + _context2.next = 3; + return this.logInHelper(null, null, code, codeVerifier, redirectUrl, null, null, null, null, null, null); + + case 3: + return _context2.abrupt("return", _context2.sent); + + case 4: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -415626,18 +419476,22 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInApiKey", value: function logInApiKey(clientId, clientSecret) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee3() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - this.selectedTwoFactorProviderType = null; - _context3.next = 3; - return this.logInHelper(null, null, null, null, null, clientId, clientSecret, null, null, null, null); - case 3: - return _context3.abrupt("return", _context3.sent); - case 4: - case "end": - return _context3.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + this.selectedTwoFactorProviderType = null; + _context3.next = 3; + return this.logInHelper(null, null, null, null, null, clientId, clientSecret, null, null, null, null); + + case 3: + return _context3.abrupt("return", _context3.sent); + + case 4: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -415645,17 +419499,21 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInTwoFactor", value: function logInTwoFactor(twoFactorProvider, twoFactorToken, remember) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee4() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return this.logInHelper(this.email, this.masterPasswordHash, this.code, this.codeVerifier, this.ssoRedirectUrl, this.clientId, this.clientSecret, this.key, twoFactorProvider, twoFactorToken, remember); - case 2: - return _context4.abrupt("return", _context4.sent); - case 3: - case "end": - return _context4.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _context4.next = 2; + return this.logInHelper(this.email, this.masterPasswordHash, this.code, this.codeVerifier, this.ssoRedirectUrl, this.clientId, this.clientSecret, this.key, twoFactorProvider, twoFactorToken, remember); + + case 2: + return _context4.abrupt("return", _context4.sent); + + case 3: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -415663,27 +419521,33 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInComplete", value: function logInComplete(email, masterPassword, twoFactorProvider, twoFactorToken, remember) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var key, hashedPassword; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - this.selectedTwoFactorProviderType = null; - _context5.next = 3; - return this.makePreloginKey(masterPassword, email); - case 3: - key = _context5.sent; - _context5.next = 6; - return this.cryptoService.hashPassword(masterPassword, key); - case 6: - hashedPassword = _context5.sent; - _context5.next = 9; - return this.logInHelper(email, hashedPassword, null, null, null, null, null, key, twoFactorProvider, twoFactorToken, remember); - case 9: - return _context5.abrupt("return", _context5.sent); - case 10: - case "end": - return _context5.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + this.selectedTwoFactorProviderType = null; + _context5.next = 3; + return this.makePreloginKey(masterPassword, email); + + case 3: + key = _context5.sent; + _context5.next = 6; + return this.cryptoService.hashPassword(masterPassword, key); + + case 6: + hashedPassword = _context5.sent; + _context5.next = 9; + return this.logInHelper(email, hashedPassword, null, null, null, null, null, key, twoFactorProvider, twoFactorToken, remember); + + case 9: + return _context5.abrupt("return", _context5.sent); + + case 10: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -415691,18 +419555,22 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInSsoComplete", value: function logInSsoComplete(code, codeVerifier, redirectUrl, twoFactorProvider, twoFactorToken, remember) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee6() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - this.selectedTwoFactorProviderType = null; - _context6.next = 3; - return this.logInHelper(null, null, code, codeVerifier, redirectUrl, null, null, null, twoFactorProvider, twoFactorToken, remember); - case 3: - return _context6.abrupt("return", _context6.sent); - case 4: - case "end": - return _context6.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + this.selectedTwoFactorProviderType = null; + _context6.next = 3; + return this.logInHelper(null, null, code, codeVerifier, redirectUrl, null, null, null, twoFactorProvider, twoFactorToken, remember); + + case 3: + return _context6.abrupt("return", _context6.sent); + + case 4: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -415710,18 +419578,22 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInApiKeyComplete", value: function logInApiKeyComplete(clientId, clientSecret, twoFactorProvider, twoFactorToken, remember) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee7() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - this.selectedTwoFactorProviderType = null; - _context7.next = 3; - return this.logInHelper(null, null, null, null, null, clientId, clientSecret, null, twoFactorProvider, twoFactorToken, remember); - case 3: - return _context7.abrupt("return", _context7.sent); - case 4: - case "end": - return _context7.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + this.selectedTwoFactorProviderType = null; + _context7.next = 3; + return this.logInHelper(null, null, null, null, null, clientId, clientSecret, null, twoFactorProvider, twoFactorToken, remember); + + case 3: + return _context7.abrupt("return", _context7.sent); + + case 4: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -415736,27 +419608,35 @@ var AuthService = /*#__PURE__*/function () { key: "getSupportedTwoFactorProviders", value: function getSupportedTwoFactorProviders(win) { var providers = []; + if (this.twoFactorProvidersData == null) { return providers; } + if (this.twoFactorProvidersData.has(_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].OrganizationDuo) && this.platformUtilsService.supportsDuo()) { providers.push(TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].OrganizationDuo]); } + if (this.twoFactorProvidersData.has(_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Authenticator)) { providers.push(TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Authenticator]); } + if (this.twoFactorProvidersData.has(_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Yubikey)) { providers.push(TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Yubikey]); } + if (this.twoFactorProvidersData.has(_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Duo) && this.platformUtilsService.supportsDuo()) { providers.push(TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Duo]); } + if (this.twoFactorProvidersData.has(_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].U2f) && this.platformUtilsService.supportsU2f(win)) { providers.push(TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].U2f]); } + if (this.twoFactorProvidersData.has(_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Email)) { providers.push(TwoFactorProviders[_enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Email]); } + return providers; } }, { @@ -415765,17 +419645,21 @@ var AuthService = /*#__PURE__*/function () { if (this.twoFactorProvidersData == null) { return null; } + if (this.selectedTwoFactorProviderType != null && this.twoFactorProvidersData.has(this.selectedTwoFactorProviderType)) { return this.selectedTwoFactorProviderType; } + var providerType = null; var providerPriority = -1; this.twoFactorProvidersData.forEach(function (value, type) { var provider = TwoFactorProviders[type]; + if (provider != null && provider.priority > providerPriority) { if (type === _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].U2f && !u2fSupported) { return; } + providerType = type; providerPriority = provider.priority; } @@ -415785,38 +419669,48 @@ var AuthService = /*#__PURE__*/function () { }, { key: "makePreloginKey", value: function makePreloginKey(masterPassword, email) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var kdf, kdfIterations, preloginResponse; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - email = email.trim().toLowerCase(); - kdf = null; - kdfIterations = null; - _context8.prev = 3; - _context8.next = 6; - return this.apiService.postPrelogin(new _models_request_preloginRequest__WEBPACK_IMPORTED_MODULE_8__["PreloginRequest"](email)); - case 6: - preloginResponse = _context8.sent; - if (preloginResponse != null) { - kdf = preloginResponse.kdf; - kdfIterations = preloginResponse.kdfIterations; - } - _context8.next = 14; - break; - case 10: - _context8.prev = 10; - _context8.t0 = _context8["catch"](3); - if (!(_context8.t0 == null || _context8.t0.statusCode !== 404)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + email = email.trim().toLowerCase(); + kdf = null; + kdfIterations = null; + _context8.prev = 3; + _context8.next = 6; + return this.apiService.postPrelogin(new _models_request_preloginRequest__WEBPACK_IMPORTED_MODULE_8__["PreloginRequest"](email)); + + case 6: + preloginResponse = _context8.sent; + + if (preloginResponse != null) { + kdf = preloginResponse.kdf; + kdfIterations = preloginResponse.kdfIterations; + } + _context8.next = 14; break; - } - throw _context8.t0; - case 14: - return _context8.abrupt("return", this.cryptoService.makeKey(masterPassword, email, kdf, kdfIterations)); - case 15: - case "end": - return _context8.stop(); + + case 10: + _context8.prev = 10; + _context8.t0 = _context8["catch"](3); + + if (!(_context8.t0 == null || _context8.t0.statusCode !== 404)) { + _context8.next = 14; + break; + } + + throw _context8.t0; + + case 14: + return _context8.abrupt("return", this.cryptoService.makeKey(masterPassword, email, kdf, kdfIterations)); + + case 15: + case "end": + return _context8.stop(); + } } }, _callee8, this, [[3, 10]]); })); @@ -415839,142 +419733,175 @@ var AuthService = /*#__PURE__*/function () { }, { key: "logInHelper", value: function logInHelper(email, hashedPassword, code, codeVerifier, redirectUrl, clientId, clientSecret, key, twoFactorProvider, twoFactorToken, remember) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee9() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { var storedTwoFactorToken, appId, deviceRequest, emailPassword, codeCodeVerifier, clientIdClientSecret, request, response, result, twoFactorResponse, tokenResponse, keyPair; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - _context9.next = 2; - return this.tokenService.getTwoFactorToken(email); - case 2: - storedTwoFactorToken = _context9.sent; - _context9.next = 5; - return this.appIdService.getAppId(); - case 5: - appId = _context9.sent; - deviceRequest = new _models_request_deviceRequest__WEBPACK_IMPORTED_MODULE_6__["DeviceRequest"](appId, this.platformUtilsService); - emailPassword = []; - codeCodeVerifier = []; - clientIdClientSecret = []; - if (email != null && hashedPassword != null) { - emailPassword = [email, hashedPassword]; - } else { - emailPassword = null; - } - if (code != null && codeVerifier != null && redirectUrl != null) { - codeCodeVerifier = [code, codeVerifier, redirectUrl]; - } else { - codeCodeVerifier = null; - } - if (clientId != null && clientSecret != null) { - clientIdClientSecret = [clientId, clientSecret]; - } else { - clientIdClientSecret = null; - } - if (twoFactorToken != null && twoFactorProvider != null) { - request = new _models_request_tokenRequest__WEBPACK_IMPORTED_MODULE_9__["TokenRequest"](emailPassword, codeCodeVerifier, clientIdClientSecret, twoFactorProvider, twoFactorToken, remember, deviceRequest); - } else if (storedTwoFactorToken != null) { - request = new _models_request_tokenRequest__WEBPACK_IMPORTED_MODULE_9__["TokenRequest"](emailPassword, codeCodeVerifier, clientIdClientSecret, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Remember, storedTwoFactorToken, false, deviceRequest); - } else { - request = new _models_request_tokenRequest__WEBPACK_IMPORTED_MODULE_9__["TokenRequest"](emailPassword, codeCodeVerifier, clientIdClientSecret, null, null, false, deviceRequest); - } - _context9.next = 16; - return this.apiService.postIdentityToken(request); - case 16: - response = _context9.sent; - this.clearState(); - result = new _models_domain_authResult__WEBPACK_IMPORTED_MODULE_5__["AuthResult"](); - result.twoFactor = !response.accessToken; - if (!result.twoFactor) { - _context9.next = 33; - break; - } - // two factor required - twoFactorResponse = response; - this.email = email; - this.masterPasswordHash = hashedPassword; - this.code = code; - this.codeVerifier = codeVerifier; - this.ssoRedirectUrl = redirectUrl; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.key = this.setCryptoKeys ? key : null; - this.twoFactorProvidersData = twoFactorResponse.twoFactorProviders2; - result.twoFactorProviders = twoFactorResponse.twoFactorProviders2; - return _context9.abrupt("return", result); - case 33: - tokenResponse = response; - result.resetMasterPassword = tokenResponse.resetMasterPassword; - if (!(tokenResponse.twoFactorToken != null)) { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + _context9.next = 2; + return this.tokenService.getTwoFactorToken(email); + + case 2: + storedTwoFactorToken = _context9.sent; + _context9.next = 5; + return this.appIdService.getAppId(); + + case 5: + appId = _context9.sent; + deviceRequest = new _models_request_deviceRequest__WEBPACK_IMPORTED_MODULE_6__["DeviceRequest"](appId, this.platformUtilsService); + emailPassword = []; + codeCodeVerifier = []; + clientIdClientSecret = []; + + if (email != null && hashedPassword != null) { + emailPassword = [email, hashedPassword]; + } else { + emailPassword = null; + } + + if (code != null && codeVerifier != null && redirectUrl != null) { + codeCodeVerifier = [code, codeVerifier, redirectUrl]; + } else { + codeCodeVerifier = null; + } + + if (clientId != null && clientSecret != null) { + clientIdClientSecret = [clientId, clientSecret]; + } else { + clientIdClientSecret = null; + } + + if (twoFactorToken != null && twoFactorProvider != null) { + request = new _models_request_tokenRequest__WEBPACK_IMPORTED_MODULE_9__["TokenRequest"](emailPassword, codeCodeVerifier, clientIdClientSecret, twoFactorProvider, twoFactorToken, remember, deviceRequest); + } else if (storedTwoFactorToken != null) { + request = new _models_request_tokenRequest__WEBPACK_IMPORTED_MODULE_9__["TokenRequest"](emailPassword, codeCodeVerifier, clientIdClientSecret, _enums_twoFactorProviderType__WEBPACK_IMPORTED_MODULE_4__["TwoFactorProviderType"].Remember, storedTwoFactorToken, false, deviceRequest); + } else { + request = new _models_request_tokenRequest__WEBPACK_IMPORTED_MODULE_9__["TokenRequest"](emailPassword, codeCodeVerifier, clientIdClientSecret, null, null, false, deviceRequest); + } + + _context9.next = 16; + return this.apiService.postIdentityToken(request); + + case 16: + response = _context9.sent; + this.clearState(); + result = new _models_domain_authResult__WEBPACK_IMPORTED_MODULE_5__["AuthResult"](); + result.twoFactor = !response.accessToken; + + if (!result.twoFactor) { + _context9.next = 33; + break; + } + + // two factor required + twoFactorResponse = response; + this.email = email; + this.masterPasswordHash = hashedPassword; + this.code = code; + this.codeVerifier = codeVerifier; + this.ssoRedirectUrl = redirectUrl; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.key = this.setCryptoKeys ? key : null; + this.twoFactorProvidersData = twoFactorResponse.twoFactorProviders2; + result.twoFactorProviders = twoFactorResponse.twoFactorProviders2; + return _context9.abrupt("return", result); + + case 33: + tokenResponse = response; + result.resetMasterPassword = tokenResponse.resetMasterPassword; + + if (!(tokenResponse.twoFactorToken != null)) { + _context9.next = 38; + break; + } + _context9.next = 38; - break; - } - _context9.next = 38; - return this.tokenService.setTwoFactorToken(tokenResponse.twoFactorToken, email); - case 38: - _context9.next = 40; - return this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken); - case 40: - _context9.next = 42; - return this.userService.setInformation(this.tokenService.getUserId(), this.tokenService.getEmail(), tokenResponse.kdf, tokenResponse.kdfIterations); - case 42: - if (!this.setCryptoKeys) { - _context9.next = 67; - break; - } - if (!(key != null)) { + return this.tokenService.setTwoFactorToken(tokenResponse.twoFactorToken, email); + + case 38: + _context9.next = 40; + return this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken); + + case 40: + _context9.next = 42; + return this.userService.setInformation(this.tokenService.getUserId(), this.tokenService.getEmail(), tokenResponse.kdf, tokenResponse.kdfIterations); + + case 42: + if (!this.setCryptoKeys) { + _context9.next = 67; + break; + } + + if (!(key != null)) { + _context9.next = 46; + break; + } + _context9.next = 46; - break; - } - _context9.next = 46; - return this.cryptoService.setKey(key); - case 46: - if (!(hashedPassword != null)) { + return this.cryptoService.setKey(key); + + case 46: + if (!(hashedPassword != null)) { + _context9.next = 49; + break; + } + _context9.next = 49; - break; - } - _context9.next = 49; - return this.cryptoService.setKeyHash(hashedPassword); - case 49: - if (!(code == null || tokenResponse.key != null)) { - _context9.next = 67; - break; - } - _context9.next = 52; - return this.cryptoService.setEncKey(tokenResponse.key); - case 52: - if (!(tokenResponse.privateKey == null)) { + return this.cryptoService.setKeyHash(hashedPassword); + + case 49: + if (!(code == null || tokenResponse.key != null)) { + _context9.next = 67; + break; + } + + _context9.next = 52; + return this.cryptoService.setEncKey(tokenResponse.key); + + case 52: + if (!(tokenResponse.privateKey == null)) { + _context9.next = 65; + break; + } + + _context9.prev = 53; + _context9.next = 56; + return this.cryptoService.makeKeyPair(); + + case 56: + keyPair = _context9.sent; + _context9.next = 59; + return this.apiService.postAccountKeys(new _models_request_keysRequest__WEBPACK_IMPORTED_MODULE_7__["KeysRequest"](keyPair[0], keyPair[1].encryptedString)); + + case 59: + tokenResponse.privateKey = keyPair[1].encryptedString; _context9.next = 65; break; - } - _context9.prev = 53; - _context9.next = 56; - return this.cryptoService.makeKeyPair(); - case 56: - keyPair = _context9.sent; - _context9.next = 59; - return this.apiService.postAccountKeys(new _models_request_keysRequest__WEBPACK_IMPORTED_MODULE_7__["KeysRequest"](keyPair[0], keyPair[1].encryptedString)); - case 59: - tokenResponse.privateKey = keyPair[1].encryptedString; - _context9.next = 65; - break; - case 62: - _context9.prev = 62; - _context9.t0 = _context9["catch"](53); - // tslint:disable-next-line - console.error(_context9.t0); - case 65: - _context9.next = 67; - return this.cryptoService.setEncPrivateKey(tokenResponse.privateKey); - case 67: - if (this.vaultTimeoutService != null) { - this.vaultTimeoutService.biometricLocked = false; - } - this.messagingService.send('loggedIn'); - return _context9.abrupt("return", result); - case 70: - case "end": - return _context9.stop(); + + case 62: + _context9.prev = 62; + _context9.t0 = _context9["catch"](53); + // tslint:disable-next-line + console.error(_context9.t0); + + case 65: + _context9.next = 67; + return this.cryptoService.setEncPrivateKey(tokenResponse.privateKey); + + case 67: + if (this.vaultTimeoutService != null) { + this.vaultTimeoutService.biometricLocked = false; + } + + this.messagingService.send('loggedIn'); + return _context9.abrupt("return", result); + + case 70: + case "end": + return _context9.stop(); + } } }, _callee9, this, [[53, 62]]); })); @@ -415994,6 +419921,7 @@ var AuthService = /*#__PURE__*/function () { this.selectedTwoFactorProviderType = null; } }]); + return AuthService; }(); @@ -419162,93 +423090,6 @@ module.exports = function (name) { }; -/***/ }), - -/***/ "xr2j": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _interopRequireDefault = __webpack_require__("jm00"); -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = exports.DeprecatedDivider = void 0; -var _defineProperty2 = _interopRequireDefault(__webpack_require__("J58c")); -var _extends2 = _interopRequireDefault(__webpack_require__("LGLP")); -var _react = _interopRequireWildcard(__webpack_require__("ivGQ")); -var _Divider = _interopRequireDefault(__webpack_require__("91rv")); -var _styles = __webpack_require__("/6lT"); -var _theme = __webpack_require__("+JGN"); -var _TextDivider = _interopRequireDefault(__webpack_require__("kCM+")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var _root; -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - return keys; -} -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - (0, _defineProperty2.default)(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - return target; -} -/** - * @desc If this component is provided a string children, it will render a `<TextDivider>` component - * and will handle the `textAlign` prop that accepts a `"center"` or undefined value - */ - -var Divider = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) { - return typeof props.children === 'string' ? /*#__PURE__*/_react.default.createElement(_TextDivider.default, (0, _extends2.default)({}, props, { - ref: ref - })) : /*#__PURE__*/_react.default.createElement(_Divider.default, (0, _extends2.default)({}, props, { - ref: ref - })); -}); -Divider.displayName = 'Divider'; -Divider.propTypes = _objectSpread({}, _TextDivider.default.propTypes); -var _default = Divider; -exports.default = _default; -var defaultValues = { - borderRadius: 6, - dialog: { - sm: { - padding: 16 - }, - md: { - padding: 32 - } - } -}; -var DeprecatedDivider = (0, _styles.withStyles)({ - /** - * calcs are made since we have defaultMargin on the Dialog so - * we need to remove the left margin and add the width of 2 margins - * in order to have the divider takes the full width of the Modal - */ - root: (_root = {}, (0, _defineProperty2.default)(_root, _theme.normalTheme.breakpoints.down('md'), { - width: "calc(100% + ".concat(defaultValues.dialog.sm.padding, "*2px)"), - marginLeft: "-".concat(defaultValues.dialog.sm.padding, "px") - }), (0, _defineProperty2.default)(_root, _theme.normalTheme.breakpoints.up('md'), { - width: "calc(100% + ".concat(defaultValues.dialog.md.padding, "*2px)"), - marginLeft: "-".concat(defaultValues.dialog.md.padding, "px") - }), _root) -})(Divider); -exports.DeprecatedDivider = DeprecatedDivider; - /***/ }), /***/ "xrOz": @@ -419261,12 +423102,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -419274,48 +423115,57 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var BlurCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BlurCsvImporter, _BaseImporter); - var _super = _createSuper(BlurCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(BlurCsvImporter, _BaseImporter); + function BlurCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BlurCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(BlurCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BlurCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { if (value.label === 'null') { value.label = null; } + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value.label, _this.getValueOrDefault(_this.nameFromUrl(value.domain), '--')); cipher.login.uris = _this.makeUriArray(value.domain); cipher.login.password = _this.getValueOrDefault(value.password); + if (_this.isNullOrWhitespace(value.email) && !_this.isNullOrWhitespace(value.username)) { cipher.login.username = value.username; } else { cipher.login.username = _this.getValueOrDefault(value.email); cipher.notes = _this.getValueOrDefault(value.username); } + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); result.success = true; return result; } }]); + return BlurCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -419328,34 +423178,31 @@ var BlurCsvImporter = /*#__PURE__*/function (_BaseImporter) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupResponse", function() { return GroupResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupDetailsResponse", function() { return GroupDetailsResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); -/* harmony import */ var _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("F3ch"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); +/* harmony import */ var _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("F3ch"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var GroupResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GroupResponse, _BaseResponse); - var _super = _createSuper(GroupResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(GroupResponse, _BaseResponse); + function GroupResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GroupResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GroupResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(GroupResponse).call(this, response)); _this.id = _this.getResponseProperty('Id'); _this.organizationId = _this.getResponseProperty('OrganizationId'); _this.name = _this.getResponseProperty('Name'); @@ -419363,25 +423210,32 @@ var GroupResponse = /*#__PURE__*/function (_BaseResponse) { _this.externalId = _this.getResponseProperty('ExternalId'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(GroupResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return GroupResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var GroupDetailsResponse = /*#__PURE__*/function (_GroupResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GroupDetailsResponse, _GroupResponse); - var _super2 = _createSuper(GroupDetailsResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(GroupDetailsResponse, _GroupResponse); + function GroupDetailsResponse(response) { var _this2; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GroupDetailsResponse); - _this2 = _super2.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GroupDetailsResponse); + + _this2 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(GroupDetailsResponse).call(this, response)); _this2.collections = []; + var collections = _this2.getResponseProperty('Collections'); + if (collections != null) { _this2.collections = collections.map(function (c) { - return new _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_6__["SelectionReadOnlyResponse"](c); + return new _selectionReadOnlyResponse__WEBPACK_IMPORTED_MODULE_5__["SelectionReadOnlyResponse"](c); }); } + return _this2; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(GroupDetailsResponse); + + return GroupDetailsResponse; }(GroupResponse); /***/ }), @@ -420711,12 +424565,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -420724,63 +424578,80 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var PasswordAgentCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PasswordAgentCsvImporter, _BaseImporter); - var _super = _createSuper(PasswordAgentCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordAgentCsvImporter, _BaseImporter); + function PasswordAgentCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordAgentCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordAgentCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordAgentCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, false); + if (results == null) { result.success = false; return result; } + var newVersion = true; results.forEach(function (value) { if (value.length !== 5 && value.length < 9) { return; } + var altFormat = value.length === 10 && value[0] === '0'; + var cipher = _this.initLoginCipher(); + cipher.name = _this.getValueOrDefault(value[altFormat ? 1 : 0], '--'); cipher.login.username = _this.getValueOrDefault(value[altFormat ? 2 : 1]); cipher.login.password = _this.getValueOrDefault(value[altFormat ? 3 : 2]); + if (value.length === 5) { newVersion = false; cipher.notes = _this.getValueOrDefault(value[4]); cipher.login.uris = _this.makeUriArray(value[3]); } else { var folder = _this.getValueOrDefault(value[altFormat ? 9 : 8], '(None)'); + var folderName = folder !== '(None)' ? folder.split('\\').join('/') : null; + if (folderName != null) { folderName = folder.split(' > ').join('/'); folderName = folder.split('>').join('/'); } + _this.processFolder(result, folderName); + cipher.notes = _this.getValueOrDefault(value[altFormat ? 5 : 3]); cipher.login.uris = _this.makeUriArray(value[4]); } + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (newVersion && this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return PasswordAgentCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -423876,12 +427747,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _baseImporter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("oKs7"); /* harmony import */ var _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("p57L"); @@ -423889,30 +427760,35 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var CodebookCsvImporter = /*#__PURE__*/function (_BaseImporter) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CodebookCsvImporter, _BaseImporter); - var _super = _createSuper(CodebookCsvImporter); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(CodebookCsvImporter, _BaseImporter); + function CodebookCsvImporter() { _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CodebookCsvImporter); - return _super.apply(this, arguments); + + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CodebookCsvImporter).apply(this, arguments)); } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CodebookCsvImporter, [{ key: "parse", value: function parse(data) { var _this = this; + var result = new _models_domain_importResult__WEBPACK_IMPORTED_MODULE_6__["ImportResult"](); var results = this.parseCsv(data, true); + if (results == null) { result.success = false; return result; } + results.forEach(function (value) { _this.processFolder(result, _this.getValueOrDefault(value.Category)); + var cipher = _this.initLoginCipher(); + cipher.favorite = _this.getValueOrDefault(value.Favorite) === 'True'; cipher.name = _this.getValueOrDefault(value.Entry, '--'); cipher.notes = _this.getValueOrDefault(value.Note); @@ -423920,24 +427796,35 @@ var CodebookCsvImporter = /*#__PURE__*/function (_BaseImporter) { cipher.login.password = _this.getValueOrDefault(value.Password); cipher.login.totp = _this.getValueOrDefault(value.TOTP); cipher.login.uris = _this.makeUriArray(value.Website); + if (!_this.isNullOrWhitespace(value.Username)) { _this.processKvp(cipher, 'Email', value.Email); } + _this.processKvp(cipher, 'Phone', value.Phone); + _this.processKvp(cipher, 'PIN', value.PIN); + _this.processKvp(cipher, 'Account', value.Account); + _this.processKvp(cipher, 'Date', value.Date); + _this.convertToNoteIfNeeded(cipher); + _this.cleanupCipher(cipher); + result.ciphers.push(cipher); }); + if (this.organization) { this.moveFoldersToCollections(result); } + result.success = true; return result; } }]); + return CodebookCsvImporter; }(_baseImporter__WEBPACK_IMPORTED_MODULE_5__["BaseImporter"]); @@ -423963,37 +427850,35 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TwoFactorRecoverResponse", function() { return TwoFactorRecoverResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var TwoFactorRecoverResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorRecoverResponse, _BaseResponse); - var _super = _createSuper(TwoFactorRecoverResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(TwoFactorRecoverResponse, _BaseResponse); + function TwoFactorRecoverResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TwoFactorRecoverResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TwoFactorRecoverResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(TwoFactorRecoverResponse).call(this, response)); _this.code = _this.getResponseProperty('Code'); return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TwoFactorRecoverResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return TwoFactorRecoverResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -424234,15 +428119,12 @@ module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function( "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecryptParameters", function() { return DecryptParameters; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -var DecryptParameters = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function DecryptParameters() { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DecryptParameters); -}); +var DecryptParameters = function DecryptParameters() { + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DecryptParameters); +}; /***/ }), @@ -424694,6 +428576,7 @@ __webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CipherType", function() { return CipherType; }); var CipherType; + (function (CipherType) { CipherType[CipherType["Login"] = 1] = "Login"; CipherType[CipherType["SecureNote"] = 2] = "SecureNote"; @@ -424807,12 +428690,12 @@ var deepPurple = { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordGenerationService", function() { return PasswordGenerationService; }); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("hJxD"); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("hJxD"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Zvb3"); +/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _stubs_null_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("YS9N"); /* harmony import */ var _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Zk9R"); /* harmony import */ var _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("XnZx"); @@ -424821,12 +428704,14 @@ __webpack_require__.r(__webpack_exports__); + var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { @@ -424835,6 +428720,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); @@ -424842,9 +428728,11 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -424854,6 +428742,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument + var DefaultOptions = { length: 14, ambiguous: false, @@ -424878,131 +428767,172 @@ var Keys = { var MaxPasswordsInHistory = 100; var PasswordGenerationService = /*#__PURE__*/function () { function PasswordGenerationService(cryptoService, storageService, policyService) { - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PasswordGenerationService); + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PasswordGenerationService); + this.cryptoService = cryptoService; this.storageService = storageService; this.policyService = policyService; } - _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordGenerationService, [{ + + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(PasswordGenerationService, [{ key: "generatePassword", value: function generatePassword(options) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { var o, minLength, positions, i, _i, _i2, _i3, allCharSet, lowercaseCharSet, uppercaseCharSet, numberCharSet, specialCharSet, password, _i4, positionChars, randomCharIndex; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - // overload defaults with given options - o = Object.assign({}, DefaultOptions, options); - if (!(o.type === 'passphrase')) { - _context.next = 3; - break; - } - return _context.abrupt("return", this.generatePassphrase(options)); - case 3: - // sanitize - this.sanitizePasswordLength(o, true); - minLength = o.minUppercase + o.minLowercase + o.minNumber + o.minSpecial; - if (o.length < minLength) { - o.length = minLength; - } - positions = []; - if (o.lowercase && o.minLowercase > 0) { - for (i = 0; i < o.minLowercase; i++) { - positions.push('l'); + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + // overload defaults with given options + o = Object.assign({}, DefaultOptions, options); + + if (!(o.type === 'passphrase')) { + _context.next = 3; + break; } - } - if (o.uppercase && o.minUppercase > 0) { - for (_i = 0; _i < o.minUppercase; _i++) { - positions.push('u'); + + return _context.abrupt("return", this.generatePassphrase(options)); + + case 3: + // sanitize + this.sanitizePasswordLength(o, true); + minLength = o.minUppercase + o.minLowercase + o.minNumber + o.minSpecial; + + if (o.length < minLength) { + o.length = minLength; } - } - if (o.number && o.minNumber > 0) { - for (_i2 = 0; _i2 < o.minNumber; _i2++) { - positions.push('n'); + + positions = []; + + if (o.lowercase && o.minLowercase > 0) { + for (i = 0; i < o.minLowercase; i++) { + positions.push('l'); + } } - } - if (o.special && o.minSpecial > 0) { - for (_i3 = 0; _i3 < o.minSpecial; _i3++) { - positions.push('s'); + + if (o.uppercase && o.minUppercase > 0) { + for (_i = 0; _i < o.minUppercase; _i++) { + positions.push('u'); + } } - } - while (positions.length < o.length) { - positions.push('a'); - } - // shuffle - _context.next = 14; - return this.shuffleArray(positions); - case 14: - // build out the char sets - allCharSet = ''; - lowercaseCharSet = 'abcdefghijkmnopqrstuvwxyz'; - if (o.ambiguous) { - lowercaseCharSet += 'l'; - } - if (o.lowercase) { - allCharSet += lowercaseCharSet; - } - uppercaseCharSet = 'ABCDEFGHJKLMNPQRSTUVWXYZ'; - if (o.ambiguous) { - uppercaseCharSet += 'IO'; - } - if (o.uppercase) { - allCharSet += uppercaseCharSet; - } - numberCharSet = '23456789'; - if (o.ambiguous) { - numberCharSet += '01'; - } - if (o.number) { - allCharSet += numberCharSet; - } - specialCharSet = '!@#$%^&*'; - if (o.special) { - allCharSet += specialCharSet; - } - password = ''; - _i4 = 0; - case 28: - if (!(_i4 < o.length)) { - _context.next = 51; + + if (o.number && o.minNumber > 0) { + for (_i2 = 0; _i2 < o.minNumber; _i2++) { + positions.push('n'); + } + } + + if (o.special && o.minSpecial > 0) { + for (_i3 = 0; _i3 < o.minSpecial; _i3++) { + positions.push('s'); + } + } + + while (positions.length < o.length) { + positions.push('a'); + } // shuffle + + + _context.next = 14; + return this.shuffleArray(positions); + + case 14: + // build out the char sets + allCharSet = ''; + lowercaseCharSet = 'abcdefghijkmnopqrstuvwxyz'; + + if (o.ambiguous) { + lowercaseCharSet += 'l'; + } + + if (o.lowercase) { + allCharSet += lowercaseCharSet; + } + + uppercaseCharSet = 'ABCDEFGHJKLMNPQRSTUVWXYZ'; + + if (o.ambiguous) { + uppercaseCharSet += 'IO'; + } + + if (o.uppercase) { + allCharSet += uppercaseCharSet; + } + + numberCharSet = '23456789'; + + if (o.ambiguous) { + numberCharSet += '01'; + } + + if (o.number) { + allCharSet += numberCharSet; + } + + specialCharSet = '!@#$%^&*'; + + if (o.special) { + allCharSet += specialCharSet; + } + + password = ''; + _i4 = 0; + + case 28: + if (!(_i4 < o.length)) { + _context.next = 51; + break; + } + + positionChars = void 0; + _context.t0 = positions[_i4]; + _context.next = _context.t0 === 'l' ? 33 : _context.t0 === 'u' ? 35 : _context.t0 === 'n' ? 37 : _context.t0 === 's' ? 39 : _context.t0 === 'a' ? 41 : 43; break; - } - positionChars = void 0; - _context.t0 = positions[_i4]; - _context.next = _context.t0 === 'l' ? 33 : _context.t0 === 'u' ? 35 : _context.t0 === 'n' ? 37 : _context.t0 === 's' ? 39 : _context.t0 === 'a' ? 41 : 43; - break; - case 33: - positionChars = lowercaseCharSet; - return _context.abrupt("break", 44); - case 35: - positionChars = uppercaseCharSet; - return _context.abrupt("break", 44); - case 37: - positionChars = numberCharSet; - return _context.abrupt("break", 44); - case 39: - positionChars = specialCharSet; - return _context.abrupt("break", 44); - case 41: - positionChars = allCharSet; - return _context.abrupt("break", 44); - case 43: - return _context.abrupt("break", 44); - case 44: - _context.next = 46; - return this.cryptoService.randomNumber(0, positionChars.length - 1); - case 46: - randomCharIndex = _context.sent; - password += positionChars.charAt(randomCharIndex); - case 48: - _i4++; - _context.next = 28; - break; - case 51: - return _context.abrupt("return", password); - case 52: - case "end": - return _context.stop(); + + case 33: + positionChars = lowercaseCharSet; + return _context.abrupt("break", 44); + + case 35: + positionChars = uppercaseCharSet; + return _context.abrupt("break", 44); + + case 37: + positionChars = numberCharSet; + return _context.abrupt("break", 44); + + case 39: + positionChars = specialCharSet; + return _context.abrupt("break", 44); + + case 41: + positionChars = allCharSet; + return _context.abrupt("break", 44); + + case 43: + return _context.abrupt("break", 44); + + case 44: + _context.next = 46; + return this.cryptoService.randomNumber(0, positionChars.length - 1); + + case 46: + randomCharIndex = _context.sent; + password += positionChars.charAt(randomCharIndex); + + case 48: + _i4++; + _context.next = 28; + break; + + case 51: + return _context.abrupt("return", password); + + case 52: + case "end": + return _context.stop(); + } } }, _callee, this); })); @@ -425010,57 +428940,73 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "generatePassphrase", value: function generatePassphrase(options) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() { var o, listLength, wordList, i, wordIndex; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - o = Object.assign({}, DefaultOptions, options); - if (o.numWords == null || o.numWords <= 2) { - o.numWords = DefaultOptions.numWords; - } - if (o.wordSeparator == null || o.wordSeparator.length === 0 || o.wordSeparator.length > 1) { - o.wordSeparator = ' '; - } - if (o.capitalize == null) { - o.capitalize = false; - } - if (o.includeNumber == null) { - o.includeNumber = false; - } - listLength = _stubs_null_js__WEBPACK_IMPORTED_MODULE_3__["EEFLongWordList"].length - 1; - wordList = new Array(o.numWords); - i = 0; - case 8: - if (!(i < o.numWords)) { - _context2.next = 16; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + o = Object.assign({}, DefaultOptions, options); + + if (o.numWords == null || o.numWords <= 2) { + o.numWords = DefaultOptions.numWords; + } + + if (o.wordSeparator == null || o.wordSeparator.length === 0 || o.wordSeparator.length > 1) { + o.wordSeparator = ' '; + } + + if (o.capitalize == null) { + o.capitalize = false; + } + + if (o.includeNumber == null) { + o.includeNumber = false; + } + + listLength = _stubs_null_js__WEBPACK_IMPORTED_MODULE_3__["EEFLongWordList"].length - 1; + wordList = new Array(o.numWords); + i = 0; + + case 8: + if (!(i < o.numWords)) { + _context2.next = 16; + break; + } + + _context2.next = 11; + return this.cryptoService.randomNumber(0, listLength); + + case 11: + wordIndex = _context2.sent; + + if (o.capitalize) { + wordList[i] = this.capitalize(_stubs_null_js__WEBPACK_IMPORTED_MODULE_3__["EEFLongWordList"][wordIndex]); + } else { + wordList[i] = _stubs_null_js__WEBPACK_IMPORTED_MODULE_3__["EEFLongWordList"][wordIndex]; + } + + case 13: + i++; + _context2.next = 8; break; - } - _context2.next = 11; - return this.cryptoService.randomNumber(0, listLength); - case 11: - wordIndex = _context2.sent; - if (o.capitalize) { - wordList[i] = this.capitalize(_stubs_null_js__WEBPACK_IMPORTED_MODULE_3__["EEFLongWordList"][wordIndex]); - } else { - wordList[i] = _stubs_null_js__WEBPACK_IMPORTED_MODULE_3__["EEFLongWordList"][wordIndex]; - } - case 13: - i++; - _context2.next = 8; - break; - case 16: - if (!o.includeNumber) { + + case 16: + if (!o.includeNumber) { + _context2.next = 19; + break; + } + _context2.next = 19; - break; - } - _context2.next = 19; - return this.appendRandomNumberToRandomWord(wordList); - case 19: - return _context2.abrupt("return", wordList.join(o.wordSeparator)); - case 20: - case "end": - return _context2.stop(); + return this.appendRandomNumberToRandomWord(wordList); + + case 19: + return _context2.abrupt("return", wordList.join(o.wordSeparator)); + + case 20: + case "end": + return _context2.stop(); + } } }, _callee2, this); })); @@ -425068,34 +429014,42 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "getOptions", value: function getOptions() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() { var options, enforcedOptions; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - if (!(this.optionsCache == null)) { - _context3.next = 5; - break; - } - _context3.next = 3; - return this.storageService.get(Keys.options); - case 3: - options = _context3.sent; - if (options == null) { - this.optionsCache = DefaultOptions; - } else { - this.optionsCache = Object.assign({}, DefaultOptions, options); - } - case 5: - _context3.next = 7; - return this.enforcePasswordGeneratorPoliciesOnOptions(this.optionsCache); - case 7: - enforcedOptions = _context3.sent; - this.optionsCache = enforcedOptions[0]; - return _context3.abrupt("return", [this.optionsCache, enforcedOptions[1]]); - case 10: - case "end": - return _context3.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + if (!(this.optionsCache == null)) { + _context3.next = 5; + break; + } + + _context3.next = 3; + return this.storageService.get(Keys.options); + + case 3: + options = _context3.sent; + + if (options == null) { + this.optionsCache = DefaultOptions; + } else { + this.optionsCache = Object.assign({}, DefaultOptions, options); + } + + case 5: + _context3.next = 7; + return this.enforcePasswordGeneratorPoliciesOnOptions(this.optionsCache); + + case 7: + enforcedOptions = _context3.sent; + this.optionsCache = enforcedOptions[0]; + return _context3.abrupt("return", [this.optionsCache, enforcedOptions[1]]); + + case 10: + case "end": + return _context3.stop(); + } } }, _callee3, this); })); @@ -425103,62 +429057,79 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "enforcePasswordGeneratorPoliciesOnOptions", value: function enforcePasswordGeneratorPoliciesOnOptions(options) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4() { var enforcedPolicyOptions; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return this.getPasswordGeneratorPolicyOptions(); - case 2: - enforcedPolicyOptions = _context4.sent; - if (enforcedPolicyOptions != null) { - if (options.length < enforcedPolicyOptions.minLength) { - options.length = enforcedPolicyOptions.minLength; - } - if (enforcedPolicyOptions.useUppercase) { - options.uppercase = true; - } - if (enforcedPolicyOptions.useLowercase) { - options.lowercase = true; - } - if (enforcedPolicyOptions.useNumbers) { - options.number = true; - } - if (options.minNumber < enforcedPolicyOptions.numberCount) { - options.minNumber = enforcedPolicyOptions.numberCount; - } - if (enforcedPolicyOptions.useSpecial) { - options.special = true; - } - if (options.minSpecial < enforcedPolicyOptions.specialCount) { - options.minSpecial = enforcedPolicyOptions.specialCount; - } - // Must normalize these fields because the receiving call expects all options to pass the current rules - if (options.minSpecial + options.minNumber > options.length) { - options.minSpecial = options.length - options.minNumber; - } - if (options.numWords < enforcedPolicyOptions.minNumberWords) { - options.numWords = enforcedPolicyOptions.minNumberWords; - } - if (enforcedPolicyOptions.capitalize) { - options.capitalize = true; - } - if (enforcedPolicyOptions.includeNumber) { - options.includeNumber = true; - } - // Force default type if password/passphrase selected via policy - if (enforcedPolicyOptions.defaultType === 'password' || enforcedPolicyOptions.defaultType === 'passphrase') { - options.type = enforcedPolicyOptions.defaultType; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _context4.next = 2; + return this.getPasswordGeneratorPolicyOptions(); + + case 2: + enforcedPolicyOptions = _context4.sent; + + if (enforcedPolicyOptions != null) { + if (options.length < enforcedPolicyOptions.minLength) { + options.length = enforcedPolicyOptions.minLength; + } + + if (enforcedPolicyOptions.useUppercase) { + options.uppercase = true; + } + + if (enforcedPolicyOptions.useLowercase) { + options.lowercase = true; + } + + if (enforcedPolicyOptions.useNumbers) { + options.number = true; + } + + if (options.minNumber < enforcedPolicyOptions.numberCount) { + options.minNumber = enforcedPolicyOptions.numberCount; + } + + if (enforcedPolicyOptions.useSpecial) { + options.special = true; + } + + if (options.minSpecial < enforcedPolicyOptions.specialCount) { + options.minSpecial = enforcedPolicyOptions.specialCount; + } // Must normalize these fields because the receiving call expects all options to pass the current rules + + + if (options.minSpecial + options.minNumber > options.length) { + options.minSpecial = options.length - options.minNumber; + } + + if (options.numWords < enforcedPolicyOptions.minNumberWords) { + options.numWords = enforcedPolicyOptions.minNumberWords; + } + + if (enforcedPolicyOptions.capitalize) { + options.capitalize = true; + } + + if (enforcedPolicyOptions.includeNumber) { + options.includeNumber = true; + } // Force default type if password/passphrase selected via policy + + + if (enforcedPolicyOptions.defaultType === 'password' || enforcedPolicyOptions.defaultType === 'passphrase') { + options.type = enforcedPolicyOptions.defaultType; + } + } else { + // UI layer expects an instantiated object to prevent more explicit null checks + enforcedPolicyOptions = new _models_domain_passwordGeneratorPolicyOptions__WEBPACK_IMPORTED_MODULE_6__["PasswordGeneratorPolicyOptions"](); } - } else { - // UI layer expects an instantiated object to prevent more explicit null checks - enforcedPolicyOptions = new _models_domain_passwordGeneratorPolicyOptions__WEBPACK_IMPORTED_MODULE_6__["PasswordGeneratorPolicyOptions"](); - } - return _context4.abrupt("return", [options, enforcedPolicyOptions]); - case 5: - case "end": - return _context4.stop(); + + return _context4.abrupt("return", [options, enforcedPolicyOptions]); + + case 5: + case "end": + return _context4.stop(); + } } }, _callee4, this); })); @@ -425166,78 +429137,100 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "getPasswordGeneratorPolicyOptions", value: function getPasswordGeneratorPolicyOptions() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee5() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5() { var policies, enforcedOptions; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { - case 0: - if (!(this.policyService == null)) { - _context5.next = 4; - break; - } - _context5.t0 = null; - _context5.next = 7; - break; - case 4: - _context5.next = 6; - return this.policyService.getAll(_enums_policyType__WEBPACK_IMPORTED_MODULE_7__["PolicyType"].PasswordGenerator); - case 6: - _context5.t0 = _context5.sent; - case 7: - policies = _context5.t0; - enforcedOptions = null; - if (!(policies == null || policies.length === 0)) { - _context5.next = 11; - break; - } - return _context5.abrupt("return", enforcedOptions); - case 11: - policies.forEach(function (currentPolicy) { - if (!currentPolicy.enabled || currentPolicy.data == null) { - return; - } - if (enforcedOptions == null) { - enforcedOptions = new _models_domain_passwordGeneratorPolicyOptions__WEBPACK_IMPORTED_MODULE_6__["PasswordGeneratorPolicyOptions"](); - } - // Password wins in multi-org collisions - if (currentPolicy.data.defaultType != null && enforcedOptions.defaultType !== 'password') { - enforcedOptions.defaultType = currentPolicy.data.defaultType; - } - if (currentPolicy.data.minLength != null && currentPolicy.data.minLength > enforcedOptions.minLength) { - enforcedOptions.minLength = currentPolicy.data.minLength; - } - if (currentPolicy.data.useUpper) { - enforcedOptions.useUppercase = true; - } - if (currentPolicy.data.useLower) { - enforcedOptions.useLowercase = true; - } - if (currentPolicy.data.useNumbers) { - enforcedOptions.useNumbers = true; - } - if (currentPolicy.data.minNumbers != null && currentPolicy.data.minNumbers > enforcedOptions.numberCount) { - enforcedOptions.numberCount = currentPolicy.data.minNumbers; - } - if (currentPolicy.data.useSpecial) { - enforcedOptions.useSpecial = true; - } - if (currentPolicy.data.minSpecial != null && currentPolicy.data.minSpecial > enforcedOptions.specialCount) { - enforcedOptions.specialCount = currentPolicy.data.minSpecial; - } - if (currentPolicy.data.minNumberWords != null && currentPolicy.data.minNumberWords > enforcedOptions.minNumberWords) { - enforcedOptions.minNumberWords = currentPolicy.data.minNumberWords; - } - if (currentPolicy.data.capitalize) { - enforcedOptions.capitalize = true; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + if (!(this.policyService == null)) { + _context5.next = 4; + break; } - if (currentPolicy.data.includeNumber) { - enforcedOptions.includeNumber = true; + + _context5.t0 = null; + _context5.next = 7; + break; + + case 4: + _context5.next = 6; + return this.policyService.getAll(_enums_policyType__WEBPACK_IMPORTED_MODULE_7__["PolicyType"].PasswordGenerator); + + case 6: + _context5.t0 = _context5.sent; + + case 7: + policies = _context5.t0; + enforcedOptions = null; + + if (!(policies == null || policies.length === 0)) { + _context5.next = 11; + break; } - }); - return _context5.abrupt("return", enforcedOptions); - case 13: - case "end": - return _context5.stop(); + + return _context5.abrupt("return", enforcedOptions); + + case 11: + policies.forEach(function (currentPolicy) { + if (!currentPolicy.enabled || currentPolicy.data == null) { + return; + } + + if (enforcedOptions == null) { + enforcedOptions = new _models_domain_passwordGeneratorPolicyOptions__WEBPACK_IMPORTED_MODULE_6__["PasswordGeneratorPolicyOptions"](); + } // Password wins in multi-org collisions + + + if (currentPolicy.data.defaultType != null && enforcedOptions.defaultType !== 'password') { + enforcedOptions.defaultType = currentPolicy.data.defaultType; + } + + if (currentPolicy.data.minLength != null && currentPolicy.data.minLength > enforcedOptions.minLength) { + enforcedOptions.minLength = currentPolicy.data.minLength; + } + + if (currentPolicy.data.useUpper) { + enforcedOptions.useUppercase = true; + } + + if (currentPolicy.data.useLower) { + enforcedOptions.useLowercase = true; + } + + if (currentPolicy.data.useNumbers) { + enforcedOptions.useNumbers = true; + } + + if (currentPolicy.data.minNumbers != null && currentPolicy.data.minNumbers > enforcedOptions.numberCount) { + enforcedOptions.numberCount = currentPolicy.data.minNumbers; + } + + if (currentPolicy.data.useSpecial) { + enforcedOptions.useSpecial = true; + } + + if (currentPolicy.data.minSpecial != null && currentPolicy.data.minSpecial > enforcedOptions.specialCount) { + enforcedOptions.specialCount = currentPolicy.data.minSpecial; + } + + if (currentPolicy.data.minNumberWords != null && currentPolicy.data.minNumberWords > enforcedOptions.minNumberWords) { + enforcedOptions.minNumberWords = currentPolicy.data.minNumberWords; + } + + if (currentPolicy.data.capitalize) { + enforcedOptions.capitalize = true; + } + + if (currentPolicy.data.includeNumber) { + enforcedOptions.includeNumber = true; + } + }); + return _context5.abrupt("return", enforcedOptions); + + case 13: + case "end": + return _context5.stop(); + } } }, _callee5, this); })); @@ -425245,17 +429238,21 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "saveOptions", value: function saveOptions(options) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee6() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee6$(_context6) { - while (1) switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return this.storageService.save(Keys.options, options); - case 2: - this.optionsCache = options; - case 3: - case "end": - return _context6.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + _context6.next = 2; + return this.storageService.save(Keys.options, options); + + case 2: + this.optionsCache = options; + + case 3: + case "end": + return _context6.stop(); + } } }, _callee6, this); })); @@ -425263,38 +429260,49 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "getHistory", value: function getHistory() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee7() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() { var hasKey, encrypted; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee7$(_context7) { - while (1) switch (_context7.prev = _context7.next) { - case 0: - _context7.next = 2; - return this.cryptoService.hasKey(); - case 2: - hasKey = _context7.sent; - if (hasKey) { - _context7.next = 5; - break; - } - return _context7.abrupt("return", new Array()); - case 5: - if (this.history) { - _context7.next = 12; - break; - } - _context7.next = 8; - return this.storageService.get(Keys.history); - case 8: - encrypted = _context7.sent; - _context7.next = 11; - return this.decryptHistory(encrypted); - case 11: - this.history = _context7.sent; - case 12: - return _context7.abrupt("return", this.history || new Array()); - case 13: - case "end": - return _context7.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return this.cryptoService.hasKey(); + + case 2: + hasKey = _context7.sent; + + if (hasKey) { + _context7.next = 5; + break; + } + + return _context7.abrupt("return", new Array()); + + case 5: + if (this.history) { + _context7.next = 12; + break; + } + + _context7.next = 8; + return this.storageService.get(Keys.history); + + case 8: + encrypted = _context7.sent; + _context7.next = 11; + return this.decryptHistory(encrypted); + + case 11: + this.history = _context7.sent; + + case 12: + return _context7.abrupt("return", this.history || new Array()); + + case 13: + case "end": + return _context7.stop(); + } } }, _callee7, this); })); @@ -425302,47 +429310,61 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "addHistory", value: function addHistory(password) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee8() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee8() { var hasKey, currentHistory, newHistory; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee8$(_context8) { - while (1) switch (_context8.prev = _context8.next) { - case 0: - _context8.next = 2; - return this.cryptoService.hasKey(); - case 2: - hasKey = _context8.sent; - if (hasKey) { - _context8.next = 5; - break; - } - return _context8.abrupt("return"); - case 5: - _context8.next = 7; - return this.getHistory(); - case 7: - currentHistory = _context8.sent; - if (!this.matchesPrevious(password, currentHistory)) { - _context8.next = 10; - break; - } - return _context8.abrupt("return"); - case 10: - currentHistory.unshift(new _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__["GeneratedPasswordHistory"](password, Date.now())); - // Remove old items. - if (currentHistory.length > MaxPasswordsInHistory) { - currentHistory.pop(); - } - _context8.next = 14; - return this.encryptHistory(currentHistory); - case 14: - newHistory = _context8.sent; - _context8.next = 17; - return this.storageService.save(Keys.history, newHistory); - case 17: - return _context8.abrupt("return", _context8.sent); - case 18: - case "end": - return _context8.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee8$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + _context8.next = 2; + return this.cryptoService.hasKey(); + + case 2: + hasKey = _context8.sent; + + if (hasKey) { + _context8.next = 5; + break; + } + + return _context8.abrupt("return"); + + case 5: + _context8.next = 7; + return this.getHistory(); + + case 7: + currentHistory = _context8.sent; + + if (!this.matchesPrevious(password, currentHistory)) { + _context8.next = 10; + break; + } + + return _context8.abrupt("return"); + + case 10: + currentHistory.unshift(new _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__["GeneratedPasswordHistory"](password, Date.now())); // Remove old items. + + if (currentHistory.length > MaxPasswordsInHistory) { + currentHistory.pop(); + } + + _context8.next = 14; + return this.encryptHistory(currentHistory); + + case 14: + newHistory = _context8.sent; + _context8.next = 17; + return this.storageService.save(Keys.history, newHistory); + + case 17: + return _context8.abrupt("return", _context8.sent); + + case 18: + case "end": + return _context8.stop(); + } } }, _callee8, this); })); @@ -425350,18 +429372,22 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "clear", value: function clear() { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee9() { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee9$(_context9) { - while (1) switch (_context9.prev = _context9.next) { - case 0: - this.history = []; - _context9.next = 3; - return this.storageService.remove(Keys.history); - case 3: - return _context9.abrupt("return", _context9.sent); - case 4: - case "end": - return _context9.stop(); + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee9() { + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee9$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + this.history = []; + _context9.next = 3; + return this.storageService.remove(Keys.history); + + case 3: + return _context9.abrupt("return", _context9.sent); + + case 4: + case "end": + return _context9.stop(); + } } }, _callee9, this); })); @@ -425370,14 +429396,18 @@ var PasswordGenerationService = /*#__PURE__*/function () { key: "passwordStrength", value: function passwordStrength(password) { var userInputs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + if (password == null || password.length === 0) { return null; } + var globalUserInputs = ['bitwarden', 'bit', 'warden']; + if (userInputs != null && userInputs.length > 0) { globalUserInputs = globalUserInputs.concat(userInputs); - } - // Use a hash set to get rid of any duplicate user inputs + } // Use a hash set to get rid of any duplicate user inputs + + var finalUserInputs = Array.from(new Set(globalUserInputs)); var result = _stubs_null_js__WEBPACK_IMPORTED_MODULE_3__(password, finalUserInputs); return result; @@ -425387,14 +429417,17 @@ var PasswordGenerationService = /*#__PURE__*/function () { value: function normalizeOptions(options, enforcedPolicyOptions) { options.minLowercase = 0; options.minUppercase = 0; + if (!options.length || options.length < 5) { options.length = 5; } else if (options.length > 128) { options.length = 128; } + if (options.length < enforcedPolicyOptions.minLength) { options.length = enforcedPolicyOptions.minLength; } + if (!options.minNumber) { options.minNumber = 0; } else if (options.minNumber > options.length) { @@ -425402,9 +429435,11 @@ var PasswordGenerationService = /*#__PURE__*/function () { } else if (options.minNumber > 9) { options.minNumber = 9; } + if (options.minNumber < enforcedPolicyOptions.numberCount) { options.minNumber = enforcedPolicyOptions.numberCount; } + if (!options.minSpecial) { options.minSpecial = 0; } else if (options.minSpecial > options.length) { @@ -425412,23 +429447,29 @@ var PasswordGenerationService = /*#__PURE__*/function () { } else if (options.minSpecial > 9) { options.minSpecial = 9; } + if (options.minSpecial < enforcedPolicyOptions.specialCount) { options.minSpecial = enforcedPolicyOptions.specialCount; } + if (options.minSpecial + options.minNumber > options.length) { options.minSpecial = options.length - options.minNumber; } + if (options.numWords == null || options.length < 3) { options.numWords = 3; } else if (options.numWords > 20) { options.numWords = 20; } + if (options.numWords < enforcedPolicyOptions.minNumberWords) { options.numWords = enforcedPolicyOptions.minNumberWords; } + if (options.wordSeparator != null && options.wordSeparator.length > 1) { options.wordSeparator = options.wordSeparator[0]; } + this.sanitizePasswordLength(options, false); } }, { @@ -425439,29 +429480,36 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "appendRandomNumberToRandomWord", value: function appendRandomNumberToRandomWord(wordList) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee10() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee10() { var index, num; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee10$(_context10) { - while (1) switch (_context10.prev = _context10.next) { - case 0: - if (!(wordList == null || wordList.length <= 0)) { - _context10.next = 2; - break; - } - return _context10.abrupt("return"); - case 2: - _context10.next = 4; - return this.cryptoService.randomNumber(0, wordList.length - 1); - case 4: - index = _context10.sent; - _context10.next = 7; - return this.cryptoService.randomNumber(0, 9); - case 7: - num = _context10.sent; - wordList[index] = wordList[index] + num; - case 9: - case "end": - return _context10.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee10$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + if (!(wordList == null || wordList.length <= 0)) { + _context10.next = 2; + break; + } + + return _context10.abrupt("return"); + + case 2: + _context10.next = 4; + return this.cryptoService.randomNumber(0, wordList.length - 1); + + case 4: + index = _context10.sent; + _context10.next = 7; + return this.cryptoService.randomNumber(0, 9); + + case 7: + num = _context10.sent; + wordList[index] = wordList[index] + num; + + case 9: + case "end": + return _context10.stop(); + } } }, _callee10, this); })); @@ -425469,43 +429517,54 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "encryptHistory", value: function encryptHistory(history) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee12() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee12() { var _this = this; + var promises; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee12$(_context12) { - while (1) switch (_context12.prev = _context12.next) { - case 0: - if (!(history == null || history.length === 0)) { - _context12.next = 2; - break; - } - return _context12.abrupt("return", Promise.resolve([])); - case 2: - promises = history.map(function (item) { - return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee11() { - var encrypted; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee11$(_context11) { - while (1) switch (_context11.prev = _context11.next) { - case 0: - _context11.next = 2; - return this.cryptoService.encrypt(item.password); - case 2: - encrypted = _context11.sent; - return _context11.abrupt("return", new _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__["GeneratedPasswordHistory"](encrypted.encryptedString, item.date)); - case 4: - case "end": - return _context11.stop(); - } - }, _callee11, this); - })); - }); - _context12.next = 5; - return Promise.all(promises); - case 5: - return _context12.abrupt("return", _context12.sent); - case 6: - case "end": - return _context12.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee12$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + if (!(history == null || history.length === 0)) { + _context12.next = 2; + break; + } + + return _context12.abrupt("return", Promise.resolve([])); + + case 2: + promises = history.map(function (item) { + return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee11() { + var encrypted; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee11$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return this.cryptoService.encrypt(item.password); + + case 2: + encrypted = _context11.sent; + return _context11.abrupt("return", new _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__["GeneratedPasswordHistory"](encrypted.encryptedString, item.date)); + + case 4: + case "end": + return _context11.stop(); + } + } + }, _callee11, this); + })); + }); + _context12.next = 5; + return Promise.all(promises); + + case 5: + return _context12.abrupt("return", _context12.sent); + + case 6: + case "end": + return _context12.stop(); + } } }, _callee12); })); @@ -425513,43 +429572,54 @@ var PasswordGenerationService = /*#__PURE__*/function () { }, { key: "decryptHistory", value: function decryptHistory(history) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee14() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee14() { var _this2 = this; + var promises; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee14$(_context14) { - while (1) switch (_context14.prev = _context14.next) { - case 0: - if (!(history == null || history.length === 0)) { - _context14.next = 2; - break; - } - return _context14.abrupt("return", Promise.resolve([])); - case 2: - promises = history.map(function (item) { - return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee13() { - var decrypted; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee13$(_context13) { - while (1) switch (_context13.prev = _context13.next) { - case 0: - _context13.next = 2; - return this.cryptoService.decryptToUtf8(new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_4__["CipherString"](item.password)); - case 2: - decrypted = _context13.sent; - return _context13.abrupt("return", new _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__["GeneratedPasswordHistory"](decrypted, item.date)); - case 4: - case "end": - return _context13.stop(); - } - }, _callee13, this); - })); - }); - _context14.next = 5; - return Promise.all(promises); - case 5: - return _context14.abrupt("return", _context14.sent); - case 6: - case "end": - return _context14.stop(); + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee14$(_context14) { + while (1) { + switch (_context14.prev = _context14.next) { + case 0: + if (!(history == null || history.length === 0)) { + _context14.next = 2; + break; + } + + return _context14.abrupt("return", Promise.resolve([])); + + case 2: + promises = history.map(function (item) { + return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee13() { + var decrypted; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee13$(_context13) { + while (1) { + switch (_context13.prev = _context13.next) { + case 0: + _context13.next = 2; + return this.cryptoService.decryptToUtf8(new _models_domain_cipherString__WEBPACK_IMPORTED_MODULE_4__["CipherString"](item.password)); + + case 2: + decrypted = _context13.sent; + return _context13.abrupt("return", new _models_domain_generatedPasswordHistory__WEBPACK_IMPORTED_MODULE_5__["GeneratedPasswordHistory"](decrypted, item.date)); + + case 4: + case "end": + return _context13.stop(); + } + } + }, _callee13, this); + })); + }); + _context14.next = 5; + return Promise.all(promises); + + case 5: + return _context14.abrupt("return", _context14.sent); + + case 6: + case "end": + return _context14.stop(); + } } }, _callee14); })); @@ -425560,37 +429630,46 @@ var PasswordGenerationService = /*#__PURE__*/function () { if (history == null || history.length === 0) { return false; } + return history[history.length - 1].password === password; - } - // ref: https://stackoverflow.com/a/12646864/1090359 + } // ref: https://stackoverflow.com/a/12646864/1090359 + }, { key: "shuffleArray", value: function shuffleArray(array) { - return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee15() { + return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee15() { var i, j, _ref; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee15$(_context15) { - while (1) switch (_context15.prev = _context15.next) { - case 0: - i = array.length - 1; - case 1: - if (!(i > 0)) { - _context15.next = 11; + + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee15$(_context15) { + while (1) { + switch (_context15.prev = _context15.next) { + case 0: + i = array.length - 1; + + case 1: + if (!(i > 0)) { + _context15.next = 11; + break; + } + + _context15.next = 4; + return this.cryptoService.randomNumber(0, i); + + case 4: + j = _context15.sent; + _ref = [array[j], array[i]]; + array[i] = _ref[0]; + array[j] = _ref[1]; + + case 8: + i--; + _context15.next = 1; break; - } - _context15.next = 4; - return this.cryptoService.randomNumber(0, i); - case 4: - j = _context15.sent; - _ref = [array[j], array[i]]; - array[i] = _ref[0]; - array[j] = _ref[1]; - case 8: - i--; - _context15.next = 1; - break; - case 11: - case "end": - return _context15.stop(); + + case 11: + case "end": + return _context15.stop(); + } } }, _callee15, this); })); @@ -425602,36 +429681,43 @@ var PasswordGenerationService = /*#__PURE__*/function () { var minLowercaseCalc = 0; var minNumberCalc = options.minNumber; var minSpecialCalc = options.minSpecial; + if (options.uppercase && options.minUppercase <= 0) { minUppercaseCalc = 1; } else if (!options.uppercase) { minUppercaseCalc = 0; } + if (options.lowercase && options.minLowercase <= 0) { minLowercaseCalc = 1; } else if (!options.lowercase) { minLowercaseCalc = 0; } + if (options.number && options.minNumber <= 0) { minNumberCalc = 1; } else if (!options.number) { minNumberCalc = 0; } + if (options.special && options.minSpecial <= 0) { minSpecialCalc = 1; } else if (!options.special) { minSpecialCalc = 0; - } - // This should never happen but is a final safety net + } // This should never happen but is a final safety net + + if (!options.length || options.length < 1) { options.length = 10; } - var minLength = minUppercaseCalc + minLowercaseCalc + minNumberCalc + minSpecialCalc; - // Normalize and Generation both require this modification + + var minLength = minUppercaseCalc + minLowercaseCalc + minNumberCalc + minSpecialCalc; // Normalize and Generation both require this modification + if (options.length < minLength) { options.length = minLength; - } - // Apply other changes if the options object passed in is for generation + } // Apply other changes if the options object passed in is for generation + + if (forGeneration) { options.minUppercase = minUppercaseCalc; options.minLowercase = minLowercaseCalc; @@ -425640,6 +429726,7 @@ var PasswordGenerationService = /*#__PURE__*/function () { } } }]); + return PasswordGenerationService; }(); @@ -426050,16 +430137,16 @@ var _interopRequireDefault = __webpack_require__("jm00"); Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -var _react = _interopRequireDefault(__webpack_require__("ivGQ")); -var _List = _interopRequireDefault(__webpack_require__("OEPu")); -var _createDepreciationLogger = _interopRequireDefault(__webpack_require__("QWb5")); -var logDeprecatedComponent = (0, _createDepreciationLogger.default)(); -var DeprecatedComponent = function DeprecatedComponent(props) { - logDeprecatedComponent('List is now exported from the cozy-ui List folder. Please change the import path to "cozy-ui/transpiled/react/List"'); - return /*#__PURE__*/_react.default.createElement(_List.default, props); -}; -var _default = DeprecatedComponent; +exports.default = exports.BorderedList = void 0; +var _List = _interopRequireDefault(__webpack_require__("hQPZ")); +var _styles = __webpack_require__("/6lT"); +var BorderedList = (0, _styles.withStyles)({ + root: { + borderTop: '1px solid var(--silver)' + } +})(_List.default); +exports.BorderedList = BorderedList; +var _default = _List.default; exports.default = _default; /***/ }), @@ -430542,75 +434629,85 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BillingSourceResponse", function() { return BillingSourceResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BillingInvoiceResponse", function() { return BillingInvoiceResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BillingTransactionResponse", function() { return BillingTransactionResponse; }); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("Zvb3"); -/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("GeFe"); -/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("HDe7"); - +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GeFe"); +/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _baseResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("HDe7"); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var BillingResponse = /*#__PURE__*/function (_BaseResponse) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingResponse, _BaseResponse); - var _super = _createSuper(BillingResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingResponse, _BaseResponse); + function BillingResponse(response) { var _this; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingResponse); - _this = _super.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingResponse); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingResponse).call(this, response)); _this.invoices = []; _this.transactions = []; _this.balance = _this.getResponseProperty('Balance'); + var paymentSource = _this.getResponseProperty('PaymentSource'); + var transactions = _this.getResponseProperty('Transactions'); + var invoices = _this.getResponseProperty('Invoices'); + _this.paymentSource = paymentSource == null ? null : new BillingSourceResponse(paymentSource); + if (transactions != null) { _this.transactions = transactions.map(function (t) { return new BillingTransactionResponse(t); }); } + if (invoices != null) { _this.invoices = invoices.map(function (i) { return new BillingInvoiceResponse(i); }); } + return _this; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var BillingSourceResponse = /*#__PURE__*/function (_BaseResponse2) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingSourceResponse, _BaseResponse2); - var _super2 = _createSuper(BillingSourceResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingSourceResponse, _BaseResponse2); + function BillingSourceResponse(response) { var _this2; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingSourceResponse); - _this2 = _super2.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingSourceResponse); + + _this2 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingSourceResponse).call(this, response)); _this2.type = _this2.getResponseProperty('Type'); _this2.cardBrand = _this2.getResponseProperty('CardBrand'); _this2.description = _this2.getResponseProperty('Description'); _this2.needsVerification = _this2.getResponseProperty('NeedsVerification'); return _this2; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingSourceResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingSourceResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var BillingInvoiceResponse = /*#__PURE__*/function (_BaseResponse3) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingInvoiceResponse, _BaseResponse3); - var _super3 = _createSuper(BillingInvoiceResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingInvoiceResponse, _BaseResponse3); + function BillingInvoiceResponse(response) { var _this3; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingInvoiceResponse); - _this3 = _super3.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingInvoiceResponse); + + _this3 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingInvoiceResponse).call(this, response)); _this3.url = _this3.getResponseProperty('Url'); _this3.pdfUrl = _this3.getResponseProperty('PdfUrl'); _this3.number = _this3.getResponseProperty('Number'); @@ -430619,15 +434716,18 @@ var BillingInvoiceResponse = /*#__PURE__*/function (_BaseResponse3) { _this3.amount = _this3.getResponseProperty('Amount'); return _this3; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingInvoiceResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingInvoiceResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); var BillingTransactionResponse = /*#__PURE__*/function (_BaseResponse4) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillingTransactionResponse, _BaseResponse4); - var _super4 = _createSuper(BillingTransactionResponse); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(BillingTransactionResponse, _BaseResponse4); + function BillingTransactionResponse(response) { var _this4; - _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, BillingTransactionResponse); - _this4 = _super4.call(this, response); + + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillingTransactionResponse); + + _this4 = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_1___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_2___default()(BillingTransactionResponse).call(this, response)); _this4.createdDate = _this4.getResponseProperty('CreatedDate'); _this4.amount = _this4.getResponseProperty('Amount'); _this4.refunded = _this4.getResponseProperty('Refunded'); @@ -430638,8 +434738,9 @@ var BillingTransactionResponse = /*#__PURE__*/function (_BaseResponse4) { _this4.details = _this4.getResponseProperty('Details'); return _this4; } - return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(BillingTransactionResponse); -}(_baseResponse__WEBPACK_IMPORTED_MODULE_5__["BaseResponse"]); + + return BillingTransactionResponse; +}(_baseResponse__WEBPACK_IMPORTED_MODULE_4__["BaseResponse"]); /***/ }), @@ -431163,14 +435264,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Zvb3"); /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("J/YY"); -/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a1Fv"); -/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("g3eI"); -/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("wDGE"); -/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("g3eI"); +/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("wDGE"); +/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("J/YY"); +/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a1Fv"); +/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _data_cardData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("w/lD"); /* harmony import */ var _domainBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("L7vP"); /* harmony import */ var _view_cardView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("a16p"); @@ -431180,23 +435281,26 @@ __webpack_require__.r(__webpack_exports__); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var Card = /*#__PURE__*/function (_Domain) { - _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Card, _Domain); - var _super = _createSuper(Card); + _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Card, _Domain); + function Card(obj) { var _this; + var alreadyEncrypted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Card); - _this = _super.call(this); + + _this = _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Card).call(this)); + if (obj == null) { - return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(_this); + return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(_this); } - _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), obj, { + + _this.buildDomainModel(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4___default()(_this), obj, { cardholderName: null, brand: null, number: null, @@ -431204,8 +435308,10 @@ var Card = /*#__PURE__*/function (_Domain) { expYear: null, code: null }, alreadyEncrypted, []); + return _this; } + _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Card, [{ key: "decrypt", value: function decrypt(orgId) { @@ -431233,6 +435339,7 @@ var Card = /*#__PURE__*/function (_Domain) { return c; } }]); + return Card; }(_domainBase__WEBPACK_IMPORTED_MODULE_7__["default"]); -- GitLab