PageSourceSearch

https://fromsmash.com/main.8a818b71d580eaea.js

js fromsmash.com collected 2026-09-24 08:42:36 UTC 383,077 bytes, 2 lines download raw bytes

1(self.webpackChunkstaticsmashapp=self.webpackChunkstaticsmashapp||[]).push([[8792],{85565:(pe,N,r)=>{"use strict";r.d(N,{O:()=>o});var o={};r.r(o),r.d(o,{UpdateBillingInformations:()=>C,UpdateBillingInformationsFailure:()=>H,UpdateBillingInformationsSuccess:()=>g,computePlan:()=>B,computePlanFailure:()=>P,computePlanSuccess:()=>V,loadInvoices:()=>c,loadInvoicesFailure:()=>u,loadInvoicesSuccess:()=>a,loadSubscriptionAndPlan:()=>f,loadSubscriptionAndPlanFailure:()=>n,loadSubscriptionAndPlanSuccess:()=>i,resetStripePaymentMethodError:()=>I,retrieveStripePaymentMethod:()=>W,retrieveStripePaymentMethodError:()=>$,retrieveStripePaymentMethodSuccess:()=>z,unsubscribe:()=>E,unsubscribeFailure:()=>v,unsubscribeSuccess:()=>l,updateStripePaymentMethod:()=>b,updateStripePaymentMethodError:()=>te,updateStripePaymentMethodSuccess:()=>K});var e=r(71100);const c=(0,e.VP)("[Billing] Load Invoices"),a=(0,e.VP)("[Billing] Load Invoices Success",(0,e.xk)()),u=(0,e.VP)("[Billing] Load Invoices Failure",(0,e.xk)()),f=(0,e.VP)("[Billing] Load Subscription and Plan"),i=(0,e.VP)("[Billing] Load Subscription and Plan Success",(0,e.xk)()),n=(0,e.VP)("[Billing] Load Subscription and Plan Failure",(0,e.xk)()),E=(0,e.VP)("[Billing] Unsubscribe",(0,e.xk)()),l=(0,e.VP)("[Billing] Unsubscribe Success",(0,e.xk)()),v=(0,e.VP)("[Billing] Unsubscribe Failure",(0,e.xk)()),C=(0,e.VP)("[Billing] Update Billing Informations",(0,e.xk)()),g=(0,e.VP)("[Billing] Update Billing Informations Success",(0,e.xk)()),H=(0,e.VP)("[Billing] Update Billing Informations Failure",(0,e.xk)()),B=(0,e.VP)("[Billing] Compute Plan",(0,e.xk)()),V=(0,e.VP)("[Billing] Compute Plan Success",(0,e.xk)()),P=(0,e.VP)("[Billing] Compute Plan Failure",(0,e.xk)()),b=(0,e.VP)("[Billing] Update Stripe Payment Method",(0,e.xk)()),K=(0,e.VP)("[Billing] Update Stripe Payment Method Success"),te=(0,e.VP)("[Billing] Update Stripe Payment Method Failure",(0,e.xk)()),W=(0,e.VP)("[Billing] Retrieve Stripe Payment Method"),z=(0,e.VP)("[Billing] Retrieve Stripe Payment Method Success",(0,e.xk)()),$=(0,e.VP)("[Billing] Retrieve Stripe Payment Method Failure",(0,e.xk)()),I=(0,e.VP)("[Billing] Reset Stripe Payment Method Error")},19313:(pe,N,r)=>{"use strict";r.d(N,{A:()=>o});var o={};r.r(o),r.d(o,{AddEmail:()=>T,AddEmailFailure:()=>m,AddEmailPattern:()=>Q,AddEmailPatternFailure:()=>ce,DeleteTeam:()=>b,DeleteTeamFailure:()=>te,DeleteTeamSuccess:()=>K,DetachGuestFromTeam:()=>ue,DetachGuestFromTeamFailure:()=>Te,DetachGuestFromTeamSuccess:()=>Ie,DetachMemberFromTeam:()=>Y,DetachMemberFromTeamFailure:()=>ve,DetachMemberFromTeamSuccess:()=>w,LoadTeamDetails:()=>f,LoadTeamDetailsFailure:()=>n,LoadTeamDetailsSuccess:()=>i,LoadTeamGroups:()=>E,LoadTeamGroupsFailure:()=>v,LoadTeamGroupsSuccess:()=>
1l,LoadTeamMembers:()=>C,LoadTeamMembersFailure:()=>H,LoadTeamMembersSuccess:()=>g,ResetDeleteTeam:()=>A,ResetError:()=>R,UpdateTeamConfig:()=>q,UpdateTeamConfigFailure:()=>ie,UpdateTeamConfigSuccess:()=>le,addMember:()=>W,addMemberFailure:()=>$,addMemberSuccess:()=>z,addTeam:()=>B,addTeamFailure:()=>P,addTeamSuccess:()=>V,loadAccountTeams:()=>c,loadAccountTeamsFailure:()=>u,loadAccountTeamsSuccess:()=>a,resetTeamCreationError:()=>ge,resetTeamEditionError:()=>d,updateTeam:()=>I,updateTeamFailure:()=>j,updateTeamSuccess:()=>p});var e=r(71100);const c=(0,e.VP)("[Teams] Load Account Teams"),a=(0,e.VP)("[Teams] Load Account Teams Success",(0,e.xk)()),u=(0,e.VP)("[Teams] Load Account Teams Failure",(0,e.xk)()),f=(0,e.VP)("[Teams] Load Team Details",(0,e.xk)()),i=(0,e.VP)("[Teams] Load Team Details Success",(0,e.xk)()),n=(0,e.VP)("[Teams] Load Team Details Failure",(0,e.xk)()),E=(0,e.VP)("[Teams] Load Team Groups",(0,e.xk)()),l=(0,e.VP)("[Teams] Load Team Groups Success",(0,e.xk)()),v=(0,e.VP)("[Teams] Load Team Groups Failure",(0,e.xk)()),C=(0,e.VP)("[Teams] Load Team Members",(0,e.xk)()),g=(0,e.VP)("[Teams] Load Team Members Success",(0,e.xk)()),H=(0,e.VP)("[Teams] Load Team Members Failure",(0,e.xk)()),B=(0,e.VP)("[Teams] Add Account Teams",(0,e.xk)()),V=(0,e.VP)("[Teams] Add Account Team Success",(0,e.xk)()),P=(0,e.VP)("[Teams] Add Account Team Failure",(0,e.xk)()),b=(0,e.VP)("[Teams] Delete Teams",(0,e.xk)()),K=(0,e.VP)("[Teams] Delete Team Success"),te=(0,e.VP)("[Teams] Delete Team Failure",(0,e.xk)()),W=(0,e.VP)("[Teams] Add Member",(0,e.xk)()),z=(0,e.VP)("[Teams] Add Member Success",(0,e.xk)()),$=(0,e.VP)("[Teams] Add Member Failure",(0,e.xk)()),I=(0,e.VP)("[Teams] Update Team",(0,e.xk)()),p=(0,e.VP)("[Teams] Update Team Success",(0,e.xk)()),j=(0,e.VP)("[Teams] Update Team Failure",(0,e.xk)()),ge=(0,e.VP)("[Teams] Reset Team Creation Error"),d=(0,e.VP)("[Teams] Reset Team Edition Error"),T=(0,e.VP)("[Teams] Add Email",(0,e.xk)()),m=(0,e.VP)("[Teams] Add Email Failure",(0,e.xk)()),Y=(0,e.VP)("[Members] Detach Member From Team",(0,e.xk)()),w=(0,e.VP)("[Members] Detach Member From Team Success"),ve=(0,e.VP)("[Members] Detach Member From Team Failure",(0,e.xk)()),ue=(0,e.VP)("[Teams] Delete Guest From Team",(0,e.xk)()),Ie=(0,e.VP)("[Teams] Delete Guest From Team Success",(0,e.xk)()),Te=(0,e.VP)("[Teams] Delete Guest From Team Failure",(0,e.xk)()),Q=(0,e.VP)("[Teams] Add Email Pattern",(0,e.xk)()),ce=(0,e.VP)("[Teams] Add Email Pattern Failure",(0,e.xk)()),q=(0,e.VP)("[Teams] Update Team Config",(0,e.xk)()),le=(0,e.VP)("[Teams] Update Team Config Success",(0,e.xk)()),ie=(0,e.VP)("[Teams] Update Team Config Failure",(0,e.xk)()),R=(0,e.VP)("[Teams] Reset Error"),A=(0,e.VP)("[Teams] Reset Delete Team")},40778:(pe,N,r)=>{"use strict";r.d(N,{P:()=>ge});var o=r(25580),e=r(97184),c=r(20154),a=r(94236),u=r(80489),f=r(17796),i=r(40450),n=r(19847),E=r(74671),l=r(6663),v=r(60494),C=r(7738),g=r(84975),H=r(21252),B=r(42562),V=r(1936),P=r(19313),b=r(85621),K=r(98083),te=r(97144),W=r(93200),z=r(58527),$=r(8460),I=r(68633),p=r(1629),j=r(71100);let ge=(()=>{var d;class T{constructor(Y,w,ve,ue,Ie){var Te=this;this.actions$=Y,this.domainService=w,this.tokenService=ve,this.iamService=ue,this.store$=Ie,this.loadAccountTeams$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.loadAccountTeams),(0,n.H)(()=>(0,u.p)([this.iamService.listTeams(),this.iamService.listRoles()]).pipe((0,E.Z)(([Q,ce])=>{const{teams:q}=Q,{roles:le}=ce,ie=[];return q.length?(q.forEach(R=>{ie.push(this.iamService.findTeamWithUsers(R.id))}),(0,u.p)(ie).pipe((0,l.T)(R=>{const A=R.map(_=>(_.roles=le.filter(ne=>ne.name.startsWith(_.id)).map(ne=>(ne.shortName=ne.name.split("$").pop().toUpperCase(),ne)),_));return P.A.loadAccountTeamsSuccess({teams:A.sort((_,ne)=>_.name&&ne.name?_.name.localeCompare(ne.name):0)})}))):(0,f.of)(P.A.loadAccountTeamsSuccess({teams:[]}))}),(0,v.W)(Q=>(0,f.of)(P.A.loadAccountTeamsFailure({error:Q.status}))))),(0,v.W)(Q=>(0,f.of)(P.A.loadAccountTeamsFailure({error:Q.status}))))),this.addTeam$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.addTeam),(0,C.E)(this.store$.select(c.Jd)),(0,g.n)(([Q,ce])=>{const q=Q.team.domain+"."+te.c.appDomain,le=V.h.defaultPremiumDomainSettings,ie=new K.$;return(0,i.H)(ie.createDomain({domain:q,options:le})).pipe((0,n.H)(({domain:R})=>{const{team:A,region:_,domain:ne}=R,Se={id:A,domain:ne},xe=this.tokenService.getAccountFromToken(ce.token.token);return this.iamService.setupTeamRoles({account:xe,team:Se,region:_}).pipe((0,n.H)(()=>this.iamService.updateTeam(A,{name:Q.team.name}).pipe((0,n.H)(({team:Fe})=>(0,f.of)(P.A.addTeamSuccess({team:Fe}))))))}),(0,v.W)(R=>(0,f.of)(P.A.addTeamFailure(R instanceof W.I$||R instanceof W.$Z?{error:R.name}:{error:"FAILED_TO_CREATE_TEAM"}))))}))),this.addTeamSuccess$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.addTeamSuccess),(0,H.M)(()=>
1this.store$.dispatch(e.Xw.LoadUserRolesAndTeams()))),{dispatch:!1}),this.deleteTeam$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.DeleteTeam),(0,g.n)(function(){var Q=(0,o.A)(function*({teamId:ce,domain:q}){const[{users:le},{groups:ie}]=yield Promise.all([Te.iamService.listTeamUsers(ce).toPromise(),Te.iamService.listTeamGroups(ce).toPromise()]);if(le.length>0||ie.length>0)return P.A.DeleteTeamFailure({error:"PREMIUM_ADMIN_MEMBER_MODAL_DELETE_TEAM_ERROR_ATTACHED_RESSOURCES"});{const R=yield Te.iamService.listTeamHydratedRoles(ce).toPromise(),A=[],_=[];if(R.length>0)for(const Me of R)if(A.push(Te.iamService.detachTeamRole(ce,Me.name).toPromise()),(null==Me?void 0:Me.policies.length)>0)for(const we of Me.policies)_.push(Te.iamService.detachRolePolicy(Me.name,we.name).toPromise());yield Promise.all(A),yield Promise.all(_);const ne=[],Se=[];ne.push(...R.map(Me=>Te.iamService.deleteRole(Me.name).toPromise()));const xe={};return Se.push(...R.map(Me=>Me.policies.map(we=>{if(!xe[we.name])return xe[we.name]=we,Te.iamService.deletePolicy(we.name).toPromise()}))),yield Promise.all([...ne,...Se]),yield(new K.$).deleteDomain({domainId:q}),P.A.DeleteTeamSuccess()}});return function(ce){return Q.apply(this,arguments)}}()))),this.deleteTeamSuccess$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.DeleteTeamSuccess),(0,H.M)(()=>this.store$.dispatch(e.Xw.LoadUserRolesAndTeams()))),{dispatch:!1}),this.updateTeam$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.updateTeam),(0,C.E)(this.store$.select(c.OO)),(0,n.H)(([Q,ce])=>{const q={...Q.team};q.oldDomain=q.oldDomain+(0,b.TW)(),q.domain=Q.team.domain+(0,b.TW)();const le=new K.$;return(0,i.H)(le.updateDomain({domainId:q.oldDomain,domain:q.domain})).pipe((0,n.H)(()=>this.iamService.updateTeam(Q.team.id,{name:q.name}).pipe((0,n.H)(({team:ie})=>{const R=Object.assign({},ce,ie);return[P.A.updateTeamSuccess({team:R}),e.Xw.updateActiveTeam({team:R}),P.A.loadAccountTeams()]}))),(0,v.W)(ie=>{var R;return(0,f.of)(P.A.updateTeamFailure({error:null!==(R=null==ie?void 0:ie.name)&&void 0!==R?R:"FAILED_TO_UPDATE_TEAM"}))}))}))),this.updateTeamSuccess$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.updateTeamSuccess),(0,H.M)(()=>this.store$.dispatch(e.Xw.LoadUserRolesAndTeams()))),{dispatch:!1}),this.addMember$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.addMember),(0,n.H)(Q=>this.iamService.createUser(Q.member).pipe((0,n.H)(ce=>(0,u.p)([this.iamService.attachUserToTeam(Q.team,ce.user.id),this.iamService.attachUserRole(ce.user.id,Q.role.name)]).pipe((0,n.H)(q=>[P.A.addMemberSuccess({member:ce.user})]))),(0,v.W)(ce=>(0,f.of)(P.A.addMemberFailure({error:ce.error}))))))),this.detachMemberFromTeam$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.DetachMemberFromTeam),(0,g.n)(Q=>this.iamService.listUserRoles(Q.member.id).pipe((0,n.H)(ce=>{const q=ce.roles.filter(le=>le.name.startsWith(Q.team)).map(le=>this.iamService.detachUserRole(Q.member.id,le.name));return(0,u.p)([this.iamService.detachUserFromTeam(Q.team,Q.member.id),...q]).pipe((0,l.T)(le=>P.A.DetachMemberFromTeamSuccess()),(0,v.W)(le=>(0,f.of)(P.A.DetachMemberFromTeamFailure({error:le.status}))))}
1))))),this.loadTeamDetails$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.LoadTeamDetails),(0,g.n)(Q=>(0,u.p)([this.iamService.findTeamWithUsers(Q.id),this.iamService.listRoles()]).pipe((0,n.H)(([ce,q])=>{const{roles:le}=q;return ce.roles=le.filter(ie=>ie.name.startsWith(ce.id)).map(ie=>(ie.shortName=ie.name.split("$").pop(),ie)),(0,f.of)(P.A.LoadTeamDetailsSuccess({team:ce}))}))))),this.loadTeamGroups$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.LoadTeamGroups),(0,g.n)(Q=>this.iamService.findTeam(Q.id).pipe((0,n.H)(({team:ce})=>this.iamService.listTeamGroups(ce.id).pipe((0,n.H)(({groups:q})=>(0,f.of)(P.A.LoadTeamGroupsSuccess({groups:q}))))))))),this.loadTeamMembers$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.LoadTeamMembers),(0,g.n)(Q=>(0,u.p)([this.iamService.findTeamWithUsers(Q.id),this.iamService.listTeamGroups(Q.id)]).pipe((0,n.H)(([{users:ce},{groups:q}])=>{const le=[];(null==ce?void 0:ce.length)>0&&le.push(...ce);const ie=[];return(null==q?void 0:q.length)>0&&q.forEach(R=>{ie.push(this.iamService.listGroupUsers(R.id))}),(0,u.p)(ie).pipe((0,B.U)([]),(0,n.H)(R=>{const A=[];(null==R?void 0:R.length)>0&&R.map(({users:xe})=>A.push(...xe));const _=[...le,...A],ne=new Map,Se=_.filter(xe=>!ne.get(xe.username)&&(ne.set(xe.username,xe),!0));return(0,f.of)(P.A.LoadTeamMembersSuccess({members:Se}))}))}))))),this.addEmail$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.AddEmail),(0,g.n)(Q=>this.iamService.findTeam(Q.team).pipe((0,n.H)(ce=>{var q,le;const{team:ie}=ce;let R=null==ie?void 0:ie.config,A=null==ie||null===(q=ie.config)||void 0===q?void 0:q.authentication,_=null==ie||null===(le=ie.config)||void 0===le||null===(le=le.authentication)||void 0===le?void 0:le.rules;if(R){if(A){if(_&&_.length){if(_.find(Se=>Se.type===V.h.teamConfig.rulesNames.email&&Se.value===Q.email))return(0,f.of)(P.A.AddEmailFailure({error:"EMAIL_ALREADY_EXISTS"}));_=[..._,{type:V.h.teamConfig.rulesNames.email,value:Q.email}]}else _=[{type:V.h.teamConfig.rulesNames.email,value:Q.email}];A={mode:V.h.teamConfig.authenticationMode.anonymous,rules:_}}else A={mode:V.h.teamConfig.authenticationMode.anonymous,rules:[{type:V.h.teamConfig.rulesNames.email,value:Q.email}]};R={...R,authentication:A}}else R={authentication:{mode:V.h.teamConfig.authenticationMode.anonymous,rules:[{type:V.h.teamConfig.rulesNames.email,value:Q.email}]}};return(0,f.of)(P.A.UpdateTeamConfig({team:Q.team,config:R}))}))))),this.addEmailPattern$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.AddEmailPattern),(0,g.n)(Q=>this.iamService.findTeam(Q.team).pipe((0,n.H)(ce=>{var q,le;const{team:ie}=ce;let R=null==ie?void 0:ie.config,A=null==ie||null===(q=ie.config)||void 0===q?void 0:q.authentication,_=null==ie||null===(le=ie.config)||void 0===le||null===(le=le.authentication)||void 0===le?void 0:le.rules;if(R){if(A){if(_&&_.length){if(_.find(Se=>Se.type===V.h.teamConfig.rulesNames.wildcard&&Se.value===Q.pattern))return(0,f.of)(P.A.AddEmailPatternFailure({error:"PATTERN_ALREADY_EXISTS"}));_=[..._,{type:V.h.teamConfig.rulesNames.wildcard,value:Q.pattern}]}else _=[{type:V.h.teamConfig.rulesNames.wildcard,value:Q.pattern}];A={mode:V.h.teamConfig.authenticationMode.anonymous,rules:_}}else A={mode:V.h.teamConfig.authenticationMode.anonymous,rules:[{type:V.h.teamConfig.rulesNames.wildcard,value:Q.pattern}]};R={...R,authentication:A}}else R={authentication:{mode:V.h.teamConfig.authenticationMode.anonymous,rules:[{type:V.h.teamConfig.rulesNames.wildcard,value:Q.pattern}]}};return(0,f.of)(P.A.UpdateTeamConfig({team:Q.team,config:R}))}))))),this.detachGuestFromTeam$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.DetachGuestFromTeam),(0,g.n)(Q=>this.iamService.findTeam(Q.team).pipe((0,n.H)(ce=>{const q=ce.team.config,le=q.authentication.rules.filter(ie=>ie.value!==Q.guest.value);return q.authentication.rules=le,this.iamService.updateTeam(Q.team,{config:q}).pipe((0,n.H)(ie=>[P.A.DetachGuestFromTeamSuccess({team:ie.team})]))}))))),this.updateTeamConfig$=(0,a.EH)(()=>this.actions$.pipe((0,a.gp)(P.A.UpdateTeamConfig),(0,g.n)(Q=>this.iamService.findTeam(Q.team).pipe((0,n.H)(ce=>{const{team:q}=ce;return this.iamService.updateTeam(q.id,{config:Q.config}).pipe((0,n.H)(le=>[P.A.UpdateTeamConfigSuccess({team:le.team}),P.A.loadAccountTeams()]),(0,v.W)(()=>(0,f.of)(P.A.UpdateTeamConfigFailure({error:"FAILED_TO_UPDATE_CONFIG"}))))})))))}}return(d=T).\u0275fac=function(Y){return new(Y||d)(z.KVO(a.En),z.KVO($.i),z.KVO
1(I.B),z.KVO(p.L),z.KVO(j.il))},d.\u0275prov=z.jDH({token:d,factory:d.\u0275fac}),T})()},76762:(pe,N,r)=>{"use strict";r.d(N,{a:()=>o});var o={};r.r(o),r.d(o,{addTeamBackgroundImage:()=>P,addTeamBackgroundImageFailure:()=>K,addTeamBackgroundImageSuccess:()=>b,addTeamBackgroundImageToCreate:()=>j,addTeamBackgroundImageToCreateSuccess:()=>ge,addTeamBackgroundToDelete:()=>m,addTeamBackgroundVideo:()=>te,addTeamBackgroundVideoFailure:()=>z,addTeamBackgroundVideoSuccess:()=>W,addTeamBackgroundVideoToCreate:()=>d,addTeamBackgroundVideoToCreateSuccess:()=>T,addTeamLogo:()=>H,addTeamLogoFailure:()=>V,addTeamLogoSuccess:()=>B,addTeamLogoToCreate:()=>Y,addTeamLogoToCreateSuccess:()=>w,addTeamLogoToDelete:()=>ve,loadCustomizationReceiver:()=>c,loadCustomizationReceiverFailure:()=>u,loadCustomizationReceiverSuccess:()=>a,loadTeamBackgrounds:()=>f,loadTeamBackgroundsFailure:()=>n,loadTeamBackgroundsSuccess:()=>i,loadTeamLogos:()=>E,loadTeamLogosFailure:()=>v,loadTeamLogosSuccess:()=>l,selectBackground:()=>C,selectLogo:()=>g,setCustomizationToUpdate:()=>ue,updateCustomizationSuccess:()=>I,updateTeamCustomization:()=>$,updateTeamCustomizationFailure:()=>p});var e=r(71100);const c=(0,e.VP)("[Customization] Load Customization Receiver"),a=(0,e.VP)("[Customization] Load Customization Receiver Success",(0,e.xk)()),u=(0,e.VP)("[Customization] Load Customization Receiver Failure",(0,e.xk)()),f=(0,e.VP)("[Customization] Load Team Backgrounds"),i=(0,e.VP)("[Customization] Load Team Backgrounds Success",(0,e.xk)()),n=(0,e.VP)("[Customization] Load Team Backgrounds Failure",(0,e.xk)()),E=(0,e.VP)("[Customization] Load Team Logos"),l=(0,e.VP)("[Customization] Load Team Logos Success",(0,e.xk)()),v=(0,e.VP)("[Customization] Load Team Logos Failure",(0,e.xk)()),C=(0,e.VP)("[Customization] Select background",(0,e.xk)()),g=(0,e.VP)("[Customization] Select logo",(0,e.xk)()),H=(0,e.VP)("[Customization] Add Team Logo",(0,e.xk)()),B=(0,e.VP)("[Customization] Add Team Logo Success",(0,e.xk)()),V=(0,e.VP)("[Customization] Add Team Logo Failure",(0,e.xk)()),P=(0,e.VP)("[Customization] Add Team Background Image",(0,e.xk)()),b=(0,e.VP)("[Customization] Add Team Background Image Success",(0,e.xk)()),K=(0,e.VP)("[Customization] Add Team Background Image Failure",(0,e.xk)()),te=(0,e.VP)("[Customization] Add Team Background Video",(0,e.xk)()),W=(0,e.VP)("[Customization] Add Team Background Video Success",(0,e.xk)()),z=(0,e.VP)("[Customization] Add Team Background Video Failure",(0,e.xk)()),$=(0,e.VP)("[Customization] Update Team Customization"),I=(0,e.VP)("[Customization] Update Customization Success"),p=(0,e.VP)("[Customization] Update Team Customization Failure",(0,e.xk)()),j=(0,e.VP)("[Customization] Add Team Background Image To Create",(0,e.xk)()),ge=(0,e.VP)("[Customization] Add Team Background Image To Create Success",(0,e.xk)()),d=(0,e.VP)("[Customization] Add Team Background Video To Create",(0,e.xk)()),T=(0,e.VP)("[Customization] Add Team Background Video To Create Success",(0,e.xk)()),m=(0,e.VP)("[Customization] Add Team Background To Delete",(0,e.xk)()),Y=(0,e.VP)("[Customization] Add Team Logo To Create",(0,e.xk)()),w=(0,e.VP)("[Customization] Add Team Logo To Create Success",(0,e.xk)()),ve=(0,e.VP)("[Customization] Add Team Logo To Delete",(0,e.xk)()),ue=(0,e.VP)("[Customization] Set customization to Update",(0,e.xk)())},95333:(pe,N,r)=>{"use strict";r.d(N,{Ck:()=>C,Ff:()=>ge,JA:()=>l,JR:()=>g,Lr:()=>b,NM:()=>H,R:()=>n,XJ:()=>j,Y0:()=>P,Z1:()=>E,bo:()=>v,et:()=>V,l0:()=>I,sF:()=>$,uT:()=>W,vi:()=>a,wj:()=>K,xN:()=>p,yQ:()=>te,yl:()=>B});var o=r(71100),e=r(76762),c=r(97184);const a="userCustomization",u={customizationReceiver:null,customizationReceiverLoading:!1,customizationReceiverError:null,customizationReceiverIsSystem:!1,customizationSe
1nder:null,customizationSenderLoading:!1,customizationSenderError:null,customizationSenderIsSystem:!1,customizationToUpdate:null,customizationMediaLoading:!1,customizationUpdating:!1,customizationUpdated:!1,customizationUpdatingError:null,backgrounds:[],backgroundsLoading:!1,backgroundsError:null,logosToCreate:[],logosToDelete:[],backgroundsToCreate:[],backgroundsToDelete:[],logos:[],logosLoading:!1,logosError:null,selectedBackground:null,selectedLogo:null},f=(0,o.vy)(u,(0,o.on)(c.Ho.loadManagedCustomizationSuccess,(d,{customization:T})=>({...d,customizationReceiver:T,customizationToUpdate:T,customizationReceiverLoading:!1,selectedBackground:T.background,selectedLogo:T.logo,customizationReceiverIsSystem:!0})),(0,o.on)(c.dd.loadTeamCustomization,c.Ho.loadManagedCustomization,d=>({...d,customizationReceiver:u.customizationReceiver,customizationReceiverLoading:!0,customizationReceiverError:u.customizationReceiverError,customizationReceiverIsSystem:u.customizationReceiverIsSystem,customizationToUpdate:u.customizationToUpdate})),(0,o.on)(c.dd.loadTeamCustomizationSuccess,(d,{customization:T})=>({...d,customizationReceiver:T,customizationReceiverLoading:!1,selectedBackground:T.background,selectedLogo:T.logo})),(0,o.on)(c.dd.loadTeamCustomizationFailure,c.Ho.loadManagedCustomizationFailure,(d,{error:T})=>({...d,customizationReceiver:u.customizationReceiver,customizationReceiverLoading:!1,customizationReceiverError:T})),(0,o.on)(c.dd.loadTeamBackgrounds,d=>({...d,backgrounds:u.backgrounds,backgroundsLoading:!0,backgroundsError:u.backgroundsError})),(0,o.on)(c.dd.loadTeamBackgroundsSuccess,(d,{backgrounds:T})=>({...d,backgrounds:T,backgroundsLoading:!1,backgroundsError:u.backgroundsError})),(0,o.on)(c.Ho.loadManagedBackgroundsSuccess,d=>({...d,backgroundsLoading:!1,backgroundsError:u.backgroundsError})),(0,o.on)(c.Ho.loadManagedBackgroundsFailure,(d,{error:T})=>({...d,backgroundsLoading:!1,backgroundsError:T})),(0,o.on)(c.dd.loadTeamBackgroundsFailure,(d,{error:T})=>({...d,backgroundsLoading:!1,backgroundsError:T})),(0,o.on)(c.dd.loadTeamLogos,d=>({...d,logos:u.logos,logosLoading:!0,logosError:u.logosError})),(0,o.on)(c.dd.loadTeamLogosSuccess,(d,{logos:T})=>({...d,logos:T,logosLoading:!1,logosError:u.logosError})),(0,o.on)(c.Ho.loadManagedLogosSuccess,d=>({...d,logosLoading:!1,logosError:u.logosError})),(0,o.on)(c.Ho.loadManagedLogosFailure,(d,{error:T})=>({...d,logosLoading:!1,logosError:T})),(0,o.on)(c.dd.loadTeamLogosFailure,(d,{error:T})=>({...d,logosLoading:!1,logosError:T})),(0,o.on)(e.a.selectBackground,(d,{background:T})=>({...d,selectedBackground:T,customizationToUpdate:{...d.customizationToUpdate,background:T}})),(0,o.on)(e.a.selectLogo,(d,{logo:T})=>({...d,selectedLogo:T,customizationToUpdate:{...d.customizationToUpdate,logo:T}})),(0,o.on)(e.a.addTeamBackgroundImageToCreate,d=>({...d,customizationMediaLoading:!0})),(0,o.on)(e.a.addTeamBackgroundImageToCreateSuccess,(d,{background:T})=>({...d,customizationMediaLoading:!1,backgroundsToCreate:[...d.backgroundsToCreate,T],backgrounds:[...d.backgrounds,T],customizationToUpdate:{...d.customizationToUpdate,background:T},selectedBackground:T})),(0,o.on)(e.a.addTeamBackgroundVideo,d=>({...d,customizationMediaLoading:!0})),(0,o.on)(e.a.addTeamBackgroundVideoSuccess,(d,{background:T})=>({...d,customizationMediaLoading:!1,customizationToUpdate:{...d.customizationToUpdate,background:T},backgrounds:[...d.backgrounds,T],selectedBackground:T})),(0,o.on)(e.a.addTeamLogoToCreate,(d,{logo:T})=>({...d,customizationMediaLoading:!0,logosToCreate:[...d.logosToCreate,T]})),(0,o.on)(e.a.addTeamLogoToCreateSuccess,(d,{logo:T})=>({...d,customizationMediaLoading:!1,logosToCreate:[...d.backgroundsToCreate,T],logos:[...d.logos,T],customizationToUpdate:{...d.customizationToUpdate,logo:T},selectedLogo:T})),(0,o.on)(e.a.addTeamBackgroundToDelete,(d,{background:T})=>({...d,backgroundsToDelete:[...d.backgroundsToDelete,T],backgrounds:d.backgrounds.filter(m=>T.id!==m.id)})),(0,o.on)(e.a.addTeamLogoToDelete,(d,{logo:T})=>({...d,logosToDelete:[...d.logosToDelete,T],logos:d.logos.filter(m=>T.id!==m.id)})),(0,o.on)(e.a.updateTeamCustomization,d=>({...d,customizationUpdating:!0,customizationUpdated:u.customizationUpdated,customizationUpdatingError:u.customizationUpdatingError})),(0,o.on)(e.a.updateCustomizationSuccess,d=>({...d,customizationUpdated:!0,...u})),(0,o.on)(e.a.updateTeamCustomizationFailure,(d,{error:T})=>({...d,customizationUpdating:!1,customizationUpdatingError:T})),(0,o.on)(c.oR.loadDomainCustomization,d=>
1({...d,customizationSender:u.customizationSender,customizationSenderLoading:!0,customizationSenderError:u.customizationSenderError,customizationSenderIsSystem:u.customizationSenderIsSystem,customizationToUpdate:u.customizationToUpdate})),(0,o.on)(c.oR.loadDomainCustomizationSuccess,(d,{customization:T})=>({...d,customizationSender:T,customizationSenderLoading:!1,selectedBackground:T.background,selectedLogo:T.logo})),(0,o.on)(c.oR.loadDomainCustomizationFailure,(d,{error:T})=>({...d,customizationSender:u.customizationSender,customizationSenderLoading:!1,customizationSenderError:T})),(0,o.on)(c.oR.addNewLogoToDomainCustomization,d=>({...d,customizationMediaLoading:!0})),(0,o.on)(c.oR.addNewLogoToDomainCustomizationSuccess,(d,{logo:T})=>({...d,customizationMediaLoading:!1,customizationToUpdate:{...d.customizationToUpdate,logo:{...d.customizationToUpdate.logo,sourceUrl:T.downloadUrl,thumbnail:T.downloadUrl,type:"Image"}}})),(0,o.on)(c.oR.addNewBackgroundImageToDomainCustomization,d=>({...d,customizationMediaLoading:!0})),(0,o.on)(c.oR.addNewBackgroundImageToDomainCustomizationSuccess,(d,{background:T})=>({...d,customizationMediaLoading:!1,customizationToUpdate:{...d.customizationToUpdate,background:{...d.customizationToUpdate.background,sourceUrl:T.downloadUrl,type:"Image"}}})),(0,o.on)(c.oR.addNewBackgroundVideoToDomainCustomization,d=>({...d,customizationMediaLoading:!0})),(0,o.on)(c.oR.addNewBackgroundVideoToDomainCustomizationSuccess,(d,{video:T})=>({...d,customizationMediaLoading:!1,customizationToUpdate:{...d.customizationToUpdate,background:{sourceId:T.id,type:T.type,sourceUrl:T.url}}})),(0,o.on)(c.oR.updateDomainCustomization,d=>({...d,customizationUpdating:!0,customizationUpdated:u.customizationUpdated,customizationUpdatingError:u.customizationUpdatingError})),(0,o.on)(c.oR.updateDomainCustomizationSuccess,d=>({...d,customizationUpdated:!0,...u})),(0,o.on)(c.oR.updateDomainCustomizationFailure,(d,{error:T})=>({...d,customizationUpdating:!1,customizationUpdatingError:T})),(0,o.on)(e.a.setCustomizationToUpdate,(d,{target:T})=>
1({...d,customizationToUpdate:"sender"===T?{...d.customizationSender}:{...d.customizationReceiver}}))),i=(0,o.UX)("userCustomization"),n=(0,o.Mz)(i,d=>d.customizationReceiver),E=(0,o.Mz)(i,d=>d.customizationReceiverLoading),l=(0,o.Mz)(i,d=>d.customizationSender),v=(0,o.Mz)(i,d=>d.customizationSenderLoading),C=(0,o.Mz)(i,d=>d.customizationReceiverIsSystem),g=(0,o.Mz)(i,d=>d.backgrounds),H=(0,o.Mz)(i,d=>d.backgroundsLoading),B=(0,o.Mz)(i,d=>d.logos),V=(0,o.Mz)(i,d=>d.logosLoading),P=(0,o.Mz)(i,d=>d.selectedBackground),b=(0,o.Mz)(i,d=>d.selectedLogo),K=(0,o.Mz)(i,d=>d.customizationToUpdate),te=(0,o.Mz)(i,d=>d.customizationMediaLoading),W=(0,o.Mz)(i,d=>d.customizationUpdating),$=((0,o.Mz)(i,d=>d.customizationUpdated),(0,o.Mz)(i,d=>d.logosToCreate)),I=(0,o.Mz)(i,d=>d.backgroundsToCreate),p=(0,o.Mz)(i,d=>d.logosToDelete),j=(0,o.Mz)(i,d=>d.backgroundsToDelete);function ge(d,T){return f(d,T)}},84547:(pe,N,r)=>{"use strict";r.d(N,{Ms:()=>e,vQ:()=>c,u6:()=>a,WJ:()=>u,qN:()=>o});var o={};r.r(o),r.d(o,{automaticRedirectSso:()=>H,automaticRedirectSsoFailure:()=>V,automaticRedirectSsoSuccess:()=>B,loadSigninConfiguration:()=>i,loadSigninConfigurationFailure:()=>E,loadSigninConfigurationSuccess:()=>n,resetSignin:()=>P,signinCheckAccountType:()=>b,signinCheckAccountTypeSuccess:()=>K,signinSuccess:()=>g,signinWithPassword:()=>l,signinWithPasswordFailure:()=>C,signinWithPasswordSuccess:()=>v});var e={};r.r(e),r.d(e,{forgotPassword:()=>te,forgotPasswordFailure:()=>z,forgotPasswordSuccess:()=>W,resetForgot:()=>$});var c={};r.r(c),r.d(c,{acceptInvitation:()=>ge,acceptInvitationFailure:()=>m,acceptInvitationSuccess:()=>d,decodeMessage:()=>I,decodeMessageFailure:()=>j,decodeMessageSuccess:()=>p,inviteTokenExpired:()=>T});var a={};r.r(a),r.d(a,{CreateMfaFactorSecret:()=>ne,CreateMfaFactorSecretFailure:()=>xe,CreateMfaFactorSecretSuccess:()=>Se,DisplayMfaChallenge:()=>Y,ResetMfa:()=>w,SendOtp:()=>ve,SendOtpFailure:()=>Ie,SendOtpSuccess:()=>ue,VerifyApplicationFactor:()=>R,VerifyApplicationFactorFailure:()=>_,VerifyApplicationFactorSuccess:()=>A,VerifyEmailFactor:()=>q,VerifyEmailFactorFailure:()=>ie,VerifyEmailFactorSuccess:()=>le,VerifyOtp:()=>Te,VerifyOtpFailure:()=>ce,VerifyOtpSuccess:()=>Q});var u={};r.r(u),r.d(u,{decodeMessage:()=>Fe,decodeMessageFailure:()=>we,decodeMessageSuccess:()=>Me,renewPassword:()=>je,renewPasswordFailure:()=>st,renewPasswordSuccess:()=>Be,renewTokenExpired:()=>$e});var f=r(71100);const i=(0,f.VP)("[Signin] Load Signin Configuration",(0,f.xk)()),n=(0,f.VP)("[Signin] Load Signin Configuration Success",(0,f.xk)()),E=(0,f.VP)("[Signin] Load Signin Configuration Failure",(0,f.xk)()),l=(0,f.VP)("[Signin] Signin With Password",(0,f.xk)()),v=(0,f.VP)("[Signin] Signin With Password Success",(0,f.xk)()),C=(0,f.VP)("[Signin] Signin With Password Failure",(0,f.xk)()),g=(0,f.VP)("[Signin] Signin success user",(0,f.xk)()),H=(0,f.VP)("[Signin] Automatic Redirect To SSO",(0,f.xk)()),B=(0,f.VP)("[Signin] Automatic Redirect To SSO Success"),V=(0,f.VP)("[Signin] Automatic Redirect To SSO Failure",(0,f.xk)()),P=(0,f.VP)("[Signin] Reset Signin"),b=(0,f.VP)("[Signin] CheckAccountType",(0,f.xk)()),K=(0,f.VP)("[Signin] CheckAccountType Success",(0,f.xk)()),te=(0,f.VP)("[ForgotPassword] ForgotPassword user",(0,f.xk)()),W=(0,f.VP)("[ForgotPassword] ForgotPassword success user"),z=(0,f.VP)("[ForgotPassword] ForgotPassword failure user",(0,f.xk)()),$=(0,f.VP)("[ForgotPassword] Reset Forgot Section"),I=(0,f.VP)("[InviteActions] Decode data user",(0,f.xk)()),p=(0,f.VP)("[InviteActions] Decode data success user",(0,f.xk)()),j=(0,f.VP)("[InviteActions] Decode Message failure user",(0,f.xk)()),ge=(0,f.VP)("[InviteActions] Accept invitation",(0,f.xk)()),d=(0,f.VP)("[InviteActions] Accept invitation success",(0,f.xk)()),T=(0,f.VP)("[InviteActions] Token expired user",(0,f.xk)()),m=(0,f.VP)("[InviteActions] Accept invitation failure",(0,f.xk)()),Y=(0,f.VP)("[Mfa] Display Mfa Challenge",(0,f.xk)()),w=(0,f.VP)("[Mfa] Reset Mfa"),ve=(0,f.VP)("[Mfa] Send Otp",(0,f.xk)()),ue=(0,f.VP)("[Mfa] Send Otp Success"),Ie=(0,f.VP)("[Mfa] Send Otp Failure",(0,f.xk)()),Te=(0,f.VP)("[SigninMobile] Verify Otp",(0,f.xk)()),Q=(0,f.VP)("[SigninMobile] Verify Otp Success",(0,f.xk)()),ce=(0,f.VP)("[SigninMobile] Verify Otp Failure",(0,f.xk)()),q=(0,f.VP)("[Mfa] Verify Email Factor",(0,f.xk)()),le=(0,f.VP)("[Mfa] Verify Email Factor Success"),ie=(0,f.VP)("[Mfa] Verify Email Factor Failure",(0,f.xk)()),R=(0,f.VP)("[Mfa] Verify Application Factor",(0,f.xk)()),A=(0,f.VP)("[Mfa] Verify Application Factor Success"),_=(0,f.VP)("[Mfa] Verify Application Factor Failure",(0,f.xk)()),ne=(0,f.VP)("[Mfa] Create Mfa Factor Secret",(0,f.xk)()),Se=(0,f.VP)("[Mfa] Create Mfa Factor Secret Success",(0,f.xk)()),xe=(0,f.VP)("[Mfa] Create Mfa Factor Secret Failure",(0,f.xk)()),Fe=(0,f.VP)("[RenewPassword] Decode Message user",(0,f.xk)()),Me=(0,f.VP)("[RenewPassword] Decode Message success user",(0,f.xk)()),we=(0,f.VP)("[RenewPassword] Decode Message failure user",(0,f.xk)()),je=(0,f.VP)("[RenewPassword] RenewPassword user",(0,f.xk)()),Be=(0,f.VP)("[RenewPassword] RenewPassword success user"),$e=(0,f.VP)("[RenewPassword] RenewPassword token expired user",(0,f.xk)()),st=(0,f.VP)("[RenewPassword] RenewPassword failure user",(0,f.xk)())},72276:(pe,N,r)=>{"use strict";r.d(N,{d:()=>o});var o={};r.r(o),r.d(o,{computePlan:()=>l,computePlanFailure:()=>C,computePlanSuccess:()=>v,createAccount:()=>c,createAccountFailure:()=>u,createAccountSuccess:()=>a,loadCountries:()=>g,loadCountriesFailure:()=>B,loadCountriesSuccess:()=>H,loadPlan:()=>w,loadPlanFailure:()=>ue,loadPlanSuccess:()=>ve,loadPlans:()=>i,loadPlansFailure:()=>E,loadPlansSuccess:()=>n,loadVAT:()=>V,loadVATFailure:()=>b,loadVATSuccess:()=>P,removePlanCoupon:()=>ce,signup:()=>T,signupFailure:()=>Y,signupSuccess:()=>m,updateAccount:()=>K,updateAccountFailure:()=>W,updateAccountSuccess:()=>te,updateBillingInformations:()=>$,updateBillingInformationsAndSubscription:()=>z,updateBillingInformationsFailure:()=>p,updateBillingInformationsSuccess:()=>I,updateFormData:()=>f,updateSubscription:()=>j,updateSubscriptionFailure:()=>d,updateSubscriptionSuccess:()=>ge,validatePlanCoupon:()=>Ie,validatePlanCouponFailure:()=>Q,validatePlanCouponSuccess:()=>Te});var e=r(71100);const c=(0,e.VP)("[Signup] Create Account"),a=(0,e.VP)("[Signup] Create Account Success",(0,e.xk)()),u=(0,e.VP)("[Signup] Create Account Failure",(0,e.xk)()),f=(0,e.VP)("[Signup] Update Form Data",(0,e.xk)()),i=(0,e.VP)("[Signup] Load Plans",(0,e.xk)()),n=(0,e.VP)("[Signup] Load Plans Success",(0,e.xk)()),E=(0,e.VP)("[Signup] Load Plans Failure",(0,e.xk)()),l=(0,e.VP)("[Signup] Compute Plan"),v=(0,e.VP)("[Signup] Compute Plan Success",(0,e.xk)()),C=(0,e.VP)("[Signup] Compute Plan Failure",(0,e.xk)()),g=(0,e.VP)("[Signup] Load Countries"),H=(0,e.VP)("[Signup] Load Countries Success",(0,e.xk)()),B=(0,e.VP)("[Signup] Load Countries Failure",(0,e.xk)()),V=(0,e.VP)("[Signup] Load VAT"),P=(0,e.VP)("[Signup] Load VAT Success",(0,e.xk)()),b=(0,e.VP)("[Signup] Load VAT Failure",(0,e.xk)()),K=(0,e.VP)("[Signup] Update Account"),te=(0,e.VP)("[Signup] Update Account Success",(0,e.xk)()),W=(0,e.VP)("[Signup] Update Account Failure",(0,e.xk)()),z=(0,e.VP)("[Signup] Update Billing Informations and subscription"),$=(0,e.VP)("[Signup] Update Billing Informations"),I=(0,e.VP)("[Signup] Update Billing Informations Success",(0,e.xk)()),p=(0,e.VP)("[Signup] Update Billing Informations Failure",(0,e.xk)()),j=(0,e.VP)("[Signup] Update Subscription"),ge=(0,e.VP)("[Signup] Update Subscription Success",(0,e.xk)()),d=(0,e.VP)("[Signup] Update Subscription Failure",(0,e.xk)()),T=(0,e.VP)("[Signup] Signup"),m=(0,e.VP)("[Signup] Signup Success"),Y=(0,e.VP)("[Signup] Signup Failure",(0,e.xk)()),w=(0,e.VP)("[Signup] Load Plan"),ve=(0,e.VP)("[Signup] Load Plan Success",(0,e.xk)()),ue=(0,e.VP)("[Signup] Load Plan Failure",(0,e.xk)()),Ie=(0,e.VP)("[Signup] Validate Plan Coupon",(0,e.xk)()),Te=(0,e.VP)("[Signup] Validate Plan Coupon Success",(0,e.xk)()),Q=(0,e.VP)("[Signup] Validate Plan Coupon Failure",(0,e.xk)()),ce=(0,e.VP)("[Signup] Remove Plan Coupon")},48544:(pe,N,r)=>{"use strict";r.d(N,{k:()=>o});var o={};r.r(o),r.d(o,{computePlan:()=>i,computePlanFailure:()=>E,computePlanSuccess:()=>n,loadCountries:()=>l,loadCountriesFailure:()=>C,loadCountriesSuccess:()=>v,loadPlans:()=>a,loadPlansFailure:()=>f,loadPlansSuccess:()=>u,loadVAT:()=>g,loadVATFailure:()=>B,loadVATSuccess:()=>H,renewSubscription:()=>z,renewSubscriptionFailure:()=>I,renewSubscriptionSuccess:()=>$,updateBillingInformations:()=>V,updateBillingInformationsFailure:()=>b,updateBillingInformationsSuccess:()=>P,updateFormData:()=>c,updateSubscription:()=>K,updateSubscriptionFailure:()=>W,updateSubscriptionSuccess:()=>te});var e=r(71100);const c=(0,e.VP)("[SubscriptionUpdate] Update Form Data",(0,e.xk)()),a=(0,e.VP)("[SubscriptionUpdate] Load Plans"),u=(0,e.VP)("[SubscriptionUpdate] Load Plans Success",(0,e.xk)()),f=(0,e.VP)("[SubscriptionUpdate] Load Plans Failure",(0,e.xk)()),i=(0,e.VP)("[SubscriptionUpdate] Compute Plan"),n=(0,e.VP)("[SubscriptionUpdate] Compute Plan Success",(0,e.xk)()),E=(0,e.VP)("[SubscriptionUpdate] Compute Plan Failure",(0,e.xk)()),l=(0,e.VP)("[SubscriptionUpdate] Load Countries"),v=(0,e.VP)("[SubscriptionUpdate] Load Countries Success",(0,e.xk)()),C=(0,e.VP)("[SubscriptionUpdate] Load Countries Failure",(0,e.xk)()),g=(0,e.VP)("[SubscriptionUpdate] Load VAT"),H=(0,e.VP)("[SubscriptionUpdate] Load VAT Success",(0,e.xk)()),B=(0,e.VP)("[SubscriptionUpdate] Load VAT Failure",(0,e.xk)()),V=(0,e.VP)("[SubscriptionUpdate] Update Billing Informations"),P=(0,e.VP)("[SubscriptionUpdate] Update Billing Informations Success"),b=(0,e.VP)("[SubscriptionUpdate] Update Billing Informations Failure",(0,e.xk)()),K=(0,e.VP)("[SubscriptionUpdate] Update Subscription"),te=(0,e.VP)("[SubscriptionUpdate] Update Subscription Success"),W=(0,e.VP)("[SubscriptionUpdate] Update Subscription Failure",(0,e.xk)()),z=(0,e.VP)("[SubscriptionUpdate] Renew Subscription "),$=(0,e.VP)("[SubscriptionUpdate] Renew Subscription Success"),I=(0,e.VP)("[SubscriptionUpdate] Renew Subscription Failure",(0,e.xk)())},43315:(pe,N,r)=>{"use strict";r.d(N,{ee:()=>u,GX:()=>e,Zd:()=>c,EC:()=>a,Fb:()=>f,xZ:()=>o});var o={};r.r(o),r.d(o,{resetStep:()=>n,updateMode:()=>l,updateStep:()=>E}
1);var e={};r.r(e),r.d(e,{ToggleMenu:()=>v,UpdateFileOver:()=>C});var c={};r.r(c),r.d(c,{DisplayModalSizePremium:()=>lt,DisplayVerificationCodeForm:()=>Ve,HideModalSizePremium:()=>Qe,HideVerificationCodeForm:()=>Ut,ResetCustomisationEdited:()=>ne,ResetVerifyEmail:()=>ht,SendEmailVerificationCode:()=>ut,SendEmailVerificationCodeFailure:()=>St,SendEmailVerificationCodeSuccess:()=>Ge,SetEmailDescription:()=>gt,SetEmailReceivers:()=>ct,SetEmailTitle:()=>it,SetLinkCustomUrl:()=>Ke,SetLinkTitle:()=>He,SetTransferAccessTracking:()=>Be,SetTransferAvailability:()=>Me,SetTransferConfigurationParameters:()=>xe,SetTransferCustomization:()=>st,SetTransferNotification:()=>je,SetTransferPassword:()=>we,SetTransferPreviewType:()=>$e,SetTransferPromotion:()=>ft,SetTransferSender:()=>oe,UpdatePrepareStep:()=>Fe,ValidateEmailVerificationCode:()=>dt,ValidateEmailVerificationCodeFailure:()=>Ye,ValidateEmailVerificationCodeSuccess:()=>Rt,VerifyEmail:()=>Ze,VerifyEmailFailure:()=>ot,VerifyEmailSuccess:()=>Xe,addBackgroundImageToAttach:()=>Te,addBackgroundImageToAttachFailure:()=>ce,addBackgroundImageToAttachSuccess:()=>Q,addBackgroundVideoToAttach:()=>q,addBackgroundVideoToAttachFailure:()=>ie,addBackgroundVideoToAttachSuccess:()=>le,addLogoToAttach:()=>R,addLogoToAttachFailure:()=>_,addLogoToAttachSuccess:()=>A,loadBackgrounds:()=>w,loadBackgroundsSuccess:()=>ve,loadCustomization:()=>T,loadCustomizationFailure:()=>Y,loadCustomizationSuccess:()=>m,loadExternalPromotions:()=>$,loadExternalPromotionsFailure:()=>p,loadExternalPromotionsSuccess:()=>I,loadLogos:()=>ue,loadLogosSuccess:()=>Ie,loadPromotion:()=>te,loadPromotionFailure:()=>z,loadPromotionSuccess:()=>W,resetDrawer:()=>V,resetPrepare:()=>g,saveCustomization:()=>Se,selectRandomExternalPromotion:()=>j,selectRandomExternalPromotionFailure:()=>d,selectRandomExternalPromotionSuccess:()=>ge,setConfigFormStatus:()=>b,setConfigPasswordStatus:()=>K,setUploadFormMode:()=>P,toggleConfigDrawerExpanded:()=>B,toggleEmailFormExtended:()=>H});var a={};r.r(a),r.d(a,{loadPromotion:()=>qe,loadPromotionFailure:()=>vt,loadPromotionSuccess:()=>Ft,loadPromotionsFailure:()=>kt,loadPromotionsInternal:()=>at,loadPromotionsSuccess:()=>Et});var u={};r.r(u),r.d(u,{CreateTeamDropbox:()=>Tt,CreateTeamDropboxFailure:()=>Pt,CreateTeamDropboxSuccess:()=>yt,GetDropboxPreview:()=>Mt,GetDropboxPreviewFailure:()=>Ot,GetDropboxPreviewSuccess:()=>wt,ResetDropbox:()=>Ct});var f=r(68845),i=r(71100);const n=(0,i.VP)("[Workflow] Reset Step"),E=(0,i.VP)("[Workflow] Update Step",(0,i.xk)()),l=(0,i.VP)("[Workflow] Update Mode",(0,i.xk)()),v=(0,i.VP)("[Layout] Toggle Menu",(0,i.xk)()),C=(0,i.VP)("[Layout] Update File Over",(0,i.xk)()),g=(0,i.VP)("[Prepare] Reset Prepare state"),H=(0,i.VP)("[Prepare] Toggle Email Form extended"),B=(0,i.VP)("[Prepare] Toggle Config Drawer"),V=(0,i.VP)("[Prepare] Reset Drawer"),P=(0,i.VP)("[Prepare] Set Upload Form Mode",(0,i.xk)()),b=(0,i.VP)("[Prepare] Set configForm status valid/invalid",(0,i.xk)()),K=(0,i.VP)("[Prepare] Set configForm password status valid/invalid",(0,i.xk)()),te=(0,i.VP)("[Prepare] Load  Promotion",(0,i.xk)()),W=(0,i.VP)("[Prepare] Load Promotion Success",(0,i.xk)()),z=(0,i.VP)("[Prepare] Load Promotion Failure",(0,i.xk)()),$=(0,i.VP)("[Prepare] Load External Promotions"),I=(0,i.VP)("[Prepare] Load External Promotions Success",(0,i.xk)()),p=(0,i.VP)("[Prepare] Load External Promotions Failure",(0,i.xk)()),j=(0,i.VP)("[Prepare] Select Random External Promotion",(0,i.xk)()),ge=(0,i.VP)("[Prepare] Select Random External Promotion Success",(0,i.xk)()),d=(0,i.VP)("[Prepare] Select Random External Promotion Failure",(0,i.xk)()),T=(0,i.VP)("[Prepare] Load Customization"),m=(0,i.VP)("[Prepare] Load Customization Success",(0,i.xk)()),Y=(0,i.VP)("[Prepare] Load Customization Failure",(0,i.xk)()),w=(0,i.VP)("[Prepare] Load Backgrounds"),ve=(0,i.VP)("[Prepare] Load Backgrounds Success",(0,i.xk)()),ue=(0,i.VP)("[Prepare] Load Logos"),Ie=(0,i.VP)("[Prepare] Load Logos Success",(0,i.xk)()),Te=(0,i.VP)("[Prepare] Add Background Image To Attach",(0,i.xk)()),Q=(0,i.VP)("[Prepare] Add Background Image To Attach Success",(0,i.xk)()),ce=(0,i.VP)("[Prepare] Add Backgroun
1d Image To Attach Failure",(0,i.xk)()),q=(0,i.VP)("[Prepare] Add Background Video To Attach",(0,i.xk)()),le=(0,i.VP)("[Prepare] Add Background Video To Attach Success",(0,i.xk)()),ie=(0,i.VP)("[Prepare] Add Background Video To Attach Failure",(0,i.xk)()),R=(0,i.VP)("[Prepare] Add Team Logo",(0,i.xk)()),A=(0,i.VP)("[Prepare] Add Team Logo Success",(0,i.xk)()),_=(0,i.VP)("[Prepare] Add Team Logo Failure",(0,i.xk)()),ne=(0,i.VP)("[Prepare] Reset Customization Edited"),Se=(0,i.VP)("[Prepare] Save Customization",(0,i.xk)()),xe=(0,i.VP)("[Prepare] Set Transfer Configuration Parameters",(0,i.xk)()),Fe=(0,i.VP)("[Prepare] Set Prepare Step",(0,i.xk)()),Me=(0,i.VP)("[Prepare] Set Transfer Availability",(0,i.xk)()),we=(0,i.VP)("[Prepare] Set Transfer Password",(0,i.xk)()),je=(0,i.VP)("[Prepare] Set Transfer Notification",(0,i.xk)()),Be=(0,i.VP)("[Prepare] Set Transfer AccessTracking",(0,i.xk)()),$e=(0,i.VP)("[Prepare] Set Transfer Preview Type",(0,i.xk)()),st=(0,i.VP)("[Prepare] Set Transfer Customization",(0,i.xk)()),ft=(0,i.VP)("[Prepare] Set Transfer Promotion",(0,i.xk)()),oe=(0,i.VP)("[Prepare] Set Transfer Sender",(0,i.xk)()),Ke=(0,i.VP)("[Prepare] Set Link Custom Url",(0,i.xk)()),He=(0,i.VP)("[Prepare] Set Link Title",(0,i.xk)()),it=(0,i.VP)("[Prepare] Set Email Title",(0,i.xk)()),gt=(0,i.VP)("[Prepare] Set Email Description",(0,i.xk)()),ct=(0,i.VP)("[Prepare] Set Email Receivers",(0,i.xk)()),lt=(0,i.VP)("[Prepare] Display Modal Size Premium"),Qe=(0,i.VP)("[Prepare] Hide Modal Size Premium"),Ze=(0,i.VP)("[Prepare] Verify Email",(0,i.xk)()),Xe=(0,i.VP)("[Prepare] Verify Email Success",(0,i.xk)()),ot=(0,i.VP)("[Prepare] Verify Email Failure",(0,i.xk)()),ht=(0,i.VP)("[Prepare] Reset Verify Email"),dt=(0,i.VP)("[Prepare] Validate Email Verification Code",(0,i.xk)()),Rt=(0,i.VP)("[Prepare] Validate Email Verification Code Success",(0,i.xk)()),Ye=(0,i.VP)("[Prepare] Validate Email Verification Code Failure",(0,i.xk)()),ut=(0,i.VP)("[Prepare] Send Email Verification Code",(0,i.xk)()),Ge=(0,i.VP)("[Prepare] Send Email Verification Code Success",(0,i.xk)()),St=(0,i.VP)("[Prepare] Send Email Verification Code Failure",(0,i.xk)()),Ve=(0,i.VP)("[Prepare] Display Verification Code Form"),Ut=(0,i.VP)("[Prepare] Hide Verification Code Form"),at=(0,i.VP)("[Send] Load Internal Promotions"),Et=(0,i.VP)("[Send] Load Promotions success",(0,i.xk)()),kt=(0,i.VP)("[Send] Load Promotions Failure",(0,i.xk)()),qe=(0,i.VP)("[Send] Load Promotion",(0,i.xk)()),Ft=(0,i.VP)("[Send] Load Promotion Success",(0,i.xk)()),vt=(0,i.VP)("[Send] Load Promotion Failure",(0,i.xk)()),Tt=(0,i.VP)("[Dropbox] Create Team Dropbox",(0,i.xk)()),yt=(0,i.VP)("[Dropbox] Create Team Dropbox Success",(0,i.xk)()),Pt=(0,i.VP)("[Dropbox] Create Team Dropbox Failure",(0,i.xk)()),Mt=(0,i.VP)("[Dropbox] Get Dropbox Preview",(0,i.xk)()),wt=(0,i.VP)("[Dropbox] Get Dropbox Preview Success",(0,i.xk)()),Ot=(0,i.VP)("[Dropbox] Get Dropbox Preview Failure",(0,i.xk)()),Ct=(0,i.VP)("[Dropbox] Reset Dropbox")},68845:(pe,N,r)=>{"use strict";r.r(N),r.d(N,{AddRawFilesFailure:()=>g,AddRawFilesSuccess:()=>C,CancelUpload:()=>P,CancelUploadSuccess:()=>b,CheckFirstTimeSender:()=>d,CheckFirstTimeSenderFailure:()=>m,CheckFirstTimeSenderSuccess:()=>T,PauseUpload:()=>W,RemoveRawFile:()=>B,RemoveRawFiles:()=>V,ResetRawFilesError:()=>H,ResetUpload:()=>K,ResetUploadSuccess:()=>te,ResumeUpload:()=>z,SetProgress:()=>e,SetRemainingSize:()=>u,SetUploadSpeed:()=>c,SetUploadStatus:()=>f,SetUploadedBytes:()=>a,UpdateAndResumeUpload:()=>p,UpdateAndResumeUploadFailure:()=>ge,UpdateAndResumeUploadSuccess:()=>j,UpdateTransferFailure:()=>v,UpdateTransferSuccess:()=>l,Upload:()=>i,UploadFailure:()=>E,UploadQueueFinished:()=>I,UploadQueued:()=>$,UploadSuccess:()=>n});var o=r(71100);const e=(0,o.VP)("[Uploader] Set Upload Progress",(0,o.xk)()),c=(0,o.VP)("[Uploader] Set Upload Speed",(0,o.xk)()),a=(0,o.VP)("[Uploader] Set Upload Uploaded Bytes",(0,o.xk)()),u=(0,o.VP)("[Uploader] Set Upload Remaining Size",(0,o.xk)()),f=(0,o.VP)("[Uploader] Set Upload Status",(0,o.xk)()),i=(0,o.VP)("[Uploader] Upload"),n=(0,o.VP)("[Uploader] Upload Success",(0,o.xk)()),E=(0,o.VP)("[Uploader] Upload Failure",(0,o.xk)()),l=(0,o.VP)("[Uploader] Update Transfer Success",(0,o.xk)()),v=(0,o.VP)("[Uploader] Update Transfer Failure",(0,o.xk)()),C=(0,o.VP)("[Uploader] Add Raw Files Success",(0,o.xk)()),g=(0,o.VP)("[Uploader] Add Raw Files Failure",(0,o.xk)()),H=(0,o.VP)("[Uploader] Reset Raw Files Error"),B=(0,o.
1VP)("[Uploader] Remove File",(0,o.xk)()),V=(0,o.VP)("[Uploader] Remove Files",(0,o.xk)()),P=(0,o.VP)("[Uploader] Cancel Upload"),b=(0,o.VP)("[Uploader] Cancel Upload Success"),K=(0,o.VP)("[Uploader] Reset Upload"),te=(0,o.VP)("[Uploader] Reset Upload Success"),W=(0,o.VP)("[Uploader] Pause Upload"),z=(0,o.VP)("[Uploader] Resume Upload"),$=(0,o.VP)("[Uploader] Upload Queued",(0,o.xk)()),I=(0,o.VP)("[Uploader] Upload Queue Finished"),p=(0,o.VP)("[Uploader] Update and resume upload"),j=(0,o.VP)("[Uploader] Update and resume upload Success"),ge=(0,o.VP)("[Uploader] Update and resume upload Failure",(0,o.xk)()),d=(0,o.VP)("[Uploader] Check First Time Sender",(0,o.xk)()),T=(0,o.VP)("[Uploader] Check First Time Sender Success",(0,o.xk)()),m=(0,o.VP)("[Uploader] Check First Time Sender Failure",(0,o.xk)())},30532:(pe,N,r)=>{"use strict";r.d(N,{Rb:()=>Oo,ws:()=>jo,Xx:()=>k,j3:()=>Oe,O5:()=>_e,_O:()=>U,TX:()=>ae,QR:()=>he,vo:()=>fe,X$:()=>Le,wK:()=>se,vf:()=>F,sr:()=>M,So:()=>ee,B6:()=>X,Er:()=>de,yQ:()=>ye,Zv:()=>zo,Rk:()=>No,Kq:()=>yo,pp:()=>bo,h4:()=>Ho,Nr:()=>Bo,iA:()=>L,CB:()=>h,wD:()=>Z,Zz:()=>x,wo:()=>O,N5:()=>y,H2:()=>S,T1:()=>oo,Wi:()=>_o,cf:()=>G,Fg:()=>Vo,SI:()=>Xo,MS:()=>Pe,YD:()=>Ce,AL:()=>uo,v3:()=>xo,Ax:()=>Io,Ft:()=>Nt,x6:()=>tt,i:()=>De,w$:()=>ze,tM:()=>Ne,FV:()=>Ro,LF:()=>to,xK:()=>be,BC:()=>Ao,De:()=>Do,KG:()=>Co,RJ:()=>ke,XT:()=>ko,J_:()=>$t,OU:()=>Uo,uX:()=>Fo,lE:()=>lo,Wk:()=>io,$M:()=>co,ge:()=>so,eP:()=>Po,ID:()=>no,Nf:()=>ro,g8:()=>Ae,v5:()=>ao,gz:()=>eo,aZ:()=>zt});var o=r(41101),e=r(71100),c=r(1061),a=r(68845);const n=(0,o.p)({selectId:E});function E(t){return t.relativePath}const g={uploadState:{startDate:null,endDate:null,status:null,progress:0,speed:0,uploadedBytes:0,remainingSize:0,error:null,updateAndResumeUploadLoading:!1,updateAndResumeUploadSuccess:!1,updateAndResumeUploadError:null},transferState:{transfer:null},filesState:{rawFilesState:n.getInitialState({error:null}),error:null}},H=(0,e.vy)(g,(0,e.on)(a.Upload,t=>({...t,uploadState:{...t.uploadState,status:c.UploaderStatus.Pending,error:g.uploadState.error,updateAndResumeUploadLoading:!1,updateAndResumeUploadSuccess:!1,updateAndResumeUploadError:g.uploadState.updateAndResumeUploadError}})),(0,e.on)(a.UploadSuccess,(t,{transfer:s})=>({...t,uploadState:{...t.uploadState},transferState:{...t.transferState,transfer:s}})),(0,e.on)(a.UploadFailure,(t,{error:s})=>({...t,uploadState:{...t.uploadState,error:s}})),(0,e.on)(a.UploadQueued,(t,{queue:s,queuedUntil:J})=>({...t,uploadState:{...t.uploadState},transferState:{...t.transferState,transfer:{...t.transferState.transfer,queue:s,queuedUntil:J}}})),(0,e.on)(a.SetProgress,(t,{progress:s})=>({...t,uploadState:{...t.uploadState,progress:s}})),(0,e.on)(a.SetUploadSpeed,(t,{speed:s})=>({...t,uploadState:{...t.uploadState,speed:s}})),(0,e.on)(a.SetUploadedBytes,(t,{uploadedBytes:s})=>({...t,uploadState:{...t.uploadState,uploadedBytes:s}})),(0,e.on)(a.SetRemainingSize,(t,{remainingSize:s})=>({...t,uploadState:{...t.uploadState,remainingSize:s}})),(0,e.on)(a.SetUploadStatus,(t,{status:s})=>({...t,uploadState:{...t.uploadState,status:s}})),(0,e.on)(a.AddRawFilesSuccess,(t,{files:s})=>({...t,filesState:{...t.filesState,rawFilesState:n.addMany(s,t.filesState.rawFilesState)}}
1)),(0,e.on)(a.AddRawFilesFailure,(t,{error:s})=>({...t,filesState:{...t.filesState,rawFilesState:{...t.filesState.rawFilesState,error:s}}})),(0,e.on)(a.ResetRawFilesError,t=>({...t,filesState:{...t.filesState,rawFilesState:{...t.filesState.rawFilesState,error:g.filesState.rawFilesState.error}}})),(0,e.on)(a.RemoveRawFile,(t,{file:s})=>({...t,filesState:{...t.filesState,rawFilesState:n.removeOne(E(s),t.filesState.rawFilesState)}})),(0,e.on)(a.RemoveRawFiles,(t,{files:s})=>({...t,filesState:{...t.filesState,rawFilesState:n.removeMany(s.map(J=>E(J)),t.filesState.rawFilesState)}})),(0,e.on)(a.UpdateAndResumeUpload,t=>({...t,uploadState:{...t.uploadState,updateAndResumeUploadLoading:!0}})),(0,e.on)(a.UpdateAndResumeUploadSuccess,t=>({...t,uploadState:{...t.uploadState,updateAndResumeUploadLoading:!1,updateAndResumeUploadSuccess:!0}})),(0,e.on)(a.UpdateAndResumeUploadFailure,(t,{error:s})=>({...t,uploadState:{...t.uploadState,updateAndResumeUploadLoading:!1,updateAndResumeUploadError:s}})),(0,e.on)(a.CancelUpload,t=>({...t,transferState:g.transferState,uploadState:{...g.uploadState,status:c.UploaderStatus.Canceled}})),(0,e.on)(a.ResetUpload,t=>({...t,transferState:g.transferState,uploadState:g.uploadState,filesState:g.filesState})),(0,e.on)(a.ResetUploadSuccess,t=>({...t,uploadState:{...g.uploadState},filesState:g.filesState,transferState:g.transferState}))),{selectAll:ge,selectEntities:d}=n.getSelectors();var Y=r(1936),w=r(43315);const ue={uploadFormMode:void 0,prepareStep:"emailSelection",transferParameters:{linkParameters:{delivery:null,customUrl:null,accessTracking:null},emailParameters:{description:null,delivery:null},commonParameters:{title:null,size:0,domain:null,filesNumber:0,availabilityDuration:0,preview:null,password:null,notification:null,promotion:null,customization:null}},configDrawerExpanded:!1,configFormStatus:null,configPasswordStatus:null,customization:null,customizationLoading:!1,customizationLoaded:!1,customizationError:null,customizationMediaLoading:!1,customizationBackgrounds:[],customizationBackgroundsLoading:!1,customizationBackgroundsLoaded:!1,customizationLogos:[],customizationLogosLoading:!1,customizationLogosLoaded:!1,customizationEdited:null,externalPromotions:[],externalPromotionsLoading:!1,externalPromotionsLoaded:!1,externalPromotionsError:null,externalPromotionSelected:null,externalPromotionLoading:!1,externalPromotionLoaded:!1,externalPromotionError:null,modalSizePremiumDisplayed:!1,verifyEmailResponse:null,verifyEmailLoading:!1,verifyEmailLoaded:!1,verifyEmailError:null,validateEmailVerificationCodeResponse:null,validateEmailVerificationCodeLoading:!1,validateEmailVerificationCodeLoaded:!1,validateEmailVerificationCodeError:null,sendEmailVerificationLoading:!1,sendEmailVerificationLoaded:!1,sendEmailVerificationError:null,verificationCodeFormDisplayed:!1,verifyCaptchaResponse:null,verifyCaptchaLoading:!1,verifyCaptchaLoaded:!1,verifyCaptchaError:null,error:null},Ie=(0,e.vy)(ue,(0,e.on)(w.Zd.resetPrepare,t=>({...t,...ue})),(0,e.on)(w.Zd.loadCustomization,t=>({...t,customizationLoading:!0,customizationLoaded:ue.customizationLoaded,customization:ue.customization,customizationError:ue.customizationError})),(0,e.on)(w.Zd.loadCustomizationSuccess,(t,{customization:s})=>({...t,customizationLoading:!1,customizationLoaded:!0,customization:s,customizationEdited:s})),(0,e.on)(w.Zd.loadCustomizationFailure,(t,{error:s})=>({...t,customizationLoading:!1,customizationLoaded:!0,customizationError:s})),(0,e.on)(w.Zd.loadBackgrounds,t=>({...t,customizationBackgrounds:ue.customizationBackgrounds,customizationBackgroundsLoading:!0,customizationBackgroundsLoaded:!1})),(0,e.on)(w.Zd.loadBackgroundsSuccess,(t,{backgrounds:s})=>({...t,customizationBackgrounds:s,customizationBackgroundsLoading:!1,customizationBackgroundsLoaded:!0})),(0,e.on)(w.Zd.loadLogos,t=>({...t,customizationLogos:ue.customizationLogos,customizationLogosLoading:!0,customizationLogosLoaded:!1})),(0,e.on)(w.Zd.loadLogosSuccess,(t,{logos:s})=>({...t,customizationLogos:s,customizationLogosLoading:!1,customizationLogosLoaded:!0}
1)),(0,e.on)(w.Zd.addBackgroundImageToAttach,t=>({...t,customizationMediaLoading:!0})),(0,e.on)(w.Zd.addBackgroundImageToAttachSuccess,(t,{background:s})=>({...t,customizationMediaLoading:!1,customizationBackgrounds:[...t.customizationBackgrounds,s],customizationEdited:{...t.customizationEdited,background:s}})),(0,e.on)(w.Zd.addBackgroundVideoToAttach,t=>({...t,customizationMediaLoading:!0})),(0,e.on)(w.Zd.addBackgroundVideoToAttachSuccess,(t,{background:s})=>({...t,customizationMediaLoading:!1,customizationBackgrounds:[...t.customizationBackgrounds,s],customizationEdited:{...t.customizationEdited,background:s}})),(0,e.on)(w.Zd.addLogoToAttach,t=>({...t,customizationMediaLoading:!0})),(0,e.on)(w.Zd.addLogoToAttachSuccess,(t,{logo:s})=>({...t,customizationMediaLoading:!1,customizationLogos:[...t.customizationLogos,s],customizationEdited:{...t.customizationEdited,logo:s}})),(0,e.on)(w.Zd.ResetCustomisationEdited,t=>({...t,customizationEdited:t.customization})),(0,e.on)(w.Zd.loadExternalPromotions,t=>({...t,externalPromotionsLoading:!0,externalPromotionsLoaded:ue.externalPromotionsLoaded,externalPromotions:ue.externalPromotions,externalPromotionsError:ue.externalPromotionsError,externalPromotionSelected:ue.externalPromotionSelected})),(0,e.on)(w.Zd.loadExternalPromotionsSuccess,(t,{promotions:s})=>({...t,externalPromotionsLoading:!1,externalPromotionsLoaded:!0,externalPromotions:s})),(0,e.on)(w.Zd.loadExternalPromotionsFailure,(t,{error:s})=>({...t,externalPromotionsError:s,externalPromotionsLoading:!1,externalPromotionsLoaded:!0})),(0,e.on)(w.Zd.selectRandomExternalPromotionSuccess,(t,{promotion:s})=>({...t,externalPromotionSelected:s})),(0,e.on)(w.Zd.loadPromotion,t=>({...t,externalPromotionLoading:!0,externalPromotionSelected:ue.externalPromotionSelected,externalPromotionError:ue.externalPromotionError})),(0,e.on)(w.Zd.loadPromotionSuccess,(t,{promotion:s})=>({...t,externalPromotionLoading:!1,externalPromotionLoaded:!0,externalPromotionSelected:s})),(0,e.on)(w.Zd.loadPromotionFailure,(t,{error:s})=>({...t,externalPromotionLoading:!1,externalPromotionError:s})),(0,e.on)(w.Zd.setConfigFormStatus,(t,{configFormStatus:s})=>({...t,configFormStatus:s})),(0,e.on)(w.Zd.setConfigPasswordStatus,(t,{configPasswordStatus:s})=>({...t,configPasswordStatus:s})),(0,e.on)(w.Zd.resetDrawer,t=>({...t,configDrawerExpanded:!1,configFormStatus:null,configPasswordStatus:null})),(0,e.on)(w.Zd.toggleConfigDrawerExpanded,t=>({...t,configDrawerExpanded:!t.configDrawerExpanded})),(0,e.on)(w.Zd.setUploadFormMode,(t,{uploadFormMode:s})=>({...t,uploadFormMode:s})),(0,e.on)(w.Fb.AddRawFilesSuccess,(t,{files:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,filesNumber:t.transferParameters.commonParameters.filesNumber+s.length,size:t.transferParameters.commonParameters.size+s.reduce((J,Re)=>J+Re.size,0)}}})),(0,e.on)(w.Fb.RemoveRawFile,(t,{file:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,filesNumber:t.transferParameters.commonParameters.filesNumber-1,size:t.transferParameters.commonParameters.size-s.size}}})),(0,e.on)(w.Fb.RemoveRawFiles,(t,{files:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,filesNumber:t.transferParameters.commonParameters.filesNumber-s.length,size:t.transferParameters.commonParameters.size-s.reduce((J,Re)=>J+Re.size,0)}}})),(0,e.on)(w.Zd.SetTransferConfigurationParameters,(t,{parameters:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,password:s.password,availabilityDuration:s.availabilityDuration*Y.h.oneDayInSecond,preview:s.preview,notification:s.notification}}})),(0,e.on)(w.Zd.UpdatePrepareStep,(t,{step:s})=>({...t,prepareStep:s})),(0,e.on)(w.Zd.SetTransferPassword,(t,{password:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,password:s}}})),(0,e.on)(w.Zd.SetTransferAvailability,(t,{availability:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,availabilityDuration:s*Y.h.oneDayInSecond}}})),(0,e.on)(w.Zd.SetTransferPromotion,(t,{promotion:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,promotion:{id:s.id}}}})),(0,e.on)(w.Zd.SetTransferCustomization,(t,{logo:s,background:J})=>({...t,customization:{...t.customization,logo:s,background:J},customizationEdited:{logo:s,background:J},transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,customization:{logo:null==s?void 0:s.sourceUrl,background:null==J?void 0:J.sourceUrl}}}})),(0,e.on)(w.Zd.SetTransferNotification,(t,{notification:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,notification:s}}}
1)),(0,e.on)(w.Zd.SetTransferPreviewType,(t,{preview:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,preview:s}}})),(0,e.on)(w.Zd.SetTransferSender,(t,{sender:s})=>({...t,transferParameters:{...t.transferParameters,emailParameters:{...t.transferParameters.emailParameters,delivery:{...t.transferParameters.emailParameters.delivery,sender:{email:s.email,name:s.name}}},linkParameters:{...t.transferParameters.linkParameters,delivery:{...t.transferParameters.linkParameters.delivery,sender:{email:s.email}}}}})),(0,e.on)(w.Zd.SetLinkTitle,(t,{title:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,title:s}}})),(0,e.on)(w.Zd.SetTransferAccessTracking,(t,{accessTracking:s})=>({...t,transferParameters:{...t.transferParameters,linkParameters:{...t.transferParameters.linkParameters,accessTracking:s}}})),(0,e.on)(w.Zd.SetLinkCustomUrl,(t,{customUrl:s})=>({...t,transferParameters:{...t.transferParameters,linkParameters:{...t.transferParameters.linkParameters,customUrl:s}}})),(0,e.on)(w.Zd.SetEmailTitle,(t,{title:s})=>({...t,transferParameters:{...t.transferParameters,commonParameters:{...t.transferParameters.commonParameters,title:s}}})),(0,e.on)(w.Zd.SetEmailDescription,(t,{description:s})=>({...t,transferParameters:{...t.transferParameters,emailParameters:{...t.transferParameters.emailParameters,description:s}}})),(0,e.on)(w.Zd.SetEmailReceivers,(t,{receivers:s})=>({...t,transferParameters:{...t.transferParameters,emailParameters:{...t.transferParameters.emailParameters,delivery:{...t.transferParameters.emailParameters.delivery,receivers:s}}}})),(0,e.on)(w.Fb.CancelUpload,t=>({...t,transferParameters:{...t.transferParameters,linkParameters:{...t.transferParameters.linkParameters,customUrl:null,title:null}}})),(0,e.on)(w.Fb.ResetUpload,t=>{var s,J;return{...t,transferParameters:{...ue.transferParameters,emailParameters:{...ue.transferParameters.emailParameters,...null!==(s=t.transferParameters.emailParameters)&&void 0!==s&&null!==(s=s.delivery)&&void 0!==s&&s.sender?{delivery:{...ue.transferParameters.emailParameters.delivery,sender:t.transferParameters.emailParameters.delivery.sender}}:{}},linkParameters:{...ue.transferParameters.linkParameters,...null!==(J=t.transferParameters.linkParameters)&&void 0!==J&&null!==(J=J.delivery)&&void 0!==J&&J.sender?{delivery:{...ue.transferParameters.linkParameters.delivery,sender:t.transferParameters.linkParameters.delivery.sender}}:{}}}}}),(0,e.on)(w.Zd.DisplayModalSizePremium,t=>({...t,modalSizePremiumDisplayed:!0})),(0,e.on)(w.Zd.HideModalSizePremium,t=>({...t,modalSizePremiumDisplayed:!1})),(0,e.on)(w.Zd.VerifyEmail,t=>({...t,verifyEmailResponse:ue.verifyEmailResponse,verifyEmailLoading:!0,verifyEmailLoaded:ue.verifyEmailLoaded,verifyEmailError:ue.verifyEmailError})),(0,e.on)(w.Zd.VerifyEmailSuccess,(t,{status:s})=>({...t,verifyEmailResponse:s,verifyEmailLoading:!1,verifyEmailLoaded:!0})),(0,e.on)(w.Zd.VerifyEmailFailure,(t,{error:s})=>({...t,verifyEmailLoading:!1,verifyEmailError:s})),(0,e.on)(w.Zd.ResetVerifyEmail,t=>({...t,verifyEmailResponse:ue.verifyEmailResponse,verifyEmailLoading:ue.verifyEmailLoading,verifyEmailLoaded:ue.verifyEmailLoaded,verifyEmailError:ue.verifyEmailError,validateEmailVerificationCodeResponse:ue.validateEmailVerificationCodeResponse,validateEmailVerificationCodeLoading:ue.validateEmailVerificationCodeLoading,validateEmailVerificationCodeLoaded:ue.validateEmailVerificationCodeLoaded,validateEmailVerificationCodeError:ue.validateEmailVerificationCodeError})),(0,e.on)(w.Zd.ValidateEmailVerificationCode,t=>({...t,validateEmailVerificationCodeResponse:ue.validateEmailVerificationCodeResponse,validateEmailVerificationCodeLoading:!0,validateEmailVerificationCodeLoaded:ue.validateEmailVerificationCodeLoaded,validateEmailVerificationCodeError:ue.validateEmailVerificationCodeError})),(0,e.on)(w.Zd.ValidateEmailVerificationCodeSuccess,(t,{status:s})=>({...t,validateEmailVerificationCodeResponse:s,validateEmailVerificationCodeLoading:!1,validateEmailVerificationCodeLoaded:!0})),(0,e.on)(w.Zd.ValidateEmailVerificationCodeFailure,(t,{error:s})=>({...t,validateEmailVerificationCodeLoading:!1,validateEmailVerificationCodeError:s})),(0,e.on)(w.Zd.DisplayVerificationCodeForm,t=>({...t,verificationCodeFormDisplayed:!0})),(0,e.on)(w.Zd.HideVerificationCodeForm,t=>({...t,verificationCodeFormDisplayed:!1})),(0,e.on)(w.Zd.SendEmailVerificationCode,t=>({...t,sendEmailVerificationLoading:!0,sendEmailVerificationLoaded:ue.sendEmailVerificationLoaded,sendEmailVerificationError:ue.sendEmailVerificationError})),(0,e.on)(w.Zd.SendEmailVerificationCodeSuccess,(t,{})=>({...t,sendEmailVerificationLoading:!1,sendEmailVerificationLoaded:!0})),(0,e.on)(w.Zd.SendEmailVerificationCodeFailure,(t,{error:s})=>({...t,sendEmailVerificationLoading:!1,sendEmailVerificationError:s}))),wt=(0,e.vy)({error:null,promotionLoading:!1,promotionLoaded:null}
1,(0,e.on)(w.EC.loadPromotionsInternal,t=>({...t,promotionLoading:!0})),(0,e.on)(w.EC.loadPromotionsSuccess,(t,{promotions:s,language:J})=>{const Re="*"===J?s:s.filter(Lt=>Lt.language===J||"all_language"===Lt.language);return{...t,promotionLoaded:Re[Math.floor(Math.random()*Re.length)],promotionLoading:!0}}),(0,e.on)(w.EC.loadPromotionsFailure,(t,{error:s})=>({...t,error:s,promotionsLoading:!1})),(0,e.on)(w.EC.loadPromotionSuccess,(t,{promotion:s})=>({...t,promotionLoaded:s,promotionLoading:!1})),(0,e.on)(w.EC.loadPromotionFailure,(t,{error:s})=>({...t,error:s,promotionLoading:!1})));var Ht=r(97184);const mt={step:"LANDING",mode:void 0},It=(0,e.vy)(mt,(0,e.on)(w.xZ.resetStep,t=>({...t,step:mt.step})),(0,e.on)(w.xZ.updateStep,(t,{step:s})=>({...t,step:s})),(0,e.on)(w.xZ.updateMode,(t,{mode:s})=>({...t,mode:s})),(0,e.on)(Ht.oR.loadDomainSuccess,(t,{domain:s})=>{var J;return{...t,mode:(null===(J=s.options)||void 0===J||null===(J=J.transferMode)||void 0===J?void 0:J.default)||mt.mode}})),po=(0,e.vy)({menuDisplayed:!1,fileOver:!1},(0,e.on)(w.GX.ToggleMenu,(t,{menuDisplayed:s})=>({...t,menuDisplayed:s})),(0,e.on)(w.GX.UpdateFileOver,(t,{fileOver:s})=>({...t,fileOver:s}))),Kt={dropbox:{dropbox:null,dropboxCreating:!1,dropboxCreated:!1,dropboxError:null},dropboxPreview:{dropbox:null,dropboxPreviewLoading:!1,dropboxPreviewLoaded:!1,dropboxPreviewError:null}},Qt=(0,e.vy)(Kt,(0,e.on)(w.ee.CreateTeamDropbox,(t,{})=>({...t,dropbox:{...t.dropbox,dropboxCreating:!0,dropboxCreated:!1,dropboxError:null}})),(0,e.on)(w.ee.CreateTeamDropboxSuccess,(t,{dropbox:s})=>({...t,dropbox:{...t.dropbox,dropboxCreating:!1,dropboxCreated:!0,dropboxError:null,dropbox:s}})),(0,e.on)(w.ee.CreateTeamDropboxFailure,(t,{error:s})=>({...t,dropbox:{...t.dropbox,dropboxCreating:!1,dropboxCreated:!1,dropboxError:s}})),(0,e.on)(w.ee.GetDropboxPreview,t=>({...t,dropboxPreview:{...t.dropboxPreview,dropboxPreviewLoading:!0,dropboxPreviewLoaded:!1,dropboxPreviewError:null}})),(0,e.on)(w.ee.GetDropboxPreviewSuccess,(t,{dropbox:s})=>({...t,dropboxPreview:{...t.dropboxPreview,dropboxPreviewLoading:!1,dropboxPreviewLoaded:!0,dropboxPreviewError:null,dropbox:s}})),(0,e.on)(w.ee.GetDropboxPreviewFailure,(t,{error:s})=>({...t,dropboxPreview:{...t.dropboxPreview,dropboxPreviewLoading:!1,dropboxPreviewLoaded:!1,dropboxPreviewError:s}})),(0,e.on)(w.ee.ResetDropbox,t=>({...t,dropbox:{...Kt.dropbox},dropboxPreview:{...Kt.dropboxPreview}}))),zt="uploader",rt=(0,e.HY)({layout:function fo(t,s){return po(t,s)},prepare:Ie,send:wt,upload:H,workflow:function Dt(t,s){return It(t,s)},dropbox:function Zt(t,s){return Qt(t,s)}});function eo(t,s){return rt(t,s)}const et=(0,e.UX)(zt),Bt=(0,e.Mz)(et,t=>t.layout),Ee=(0,e.Mz)(et,t=>t.prepare),jt=(0,e.Mz)(et,t=>t.send),D=(0,e.Mz)(et,t=>t.upload),me=(0,e.Mz)(et,t=>t.workflow),re=(0,e.Mz)(et,t=>t.dropbox),G=(0,e.Mz)(Ee,t=>t.prepareStep),S=(0,e.Mz)(Bt,t=>t.menuDisplayed),y=(0,e.Mz)(Bt,t=>t.fileOver),k=(0,e.Mz)(Ee,t=>t.configDrawerExpanded),h=(0,e.Mz)(Ee,t=>t.externalPromotions),x=(0,e.Mz)(Ee,t=>t.externalPromotionsLoaded),L=(0,e.Mz)(Ee,t=>t.externalPromotionSelected),O=(0,e.Mz)(Ee,t=>t.externalPromotionsLoading),Z=(0,e.Mz)(Ee,t=>t.externalPromotionsError),U=(0,e.Mz)(Ee,t=>t.customization),M=(0,e.Mz)(Ee,t=>t.customizationLoading),F=(0,e.Mz)(Ee,t=>t.customizationLoaded),se=(0,e.Mz)(Ee,t=>t.customizationError),ee=(0,e.Mz)(Ee,t=>t.customizationLogos),de=(0,e.Mz)(Ee,t=>t.customizationLogosLoading),X=(0,e.Mz)(Ee,t=>t.customizationLogosLoaded),ae=(0,e.Mz)(Ee,t=>t.customizationBackgrounds),fe=(0,e.Mz)(Ee,t=>t.customizationBackgroundsLoading),he=(0,e.Mz)(Ee,t=>t.customizationBackgroundsLoaded),Le=(0,e.Mz)(Ee,t=>t.customizationEdited),ye=(0,e.Mz)(Ee,t=>t.customizationMediaLoading),ke=(0,e.Mz)(Ee,t=>t.uploadFormMode),Oe=(0,e.Mz)(Ee,t=>t.configFormStatus),_e=(0,e.Mz)(Ee,t=>t.configPasswordStatus),tt=(0,e.Mz)(Ee,t=>t.transferParameters.commonParameters),De=(0,e.Mz)(Ee,t=>t.transferParameters.emailParameters),ze=(0,e.Mz)(Ee,t=>t.transferParameters.linkParameters),be=(0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.size),Ne=(0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.password),Nt=((0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.customization),(0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.promotion),(0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.availabilityDuration)),to=((0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.preview),(0,e.Mz)(Ee,t=>t.transferParameters.commonParameters.notification),(0,e.Mz)(Ee,t=>{var s,J;return null!=t&&null!==(s=t.transferParameters)&&void 0!==s&&null!==(s=s.emailParameters)&&void 0!==s&&null!==(s=s.delivery)&&void 0!==s&&null!==(s=s.sender)&&void 0!==s&&s.email?t.transferParameters.emailParameters.delivery.sender.email:null!=t&&null!==(J=t.transferParameters)&&void 0!==J&&null!==(J=J.linkParameters)&&void 0!==J&&null!==(J=J.delivery)&&void 0!==J&&null!==(J=J.sender)&&void 0!==J&&J.email?t.transferParameters.linkParameters.delivery.sender.email:void 0})),oo=(0,e.Mz)(Ee,t=>t.modalSizePremiumDisplayed),ao=(0,e.Mz)(Ee,t=>t.verifyEmailResponse),ro=(0,e.Mz)(Ee,t=>
1t.verifyEmailLoaded),Ae=(0,e.Mz)(Ee,t=>t.verifyEmailLoading),no=(0,e.Mz)(Ee,t=>t.verifyEmailError),so=(0,e.Mz)(Ee,t=>t.validateEmailVerificationCodeResponse),io=(0,e.Mz)(Ee,t=>t.validateEmailVerificationCodeLoaded),co=(0,e.Mz)(Ee,t=>t.validateEmailVerificationCodeLoading),lo=(0,e.Mz)(Ee,t=>t.validateEmailVerificationCodeError),uo=(0,e.Mz)(Ee,t=>t.sendEmailVerificationLoading),Ce=(0,e.Mz)(Ee,t=>t.sendEmailVerificationLoaded),Pe=(0,e.Mz)(Ee,t=>t.sendEmailVerificationError),Po=(0,e.Mz)(Ee,t=>t.verificationCodeFormDisplayed),Co=((0,e.Mz)(D,t=>t.uploadState.startDate),(0,e.Mz)(D,t=>{var s;return null===(s=t.uploadState)||void 0===s?void 0:s.error})),Io=(0,e.Mz)(D,t=>t.transferState.transfer),Ro=(0,e.Mz)(D,t=>{var s;return null===(s=t.transferState.transfer)||void 0===s?void 0:s.queue}),Uo=(0,e.Mz)(D,t=>t.uploadState.status),ko=(0,e.Mz)(D,t=>{var s;return null===(s=t.uploadState)||void 0===s?void 0:s.progress}),Fo=(0,e.Mz)(D,t=>{var s;return null===(s=t.uploadState)||void 0===s?void 0:s.uploadedBytes}),$t=((0,e.Mz)(D,t=>{var s;return null===(s=t.uploadState)||void 0===s?void 0:s.remainingSize}),(0,e.Mz)(D,t=>{var s;return null===(s=t.uploadState)||void 0===s?void 0:s.speed})),Lo=(0,e.Mz)(D,t=>t.filesState.rawFilesState),Oo=((0,e.Mz)(Lo,d),(0,e.Mz)(Lo,ge)),Xo=(0,e.Mz)(D,t=>t.filesState.rawFilesState.error),Do=(0,e.Mz)(D,t=>t.uploadState.updateAndResumeUploadLoading),Ao=(0,e.Mz)(D,t=>t.uploadState.updateAndResumeUploadError),Vo=(0,e.Mz)(jt,t=>null==t?void 0:t.promotionLoaded),xo=((0,e.Mz)(jt,t=>null==t?void 0:t.promotionLoading),(0,e.Mz)(me,t=>t.step)),_o=(0,e.Mz)(me,t=>t.mode),zo=(0,e.Mz)(re,t=>t.dropbox.dropbox),bo=(0,e.Mz)(re,t=>t.dropbox.dropboxError),yo=(0,e.Mz)(re,t=>t.dropbox.dropboxCreating),No=(0,e.Mz)(re,t=>t.dropbox.dropboxCreated),Ho=(0,e.Mz)(re,t=>t.dropboxPreview.dropbox),Bo=(0,e.Mz)(re,t=>t.dropboxPreview.dropboxPreviewLoading),jo=((0,e.Mz)(re,t=>t.dropboxPreview.dropboxPreviewLoaded),(0,e.Mz)(re,t=>{var s;if(null!=t&&null!==(s=t.dropboxPreview)&&void 0!==s&&null!==(s=s.dropbox)&&void 0!==s&&null!==(s=s.configuration)&&void 0!==s&&s.transfer){const{availabilityDuration:J,notification:Re,password:Lt,preview:mo}=t.dropboxPreview.dropbox.configuration.transfer;return J.active||Re.sender.active||Re.noDownload.active||Re.download.active||Lt.active||mo.active}return!0}))},93718:(pe,N,r)=>{"use strict";r.d(N,{Y:()=>e});var o=r(69711);const e={teamRoles:{marketer:{name:"${team}$Marketer",description:"Marketer",policies:["baseMember","domainReadAccess","domainCustomizationFullAccess","promotionFullAccess","customizationFullAccess","imageFullAccess","linkReadAccess"],tags:{...(0,o.r)()}},collaborator:{name:"${team}$Collaborator",description:"Collaborator",policies:["baseMember","domainReadAccess","promotionReadAccess","imageFullAccess","domainCustomizationReadAccess","customizationReadAccess","linkReadAccess"],tags:{...(0,o.r)()}},reporter:{name:"${team}$Reporter",description:"Reporter",policies:["baseMember","domainReadAccess","promotionReadAccess","imageFullAccess","domainCustomizationReadAccess","customizationReadAccess","linkReadAccess","transferStatsTeamAccess"],tags:{...(0,o.r)()}},administrator:{name:"${team}$Administrator",description:"Administrator",policies:["baseMember","domainReadAccess","teamFullAccess","teamAdministratorMemberAccess","teamAdministratorGroupAccess","domainCustomizationFullAccess","transferStatsTeamAccess","domainWriteAccess","imageFullAccess","promotionFullAccess","customizationFullAccess"],tags:{...(0,o.r)()}}}}},55198:(pe,N,r)=>{"use strict";r.d(N,{a:()=>n});var o=r(93718),e=r(59549),c=r(69711);const a={teamFullAccess:{name:"${team}-adminTeamFullAccess",description:"Provides full access to team resources.",statement:[{action:["iam:AttachTeamGroup","iam:AttachTeamUser","iam:AttachTeamGroupUser","iam:AttachTeamUserRole","iam:AttachTeamGroupRole","iam:DetachTeamGroupUser","iam:DetachTeamUserRole","iam:DetachTeamGroup","iam:DetachTeamUser","iam:GetTeam","iam:GetTeamUser","iam:GetTeamGroup","iam:ListTeamGroups","iam:ListTeamRoles","iam:ListTeamGroupRoles","iam:ListTeamUserGroups","iam:ListTeamUserRoles","iam:ListTeamGroupUsers","iam:ListUsers","iam:ListTeamUsers","iam:InviteTeamUser","iam:UpdateTeam"],effect:"Allow",resource:["srn:smash:iam:$account:*:user","srn:smash:iam:$account:*:team/${team}","srn:smash:iam:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},teamAdministratorMemberAccess:{name:"${team}-teamAdministratorMemberAccess",description:"Provides write access to members for team administrator.",statement:[{action:["iam:CreateUser"],effect:"Allow",resource:["srn:smash:iam:$account:*:user"]}],tags:{...(0,c.r)()}},teamAdministratorGroupAccess:{name:"${team}-teamAdministratorGroupAccess",description:"Provides write access to groups for team administrator.",statement:[{action:["iam:ListGroupUsers","iam:CreateGroup"],effect:"Allow",resource:["srn:smash:iam:$account:*:group","srn:smash:iam:$account:*:group/*"]}],tags:{...(0,c.r)()}},transferFullAccess:{name:"${team}-TransferFullAccess",description:"Provides full access to Transfer services and team resources.",statement:[{action:["transfer:CreateTeamTransfer","transfer:DeleteTeamTransfer","transfer:GetTeamTransfer","transfer:ListTeamTransfers","transfer:ListTeamBackgroun
1ds","transfer:ListTeamTransferEvents","transfer:ListTeamTransferFiles","transfer:GetTeamTransferFile","transfer:CreateDropboxTransfer","transfer:CreateTeamUserDropbox","transfer:GetTeamReceipt","transfer:DeleteTeamReceipt","transfer:ListTeamReceipts","transfer:ListTeamReceiptFiles","transfer:ListTeamUserReceiptFiles"],effect:"Allow",resource:["srn:smash:transfer:$account:*:team/${team}/*","srn:smash:transfer:$account:*:dropbox/*/transfer"]}],tags:{...(0,c.r)()}},transferReadAccess:{name:"${team}-TransferReadAccess",description:"Provides read only access to Transfer services.",statement:[{action:["transfer:GetTeamTransfer","transfer:ListTeamBackgrounds","transfer:ListTeamTransferEvents","transfer:ListTeamTransferFiles","transfer:GetTeamTransferFile","transfer:GetTeamReceipt","transfer:GetTeamUserReceipt","transfer:GetTeamReceiptFile","transfer:GetTeamUserReceiptFile","transfer:ListTeamReceipts","transfer:ListTeamUserReceipts","transfer:ListTeamReceiptFiles","transfer:ListTeamUserReceiptFiles"],effect:"Allow",resource:["srn:smash:transfer:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},transferStatsTeamAccess:{name:"${team}-transferStatsReadAccess",description:"Provides access to team stats.",statement:[{action:["transfer:GetTeamMetricStatistic","transfer:GetTeamUserMetricStatistic"],effect:"Allow",resource:["srn:smash:transfer:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},transferStatsFullAccess:{name:"${team}-transferStatsReadAccess",description:"Provides full access to stats.",statement:[{action:["transfer:GetMetricStatistic","transfer:GetTeamMetricStatistic","transfer:GetTeamUserMetricStatistic","transfer:GetUserMetricStatistic"],effect:"Allow",resource:["srn:smash:transfer:$account:*:*"]}],tags:{...(0,c.r)()}},customizationFullAccess:{name:"${team}-CustomizationFullAccess",description:"Provides full access to Customization services and team resources.",statement:[{action:["customization:ListTeamCustomizations","customization:ListTeamLogos","customization:ListTeamBackgrounds","customization:CreateTeamLogo","customization:DeleteTeamLogo","customization:CreateTeamBackground","customization:DeleteTeamBackground","customization:GetTeamCustomization","customization:CreateTeamCustomization","customization:UpdateTeamCustomization","customization:AttachTeamCustomizationLogo","customization:AttachTeamCustomizationBackground","customization:DetachTeamCustomizationLogo","customization:DetachTeamCustomizationBackground","customization:DeleteTeamCustomization"],effect:"Allow",resource:["srn:smash:customization:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},customizationReadAccess:{name:"${team}-CustomizationReadAccess",description:"Provides read only access to Customization services.",statement:[{action:["customization:ListTeamCustomizations","customization:ListTeamLogos","customization:ListTeamBackgrounds","customization:GetTeamCustomization"],effect:"Allow",resource:["srn:smash:customization:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},domainCustomizationFullAccess:{name:"${team}-DomainCustomizationFullAccess",description:"Provides full access to DomainCustomization services and team resources.",statement:[{action:["domain:GetDomainCustomization","domain:UpdateDomainCustomization","domain:DeleteDomainCustomization"],effect:"Allow",resource:["srn:smash:domain:$account::domain/${domain}/customization"]}],tags:{...(0,c.r)()}},domainCustomizationReadAccess:{name:"${team}-DomainCustomizationReadAccess",description:"Provides read access to DomainCustomization services and team resources.",statement:[{action:["domain:GetDomainCustomization"],effect:"Allow",resource:["srn:smash:domain:$account::domain/${domain}/customization"]}],tags:{...(0,c.r)()}},promotionFullAccess:{name:"${team}-PromotionFullAccess",description:"Provides full access to Promotion services and team resources.",statement:[{action:["promotion:GetTeamPromotion","promotion:ListTeamPromotions","promotion:ListTeamPromotionsExternal","promotion:ListTeamPromotionsInternal","promotion:CreateTeamPromotion","promotion:DeleteTeamPromotion","promotion:UpdateTeamPromotion","promotion:CreateTeamPromotionMedia","promotion:DeleteTeamPromotionMedia"],effect:"Allow",resource:["srn:smash:promotion:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},promotionReadAccess:{name:"${team}-PromotionReadAccess",description:"Provides read only access to Promotion services.",statement:[{action:["promotion:GetTeamPromotion","promotion:ListTeamPromotionsExternal","promotion:ListTeamPromotionsInternal"],effect:"Allow",resource:["srn:smash:promotion:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},linkReadAccess:{name:"${team}-LinkReadAccess",description:"Provides read only access to Link services.",statement:[{action:["link:GetTeamLink","link:ListTeamLinks"],effect:"Allow",resource:["srn:smash:link:$account:*:team/${team}/*"]}],tags:{...(0,c.r)()}},imageFullAccess:{name:"${team}-ImageFullAccess",description:"Provides full access to Image services",statement:[{action:["image:CreateImage","image:GetImage"],effect:"Allow",resource:["srn:smash:image:$account:*:image","srn:smash:image:$account:*:image/*"]}],tags:{...(0,c.r)()}},domainWriteAccess:{name:"${team}-DomainWriteAccess",description:"Provides write access to Domain services.",statement:[{action:["domain:UpdateDomain"],effect:"Allow",resource:["srn:smash:domain:$account:*:domain/${domain}"]}],tags:{...(0,c.r)()}},domainReadAccess:{name:"${team}-DomainReadAccess",description:"Provides read access to Domain services.",statement:[{action:["domain:GetDomain"],effect:"Allow",resource:["srn:smash:domain:$account:*:domain/${domain}"]}],tags:{...(0,c.r)()}},baseMember:{name:"${team}-baseMember",description:"Provides basic access to a team member.",statement:[{action:["billing:ListSubscriptionLimits"],effect:"Allow",resource:["srn:smash:billing:$account:*:limit"]},{action:["scitylana:CreateTneve"],effect:"Allow",resource:["srn:smash:scitylana::*:tneve"]},{action:["captcha:VerifyChallenge"],effect:"Allow",resource:["srn:smash:captcha::*:challenge"]},{action:["kyc:GetEmailChallenge"],effect:"Allow",resource:["srn:smash:kyc::*:email-challenge"]},{action:["iam:CreateUserMfaFactorSecret","iam:GetUserMfa","iam:UpdateUserMfa","iam:VerifyUserMfaFactor","iam:ResetUserMfaFactor"],effect:"Allow",resource:["srn:smash:iam:$account:*:user/$id/mfa","srn:smash:iam:$account:*:user/$id/mfa/*"]},{action:["iam:UpdatePassword"],effect:"Allow",resource:["srn:smash:iam:$account:*:password"]},{action:["iam:ListSessions","iam:DeleteSession"],effect:"Allow",resource:["srn:smash:iam:$account:*:session","srn:smash:iam:$account:*:session/
1*"]},{action:["iam:RenewToken"],effect:"Allow",resource:["srn:smash:iam:$account:*:token"]},{action:["iam:ListUserTeams","iam:ListUserGroupsTeams","iam:ListUserRoles","iam:ListUserGroupsRoles","iam:GetUser","iam:UpdateUser"],effect:"Allow",resource:["srn:smash:iam:$account:*:user/$id","srn:smash:iam:$account:*:user/$id/*"]},{action:["customization:GetManagedCustomization","customization:ListManagedCustomizations","customization:ListManagedBackgrounds","customization:ListManagedLogos"],effect:"Allow",resource:["*"]},{action:["transfer:CreateTeamTransfer","transfer:ListUserTransfers","transfer:GetUserTransfer","transfer:ListUserTransferFiles","transfer:ListTeamUserTransfers","transfer:ListUserTransferEvents","transfer:DeleteUserTransfer","transfer:UpdateTransfer","transfer:LockTransfer","transfer:CreateTransferFile","transfer:DeleteTransferFile","transfer:UpdateTransferFile","transfer:CreateTransferFilePart","transfer:CreateTransferFileParts","transfer:UpdateTransferFilePart","transfer:UpdateTransferFileParts","transfer:GetTransferPreview","transfer:ListTransferFilesPreview","transfer:CreateTransferSignedUrls","transfer:GetReport","transfer:DeleteReport","transfer:CreateDropboxTransfer","transfer:GetDropboxPreview","transfer:CreateTeamUserDropbox","transfer:GetTeamUserReceipt","transfer:GetTeamUserReceiptFile","transfer:DeleteTeamUserReceipt","transfer:ListTeamUserReceipts","transfer:ListTeamUserReceiptFiles"],effect:"Allow",resource:["srn:smash:transfer:$account:*:team/${team}/transfer/queue","srn:smash:transfer:$account:*:team/${team}/transfer","srn:smash:transfer:$account:*:team/${team}/user/$id/transfer/*","srn:smash:transfer:$account:*:team/${team}/user/$id/transfer","srn:smash:transfer:$account:*:user/$id/transfer/*","srn:smash:transfer:$account:*:user/$id/transfer","srn:smash:transfer:$account:*:transfer/*","srn:smash:transfer:$account:*:transfer","srn:smash:transfer::*:transfer/*","srn:smash:transfer:$account:*:report/*","srn:smash:transfer:$account:*:dropbox/*","srn:smash:transfer:$account:*:dropbox/*/transfer","srn:smash:$service:$account:*:team/${team}/user/$id/dropbox","srn:smash:transfer:$account:*:team/${team}/user/$id/receipt","srn:smash:transfer:$account:*:team/${team}/user/$id/receipt/*","srn:smash:transfer:$account:*:team/${team}/user/$id/receipt/*/file","srn:smash:transfer:$account:*:team/${team}/user/$id/receipt/*/file/*"]},{action:["link:GetTarget"],effect:"Allow",resource:["srn:smash:link::*:target/*"]},{action:["vat:ListCountries"],effect:"Allow",resource:["*"]},{action:["promotion:GetPromotionPreview"],effect:"Allow",resource:["srn:smash:promotion::*:promotion/*"]}],tags:{...(0,c.r)()}}},u=/\${([a-zA-Z]+)\}/g;class f{constructor(l,v){if(!a[l])throw new Error(`Policy ${l} doesn't exists`);this.description=a[l].description,this.statement=JSON.parse(JSON.stringify(a[l].statement)),this.tags=a[l].tags,this.buildPolicyName(l,v),this.buildStatements(v)}buildPolicyName(l,v){this.name=a[l].name.replace(u,(C,g)=>{if(v[g])return v[g]})}buildStatements(l){this.statement=this.statement.map(v=>(v.resource=v.resource.map(C=>((0,e.sh)(C,u,1).forEach(H=>{C=C.replace("${"+H+"}",l[H])}),C)),v))}}const i=/\${([a-zA-Z]+)\}/;class n{constructor({roleName:l,role:v},C){this.buildRoleName(l,C),this.buildShortName(),this.buildPolicies(l,C),this.description=v.description,this.tags=v.tags}buildRoleName(l,v){this.name=o.Y.teamRoles[l].name.replace(i,(C,g)=>{if(v[g])return v[g]})}buildShortName(){this.shortName=this.name.split("$").pop()}buildPolicies(l,v){this.policies=o.Y.teamRoles[l].policies.map(C=>new f(C,v))}}},6868:(pe,N,r)=>{"use strict";r.r(N),r.d(N,{AcceptAllCookies:()=>Fe,AcceptAllCookiesFailure:()=>we,AcceptAllCookiesSuccess:()=>Me,AcceptCGU:()=>st,AcceptCGUSuccess:()=>ft,AddPlayer:()=>q,ChunkLoadFailure:()=>P,ClearPendingLanguageSwitch:()=>b,CloseCookiesConsentConfiguration:()=>_,ComputePolicies:()=>p,ComputePoliciesSuccess:()=>j,CreateEventScitylana:()=>it,CreateEventScitylanaFailure:()=>ct,CreateEventScitylanaSuccess:()=>gt,DenyAllCookies:()=>je,DenyAllCookiesFailure:()=>$e,DenyAllCookiesSuccess:()=>Be,ExecutePoliciesUpdate:()=>m,ExecutePoliciesUpdateSuccess:()=>Y,FinalizeUpdates:()=>Te,FollowDomainRedirect:()=>lt,GetRemotePoliciesAndRoles:()=>ge,GetRemotePoliciesAndRolesFailure:()=>T,GetRemotePoliciesAndRolesSuccess:()=>d,LoadCookiesConsentConfiguration:()=>R,LoadCookiesConsentConfigurationSuccess:()=>A,LoadStripe:()=>oe,LoadStripeFailure:()=>He,LoadStripeSuccess:()=>Ke,OFFLINE_MODAL_RECONNECT_CLOSE_REASON:()=>K,OnBoarding:()=>Ze,OnBoardingSuccess:()=>Xe,RunUpdates:()=>Ie,RunUpdatesFailure:()=>ce,RunUpdatesSuccess:()=>Q,ScanUpdates:()=>w,ScanUpdatesFailure:()=>ue,ScanUpdatesSuccess:()=>ve,SelectLanguage:()=>H,SelectLanguageFailure:()=>V,SelectLanguageSuccess:()=>
1B,SetDurationChoice:()=>Qe,SetupLanguage:()=>C,SetupLanguageSuccess:()=>g,StopAllPlayers:()=>ie,UpdateCookiesConsentConfiguration:()=>ne,UpdateCookiesConsentConfigurationFailure:()=>xe,UpdateCookiesConsentConfigurationSuccess:()=>Se,UpdatePlayerPlayingAndStopOthers:()=>le,loadCountries:()=>te,loadCountriesFailure:()=>z,loadCountriesSuccess:()=>W,loadDevice:()=>e,loadDeviceFailure:()=>a,loadDeviceSuccess:()=>c,loadServices:()=>E,loadServicesFailure:()=>v,loadServicesFromCurrentLocation:()=>u,loadServicesFromDomain:()=>i,loadServicesFromRegion:()=>n,loadServicesFromToken:()=>f,loadServicesSuccess:()=>l,redirectToAccountWithSelectedDomain:()=>I,redirectToSelectedDomain:()=>$});var o=r(71100);const e=(0,o.VP)("[Environment] Load Device"),c=(0,o.VP)("[Environment] Load Device Success",(0,o.xk)()),a=(0,o.VP)("[Environment] Load Device Failure",(0,o.xk)()),u=(0,o.VP)("[Environment] Load Services From Current Location"),f=(0,o.VP)("[Environment] Load Services From Token"),i=(0,o.VP)("[Environment] Load Services From Domain"),n=(0,o.VP)("[Environment] Load Services From Region",(0,o.xk)()),E=(0,o.VP)("[Environment] Load Services",(0,o.xk)()),l=(0,o.VP)("[Environment] Load Services Success",(0,o.xk)()),v=(0,o.VP)("[Environment] Load Services Failure",(0,o.xk)()),C=(0,o.VP)("[Environment] Setup language"),g=(0,o.VP)("[Environment] Setup language success",(0,o.xk)()),H=(0,o.VP)("[Environment] Select language",(0,o.xk)()),B=(0,o.VP)("[Environment] Select language success",(0,o.xk)()),V=(0,o.VP)("[Environment] Select language failure",(0,o.xk)()),P=(0,o.VP)("[Environment] Chunk load failure",(0,o.xk)()),b=(0,o.VP)("[Environment] Clear pending language switch"),K="online",te=(0,o.VP)("[Environment] Load Countries"),W=(0,o.VP)("[Environment] Load Countries Success",(0,o.xk)()),z=(0,o.VP)("[Environment] Load Countries Failure",(0,o.xk)()),$=(0,o.VP)("[Environment] Redirect to selected team domain"),I=(0,o.VP)("[Environment] Redirect to account with selected team domain"),p=(0,o.VP)("[Environnement] Compute Policies"),j=(0,o.VP)("[Environnement] Compute Policies Success",(0,o.xk)()),ge=(0,o.VP)("[Environnement] getRemote Policies and Roles"),d=(0,o.VP)("[Environnement] getRemote Policies and Roles success",(0,o.xk)()),T=(0,o.VP)("[Environnement] getRemote Policies and Roles failure",(0,o.xk)()),m=(0,o.VP)("[Environnement] Execute Policies Update",(0,o.xk)()),Y=(0,o.VP)("[Environnement] Execute Policies Update success",(0,o.xk)()),w=(0,o.VP)("[Environnement] Scanning Update"),ve=(0,o.VP)("[Environnement] Scanning Update Success"),ue=(0,o.VP)("[Environnement] Scanning Update Failure"),Ie=(0,o.VP)("[Environnement] Running Updates"),Te=(0,o.VP)("[Environnement] Finalize Updates"),Q=(0,o.VP)("[Environnement] Running Updates Success",(0,o.xk)()),ce=(0,o.VP)("[Environnement] Running Updates Failure"),q=(0,o.VP)("[Viewer] Add Player",(0,o.xk)()),le=(0,o.VP)("[Viewer] Update Player Playing And Stop Others",(0,o.xk)()),ie=(0,o.VP)("[Viewer] Stop All Player"),R=(0,o.VP)("[Environnement] Load Cookies Consent Configuration"),A=(0,o.VP)("[Environnement] Load Cookies Consent Configuration Success",(0,o.xk)()),_=(0,o.VP)("[Environnement] Close Cookies Consent Configuration"),ne=(0,o.VP)("[Environnement] Update Cookies Consent Configuration",(0,o.xk)()),Se=(0,o.VP)("[Environnement] Update Cookies Consent Configuration Success",(0,o.xk)()),xe=(0,o.VP)("[Environnement] Update Cookies Consent Configuration Failure",(0,o.xk)()),Fe=(0,o.VP)("[Environnement] Accept All Cookies"),Me=(0,o.VP)("[Environnement] Accept All Cookies Success"),we=(0,o.VP)("[Environnement] Accept All Cookies Failure",(0,o.xk)()),je=(0,o.VP)("[Environnement] Deny All Cookies"),Be=(0,o.VP)("[Environnement] Deny All Cookies Success"),$e=(0,o.VP)("[Environnement] Deny All Cookies Failure",(0,o.xk)()),st=(0,o.VP)("[Environnement] Accept CGU"),ft=(0,o.VP)("[Environnement] Accept CGU Success",(0,o.xk)()),oe=(0,o.VP)("[Environnement] Load Stripe"),Ke=(0,o.VP)("[Environnement] Load Stripe Success"),He=(0,o.VP)("[Environnement] Load Stripe Failure",(0,o.xk)()),it=(0,o.VP)("[Environnement] Create Event Scitylana",(0,o.xk)()),gt=(0,o.VP)("[Environnement] Create Event Scitylana Success"),ct=(0,o.VP)("[Environnement] Create Event Scitylana Failure",(0,o.xk)()),lt=(0,o.VP)("[Environnement] Follow Domain Redirect",(0,o.xk)()),Qe=(0,o.VP)("[Environnement] Set plan duration choice from squareSpace",(0,o.xk)()),Ze=(0,o.VP)("[Environnement] OnB
1oarding event",(0,o.xk)()),Xe=(0,o.VP)("[Environnement] OnBoarding event success",(0,o.xk)())},97184:(pe,N,r)=>{"use strict";r.d(N,{Xw:()=>o,sN:()=>i,oR:()=>c,Vg:()=>mt,aW:()=>so,r7:()=>e,Ho:()=>u,dd:()=>a,BW:()=>f});var o={};r.r(o),r.d(o,{CreateMfaFactorSecret:()=>Xt,CreateMfaFactorSecretFailure:()=>Gt,CreateMfaFactorSecretSuccess:()=>Ht,GetMfa:()=>dt,GetMfaFailure:()=>Ye,GetMfaSuccess:()=>Rt,LoadUserRoles:()=>st,LoadUserRolesAndTeams:()=>Ke,LoadUserRolesAndTeamsFailure:()=>He,LoadUserRolesAndTeamsSuccess:()=>it,LoadUserRolesFailure:()=>ft,LoadUserRolesSuccess:()=>oe,LoadUserTeams:()=>Xe,LoadUserTeamsFailure:()=>ot,LoadUserTeamsSuccess:()=>ht,Relogin:()=>xe,ReloginAbort:()=>we,ReloginFailure:()=>Me,ReloginSuccess:()=>Fe,ResetApplicationFactor:()=>wt,ResetApplicationFactorFailure:()=>Ct,ResetApplicationFactorSuccess:()=>Ot,ResetEmailFactor:()=>yt,ResetEmailFactorFailure:()=>Mt,ResetEmailFactorSuccess:()=>Pt,SendEmailOtp:()=>Et,SendEmailOtpFailure:()=>qe,SendEmailOtpSuccess:()=>kt,SetUserContacts:()=>Qe,SetupSsoSession:()=>je,SetupSsoSessionFailure:()=>Be,SetupSsoSessionSuccess:()=>$e,UpdateActiveIdentity:()=>ie,UpdateActiveIdentityFailure:()=>A,UpdateActiveIdentitySuccess:()=>R,UpdateDefaultFactor:()=>Ft,UpdateDefaultFactorFailure:()=>Tt,UpdateDefaultFactorSuccess:()=>vt,UpdatePassword:()=>gt,UpdatePasswordFailure:()=>lt,UpdatePasswordSuccess:()=>ct,UpdateUsername:()=>_,UpdateUsernameFailure:()=>Se,UpdateUsernameSuccess:()=>ne,VerifyApplicationFactor:()=>ut,VerifyApplicationFactorFailure:()=>St,VerifyApplicationFactorSuccess:()=>Ge,VerifyEmailFactor:()=>Ve,VerifyEmailFactorFailure:()=>at,VerifyEmailFactorSuccess:()=>Ut,computeActiveTeam:()=>l,createUserAnonymous:()=>p,createUserAnonymousFailure:()=>ge,createUserAnonymousSuccess:()=>j,getProfileInformation:()=>ce,getProfileInformationFailure:()=>le,getProfileInformationSuccess:()=>q,loadBillingInformations:()=>g,loadBillingInformationsFailure:()=>B,loadBillingInformationsSuccess:()=>H,loadPlan:()=>z,loadPlanFailure:()=>I,loadPlanGroupFromSubscription:()=>Y,loadPlanGroupFromSubscriptionFailure:()=>ve,loadPlanGroupFromSubscriptionSuccess:()=>w,loadPlanSuccess:()=>$,loadSubscription:()=>V,loadSubscriptionFailure:()=>b,loadSubscriptionSuccess:()=>P,loadSubscriptionWithPlan:()=>K,loadSubscriptionWithPlanFailure:()=>W,loadSubscriptionWithPlanSuccess:()=>te,refreshToken:()=>d,refreshTokenFailure:()=>m,refreshTokenSuccess:()=>T,selectActiveIdentity:()=>E,selectActiveTeam:()=>v,signInAgain:()=>Te,signInAgainSuccess:()=>Q,signOut:()=>ue,signOutSuccess:()=>Ie,updateActiveTeam:()=>C,updateUserContacts:()=>Ze});var e={};r.r(e),r.d(e,{YU:()=>Jt,Pw:()=>It,jA:()=>At,MW:()=>Dt});var c={};r.r(c),r.d(c,{addNewBackgroundImageToDomainCustomization:()=>G,addNewBackgroundImageToDomainCustomizationFailure:()=>y,addNewBackgroundImageToDomainCustomizationSuccess:()=>S,addNewBackgroundVideoToDomainCustomization:()=>k,addNewBackgroundVideoToDomainCustomizationFailure:()=>x,addNewBackgroundVideoToDomainCustomizationSuccess:()=>h,addNewLogoToDomainCustomization:()=>D,addNewLogoToDomainCustomizationFailure:()=>re,addNewLogoToDomainCustomizationSuccess:()=>me,createDomain:()=>_t,createDomainFailure:()=>pt,createDomainSuccess:()=>We,loadDomain:()=>Qt,loadDomainCustomization:()=>rt,loadDomainCustomizationFailure:()=>et,loadDomainCustomizationSuccess:()=>eo,loadDomainFailure:()=>Yt,loadDomainSuccess:()=>Zt,selectDomain:()=>zt,updateDomain:()=>qt,updateDomainCustomization:()=>Bt,updateDomainCustomizationFailure:()=>jt,updateDomainCustomizationSuccess:()=>Ee,updateDomainFailure:()=>Vt,updateDomainSuccess:()=>xt,updateDomainToCreate:()=>Je});var a={};r.r(a),r.d(a,{createTeam:()=>ae,createTeamFailure:()=>he,createTeamSuccess:()=>fe,findTeam:()=>tt,findTeamFailure:()=>ze,findTeamSuccess:()=>De,findTeamWithUsers:()=>be,findTeamWithUsersFailure:()=>ho,findTeamWithUsersSuccess:()=>Ne,loadTeamBackgrounds:()=>U,loadTeamBackgroundsFailure:()=>F,loadTeamBackgroundsSuccess:()=>M,loadTeamCustomization:()=>L,loadTeamCustomizationFailure:()=>Z,loadTeamCustomizationSuccess:()=>O,loadTeamLogos:()=>se,loadTeamLogosFailure:()=>de,loadTeamLogosSuccess:()=>ee,redirectToDomainCreation:()=>bt,resetTeamCreateForm:()=>Oe,resetTeamEditForm:()=>_e,updateTeam:()=>Le,updateTeamFailure:()=>ke,updateTeamSelected:()=>X,updateTeamSuccess:()=>ye});var u={};
1r.r(u),r.d(u,{loadManagedBackgrounds:()=>to,loadManagedBackgroundsFailure:()=>ao,loadManagedBackgroundsSuccess:()=>oo,loadManagedCustomization:()=>Nt,loadManagedCustomizationFailure:()=>Eo,loadManagedCustomizationSuccess:()=>So,loadManagedLogos:()=>ro,loadManagedLogosFailure:()=>no,loadManagedLogosSuccess:()=>Ae});var f={};r.r(f),r.d(f,{LoadTheme:()=>io,LoadThemeSuccess:()=>co});var i={};r.r(i),r.d(i,{ResetVerifyCaptcha:()=>Po,StartVerifyCaptcha:()=>Pe,VerifyCaptcha:()=>lo,VerifyCaptchaFailure:()=>Ce,VerifyCaptchaSuccess:()=>uo});var n=r(71100);const E=(0,n.VP)("[Account] Select Active Identity",(0,n.xk)()),l=(0,n.VP)("[Account] Compute Active Team",(0,n.xk)()),v=(0,n.VP)("[Account] Select Active Team",(0,n.xk)()),C=(0,n.VP)("[Account] Update Active Team",(0,n.xk)()),g=(0,n.VP)("[Account] Load Billing Informations"),H=(0,n.VP)("[Account] Load Billing Informations Success",(0,n.xk)()),B=(0,n.VP)("[Account] Load Billing Informations Failure",(0,n.xk)()),V=(0,n.VP)("[Account] Load Subscription"),P=(0,n.VP)("[Account] Load Subscription Success",(0,n.xk)()),b=(0,n.VP)("[Account] Load Subscription Failure",(0,n.xk)()),K=(0,n.VP)("[Account] Load Subscription With Plan"),te=(0,n.VP)("[Account] Load Subscription With Plan Success",(0,n.xk)()),W=(0,n.VP)("[Account] Load Subscription With Plan Failure",(0,n.xk)()),z=(0,n.VP)("[Account] Load Plan",(0,n.xk)()),$=(0,n.VP)("[Account] Load Plan Success",(0,n.xk)()),I=(0,n.VP)("[Account] Load Plan Failure",(0,n.xk)()),p=(0,n.VP)("[Account] Create user anonymous"),j=(0,n.VP)("[Account] Create user anonymous success",(0,n.xk)()),ge=(0,n.VP)("[Account] Create user anonymous failure",(0,n.xk)()),d=(0,n.VP)("[Account] Refresh token"),T=(0,n.VP)("[Account] Refresh token success",(0,n.xk)()),m=(0,n.VP)("[Account] Refresh token failure",(0,n.xk)()),Y=(0,n.VP)("[Account] Load Plan Group From Subscription"),w=(0,n.VP)("[Account] Load Plan Group From Subscription Success",(0,n.xk)()),ve=(0,n.VP)("[Account] Load Plan Group From Subscription Failure",(0,n.xk)()),ue=(0,n.VP)("[Account] Sign Out"),Ie=(0,n.VP)("[Account] Sign Out Success"),Te=(0,n.VP)("[Account] Sign In Again"),Q=(0,n.VP)("[Account] Sign In Again Success"),ce=(0,n.VP)("[Account] Get Profile Information"),q=(0,n.VP)("[Account] Get Profile Information Success",(0,n.xk)()),le=(0,n.VP)("[Account] Get Profile Information Failure",(0,n.xk)()),ie=(0,n.VP)("[Account] Update ActiveIdentity",(0,n.xk)()),R=(0,n.VP)("[Account] Update ActiveIdentity Success",(0,n.xk)()),A=(0,n.VP)("[Account] Update ActiveIdentity Failure",(0,n.xk)()),_=(0,n.VP)("[Account] Update Username",(0,n.xk)()),ne=(0,n.VP)("[Account] Update Username Success",(0,n.xk)()),Se=(0,n.VP)("[Account] Update Username Failure",(0,n.xk)()),xe=(0,n.VP)("[Account] Relogin",(0,n.xk)()),Fe=(0,n.VP)("[Account] Relogin Success",(0,n.xk)()),Me=(0,n.VP)("[Account] Relogin Failure",(0,n.xk)()),we=(0,n.VP)("[Account] Relogin Abort"),je=(0,n.VP)("[Account] Setup Sso Session",(0,n.xk)()),Be=(0,n.VP)("[Account] Setup Sso Session Failure",(0,n.xk)()),$e=(0,n.VP)("[Account] Setup Sso Session Success"),st=(0,n.VP)("[Account] Load User Roles"),ft=(0,n.VP)("[Account] Load User Roles Failure",(0,n.xk)()),oe=(0,n.VP)("[Account] Load User Roles Success",(0,n.xk)()),Ke=(0,n.VP)("[Account] Load User And Teams Roles"),He=(0,n.VP)("[Account] Load User And Teams Roles Failure",(0,n.xk)()),it=(0,n.VP)("[Account] Load User And Teams Roles Success",(0,n.xk)()),gt=(0,n.VP)("[Account] Update Password",(0,n.xk)()),ct=(0,n.VP)("[Account] Update Password Success",(0,n.xk)()),lt=(0,n.VP)("[Account] Update Password Failure",(0,n.xk)()),Qe=(0,n.VP)("[Account] Set User Contacts",(0,n.xk)()),Ze=(0,n.VP)("[Account] Update User Contacts",(0,n.xk)()),Xe=(0,n.VP)("[Account] Load User Teams"),ot=(0,n.VP)("[Account] Load User Teams Failure",(0,n.xk)()),ht=(0,n.VP)("[Account] Load User Teams Success",(0,n.xk)()),dt=(0,n.VP)("[Profile] Get Mfa"),Rt=(0,n.VP)("[Profile] Get Mfa Success",(0,n.xk)()),Ye=(0,n.VP)("[Profile] Get Mfa Failure",(0,n.xk)()),ut=(0,n.VP)("[Profile] Verify Application Factor",(0,n.xk)()),Ge=(0,n.VP)("[Profile] Verify Application Factor Success"),St=(0,n.VP)("[Profile] Verify Application Factor Failure",(0,n.xk)()),Ve=(0,n.VP)("[Profile] Verify Email Factor",(0,n.xk)()),Ut=(0,n.VP)("[Profile] Verify Email Factor Success"),at=(0,n.VP)("[Profile] Verify Email Factor Failure",(0,n.xk)()),Et=(0,n.VP)("[Profile] Send Email Otp"),kt=(0,n.VP)("[Profile] Send Email Otp Success"),qe=(0,n.VP)("[Profile] Send Email Otp Failure",(0,n.xk)()),Ft=(0,n.VP)("[Profile] Update Default Factor",(0,n.xk)()),vt=(0,n.VP)("[Profile] Update Default Factor Success"),Tt=(0,n.VP)("[Profile] Update Default Factor Failure",(0,n.xk)()),yt=(0,n.VP)("[Profile] Reset Email Factor"),Pt=(0,n.VP)("[Profile] Reset Email Factor Success"),Mt=(0,n.VP)("[Profile] Reset Email Factor Failure",(0,n.xk)()),wt=(0,n.VP)("[Profile] Reset Application Factor"),Ot=(0,n.VP)("[Profile] Reset Application Factor Success"),Ct=(0,n.VP)("[Profile] Reset Application Factor Failure",(0,n.xk)()),Xt=(0,n.VP)("[Profile] Create Mfa Factor Secret",(0,n.xk)()),Ht=(0,n.VP)("[Profile] Create Mfa Factor Secret Success",(0,n.xk)()),Gt=(0,n.VP)("[Profile] Create Mfa Factor Secret Failure",(0,n.xk)());var mt=r(6868);const It=(0,n.VP)("[Script] Load Scripts",(0,n.xk)()),Dt=(0,n.VP)("[Script] Load Scripts Success",(0,n.xk)()),At=(0,n.VP)("[Script] Load Scripts Failure",(0,n.xk)()),Jt=((0,n.VP)("[Script] Add Script",(0,n.xk)()),(0,n.VP)("[Script] Add Script Success",(0,n.xk)())),Qt=((0,n.VP)("[Script] Add Script Failure",(0,n.xk)()),(0,n.VP)("[Script] Load Stripe V3"),(0,n.VP)("[Script] Load Stripe V3 Success",(0,n.xk)()),(0,n.VP)("[Script] Load Stripe V3 Failure",(0,n.xk)()),(0,n.VP)("[Script] Load Stripe V2"),(0,n.VP)("[Script] Load Stripe V2 Success",(0,n.xk)()),(0,n.VP)("[Script] Load Stripe V2 Failure",(0,n.xk)()),(0,n.VP)("[Domain] Load Domain",(0,n.xk)())),Zt=(0,n.VP)("[Domain] Load Domain Success",(0,n.xk)()),Yt=(0,n.VP)("[Domain] Load Domain Failure",(0,n.xk)()),qt=(0,n.VP)("[Domain] Update Domain",(0,n.xk)()),xt=(0,n.VP)("[Domain] Update Domain Success"),Vt=(0,n.VP)("[Domain] Update Domain Url Failure",(0,n.xk)()),_t=(0,n.VP)("[Domain] Create Domain"),We=(0,n.VP)("[Domain] Create Domain Success",(0,n.xk)()),pt=(0,n.VP)("[Domain] Create Domain Url Failure",(0,n.xk)()),Je=(0,n.VP)("[Domain] Update Domain To Create",(0,n.xk)()),zt=(0,n.VP)("[Domain] Select Domain",(0,n.xk)()),rt=(0,n.VP)("[Domain] Load Domain Customization"),eo=(0,n.VP)("[Domain] Load Domain Customization Success",(0,n.xk)()),et=(0,n.VP)("[Domain] Load Domain Customization Failure",(0,n.xk)()),Bt=(0,n.VP)("[Domain] Update Domain Customization"),Ee=(0,n.VP)("[Domain] Update Domain Customization Success",(0,n.xk)()),jt=(0,n.VP)("[Domain] Update Domain Customization Failure",(0,n.xk)()),D=(0,n.VP)("[Domain] Add New Logo To Domain Customization",(0,n.xk)()),me=(0,n.VP)("[Domain] Add New Logo To Domain Customization Success",(0,n.xk)()),re=(0,n.VP)("[Domain] Add New Logo To Domain Customization Failure",(0,n.xk)()),G=(0,n.VP)("[Domain] Add New Backgroun
1d Image To Domain Customization",(0,n.xk)()),S=(0,n.VP)("[Domain] Add New Background Image To Domain Customization Success",(0,n.xk)()),y=(0,n.VP)("[Domain] Add New Background Image To Domain Customization Failure",(0,n.xk)()),k=(0,n.VP)("[Domain] Add New Background Video To Domain Customization",(0,n.xk)()),h=(0,n.VP)("[Domain] Add New Background Video To Domain Customization Success",(0,n.xk)()),x=(0,n.VP)("[Domain] Add New Background Video To Domain Customization Failure",(0,n.xk)()),L=(0,n.VP)("[Team] Load Team Customization"),O=(0,n.VP)("[Team] Load Team Customization Success",(0,n.xk)()),Z=(0,n.VP)("[Team] Load Team Customization Failure",(0,n.xk)()),U=(0,n.VP)("[Team] Load Team Backgrounds"),M=(0,n.VP)("[Team] Load Team Backgrounds Success",(0,n.xk)()),F=(0,n.VP)("[Team] Load Team Backgrounds Failure",(0,n.xk)()),se=(0,n.VP)("[Team] Load Team Logos"),ee=(0,n.VP)("[Team] Load Team Logos Success",(0,n.xk)()),de=(0,n.VP)("[Team] Load Team Logos Failure",(0,n.xk)()),X=(0,n.VP)("[Team] Update Team Selected",(0,n.xk)()),ae=(0,n.VP)("[Team] Create Team",(0,n.xk)()),fe=(0,n.VP)("[Team] Create Team Success",(0,n.xk)()),he=(0,n.VP)("[Team] Create Team Url Failure",(0,n.xk)()),Le=(0,n.VP)("[Team] Update Team",(0,n.xk)()),ye=(0,n.VP)("[Team] Update Team Success",(0,n.xk)()),ke=(0,n.VP)("[Team] Update Team Url Failure",(0,n.xk)()),Oe=(0,n.VP)("[Team] Reset Team Create Form"),_e=(0,n.VP)("[Team] Reset Team Edit Form"),tt=(0,n.VP)("[Team] find Team",(0,n.xk)()),De=(0,n.VP)("[Team] find Team Success",(0,n.xk)()),ze=(0,n.VP)("[Team] find Team Failure",(0,n.xk)()),be=(0,n.VP)("[Team] find Team With Users",(0,n.xk)()),Ne=(0,n.VP)("[Team] find Team With Users Success",(0,n.xk)()),ho=(0,n.VP)("[Team] find Team With Users Failure",(0,n.xk)()),bt=(0,n.VP)("[Team] redirect to create domain"),Nt=(0,n.VP)("[System] Load Managed Customization"),So=(0,n.VP)("[System] Load Managed Customization Success",(0,n.xk)()),Eo=(0,n.VP)("[System] Load Managed Customization Failure",(0,n.xk)()),to=(0,n.VP)("[System] Load Managed Backgrounds"),oo=(0,n.VP)("[System] Load Managed Backgrounds Success",(0,n.xk)()),ao=(0,n.VP)("[System] Load Managed Backgrounds Failure",(0,n.xk)()),ro=(0,n.VP)("[System] Load Managed Logos"),Ae=(0,n.VP)("[System] Load Managed Logos Success",(0,n.xk)()),no=(0,n.VP)("[System] Load Managed Logos Failure",(0,n.xk)());var so=r(7511);const io=(0,n.VP)("[Theme] Load Theme",(0,n.xk)()),co=(0,n.VP)("[Theme] Load Theme Success",(0,n.xk)()),lo=(0,n.VP)("[Captcha] Verify Captcha",(0,n.xk)()),uo=(0,n.VP)("[Captcha] Verify Captcha Success",(0,n.xk)()),Ce=(0,n.VP)("[Captcha] Verify Captcha Failure",(0,n.xk)()),Pe=(0,n.VP)("[Captcha] Start Verify Captcha"),Po=(0,n.VP)("[Captcha] Verify Captcha Reset")},7511:(pe,N,r)=>{"use strict";r.r(N),r.d(N,{cancelPaypal:()=>V,executePaypal:()=>B,paypalWaitPaymentSuccess:()=>H,paypalWaitUserAgreement:()=>g,processPayment:()=>e,processPaymentSuccess:()=>c,processPaypalPayment:()=>l,processPaypalPaymentFailure:()=>C,processPaypalPaymentSuccess:()=>v,processStripePayment:()=>a,processStripePaymentCheck:()=>u,processStripePaymentFailure:()=>i,processStripePaymentSuccess:()=>f,resetSignupProcess:()=>n,resetSignupProcessSuccess:()=>E});var o=r(71100);const e=(0,o.VP)("[Payment] Process Payment"),c=(0,o.VP)("[Payment] Process Payment Success"),a=(0,o.VP)("[Payment] Process Stripe Payment"),u=(0,o.VP)("[Payment] Check Stripe Payment",(0,o.xk)()),f=(0,o.VP)("[Payment] Process Stripe Payment Success",(0,o.xk)()),i=(0,o.VP)("[Payment] Process Stripe Payment Failure",(0,o.xk)()),n=(0,o.VP)("[Payment] Reset Signup Process"),E=(0,o.VP)("[Payment] Reset Signup Process Success"),l=(0,o.VP)("[Payment] Process Paypal Payment"),v=(0,o.VP)("[Payment] Process Paypal Payment Success",(0,o.xk)()),C=(0,o.VP)("[Payment] Process Paypal Payment Failure",(0,o.xk)()),g=(0,o.VP)("[Payment] Paypal Wait User Agreement confirmation",(0,o.xk)()),H=(0,o.VP)("[Payment] Paypal Wait uiser payment success"),B=(0,o.VP)("[Payment] Execute Paypal agreeement",(0,o.xk)()),V=(0,o.VP)("[Payment] Paypal Cancel process")},41402:(pe,N,r)=>{"use strict";r.d(N,{y9:()=>st,VO:()=>jt,vv:()=>go,A$:()=>Xt,xc:()=>et});var o=r(84547),e=r(72276),c=r(20154),a=r(86839),u=r(94236),f=r(71100),i=r(22203),n=r(16334),E=r(40419),l=r(68291),v=r(17796),C=r(40450),g=r(54001),H=r(80489),B=r(84975),V=r(6663),P=r(60494),b=r(7738),K=r(21252),te=r(74671),W=r(26377),z=r(19847),$=r(42562),I=r(1936),p=r(97184),j=r(41383),ge=r(98083),d=r(12405),T=r(56106),m=r(58527),Y=r(5007),w=r(61142),ve=r(96542),ue=r(18471);const Ie=D=>({username:D});function Te(D,me){if(1&D&&(m.j41(0,"span",10),m.EFF(1),m.nI1(2,"translate"),m.k0s()),2&D){const re=me.ngIf;m.R7$(),m.JRh(m.bMT(2,1,re))}}function Q(D,me){1&D&&(m.j41(0,"div",11),m.nrm(1,"div",12),m.k0s())}function ce(D,me){1&D&&(m.j41(0,"div",11)(1,"span",13),m.EFF(2,"MODAL_RELOGIN_SUCCESS"),m.k0s()())}function q(D,me){1&D&&(m.j41(0,"span",10),m.EFF(1),m.nI1(2,"translate"),m.k0s()),2&D&&(m.R7$(),m.JRh(m.bMT(2,1,"MODAL_RELOGIN_ERROR_EMPTY_PASSWORD")))}function le(D,me){if(1&D){const re=m.RV6();m.j41(0,"div",14)(1,"span",15),m.EFF(2,"MODAL_RELOGIN_DESCRIPTION"),m.k0s(),m.j41(3,"form",16),m.bIt("ngSubmit",function(){m.eBV(re);const S=m.XpG();return m.Njj(S.onSubmit())}),m.j41(4,"div",17),m.nrm(5,"app-smash-input",18),m.nI1(6,"translate"),m.DNE(7,q,3,3,"span",3),m.k0s()()()}if(2&D){const re=m.XpG();m.R7$(),m.Y8G("translateParams",m.eq3(6,Ie,re.username)),m.R7$(2),m.Y8G("formGroup",re.reloginForm),m.R7$(2),m.FS9("placeholder",m.bMT(6,4,"MODAL_RELOGIN_PASSWORD_PLACEHOLDER")),m.R7$(2),m.Y8G("ngIf",re.submitted&&re.f.password.errors)}}function ie(D,me){if(1&D){const re=m.RV6();m.qex(0),m.j41(1,"button",19),m.nI1(2,"async"),m.bIt("click",function(){m.eBV(re);const S=m.XpG();return m.Njj(S.abort())}),m.EFF(3,"MODAL_RELOGIN_SIGN_OUT"),m.k0s(),m.j41(4,"button",20),m.nI1(5,"async"),m.bIt("click",function(){m.eBV(re);const S=m.XpG();return m.Njj(S.onSubmit())}),m.EFF(6,"MODAL_RELOGIN_CONFIRM"),m.k0s(),m.bVm()}if(2&D){const re=m.XpG();m.R7$(),m.Y8G("disabled",m.bMT(2,2,re.processing$)),m.R7$(3),m.Y8G("disabled",m.bMT(5,4,re.processing$))}}function R(D,me){if(1&D){const re=m.RV6();m.j41(0,"button",21),m.bIt("click",function(){m.eBV(re);const S=m.XpG();return m.Njj(S.close())}),m.EFF(1,"MODAL_RELOGIN_CLOSE"),m.k0s()}}const A=["MfaRequiredError","PasswordRevokedError","IdentityDisabledError","NotFoundError"];let ne=(()=>{var D;class me{constructor(G,S,y){var k;this.store$=G,this.fb=S,this.ref=y,this.submitted=!1,this.subscriptions=[],this.username=null===(k=this.ref.data)||void 0===k?void 0:k.username,this.processing$=this.store$.select(c.O4),this.succeeded$=this.store$.select(c.WK),this.error$=this.store$.select(c.Vh),this.errorMessageKey$=this.error$.pipe((0,V.T)(h=>h?"InvalidCredentialsError"===h.name?"MODAL_RELOGIN_ERROR_WRONG_PASSWORD":"MODAL_RELOGIN_ERROR_GENERIC":null)),this.reloginForm=this.fb.group({password:["",T.k0.required]}),this.subscriptions.push(this.succeeded$.subscribe(h=>{h&&void 0===this.autoCloseTimeout&&(this.autoCloseTimeout=setTimeout(()=>this.close(),1500))}),this.error$.subscribe(h=>{h&&A.includes(h.name)&&this.abort()}))}get f(){return this.reloginForm.controls}onSubmit(){this.submitted=!0,this.reloginForm.valid&&this.store$.dis
1patch(p.Xw.Relogin({username:this.username,password:this.f.password.value}))}abort(){this.store$.dispatch(p.Xw.ReloginAbort()),this.ref.close(!1)}close(){void 0!==this.autoCloseTimeout&&(clearTimeout(this.autoCloseTimeout),this.autoCloseTimeout=void 0),this.ref.close(!0)}ngOnDestroy(){void 0!==this.autoCloseTimeout&&clearTimeout(this.autoCloseTimeout),this.subscriptions.forEach(G=>G.unsubscribe())}}return(D=me).\u0275fac=function(G){return new(G||D)(m.rXU(f.il),m.rXU(T.ok),m.rXU(Y.ce))},D.\u0275cmp=m.VBU({type:D,selectors:[["app-modal-relogin"]],decls:21,vars:24,consts:[[1,"modal"],[1,"header"],["translate","",1,"title","title-medium"],["class","error-message",4,"ngIf"],[1,"body"],["class","section section-centered",4,"ngIf"],["class","section",4,"ngIf"],[1,"footer"],[4,"ngIf"],["class","btn-new red","type","button","translate","",3,"click",4,"ngIf"],[1,"error-message"],[1,"section","section-centered"],[1,"loading-spinner-grey"],["translate","",1,"description","success-message"],[1,"section"],["translate","",1,"description",3,"translateParams"],[1,"form-section",3,"ngSubmit","formGroup"],[1,"form-input"],["borderStyle","full","type","password","formControlName","password",3,"placeholder"],["type","button","translate","",1,"btn-new","white",3,"click","disabled"],["type","submit","translate","",1,"btn-new","red",3,"click","disabled"],["type","button","translate","",1,"btn-new","red",3,"click"]],template:function(G,S){1&G&&(m.j41(0,"div",0)(1,"div",1)(2,"div",2),m.EFF(3,"MODAL_RELOGIN_TITLE"),m.k0s(),m.DNE(4,Te,3,3,"span",3),m.nI1(5,"async"),m.nI1(6,"async"),m.nI1(7,"async"),m.k0s(),m.j41(8,"div",4),m.DNE(9,Q,2,0,"div",5),m.nI1(10,"async"),m.DNE(11,ce,3,0,"div",5),m.nI1(12,"async"),m.DNE(13,le,8,8,"div",6),m.nI1(14,"async"),m.nI1(15,"async"),m.k0s(),m.j41(16,"div",7),m.DNE(17,ie,7,6,"ng-container",8),m.nI1(18,"async"),m.DNE(19,R,2,0,"button",9),m.nI1(20,"async"),m.k0s()()),2&G&&(m.R7$(4),m.Y8G("ngIf",!m.bMT(5,6,S.processing$)&&!m.bMT(6,8,S.succeeded$)&&!(S.submitted&&S.f.password.errors)&&m.bMT(7,10,S.errorMessageKey$)),m.R7$(5),m.Y8G("ngIf",m.bMT(10,12,S.processing$)),m.R7$(2),m.Y8G("ngIf",m.bMT(12,14,S.succeeded$)),m.R7$(2),m.Y8G("ngIf",!m.bMT(14,16,S.processing$)&&!m.bMT(15,18,S.succeeded$)),m.R7$(4),m.Y8G("ngIf",!m.bMT(18,20,S.succeeded$)),m.R7$(2),m.Y8G("ngIf",m.bMT(20,22,S.succeeded$)))},dependencies:[w.bT,ve.Mm,T.qT,T.BC,T.cb,T.j4,T.JD,ue.S,w.Jj,ve.D9],styles:[".modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .section.section-centered[_ngcontent-%COMP%]{align-items:center;justify-content:center;min-height:80px}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .success-message[_ngcontent-%COMP%]{text-align:center;font-weight:600}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{display:block}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .form-input[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}"]}),me})();var Se=r(46925),xe=r(93470),Fe=r(9014),Me=r(68633),we=r(1629),je=r(69351),Be=r(581),$e=r(75118);let st=(()=>{var D;class me{constructor(G,S,y,k,h,x,L,O,Z){this.actions$=G,this.tokenService=S,this.iamService=y,this.cookieService=k,this.gtmService=h,this.router=x,this.store$=L,this.cookiesService=O,this.dialog=Z,this.createAnonymousUser$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.createUserAnonymous),(0,B.n)(()=>this.iamService.createAccount().pipe((0,V.T)(({account:U})=>{const M=U;return this.cookieService.setCookie("identity",M),E.$.setToken(M.token.token),p.Xw.createUserAnonymousSuccess({identity:M})}),(0,P.W)(U=>(0,v.of)(p.Xw.createUserAnonymousFailure({error:U.message}))))))),this.refreshToken$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.refreshToken),(0,b.E)(this.store$.select(c.ve)),(0,B.n)(([U,M])=>null!=M&&M.token?this.iamService.renewToken({refreshToken:M.token}).pipe((0,V.T)(F=>{const se=F.identity;return this.cookieService.setCookie("identity",se),E.$.setToken(se.token.token),p.Xw.refreshTokenSuccess({identity:se})}),(0,P.W)(F=>(0,v.of)(p.Xw.refreshTokenFailure({error:F.message})))):(0,v.of)(p.Xw.refreshTokenFailure({error:"No refresh token found"}))))),this.refreshTokenFailure$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.refreshTokenFailure),(0,b.E)(this.store$.select(c.Db)),(0,K.M)(([U,M])=>{M||this.router.navigateByUrl("/signout")})),{dispatch:!1}),this.loadBillingInformations$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.loadBillingInformations),(0,B.n)(()=>{const U=new n.i;return(0,C.H)(U.getInformations()).pipe((0,V.T)(({informations:M})=>p.Xw.loadBillingInformationsSuccess({billingInformations:M})),(0,P.W)(M=>(0,v.of)(M instanceof n.s.GetInformationsError.NotFoundError?p.Xw.loadBillingInformationsSuccess({billingInformations:null}):p.Xw.loadBillingInformationsFailure({error:M.message}))))}))),this.loadSubscription$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.loadSubscription),(0,B.n)(()=>{const U=new i.i;return(0,g.v)(()=>Promise.all([U.getSubscription(),U.listSubscriptionLimits()])).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:xe.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:xe.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:xe.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:Fe.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Fe.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Fe.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,te.Z)(([{subscription:M},{limits:F}])=>[p.Xw.loadSubscriptionSuccess({subscription:M,limits:F})]),(0,P.W)(M=>(0,v.of)(M instanceof i.s.GetSubscriptionError.NotFoundError||M instanceof i.s.GetSubscriptionError.ForbiddenError||M instanceof i.s.GetSubscriptionError.UnauthorizedError?p.Xw.loadSubscriptionSuccess({subscription:null}):p.Xw.loadSubscriptionFailure({error:M.message}))))}))),this.loadSubscriptionWithPlan$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.loadSubscriptionWithPlan),(0,W.p)(()=>{const U=new i.i;return(0,g.v)(()=>Promise.all([U.getSubscription(),U.listSubscriptionLimits()])).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:xe.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:xe.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:xe.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:Fe.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Fe.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Fe.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,te.Z)(([{subscription:M},{limits:F}])=>[p.Xw.loadSubscriptionWithPlanSuccess({subscription:M,limits:F})]),(0,P.W)(M=>(0,v.of)(M instanceof i.s.GetSubscriptionError.NotFoundError||M instanceof i.s.GetSubscriptionError.UnauthorizedError?p.Xw.loadSubscriptionWithPlanSuccess({subscription:null}):p.Xw.loadSubscriptionWithPlanFailure({error:M.message}))))}))),this.loadPlan$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.loadPlan),(0,b.E)(this.store$.select(c.Ev)),(0,B.n)(([U,M])=>{const{subscription:F}=U,se=new n.i;return null!=F&&F.plan?(0,C.H)(se.getPlan(F.plan)).pipe((0,z.H)(({plan:ee})=>[p.Xw.loadSubscriptionSuccess({subscription:F}),p.Xw.loadPlanSuccess({plan:ee})]),(0,P.W)(ee=>(0,v.of)(ee instanceof Se.Ay.NotFoundError?p.Xw.loadPlanSuccess({plan:null}):p.Xw.loadPlanFailure({error:ee.message})))):[p.Xw.loadSubscriptionSuccess({subscription:F}),p.Xw.loadPlanFailure({error:"No plan in subscription."})]}))),this.loadPlanGroupFromSubscription$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.loadPlanGroupFromSubscription),(0,B.n)(()=>{const U=new i.i;return(0,C.H)(U.getSubscription()).pipe((0,te.Z)(M=>{var F;const se=null===(F=M.subscription)||void 0===F?void 0:F.plan.id;if(se)return(0,C.H)(U.getPlanGroup({planId:se})).pipe((0,te.Z)(ee=>{const de=ee.group.plans;return[e.d.loadPlansSuccess({plans:de}
1),p.Xw.loadPlanGroupFromSubscriptionSuccess({planGroup:de})]}),(0,P.W)(ee=>(0,v.of)(p.Xw.loadPlanGroupFromSubscriptionFailure({error:ee.message}))))}),(0,P.W)(M=>(0,v.of)(p.Xw.loadPlanGroupFromSubscriptionFailure({error:M.message}))))}))),this.signOut$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.signOut),(0,V.T)(U=>(this.cookieService.removeCookie("identity"),p.Xw.signOutSuccess())))),this.signOutSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.signOutSuccess),(0,b.E)(this.store$.select(c.ir)),(0,K.M)(([U,M])=>{window.location.href=M+"/"})),{dispatch:!1}),this.signInAgain$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.signInAgain),(0,V.T)(U=>(this.router.navigateByUrl("/signin"),p.Xw.signInAgainSuccess())))),this.getProfileInformation$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.getProfileInformation),(0,B.n)(U=>{const M=this.cookieService.getCookie("identity"),F=new n.i;return(this.tokenService.isRoot(M.token.token)?(0,C.H)(F.getInformations()):this.iamService.getUser(M.id)).pipe((0,V.T)(({user:ee,informations:de})=>p.Xw.getProfileInformationSuccess(de?{firstName:de.firstName,lastName:de.lastName,authenticationMode:null==ee?void 0:ee.authenticationMode}:{firstName:ee.firstName,lastName:ee.lastName,authenticationMode:ee.authenticationMode})),(0,P.W)(ee=>(0,v.of)(p.Xw.getProfileInformationFailure({error:ee}))))}))),this.updateActiveIdentity$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.UpdateActiveIdentity),(0,b.E)(this.store$.select(c.Jd)),(0,B.n)(([U,M])=>{if(null!=M&&M.provisioned)return[p.Xw.UpdateActiveIdentityFailure({error:"User is managed by provisioning system, can't modify related informations"})];const F=Object.assign({},U.data);return null!=F&&F.username&&(F.username=F.username.toLowerCase()),(this.tokenService.isRoot(M.token.token)?this.iamService.updateAccount(F):this.iamService.updateUser(M.id,F)).pipe((0,V.T)(({user:ee,account:de})=>p.Xw.UpdateActiveIdentitySuccess(de?{identity:de}:{identity:ee})),(0,P.W)(ee=>(0,v.of)(p.Xw.UpdateActiveIdentityFailure({error:ee}))))}))),this.updateActiveTeam$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.updateActiveTeam),(0,K.M)(U=>{U.team&&this.cookieService.setCookie("lastActiveTeam",{domain:U.team.domain,team:U.team.id})})),{dispatch:!1}),this.updateUsername$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.UpdateUsername),(0,b.E)(this.store$.select(c.Jd)),(0,B.n)(([U,M])=>{if(null!=M&&M.provisioned)return[p.Xw.UpdateUsernameFailure({error:"User is managed by provisioning system, can't modify related informations"})];const F=Object.assign({},U.data);return null!=F&&F.username&&(F.username=F.username.toLowerCase()),(this.tokenService.isRoot(M.token.token)?this.iamService.updateAccount({username:F.username}):this.iamService.updateUser(M.id,{username:F.username})).pipe((0,V.T)(({user:ee,account:de})=>p.Xw.UpdateUsernameSuccess(de?{identity:de}:{identity:ee})),(0,P.W)(ee=>(0,v.of)(p.Xw.UpdateUsernameFailure({error:ee.error}))))}))),this.updatePassword$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.UpdatePassword),(0,b.E)(this.store$.select(c.Jd)),(0,B.n)(([U,M])=>{const{currentPassword:F,newPassword:se}=U;return this.iamService.updatePassword({currentPassword:F,newPassword:se}).pipe((0,z.H)(()=>{const ee=new d._;return(0,C.H)(ee.createToken({username:M.username,password:se})).pipe((0,V.T)(({identity:de})=>(this.cookieService.setCookie("identity",de),E.$.setToken(de.token.token),p.Xw.UpdatePasswordSuccess({identity:de}))))}),(0,P.W)(ee=>(0,v.of)(p.Xw.UpdatePasswordFailure({error:ee.error}))))}))),this.openReloginModalOnUsernameChange$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.UpdateUsernameSuccess),(0,b.E)(this.store$.select(c.Jd)),(0,K.M)(([{identity:U},M])=>{var F;const se=null!==(F=null==U?void 0:U.username)&&void 0!==F?F:null==M?void 0:M.username;this.dialog.open(ne,{enableClose:!1,closeButton:!1,data:{username:se},size:"sm"})})),{dispatch:!1}),this.relogin$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.Relogin),(0,B.n)(U=>{const M=new d._;return(0,C.H)(M.createToken({username:U.username,password:U.password})).pipe((0,V.T)(({identity:F})=>(this.cookieService.setCookie("identity",F),E.$.setToken(F.token.token),p.Xw.ReloginSuccess({identity:F}))),(0,P.W)(F=>{const se=F instanceof Error?{name:F.name,message:F.message}:{name:"UnknownError",message:String(F)};return(0,v.of)(p.Xw.ReloginFailure({error:se}))}))}))),this.reloginAbort$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.ReloginAbort),(0,K.M)(()=>{this.cookieService.removeCookie("identity"),E.$.setToken(""),window.location.href="/signin"})),{dispatch:!1}),this.setupSsoSession$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.SetupSsoSession),(0,b.E)(this.store$.select(c.Ev)),(0,z.H)(([U,M])=>{const{identity:F}=U.informations;this.cookieService.setCookie("identity",F),E.$.setToken(F.token.token);const se=(null==F?void 0:F.language)||M;
1this.gtmService.pushTag({event:I.h.eventGTM.SIGNIN,signin_method:I.h.signinMode.sso});const ee=new j.T({region:F.region});return(0,C.H)(ee.listPublicServices()).pipe((0,z.H)(de=>{const{region:X}=de;return[p.Vg.SelectLanguage({language:se}),p.Xw.selectActiveIdentity({identity:F}),o.qN.signinSuccess({identity:F,region:X}),p.Xw.SetupSsoSessionSuccess()]}))}),(0,P.W)(U=>(0,v.of)(p.Xw.SetupSsoSessionFailure({error:U.error}))))),this.signinSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(o.qN.signinSuccess),(0,K.M)(()=>{this.router.navigateByUrl("/")})),{dispatch:!1}),this.loadUserRolesAndTeams$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.LoadUserRolesAndTeams),(0,b.E)(this.store$.select(c.Jd)),(0,B.n)(([U,M])=>this.iamService.listUserRolesAndTeams(M).pipe((0,z.H)(({roles:F,teams:se})=>{const ee=se.map(de=>{const X=new ge.$;return(0,C.H)(X.getDomain({domainId:de.domain})).pipe((0,V.T)(({domain:ae})=>({...de,logo:ae.logo,background:ae.background})))});return(0,H.p)(ee).pipe((0,$.U)([]),(0,te.Z)(de=>{const X=!!F.find(ae=>ae.name===I.h.administratorRoleName)||this.tokenService.isRoot(M.token.token);return[p.Xw.LoadUserRolesAndTeamsSuccess({roles:F,teams:de,isAdministrator:X})]}))}),(0,P.W)(F=>(0,v.of)(p.Xw.LoadUserRolesAndTeamsFailure({error:F.message}))))))),this.loadUserRoles$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.LoadUserRoles),(0,b.E)(this.store$.select(c.Jd)),(0,W.p)(([U,M])=>this.iamService.listUserRoles(M.id).pipe((0,z.H)(({roles:F})=>{const se=!!F.find(ee=>ee.name===I.h.administratorRoleName);return(0,v.of)(p.Xw.LoadUserRolesSuccess({roles:F,isAdministrator:se}))}),(0,P.W)(F=>(0,v.of)(403===F.status?p.Xw.LoadUserRolesSuccess({roles:[],isAdministrator:!1}):p.Xw.LoadUserRolesFailure({error:F.error}))))))),this.loadUserTeams$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.LoadUserTeams),(0,b.E)(this.store$.select(c.Jd),this.store$.select(c.U3)),(0,W.p)(([U,M,F])=>{const se=this.tokenService.isRoot(M.token.token)||F?[this.iamService.listTeams()]:[this.iamService.listUserTeams(M.id),this.iamService.listUserGroupsTeams(M.id)];return(0,H.p)(se).pipe((0,z.H)(ee=>{const de=ee.map(({teams:ae})=>ae.map(fe=>fe)).flat(),X=this.cookiesService.getCookie("lastActiveTeam");return!X&&de.length?[p.Xw.updateActiveTeam({team:de[0]}),p.Xw.LoadUserTeamsSuccess({teams:de})]:[p.Xw.updateActiveTeam({team:de.find(ae=>ae.id===(null==X?void 0:X.team))||de[0]}),p.Xw.LoadUserTeamsSuccess({teams:de})]}),(0,P.W)(ee=>(0,v.of)(403===ee.status?p.Xw.LoadUserTeamsSuccess({teams:[]}):p.Xw.LoadUserTeamsFailure({error:ee.error}))))}))),this.getMfa$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.GetMfa),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam,ee=this.tokenService.isRoot(M.token.token)?F.getMfa():F.getUserMfa({userId:M.id});return(0,g.v)(()=>ee).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.GetMfaError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.GetMfaError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.GetMfaError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.GetUserMfaError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.GetUserMfaError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.GetUserMfaError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(({mfa:de})=>(0,v.of)(p.Xw.GetMfaSuccess({mfa:de}))),(0,P.W)(de=>(0,v.of)(p.Xw.GetMfaFailure({error:de.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.GetMfaFailure({error:U.message}))))),this.verifyApplicationFactor$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.VerifyApplicationFactor),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd)),this.store$.pipe((0,f.Lt)(c.HO))),(0,W.p)(([U,M,F])=>{const se=new l.Iam,de=this.tokenService.isRoot(M.token.token)?se.verifyMfaFactor({factorId:"application",otp:U.otp,token:M.token.token,secret:F}):se.verifyUserMfaFactor({userId:M.id,factorId:"application",otp:U.otp,token:M.token.token,secret:F});return(0,g.v)(()=>de).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.VerifyMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyUserMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyUserMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyUserMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(()=>(0,v.of)(p.Xw.VerifyApplicationFactorSuccess())),(0,P.W)(X=>(0,v.of)(p.Xw.VerifyApplicationFactorFailure(X instanceof l.errors.VerifyMfaFactorError.MfaFactorNotAllowedError||X instanceof l.errors.VerifyUserMfaFactorError.MfaFactorNotAllowedError?{error:X.name}:{error:X.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.VerifyApplicationFactorFailure({error:U.message}))))),this.verifyEmailFactor$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.VerifyEmailFactor),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam,ee=this.tokenService.isRoot(M.token.token)?F.verifyMfaFactor({factorId:"email",otp:U.otp,token:M.token.token}):F.verifyUserMfaFactor({userId:M.id,factorId:"email",otp:U.otp,token:M.token.token});return(0,g.v)(()=>ee).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.VerifyMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyUserMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyUserMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.VerifyUserMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(()=>(0,v.of)(p.Xw.VerifyEmailFactorSuccess())),(0,P.W)(de=>(0,v.of)(p.Xw.VerifyEmailFactorFailure(de instanceof l.errors.VerifyMfaFactorError.MfaFactorNotAllowedError||de instanceof l.errors.VerifyUserMfaFactorError.MfaFactorNotAllowedError?{error:de.name}:{error:de.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.VerifyEmailFactorFailure({error:U.message}))))),this.sendEmailOtp$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.SendEmailOtp),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam;return(0,g.v)(()=>F.sendOtp({factor:"email",token:M.token.token}
1)).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.SendOtpError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.SendOtpError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.SendOtpError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(()=>(0,v.of)(p.Xw.SendEmailOtpSuccess())),(0,P.W)(se=>(0,v.of)(p.Xw.SendEmailOtpFailure(se instanceof l.errors.SendOtpError.MfaFactorNotAllowedError?{error:se.name}:{error:se.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.SendEmailOtpFailure({error:U.message}))))),this.updateDefaultFactor$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.UpdateDefaultFactor),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam,ee=this.tokenService.isRoot(M.token.token)?F.updateMfa({defaultFactor:U.factor}):F.updateUserMfa({userId:M.id,defaultFactor:U.factor});return(0,g.v)(()=>ee).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.UpdateMfaError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.UpdateMfaError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.UpdateMfaError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.UpdateUserMfaError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.UpdateUserMfaError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.UpdateUserMfaError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(()=>(0,v.of)(p.Xw.UpdateDefaultFactorSuccess())),(0,P.W)(de=>(0,v.of)(p.Xw.UpdateDefaultFactorFailure(de instanceof l.errors.UpdateMfaError.MfaFactorNotVerifiedError||de instanceof l.errors.UpdateUserMfaError.MfaFactorNotVerifiedError?{error:de.name}:{error:de.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.UpdateDefaultFactorFailure({error:U.message}))))),this.resetEmailFactor$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.ResetEmailFactor),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam,ee=this.tokenService.isRoot(M.token.token)?F.resetMfaFactor({factorId:"email"}):F.resetUserMfaFactor({userId:M.id,factorId:"email"});return(0,g.v)(()=>ee).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.ResetMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetUserMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetUserMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetUserMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(()=>(0,v.of)(p.Xw.ResetEmailFactorSuccess())),(0,P.W)(de=>(0,v.of)(p.Xw.ResetEmailFactorFailure({error:de.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.ResetEmailFactorFailure({error:U.message}))))),this.resetApplicationFactor$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.ResetApplicationFactor),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam,ee=this.tokenService.isRoot(M.token.token)?F.resetMfaFactor({factorId:"application"}):F.resetUserMfaFactor({userId:M.id,factorId:"application"});return(0,g.v)(()=>ee).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.ResetMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetUserMfaFactorError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetUserMfaFactorError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.ResetUserMfaFactorError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,W.p)(()=>(0,v.of)(p.Xw.ResetApplicationFactorSuccess())),(0,P.W)(de=>(0,v.of)(p.Xw.ResetApplicationFactorFailure({error:de.message}))))}),(0,P.W)(U=>(0,v.of)(p.Xw.ResetApplicationFactorFailure({error:U.message}))))),this.createMfaFactorSecret$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Xw.CreateMfaFactorSecret),(0,b.E)(this.store$.pipe((0,f.Lt)(c.Jd))),(0,W.p)(([U,M])=>{const F=new l.Iam,se=this.tokenService.isRoot(M.token.token),{id:de}=this.tokenService.decodeToken(M.token.token),X=se?F.createMfaFactorSecret({factorId:"application",token:M.token.token}):F.createUserMfaFactorSecret({userId:de,factorId:"application",token:M.token.token});return(0,g.v)(()=>X).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:l.errors.CreateMfaFactorSecretError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.CreateMfaFactorSecretError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.CreateMfaFactorSecretError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.CreateUserMfaFactorSecretError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.CreateUserMfaFactorSecretError.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:l.errors.CreateUserMfaFactorSecretError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,V.T)(({application:ae})=>p.Xw.CreateMfaFactorSecretSuccess({secret:ae.secret})),(0,P.W)(ae=>(0,v.of)(p.Xw.CreateMfaFactorSecretFailure(ae instanceof l.errors.CreateMfaFactorSecretError.MfaFactorNotAllowedError||ae instanceof l.errors.CreateUserMfaFactorSecretError.MfaFactorNotAllowedError?{error:ae.name}:{error:ae.message}))))})))}}return(D=me).\u0275fac=function(G){return new(G||D)(m.KVO(u.En),m.KVO(Me.B),m.KVO(we.L),m.KVO(je.r),m.KVO(Be.A),m.KVO($e.Ix),m.KVO(f.il),m.KVO(je.r),m.KVO(Y.o3))},D.\u0275prov=m.jDH({token:D,factory:D.\u0275fac}),me})();var ft=r(36972),oe=r(55198),Ke=r(93718);const He=D=>{if(Array.isArray(D)&&"object"==typeof D[0]){if(D[0].description)return D.sort((re,G)=>re.description.localeCompare(G.description)).map(He);
1if(D[0].effect)return D.sort((re,G)=>re.effect.localeCompare(G.effect)).map(He)}return Array.isArray(D)?D.sort():"object"==typeof D&&D?Object.keys(D).sort().reduce((me,re)=>({...me,[re]:He(D[re])}),{}):D},Ze=({remotePolicies:D,remoteRoles:me},{teams:G})=>{let y="",k="need update",h="";const{localRoles:x,localPolicies:L}=((D,me,re)=>{let G=[],S=[];return D.forEach(y=>{G=[...G,...Object.keys(Ke.Y.teamRoles).map(k=>{const h=new oe.a({roleName:k,role:Ke.Y.teamRoles[k]},{team:y.id,domain:y.domain});return delete h.shortName,h})]}),S=G.map(y=>y.policies).reduce((y,k)=>{const h=y.map(L=>L.name),x=[];return k.map(L=>{-1===h.indexOf(L.name)&&x.push(L)}),[...x,...y]},[]).sort((y,k)=>y.description.localeCompare(k.description)),{localRoles:G,localPolicies:S}})(G),{countRoles:O,usedRoles:Z,unusedRolesCount:U,rolesToDeleteCount:M,RolesToCreate:F,RolesToUpdate:se,RolesToDelete:ee}=((D,me)=>{let re=0,G=0,S=0,y=0;const k=[],h=[],x=[],L=me.map(O=>O.name);return D.forEach(O=>{-1===L.indexOf(O.name)&&(x.push(O),O.policies.length&&h.push({role:O,policiesToAttach:[],policiesToDetach:O.policies}),y++)}),me.forEach(O=>{const Z=D.find(F=>F.name===O.name);if(Z){var U,M;G++;const F=((D,me)=>{const re=D.policies.map(M=>M.name),G=me.policies.map(M=>M.name),S=me.policies.filter(M=>-1===re.indexOf(M.name)),y=D.policies.filter(M=>-1===G.indexOf(M.name)),k={policiesToAttach:[],policiesToDetach:[],roleToUpdate:void 0};(S.length||y.length)&&(k.policiesToAttach=S,k.policiesToDetach=y);const{policies:h,...x}=me,{policies:L,...O}=D,Z=He(JSON.parse(JSON.stringify(O))),U=He(JSON.parse(JSON.stringify(x)));return JSON.stringify(Z)!==JSON.stringify(U)&&(k.roleToUpdate=x),k})(Z,O);(null!=F&&null!==(U=F.policiesToAttach)&&void 0!==U&&U.length||null!=F&&null!==(M=F.policiesToDetach)&&void 0!==M&&M.length||null!=F&&F.roleToUpdate)&&(re++,h.push({role:O,...F}))}else k.push(O),h.push({role:O,policiesToAttach:O.policies,policiesToDetach:[]}),S++}),{countRoles:re,usedRoles:G,unusedRolesCount:S,rolesToDeleteCount:y,RolesToCreate:k,RolesToUpdate:h,RolesToDelete:x}})(me,x);y+=`Found ${x.length} roles that should be used by Roles \r\n`,y+=`Found ${Z} roles actually used by Roles (match with remote roles)\r\n`,y+=`Found ${O} differed  roles\r\n`,y+=`Found ${U} unused local roles\r\n`;const{policiesToUpdate:de,usedPolicies:X,unusedPoliciesCount:ae,policiesToCreateCount:fe,policiesToDeleteCount:he,PoliciesToUpdate:Le,PoliciesToCreate:ye,PoliciesToDelete:ke}=((D,me)=>{let re=0,G=0,S=0,y=0,k=0;const h=[],x=[],L=[],O=D.map(U=>U.name),Z=me.map(U=>U.name);return D.forEach(U=>{-1===Z.indexOf(U.name)&&(L.push(U),k++)}),me.forEach(U=>{const M=D.find(se=>se.name===U.name);-1===O.indexOf(U.name)?(x.push(U),y++):M?(G++,((D,me)=>{if(D.statement&&D.statement.length!==me.statement.length||D.policies&&D.policies.length!==me.policies.length)return!0;const re=He(JSON.parse(JSON.stringify(D))),G=He(JSON.parse(JSON.stringify(me)));return JSON.stringify(re)!==JSON.stringify(G)})(M,U)&&(re++,h.push(U))):S++}),{policiesToUpdate:re,usedPolicies:G,unusedPoliciesCount:S,policiesToCreateCount:y,policiesToDeleteCount:k,PoliciesToUpdate:h,PoliciesToCreate:x,PoliciesToDelete:L}})(D,L);return y+=`Found ${L.length} policies that should be used by Roles\r\n`,y+=`Found ${X} policies actually used by Roles (match with remote policies)\r\n`,y+=`Found ${de} differed  policies\r\n`,y+=`Found ${he} old policies\r\n`,y+=`Found ${fe} new  policies\r\n`,y+=`Found ${ae} unused local policies\r\n`,y+=`Found ${M} unused local roles\r\n`,y+="######## ----- SUMMARY------ #########\r\n",[M,U,he,fe,de,O].some(Oe=>0!==Oe)?(y+=`Should create and attach ${U}\r\n`,y+=`Should Delete ${M} roles to reflect local changes\r\n`,y+=`Should Delete ${he} policies to reflect local changes\r\n`,y+=`should Create ${fe} new policies to reflect local changes\r\n`,y+=`Should Patch ${de} policies to reflect local changes\r\n`,y+=`Should Patch ${O} roles to reflect local changes\r\n`,h="need to update"):(y+="Nothing to do\r\n",h="Nothing to do\r\n",k="up to date"),{name:"Update Policies & Roles",status:k,result:h,type:"policyRoleUpdate",logs:y,tasks:{PoliciesToCreate:ye,PoliciesToUpdate:Le,RolesToDelete:ee,RolesToCreate:F,RolesToUpdate:se,PoliciesToDelete:ke}}};var Xe=r(13683),ot=r(40940),ht=r(23329),dt=r(80560),Rt=r(66554),Ye=r(85687),ut=r(78374),Ge=r(97144),St=r(39624),Ve=r(32088),Ut=r(5684),at=r(85621),Et=r(6868);function kt(D,me){if(1&D){const re=m.RV6();m.j41(0,"button",10),m.bIt("click",function(){m.eBV(re);const S=m.XpG();return m.Njj(S.primaryAction.emit())}),m.EFF(1),m.k0s()}if(2&D){const re=m.XpG();m.R7$(),m.JRh(re.primaryLabel)}}let qe=(()=>{var D;class me{constructor(){this.title="",this.description="",this.closeLabel="",this.primaryLabel="",this.closed=new m.bkB,this.primaryAction=new m.bkB}get hasPrimaryAction(){return!!this.primaryLabel}}return(D=me).\u0275fac=function(G){return new(G||D)},D.\u0275cmp=m.VBU({type:D,selectors:[["app-smash-message-modal"]],inputs:{title:"title",description:"description",closeLabel:"closeLabel",primaryLabel:"primaryLabel"},outputs:{closed:"closed",primaryAction:"primaryAction"},standalone:!0,features:[m.aNF],decls:14,vars:8,consts:[[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],[1,"title","title-big"],[1,"body"],[1,"section"],[1,"footer"],[1,"btn-new",3,"click"],[1,"btn-new","red"],[1,"btn-new","red",3,"click"]],template:function(G,S){1&G&&(m.j41(0,"div",0)(1,"div",1)(2,"div",2),m.nrm(3,"i",3),m.k0s(),m.j41(4,"div",4),m.EFF(5),m.k0s()(),m.j41(6,"div",5)(7,"div",6)(8,"p"),m.EFF(9),m.k0s()()(),m.j41(10,"div",7)(11,"button",8),m.bIt("click",function(){return S.closed.emit
1()}),m.EFF(12),m.k0s(),m.DNE(13,kt,2,1,"button",9),m.k0s()()),2&G&&(m.R7$(5),m.JRh(S.title),m.R7$(4),m.JRh(S.description),m.R7$(2),m.AVh("red",!S.hasPrimaryAction)("white",S.hasPrimaryAction),m.R7$(),m.JRh(S.closeLabel),m.R7$(),m.vxM(13,S.primaryLabel?13:-1))},styles:["[_nghost-%COMP%]{display:block}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}"]}),me})(),Ft=(()=>{var D;class me{constructor(G,S){this.ref=G,this.document=S}ngOnInit(){const G=this.document.defaultView;G&&(this.onlineSubscription=(0,ht.R)(G,"online").subscribe(()=>this.ref.close(Et.OFFLINE_MODAL_RECONNECT_CLOSE_REASON)))}ngOnDestroy(){var G;null===(G=this.onlineSubscription)||void 0===G||G.unsubscribe()}}return(D=me).\u0275fac=function(G){return new(G||D)(m.rXU(Y.ce),m.rXU(w.qQ))},D.\u0275cmp=m.VBU({type:D,selectors:[["app-modal-language-load-error"]],standalone:!0,features:[m.aNF],decls:4,vars:9,consts:[[3,"closed","title","description","closeLabel"]],template:function(G,S){1&G&&(m.j41(0,"app-smash-message-modal",0),m.nI1(1,"translate"),m.nI1(2,"translate"),m.nI1(3,"translate"),m.bIt("closed",function(){return S.ref.close()}),m.k0s()),2&G&&m.Y8G("title",m.bMT(1,3,"LANGUAGE_LOAD_ERROR_TITLE"))("description",m.bMT(2,5,"LANGUAGE_LOAD_ERROR_DESCRIPTION"))("closeLabel",m.bMT(3,7,"LANGUAGE_LOAD_ERROR_CLOSE"))},dependencies:[qe,ve.h,ve.D9],encapsulation:2}),me})(),vt=(()=>{var D;class me{constructor(G,S){this.ref=G,this.document=S}ngOnInit(){const G=this.document.defaultView;G&&(this.onlineSubscription=(0,ht.R)(G,"online").subscribe(()=>this.ref.close(Et.OFFLINE_MODAL_RECONNECT_CLOSE_REASON)))}ngOnDestroy(){var G;null===(G=this.onlineSubscription)||void 0===G||G.unsubscribe()}reload(){this.document.location.reload()}}return(D=me).\u0275fac=function(G){return new(G||D)(m.rXU(Y.ce),m.rXU(w.qQ))},D.\u0275cmp=m.VBU({type:D,selectors:[["app-modal-chunk-load-error"]],standalone:!0,features:[m.aNF],decls:5,vars:12,consts:[[3,"closed","primaryAction","title","description","closeLabel","primaryLabel"]],template:function(G,S){1&G&&(m.j41(0,"app-smash-message-modal",0),m.nI1(1,"translate"),m.nI1(2,"translate"),m.nI1(3,"translate"),m.nI1(4,"translate"),m.bIt("closed",function(){return S.ref.close()})("primaryAction",function(){return S.reload()}),m.k0s()),2&G&&m.Y8G("title",m.bMT(1,4,"CHUNK_LOAD_ERROR_TITLE"))("description",m.bMT(2,6,"CHUNK_LOAD_ERROR_DESCRIPTION"))("closeLabel",m.bMT(3,8,"CHUNK_LOAD_ERROR_CLOSE"))("primaryLabel",m.bMT(4,10,"CHUNK_LOAD_ERROR_RELOAD"))},dependencies:[qe,ve.h,ve.D9],encapsulation:2}),me})();var Tt=r(5891),yt=r(94485);let Pt=(()=>{var D;class me{constructor(G){this.http=G,this.headers=(new yt.Lr).set("Authorization","true")}postTneveOnScitylana(G){return this.http.post("https://"+Ge.c.prefixUrl+"scitylana.fromsmash.co/tneve?version=11-2021",G,{headers:this.headers})}}return(D=me).\u0275fac=function(G){return new(G||D)(m.KVO(yt.Qq))},D.\u0275prov=m.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),me})();var Mt=r(45842),wt=r(8460);const Ot=(0,m.zw6)("discovery-services"),Ct=(0,m.zw6)("vat-countries");let Xt=(()=>{var D;class me{constructor(G,S,y,k,h,x,L,O,Z,U,M,F,se,ee,de){this.actions$=G,this.tokenService=S,this.translate=y,this.store=k,this.deviceService=h,this.iamService=x,this.cookiesService=L,this.scitylanaService=O,this.router=Z,this.redirectionService=U,this.state=M,this.googleTagManagerService=F,this.domainService=se,this.dialog=ee,this.platformId=de,this.showLanguageLoadError$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.SelectLanguageFailure),(0,K.M)(()=>{(0,w.UE)(this.platformId)&&this.openOfflineModal(Ft,"language-load-error")})),{dispatch:!1}),this.showChunkLoadError$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.ChunkLoadFailure),(0,K.M)(()=>{(0,w.UE)(this.platformId)&&this.openOfflineModal(vt,"chunk-load-error")})),{dispatch:!1}),this.reconnectPendingLanguageSwitch$=(0,u.EH)(()=>((0,w.UE)(this.platformId)?(0,ht.R)(window,"online"):dt.w).pipe((0,b.E)(this.store.select(c.Co)),(0,Ye.p)(([,X])=>!(!X||!X.url&&!X.language)),(0,te.Z)(([,X])=>X.language?X.url?(this.router.navigateByUrl(X.url).catch(()=>{}),[p.Vg.ClearPendingLanguageSwitch()]):[p.Vg.SelectLanguage({language:X.language}),p.Vg.ClearPendingLanguageSwitch()]:(X.url&&this.reloadTo(X.url),[p.Vg.ClearPendingLanguageSwitch()])))),this.loadDeviceInfos$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadDevice),(0,B.n)(()=>{const X={deviceInfo:this.deviceService.getDeviceInfo(),isMobile:this.deviceService.isMobile(),isDesktop:this.deviceService.isDesktop(),isTablet:this.deviceService.isTablet()};return[p.Vg.loadDeviceSuccess({device:X})]}))),this.loadServicesFromDomain$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadServicesFromDomain),(0,b.E)(this.store.select(c.C4)),(0,B.n)(([X,ae])=>
1{if(null!=ae&&ae.region){const fe=new j.T({region:ae.region});return(0,g.v)(()=>fe.listPublicServices()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Ve.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({country:he,countryCode:Le})=>[p.Vg.loadServicesSuccess({region:ae.region,country:he,countryCode:Le})]),(0,P.W)(he=>{throw this.router.navigateByUrl(I.h.redirection.serviceUnavailable),he}))}{const fe=this.state.get(Ot,null);if(fe)return(0,v.of)(p.Vg.loadServicesSuccess({...fe}));{const he=new j.T({host:Ge.c.discovery});return(0,g.v)(()=>he.listPublicServices()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Ve.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({region:Le,country:ye,countryCode:ke})=>(this.state.set(Ot,{region:Le,country:ye,countryCode:ke}),[p.Vg.loadServicesSuccess({region:Le,country:ye,countryCode:ke})])),(0,P.W)(Le=>{throw this.router.navigateByUrl(I.h.redirection.serviceUnavailable),Le}))}}}))),this.loadServicesFromToken$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadServicesFromToken),(0,b.E)(this.store.select(c.Jd)),(0,B.n)(([X,ae])=>{const{region:fe}=ae,he=new j.T({region:fe});return(0,g.v)(()=>he.listPublicServices()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Ve.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({country:Le,countryCode:ye})=>[p.Vg.loadServicesSuccess({region:fe,country:Le,countryCode:ye})]))}))),this.loadServicesFromRegion$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadServicesFromRegion),(0,B.n)(X=>{const{region:ae}=X,fe=new j.T({region:ae});return(0,g.v)(()=>fe.listPublicServices()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Ve.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0},{error:Ve.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({country:he,countryCode:Le})=>[p.Vg.loadServicesSuccess({region:ae,country:he,countryCode:Le})]))}))),this.loadServices$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadServices),(0,b.E)(this.store.select(c.Jd),this.store.select(c.$b)),(0,B.n)(([X,ae,fe])=>{if(X.region)return[p.Vg.loadServicesFromRegion({region:X.region})];if(null!=ae&&ae.username)return[p.Vg.loadServicesFromToken()];if(!fe){const he=this.domainService.detectDomain();return(0,Rt.x)((0,v.of)(p.oR.loadDomain({id:he})),this.store.select(c.$b).pipe((0,Ye.p)(Le=>Le),(0,ut.s)(1),(0,V.T)(()=>p.Vg.loadServicesFromDomain())))}return[p.Vg.loadServicesFromDomain()]}))),this.loadServicesSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadServicesSuccess),(0,K.M)(X=>{(0,St.K)(Ge.c.services),(0,St.B)(X.region),console.log("Region: ",X.region),(0,w.UE)(this.platformId)&&this.googleTagManagerService.pushTag({smash_country_code:X.countryCode,smash_country:X.country,smash_region:X.region})})),{dispatch:!1}),this.selectLanguage$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.SelectLanguage),(0,B.n)(({language:X,currentPath:ae})=>(0,g.v)(()=>{const fe=void 0===this.translate.translations[X];return fe&&this.translate.currentLang===X?this.translate.reloadLang(X).pipe((0,K.M)(he=>this.translate.setTranslation(X,he))):(fe&&this.translate.resetLang(X),this.translate.use(X))}).pipe((0,V.T)(()=>(this.cookiesService.setCookie("lang",X),p.Vg.SelectLanguageSuccess({language:X}))),(0,P.W)(()=>(this.translate.resetLang(X),(0,v.of)(p.Vg.SelectLanguageFailure({language:X,url:ae})))))))),this.setupLanguage$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.SetupLanguage),(0,b.E)(this.store.pipe((0,f.Lt)(c.Ev))),(0,B.n)(([X,ae])=>{if(ae)return(0,g.v)(()=>this.translate.use(ae)).pipe((0,V.T)(()=>p.Vg.SetupLanguageSuccess({language:ae})),(0,P.W)(()=>(this.translate.resetLang(ae),dt.w)));{const fe=this.translate.getBrowserLang(),he=(0,ft.x)(fe);return(0,g.v)(()=>this.translate.use(he)).pipe((0,V.T)(()=>(this.cookiesService.setCookie("lang",he),p.Vg.SetupLanguageSuccess({language:he}))),(0,P.W)(()=>(this.translate.resetLang(he),dt.w)))}}))),this.loadCountries$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.loadCountries),(0,B.n)(()=>{const X=this.state.get(Ct,null);if(X)return(0,v.of)(p.Vg.loadCountriesSuccess({...X}));{const ae=new Ut.e;return(0,C.H)(ae.listCountries()).pipe((0,V.T)(({countries:fe})=>{const he=(0,Xe.n_)(fe);return this.state.set(Ct,{countries:he}),p.Vg.loadCountriesSuccess({countries:he})}),(0,P.W)(fe=>(0,v.of)(p.Vg.loadCountriesFailure({error:fe.message}))))}}))),this.followDomainRedirect$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.FollowDomainRedirect),(0,K.M)(X=>{const{protocol:ae,port:fe}=window.location;window.location.href=`${ae}//${X.redirect}${fe?":"+fe:""}`})),{dispatch:!1}),this.redirectToSelectedDomain$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.redirectToSelectedDomain),(0,b.E)(this.store.pipe((0,f.Lt)(c.C4)),this.store.pipe((0,f.Lt)(c.Jd))),(0,K.M)(([X,ae,fe])=>{const he=this.cookiesService.getCookie("lastActiveTeam");if((null==he?void 0:he.team)!==(null==ae?void 0:ae.team)){const{protocol:Le,port:ye}=window.location,{account:ke,id:Oe,language:_e,refreshToken:tt,region:De,token:ze,username:be}=fe;
1try{const Ne=encodeURIComponent(btoa(JSON.stringify({identity:{account:ke,id:Oe,language:_e,refreshToken:tt,region:De,token:ze,username:be}})));window.location.href=`${Le}//${he.domain}${ye?":"+ye:""}?auth=${Ne}`}catch(Ne){throw Ne}}else this.router.navigateByUrl("/")})),{dispatch:!1}),this.redirectToAccountWithSelectedDomain$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.redirectToAccountWithSelectedDomain),(0,b.E)(this.store.pipe((0,f.Lt)(c.OO))),(0,K.M)(([X,ae])=>{const{protocol:fe,port:he}=window.location;window.location.href=`${fe}//${ae.domain}${he?":"+he:""}/account/team/${ae.id}/transfers/sent`})),{dispatch:!1}),this.scanUpdates$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.ScanUpdates),(0,z.H)(X=>[p.Vg.GetRemotePoliciesAndRoles()]))),this.runUpdates$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.RunUpdates),(0,b.E)(this.store.select(c.MX)),(0,z.H)(([X,ae])=>{const fe=ae.map(he=>he.action);return fe.length?fe:[{type:"RunUpdates noop"}]}))),this.finalizeUpdates$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.FinalizeUpdates),(0,b.E)(this.store.select(c.MX)),(0,z.H)(([X,ae])=>ae.map(he=>he.action).length?[{type:"FinalizeUpdates noop"}]:[p.Vg.RunUpdatesSuccess({refresh:!0})]))),this.runUpdatesSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.RunUpdatesSuccess),(0,K.M)(X=>{X.refresh&&window.location.reload()})),{dispatch:!1}),this.getRemotePoliciesAndRoles$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.GetRemotePoliciesAndRoles),(0,z.H)(X=>(0,H.p)([this.iamService.listPolicies(),this.iamService.listHydratedRoles()]).pipe((0,te.Z)(([{policies:ae},fe])=>{const he=ae.filter(ye=>{var ke,Oe,_e;return!(null!=ye&&null!==(ke=ye.name)&&void 0!==ke&&ke.startsWith("Managed")||null!=ye&&null!==(Oe=ye.tags)&&void 0!==Oe&&Oe.applicationID&&(null==ye||null===(_e=ye.tags)||void 0===_e?void 0:_e.applicationID)!==I.h.resourceTagValues.applicationID)}),Le=fe.filter(ye=>{var ke,Oe,_e;return!(null!=ye&&null!==(ke=ye.name)&&void 0!==ke&&ke.startsWith("Managed")||null!=ye&&null!==(Oe=ye.tags)&&void 0!==Oe&&Oe.applicationID&&(null==ye||null===(_e=ye.tags)||void 0===_e?void 0:_e.applicationID)!==I.h.resourceTagValues.applicationID)});return[p.Vg.GetRemotePoliciesAndRolesSuccess({remotePolicies:he,remoteRoles:Le})]}))),(0,P.W)(X=>(0,v.of)(p.Vg.GetRemotePoliciesAndRolesFailure({error:X.message}))))),this.getRemotePoliciesAndRolesSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.GetRemotePoliciesAndRolesSuccess),(0,b.E)(this.store.select(c.Jd),this.store.select(c.QY)),(0,z.H)(([X,ae,fe])=>{const{remotePolicies:he,remoteRoles:Le}=X,ye=this.tokenService.getAccountFromToken(ae.token.token),ke=Ze({remotePolicies:he,remoteRoles:Le},{account:ye,teams:fe,region:ae.region});return"need update"===ke.status?(ke.action=p.Vg.ExecutePoliciesUpdate({...ke.tasks}),[p.Vg.ComputePoliciesSuccess({update:ke})]):[{type:"ComputePolicies noop"}]}))),this.executePoliciesUpdate$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.ExecutePoliciesUpdate),(0,b.E)(this.store.select(c.MX)),(0,z.H)(([X,ae])=>{const{PoliciesToCreate:fe,PoliciesToUpdate:he,RolesToDelete:Le,RolesToCreate:ye,RolesToUpdate:ke,PoliciesToDelete:Oe}=X;return this.iamService.executePolicyRoleUpdate({PoliciesToCreate:fe,PoliciesToUpdate:he,RolesToDelete:Le,RolesToCreate:ye,RolesToUpdate:ke,PoliciesToDelete:Oe}).pipe((0,z.H)(_e=>{const tt=ae.find(De=>"need update"===De.status&&"Update Policies & Roles"===De.name);return[p.Vg.ExecutePoliciesUpdateSuccess({update:tt}),p.Vg.FinalizeUpdates()]}))}))),this.acceptCGU$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.AcceptCGU),(0,V.T)(()=>{const X={cguLastConsentUpdated:(new Date).toISOString(),cguLastVersion:Ge.c.cgu.version,cguLastConsentValue:!0};return this.cookiesService.setCookie("cgu",X),p.Vg.AcceptCGUSuccess({cgu:X})}))),this.onBoarding$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.OnBoarding),(0,b.E)(this.store.select(c.Ev)),(0,K.M)(([X,ae])=>{const{onBoardingState:fe,redirectToPricing:he}=X;this.cookiesService.setCookie("onBoarding",fe),this.store.dispatch(p.Vg.OnBoardingSuccess({onBoardingState:fe})),he&&this.redirectionService.redirectTo(he)})),{dispatch:!1}),this.loadCookiesConsentConfiguration$=(0,u.EH)(()=>
1this.actions$.pipe((0,u.gp)(p.Vg.LoadCookiesConsentConfiguration),(0,V.T)(()=>{const ae=this.cookiesService.getAllCookies()._sucs;ae||this.cookiesService.removeAllCookiesExceptSystemAndCloufront();const fe=this.cookiesService.getCookiesConsentConfiguration();return fe.groups.social.enabled||this.cookiesService.cleanCookiesConsentGroupAssociatedCookies("social"),fe.groups.analytics.enabled||this.cookiesService.cleanCookiesConsentGroupAssociatedCookies("analytics"),this.googleTagManagerService.pushTag({event:I.h.eventGTM.CONSENT_UPDATE}),p.Vg.LoadCookiesConsentConfigurationSuccess({cookiesConsentConfiguration:fe,cookiesConsentSetByUser:ae})}))),this.acceptAllCookies$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.AcceptAllCookies),(0,V.T)(()=>(this.googleTagManagerService.pushTag({event:I.h.eventGTM.CONSENT_UPDATE}),p.Vg.UpdateCookiesConsentConfiguration({cookiesConsentConfiguration:{groups:{analytics:{enabled:!0},social:{enabled:!0}}}}))))),this.denyAllCookies$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.DenyAllCookies),(0,V.T)(()=>{this.googleTagManagerService.pushTag({event:I.h.eventGTM.CONSENT_UPDATE});const X=(0,at.ZI)(location.hostname);return p.Vg.UpdateCookiesConsentConfiguration({cookiesConsentConfiguration:{groups:{analytics:{enabled:!!X},social:{enabled:!1}}}})}))),this.updateCookiesConfiguration$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.UpdateCookiesConsentConfiguration),(0,b.E)(this.store.select(c.I_)),(0,V.T)(([X,ae])=>{const{cookiesConsentConfiguration:fe}=X;return this.cookiesService.setCookie("userConsentSet",!0),fe.groups.social.enabled?this.cookiesService.acceptCookiesConsentGroup("social"):this.cookiesService.denyCookiesConsentGroup("social"),fe.groups.analytics.enabled?this.cookiesService.acceptCookiesConsentGroup("analytics"):this.cookiesService.denyCookiesConsentGroup("analytics"),this.googleTagManagerService.pushTag({event:I.h.eventGTM.CONSENT_UPDATE}),p.Vg.UpdateCookiesConsentConfigurationSuccess({cookiesConsentConfiguration:fe,oldCookiesConsentConfiguration:ae})}))),this.updateCookiesConfigurationSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.UpdateCookiesConsentConfigurationSuccess),(0,K.M)(X=>{const{oldCookiesConsentConfiguration:ae,cookiesConsentConfiguration:fe}=X;let he=!1;Object.entries(ae.groups).forEach(([Le,ye])=>{ye.enabled&&!fe.groups[Le].enabled&&(he=!0)}),he&&window.location.reload()})),{dispatch:!1}),this.loadStripe$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.LoadStripe),(0,z.H)(()=>(0,C.H)((0,ot.c)(Ge.c.stripeKey)).pipe((0,V.T)(()=>p.Vg.LoadStripeSuccess()))),(0,P.W)(X=>(0,v.of)(p.Vg.LoadStripeFailure({error:X}))))),this.createEventScitylana$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.Vg.CreateEventScitylana),(0,z.H)(X=>this.scitylanaService.postTneveOnScitylana(X.event).pipe((0,V.T)(()=>p.Vg.CreateEventScitylanaSuccess()))),(0,P.W)(X=>(0,v.of)(p.Vg.CreateEventScitylanaFailure({error:X.message})))))}reloadTo(G){window.location.href=G}openOfflineModal(G,S){const y=this.dialog.open(G,{id:S});y&&y.afterClosed$.pipe((0,ut.s)(1)).subscribe(k=>{k!==p.Vg.OFFLINE_MODAL_RECONNECT_CLOSE_REASON&&this.store.dispatch(p.Vg.ClearPendingLanguageSwitch())})}}return(D=me).\u0275fac=function(G){return new(G||D)(m.KVO(u.En),m.KVO(Me.B),m.KVO(ve.c$),m.KVO(f.il),m.KVO(Tt.Kg),m.KVO(we.L),m.KVO(je.r),m.KVO(Pt),m.KVO($e.Ix),m.KVO(Mt.U),m.KVO(m.pJN),m.KVO(Be.A),m.KVO(wt.i),m.KVO(Y.o3),m.KVO(m.Agw))},D.\u0275prov=m.jDH({token:D,factory:D.\u0275fac}),me})();var Ht=r(76762),Gt=r(95333),mt=r(8509),It=r(12276),Dt=r(98154),At=r(42142),Wt=r(89845),Jt=r(72523),vo=r(10967),po=r(14292),fo=r(25889);let go=(()=>{var D;class me{constructor(G,S,y,k,h,x){this.actions$=G,this.store$=S,this.imageService=y,this.iamService=k,this.req=h,this.platformId=x,this.loadDomain$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.loadDomain),(0,b.E)(this.store$.select(c.vH),this.store$.select(c.Pf)),(0,W.p)(([L,O,Z]
1)=>{const U=new It.$({host:Ge.c.domainSdk}),M=[(0,g.v)(()=>U.getRecord({name:L.id})).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Dt.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Dt.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Dt.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}))];return(0,at.ZI)(location.hostname)||M.push((0,g.v)(()=>U.listRecordProviders({name:L.id})).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:At.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:At.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:At.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}))),(0,H.p)(M).pipe((0,te.Z)(([{record:F},se])=>{let ee;const de=se?[...se.providers]:[],X=Object.assign({},F);return ee={...Z.isMobile?{...I.h.customizationFallback,background:{...I.h.customizationFallback.background,sourceUrl:I.h.mobileBackgroundFallbackSourceUrl}}:I.h.customizationFallback,...X},[p.oR.loadDomainSuccess({domain:ee,providers:de,mainDomain:(0,w.UE)(this.platformId)?(0,at.TG)():this.req.baseUrl})]}),(0,P.W)(F=>(0,v.of)(p.oR.loadDomainFailure({error:F.message}))))}))),this.updateDomain$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.updateDomain),(0,b.E)(this.store$.select(c.OO)),(0,z.H)(([L,O])=>{const Z=L.team.name,U=L.team.domain,M=new It.$;return(0,C.H)(M.updateDomain({domainId:O.domain,domain:U})).pipe((0,z.H)(()=>this.iamService.updateTeam(O.id,{name:Z}).pipe((0,z.H)(()=>(0,v.of)(p.oR.updateDomainSuccess())))),(0,P.W)(F=>(0,v.of)(p.oR.updateDomainFailure({error:F.status}))))}
1))),this.loadDomainCustomization$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.loadDomainCustomization),(0,b.E)(this.store$.select(c.OO)),(0,B.n)(([L,O])=>{if(!O)return[{type:"No team selected"}];const Z=new It.$;return(0,C.H)(Z.getDomainCustomization({domainId:O.domain})).pipe((0,V.T)(U=>p.oR.loadDomainCustomizationSuccess({customization:{...I.h.customizationFallback,...U.customization}})),(0,Jt.l)(U=>U.pipe((0,ut.s)(3),(0,vo.c)(2e3))),(0,P.W)(U=>(0,v.of)(p.oR.loadDomainCustomizationFailure({error:U.message}))))}))),this.addNewBackgroundImageToDomainCustomization=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.addNewBackgroundImageToDomainCustomization),(0,V.T)(L=>L.image),(0,z.H)(([L])=>{const O=new Wt._;return(0,H.p)([(0,v.of)(L),(0,C.H)(O.createImage())])}),(0,z.H)(([L,O])=>(0,H.p)([(0,v.of)(O),this.imageService.uploadImage(O.image.uploadUrl,L)])),(0,z.H)(([L,O])=>(0,v.of)(p.oR.addNewBackgroundImageToDomainCustomizationSuccess({background:L.image}))))),this.addNewBackgroundVideoToDomainCustomization=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.addNewBackgroundVideoToDomainCustomization),(0,V.T)(L=>L.url),(0,z.H)(L=>{const O=(0,mt.m8)(L);return(0,v.of)(p.oR.addNewBackgroundVideoToDomainCustomizationSuccess({video:O}))}))),this.addNewLogoToDomainCustomization=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.addNewLogoToDomainCustomization),(0,V.T)(L=>L.image),(0,z.H)(([L])=>{const O=new Wt._;return(0,H.p)([(0,v.of)(L),(0,C.H)(O.createImage())])}),(0,z.H)(([L,{image:O}])=>(0,H.p)([(0,v.of)([L,{image:O}]),this.imageService.uploadImage(O.uploadUrl,L)])),(0,z.H)(([[L,{image:O}]])=>[p.oR.addNewLogoToDomainCustomizationSuccess({logo:O})]))),this.updateDomainCustomization$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.oR.updateDomainCustomization),(0,b.E)(this.store$.select(Gt.wj),this.store$.select(c.OO)),(0,B.n)(([L,O,Z])=>{let U,M;O.logo&&O.logo.sourceUrl&&(U=O.logo.sourceUrl),O.background&&O.background.sourceUrl&&(M=O.background.sourceUrl);const F=new It.$;return(0,C.H)(F.updateDomainCustomization({domainId:Z.domain,logo:U,background:M})).pipe((0,te.Z)(()=>[p.oR.loadDomain({id:Z.domain}),Ht.a.updateCustomizationSuccess()]),(0,P.W)(se=>(0,v.of)(p.oR.updateDomainCustomizationFailure({error:se.message}))))})))}}return(D=me).\u0275fac=function(G){return new(G||D)(m.KVO(u.En),m.KVO(f.il),m.KVO(fo.f),m.KVO(we.L),m.KVO(po.S,8),m.KVO(m.Agw))},D.\u0275prov=m.jDH({token:D,factory:D.\u0275fac}),me})();r(18924);var Ue=r(7511);const Qt=JSON.parse(atob("eyJQfEFEfGV1cnwxbSI6MzQuNDQsIlB8QUR8ZXVyfDF5Ijo5MCwiUHxBRHxldXJ8MnkiOjExNS4yLCJQfEFEfHVzZHwxbSI6MTAsIlB8QUR8dXNkfDF5IjoyMTYsIlB8QUR8dXNkfDJ5IjoxMTUuMiwiUHxBRXxldXJ8MW0iOjM1LCJQfEFFfHVzZHwxbSI6NDMuMTksIlB8QUV8dXNkfDF5IjoxMDIsIlB8QUV8dXNkfDJ5IjoxMjMuMTQsIlR8QUV8dXNkfDFtIjoxMjUsIlR8QUV8dXNkfDF5IjoxODAsIlR8QUV8dXNkfDJ5Ijo4NjQsIlB8QUl8dXNkfDFtIjo5MCwiUHxBTHxldXJ8MW0iOjMxLjExLCJQfEFMfGV1cnwyeSI6MTE1LjIsIlB8QUx8dXNkfDFtIjoxNy41LCJQfEFMfHVzZHwyeSI6MTE1LjIsIlB8QU18ZXVyfDFtIjoyMy4zMywiUHxBTXx1c2R8MW0iOjIwLCJQfEFPfHVzZHwxbSI6MTksIlB8QU98dXNkfDF5IjoxMDgsIlB8QU98dXNkfDJ5IjoxMTUuMiwiUHxBUXx1c2R8MW0iOjEwLCJQfEFSfHVzZHwxbSI6NDkuMDQsIlB8QVJ8dXNkfDF5Ijo5MS42NCwiUHxBUnx1c2R8MnkiOjE1My42LCJUfEFSfHVzZHwxbSI6MjAwLCJUfEFSfHVzZHwxeSI6MjcwLCJUfEFSfHVzZHwyeSI6Mjg4LCJQfEFUfGV1cnwxbSI6MzEuODksIlB8QVR8ZXVyfDF5Ijo4NiwiUHxBVHxldXJ8MnkiOjExOC44LCJUfEFUfGV1cnwxbSI6MTc1LCJUfEFUfGV1cnwxeSI6MjUyLCJUfEFUfGV1cnwyeSI6MzI5LjE0LCJQfEFVfGF1ZHwxbSI6NjAuMzMsIlB8QVV8YXVkfDF5IjoxMzYuMzksIlB8QVV8YXVkfDJ5IjoxOTUuODQsIlB8QVV8dXNkfDFtIjo2MS41MiwiUHxBVXx1c2R8MXkiOjEzOC44NiwiUHxBVXx1c2R8MnkiOjE2MS4yOCwiVHxBVXxhdWR8MW0iOjM5Ny41LCJUfEFVfGF1ZHwxeSI6MzI0LCJUfEFVfGF1ZHwyeSI6NjQ4LCJUfEFVfHVzZHwxbSI6MjkzLjc1LCJUfEFVfHVzZHwxeSI6NTQwLCJUfEFVfHVzZHwyeSI6NDMyLCJQfEFXfHVzZHwxbSI6MjMuMzMsIlB8QVp8dXNkfDFtIjozMi4yMiwiUHxCQXxldXJ8MW0iOjIyLjg2LCJQfEJBfGV1cnwxeSI6NzIsIlB8QkF8ZXVyfDJ5IjoxMTUuMiwiVHxCQXxldXJ8MnkiOjI4OCwiUHxCQnx1c2R8MW0iOjQzLjMzLCJQfEJEfHVzZHwxbSI6MzcuNzgsIlB8QkR8dXNkfDF5IjoxNDQsIlB8QkV8ZXVyfDFtIjo0OS4zNywiUHxCRXxldXJ8MXkiOjExNS4zOCwiUHxCRXxldXJ8MnkiOjEzMS40LCJUfEJFfGV1cnwxbSI6MTMzLjMzLCJUfEJFfGV1cnwxeSI6MjcwLCJUfEJFfGV1cnwyeSI6MzM0LjQ1LCJQfEJGfHVzZHwxbSI6NTAsIlB8Qkd8ZXVyfDFtIjoyOCwiUHxCR3xldXJ8MXkiOjcyLCJQfEJHfGV1cnwyeSI6MTcyLjgsIlB8Qkh8dXNkfDFtIjozMS4yNSwiUHxCSHx1c2R8MnkiOjExNS4yLCJUfEJIfHVzZHwxeSI6MTgwLCJUfEJIfHVzZHwyeSI6Mjg4LCJQfEJKfHVzZHwxbSI6MjUuNzEsIlB8Qkp8dXNkfDJ5IjoxMTUuMiwiVHxCSnx1c2R8MXkiOjE4MCwiVHxCSnx1c2R8MnkiOjI4OCwiUHxCTHx1c2R8MW0iOjkwLCJQfEJMfHVzZHwyeSI6MTQ0LCJQfEJNfHVzZHwxbSI6MTYwLCJQfEJOfHVzZHwxbSI6NTUsIlB8Qk98dXNkfD
1FtIjozNy42MiwiUHxCT3x1c2R8MnkiOjExNS4yLCJQfEJSfGJybHwxbSI6MTgxLjc5LCJQfEJSfGJybHwxeSI6NDE3LjYsIlB8QlJ8YnJsfDJ5Ijo2MDIuMzMsIlB8QlJ8dXNkfDFtIjo3NS4wMiwiUHxCUnx1c2R8MXkiOjEzNS4zNiwiUHxCUnx1c2R8MnkiOjE0OS43NiwiVHxCUnxicmx8MW0iOjE1Mi4xNCwiVHxCUnxicmx8MXkiOjEwODAsIlR8QlJ8YnJsfDJ5IjoxNzQyLjQsIlR8QlJ8dXNkfDFtIjoxMDAsIlR8QlJ8dXNkfDF5IjozNjAsIlR8QlJ8dXNkfDJ5Ijo4NzYsIlB8QlN8dXNkfDFtIjoyMi41LCJUfEJTfHVzZHwxeSI6MTgwLCJUfEJTfHVzZHwyeSI6NTc2LCJQfEJXfHVzZHwxbSI6MTcuNSwiUHxCWXx1c2R8MW0iOjQ1LCJQfEJafHVzZHwxbSI6MTAsIlB8Qlp8dXNkfDJ5IjoyMzAuNCwiUHxDQXxjYWR8MW0iOjU3LjQyLCJQfENBfGNhZHwxeSI6MTIwLjQyLCJQfENBfGNhZHwyeSI6MTc0LjI4LCJQfENBfGV1cnwxbSI6NjAsIlB8Q0F8dXNkfDFtIjo3Mi45MywiUHxDQXx1c2R8MXkiOjE2OS40MSwiUHxDQXx1c2R8MnkiOjE3NC42NiwiVHxDQXxjYWR8MW0iOjEzNi42NywiVHxDQXxjYWR8MXkiOjM1NC44NiwiVHxDQXxjYWR8MnkiOjQ3NS4yLCJUfENBfHVzZHwxbSI6MTIyLjczLCJUfENBfHVzZHwxeSI6MzYwLCJUfENBfHVzZHwyeSI6Mzg0LCJQfENEfHVzZHwxbSI6MjUuNzEsIlB8Q0R8dXNkfDF5Ijo3MiwiUHxDRHx1c2R8MnkiOjExNS4yLCJUfENEfHVzZHwxbSI6NTAsIlB8Q0d8dXNkfDFtIjo0NSwiUHxDR3x1c2R8MXkiOjcyLCJQfENIfGV1cnwxbSI6NTQuMTYsIlB8Q0h8ZXVyfDF5IjoxMTQuNzUsIlB8Q0h8ZXVyfDJ5IjoxMzQuNCwiVHxDSHxldXJ8MW0iOjEyNSwiVHxDSHxldXJ8MXkiOjMyNCwiVHxDSHxldXJ8MnkiOjM4NCwiUHxDSXxldXJ8MXkiOjcyLCJQfENJfHVzZHwxbSI6NTMuMSwiUHxDSXx1c2R8MXkiOjcyLCJQfENJfHVzZHwyeSI6MTE1LjIsIlR8Q0l8dXNkfDF5IjoxODAsIlB8Q0x8dXNkfDFtIjo1OS4yOSwiUHxDTHx1c2R8MXkiOjEwNi4yOSwiUHxDTHx1c2R8MnkiOjEzOC4yNCwiVHxDTHx1c2R8MW0iOjE0MS42NywiVHxDTHx1c2R8MXkiOjMwMCwiVHxDTHx1c2R8MnkiOjI4OCwiUHxDTXx1c2R8MW0iOjU0LCJQfENNfHVzZHwxeSI6NzIsIlB8Q018dXNkfDJ5IjoxMTUuMiwiVHxDTXx1c2R8MW0iOjUwLCJQfENOfHVzZHwxbSI6NjQuNzUsIlB8Q058dXNkfDF5Ijo3MiwiUHxDTnx1c2R8MnkiOjExNS4yLCJUfENOfHVzZHwyeSI6Mjg4LCJQfENPfGNvcHwxbSI6MTI2Nzc4Ljg1LCJQfENPfGNvcHwxeSI6MzI0MDAwLCJQfENPfGNvcHwyeSI6NTE4NDAwLCJQfENPfHVzZHwxbSI6MzguNTQsIlB8Q098dXNkfDF5IjoxNDQsIlB8Q098dXNkfDJ5IjoxMjgsIlR8Q098Y29wfDF5Ijo3OTIwMDAsIlR8Q098dXNkfDFtIjo4My4zMywiVHxDT3x1c2R8MXkiOjM2MCwiUHxDUnx1c2R8MW0iOjU1LjY1LCJQfENSfHVzZHwxeSI6MTQ0LCJQfENSfHVzZHwyeSI6MTQ0LCJQfENVfHVzZHwyeSI6MjMwLjQsIlB8Q1Z8dXNkfDFtIjoxNDAsIlB8Q1Z8dXNkfDJ5IjoxMTUuMiwiUHxDV3x1c2R8MW0iOjY1LCJQfENZfGV1cnwxbSI6MzkuMzMsIlB8Q1l8ZXVyfDF5Ijo5MCwiUHxDWXxldXJ8MnkiOjExNS4yLCJUfENZfGV1cnwyeSI6Mjg4LCJUfENZfHVzZHwxbSI6MjUsIlB8Q1p8ZXVyfDFtIjozOCwiUHxDWnxldXJ8MXkiOjkwLCJQfENafGV1cnwyeSI6MTE1LjIsIlR8Q1p8ZXVyfDFtIjoxMDguMzMsIlR8Q1p8ZXVyfDF5IjoxODAsIlR8Q1p8ZXVyfDJ5IjoyODgsIlB8REV8ZXVyfDFtIjozNy4zMSwiUHxERXxldXJ8MXkiOjg2LjcyLCJQfERFfGV1cnwyeSI6MTE5LjMxLCJUfERFfGV1cnwxbSI6MTA1LCJUfERFfGV1cnwxeSI6MjI1LCJUfERFfGV1cnwyeSI6MzcyLjcxLCJQfERKfHVzZHwxbSI6MTAsIlB8REp8dXNkfDF5IjoxNDQsIlR8REp8dXNkfDJ5IjoyODgsIlB8REt8ZXVyfDFtIjo1OC4zNywiUHxES3xldXJ8MXkiOjgwLjMxLCJQfERLfGV1cnwyeSI6MTIzLjQzLCJUfERLfGV1cnwxbSI6MTEwLCJUfERLfGV1cnwxeSI6MTgwLCJUfERLfGV1cnwyeSI6Mzg0LCJQfERNfHVzZHwxbSI6MTAsIlB8RE98dXNkfDFtIjo1My40NCwiUHxET3x1c2R8MXkiOjg0LCJQfERPfHVzZHwyeSI6MTM0LjQsIlR8RE98dXNkfDFtIjo0NTAsIlR8RE98dXNkfDF5Ijo3MjAsIlB8RFp8ZXVyfDFtIjoxOC43NSwiUHxEWnxldXJ8MnkiOjExNS4yLCJQfERafHVzZHwxbSI6NjAsIlR8RFp8ZXVyfDF5IjoxODAsIlB8RUN8dXNkfDFtIjo0MC40NCwiUHxFQ3x1c2R8MXkiOjEzMC45MSwiUHxFQ3x1c2R8MnkiOjEzOC4yNCwiVHxFQ3x1c2R8MW0iOjUwLCJUfEVDfHVzZHwxeSI6NDgwLCJUfEVDfHVzZHwyeSI6Mjg4LCJQfEVFfGV1cnwxbSI6MjcuNzgsIlB8RUV8ZXVyfDF5Ijo3MiwiUHxFRXxldXJ8MnkiOjE5MiwiVHxFRXxldXJ8MW0iOjc1LCJQfEVHfHVzZHwxbSI6MjcuNDEsIlB8RUd8dXNkfDF5Ijo3MiwiUHxFR3x1c2R8MnkiOjExNS4yLCJUfEVHfHVzZHwxbSI6MTEyLjUsIlR8RUd8dXNkfDF5IjozNjAsIlR8RUd8dXNkfDJ5IjoyODgsIlB8RVN8ZXVyfDFtIjo1OC4xNywiUHxFU3xldXJ8MXkiOjExOC4yMywiUHxFU3xldXJ8MnkiOjE0MC43NiwiUHxFU3x1c2R8MW0iOjEwMCwiVHxFU3xldXJ8MW0iOjE1OS4xNywiVHxFU3xldXJ8MXkiOjIzMi45NCwiVHxFU3xldXJ8MnkiOjM3MiwiVHxFU3x1c2R8MnkiOjM3NSwiUHxFVHx1c2R8MW0iOjIwLCJQfEZJfGV1cnwxbSI6MzUuMTUsIlB8Rkl8ZXVyfDF5Ijo5NS44NiwiUHxGSXxldXJ8MnkiOjExNS4yLCJUfEZJfGV1cnwxbSI6MjE2LjY3LCJUfEZJfGV1cnwxeSI6MTgwLCJUfEZJfGV1cnwyeSI6Mjg4LCJQfEZKfHVzZHwxbSI6MTYuNjcsIlB8Rkp8dXNkfDF5IjoxNDQsIlB8Rkt8dXNkfDFtIjo0MCwiUHxGT3x1c2R8MW0iOjEwMCwiVHxGT3x1c2R8MnkiOjg2NCwiUHxGUnxldXJ8MW0iOjYyLjc1LCJQfEZSfGV1cnwxeSI6MTIzLjAxLCJQfEZSfGV1cnwyeSI6MTM5Ljc3LCJQfEZSfHVzZHwxbSI6NTAsIlB8RlJ8dXNkfDF5Ijo3MiwiVHxGUnxicmx8MXkiOjE4MCwiVHxGUnxldXJ8MW0iOjE2OS41NCwiVHxGUnxldXJ8MXkiOjM0Ni41LCJUfEZSfGV1cnwyeSI6MzgzLjQ3LCJUfEZSfHVzZHwyeSI6NDQ0LCJQfEdBfHVzZHwxbSI6MzAsIlB8R0J8YXVkfD
1FtIjoxNywiUHxHQnxhdWR8MnkiOjcyLCJQfEdCfGV1cnwxbSI6NjguMzQsIlB8R0J8ZXVyfDF5IjoxNTcuMDksIlB8R0J8ZXVyfDJ5IjoxNjguMzcsIlB8R0J8Z2JwfDFtIjo0Mi4yNCwiUHxHQnxnYnB8MXkiOjgxLjM4LCJQfEdCfGdicHwyeSI6MTE1LjQ2LCJQfEdCfHVzZHwxbSI6MzQuNzEsIlB8R0J8dXNkfDF5IjoxNDQsIlB8R0J8dXNkfDJ5IjoxMTUuMiwiVHxHQnxldXJ8MW0iOjMyMC44MywiVHxHQnxldXJ8MXkiOjQ4MCwiVHxHQnxldXJ8MnkiOjI4OCwiVHxHQnxnYnB8MW0iOjE0MS43NSwiVHxHQnxnYnB8MXkiOjI1Ni43NSwiVHxHQnxnYnB8MnkiOjM3NC40LCJQfEdEfHVzZHwxbSI6MjAsIlB8R0R8dXNkfDF5Ijo3MiwiUHxHRXx1c2R8MW0iOjM4LjU3LCJQfEdFfHVzZHwxeSI6ODQsIlB8R0Z8ZXVyfDFtIjozMi4xNywiUHxHRnxldXJ8MXkiOjcyLCJQfEdGfGV1cnwyeSI6MTE1LjIsIlB8R0Z8dXNkfDFtIjo5MC44MywiUHxHRnx1c2R8MXkiOjE2OCwiUHxHRnx1c2R8MnkiOjE1My42LCJUfEdGfGV1cnwxbSI6MjAwLCJUfEdGfGV1cnwxeSI6MTgwLCJQfEdHfHVzZHwxbSI6MTE1LCJQfEdIfHVzZHwxbSI6MjMuNzUsIlB8R0h8dXNkfDJ5IjoxMTUuMiwiUHxHSXx1c2R8MW0iOjEyMCwiUHxHTHx1c2R8MW0iOjk1LCJQfEdOfHVzZHwxbSI6MjEuMjUsIlB8R058dXNkfDF5IjoxNDQsIlB8R1B8ZXVyfDFtIjo1Ni44OCwiUHxHUHxldXJ8MXkiOjEwOCwiUHxHUHxldXJ8MnkiOjEyNi43MiwiVHxHUHxldXJ8MW0iOjkxLjY3LCJUfEdQfGV1cnwxeSI6NTQwLCJQfEdSfGV1cnwxbSI6NDUuMDcsIlB8R1J8ZXVyfDF5Ijo5Ni41OSwiUHxHUnxldXJ8MnkiOjEyNC4wNiwiVHxHUnxldXJ8MW0iOjM3LjUsIlR8R1J8ZXVyfDF5IjozNjAsIlR8R1J8ZXVyfDJ5IjoyODgsIlB8R1R8dXNkfDFtIjo0MSwiUHxHVHx1c2R8MXkiOjcyLCJQfEdUfHVzZHwyeSI6MTM4LjI0LCJUfEdUfHVzZHwyeSI6Mjg4LCJQfEdVfHVzZHwxbSI6MTAsIlB8R1l8dXNkfDFtIjoxNDAsIlB8SEt8dXNkfDFtIjo0Ny44NiwiUHxIS3x1c2R8MXkiOjk2LCJQfEhLfHVzZHwyeSI6MTE1LjIsIlR8SEt8dXNkfDF5IjoxODAsIlB8SE58dXNkfDFtIjozNSwiUHxITnx1c2R8MnkiOjExNS4yLCJUfEhOfHVzZHwyeSI6NTc2LCJQfEhSfGV1cnwxbSI6NDcuNiwiUHxIUnxldXJ8MXkiOjg0LCJQfEhSfGV1cnwyeSI6MjMwLjQsIlR8SFJ8ZXVyfDF5IjoxODAsIlR8SFJ8ZXVyfDJ5IjoyODgsIlB8SFR8dXNkfDFtIjo0MCwiUHxIVXxldXJ8MW0iOjU1LjYsIlB8SFV8ZXVyfDF5IjoxMDgsIlB8SFV8ZXVyfDJ5IjoxMTUuMiwiVHxIVXxldXJ8MXkiOjE4MCwiUHxJRHx1c2R8MW0iOjMwLjQ4LCJQfElEfHVzZHwxeSI6MTAwLjgsIlB8SUR8dXNkfDJ5IjoxMTUuMiwiVHxJRHx1c2R8MW0iOjEwMCwiUHxJRXxldXJ8MW0iOjQ5LjA2LCJQfElFfGV1cnwxeSI6OTguMTgsIlB8SUV8ZXVyfDJ5IjoxMjgsIlR8SUV8ZXVyfDFtIjoxMjUsIlR8SUV8ZXVyfDF5IjoxODAsIlR8SUV8ZXVyfDJ5IjoyODgsIlB8SUx8dXNkfDFtIjo1NC43MSwiUHxJTHx1c2R8MXkiOjgxLjM5LCJQfElMfHVzZHwyeSI6MTIzLjQzLCJUfElMfHVzZHwxbSI6OTEuNjcsIlR8SUx8dXNkfDJ5IjoyODgsIlB8SU18dXNkfDFtIjoyNSwiUHxJTnxpbnJ8MW0iOjI0MTAuNjEsIlB8SU58aW5yfDF5Ijo3MTI0LjY1LCJQfElOfGlucnwyeSI6MTA1ODcuNDMsIlB8SU58dXNkfDFtIjo1MC41LCJQfElOfHVzZHwxeSI6MTUzLCJQfElOfHVzZHwyeSI6MTM4LjI0LCJUfElOfGlucnwxbSI6NjAzNy41LCJUfElOfGlucnwxeSI6MzQ1NjAsIlR8SU58aW5yfDJ5IjoyNzY0OCwiVHxJTnx1c2R8MW0iOjUzNy41LCJUfElOfHVzZHwxeSI6MTgwLCJUfElOfHVzZHwyeSI6Mjg4LCJQfElRfHVzZHwxbSI6MjMuMzMsIlB8SVF8dXNkfDF5Ijo3MiwiUHxJUXx1c2R8MnkiOjExNS4yLCJQfElTfGV1cnwxbSI6MzMsIlB8SVN8ZXVyfDF5Ijo3MiwiUHxJU3xldXJ8MnkiOjExNS4yLCJQfElTfHVzZHwxbSI6NDUsIlB8SVN8dXNkfDJ5IjoxMTUuMiwiVHxJU3xldXJ8MW0iOjIyNSwiUHxJVHxldXJ8MW0iOjQzLjk0LCJQfElUfGV1cnwxeSI6MTA4Ljg2LCJQfElUfGV1cnwyeSI6MTI2LjIsIlR8SVR8ZXVyfDFtIjo4NC4wOSwiVHxJVHxldXJ8MXkiOjI3NS4yOSwiVHxJVHxldXJ8MnkiOjM2Ni41NSwiUHxKRXx1c2R8MW0iOjQwLCJQfEpFfHVzZHwyeSI6MTE1LjIsIlB8Sk18dXNkfDFtIjo0MCwiUHxKTXx1c2R8MnkiOjExNS4yLCJUfEpNfHVzZHwxbSI6MjI1LCJQfEpPfHVzZHwxbSI6MzEuODIsIlB8Sk98dXNkfDF5Ijo3MiwiUHxKT3x1c2R8MnkiOjExNS4yLCJQfEpQfHVzZHwxbSI6NDguNzIsIlB8SlB8dXNkfDF5Ijo5MCwiUHxKUHx1c2R8MnkiOjEzNC40LCJUfEpQfHVzZHwxbSI6NzUsIlR8SlB8dXNkfDF5IjoxODAsIlB8S0V8dXNkfDFtIjozMS42NywiUHxLRXx1c2R8MXkiOjcyLCJQfEtFfHVzZHwyeSI6MTE1LjIsIlB8S0d8dXNkfDFtIjo3MCwiUHxLSHx1c2R8MW0iOjQ3LjUsIlR8S0h8dXNkfDFtIjo4NzUsIlB8S1J8dXNkfDFtIjo1MS42NywiUHxLUnx1c2R8MXkiOjIxNiwiUHxLUnx1c2R8MnkiOjExNS4yLCJUfEtSfHVzZHwyeSI6NTc2LCJQfEtXfHVzZHwxbSI6NDYuNzYsIlB8S1d8dXNkfDF5IjoxMjAsIlB8S1d8dXNkfDJ5IjoxMTUuMiwiUHxLWXx1c2R8MW0iOjE1LCJUfEtZfHVzZHwxeSI6MzYwLCJQfEtafHVzZHwxbSI6MTEuMjUsIlB8TEJ8dXNkfDFtIjozMy44OSwiUHxMQnx1c2R8MnkiOjExNS4yLCJUfExCfHVzZHwxbSI6MTUwLCJUfExCfHVzZHwxeSI6MTgwLCJQfExDfHVzZHwxbSI6NDAsIlB8TEt8dXNkfDFtIjozNiwiUHxMS3x1c2R8MXkiOjcyLCJUfExLfHVzZHwxbSI6MjUsIlB8TFJ8dXNkfDFtIjoyMCwiUHxMU3x1c2R8MW0iOjIwLCJQfExUfGV1cnwxbSI6NDIuMDUsIlB8TFR8ZXVyfDF5Ijo3MiwiUHxMVHxldXJ8MnkiOjE0NCwiVHxMVHxldXJ8MXkiOjE4MCwiUHxMVXxldXJ8MW0iOjU1LjEzLCJQfExVfGV1cnwxeSI6MTEyLCJQfExVfGV1cnwyeSI6MTM2LjgsIlR8TFV8ZXVyfDFtIjo1MCwiVHxMVXxldXJ8MXkiOjE4MCwiVHxMVXxldXJ8MnkiOjI4OCwiUHxMVnxldXJ8MW0iOjQ1LjcxLCJQfExWfGV1cnwyeSI6MTkyLCJUfExWfGV1cnwxeSI6MTgwLCJQfExZfHVzZHwxbSI6OTAsIlB8TUF8ZXVyfDFtIjoyNC4xNCwiUHxNQXxldXJ8MXkiOjg2LjQsIlB8TUF8ZXVyfDJ5IjoxMTUuMiwiUHxNQXx1c2R8MW0iOjYwLjgsIlB8TUF8dXNkfDF5IjoxNDQsIlB8TUF8dXNkfDJ5IjoxMTUuMiwiVHxNQXxldXJ8MXkiOjE4MCwiVHxNQXx1c2R8MW0iOjI1LCJQfE1DfGV1cnwxbSI6NzMuNzUsIlB8TUN8ZXVyfDF5IjoxMjkuNiwiUHxNQ3xldXJ8MnkiOjExNS4yLCJUfE1DfGV1cnwxeSI6MzYwLCJQfE1EfHVzZHwxbSI6NzguNTcsIlB8TUR8dXNkfDF5Ijo3MiwiUHxNRXxldXJ8MW0iOjQzLjc1LCJQfE1FfHVzZHwxbSI6MjUsIlB8TUZ8ZXVyfDFtIjo1MCwiUHxNR3x1c2R8MW0iOjY2LCJQfE1HfHVzZHwxeSI6MTQ0LCJQfE1LfHVzZHwxbSI6MzQuMjksIlB8TUt8dXNkfDF5Ijo3MiwiUHxNS3x1c2R8MnkiOjExNS4yLCJQfE1MfHVzZHwxbSI6MjAsIlB8TUx8dXNkfDJ5IjoxMTUuMiwiUHxNTXx1c2R8MW0iOjExMCwiUHxNTnx1c2R8MW0iOjI5LjA5LCJQfE1PfHVzZHwxbSI6MTMwLCJQfE1RfGV1cnwxbSI6NzAuNTksIlB8TVF8ZXVyfDF5Ijo5OS42OSwiUHxNUXxldXJ8MnkiOjEzNC40LCJUfE1RfGV1cnwxeSI6MzYwLCJQfE1SfHVzZHwxbSI6MTAsIlB8TVR8ZXVyfDFtIjo0My4xNiwiUHxNVHxldXJ8MXkiOjcyLCJQfE1UfGV1cnwyeSI6MTE1LjIsIlR8TVR8ZXVyfDF5IjozNjAsIlB8TVV8dXNkfDFtIjoyNi42NywiUHxNVXx1c2R8MXkiOjE0NCwiUHxNVnx1c2R8MW0iOjIyLjUsIlB8TVZ8dXNkfDJ5IjoyMzAuNCwiUHxNV3x1c2R8MW0iOjIwLCJQfE1YfGV1cnwxbSI6NDAsIlB8TVh8bXhufDFtIjo3MTMuMzksIlB8TVh8bXhufDF5IjoxNTY4Ljk2LCJQfE1YfG14bnwyeSI6MjMwNCwiUHxNWHx1c2R8MW0iOjY2LjQ4LCJQfE1YfHVzZHwxeSI6MTU0LjI5LCJQfE1YfHVzZHwyeSI6MTUwLjI2LCJUfE1YfG14bnwxbSI6MTUwMCwiVHxNWHxteG58MXkiOjY0ODAsIlR8TVh8bXhufDJ5Ijo4MDY0LCJUfE1YfHVzZHwxbSI6MjA2LjI1LCJUfE1YfHVzZHwyeSI6Mjg4LCJQfE1ZfHVzZHwxbSI6MjEuNTgsIlB8TVl8dXNkfD
1F5IjoxMDgsIlB8TVl8dXNkfDJ5IjoxMTUuMiwiUHxNWnx1c2R8MW0iOjQ1LCJQfE1afHVzZHwxeSI6NzIsIlB8TkF8dXNkfDFtIjoyNy4xNCwiUHxOQXx1c2R8MXkiOjcyLCJQfE5BfHVzZHwyeSI6MTE1LjIsIlR8TkF8dXNkfDFtIjoxMjUsIlB8TkN8dXNkfDFtIjo2OC41LCJQfE5DfHVzZHwxeSI6MTU4LjQsIlB8TkN8dXNkfDJ5IjoxMTUuMiwiVHxOQ3x1c2R8MXkiOjM2MCwiUHxORXx1c2R8MW0iOjEwLCJQfE5HfHVzZHwxbSI6MTUuODMsIlB8Tkd8dXNkfDF5IjoxMDgsIlB8Tkd8dXNkfDJ5IjoxMTUuMiwiUHxOSXx1c2R8MW0iOjMwLCJUfE5JfHVzZHwxbSI6MjUsIlR8Tkl8dXNkfDF5IjoxODAsIlB8Tkx8ZXVyfDFtIjo0Ny4zNiwiUHxOTHxldXJ8MXkiOjgyLjkyLCJQfE5MfGV1cnwyeSI6MTIwLjIyLCJUfE5MfGV1cnwxbSI6MTk0Ljc5LCJUfE5MfGV1cnwxeSI6MjE3Ljg5LCJUfE5MfGV1cnwyeSI6Mzg3LjY5LCJQfE5PfGV1cnwxbSI6NzUsIlB8Tk98bm9rfDFtIjo0MDYuNDUsIlB8Tk98bm9rfDF5Ijo4NjQsIlB8Tk98bm9rfDJ5IjoxMzgyLCJQfE5PfHVzZHwxbSI6NTYuNjcsIlB8Tk98dXNkfDJ5IjoyMDEuNiwiVHxOT3xub2t8MXkiOjIxNjAsIlR8Tk98bm9rfDJ5IjozNDU2LCJQfE5QfHVzZHwxbSI6MzAsIlB8Tlp8dXNkfDFtIjo2MC44OCwiUHxOWnx1c2R8MXkiOjExNS4yLCJQfE5afHVzZHwyeSI6MTE1LjIsIlR8Tlp8dXNkfDFtIjoxMDYuMjUsIlR8Tlp8dXNkfDF5Ijo1NDAsIlR8Tlp8dXNkfDJ5IjoyODgsIlB8T018dXNkfDFtIjo2My4zMywiUHxPTXx1c2R8MXkiOjcyLCJQfE9NfHVzZHwyeSI6MTE1LjIsIlB8UEF8dXNkfDFtIjo2MS41MywiUHxQQXx1c2R8MXkiOjgyLjI5LCJQfFBBfHVzZHwyeSI6MTE1LjIsIlR8UEF8dXNkfDF5IjoxODAsIlB8UEV8ZXVyfDFtIjo2MCwiUHxQRXxwZW58MW0iOjE0My44MiwiUHxQRXxwZW58MXkiOjI4OCwiUHxQRXxwZW58MnkiOjQ2MC44LCJQfFBFfHVzZHwxbSI6NjYuOTQsIlB8UEV8dXNkfDF5IjoxNDQsIlB8UEV8dXNkfDJ5IjoxNDQsIlR8UEV8cGVufDF5Ijo3MjAsIlR8UEV8cGVufDJ5IjoxMTUyLCJUfFBFfHVzZHwxbSI6MjM3LjUsIlR8UEV8dXNkfDJ5IjoyODgsIlB8UEZ8dXNkfDFtIjo2Ni41NCwiUHxQRnx1c2R8MXkiOjEwOCwiUHxQRnx1c2R8MnkiOjEzNC40LCJUfFBGfHVzZHwxbSI6NzUsIlB8UEh8dXNkfDFtIjoxNS4yNCwiUHxQSHx1c2R8MXkiOjcyLCJQfFBIfHVzZHwyeSI6MTcyLjgsIlR8UEh8dXNkfDFtIjoyNSwiVHxQSHx1c2R8MXkiOjE4MCwiUHxQS3x1c2R8MW0iOjM3LjI3LCJQfFBLfHVzZHwxeSI6NzIsIlB8UEt8dXNkfDJ5IjoxMTUuMiwiVHxQS3x1c2R8MW0iOjI1LCJUfFBLfHVzZHwxeSI6MTgwLCJQfFBMfGV1cnwxbSI6NDQuMiwiUHxQTHxldXJ8MXkiOjEwMy4zLCJQfFBMfGV1cnwyeSI6MTI1LjkyLCJUfFBMfGV1cnwxbSI6MTA2LjI1LCJUfFBMfGV1cnwxeSI6MzYwLCJUfFBMfGV1cnwyeSI6MzQ1LjYsIlB8UFJ8dXNkfDFtIjo0MS45LCJQfFBSfHVzZHwxeSI6MTE1LjIsIlB8UFJ8dXNkfDJ5IjoxMTUuMiwiVHxQUnx1c2R8MW0iOjEwMCwiVHxQUnx1c2R8MXkiOjM2MCwiUHxQU3x1c2R8MW0iOjIzLjMzLCJQfFBUfGV1cnwxbSI6NDIuMTcsIlB8UFR8ZXVyfDF5IjoxMDgsIlB8UFR8ZXVyfDJ5IjoxMjguNzUsIlR8UFR8ZXVyfDFtIjoyMzAsIlR8UFR8ZXVyfDF5IjoxODAsIlR8UFR8ZXVyfDJ5IjoyODgsIlB8UFl8dXNkfDFtIjo0Ni42NywiUHxQWXx1c2R8MXkiOjE0NCwiUHxQWXx1c2R8MnkiOjEzOC4yNCwiVHxQWXx1c2R8MnkiOjI4OCwiUHxRQXx1c2R8MW0iOjM5LjAzLCJQfFFBfHVzZHwxeSI6NzIsIlB8UUF8dXNkfDJ5IjoxNTMuNiwiUHxSRXxldXJ8MW0iOjc0LjMsIlB8UkV8ZXVyfDF5IjoxMjEuMjYsIlB8UkV8ZXVyfDJ5IjoxNTUuMjcsIlR8UkV8ZXVyfDFtIjo0NTAsIlR8UkV8ZXVyfDF5IjozNjAsIlR8UkV8ZXVyfDJ5Ijo1NzYsIlB8Uk98ZXVyfDFtIjozNS4zMywiUHxST3xldXJ8MXkiOjEwNC43MywiUHxST3xldXJ8MnkiOjEyNi43MiwiVHxST3xldXJ8MW0iOjE2Mi41LCJUfFJPfGV1cnwxeSI6MTgwLCJUfFJPfGV1cnwyeSI6Mjg4LCJQfFJTfGV1cnwxbSI6MjYuNjcsIlB8UlN8ZXVyfDF5Ijo3MiwiUHxSU3xldXJ8MnkiOjExNS4yLCJQfFJTfHVzZHwxbSI6NjMuMzMsIlB8UlN8dXNkfDF5Ijo3MiwiUHxSU3x1c2R8MnkiOjExNS4yLCJUfFJTfGV1cnwxbSI6MjUsIlR8UlN8ZXVyfDJ5IjozNjAsIlR8UlN8dXNkfDFtIjoyNSwiUHxSV3x1c2R8MW0iOjUyLCJQfFJXfHVzZHwyeSI6MTE1LjIsIlB8U0F8dXNkfDFtIjozMy4xOSwiUHxTQXx1c2R8MXkiOjcyLCJQfFNBfHVzZHwyeSI6MTE1LjIsIlR8U0F8dXNkfDFtIjo3NSwiVHxTQXx1c2R8MnkiOjI4OCwiUHxTQ3x1c2R8MW0iOjQwLCJQfFNDfHVzZHwxeSI6NzIsIlB8U0R8dXNkfDFtIjoyMCwiUHxTRXxldXJ8MW0iOjUxLjgxLCJQfFNFfGV1cnwxeSI6MTA4LCJQfFNFfGV1cnwyeSI6MTM5LjQ1LCJUfFNFfGV1cnwxbSI6MjY1LCJUfFNFfGV1cnwxeSI6MjA1LjcxLCJUfFNFfGV1cnwyeSI6MzI5LjE0LCJQfFNHfHVzZHwxbSI6NDguMzcsIlB8U0d8dXNkfDF5IjoxMjEuODUsIlB8U0d8dXNkfDJ5IjoxMjYuNzIsIlR8U0d8dXNkfDFtIjo5NTAsIlB8U0l8ZXVyfDFtIjo0Mi41OCwiUHxTSXxldXJ8MXkiOjEwNCwiUHxTSXxldXJ8MnkiOjExNS4yLCJUfFNJfGV1cnwxbSI6MjUsIlR8U0l8ZXVyfDF5IjoxODAsIlB8U0t8ZXVyfDFtIjo0NCwiUHxTS3xldXJ8MXkiOjcyLCJQfFNLfGV1cnwyeSI6MTE1LjIsIlR8U0t8ZXVyfDFtIjoyNSwiUHxTTXx1c2R8MW0iOjIwLCJQfFNNfHVzZHwxeSI6NzIsIlB8U058dXNkfDFtIjozNy4zNywiUHxTTnx1c2R8MXkiOjE4MCwiUHxTTnx1c2R8MnkiOjExNS4yLCJQfFNPfHVzZHwxbSI6MTAsIlB8U1J8dXNkfDFtIjoxNSwiUHxTUnx1c2R8MnkiOjExNS4yLCJQfFNWfHVzZHwxbSI6NTkuMzMsIlB8U1Z8dXNkfDF5IjoxMDgsIlB8U1Z8dXNkfDJ5IjoxMTUuMiwiUHxTWHx1c2R8MW0iOjI2LCJQfFNafHVzZHwxbSI6NTAsIlB8VER8dXNkfDFtIjoyMCwiUHxUR3x1c2R8MW0iOjEzLjc1LCJQfFRIfHVzZHwxbSI6NDguOTMsIlB8VEh8dXNkfDF5IjoxMDgsIlB8VEh8dXNkfDJ5IjoxMTUuMiwiUHxUSnx1c2R8MW0iOjIwLCJQfFRMfHVzZHwxbSI6NTAsIlB8VE58ZXVyfDFtIjoxNSwiUHxUTnx1c2R8MW0iOjQzLjMzLCJQfFROfHVzZHwxeSI6NzIsIlB8VE58dXNkfDJ5IjoxMTUuMiwiVHxUTnx1c2R8MnkiOjU3NiwiUHxUUnx0cnl8MW0iOjEyNzkuMDgsIlB8VFJ8dHJ5fDF5IjoyNzQ5LjA5LCJQfFRSfHRyeXwyeSI6NDAzMiwiUHxUUnx1c2R8MW0iOjM2LjEzLCJQfFRSfHVzZHwxeSI6MTE1LjIsIlB8VFJ8dXNkfDJ5IjoxODQuMzIsIlR8VFJ8dHJ5fDFtIjoxMzUwLCJUfFRSfHRyeXwxeSI6NzQ0MCwiVHxUUnx0cnl8MnkiOjE1NTUyLCJQfFRUfHVzZHwxbSI6MzYsIlB8VFd8dXNkfDFtIjoyMCwiUHxUV3x1c2R8MXkiOjEwOCwiU
1HxUV3x1c2R8MnkiOjExNS4yLCJQfFRafHVzZHwxbSI6NjAsIlB8VFp8dXNkfDF5Ijo3MiwiUHxVQXxldXJ8MW0iOjMwLCJQfFVBfGV1cnwxeSI6NzIsIlB8VUF8dXNkfDFtIjozNSwiVHxVQXx1c2R8MW0iOjI1LCJQfFVHfHVzZHwxbSI6MzAuNTksIlB8VUd8dXNkfDF5Ijo3MiwiVHxVR3x1c2R8MW0iOjc1LCJQfFVTfGJybHwxbSI6MjAwLCJQfFVTfGV1cnwxbSI6NzMuMzMsIlB8VVN8ZXVyfDF5IjoxNDQsIlB8VVN8ZXVyfDJ5IjoxMTUuMiwiUHxVU3xteG58MnkiOjIzMDQsIlB8VVN8dXNkfDFtIjo1My43MiwiUHxVU3x1c2R8MXkiOjEwMy4xMiwiUHxVU3x1c2R8MnkiOjEyOC41NCwiVHxVU3x1c2R8MW0iOjEyNy45NSwiVHxVU3x1c2R8MXkiOjI1Mi45NywiVHxVU3x1c2R8MnkiOjMzNi43NCwiUHxVWXx1c2R8MW0iOjUyLjM5LCJQfFVZfHVzZHwxeSI6MTI2LCJQfFVZfHVzZHwyeSI6MTE1LjIsIlR8VVl8dXNkfDFtIjoxMjUsIlB8VVp8dXNkfDFtIjoyMCwiUHxWQ3x1c2R8MW0iOjExMCwiUHxWRXx1c2R8MW0iOjMwLCJQfFZFfHVzZHwyeSI6MTE1LjIsIlR8VkV8dXNkfDFtIjozNTAsIlB8Vk58dXNkfDFtIjo3NC4yOSwiUHxWTnx1c2R8MXkiOjcyLCJQfFZOfHVzZHwyeSI6MTE1LjIsIlR8Vk58dXNkfDFtIjoyMjUsIlB8VlV8dXNkfDFtIjozMCwiUHxXRnx1c2R8MW0iOjYwLCJQfFdTfHVzZHwxbSI6MTAsIlB8WUV8dXNkfDFtIjoxNSwiUHxZVHxldXJ8MW0iOjEyMiwiUHxZVHxldXJ8MXkiOjEwOCwiUHxZVHxldXJ8MnkiOjExNS4yLCJQfFpBfHVzZHwxbSI6ODguMDYsIlB8WkF8dXNkfDF5IjoxNTMsIlB8WkF8dXNkfDJ5IjoxNTIuMDYsIlB8WkF8emFyfDFtIjo3NzAuMzIsIlB8WkF8emFyfDF5IjoxNDQwLCJQfFpBfHphcnwyeSI6MjMwNCwiVHxaQXx1c2R8MW0iOjM3LjUsIlR8WkF8dXNkfDF5IjozMDAsIlR8WkF8dXNkfDJ5Ijo0MzIsIlR8WkF8emFyfDFtIjoyNTAwLCJUfFpBfHphcnwxeSI6MzYwMCwiVHxaQXx6YXJ8MnkiOjY1ODIuODYsIlB8Wk18dXNkfDFtIjoyMi41LCJUfFpNfHVzZHwxbSI6NTAsIlB8Wld8dXNkfDFtIjoxMH0=")),Zt={"Smash Pro":"P","Smash Team":"T"},Yt={"1months":"1m","1years":"1y","2years":"2y"};function qt(D,me,re,G){var S,y,k;const h=`${null!==(S=Zt[D])&&void 0!==S?S:D}|${me}|${re}|${null!==(y=Yt[G])&&void 0!==y?y:G}`;return null!==(k=Qt[h])&&void 0!==k?k:null}var xt=r(55990),Vt=r(34007),_t=r(7751),We=r(44621),pt=r(29751),Je=r(40957),zt=r(96321),rt=r(19899),eo=r(78544);let et=(()=>{var D;class me{constructor(G,S,y,k){this.actions$=G,this.store$=S,this.paymentStripeService=y,this.gtmService=k,this.processPayment$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.processPayment),(0,te.Z)(h=>(0,v.of)(h).pipe((0,b.E)(this.store$.select(c.Nx)))),(0,B.n)(([h,x])=>{switch(x){case I.h.paymentType.CARD:return[Ue.processStripePayment()];case I.h.paymentType.PAYPAL:return[Ue.processPaypalPayment()]}}))),this.processStripePayment$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.processStripePayment),(0,te.Z)(h=>(0,v.of)(h).pipe((0,b.E)(this.store$.select(c.e9)))),(0,B.n)(([h,x])=>{const L=new xt.i;return(0,C.H)(L.initiateStripePayment()).pipe((0,te.Z)(O=>{const{paymentIntent:Z}=O;return this.paymentStripeService.stripeHandleCardPayment({secret:Z.clientSecret,token:x.id}).then(M=>{if(M.error)return Ue.processStripePaymentFailure({error:M.error});{const{paymentIntent:F}=M;return Ue.processStripePaymentCheck({paymentIntent:F.id})}})}),(0,P.W)(O=>(0,v.of)(Ue.processStripePaymentFailure({error:O.message}))))}),(0,P.W)(h=>(0,v.of)(Ue.processStripePaymentFailure({error:h.message}))))),this.processStripePaymentCheck$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.processStripePaymentCheck),(0,z.H)(h=>{const x=new xt.i;return(0,g.v)(()=>x.getSubscription()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Je.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Je.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Je.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({subscription:L})=>(0,g.v)(()=>x.getInformations()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:We.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:We.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:We.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({informations:O})=>(0,g.v)(()=>x.listInvoices()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:rt.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:rt.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:rt.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({invoices:Z})=>{const U=0===Z.length;return(0,g.v)(()=>x.executeStripePayment({paymentIntentId:h.paymentIntent})).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:_t.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:_t.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:_t.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,te.Z)(({payment:M})=>M.status===I.h.paymentStatus.SUCCESS?[Ue.processStripePaymentSuccess({response:{payment:M,subscription:L,plan:L.plan,informations:O},payment_provider:"Stripe",isNewCustomer:U})]:[{type:"noop"}]),(0,P.W)(M=>(0,v.of)(Ue.processStripePaymentFailure({error:M.message}))))}))))))}),(0,P.W)(h=>(0,v.of)(Ue.processStripePaymentFailure({error:h.message}))))),this.processStripePaymentSuccess$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.processStripePaymentSuccess),(0,K.M)(()=>
1{this.store$.dispatch(Ue.processPaymentSuccess())})),{dispatch:!1}),this.pushSubscriptionGtmTag$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.processStripePaymentSuccess,Ue.processPaypalPaymentSuccess),(0,b.E)(this.store$.select(c.li),this.store$.select(c.U7),this.store$.select(c.Jd)),(0,K.M)(([h,x,L,O])=>{this.gtmService.pushTag({event:I.h.eventGTM.SUBSCRIPTION,payment_provider:h.payment_provider,billing_informations_city:x.city,billing_informations_zipCode:x.zipCode,billing_informations_company:x.company,billing_informations_address:x.address,billing_informations_lastName:x.lastName,billing_informations_firstName:x.firstName,billing_informations_countryCode:x.countryCode,plan_id:L.id,plan_name:L.name,plan_description:L.description,plan_currency:L.currency,plan_duration:L.duration,plan_price_excl_tax:L.priceExclTax,plan_price_incl_tax:L.priceInclTax,plan_max_active_user:L.maxActiveUser,ltv:qt(L.name,x.countryCode,L.currency,L.duration),is_new_customer:h.isNewCustomer,transaction_id:Math.random().toString(36).substring(2)+Date.now().toString(36),value:L.priceInclTax,currency:L.currency.toUpperCase(),email:O.username,username:O.username})})),{dispatch:!1}),this.processPaypalPayment$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.processPaypalPayment),(0,z.H)(h=>{const x=new xt.i;return(0,g.v)(()=>x.initiatePaypalPayment()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:zt.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:zt.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:zt.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,V.T)(({approvalUrl:L})=>Ue.paypalWaitUserAgreement({approvalUrl:L})),(0,P.W)(L=>(0,v.of)(Ue.processPaypalPaymentFailure({error:L.message}))))}))),this.executePaypal$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.executePaypal),(0,V.T)(h=>h.token),(0,z.H)(h=>{const x=new xt.i;return(0,g.v)(()=>x.getSubscription()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Je.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Je.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Je.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({subscription:L})=>(0,g.v)(()=>x.getInformations()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:We.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:We.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:We.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({informations:O})=>(0,g.v)(()=>x.listInvoices()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:rt.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:rt.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:rt.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({invoices:Z})=>{const U=0===Z.length;return(0,g.v)(()=>x.executePaypalPayment({token:h})).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Vt.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Vt.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Vt.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,te.Z)(({payment:M})=>M.status===I.h.paymentStatus.SUCCESS?[Ue.processPaypalPaymentSuccess({response:{payment:M,subscription:L,plan:L.plan,informations:O},payment_provider:"Paypal",isNewCustomer:U})]:[{type:"noop"}]),(0,P.W)(M=>(0,v.of)(Ue.processPaypalPaymentFailure({error:M.message}))))}))))))}),(0,P.W)(h=>(0,v.of)(Ue.processPaypalPaymentFailure({error:h.message}))))),this.cancelPaypal$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.cancelPaypal),(0,B.n)(()=>{const h=new xt.i;return(0,g.v)(()=>h.getSubscription()).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Je.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:Je.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Je.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({subscription:x})=>(0,g.v)(()=>h.getPlanGroup({planId:x.plan.id})).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:pt.Ay.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:pt.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:pt.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({group:L})=>{const O=(0,at.Yn)();return window.location.href=O+"/signup/plan/"+encodeURIComponent(L.id),[{type:"noop"}]}))))}
1))),this.resetPayment$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(Ue.resetSignupProcess),(0,V.T)(h=>Ue.resetSignupProcessSuccess())))}}return(D=me).\u0275fac=function(G){return new(G||D)(m.KVO(u.En),m.KVO(f.il),m.KVO(eo.R),m.KVO(Be.A))},D.\u0275prov=m.jDH({token:D,factory:D.\u0275fac}),me})();var Bt=r(63697),Ee=r(18743);let jt=(()=>{var D;class me{constructor(G){this.actions$=G,this.verifyCaptcha$=(0,u.EH)(()=>this.actions$.pipe((0,u.gp)(p.sN.VerifyCaptcha),(0,z.H)(({token:S,action:y})=>{const k=new Bt.B;return(0,g.v)(()=>k.verifyChallenge({token:S,action:y})).pipe((0,a.Y)({retryConfig:[...I.h.NetworkErrorsRetryConfiguration,{error:Ee.Ay.InternalServerError,maxRetry:0,exponentialBackoff:!0},{error:Ee.Ay.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:Ee.Ay.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,z.H)(({challenge:h})=>(0,v.of)(p.sN.VerifyCaptchaSuccess({result:h.status}))),(0,P.W)(h=>(0,v.of)(p.sN.VerifyCaptchaFailure({error:h.message}))))})))}}return(D=me).\u0275fac=function(G){return new(G||D)(m.KVO(u.En))},D.\u0275prov=m.jDH({token:D,factory:D.\u0275fac}),me})()},18924:(pe,N,r)=>{"use strict";r.d(N,{Y:()=>l});var o=r(94236),e=r(17796),c=r(84975),a=r(74671),u=r(60494),f=r(6663),i=r(97184),n=r(58527),E=r(84805);let l=(()=>{var v;class C{constructor(H,B){this.actions$=H,this.customizationService=B,this.loadManagedCustomization$=(0,o.EH)(()=>this.actions$.pipe((0,o.gp)(i.Ho.loadManagedCustomization),(0,c.n)(()=>this.customizationService.listManagedCustomizations().pipe((0,a.Z)(V=>{var P;return(null==V||null===(P=V.customizations)||void 0===P?void 0:P.length)>
10?this.customizationService.getManagedCustomization(V.customizations[0].id).pipe((0,a.Z)(b=>(0,e.of)(i.Ho.loadManagedCustomizationSuccess({customization:b.customization}))),(0,u.W)(b=>(0,e.of)(i.Ho.loadManagedCustomizationFailure({error:b.message})))):(0,e.of)(i.Ho.loadManagedCustomizationFailure({error:"No Managed Customization"}))}),(0,u.W)(V=>(0,e.of)(i.Ho.loadManagedCustomizationFailure({error:V.message}))))))),this.loadManagedBackgrounds$=(0,o.EH)(()=>this.actions$.pipe((0,o.gp)(i.Ho.loadManagedBackgrounds),(0,c.n)(()=>this.customizationService.listManagedBackgrounds().pipe((0,f.T)(V=>i.Ho.loadManagedBackgroundsSuccess({backgrounds:V.backgrounds})),(0,u.W)(V=>(0,e.of)(i.Ho.loadManagedBackgroundsFailure({error:V.message}))))))),this.loadManagedLogos$=(0,o.EH)(()=>this.actions$.pipe((0,o.gp)(i.Ho.loadManagedLogos),(0,c.n)(()=>this.customizationService.listManagedLogos().pipe((0,f.T)(V=>i.Ho.loadManagedLogosSuccess({logos:V.logos})),(0,u.W)(V=>(0,e.of)(i.Ho.loadManagedLogosFailure({error:V.message})))))))}}return(v=C).\u0275fac=function(H){return new(H||v)(n.KVO(o.En),n.KVO(E.V))},v.\u0275prov=n.jDH({token:v,factory:v.\u0275fac}),C})()},58100:(pe,N,r)=>{"use strict";r.d(N,{c:()=>V});var o=r(20154),e=r(94236),c=r(71100),a=r(17796),u=r(7738),f=r(84975),i=r(74671),n=r(6663),E=r(60494),l=r(72523),v=r(78374),C=r(10967),g=r(97184),H=r(58527),B=r(84805);let V=(()=>{var P;class b{constructor(te,W,z){this.actions$=te,this.customizationService=W,this.store$=z,this.loadTeamCustomization$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(g.dd.loadTeamCustomization),(0,u.E)(this.store$.pipe((0,c.Lt)(o.OO))),(0,f.n)(([$,I])=>I&&I.id?this.customizationService.listTeamCustomizations(I.id).pipe((0,i.Z)(p=>p&&p.customizations&&p.customizations.length?this.customizationService.getTeamCustomization(I.id,p.customizations[0].id).pipe((0,i.Z)(j=>j.customization.background&&j.customization.logo?(0,a.of)(g.dd.loadTeamCustomizationSuccess({customization:j.customization})):this.customizationService.listManagedCustomizations().pipe((0,i.Z)(ge=>{if(ge.customizations&&ge.customizations.length)return this.customizationService.getManagedCu
1stomization(ge.customizations[0].id).pipe((0,n.T)(d=>{const T=j.customization.logo?j.customization.logo:{...d.customization.logo,type:"SYSTEM"},m=j.customization.background?j.customization.background:{...d.customization.background,type:"SYSTEM"};return g.dd.loadTeamCustomizationSuccess({customization:{...j.customization,logo:T,background:m}})}),(0,E.W)(d=>(0,a.of)(g.dd.loadTeamCustomizationFailure({error:d.message}))))}),(0,E.W)(ge=>(0,a.of)(g.dd.loadTeamCustomizationFailure({error:ge.message}))))),(0,l.l)(j=>j.pipe((0,v.s)(3),(0,C.c)(2e3)))):(0,a.of)(g.Ho.loadManagedCustomization())),(0,E.W)(p=>(0,a.of)(g.dd.loadTeamCustomizationFailure({error:p.message})))):(0,a.of)(g.Ho.loadManagedCustomization())))),this.loadTeamBackgrounds$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(g.dd.loadTeamBackgrounds),(0,u.E)(this.store$.pipe((0,c.Lt)(o.OO))),(0,f.n)(([$,I])=>I&&I.id?this.customizationService.listTeamBackgrounds(I.id).pipe((0,i.Z)(p=>(0,a.of)(p.backgrounds.length?g.dd.loadTeamBackgroundsSuccess({backgrounds:p.backgrounds}):g.Ho.loadManagedBackgrounds())),(0,l.l)(p=>p.pipe((0,v.s)(3),(0,C.c)(2e3))),(0,E.W)(p=>(0,a.of)(g.dd.loadTeamBackgroundsFailure({error:p.message})))):(0,a.of)(g.Ho.loadManagedBackgrounds())))),this.loadTeamLogos$=(0,e.EH)(()=>this.actions$.pipe((0,e.gp)(g.dd.loadTeamLogos),(0,u.E)(this.store$.pipe((0,c.Lt)(o.OO))),(0,f.n)(([$,I])=>I&&I.id?this.customizationService.listTeamLogos(I.id).pipe((0,i.Z)(p=>(0,a.of)(p.logos.length?g.dd.loadTeamLogosSuccess({logos:p.logos}):g.Ho.loadManagedLogos())),(0,l.l)(p=>p.pipe((0,v.s)(3),(0,C.c)(2e3))),(0,E.W)(p=>(0,a.of)(g.dd.loadTeamLogosFailure({error:p.message})))):(0,a.of)(g.Ho.loadManagedLogos()))))}}return(P=b).\u0275fac=function(te){return new(te||P)(H.KVO(e.En),H.KVO(B.V),H.KVO(c.il))},P.\u0275prov=H.jDH({token:P,factory:P.\u0275fac}),b})()},581:(pe,N,r)=>{"use strict";r.d(N,{A:()=>e});var o=r(58527);let e=(()=>{var c;class a{constructor(f={id:null},i,n,E,l,v){if(this.config=f,this.googleTagManagerId=i,this.googleTagManagerAuth=n,this.googleTagManagerPreview=E,this.googleTagManagerResourcePath=l,this.googleTagManagerCSPNonce=v,this.isLoaded=!1,this.isLoading=!1,this.queue=[],this.browserGlobals={windowRef:()=>window,documentRef:()=>document},null==this.config&&(this.config={id:null}),this.config={...this.config,id:i||this.config.id,gtm_auth:n||this.config.gtm_auth,gtm_preview:E||this.config.gtm_preview,gtm_resource_path:l||this.config.gtm_resource_path},null==this.config.id)throw new Error("Google tag manager ID not provided.")}getDataLayer(){const f=this.browserGlobals.windowRef();return f.dataLayer=f.dataLayer||[],f.dataLayer}pushOnDataLayer(f){this.getDataLayer().push(f)}addGtmToDom(){return new Promise((f,i)=>{if(this.isLoaded)return f(this.isLoaded);if(this.isLoading)this.queue.push({resolve:f,reject:i});else{this.isLoading=!0;const n=this.browserGlobals.documentRef();this.pushOnDataLayer({"gtm.start":(new Date).getTime(),event:"gtm.js"});const E=n.createElement("script");E.id="GTMscript",E.async=!0,E.src=this.applyGtmQueryParams(this.config.gtm_resource_path?this.config.gtm_resource_path:"https://www.googletagmanager.com/gtm.js"),E.addEventListener("load",()=>{this.isLoading=!1,this.isLoaded=!0,f(this.isLoaded),this.queue.forEach(({resolve:l})=>{l(this.isLoaded)}),this.queue=[]}),E.addEventListener("error",()=>{this.isLoading=!1,this.isLoaded=!1,i(this.isLoaded),this.queue.forEach(({reject:l})=>{l(this.isLoaded)}),this.queue=[]}),this.googleTagManagerCSPNonce&&E.setAttribute("nonce",this.googleTagManagerCSPNonce),n.head.insertBefore(E,n.head.firstChild)}})}pushTag(f){return new Promise((i,n)=>{if(this.isLoaded)return this.pushOnDataLayer(f),i();this.addGtmToDom().then(()=>(this.pushOnDataLayer(f),i())).catch(()=>n())})}applyGtmQueryParams(f){return-1===f.indexOf("?")&&(f+="?"),f+Object.keys(this.config).filter(i=>this.config[i]).map(i=>`${i}=${this.config[i]}`).join("&")}}return(c=a).\u0275fac=function(f){return new(f||c)(o.KVO("googleTagManagerConfig",8),o.KVO("googleTagManagerId",8),o.KVO("googleTagManagerAuth",8),o.KVO("googleTagManagerPreview",8),o.KVO("googleTagManagerResourcePath",8),o.KVO("googleTagManagerCSPNonce",8))},c.\u0275prov=o.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),a})()},69351:(pe,N,r)=>{"use strict";r.d(N,{U:()=>C,r:()=>g});var o=r(58527),e=r(10785),c=r.n(e),a=r(85621),u=r(61142),f=r(65211);const C={identity:{key:"_sid",type:"system",expires:2628e6,scope:"shared"},lastActiveTeam:{key:"_stid",type:"system",expires:2628e6,scope:"shared"},cgu:{key:"_scgu",type:"system",expires:2628e6,scope:"shared"},userConsentSet:{key:"_sucs",type:"system",expires:157788e5,scope:"self"},fbPixelConsent:{key:"_sfbpc",type:"consent",group:"social",expires:157788e5,scope:"self",associatedCookies:[{type:"key",value:"__fb_chat_plugin"},{type:"key",value:"_js_datr"},{type:"key",value:"_fbc"},{type:"key",value:"xs"},{type:"key",value:"wd"},{type:"key",value:"fr"},{type:"key",value:"act"},{type:"key",value:"_fbp"},{type:"key",value:"datr"},{type:"key",value:"c_user"},{type:"key",value:"csm"},{type:"key",value:"sb"},{type:"key",value:"actppresence"},{type:"regex",value:"fbm(.+)"},{type:"regex",value:"(.+)_fbm_"}]},googleAdsConsent:{key:"_sgaac",type:"consent",group:"social",expires:157788e5,scope:"self",associatedCookies:[{type:"key",value:"google_pub_config"},{type:"key",value:"google_ama_config"},{type:"key",value:"google_ama_settings"},{type:"key",value:"google_adsense_settings"},{type:"key",value:"_gcl_au"}]},linkedinConsent:{key:"_slkic",type:"consent",group:"social",expires:157788e5,scope:"self",associatedCookies:[{type:"key",value:"sdsc"},{type:"key",value:"lms_ads"},{type:"key",value:"lms_analytics"},{type:"key",value:"_guid"},{type:"key",value:"_guid"},{type:"key",value:"li_alerts"},{type:"key",value:"li_gc"},{type:"key",value:"AnalyticsSyncHistory"},{type:"key",value:"bcookie"},{type:"key",value:"li-oatml"},{type:"key",value:"BizographicsOptOut"},{type:"key",value:"li_sugr"},{type:"key",value:"UserMatchHistory"},{type:"key",value:"linkedin_oauth_"},{type:"key",value:"lidc"},{type:"key",value:"bscookie"},{type:"key",value:"X-LI-IDC"}]},twitterConsent:{key:"_stc",type:"consent",group:"social",expires:157788e5,scope:"self",associatedCookies:[{type:"key",value:"local_storage_support_test"},{type:"key",value:"metrics_token"}]}
1,ga4Analytics:{key:"_sga4c",type:"consent",group:"analytics",expires:157788e5,scope:"self",associatedCookies:[{type:"key",value:"_ga"},{type:"regex",value:"_ga_(.+)"},{type:"regex",value:"_gac_UA-(.+)"},{type:"key",value:"utm_source"},{type:"key",value:"utm_campaign"},{type:"key",value:"__utmt"},{type:"key",value:"__utm.gif"},{type:"key",value:"__utmb"},{type:"regex",value:"_gat_(.+)"},{type:"regex",value:"_ga_(.+)"},{type:"key",value:"UTMD_"},{type:"key",value:"__utmv"},{type:"regex",value:"_gat_gtag_UA-(.+)"},{type:"regex",value:"_dc_gtm_UA-(.+)"},{type:"key",value:"lsid"},{type:"key",value:"_gat_single"},{type:"regex",value:"_gat_UA-(.+)"},{type:"regex",value:"(.+)_utm"},{type:"key",value:"_gat"},{type:"key",value:"_gid"},{type:"key",value:"_gaexp"},{type:"regex",value:"(.+)_gat_UA"},{type:"key",value:"_utmb"},{type:"key",value:"__utmc"},{type:"key",value:"__utmz"},{type:"key",value:"__utma"}]},onBoarding:{key:"_sob",type:"system",expires:157788e5,scope:"shared"},lang:{key:"_slang",type:"system",expires:157788e5,scope:"shared"},SSOLoginOrigin:{key:"_ssolo",type:"system",expires:157788e5,scope:"shared"},lastSelectedCampaign:{key:"_slsc",type:"system",expires:157788e5,scope:"shared"}};let g=(()=>{var H;class B{constructor(P,b){this.cookieService=P,this.platformId=b}getCookie(P){if(!this.cookieService.get(C[P].key))return null;try{return JSON.parse(decodeURIComponent(this.cookieService.get(C[P].key)))}catch{return null}}setCookie(P,b){if((0,u.UE)(this.platformId)){const K=C[P],te={path:"/",expires:K.expires?c()().add(K.expires,"ms").toDate():K.expires};"shared"===K.scope&&(te.domain=(0,a.c$)()),this.cookieService.set(K.key,JSON.stringify(b),te)}}acceptCookiesConsentGroup(P){Object.entries(C).forEach(([b,K])=>{C[b].group===P&&"consent"===C[b].type&&this.setCookie(b,!0)})}denyCookiesConsentGroup(P){Object.entries(C).forEach(([b])=>{C[b].group===P&&"consent"===C[b].type&&(this.setCookie(b,!1),C[b].associatedCookies&&C[b].associatedCookies.forEach(K=>{this.cookieService.delete(K,"/",(0,a.c$)(),!1,"Lax")}))})}getAllCookies(){return this.cookieService.getAll()}isCookieGroupEnabled(P){return Object.entries(C).filter(([K,te])=>te.group===P).every(([K,te])=>!0===this.getCookie(K))}removeCookie(P){return this.cookieService.delete(C[P].key,"/",(0,a.c$)(),!1,"Lax")}isCookieFromCloudFront(P){return null==P?void 0:P.startsWith("CloudFront")}isCookieSystem(P){const b=Object.entries(C).find(([K,te])=>te.key===P);return b&&"system"===b[1].type}removeAllCookiesExceptSystemAndCloufront(){const P=this.getAllCookies();Object.entries(P).forEach(([b])=>{!this.isCookieSystem(b)&&!this.isCookieFromCloudFront(b)&&this.cookieService.delete(b,"/",(0,a.c$)(),!1,"Lax")})}cookieExists(P){return this.cookieService.check(C[P].key)}getCookiesConsentConfiguration(){const P={groups:{}};return Object.entries(C).forEach(([b,K])=>{if(K.group){P.groups[K.group]||(P.groups[K.group]={enabled:!0});const te=this.getCookie(b);(!1===te||!te)&&(P.groups[K.group].enabled=!1)}}),P}cleanCookiesConsentGroupAssociatedCookies(P){const b=this.getAllCookies();Object.entries(C).forEach(([K,te])=>{C[K].group===P&&"consent"===C[K].type&&C[K].associatedCookies&&C[K].associatedCookies.forEach(({type:W,value:z})=>{if("key"===W&&b[z]&&this.cookieService.delete(z,"/",(0,a.c$)(),!1,"Lax"),"regex"===W){const $=new RegExp(z);Object.entries(b).forEach(([I])=>{$.test(I)&&this.cookieService.delete(I,"/",(0,a.c$)(),!1,"Lax")})}})})}}return(H=B).\u0275fac=function(P){return new(P||H)(o.KVO(f.O),o.KVO(o.Agw))},H.\u0275prov=o.jDH({token:H,factory:H.\u0275fac,providedIn:"root"}),B})()},84805:(pe,N,r)=>{"use strict";r.d(N,{V:()=>u});var o=r(94485),e=r(80489),c=r(17796),a=r(58527);let u=(()=>{var f;class i{constructor(E){this.http=E,this.headers=(new o.Lr).set("Authorization","true")}getTeamCustomization(E,l){return this.http.get("service:customization/team/"+E+"/customization/"+l,{headers:this.headers})}listTeamCustomizations(E){return this.http.get("service:customization/team/"+E+"/customizations",{headers:this.headers})}createTeamCustomization(E,l,v){return this.http.post("service:customization/team/"+E+"/customization",{name:l,description:v},{headers:this.headers})}
1listTeamBackgrounds(E){return this.http.get("service:customization/team/"+E+"/backgrounds",{headers:this.headers})}listTeamLogos(E){return this.http.get("service:customization/team/"+E+"/logos",{headers:this.headers})}addTeamBackground(E,l){return this.http.post("service:customization/team/"+l+"/background",{background:E},{headers:this.headers})}addTeamLogo(E,l){return this.http.post("service:customization/team/"+l+"/logo",{logo:E},{headers:this.headers})}deleteTeamBackground(E,l){return this.http.delete("service:customization/team/"+l+"/background/"+E,{headers:this.headers})}deleteTeamLogo(E,l){return this.http.delete("service:customization/team/"+l+"/logo/"+E,{headers:this.headers})}addTeamBackgrounds(E,l){const v=[];return E&&E.length?(E.forEach(C=>{v.push(this.addTeamBackground(C,l))}),(0,e.p)(v)):(0,c.of)([])}addTeamLogos(E,l){const v=[];return E&&E.length?(E.forEach(C=>{v.push(this.addTeamLogo(C,l))}),(0,e.p)(v)):(0,c.of)([])}deleteTeamBackgrounds(E,l){const v=[];return E&&E.length?(E.forEach(C=>{v.push(this.deleteTeamBackground(C,l))}),(0,e.p)(v)):(0,c.of)([])}deleteTeamLogos(E,l){const v=[];return E&&E.length?(E.forEach(C=>{v.push(this.deleteTeamLogo(C,l))}),(0,e.p)(v)):(0,c.of)([])}attachTeamCustomizationBackground(E,l,v){return this.http.put("service:customization/team/"+E+"/customization/"+l+"/background/"+v+"/attach",{},{headers:this.headers})}attachTeamCustomizationLogo(E,l,v){return this.http.put("service:customization/team/"+E+"/customization/"+l+"/logo/"+v+"/attach",{},{headers:this.headers})}getManagedCustomization(E){return this.http.get("service:customization/managedCustomization/"+E,{headers:this.headers})}listManagedBackgrounds(){return this.http.get("service:customization/managedBackgrounds",{headers:this.headers})}listManagedLogos(){return this.http.get("service:customization/managedLogos",{headers:this.headers})}listManagedCustomizations(){return this.http.get("service:customization/managedCustomizations",{headers:this.headers})}}return(f=i).\u0275fac=function(E){return new(E||f)(a.KVO(o.Qq))},f.\u0275prov=a.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),i})()},8460:(pe,N,r)=>{"use strict";r.d(N,{i:()=>a});var o=r(58527),e=r(61142),c=r(14292);let a=(()=>{var u;class f{constructor(n,E){this.req=n,this.platformId=E}detectDomain(){return(0,e.Vy)(this.platformId)?this.req.headers["x-forwarded-host"]:document.location.hostname}detectDomainUrl(){return(0,e.Vy)(this.platformId)?this.req.protocol+"://"+this.detectDomain()+this.req.baseUrl:document.location.href}detectDomainUrlWithoutProtocol(){return(0,e.Vy)(this.platformId)?this.detectDomain()+this.req.originalUrl:document.location.href.replace(/https?:\/\//i,"")}detectDomainUrlWithoutQueryString(){return(0,e.Vy)(this.platformId)?this.detectDomain()+this.req.originalUrl.split("?").shift():document.location.hostname+document.location.pathname}detectPath(){return(0,e.Vy)(this.platformId)?this.req.originalUrl:document.location.pathname}}return(u=f).\u0275fac=function(n){return new(n||u)(o.KVO(c.S,8),o.KVO(o.Agw))},u.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),f})()},1629:(pe,N,r)=>{"use strict";r.d(N,{L:()=>I});var o=r(94485),e=r(26544),c=r(80489),a=r(17796),u=r(72523),f=r(78374),i=r(10967),n=r(19847),E=r(6663),l=r(42562),v=r(74671),C=r(60494),g=r(1936),H=r(93718),B=r(55198),V=r(69711),P=r(58527),b=r(68633);const K="07-2020",te="07-2021",W="11-2023",z="100y",$="SCIM";let I=(()=>{var p;class j{constructor(d,T){this.http=d,this.tokenService=T,this.headers=(new o.Lr).set("Authorization","true")}createToken(d,T){return this.http.post("service:iam/token",{username:d,password:T})}createUserToken(d,T){return this.http.post("service:iam/user/"+d+"/token",T,{headers:this.headers})}renewToken(d){return this.http.put("service:iam/token",d)}createAccount(d={}){return this.http.post("service:iam/account",d)}getAccount(){return this.http.get("service:iam/account",{headers:this.headers})}updateAccount(d={}){return this.http.put("service:iam/account",d,{headers:this.headers})}updatePassword(d){return this.http.put("service:iam/password/update?version="+te,d,{headers:this.headers})}deleteAccount(d){return this.http.delete("service:iam/account/"+d,{headers:this.headers})}listTeams(){return this.http.get("service:iam/teams",{headers:this.headers})}listUserTeams(d){return this.http.get("service:iam/user/"+d+"/teams?version="+K,{headers:this.headers})}listUserGroupsTeams(d){return this.http.get("service:iam/user/"+d+"/groups/teams?version="+K,{headers:this.headers})}updateTeam(d,T){return this.http.put("service:iam/team/"+d,T,{headers:this.headers})}findTeam(d){return this.http.get("service:iam/team/"+d,{headers:this.headers})}getUser(d){return this.http.get("service:iam/user/"+d,{headers:this.headers})}deleteTeam(d){return this.http.delete("service:iam/team/"+d,{headers:this.headers})}createUser(d){return this.http.post("service:iam/user",d,{headers:this.headers})}updateUser(d,T){return this.http.put("service:iam/user/"+d,T,{headers:this.headers})}updateTeamUser(d,T,m){return this.http.put("service:iam/team/"+d+"/user/"+T+"?version="+te,m,{headers:this.headers})}createRole(d){return this.http.post("service:iam/role",{name:d.name,description:d.description},{headers:this.headers})}
1updateRole(d){return this.http.put("service:iam/role/"+d.name,{description:d.description,tags:d.tags},{headers:this.headers})}deleteRole(d){return this.http.delete("service:iam/role/"+d,{headers:this.headers})}getRole(d){return this.http.get("service:iam/role/"+d,{headers:this.headers})}listRoles(){return this.http.get("service:iam/roles",{headers:this.headers})}listTeamRoles(d){return this.http.get("service:iam/team/"+d+"/roles?version="+te,{headers:this.headers})}listUserRoles(d){return this.http.get("service:iam/user/"+d+"/roles",{headers:this.headers})}listTeamUserRoles(d,T){return this.http.get("service:iam/team/"+d+"/user/"+T+"/roles?version="+te,{headers:this.headers})}listTeamGroupUsers(d,T){return this.http.get("service:iam/team/"+d+"/group/"+T+"/users?version="+te,{headers:this.headers})}listUserGroups(d){return this.http.get("service:iam/user/"+d+"/groups",{headers:this.headers})}listGroupRoles(d){return this.http.get("service:iam/group/"+d+"/roles",{headers:this.headers})}listTeamGroupRoles(d,T){return this.http.get("service:iam/team/"+d+"/group/"+T+"/roles?version="+te,{headers:this.headers})}listUserGroupsRoles(d){return this.http.get("service:iam/user/"+d+"/groups/roles?version="+K,{headers:this.headers})}createPolicy(d){return this.http.post("service:iam/policy",d,{headers:this.headers}).pipe((0,u.l)(T=>T.pipe((0,f.s)(10),(0,i.c)(2e3))))}deletePolicy(d){return this.http.delete("service:iam/policy/"+d,{headers:this.headers})}getPolicy(d){return this.http.get("service:iam/policy/"+d,{headers:this.headers})}listPolicies(){return this.http.get("service:iam/policies",{headers:this.headers})}updatePolicy(d,T){return this.http.put("service:iam/policy/"+d,T,{headers:this.headers}).pipe((0,u.l)(m=>m.pipe((0,f.s)(10),(0,i.c)(2e3))))}detachRolePolicy(d,T){return this.http.put("service:iam/role/"+d+"/policy/"+T+"/detach",null,{headers:this.headers})}attachRolePolicy(d,T){return this.http.put("service:iam/role/"+d+"/policy/"+T+"/attach",null,{headers:this.headers})}attachTeamRole(d,T){return this.http.put("service:iam/team/"+d+"/role/"+T+"/attach?version="+te,null,{headers:this.headers})}detachTeamRole(d,T){return this.http.put("service:iam/team/"+d+"/role/"+T+"/detach?version="+te,null,{headers:this.headers})}listGroups(){return this.http.get("service:iam/groups",{headers:this.headers})}findGroup(d){return this.http.get("service:iam/group/"+d,{headers:this.headers})}findTeamGroup(d,T){return this.http.get("service:iam/team/"+d+"/group/"+T+"?version="+te,{headers:this.headers})}createGroup(d){return this.http.post("service:iam/group",d,{headers:this.headers})}updateGroup(d,T){return this.http.put("service:iam/group/"+d,T,{headers:this.headers})}updateTeamGroup(d,T,m){return this.http.put("service:iam/team/"+d+"/group/"+T+"?version="+te,m,{headers:this.headers})}deleteGroup(d){return this.http.delete("service:iam/group/"+d,{headers:this.headers})}listGroupUsers(d){return this.http.get("service:iam/group/"+d+"/users",{headers:this.headers})}listGroupTeams(d){return this.http.get("service:iam/group/"+d+"/teams",{headers:this.headers})}attachUserToGroup(d,T){return this.http.put("service:iam/group/"+d+"/user/"+T+"/attach",null,{headers:this.headers})}attachTeamGroupUser(d,T,m){return this.http.put("service:iam/team/"+d+"/group/"+T+"/user/"+m+"/attach?version="+te,null,{headers:this.headers})}attachTeamToGroup(d,T){return this.http.put("service:iam/team/"+T+"/group/"+d+"/attach",null,{headers:this.headers})}detachTeamFromGroup(d,T){return this.http.put("service:iam/team/"+T+"/group/"+d+"/detach",null,{headers:this.headers})}detachTeamGroupUser(d,T,m){return this.http.put("service:iam/team/"+d+"/group/"+T+"/user/"+m+"/detach?version="+te,null,{headers:this.headers})}detachUserFromGroup(d,T){return this.http.put("service:iam/group/"+d+"/user/"+T+"/detach",null,{headers:this.headers})}attachRoleToGroup(d,T){return this.http.put("service:iam/group/"+d+"/role/"+T+"/attach",null,{headers:this.headers})}attachTeamGroupRole(d,T,m){return this.http.put("service:iam/team/"+d+"/group/"+T+"/role/"+m+"/attach?version="+te,null,{headers:this.headers})}
1detachTeamGroupRole(d,T,m){return this.http.put("service:iam/team/"+d+"/group/"+T+"/role/"+m+"/detach?version="+te,null,{headers:this.headers})}attachRoleToUser(d,T){return this.http.put("service:iam/user/"+d+"/role/"+T+"/attach",{},{headers:this.headers})}detachRoleToUser(d,T){return this.http.put("service:iam/user/"+d+"/role/"+T+"/detach",{},{headers:this.headers})}detachRoleFromGroup(d,T){return this.http.put("service:iam/group/"+d+"/role/"+T+"/detach",null,{headers:this.headers})}listTeamUsers(d){return this.http.get("service:iam/team/"+d+"/users?version="+te,{headers:this.headers})}listTeamGroups(d){return this.http.get("service:iam/team/"+d+"/groups",{headers:this.headers})}listTeamUserGroups(d,T){return this.http.get("service:iam/team/"+d+"/user/"+T+"/groups?version="+te,{headers:this.headers})}detachUserFromTeam(d,T){return this.http.put("service:iam/team/"+d+"/user/"+T+"/detach",null,{headers:this.headers})}detachGroupFromTeam(d,T){return this.http.put("service:iam/team/"+d+"/group/"+T+"/detach",null,{headers:this.headers})}getProviders(){return this.http.get("service:iam/providers?version="+W,{headers:this.headers})}getProvider(d){return this.http.get("service:iam/provider/"+d,{headers:this.headers})}postProvider(d){return this.http.post("service:iam/provider?version="+W,d,{headers:this.headers})}putProvider(d,T){return this.http.put("service:iam/provider/"+d,T,{headers:this.headers})}deleteProvider(d){return this.http.delete("service:iam/provider/"+d,{headers:this.headers})}listUsers(){return this.http.get("service:iam/users",{headers:this.headers})}getTeamUser(d,T){return this.http.get("service:iam/team/"+d+"/user/"+T+"?version="+te,{headers:this.headers})}deleteUser(d){return this.http.delete("service:iam/user/"+d,{headers:this.headers})}attachUserRole(d,T){return this.http.put("service:iam/user/"+d+"/role/"+T+"/attach",{},{headers:this.headers})}detachUserRole(d,T){return this.http.put("service:iam/user/"+d+"/role/"+T+"/detach",{},{headers:this.headers})}attachUserToTeam(d,T){return this.http.put("service:iam/team/"+d+"/user/"+T+"/attach",{},{headers:this.headers})}attachTeamUserRole(d,T,m){return this.http.put("service:iam/team/"+d+"/user/"+T+"/role/"+m+"/attach?version="+te,{},{headers:this.headers})}detachTeamUserRole(d,T,m){return this.http.put("service:iam/team/"+d+"/user/"+T+"/role/"+m+"/detach?version="+te,{},{headers:this.headers})}inviteUser(d){return this.http.put("service:iam/user/"+d+"/invite",{},{headers:this.headers})}inviteTeamUser(d,T){return this.http.put("service:iam/team/"+d+"/user/"+T+"/invite?version="+te,{},{headers:this.headers})}listHydratedRoles(){return this.listRoles().pipe((0,n.H)(({roles:d})=>(0,c.p)(d.map(T=>this.getRole(T.name).pipe((0,E.T)(({role:m})=>m)))).pipe((0,l.U)([]))))}listUserRolesAndTeams(d){return this.tokenService.isRoot(d.token.token)?this.listTeams().pipe((0,E.T)(({teams:m})=>(m.map(Y=>({...Y,userRoles:[{name:g.h.administratorRoleName}]})),{roles:[],teams:m}))):this.listUserRoles(d.id).pipe((0,v.Z)(({roles:m})=>{const Y=m.find(w=>w.name===g.h.administratorRoleName);return Y?this.listTeams().pipe((0,E.T)(({teams:w})=>(w.map(ve=>({...ve,userRoles:[Y]})),{roles:m,teams:w}))):(0,c.p)([this.listUserTeams(d.id),this.listUserGroupsRoles(d.id),this.listUserGroupsTeams(d.id)]).pipe((0,E.T)(([{teams:w},{roles:ve},{teams:ue}])=>{const Ie=new Set,Te=[...w,...ue],Q=[...m,...ve];return Te.forEach((ce,q)=>{Ie.has(ce.id)?Te.splice(q):(Ie.add(ce.id),ce.userRoles=Q.filter(le=>le.name.split("$")[0]===ce.id))}),{roles:Q,teams:Te}}))}),(0,C.W)(m=>{if(403===m.status)return(0,a.of)({roles:[],teams:[]})}))}getSCIMGroup(){return this.listGroups().pipe((0,e.N)(),(0,n.H)(({groups:d})=>(0,a.of)(d.find(T=>T.name===$))),(0,C.W)(d=>(0,a.of)(404===d.status?null:d)))}getSCIMUser(d){return this.listGroups().pipe((0,e.N)(),(0,n.H)(({groups:T})=>{const m=T.find(w=>w.name===$),Y=this.tokenService.getAccountFromToken(d.token.token)+"$scim";return m?this.listGroupUsers(m.id).pipe((0,n.H)(({users:w})=>(0,a.of)(w.find(ve=>ve.username===Y)))):(0,a.of)(null)}))}getProvisioningStatus(d){const T=this.tokenService.getAccountFromToken(d.token.token)+"$scim";
1return this.getSCIMGroup().pipe((0,n.H)(m=>m?this.listGroupUsers(m.id).pipe((0,e.N)(),(0,n.H)(({users:Y})=>{const w=Y.find(ve=>ve.username===T);return(0,a.of)((null==w?void 0:w.status)===g.h.userStatus.enabled)}),(0,C.W)(()=>(0,a.of)(!1))):(0,a.of)(!1)))}enableProvisioning(d){return this.getSCIMGroup().pipe((0,n.H)(T=>{const m=this.tokenService.getAccountFromToken(d.token.token)+"$scim";return T?(0,c.p)([this.listGroupUsers(T.id).pipe((0,n.H)(({users:Y})=>(0,a.of)(Y.find(w=>w.username===m)))),this.listGroupRoles(T.id).pipe((0,n.H)(({roles:Y})=>(0,a.of)(Y.find(w=>w.name===g.h.SCIMRoleName))))]).pipe((0,e.N)(),(0,n.H)(([Y,w])=>w?Y?Y.status===g.h.userStatus.disabled?this.updateUser(Y.id,{...Y,status:g.h.userStatus.enabled}):(0,a.of)({user:Y}):this.createUser({username:m}).pipe((0,n.H)(({user:ve})=>(0,c.p)([this.attachUserToGroup(T.id,ve.id),this.updateUser(ve.id,{...ve,status:g.h.userStatus.enabled})]).pipe((0,n.H)(([ue,{user:Ie}])=>(0,a.of)({user:Ie}))))):this.attachRoleToGroup(T.id,g.h.SCIMRoleName).pipe((0,n.H)(()=>Y?Y.status===g.h.userStatus.disabled?this.updateUser(Y.id,{...Y,status:g.h.userStatus.enabled}):(0,a.of)({user:Y}):this.createUser({username:m}).pipe((0,n.H)(({user:ve})=>(0,c.p)([this.attachUserToGroup(T.id,ve.id),this.updateUser(Y.id,{...ve,status:g.h.userStatus.enabled})]).pipe((0,n.H)(([ue,{user:Ie}])=>(0,a.of)({user:Ie})))))))),(0,C.W)(()=>(0,a.of)(null))):(0,c.p)([this.createGroup({name:$}),this.createUser({username:m})]).pipe((0,n.H)(([{group:Y},{user:w}])=>this.attachUserToGroup(Y.id,w.id).pipe((0,n.H)(()=>this.attachRoleToGroup(Y.id,g.h.SCIMRoleName).pipe((0,n.H)(()=>(0,a.of)({user:w})))))))}))}disableProvisioning(d){return this.getSCIMUser(d).pipe((0,e.N)(),(0,n.H)(T=>T?T.status===g.h.userStatus.disabled?(0,a.of)({user:T}):this.updateUser(T.id,{...T,status:g.h.userStatus.disabled}):(0,a.of)(null)))}generateSCIMToken(d){return this.getSCIMUser(d).pipe((0,e.N)(),(0,n.H)(T=>this.createUserToken(T.id,{tokenDuration:z,refreshTokenDuration:z}).pipe((0,n.H)(({user:m})=>(0,a.of)(m)))))}executePolicyRoleUpdate({PoliciesToCreate:d,PoliciesToUpdate:T,RolesToDelete:m,RolesToCreate:Y,RolesToUpdate:w,PoliciesToDelete:ve}){const ue=[...d.map(q=>this.createPolicy(q)),...T.map(q=>this.updatePolicy(q.name,q))],Ie=Y.map(q=>this.createRole(q).pipe((0,e.N)(),(0,n.H)(({role:le})=>{const ie=le.name.split("$")[0];return this.attachTeamRole(ie,le.name).pipe((0,e.N)())}))),Te=w.map(q=>{const le=[];return q.policiesToAttach.length&&le.push(...q.policiesToAttach.map(ie=>this.attachRolePolicy(q.role.name,ie.name).pipe((0,e.N)()))),q.policiesToDetach.length&&le.push(...q.policiesToDetach.map(ie=>this.detachRolePolicy(q.role.name,ie.name).pipe((0,e.N)()))),q.roleToUpdate&&le.push(this.updateRole({name:q.role.name,description:q.roleToUpdate.description,tags:q.roleToUpdate.tags})),(0,c.p)(le)}),Q=m.map(q=>{const le=q.name.split("$")[0];return this.listTeamRoles(le).pipe((0,n.H)(({roles:ie})=>ie.find(R=>q.name===R.name)?this.detachTeamRole(le,q.name).pipe((0,e.N)(),(0,n.H)(()=>this.deleteRole(q.name).pipe((0,e.N)()))):this.deleteRole(q.name).pipe((0,e.N)())),(0,C.W)(ie=>404===ie.status?this.deleteRole(q.name):ie))}),ce=ve.map(q=>this.deletePolicy(q.name));return(0,c.p)(ue).pipe((0,l.U)([]),(0,n.H)(()=>(0,c.p)(Ie).pipe((0,l.U)([]),(0,n.H)(()=>(0,c.p)(Te).pipe((0,l.U)([]),(0,n.H)(()=>(0,c.p)(Q).pipe((0,l.U)([]),(0,n.H)(()=>(0,c.p)(ce).pipe((0,l.U)([]),(0,n.H)(q=>(0,a.of)(q)))))))))))}setupTeamRoles({team:T}){const Y=Object.keys(H.Y.teamRoles).map(Te=>new B.a({roleName:Te,role:H.Y.teamRoles[Te]},{team:T.id,domain:T.domain})),w=[];for(const Te of Y)w.push(...Te.policies);const ve=[],ue=new Map;for(const Te of w)ue.has(Te.name)||(ue.set(Te.name,!0),ve.push(Te));const Ie=ve.map(Te=>this.createPolicy({...Te,tags:(0,V.r)()}));return(0,c.p)(Ie).pipe((0,n.H)(()=>{const Te=Y.map(Q=>this.createRole({...Q,tags:(0,V.r)()}));return(0,c.p)(Te).pipe((0,n.H)(()=>{const Q=Y.map(ce=>ce.policies.map(q=>this.attachRolePolicy(ce.name,q.name))).flat();return(0,c.p)(Q).pipe((0,n.H)(()=>{const ce=Y.map(q=>this.attachTeamRole(T.id,q.name));return(0,c.p)(ce)}))}))}))}listUserGroupsRolesWithGroupId(d){return this.listUserGroups(d).pipe((0,n.H)(T=>{const{groups:m}=T,Y=m.map(w=>this.listGroupRoles(w.id).pipe((0,E.T)(({roles:ve})=>ve.map(ue=>({...ue,groupId:w.id,groupName:w.name})))));return(0,c.p)(Y).pipe((0,E.T)(w=>w.flat()))}
1))}listTeamHydratedRoles(d){return this.listTeamRoles(d).pipe((0,n.H)(({roles:T})=>{const m=T.filter(Y=>Y.name.split("$")[0]===d);return(0,c.p)(m.map(Y=>this.getRole(Y.name).pipe((0,E.T)(({role:w})=>w)))).pipe((0,l.U)([]))}))}findTeamWithUsers(d){return this.http.get("service:iam/team/"+d,{headers:this.headers}).pipe((0,E.T)(({team:T})=>{var m;let Y=0;return null!=T&&null!==(m=T.config)&&void 0!==m&&null!==(m=m.authentication)&&void 0!==m&&null!==(m=m.rules)&&void 0!==m&&m.length&&(Y=T.config.authentication.rules.length),{...T,guestCount:Y}}))}}return(p=j).\u0275fac=function(d){return new(d||p)(P.KVO(o.Qq),P.KVO(b.B))},p.\u0275prov=P.jDH({token:p,factory:p.\u0275fac,providedIn:"root"}),j})()},25889:(pe,N,r)=>{"use strict";r.d(N,{f:()=>c});var o=r(94485),e=r(58527);let c=(()=>{var a;class u{constructor(i){this.http=i,this.headers=(new o.Lr).set("Authorization","true"),this.headersImage=new o.Lr({"Content-type":"application/octet-stream","x-amz-server-side-encryption":"AES256"})}getImage(i){return this.http.get(i,{responseType:"blob"})}uploadImage(i,n){const E=new o.Kd("PUT",i,n,{headers:this.headersImage});return this.http.request(E)}}return(a=u).\u0275fac=function(i){return new(i||a)(e.KVO(o.Qq))},a.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),u})()},55711:(pe,N,r)=>{"use strict";r.d(N,{s:()=>a});var o=r(58527),e=r(61142);class c{clear(){}getItem(f){}key(f){}removeItem(f){}setItem(f,i){}}let a=(()=>{var u;class f{constructor(n){this.platformId=n,this.storage=new c,(0,e.UE)(this.platformId)&&(this.storage=localStorage)}getFromLocal(n){return this.storage.getItem(n)}addToLocal(n,E){return this.storage.setItem(n,E)}clear(){this.storage.clear()}getItem(n){return this.storage.getItem(n)}key(n){return this.storage.key(n)}removeItem(n){return this.storage.removeItem(n)}setItem(n,E){return this.storage.setItem(n,E)}listAllKeys(){return Object.keys(this.storage)}}return(u=f).\u0275fac=function(n){return new(n||u)(o.KVO(o.Agw))},u.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),f})()},64196:(pe,N,r)=>{"use strict";r.d(N,{g:()=>e});var o=r(58527);let e=(()=>{var c;class a{debug(f){console.log("Debug:",f)}log(f){console.log(f)}error(f,i){console.error("object"==typeof f?`Error: ${JSON.stringify(f)}`:`Error: ${f}`,i)}}return(c=a).\u0275fac=function(f){return new(f||c)},c.\u0275prov=o.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),a})()},78544:(pe,N,r)=>{"use strict";r.d(N,{R:()=>u});var o=r(25580),e=r(94485),c=r(97144),a=r(58527);let u=(()=>{var f;class i{constructor(){this.headers=(new e.Lr).set("Authorization","true")}stripeHandleCardPayment(E){return(0,o.A)(function*(){return yield Stripe(c.c.stripeKey).confirmCardPayment(E.secret,{payment_method:{card:{token:E.token}}})})()}stripeConfirmSetupIntent(E){return(0,o.A)(function*(){return yield Stripe(c.c.stripeKey).confirmCardSetup(E.secret,{payment_method:{card:{token:E.token}}})})()}}return(f=i).\u0275fac=function(E){return new(E||f)},f.\u0275prov=a.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),i})()},45842:(pe,N,r)=>{"use strict";r.d(N,{U:()=>a});var o=r(85621),e=r(1936),c=r(58527);let a=(()=>{var u;class f{constructor(){}redirectToPricingPage(n){const E=(0,o.Yn)();window.location.href=n&&e.h.pricingUrls[n]?E+e.h.pricingUrls[n]:E+e.h.pricingUrls.fallback}redirectToInvalidConfiguration(){const n=(0,o.Yn)();window.location.href=n+"/invalid-configuration"}redirectToUploader(){const n=(0,o.Yn)();window.location.href=n+"/"}redirectToSubscriptionUpdate(){const n=(0,o.IX)();window.location.href=n+"/subscription/update"}redirectToSignupDomain(){const n=(0,o.IX)();window.location.href=n+"/signup/domain"}redirectToSignin(){const n=(0,o.Yn)();window.location.href=n+"/signin"}redirectToSignout(){const n=(0,o.Yn)();window.location.href=n+"/signout"}redirectTo404(){const n=(0,o.Yn)();window.location.href=n+"/404"}redirectTo(n){window.location.href=n}}return(u=f).\u0275fac=function(n){return new(n||u)},u.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),f})()},7877:(pe,N,r)=>{"use strict";r.d(N,{F:()=>E});var o=r(58527),e=r(61142),c=r(85621),a=r(14292),u=r(1936),f=r(74150),i=r(96542),n=r(17849);let E=(()=>{var l;class v{constructor(g,H,B,V,P,b,K){this.titleService=g,this.metaTagService=H,this.translateService=B,this.bytesPipe=V,this.dom=P,this.req=b,this.platformId=K}setFaqRichResults(g){let H=g.createElement("script");H.type="application/ld+json",H.text=`\n            {\n                "@context": "https://schema.org",                \n                "@type": "FAQPage",\n                "name":  "${this.translateService.instant("HOMEPAGE_ACCORDEON_FAQ_NAME").replace(/"/g,'\\"')}",\n                "mainEntity": [{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_
1SUMMARY_1").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_1").replace(/"/g,'\\"')}"\n                    }\n                },{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_SUMMARY_2").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_2").replace(/"/g,'\\"')}"\n                    }\n                },{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_SUMMARY_3").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_3").replace(/"/g,'\\"')}"\n                    }\n                },{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_SUMMARY_4").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_4").replace(/"/g,'\\"')}"\n                    }\n                },{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_SUMMARY_5").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_5").replace(/"/g,'\\"')}"\n                    }\n                },{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_SUMMARY_6").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_6").replace(/"/g,'\\"')}"\n                    }\n                },{\n                    "@type": "Question",\n                    "name": "${this.translateService.instant("HOMEPAGE_ACCORDEON_SUMMARY_7").replace(/"/g,'\\"')}",\n                    "acceptedAnswer": {\n                        "@type": "Answer",\n                        "text": " ${this.translateService.instant("HOMEPAGE_ACCORDEON_RESPONSE_7").replace(/"/g,'\\"')}"\n                    }\n                }]                \n            }\n        `,g.appendChild(this.dom.head,H)}updateCanonicalUrl(g){Array.from(this.dom.head.children).find(V=>"canonical"==V.rel).setAttribute("href",this.getProtocol()+g)}updateHreflang(){let H=Array.from(this.dom.head.children).filter(V=>"alternate"==V.rel);const B=["fr","en","de","es","it","pt"].indexOf(this.req.originalUrl.split("/")[1])>-1?2:1;H.map(V=>{if(["x-default","en"].indexOf(V.hreflang)>-1)V.setAttribute("href",this.getHostnameWithProtocol()+"/"+this.req.originalUrl.split("/").splice(B).join("/"));else{const P="/"+this.req.originalUrl.split("/").splice(B).join("/"),b=P.length>1?P:"";V.setAttribute("href",this.getHostnameWithProtocol()+"/"+V.hreflang+b)}})}removeHreflang(){Array.from(this.dom.head.children).filter(B=>"alternate"==B.rel).map(B=>{this.dom.head.removeChild(B)}),this.metaTagService.addTag({name:"robots",content:"noindex"})}setMetasSignup(){if((0,e.Vy)(this.platformId)){this.dom.documentElement.lang=(0,c.D_)(this.req.originalUrl);const g=this.req.originalUrl,H=this.translateService.currentLang;this.updateHreflang(),this.titleService.setTitle(this.translateService.instant("SEO_TITLE_SIGNUP")),this.updateCanonicalUrl((0,c.Tj)(this.getHostname())+g),this.metaTagService.updateTag({name:"description",content:this.translateService.instant("SEO_DESCRIPTION_SIGNUP")}),this.metaTagService.updateTag({property:"og:url",content:this.getHostnameWithProtocol()+"/"+H+this.resolvePath(g)}),this.metaTagService.updateTag({property:"og:title",content:this.translateService.instant("SEO_TITLE_SIGNUP")}),this.metaTagService.updateTag({property:"og:description",content:this.translateService.instant("SEO_DESCRIPTION_SIGNUP")}),this.getHostname()!==(0,c.Tj)(this.getHostname())&&this.removeHreflang()}}setMetasSignin(){if((0,e.Vy)(this.platformId)){this.dom.documentElement.lang=(0,c.D_)(this.req.originalUrl);const g=this.req.originalUrl,H=this.translateService.currentLang;this.updateHreflang(),this.titleService.setTitle(this.translateService.instant("SEO_TITLE_SIGNIN")),this.updateCanonicalUrl((0,c.Tj)(this.getHostname())+g),this.metaTagService.updateTag({name:"description",content:this.translateService.instant("SEO_DESCRIPTION_SIGNIN")}),this.metaTagService.updateTag({property:"og:url",content:this.getHostnameWithProtocol()+"/"+H+this.resolvePath(g)}),this.metaTagService.updateTag({property:"og:title",content:this.translateService.instant("SEO_TITLE_SIGNIN")}),this.metaTagService.updateTag({property:"og:description",content:this.translateService.instant("SEO_DESCRIPTION_SIGNIN")}),this.getHostname()!==(0,c.Tj)(this.getHostname())&&this.removeHreflang()}}setMetasLanding(){(0,e.Vy)(this.platformId)&&(this.dom.documentElement.lang=(0,c.D_)(this.req.originalUrl),this.updateHreflang(),this.setLandingTitle(),this.metaTagService.updateTag({property:"og:url",content:this.getHostnameWithProtocol()+"/"+this.resolveLangFromPath()}),this.metaTagService.updateTag({name:"description",content:this.translateService.instant("SEO_DESCRIPTION_LANDING")}),this.metaTagService.updateTag({property:"og:site_name",content:"Smash"}),this.metaTagService.updateTag({property:"og:title",content:this.translateService.instant("SEO_TITLE_LANDING")}),this.metaTagService.updateTag({property:"og:description",content:this.translateService.instant("SEO_DESCRIPTION_LANDING")}),this.updateCanonicalUrl((0,c.Tj)(this.getHostname())+"/"+this.resolveLangFromPath()),this.getHostname()!==(0,c.Tj)(this.getHostname())&&this.removeHreflang())}setLandingTitle(){this.titleService.setTitle(this.translateService.instant("SEO_TITLE_LANDING"))}setMetasViewer(g){if((0,e.Vy)(this.platformId)){const H=g.language?g.language:"en";this.dom.documentElement.lang=H,this.translateService.use(H),this.titleService.setTitle(`${g.title?g.title:"Smash"}`),this.metaTagService.updateTag({property:"og:site_name",content:"Smash"}),this.metaTagService.updateTag({property:"og:url",content:this.getFullUrl()});const B=g.password?this.translateService.instant("SEO_TITLE_VIEWER_PASSWORD"):g.title?g.title+" - "+this.bytesPipe.transform(g.size,2):this.translateService.instant("SEO_TITLE_VIEWER",{count:g.filesNumber,size:this.bytesPipe.transform(g.size,2)}),V="Uploaded"!==g.status?`(${this.translateService.instant(u.h.transferStatusTranslations[g.status])})`:"";this.metaTagService.updateTag({property:"og:title",content:`${B} ${V}`});const P=g.password?this.translateService.instant("SEO_DESCRIPTION_VIEWER_PASSWORD"):this.translateService.instant(g.title?"SEO_DESCRIPTION_VIEWER_WITH_TITLE":"SEO_DESCRIPTION_VIEWER",{count:g.filesNumber});this.metaTagService.updateTag({name:"description",content:P}),this.metaTagService.updateTag({property:"og:description",content:P}),this.updateCanonicalUrl((0,c.Tj)(this.getHostname())+"/"+("en"===H?"":H)),this.getHostname()!==(0,c.Tj)(this.getHostname())&&this.removeHreflang()}}resolvePath(g){const H=["fr","en","de","es","it","pt"].indexOf(g.split("/")[1])>-1?2:1,B="/"+g.split("/").splice(H).join("/");return B.length>1?B:""}resolveLangFromPath(){const H=(0,c.D_)(this.req.originalUrl);return"en"===H?"":H}getHostname(){return this.req.headers["x-forwarded-host"]?this.req.headers["x-forwarded-host"]:this.req.hostname}getProtocol(){return this.req.headers["x-forwarded-proto"]?`${this.req.headers["x-forwarded-proto"]}://`:"http://"}getFullUrl(){return`${this.getProtocol()}${this.getHostname()}${this.req.originalUrl}`}getHostnameWithProtocol(){return`${this.getProtocol()}${this.getHostname()}`}}return(l=v).\u0275fac=function(g){return new(g||l)(o.KVO(f.hE),o.KVO(f.W8),o.KVO(i.c$),o.KVO(n.c),o.KVO(e.qQ),o.KVO(a.S,8),o.KVO(o.Agw
1))},l.\u0275prov=o.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),v})()},39840:(pe,N,r)=>{"use strict";r.d(N,{G:()=>c});var o=r(14292),e=r(58527);let c=(()=>{var a;class u{constructor(i){this.response=i}setStatus(i,n){this.response&&(this.response.statusCode=i,n&&(this.response.statusMessage=n))}setNotFound(i="Not Found"){this.response&&(this.response.statusCode=404,this.response.statusMessage=i)}setGone(i="Gone"){this.response&&(this.response.statusCode=410,this.response.statusMessage=i)}setForbidden(i="Forbidden"){this.response&&(this.response.statusCode=403,this.response.statusMessage=i)}setNotAuthorized(i="Not Authorized"){this.response&&(this.response.statusCode=401,this.response.statusMessage=i)}setPermanentRedirect(i){this.response&&(this.response.redirect(301,i),this.response.finished=!0,this.response.end())}setInternalServerError(i="Internal Server Error"){this.response&&(this.response.statusCode=500,this.response.statusMessage=i)}}return(a=u).\u0275fac=function(i){return new(i||a)(e.KVO(o.C,8))},a.\u0275prov=e.jDH({token:a,factory:a.\u0275fac}),u})()},68633:(pe,N,r)=>{"use strict";r.d(N,{B:()=>c});var o=r(58527),e=r(16119);let c=(()=>{var a;class u{constructor(i){this.jwtHelperService=i}decodeToken(i){return this.jwtHelperService.decodeToken(i)}getAccountFromToken(i){return this.decodeToken(i).account}getRegionFromToken(i){return this.decodeToken(i).region}getTokenExpirationDate(i){return this.jwtHelperService.getTokenExpirationDate(i)}isTokenExpired(i){return this.jwtHelperService.isTokenExpired(i)}isAnonymousAccount(i){if(i)return!this.decodeToken(i).username;throw new Error("Invalid encodedToken value")}isRoot(i){const n=this.decodeToken(i);return!!n&&n.account===n.id}}return(a=u).\u0275fac=function(i){return new(i||a)(o.KVO(e.X7))},a.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),u})()},20154:(pe,N,r)=>{"use strict";r.d(N,{PG:()=>Be,xK:()=>Ro,ig:()=>Vt,Jd:()=>dt,eT:()=>go,Db:()=>fo,OO:()=>qe,ld:()=>Fo,li:()=>Mt,U5:()=>At,e9:()=>Go,kK:()=>wt,I_:()=>ho,X6:()=>fe,WB:()=>he,gI:()=>Le,WJ:()=>F,zD:()=>M,I7:()=>U,C4:()=>io,$b:()=>co,eQ:()=>lo,Dm:()=>uo,kh:()=>de,Pf:()=>ye,t6:()=>ee,aX:()=>po,U3:()=>To,gY:()=>bt,jh:()=>nt,SL:()=>no,uW:()=>Co,Pl:()=>Gt,VJ:()=>Io,sA:()=>ro,ir:()=>so,l5:()=>We,HO:()=>se,bu:()=>oo,bw:()=>Ut,Ng:()=>Ve,K6:()=>St,Kr:()=>Oo,El:()=>Lo,UL:()=>wo,f9:()=>$o,Nx:()=>Vo,ak:()=>Do,Co:()=>Oe,MX:()=>ze,U7:()=>It,wZ:()=>Ht,iV:()=>to,ve:()=>vt,v8:()=>Pt,_1:()=>yt,Rm:()=>Tt,WK:()=>Et,Vh:()=>kt,O4:()=>at,mi:()=>Ao,aM:()=>Qe,Ev:()=>ke,In:()=>_t,Xs:()=>Ne,uV:()=>Ct,X0:()=>Wt,mv:()=>Xt,Qt:()=>Jt,qX:()=>_e,vH:()=>_o,Zk:()=>bo,o1:()=>zo,gf:()=>Ft,FK:()=>De,tI:()=>tt,p_:()=>Ue,YH:()=>xt,F1:()=>qt,QY:()=>Kt,zm:()=>Zt,uv:()=>Qt,TO:()=>Rt,Wm:()=>Ge,_b:()=>ut,rN:()=>Ye,Mo:()=>jo,ts:()=>Wo,mq:()=>Bo,ZZ:()=>No,Hv:()=>Ho,Pn:()=>x,Yt:()=>h,Jv:()=>k,JP:()=>y,sc:()=>S,vt:()=>G,Y7:()=>Xe,Zo:()=>X,Ie:()=>ae,i_:()=>jt,dT:()=>Ee,GZ:()=>Bt,o9:()=>Z,YW:()=>L,Dn:()=>et,gl:()=>eo,j_:()=>rt,XM:()=>re,yZ:()=>me,bx:()=>D});var o=r(58527),e=r(8509),c=r(24589),a=r(71100),u=r(97144),f=r(95333),i=r(85565),n=r(72276),E=r(1936),l=r(97184),v=r(84547);const g={activeIdentity:null,activeIdentityUpdating:!1,activeIdentityUpdated:!1,activeIdentityUpdateError:null,username:null,usernameUpdating:!1,usernameUpdated:!1,usernameUpdateError:null,passwordUpdating:!1,passwordUpdated:!1,passwordUpdateError:null,reloginProcessing:!1,reloginComplete:!1,reloginError:null,userRoles:[],userRolesLoading:!1,userRolesLoaded:!1,userTeams:[],userTeamsLoading:!1,userTeamsLoaded:!1,userRolesAndTeamsLoaded:!1,isAdministrator:!1,activeTeam:null,subscription:null,subscriptionUpdating:!1,subscriptionLoaded:!1,isNewCustomer:null,subscriptionLimits:null,subscriptionLimitsLoading:!1,subscriptionLimitsLoaded:!1,subscriptionLimitsError:null,plan:null,planLoaded:!1,billingInformations:null,billingInformationsLoaded:!1,refreshTokenLoading:!1,refreshTokenLoaded:!1,refreshTokenError:null,setupSsoSessionProcessing:!1,setupSsoSessionSuccess:!1,setupSsoSessionFailure:!1,setupSsoSessionErrorMessage:null,userContacts:[],errorMessage:null,mfa:null,getMfaLoading:!1,getMfaLoaded:!1,getMfaError:null,updateDefaultFactorLoading:!1,updateDefaultFactorLoaded:!1,updateDefaultFactorError:null,verifyApplicationFactorLoading:!1,verifyApplicationFactorLoaded:!1,verifyApplicationFactorError:null,verifyEmailFactorLoading:!1,verifyEmailFactorLoaded:!1,verifyEmailFactorError:null,sendEmailOtpLoading:!1,sendEmailOtpLoaded:!1,sendEmailOtpError:null,resetEmailFactorLoading:!1,resetEmailFactorLoaded:!1,resetEmailFactorError:null,resetApplicationFactorLoading:!1,resetApplicationFactorLoaded:!1,resetApplicationFactorError:null,createMfaApplicationFactorSecretLoading:!1,createMfaApplicationFactorSecretLoaded:!1,createMfaApplicationFactorSecretError:null,applicationSecret:null},H=(0,a.vy)(g,(0,a.on)(l.Xw.createUserAnonymous,t=>({...t,activeIdentity:null,activeIdentityUpdating:!0})),(0,a.on)(l.Xw.createUserAnonymousSuccess,(t,{identity:s})=>({...t,activeIdentity:s,activeIdentityUpdating:!1})),(0,a.on)(l.Xw.createUserAnonymousFailure,(t,{error:s})=>({...t,activeIdentityUpdating:!1,error:s})),(0,a.on)(l.Xw.selectActiveIdentity,n.d.updateAccountSuccess,v.qN.signinSuccess,(t,{identity:s})=>({...t,activeIdentity:s})),(0,a.on)(l.Xw.selectActiveTeam,(t,{team:s})=>({...t,activeTeam:s})),(0,a.on)(l.Xw.updateActiveTeam,(t,{team:s})=>({...t,activeTeam:s})),(0,a.on)(l.Xw.getProfileInformationSuccess,(t,{firstName:s,lastName:J,authenticationMode:Re})=>({...t,activeIdentity:{...t.activeIdentity,firstName:s,lastName:J,authenticationMode:Re}})),(0,a.on)(l.Xw.refreshToken,t=>({...t,refreshTokenLoading:!0,refreshTokenLoaded:g.refreshTokenLoaded,refreshTokenError:g.refreshTokenError})),(0,a.on)(l.Xw.refreshTokenSuccess,(t,{identity:s})=>({...t,activeIdentity:{...t.activeIdentity,...s},refreshTokenLoading:!1,refreshTokenLoaded:!0})),(0,a.on)(l.Xw.refreshTokenFailure,(t,{error:s})=>({...t,refreshTokenLoading:!1,refreshTokenError:s,error:s})),(0,a.on)(l.Xw.loadBillingInformations,t=>({...t,billingInformations:g.billingInformations,billingInformationsLoaded:!1})),(0,a.on)(l.Xw.loadBillingInformationsSuccess,(t,{billingInformations:s})=>({...t,billingInformations:s,billingInformationsLoaded:!0})),(0,a.on)(l.Xw.loadBillingInformationsFailure,(t,{error:s})=>({...t,error:s})),(0,a.on)(n.d.updateBillingInformationsSuccess,(t,{billingInformations:s})=>({...t,billingInformations:s})),(0,a.on)(l.Xw.loadSubscription,t=>({...t,subscription:g.subscription,subscriptionUpdating:!0,subscriptionLoaded:g.subscriptionLoaded})),(0,a.on)(l.Xw.loadSubscriptionWithPlan,t=>({...t,subscription:g.subscription,subscriptionUpdating:!0,subscriptionLoaded:g.subscriptionLoaded,subscriptionLimits:g.subscriptionLimits,subscriptionLimitsLoading:!0,subscriptionLimitsLoaded:g.subscriptionLimitsLoaded})),(0,a.on)(l.Xw.loadSubscriptionSuccess,l.Xw.loadSubscriptionWithPlanSuccess,(t,{subscription:s,limits:J})=>({...t,subscription:{...t.subscription,...s},subscriptionUpdating:!1,subscriptionLoaded:!0,subscriptionLimits:J,subscriptionLimitsLoading:!1,subscriptionLimitsLoaded:!0})),(0,a.on)(i.O.loadSubscriptionAndPlanSuccess,(t,{subscription:s})=>({...t,subscription:{...t.subscription,...s},subscriptionUpdating:!1,subscriptionLoaded:!0})),(0,a.on)(l.Xw.loadSubscriptionFailure,l.Xw.loadSubscriptionWithPlanFailure,(t,{error:s})=>({...t,subscriptionUpdating:!1,subscriptionLimitsError:s,error:s})),(0,a.on)(l.Xw.loadPlanSuccess,(t,{plan:s})=>({...t,plan:{...t.plan,...s},planLoaded:!0})),(0,a.on)(l.Xw.loadSubscriptionWithPlanSuccess,(t,{subscription:s})=>({...t,plan:{...t.plan,...null==s?void 0:s.plan},subscriptionUpdating:!1,planLoaded:!0})),(0,a.on)(n.d.loadPlanSuccess,(t,{plan:s})=>({...t,plan:{...t.plan,...s},planLoaded:!0})),(0,a.on)(l.Xw.loadPlanFailure,(t,{error:s})=>({...t,error:s})),(0,a.on)(n.d.updateSubscriptionSuccess,(t,{subscription:s})=>({...t,subscription:s,subscriptionUpdating:!1})),(0,a.on)(l.Xw.signOutSuccess,t=>({...t,activeTeam:g.activeTeam,activeIdentity:g.activeIdentity,subscription:g.subscription,subscriptionLoaded:g.subscriptionLoaded,isNewCustomer:g.isNewCustomer,plan:g.plan})),(0,a.on)(l.Xw.signInAgain,t=>({...t,activeIdentity:g.activeIdentity})),(0,a.on)(n.d.signupSuccess,t=>({...t,subscription:{...t.subscription,status:E.h.subscriptionStatus.Pending}})),(0,a.on)(l.aW.processStripePaymentSuccess,(t,{response:s,isNewCustomer:J})=>({...t,subscription:{...t.subscription,status:E.h.subscriptionStatus.Pending},plan:s.plan,billingInformations:s.informations,isNewCustomer:J})),(0,a.on)(l.aW.processPaypalPaymentSuccess,(t,{response:s,isNewCustomer:J})=>({...t,subscription:s.subscription,plan:s.plan,billingInformations:s.informations,isNewCustomer:J})),(0,a.on)(l.Xw.SetupSsoSession,t=>({...t,setupSsoSessionProcessing:!0,setupSsoSessionSuccess:g.setupSsoSessionSuccess,setupSsoSessionFailure:g.setupSsoSessionFailure,setupSsoSessionErrorMessage:g.setupSsoSessionErrorMessage})),(0,a.on)(l.Xw.SetupSsoSessionSuccess,t=>({...t,setupSsoSessionProcessing:g.setupSsoSessionProcessing,setupSsoSessionSuccess:!0})),(0,a.on)(l.Xw.SetupSsoSessionFailure,(t,{error:s})=>({...t,setupSsoSessionProcessing:g.setupSsoSessionProcessing,setupSsoSessionFailure:!0,setupSsoSessionErrorMessage:s})),(0,a.on)(l.Xw.LoadUserRoles,t=>({...t,userRolesLoading:!0,userRolesLoaded:g.userRolesLoaded,userRoles:g.userRoles,isAdministrator:g.isAdministrator})),(0,a.on)(l.Xw.LoadUserRolesSuccess,(t,{roles:s,isAdministrator:J})=>({...t,userRolesLoaded:!0,userRolesLoading:!1,userRoles:s,isAdministrator:J})),(0,a.on)(l.Xw.LoadUserRolesFailure,(t,{error:s})=>({...t,error:s,userRolesLoading:g.userRolesLoading,userRolesLoaded:g.userRolesLoaded,userRoles:g.userRoles,isAdministrator:g.isAdministrator})),(0,a.on)(l.Xw.LoadUserRolesAndTeams,t=>({...t,userRolesAndTeamsLoaded:g.userRolesAndTeamsLoaded,userRoles:g.userRoles,userTeams:g.userTeams,isAdministrator:g.isAdministrator})),(0,a.on)(l.Xw.LoadUserRolesAndTeamsSuccess,(t,{roles:s,teams:J,isAdministrator:Re})=>({...t,userRolesAndTeamsLoaded:!0,userRoles:s,userTeams:J,isAdministrator:Re})),(0,a.on)(l.Xw.LoadUserTeams,t=>({...t,userTeamsLoading:!0,userTeamsLoaded:g.userTeamsLoaded,userTeams:g.userTeams})),(0,a.on)(l.Xw.LoadUserTeamsSuccess,(t,{teams:s})=>({...t,userTeamsLoaded:!0,userTeamsLoading:!1,userTeams:s})),(0,a.on)(l.Xw.LoadUserTeamsFailure,(t,{error:s})=>({...t,error:s,userTeamsLoading:!1,userTeamsLoaded:g.userTeamsLoaded,userTeams:g.userTeams})),(0,a.on)(l.Xw.UpdateActiveIdentity,t=>({...t,activeIdentityUpdating:!0,activeIdentityUpdated:g.activeIdentityUpdated,activeIdentityUpdateError:g.activeIdentityUpdateError})),(0,a.on)(l.Xw.UpdateActiveIdentitySuccess,(t,{identity:s})=>({...t,activeIdentityUpdated:!0,activeIdentityUpdating:g.activeIdentityUpdating,activeIdentity:{...t.activeIdentity,...s},activeIdentityUpdateError:g.activeIdentityUpdateError})),(0,a.on)(l.Xw.UpdateActiveIdentityFailure,(t,{error:s})=>({...t,activeIdentityUpdating:g.activeIdentityUpdating,activeIdentityUpdateError:s})),(0,a.on)(l.Xw.UpdateUsername,t=>({...t,activeIdentityUpdating:!0,activeIdentityUpdated:g.activeIdentityUpdated,activeIdentityUpdateError:g.activeIdentityUpdateError,usernameUpdating:!0,usernameUpdated:g.usernameUpdated,usernameUpdateError:g.usernameUpdateError})),(0,a.on)(l.Xw.UpdateUsernameSuccess,(t,{identity:s})=>({...t,activeIdentityUpdated:!0,activeIdentityUpdating:g.activeIdentityUpdating,activeIdentityUpdateError:g.activeIdentityUpdateError,usernameUpdated:!0,usernameUpdating:g.usernameUpdating,usernameUpdateError:g.usernameUpdateError,activeIdentity:{...t.activeIdentity,...s},reloginProcessing:g.reloginProcessing,reloginComplete:g.reloginComplete,reloginError:g.reloginError})),(0,a.on)(l.Xw.UpdateUsernameFailure,(t,{error:s})=>({...t,activeIdentityUpdating:g.activeIdentityUpdating,activeIdentityUpdateError:s,usernameUpdating:g.usernameUpdating,usernameUpdateError:s})),(0,a.on)(l.Xw.UpdatePassword,t=>({...t,passwordUpdating:!0,passwordUpdated:g.passwordUpdated,passwordUpdateError:g.passwordUpdateError})),(0,a.on)(l.Xw.UpdatePasswordSuccess,(t,{identity:s})=>({...t,activeIdentity:s,passwordUpdated:!0,passwordUpdating:g.passwordUpdating,passwordUpdateError:g.passwordUpdateError})),(0,a.on)(l.Xw.UpdatePasswordFailure,(t,{error:s})=>({...t,passwordUpdating:g.passwordUpdating,passwordUpdateError:s})),(0,a.on)(l.Xw.Relogin,t=>({...t,reloginProcessing:!0,reloginComplete:g.reloginComplete,reloginError:g.reloginError})),(0,a.on)(l.Xw.ReloginSuccess,(t,{identity:s})=>({...t,activeIdentity:{...t.activeIdentity,...s},reloginProcessing:g.reloginProcessing,reloginComplete:!0,reloginError:g.reloginError})),(0,a.on)(l.Xw.ReloginFailure,(t,{error:s})=>({...t,reloginProcessing:g.reloginProcessing,reloginError:s})),(0,a.on)(l.Xw.ReloginAbort,t=>({...t,activeIdentity:g.activeIdentity,reloginProcessing:g.reloginProcessing,reloginComplete:g.reloginComplete,reloginError:g.reloginError})),(0,a.on)(l.Xw.SetUserContacts,(t,{userContacts:s=[]})=>{const J=t.userContacts||[],Re=s.filter(Lt=>-1===J.indexOf(Lt));return{...t,userContacts:[...J,...Re]}}),(0,a.on)(l.Xw.updateUserContacts,(t,{userContacts:s})=>({...t,userContacts:s})),(0,a.on)(l.Xw.GetMfa,t=>({...t,getMfaLoading:!0,getMfaLoaded:!1,getMfaError:null})),(0,a.on)(l.Xw.GetMfaSuccess,(t,{mfa:s})=>({...t,mfa:s,getMfaLoading:!1,getMfaLoaded:!0,getMfaError:null})),(0,a.on)(l.Xw.GetMfaFailure,(t,{error:s})=>({...t,getMfaLoading:!1,getMfaLoaded:!1,getMfaError:s})),(0,a.on)(l.Xw.VerifyApplicationFactor,t=>({...t,verifyApplicationFactorLoading:!0,verifyApplicationFactorLoaded:!1,verifyApplicationFactorError:null})),(0,a.on)(l.Xw.VerifyApplicationFactorSuccess,t=>({...t,verifyApplicationFactorLoading:!1,verifyApplicationFactorLoaded:!0,verifyApplicationFactorError:null})),(0,a.on)(l.Xw.VerifyApplicationFactorFailure,(t,{error:s})=>({...t,verifyApplicationFactorLoading:!1,verifyApplicationFactorLoaded:!1,verifyApplicationFactorError:s})),(0,a.on)(l.Xw.VerifyEmailFactor,t=>({...t,verifyEmailFactorLoading:!0,verifyEmailFactorLoaded:!1,verifyEmailFactorError:null})),(0,a.on)(l.Xw.VerifyEmailFactorSuccess,t=>({...t,verifyEmailFactorLoading:!1,verifyEmailFactorLoaded:!0,verifyEmailFactorError:null})),(0,a.on)(l.Xw.VerifyEmailFactorFailure,(t,{error:s})=>({...t,verifyEmailFactorLoading:!1,verifyEmailFactorLoaded:!1,verifyEmailFactorError:s})),(0,a.on)(l.Xw.SendEmailOtp,t=>({...t,sendEmailOtpLoading:!0,sendEmailOtpLoaded:!1,sendEmailOtpError:null})),(0,a.on)(l.Xw.SendEmailOtpSuccess,t=>({...t,sendEmailOtpLoading:!1,sendEmailOtpLoaded:!0,sendEmailOtpError:null}
1)),(0,a.on)(l.Xw.SendEmailOtpFailure,(t,{error:s})=>({...t,sendEmailOtpLoading:!1,sendEmailOtpLoaded:!1,sendEmailOtpError:s})),(0,a.on)(l.Xw.ResetEmailFactor,t=>({...t,resetEmailFactorLoading:!0,resetEmailFactorLoaded:!1,resetEmailFactorError:null})),(0,a.on)(l.Xw.ResetEmailFactorSuccess,t=>({...t,resetEmailFactorLoading:!1,resetEmailFactorLoaded:!0,resetEmailFactorError:null})),(0,a.on)(l.Xw.ResetEmailFactorFailure,(t,{error:s})=>({...t,resetEmailFactorLoading:!1,resetEmailFactorLoaded:!1,resetEmailFactorError:s})),(0,a.on)(l.Xw.ResetApplicationFactor,t=>({...t,resetApplicationFactorLoading:!0,resetApplicationFactorLoaded:!1,resetApplicationFactorError:null})),(0,a.on)(l.Xw.ResetApplicationFactorSuccess,t=>({...t,resetApplicationFactorLoading:!1,resetApplicationFactorLoaded:!0,resetApplicationFactorError:null,verifyApplicationFactorLoading:!1,verifyApplicationFactorLoaded:!1,verifyApplicationFactorError:null,createMfaApplicationFactorSecretError:null,createMfaApplicationFactorSecretLoaded:!1,createMfaApplicationFactorSecretLoading:!1})),(0,a.on)(l.Xw.ResetApplicationFactorFailure,(t,{error:s})=>({...t,resetApplicationFactorLoading:!1,resetApplicationFactorLoaded:!1,resetApplicationFactorError:s})),(0,a.on)(l.Xw.UpdateDefaultFactor,t=>({...t,updateDefaultFactorLoading:!0,updateDefaultFactorLoaded:!1,updateDefaultFactorError:null})),(0,a.on)(l.Xw.UpdateDefaultFactorSuccess,t=>({...t,updateDefaultFactorLoading:!1,updateDefaultFactorLoaded:!0,updateDefaultFactorError:null})),(0,a.on)(l.Xw.UpdateDefaultFactorFailure,(t,{error:s})=>({...t,updateDefaultFactorLoading:!1,updateDefaultFactorLoaded:!1,updateDefaultFactorError:s})),(0,a.on)(l.Xw.CreateMfaFactorSecret,t=>({...t,createMfaApplicationFactorSecretLoading:!0,createMfaApplicationFactorSecretLoaded:!1,createMfaApplicationFactorSecretError:null,secret:null})),(0,a.on)(l.Xw.CreateMfaFactorSecretSuccess,(t,{secret:s})=>({...t,createMfaApplicationFactorSecretLoading:!1,createMfaApplicationFactorSecretLoaded:!0,applicationSecret:s})),(0,a.on)(l.Xw.CreateMfaFactorSecretFailure,(t,{error:s})=>({...t,createMfaApplicationFactorSecretLoading:!1,createMfaApplicationFactorSecretError:s})));function B(t,s){return H(t,s)}const b=(0,a.vy)({theme:null,themeLoading:!1,themeLoaded:!1},(0,a.on)(l.BW.LoadTheme,t=>({...t,theme:null,themeLoading:!0,themeLoaded:!1})),(0,a.on)(l.BW.LoadThemeSuccess,(t,{theme:s})=>({...t,theme:s,themeLoading:!1,themeLoaded:!0})));function K(t,s){return b(t,s)}const W={currentDomain:null,currentDomainLoading:!1,currentDomainLoaded:!1,currentDomainProviders:[],domainUpdatedError:null,domainToCreate:null,domainCreating:!1,domainCreatingError:null,loadDomainError:null,mainDomain:""},z=(0,a.vy)(W,(0,a.on)(l.oR.loadDomain,t=>({...t,currentDomain:W.currentDomain,currentDomainLoading:!0,currentDomainLoaded:W.currentDomainLoaded})),(0,a.on)(l.oR.loadDomainSuccess,(t,{domain:s,providers:J,mainDomain:Re})=>({...t,currentDomain:s,currentDomainProviders:J,currentDomainLoading:!1,currentDomainLoaded:!0,mainDomain:Re})),(0,a.on)(l.oR.loadDomainFailure,(t,{error:s})=>({...t,loadDomainError:s,currentDomainLoaded:!0})),(0,a.on)(l.oR.updateDomainFailure,(t,{error:s})=>({...t,domainUpdatedError:s})),(0,a.on)(l.oR.updateDomainToCreate,(t,{domain:s})=>({...t,domainToCreate:s})));function $(t,s){return z(t,s)}const T=(0,r(41101).p)(),m=T.getInitialState({}),Y={device:null,services:u.c.services,selectedLanguage:null,supportedLanguages:E.h.supportedLanguages,countries:[],countriesLoading:!1,countriesLoaded:!1,countriesError:null,country:null,countryCode:null,stripeLoading:!1,stripeLoaded:!1,stripeLoadingError:null,region:null,error:null,loadServicesError:null,updateRunning:!1,updateRolesAndPoliciesSuccess:!1,pendingUpdates:[],remotePolicies:null,players:m,cgu:{cguLastVersion:0,cguLastConsentUpdated:null,cguLastConsentValue:!1},cookiesConsentConfiguration:{groups:{social:{enabled:!1},analytics:{enabled:!1}}},cookiesConsentConfigurationLoaded:!1,cookiesConsentSetByUser:!1,durationChoice:null,onBoarding:{discoverProModal:"firstVisit",counter:0},pendingLanguageSwitch:null};function w(t){var s;if(!t)return!1;const J=null===(s=t.split("/")[1])||void 0===s?void 0:s.split(/[?#;]/)[0];return E.h.supportedLanguages.some(Re=>Re.id===J)}const ve=(0,a.vy)(Y,(0,a.on)(l.Vg.loadDeviceSuccess,(t,{device:s})=>({...t,device:s,error:Y.error})),(0,a.on)(l.Vg.loadDeviceFailure,(t,{error:s})=>({...t,error:s})),(0,a.on)(l.Vg.loadServicesSuccess,(t,{region:s,country:J,countryCode:Re})=>({...t,region:s,country:J,countryCode:Re,loadServicesError:Y.loadServicesError})),(0,a.on)(l.Vg.loadServicesFailure,(t,{error:s})=>({...t,loadServicesError:s})),(0,a.on)(v.qN.signinSuccess,(t,{region:s})=>({...t,region:s})),(0,a.on)(l.Vg.SelectLanguageSuccess,(t,{language:s})=>({...t,selectedLanguage:s,pendingLanguageSwitch:null})),(0,a.on)(l.Vg.SetupLanguageSuccess,(t,{language:s})=>({...t,selectedLanguage:s})),(0,a.on)(l.Vg.SelectLanguageFailure,(t,{language:s,url:J})=>({...t,pendingLanguageSwitch:{language:s,url:w(J)?J:void 0}})),(0,a.on)(l.Vg.ChunkLoadFailure,(t,{url:s})=>({...t,pendingLanguageSwitch:w(s)?{url:s}:null})),(0,a.on)(l.Vg.ClearPendingLanguageSwitch,t=>({...t,pendingLanguageSwitch:null})),(0,a.on)(l.Vg.loadCountries,t=>({...t,countries:Y.countries,countriesLoading:!0,countriesLoaded:Y.countriesLoaded})),(0,a.on)(l.Vg.loadCountriesSuccess,(t,{countries:s})=>({...t,countries:s,countriesLoading:!1,countriesLoaded:!0})),(0,a.on)(l.Vg.loadCountriesFailure,(t,{error:s})=>({...t,countriesLoading:!1,countriesError:s})),(0,a.on)(l.Vg.loadCountries,t=>({...t,countries:Y.countries,countriesLoading:!0})),(0,a.on)(l.Vg.loadCountriesSuccess,(t,{countries:s})=>({...t,countries:s,countriesLoading:!1,countriesLoaded:!0})),(0,a.on)(l.Vg.loadCountriesFailure,(t,{error:s})=>({...t,countriesLoading:!1,countriesError:s})),(0,a.on)(l.Vg.LoadStripe,t=>({...t,stripeLoading:!0,stripeLoaded:Y.stripeLoaded,stripeLoadingError:Y.stripeLoadingError})),(0,a.on)(l.Vg.LoadStripeSuccess,t=>({...t,stripeLoading:!1,stripeLoaded:!0})),(0,a.on)(l.Vg.LoadStripeFailure,(t,{error:s})=>({...t,stripeLoading:!1,stripeLoadingError:s})),(0,a.on)(l.Vg.ScanUpdates,t=>({...t,pendingUpdates:Y.pendingUpdates})),(0,a.on)(l.Vg.RunUpdates,t=>({...t,updateRunning:!0,updateRolesAndPoliciesSuccess:!1})),(0,a.on)(l.Vg.RunUpdatesSuccess,t=>({...t,updateRunning:!1,updateRolesAndPoliciesSuccess:!0})),(0,a.on)(l.Vg.RunUpdatesFailure,t=>({...t,updateRunning:!1})),(0,a.on)(l.Vg.GetRemotePoliciesAndRolesSuccess,(t,{remotePolicies:s})=>({...t,remotePolicies:s})),(0,a.on)(l.Vg.ComputePoliciesSuccess,(t,{update:s})=>({...t,pendingUpdates:s?[...t.pendingUpdates,s]:[...t.pendingUpdates]})),(0,a.on)(l.Vg.ExecutePoliciesUpdateSuccess,(t,{update:s})=>({...t,pendingUpdates:[...t.pendingUpdates].filter(J=>J.type!==s.type)})),(0,a.on)(l.Vg.AddPlayer,(t,{id:s,url:J,allowConcurrency:Re,unstoppable:Lt})=>({...t,players:T.addOne({id:s,url:J,allowConcurrency:Re,unstoppable:Lt,playing:!1},t.players)})),(0,a.on)(l.Vg.UpdatePlayerPlayingAndStopOthers,(t,{id:s})=>{var J;const Re=[...t.players.ids],Lt=null!==(J=t.players.entities[s])&&void 0!==J&&J.allowConcurrency?[]:Re.filter(Mo=>Mo!==s&&!t.players.entities[Mo].allowConcurrency),mo=[];return Lt.forEach(Mo=>{mo.push({id:Mo,changes:{playing:!1}})}),{...t,players:T.updateMany(mo,t.players)}}),(0,a.on)(l.Vg.StopAllPlayers,t=>{const s=[...t.players.ids].filter(Re=>!t.players.entities[Re].unstoppable),J=[];
1return s.forEach(Re=>{J.push({id:Re,changes:{playing:!1}})}),{...t,players:T.updateMany(J,t.players)}}),(0,a.on)(l.Vg.AcceptCGUSuccess,(t,{cgu:s})=>({...t,cgu:s})),(0,a.on)(l.Vg.LoadCookiesConsentConfiguration,t=>({...t,cookiesConsentConfiguration:Y.cookiesConsentConfiguration,cookiesConsentConfigurationLoaded:Y.cookiesConsentConfigurationLoaded})),(0,a.on)(l.Vg.LoadCookiesConsentConfigurationSuccess,(t,{cookiesConsentConfiguration:s,cookiesConsentSetByUser:J})=>({...t,cookiesConsentConfiguration:s,cookiesConsentConfigurationLoaded:!0,cookiesConsentSetByUser:J})),(0,a.on)(l.Vg.UpdateCookiesConsentConfigurationSuccess,(t,{cookiesConsentConfiguration:s})=>({...t,cookiesConsentConfiguration:s,cookiesConsentSetByUser:!0})),(0,a.on)(l.Vg.CloseCookiesConsentConfiguration,t=>({...t,cookiesConsentConfigurationLoaded:!1})),(0,a.on)(l.Vg.SetDurationChoice,(t,{durationChoice:s})=>({...t,durationChoice:s})),(0,a.on)(l.Vg.OnBoardingSuccess,(t,{onBoardingState:s})=>({...t,onBoarding:{...t.onBoarding,...s,counter:t.onBoarding.counter+s.counter}})));function ue(t,s){return ve(t,s)}const Te=T.getSelectors().selectAll;var Q=r(7511),ce=r(48544);const ie=(0,a.vy)({paymentType:null,paymentProcessing:!1,paymentSucceed:!1,paymentFailed:!1,paymentError:null,paypal:null,resetPayment:!1,cardToken:null},(0,a.on)(Q.processPayment,t=>({...t,paymentProcessing:!0,paymentSucceed:!1,paymentFailed:!1,paymentError:null})),(0,a.on)(ce.k.renewSubscription,t=>({...t,paymentSucceed:!1,paymentFailed:!1,paymentError:null})),(0,a.on)(n.d.updateFormData,(t,{data:s})=>({...t,paymentType:s.payment_type,cardToken:s.card_token})),(0,a.on)(ce.k.updateFormData,(t,{data:s})=>({...t,paymentType:s.payment_type,cardToken:s.card_token})),(0,a.on)(Q.processStripePaymentSuccess,t=>({...t,paymentProcessing:!1,paymentSucceed:!0})),(0,a.on)(Q.processStripePaymentFailure,(t,s)=>({...t,paymentProcessing:!1,paymentFailed:!0,paymentError:s})),(0,a.on)(Q.resetSignupProcess,t=>({...t,signupProcessing:!1,accountCreationProcessing:!1,accountCreationFailed:!1,paymentProcessing:!1,paymentSucceed:!1,paymentFailed:!1,paymentError:null,resetPayment:!0})),(0,a.on)(Q.resetSignupProcessSuccess,t=>({...t,resetPayment:!1})),(0,a.on)(Q.paypalWaitUserAgreement,(t,{approvalUrl:s})=>({...t,paypal:{approvalUrl:s}})),(0,a.on)(Q.processPaypalPaymentSuccess,t=>({...t,paymentProcessing:!1,paymentSucceed:!0,paypal:null})),(0,a.on)(Q.processPaypalPaymentFailure,(t,s)=>({...t,paymentProcessing:!1,paymentFailed:!0,paymentError:s,paypal:null})),(0,a.on)(Q.cancelPaypal,t=>({...t,paypal:null,paymentProcessing:!1})));function R(t,s){return ie(t,s)}const _={scripts:[],errorMessage:""},ne=(0,a.vy)(_,(0,a.on)(l.r7.Pw,(t,{scripts:s})=>({...t,scripts:s})),(0,a.on)(l.r7.MW,(t,{scripts:s})=>({...t,scripts:s})),(0,a.on)(l.r7.YU,(t,{script:s})=>({...t,scripts:[...t.scripts,s]})),(0,a.on)(l.r7.jA,(t,{errorMessage:s})=>({...t,errorMessage:s})),(0,a.on)(l.Xw.signOutSuccess,t=>({...t,..._})));function Se(t,s){return ne(t,s)}const Me={verifyCaptchaResponse:null,verifyCaptchaStarted:!1,verifyCaptchaLoading:!1,verifyCaptchaLoaded:!1,verifyCaptchaError:null},we=(0,a.vy)(Me,(0,a.on)(l.sN.ResetVerifyCaptcha,t=>({...t,verifyCaptchaResponse:Me.verifyCaptchaResponse,verifyCaptchaStarted:Me.verifyCaptchaStarted,verifyCaptchaLoading:Me.verifyCaptchaLoading,verifyCaptchaLoaded:Me.verifyCaptchaLoaded,verifyCaptchaError:Me.verifyCaptchaError})),(0,a.on)(l.sN.StartVerifyCaptcha,t=>({...t,verifyCaptchaResponse:Me.verifyCaptchaResponse,verifyCaptchaStarted:!0,verifyCaptchaLoading:Me.verifyCaptchaLoading,verifyCaptchaLoaded:Me.verifyCaptchaLoaded,verifyCaptchaError:Me.verifyCaptchaError})),(0,a.on)(l.sN.VerifyCaptcha,t=>({...t,verifyCaptchaResponse:Me.verifyCaptchaResponse,verifyCaptchaStarted:!0,verifyCaptchaLoading:!0,verifyCaptchaLoaded:Me.verifyCaptchaLoaded,verifyCaptchaError:Me.verifyCaptchaError})),(0,a.on)(l.sN.VerifyCaptchaSuccess,(t,{result:s})=>({...t,verifyCaptchaResponse:s,verifyCaptchaStarted:!1,verifyCaptchaLoading:!1,verifyCaptchaLoaded:!0})),(0,a.on)(l.sN.VerifyCaptchaFailure,(t,{error:s})=>({...t,verifyCaptchaLoading:!1,verifyCaptchaStarted:!1,verifyCaptchaError:s})));function je(t,s){return we(t,s)}const Be=new o.nKC("Root reducers token",{factory:()=>({router:c.C_,account:B,environment:ue,script:Se,domain:$,[f.vi]:f.Ff,payment:R,theme:K,captcha:je})});(0,a.UX)("userCustomization");const oe=(0,a.UX)("account"),Ke=(0,a.UX)("router"),{selectCurrentRoute:He,selectQueryParams:it,selectRouteData:ct,selectUrl:lt}=c._u(Ke),Qe=(0,a.Mz)(lt,ct,He,(t,s,J)=>({currentUrl:t,data:s,currentRoute:J,splittedRoute:(0,e.iM)(t)})),Ze=t=>{if(0===t.children.length)return t.params;const s=t.children.reduce((J,Re)=>({...J,...Ze(Re)}),{});return{...t.params,...s}},Xe=(0,a.Mz)(Ke,t=>{var s;return null!=t&&null!==(s=t.state)&&void 0!==s&&s.root?Ze(t.state.root):{}}),dt=((0,a.Mz)(it,t=>t||{}),(0,a.Mz)(oe,t=>t.activeIdentity)),Rt=(0,a.Mz)(oe,t=>{var s;return null===(s=t.activeIdentity)||void 0===s?void 0:s.username}),Ye=(0,a.Mz)(oe,t=>t.usernameUpdating),ut=(0,a.Mz)(oe,t=>t.usernameUpdated),Ge=(0,a.Mz)(oe,t=>t.usernameUpdateError),St=(0,a.Mz)(oe,t=>t.passwordUpdating),Ve=(0,a.Mz)(oe,t=>t.passwordUpdated),Ut=(0,a.Mz)(oe,t=>t.passwordUpdateError),at=(0,a.Mz)(oe,t=>t.reloginProcessing),Et=(0,a.Mz)(oe,t=>t.reloginComplete),kt=(0,a.Mz)(oe,t=>t.reloginError),qe=(0,a.Mz)(oe,t=>t.activeTeam),Ft=(0,a.Mz)(oe,t=>{var s;return null==t||null===(s=t.activeIdentity)||void 0===s||null===(s=s.token)||void 0===s?void 0:s.token}),vt=(0,a.Mz)(oe,t=>{var s;return null==t||null===(s=t.activeIdentity)||void 0===s?void 0:s.refreshToken}),Tt=(0,a.Mz)(oe,t=>null==t?void 0:t.refreshTokenLoading),yt=(0,a.Mz)(oe,t=>null==t?void 0:t.refreshTokenLoaded),Pt=(0,a.Mz)(oe,t=>null==t?void 0:t.refreshTokenError),Mt=(0,a.Mz)(oe,t=>t.billingInformations),wt=(0,a.Mz)(oe,t=>t.userContacts),Ct=((0,a.Mz)(oe,t=>({address:t.billingInformations.address,city:t.billingInformations.city,company:t.billingInformations.company,country:t.billingInformations.country,state:t.billingInformations.state,firstName:t.billingInformations.firstName,lastName:t.billingInformations.lastName,zipCode:t.billingInformations.zipCode})),(0,a.Mz)(oe,t=>t.subscription)),Xt=(0,a.Mz)(oe,t=>{var s;return null===(s=t.subscriptionLimits)||void 0===s||null===(s=s.services)||void 0===s||null===(s=s.domain)||void 0===s||null===(s=s.domain)||void 0===s?void 0:s.max}),Ht=(0,a.Mz)(oe,t=>t.plan?t.plan.maxActiveUser>1?"TEAM":"PREMIUM":null),Gt=(0,a.Mz)(oe,t=>{var s;return!!t.plan&&(null==t||null===(s=t.plan)||void 0===s?void 0:s.maxActiveUser)>1}),It=((0,a.Mz)(oe,t=>{var s;return 1===(null==t||null===(s=t.plan)||void 0===s?void 0:s.maxActiveUser)}),(0,a.Mz)(oe,t=>t.plan)),At=((0,a.Mz)(oe,t=>({subscription:t.subscription,billingInformations:t.billingInformations})),(0,a.Mz)(oe,t=>t.billingInformationsLoaded)),Wt=(0,a.Mz)(oe,t=>t.subscriptionLoaded),Jt=(0,a.Mz)(oe,t=>t.subscriptionUpdating),po=((0,a.Mz)(oe,t=>t.subscriptionLoaded&&t.billingInformationsLoaded),(0,a.Mz)(oe,t=>{var s;return!(null==t||null===(s=t.activeIdentity)||void 0===s||!s.username)})),fo=(0,a.Mz)(oe,t=>t.activeIdentityUpdating),go=(0,a.Mz)(oe,t=>t.activeIdentityUpdated),To=(0,a.Mz)(oe,t=>{var s;return(null==t||null===(s=t.activeIdentity)||void 0===s?void 0:s.isRoot)||(null==t?void 0:t.isAdministrator)}),Ue=(0,a.Mz)(oe,t=>t.userRolesAndTeamsLoaded),Kt=(0,a.Mz)(oe,t=>t.userTeams),Qt=(0,a.Mz)(oe,t=>t.userTeamsLoading),Zt=(0,a.Mz)(oe,t=>t.userTeamsLoaded),qt=((0,a.Mz)(oe,t=>t.userRoles),(0,a.Mz)(oe,t=>t.userRolesLoading)),xt=(0,a.Mz)(oe,t=>t.userRolesLoaded),Vt=(0,a.Mz)(oe,t=>t.errorMessage),_t=(0,a.Mz)(oe,t=>t.setupSsoSessionSuccess),We=(0,a.Mz)(oe,t=>t.mfa),rt=((0,a.Mz)(oe,t=>t.getMfaLoading),(0,a.Mz)(oe,t=>t.getMfaLoaded),(0,a.Mz)(oe,t=>t.getMfaError),(0,a.Mz)(oe,t=>t.verifyApplicationFactorLoading)),eo=(0,a.Mz)(oe,t=>t.verifyApplicationFactorLoaded),et=(0,a.Mz)(oe,t=>t.verifyApplicationFactorError),Bt=(0,a.Mz)(oe,t=>t.sendEmailOtpLoading),Ee=(0,a.Mz)(oe,t=>t.sendEmailOtpLoaded),jt=(0,a.Mz)(oe,t=>t.sendEmailOtpError),D=(0,a.Mz)(oe,t=>t.verifyEmailFactorLoading),me=(0,a.Mz)(oe,t=>t.verifyEmailFactorLoaded),re=(0,a.Mz)(oe,t=>t.verifyEmailFactorError),G=(0,a.Mz)(oe,t=>t.resetEmailFactorLoading),S=(0,a.Mz)(oe,t=>t.resetEmailFactorLoaded),y=(0,a.Mz)(oe,t=>t.resetEmailFactorError),k=(0,a.Mz)(oe,t=>t.resetApplicationFactorLoading),h=(0,a.Mz)(oe,t=>t.resetApplicationFactorLoaded),x=(0,a.Mz)(oe,t=>t.resetApplicationFactorError),L=(0,a.Mz)(oe,t=>t.updateDefaultFactorLoading),Z=((0,a.Mz)(oe,t=>t.updateDefaultFactorLoaded),(0,a.Mz)(oe,t=>t.updateDefaultFactorError)),U=(0,a.Mz)(oe,t=>t.createMfaApplicationFactorSecretLoading),M=(0,a.Mz)(oe,t=>t.createMfaApplicationFactorSecretLoaded),F=(0,a.Mz)(oe,t=>t.createMfaApplicationFactorSecretError),se=(0,a.Mz)(oe,t=>t.applicationSecret),ee=(0,a.UX)("environment"),de=(0,a.Mz)(ee,t=>t.region),X=(0,a.Mz)(ee,t=>({services:t.services,region:t.region,country:t.country,countryCode:t.countryCode})),ae=(0,a.Mz)(ee,t=>({iam:t.services.find(s=>"iam"===s.name&&s.region===t.region),region:t.region})),fe=(0,a.Mz)(ee,t=>t.countries),he=(0,a.Mz)(ee,t=>t.countriesLoaded),Le=(0,a.Mz)(ee,t=>t.countryCode),ye=(0,a.Mz)(ee,t=>t.device),ke=(0,a.Mz)(ee,t=>t.selectedLanguage),Oe=(0,a.Mz)(ee,t=>t.pendingLanguageSwitch),_e=(0,a.Mz)(ee,t=>t.supportedLanguages),tt=(0,a.Mz)(ee,t=>t.updateRunning),De=(0,a.Mz)(ee,t=>t.updateRolesAndPoliciesSuccess),ze=(0,a.Mz)(ee,t=>t.pendingUpdates),Ne=((0,a.Mz)(ee,t=>t.cgu),(0,a.Mz)(ee,t=>t.stripeLoaded)),ho=(0,a.Mz)(ee,t=>t.cookiesConsentConfiguration),bt=(0,a.Mz)(ee,t=>t.cookiesConsentSetByUser),So=((0,a.Mz)(ee,t=>t.loadServicesError),(0,a.Mz)(ee,t=>t.players)),Eo=(0,a.Mz)(So,Te),to=t=>(0,a.Mz)(Eo,s=>s.find(J=>J.id===t)),oo=(0,a.Mz)(ee,t=>t.onBoarding),ao=(0,a.UX)("script"),ro=(0,a.Mz)(ao,t=>t.scripts),Ae=(0,a.UX)("domain"),no=(0,a.Mz)(Ae,t=>{var s,J;return t.currentDomainLoaded&&(null===(s=t.currentDomain)||void 0===s?void 0:s.domain)&&!(null!==(J=t.currentDomain)&&void 0!==J&&J.team)}),so=(0,a.Mz)(Ae,t=>t.mainDomain),io=(0,a.Mz)(Ae,t=>t.currentDomain),co=(0,a.Mz)(Ae,t=>t.currentDomainLoaded),lo=(0,a.Mz)(Ae,t=>t.currentDomainLoading),uo=(0,a.Mz)(Ae,t=>t.currentDomainProviders),nt=((0,a.Mz)(Ae,t=>t.domainToCreate),(0,a.Mz)(Ae,t=>t.domainCreating),(0,a.Mz)(Ae,t=>t.domainCreatingError),(0,a.Mz)(Ae,t=>{var s;return!(null!==(s=t.currentDomain)&&void 0!==s&&s.team)})),Co=(0,a.Mz)(Ae,t=>{var s;return!(null===(s=t.currentDomain)||void 0===s||!s.team)}),Io=(0,a.Mz)(Ae,t=>t.loadDomainError),Ro=(0,a.Mz)(Ae,t=>{var s;if(null!=t&&null!==(s=t.currentDomain)&&void 0!==s&&null!==(s=s.options)&&void 0!==s&&s.transfer){const{availabilityDuration:J,customization:Re,promotion:Lt,notification:mo,password:Mo,preview:Jo}=t.currentDomain.options.transfer;return J.active||Re.active||Lt.active||mo.sender.active||mo.link.active||mo.noDownload.active||mo.download.active||Mo.active||Jo.active}return!0}),Uo=(0,a.Mz)(Ae,t=>{var s;return null!=t&&null!==(s=t.currentDomain)&&void 0!==s&&null!==(s=s.options)&&void 0!==s&&s.transfer?t.currentDomain.options.transfer:E.h.defaultManagedDomainSettings.transfer}),ko=(0,a.Mz)(Ae,t=>{var s;return null!=t&&null!==(s=t.currentDomain)&&void 0!==s&&null!==(s=s.options)&&void 0!==s&&null!==(s=s.dropbox)&&void 0!==s&&s.transfer?t.currentDomain.options.dropbox.transfer:E.h.defaultManagedDomainSettings.transfer}),Fo=t=>(0,a.Mz)(ko,Uo,(s,J)=>t?s:J),wo=(0,a.UX)("payment"),$t=(0,a.Mz)(wo,t=>t),Lo=(0,a.Mz)($t,t=>t.paymentProcessing),$o=(0,a.Mz)($t,t=>t.paymentSucceed),Oo=(0,a.Mz)($t,t=>t.paymentFailed),Do=((0,a.Mz)($t,t=>t.paymentError),(0,a.Mz)($t,t=>t.paypal)),Ao=(0,a.Mz)($t,t=>t.resetPayment),Vo=(0,a.Mz)($t,t=>t.paymentType),Go=(0,a.Mz)($t,t=>t.cardToken),xo=(0,a.UX)("theme"),_o=(0,a.Mz)(xo,t=>t.theme),zo=(0,a.Mz)(xo,t=>t.themeLoading),bo=(0,a.Mz)(xo,t=>t.themeLoaded),yo=(0,a.UX)("captcha"),No=(0,a.Mz)(yo,t=>t.verifyCaptchaResponse),Ho=(0,a.Mz)(yo,t=>t.verifyCaptchaStarted),Bo=(0,a.Mz)(yo,t=>t.verifyCaptchaLoading),Wo=(0,a.Mz)(yo,t=>t.verifyCaptchaLoaded),jo=(0,a.Mz)(yo,t=>t.verifyCaptchaError)},41229:(pe,N,r)=>{"use strict";r.d(N,{O:()=>i});var o=r(61142),e=r(58527);const c=(n,E)=>({width:n,height:E}),a=(n,E,l,v)=>({"btn-new":n,"button-mobile":E,red:l,white:v});function u(n,E){1&n&&(e.qex(0),e.j41(1,"div",3),e.nrm(2,"div",4),e.k0s(),e.bVm())}function f(n,E){if(1&n&&e.EFF(0),2&n){const l=e.XpG();e.SpI(" ",l.text," ")}}let i=(()=>{var n;class E{constructor(){this.type="button",this.device="desktop",this.color="red",this.onClick=new e.bkB}handleClick(){this.onClick.emit()}}return(n=E).\u0275fac=function(v){return new(v||n)},n.\u0275cmp=e.VBU({type:n,selectors:[["app-smash-button"]],inputs:{type:"type",device:"device",disabled:"disabled",loading:"loading",color:"color",text:"text",width:"width",height:"height"},outputs:{onClick:"onClick"},standalone:!0,features:[e.aNF],decls:4,vars:15,consts:[["notLoading",""],[3,"click","disabled","type","ngClass"],[4,"ngIf","ngIfElse"],[1,"loading-spinner-container"],[1,"button-loading-spinner"]],template:function(v,C){if(1&v){const g=e.RV6();e.j41(0,"button",1),e.bIt("click",function(){return e.eBV(g),e.Njj(C.handleClick())}),e.DNE(1,u,3,0,"ng-container",2)(2,f,1,1,"ng-template",null,0,e.C5r),e.k0s()}if(2&v){const g=e.sdS(3);e.Aen(e.l_i(7,c,C.width,C.height)),e.Y8G("disabled",C.disabled)("type",C.type)("ngClass",e.ziG(10,a,"desktop"===C.device,"mobile"===C.device,"red"===C.color,"white"===C.color)),e.R7$(),e.Y8G("ngIf",C.loading)("ngIfElse",g)}},dependencies:[o.MD,o.YU,o.bT],styles:['@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.loading-spinner-grey[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #333;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.button-loading-spinner[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:2rem;height:2rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-white[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-container[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}']}),E})()},71635:(pe,N,r)=>{"use strict";r.d(N,{c:()=>l});var o=r(61142),e=r(1936);var u=r(96542),f=r(36243),i=r(58527);function n(v,C){if(1&v){const g=i.RV6();i.qex(0),i.j41(1,"div",2),i.EFF(2),i.k0s(),i.j41(3,"div",3),i.bIt("click",function(){i.eBV(g);const B=i.XpG();return i.Njj(B.toggleSecretKey())}),i.EFF(4," MFA_CHALLENGE_APPLICATION_SHOW_QR_CODE_LABEL "),i.k0s(),i.bVm()}if(2&v){const g=i.XpG();i.R7$(2),i.JRh(g.secret)}}function E(v,C){if(1&v){const g=i.RV6();i.qex(0),i.j41(1,"div",4),i.nrm(2,"qrcode",5),i.k0s(),i.j41(3,"div",3),i.bIt("click",function(){i.eBV(g);const B=i.XpG();return i.Njj(B.toggleSecretKey())}),i.EFF(4," MFA_CHALLENGE_APPLICATION_SHOW_SECRET_KEY_LABEL"),i.k0s(),i.bVm()}if(2&v){const g=i.XpG();i.R7$(2),i.Y8G("qrdata",g.authenticatorUrl)}}let l=(()=>{var v;class C{constructor(){this.applicationSecretKeyDisplayed=!1}ngOnInit(){this.buildAuthenticatorUrl()}buildAuthenticatorUrl(){this.authenticatorUrl=function c({secret:v,account:C}){const{issuer:g}=e.h.mfaAuthenticatorApplication;return`otpauth://totp/${encodeURIComponent(g)}:${function a(v){return encodeURIComponent(v).replace(/%40/g,"@")}(C)}?secret=${encodeURIComponent(v)}&issuer=${encodeURIComponent(g)}&digits=6`}({account:this.username,secret:this.secret})}toggleSecretKey(){this.applicationSecretKeyDisplayed=!this.applicationSecretKeyDisplayed}}return(v=C).\u0275fac=function(H){return new(H||v)},v.\u0275cmp=i.VBU({type:v,selectors:[["app-smash-mfa-authenticator-setup"]],inputs:{secret:"secret",username:"username"},standalone:!0,features:[i.aNF],decls:3,vars:2,consts:[[1,"mfa-authenticator-setup-container"],[4,"ngIf"],["translate","",1,"application-secret-key"],["translate","",1,"application-secret-key-label",3,"click"],[1,"qrcode-container"],[3,"qrdata"]],template:function(H,B){1&H&&(i.j41(0,"div",0),i.DNE(1,n,5,1,"ng-container",1)(2,E,5,1,"ng-container",1),i.k0s()),2&H&&(i.R7$(),i.Y8G("ngIf",B.applicationSecretKeyDisplayed),i.R7$(),i.Y8G("ngIf",!B.applicationSecretKeyDisplayed))},dependencies:[u.h,u.Mm,o.MD,o.bT,f.f,f.c],styles:[".mfa-authenticator-setup-container[_ngcontent-
1%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.mfa-authenticator-setup-container[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;padding:2rem}.application-secret-key-label[_ngcontent-%COMP%]{cursor:pointer;color:#ea5159;font-weight:700;margin-top:1rem}.application-secret-key[_ngcontent-%COMP%]{font-weight:700;margin-top:1rem;background-color:#eee;border:.1rem solid #ccc;border-radius:.5rem;padding:.5rem}"]}),C})()},31629:(pe,N,r)=>{"use strict";r.d(N,{V:()=>u});var o=r(61142),e=r(58527),c=r(30509);const a=new e.nKC("tooltip",{providedIn:"root",factory:()=>c.dg.\u0275dir});let u=(()=>{var f;class i extends c.dg{onScroll(E){this.ngOnDestroy()}constructor(E,l,v,C,g,H){super(E,l,v,C,g),this._elRef=l}ngOnInit(){super.ngOnInit(),this.tooltipValue=this.appSmashTooltip}ngOnDestroy(){super.ngOnDestroy()}}return(f=i).\u0275fac=function(E){return new(E||f)(e.rXU(a),e.rXU(e.aKT),e.rXU(e.OM3),e.rXU(e.o8S),e.rXU(e.zZn),e.rXU(o.qQ))},f.\u0275dir=e.FsC({type:f,selectors:[["","appSmashTooltip",""]],hostBindings:function(E,l){1&E&&e.bIt("scroll",function(C){return l.onScroll(C)},!1,e.tSv)},inputs:{appSmashTooltip:"appSmashTooltip"},exportAs:["appSmashTooltip"],features:[e.Vt3]}),i})()},34600:(pe,N,r)=>{"use strict";r.d(N,{A:()=>i});var o=r(57932),e=r.n(o),c=r(53559),a=r.n(c),u=r(21733),f=r.n(u);function i(n,{cleanKeys:E=[],cleanValues:l=[],emptyArrays:v=!0,emptyObjects:C=!0,emptyStrings:g=!0,nullValues:H=!0,undefinedValues:B=!0}={}){return e()(n,(V,P,b)=>{if(!E.includes(b)&&((Array.isArray(P)||a()(P))&&(P=i(P,{cleanKeys:E,cleanValues:l,emptyArrays:v,emptyObjects:C,emptyStrings:g,nullValues:H,undefinedValues:B})),!l.includes(P)&&!(C&&a()(P)&&f()(P))&&(!v||!Array.isArray(P)||P.length)&&(!g||""!==P)&&(!H||null!==P)&&(!B||void 0!==P))){if(Array.isArray(V))return V.push(P);V[b]=P}})}},39624:(pe,N,r)=>{"use strict";r.d(N,{B:()=>c,K:()=>e});var o=r(40419);function e(a){new Set(a.map(f=>f.name)).forEach(f=>{const i=a.filter(E=>E.name===f),n={};i.forEach(({url:E,region:l})=>{n[l]=E}),o.$.setHosts(f,n)})}function c(a){o.$.setRegion(a)}},59549:(pe,N,r)=>{"use strict";r.d(N,{$L:()=>I,BV:()=>V,FC:()=>K,J4:()=>ie,ON:()=>H,QN:()=>ce,Yq:()=>w,ah:()=>ue,at:()=>q,b0:()=>u,fR:()=>Ie,g1:()=>ve,gi:()=>Q,hA:()=>Te,kX:()=>f,mP:()=>d,sh:()=>m,vB:()=>g,vP:()=>le});var o=r(34600),e=r(10785),c=r.n(e);const a={REGIONS:{"eu-west-1":"a","eu-west-2":"b","eu-west-3":"c","eu-central-1":"d","us-east-1":"e","us-east-2":"f","us-west-1":"g","us-west-2":"h","ca-central-1":"i","sa-east-1":"j","ap-northeast-1":"k","ap-northeast-2":"l","ap-south-1":"m","ap-southeast-1":"n","ap-southeast-2":"o","eu-north-1":"p"},TYPES:{transfer:"t",report:"r",officer:"o",service:"s",account:"a",user:"u",plan:"p",team:"7",promotion:"9"}};function u(R){return typeof R>"u"}function f(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}function g(R){return!!R&&B(R)<B()}function H(R){return!!R&&B(R)>B()}function B(R=new Date){return Math.round(new Date(R).getTime()/1e3)}function V(R){return function E(R){return"number"==typeof R}(R)&&isFinite(R)}function K(R,A){if(A<=0)return Math.round(R);const _=10**A;return Math.round(R*_)/_}function I(R){return(0,o.A)(R)}function d(R){return function ge(R){const A={};for(const _ in R)A[R[_]]=_;return A}(function p(){return a.REGIONS}())[R[R.length-2]]}function m(R,A,_=1){const ne=[];let Se;for(;Se=A.exec(R);)ne.push(Se[_]);return ne}function w(R="en",A,_){c().locale(R);const ne=c().utc(A).local();switch(_){case"day":default:return ne.format("fr"===R?"D MMM":"MMM D");case"week":return"fr"===R?ne.startOf("isoWeek").format("D MMM")+" - "+ne.endOf("isoWeek").format("D MMM"):ne.startOf("isoWeek").format("MMM D")+" - "+ne.endOf("isoWeek").format("MMM D");case"month":return ne.format("MMM YYYY");case"year":return ne.format("YYYY")}}function ve(R){let A,_;switch(R){case"7_DAYS":return A=c()().subtract(7,"days").format("YYYY-MM-DD"),_=c()().format("YYYY-MM-DD"),{startDate:A,endDate:_};case"4_WEEKS":return A=c()().startOf("isoWeek").subtract(3,"weeks").format("YYYY-MM-DD"),_=c()().format("YYYY-MM-DD"),{startDate:A,endDate:_};case"3_MONTHS":return A=c()().startOf("month").subtract(2,"months").format("YYYY-MM-DD"),_=c()().format("YYYY-MM-DD"),{startDate:A,endDate:_};case"12_MONTHS":return A=c()().startOf("month").subtract(11,"months").format("YYYY-MM-DD"),_=c()().format("YYYY-MM-DD"),{startDate:A,endDate:_};case"LAST_YEAR":return A=c()().startOf("year").subtract(1,"year").format("YYYY-MM-DD"),_=c()().startOf("year").subtract(1,"year").endOf("year").format("YYYY-MM-DD"),{startDate:A,endDate:_};default:return A=c()().subtract(7,"d").format("YYYY-MM-DD"),_=c()().format("YYYY-MM-DD"),{startDate:A,endDate:_}}}function ue(R){let A,_;switch(R){case"TODAY":return A=c()().format("YYYY-MM-DD"),_=c()().format("YYYY-MM-DD"),{startDate:A,endDate:_};case"THIS_WEEK":return A=c()().startOf("isoWeek").format("YYYY-MM-DD"),_=c()().startOf("isoWeek").format("YYYY-MM-DD"),{startDate:A,endDate:_};case"THIS_MONTH":return A=c()().startOf("month").format("YYYY-MM-DD"),_=c()().startOf("month").format("YYYY-MM-DD"),{startDate:A,endDate:_};case"THIS_YEAR":return A=c()().startOf("year").format("YYYY-MM-DD"),_=c()().startOf("year").format("YYYY-MM-DD"),{startDate:A,endDate:_};case"LAST_YEAR":return A=c()().startOf("year").subtract(1,"year").format("YYYY-MM-DD"),_=c()().startOf("year").subtract(1,"year").format("YYYY-MM-DD"),{startDate:A,endDate:_}}}function Ie(R,A,_){return Array.from({length:(A-R)/_+1},(ne,Se)=>R+Se*_)}function Te(R,A){const _=R.default.toString().length>3;return{default:_?R.default/A:R.default,min:_?R.min/A:R.min,max:_?R.max/A:R.max}}function Q(R,A,_,ne){const Se=R&&Number.isFinite(null==A?void 0:A.min)&&Number.isFinite(null==A?void 0:A.max)&&A.min>=1&&A.max>=A.min,[xe,Fe]=Se?[A.min,A.max]:[1,_];return Ie(xe,Fe,1).map(Me=>({name:ne(Me),value:Me}))}function ce(R){return JSON.parse(JSON.stringify(R,(_,ne)=>"string"==typeof ne?ne.trim():ne))}function q(R,A,_="."){return A?A.split(_).reduce((Se,xe)=>Se&&Se[xe],R):R}function le(R){return R&&""!==R.replace(/[\n\r]/g,"")?R:""}function ie(R,A,_){const ne=Math.pow(2,R)*A;return _&&ne>_?_:ne}},36972:(pe,N,r)=>{"use strict";r.d(N,{x:()=>e});var o=r(1936);function e(u){return function c(u){return!!o.h.supportedLanguages.find(f=>u===f.id)}(u)?u:o.h.languageFallback}},85621:(pe,N,r)=>{"use strict";r.d(N,{$z:()=>b,D_:()=>V,G6:()=>te,Gw:()=>H,IX:()=>u,Lm:()=>P,TG:()=>n,TW:()=>v,Ti:()=>B,Tj:()=>a,UN:()=>z,Yn:()=>f,ZI:()=>i,a3:()=>E,c$:()=>l,dn:()=>K,tN:()=>C});var o=r(1936),e=r(97144);const c=/fromsmash.com|fromsmash.ninja/;function a($){const I=$.split(".");return I.slice(0).slice(-(4===I.length?3:2)).join(".")}function u(){const $=window.location.protocol,I=window.location.port;return $+"//"+e.c.appDomain+(I?":"+I:"")}function f(){const I=window.location.href.split("/");return I[0]+"//"+I[2]}function i($){return new RegExp(`^(www.)?${e.c.appDomain}`).test($)}function n(){if(typeof window<"u"){const{protocol:$,hostname:I,port:p}=window.location;if(!window.location.hostname.match(c))return`${$}//${I}${p?":"+p:""}`;{const[,ge]=I.match(o.h.domainRegexp);return`${$}//${ge}${p?":"+p:""}`}}}function E(){return!c.test(window.location.hostname)}function l(){if(typeof window<"u"){const{hostname:$}=window.location;if(E())return $;const[,I]=$.match(o.h.domainRegexp);return`.${I}`}}
1function v(){if(typeof window<"u"){const{hostname:$}=window.location,I=$.match(o.h.domainRegexp);if(I&&I.length){const[,p]=I;return`.${p}`}}}function C($){const I=$.match(o.h.domainRegexp);if(I&&I.length){const[,p]=I;return`.${p}`}}function H(){const $=function g(){if(typeof window<"u")return window.location.pathname}().split("/");return $.slice(0,$.length-1).join("/")}function B($){let I;const j=$.match(/\/(fr|de|pt|it|es)?\/?([|signin|signup\/plan?\/[a-zA-Z0-9\s%]+)/),ge=/^en|fr|de|pt|it|es$/;if(j[1]){const[d]=j[1].match(ge);I=d&&j[2]?j[2]:""}else I=j[2]?j[2]:"";return I}function V($){if($.split("/")[1]&&2!==$.split("/")[1].length)return"en";const p=$.match(/\/(fr|de|de|pt|it|es)?\/?(|signin|signup)?/);return p[1]?p[1]:"en"}function P($){if(window.location.hostname.match(c)){const[,p]=window.location.hostname.match(o.h.regexpDomainExtension);window.location.href=`${window.location.protocol}//${o.h.redirection.main}${p}${window.location.port?":"+window.location.port:""}/account/team/${$}/transfers/sent`}else window.location.href=`${window.location.protocol}//${window.location.hostname}${window.location.port?":"+window.location.port:""}/account/team/${$}/transfers/sent`}function b(){const[,$]=document.location.hostname.match(o.h.regexpDomainExtension);window.location.href=document.location.protocol+"//"+o.h.redirection.main+$+(window.location.port?":"+window.location.port:"")}function K($){if(!$||typeof document>"u"||!document.referrer)return!1;try{return new URL(document.referrer).hostname===$}catch{return!1}}function te($){if(!$||typeof window>"u")return!1;const I=W($);return!I||I===window.location.hostname||typeof document<"u"&&!!document.referrer&&W(document.referrer)===I}function W($){try{return new URL($.includes("://")?$:`https://${$}`).hostname||void 0}catch{return}}function z(){return!!window.location.hostname.match(e.c.appDomain)}},69711:(pe,N,r)=>{"use strict";r.d(N,{r:()=>c});var o=r(1936),e=r(8330);function c(){return{[o.h.resourceTagKeys.applicationID]:o.h.resourceTagValues.applicationID,[o.h.resourceTagKeys.version]:e.P.r}}},8509:(pe,N,r)=>{"use strict";r.d(N,{$i:()=>f,Qh:()=>e,_T:()=>u,d0:()=>o,iM:()=>a,m8:()=>c});const o=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/,e=/(?:http:|https:|)\/\/(?:player.|www.)?vimeo\.com\/(?:(?:groups\/|showcase\/|album\/)[0-9]+\/videos?\/|channels\/[a-z0-9_.+-]+\/|video\/|embed\/|watch\?\S*v=|v\/)?(\d*)/;function c(i){let n,E;return i.match(o)?(n=i.match(o),E={url:i,id:n[1],type:"Youtube"}):i.match(e)&&(n=i.match(e),E={url:i,id:n[1],type:"Vimeo"}),E}function a(i){return i?i.split("/"):null}function u(i,n,E){var v,l=new RegExp("[&\\?]"+n+"=");return l.test(i)?(l=new RegExp("([&?])"+n+"=(.+)"),i=i.replace(l,"$1"+n+"="+E)):i=(null===(v=i)||void 0===v?void 0:v.indexOf("?"))>-1?i+"&"+n+"="+E:i+"?"+n+"="+E,i}function f(i,n){return i.match(n)?i:null}},13683:(pe,N,r)=>{"use strict";r.d(N,{I1:()=>i,n_:()=>n});var o=r(1936);function c(E,l){return f(E/100*l)}function u(E,l){return f(E/100*l+E)}function f(E,l=2){const v=Math.pow(10,l);if(E*=v,isNaN(E))throw new Error("Value must be an integer");const C=Math.sign(E),g=E%1==.5*C,H=Math.floor(E);return g&&C>0&&(E=H+C),(g?E:Math.round(E))/v}function i({countryCode:E,priceExclTax:l},v,C){const g={countryCode:E,vatNumber:C};if(!1===v.eu)return{...g,percent:0,priceExclTax:l,priceInclTax:l,priceDiff:0,vat:0};if(o.h.countryCodesVAT.indexOf(v.countryCode)>-1)return{...g,percent:v.percent,priceExclTax:l,priceInclTax:u(l,v.percent),priceDiff:f(u(l,v.percent)-l),vat:c(l,v.percent)};if(C)return{...g,percent:0,priceExclTax:l,priceInclTax:l,priceDiff:0,vat:0};if(!l||!v.percent)throw new Error("priceExclTax and/or country.percent is missing");return{...g,percent:v.percent,priceExclTax:l,priceInclTax:u(l,v.percent),priceDiff:f(u(l,v.percent)-l),vat:c(l,v.percent)}}function n(E){return E.sort((l,v)=>l.label>v.label?1:v.label>l.label?-1:0).map(l=>{if(l.related){const v=E.find(C=>C.countryCode===l.related);return{...l,eu:v.eu,percent:v.percent,currency:o.h.Currencies[l.currency]?l.currency:o.h.Currencies.usd.iso3}}return{...l,currency:o.h.Currencies[l.currency]?l.currency:o.h.Currencies.usd.iso3}})}},18471:(pe,N,r)=>{"use strict";r.d(N,{S:()=>W});var o=r(58527),e=r(56106),c=r(65062),a=r(61142),u=r(96542),f=r(31629);const i=["input"],n=[[["","error",""]]],E=["[error]"],l=(z,$,I,p,j)=>({focused:z,disabled:$,readonly:I,processing:p,error:j}),v=z=>({count:z});function C(z,$){if(1&z&&(o.j41(0,"div",8)(1,"span"),o.EFF(2),o.k0s()()),2&z){const I=o.XpG();o.R7$(2),o.JRh(I.title)}}function g(z,$){if(1&z&&(o.j41(0,"div",9)(1,"span"),o.EFF(2),o.k0s()()),2&z){const I=o.XpG();o.R7$(2),o.JRh(I.prefix)}}function H(z,$){if(1&z&&(o.j41(0,"div",10),o.EFF(1),o.k0s()),2&z){const I=o.XpG();o.Y8G("translateParams",o.eq3(2,v,I.value)),o.R7$(),o.JRh(I.suffix)}}function B(z,$){if(1&z){const I=o.RV6();o.j41(0,"div",11),o.bIt("click",function(){o.eBV(I);const j=o.XpG();return o.Njj(j.toggleIcon())}),o.k0s()}if(2&z){const I=o.XpG(),p=o.sdS(9);o.ZvI("input-suffix input-icon ",I.iconClass,""),o.Y8G("display",!!I.tooltipContent)("appSmashTooltip",p)("placement",I.defaultTooltipDirection)("autoPlacement",!0)}}function V(z,$){if(1&z&&(o.j41(0,"div",12),o.EFF(1),o.k0s()),2&z){const I=o.XpG();o.R7$(),o.SpI(" ",I.tooltipContent," ")}}let W=(()=>{var z;class ${constructor(p,j,ge){this.renderer=p,this.clipboardService=j,this.ref=ge,this.type="text",this.size="medium",this.borderStyle="bottom",this.placeholder="",this.disabled=!1,this.readonly=!1,this.processing=!1,this.autocapitalize="none",this.formControlName="",this.autocomplete="off",this.copyEnabled=!1,this.valueChange=new o.bkB,this.copy=new o.bkB,this.inputFocus=new o.bkB,this.inputBlur=new o.bkB,this.inputBorderClasses={full:"border-full",bottom:"border-bottom"},this.inputFocused=!1,this.passwordVisible=!1,this.tooltipVisible=!1,this.defaultTooltipDirection="right",this.onChange=()=>{},this.onTouched=()=>{},this.validateFn=()=>{}}ngOnInit(){"password"===this.type&&(this.iconType="password",this.iconClass="icon-smash_close_eye"),this.tooltipContent&&(this.iconClass="icon-smash_informations"),this.copyEnabled&&(this.iconType="copy",this.iconClass="icon-smash_copy")}ngAfterContentChecked(){this.ref.detectChanges()}togglePassword(){this.disabled||(this.passwordVisible=!this.passwordVisible,this.passwordVisible?(this.iconClass="icon-smash_open_eye",this.renderer.setAttribute(this.input.nativeElement,"type","text")):(this.iconClass="icon-smash_close_eye",this.renderer.setAttribute(this.input.nativeElement,"type","password")))}toggleCopy(){this.value&&(this.clipboardService.copyFromContent(this.value),this.copy.emit(this.value))}toggleIcon(){switch(this.iconType){case"password":this.togglePassword();break;case"copy":this.toggleCopy()}}handleMainClick(){"copy"===this.iconType&&this.toggleCopy()}onInputFocus(p){this.inputFocused=!0,this.inputFocus.emit(p)}onInputFocusOut(p){this.inputFocused=!1,this.inputBlur.emit(p)}set value(p){this._value=p,this.onChange(p),this.onTouched(),this.valueChange.emit(p)}get value(){return this._value}writeValue(p){this._value=null!=p?p:null}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}handleChange(p){"email"===this.type&&(this.value=p.target.value.toLowerCase())}focus(){this.input.nativeElement.focus()}}return(z=$).\u0275fac=function(p){return new(p||z)(o.rXU(o.sFG),o.rXU(c.WW),o.rXU(o.gRc))},z.\u0275cmp=o.VBU({type:z,selectors:[["app-smash-input"]],viewQuery:function(p,j){if(1&p&&o.GBs(i,5),2&p){let ge;o.mGM(ge=o.lsd())&&(j.input=ge.first)}},inputs:{type:"type",size:"size",borderStyle:"borderStyle",placeholder:"placeholder",disabled:"disabled",readonly:"readonly",processing:"processing",autocapitalize:"autocapitalize",formControlName:"formControlName",error:"error",autocomplete:"autocomplete",title:"title",prefix:"prefix",suffix:"suffix",maxLength:"maxLength",copyEnabled:"copyEnabled",tooltipContent:"tooltipContent",max:"max",_value:[o.Mj6.None,"value","_value"]},outputs:{valueChange:"valueChange",copy:"copy",inputFocus:"inputFocus",inputBlur:"inputBlur"},features:[o.Jv_([{provide:e.kq,useExisting:(0,o.Rfq)(()=>z),multi:!0}])],ngContentSelectors:E,decls:10,vars:28,consts:[["input",""],["informationsTooltipTemplate",""],[3,"click","for","ngClass"],["class","input-title",4,"ngIf"],["class","input-prefix",4,"ngIf"],["min","1",1,"input",3,"ngModelChange","change","focus","focusout","value","ngModel","disabled"],["class","input-suffix","translate","",3,"translateParams",4,"ngIf"],["contentType","template","hide-delay","100","theme","light",3,"class","display","appSmashTooltip","placement","autoPlacement","click",4,"ngIf"],[1,"input-title"],[1,"input-prefix"],["translate","",1,"input-suffix",3,"translateParams"],["contentType","template","hide-delay","100","theme","light",3,"click","display","appSmashTooltip","placement","autoPlacement"],[1,"tooltip-content"]],template:function(p,j){if(1&p){const ge=o.RV6();o.NAR(n),o.j41(0,"label",2),o.bIt("click",function(){return o.eBV(ge),o.Njj(j.handleMainClick())}),o.DNE(1,C,3,1,"div",3)(2,g,3,1,"div",4),o.j41(3,"input",5,0),o.mxI("ngModelChange",function(T){return o.eBV(ge),o.DH7(j.value,T)||(j.value=T),o.Njj(T)}),o.bIt("change",function(T){return o.eBV(ge),o.Njj(j.handleChange(T))})("focus",function(T){return o.eBV(ge),o.Njj(j.onInputFocus(T))})("focusout",function(T){return o.eBV(ge),o.Njj(j.onInputFocusOut(T))}),o.k0s(),o.DNE(5,H,2,4,"div",6)(6,B,1,7,"div",7),o.k0s(),o.SdG(7),o.DNE(8,V,2,1,"ng-template",null,1,o.C5r)}2&p&&(o.STu("base-input-container ",j.inputBorderClasses[j.borderStyle]," ",j.size,""),o.Y8G("for",j.formControlName)("ngClass",o.s1E(22,l,j.inputFocused,j.disabled,j.readonly,j.processing,j.error)),o.R7$(),o.Y8G("ngIf",!!j.title),o.R7$(),o.Y8G("ngIf",!!j.prefix),o.R7$(),o.Y8G("value",j.value),o.R50("ngModel",j.value),o.Y8G("disabled",!(!j.disabled&&!j.processing)),o.BMQ("name",j.formControlName)("type",j.type)("placeholder",j.placeholder)("readonly",j.readonly?"":null)("invalid",j.error?"":null)("autocapitalize",j.autocapitalize)("maxlength",j.maxLength)("max",j.max)("autocomplete",j.autocomplete),o.R7$(2),o.Y8G("ngIf",!!j.suffix
1),o.R7$(),o.Y8G("ngIf",!!j.iconClass&&!j.disabled))},dependencies:[a.YU,a.bT,u.Mm,e.me,e.BC,e.vS,f.V],styles:[".base-input-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;-webkit-align-content:center;-ms-flex-line-pack:center;align-items:center;justify-content:center}.input-suffix[_ngcontent-%COMP%], .input-prefix[_ngcontent-%COMP%], .input-title[_ngcontent-%COMP%]{display:flex;-webkit-align-content:center;-ms-flex-line-pack:center;align-items:center;justify-content:center}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.base-input-container[_ngcontent-%COMP%]{height:100%;min-height:3rem;position:relative;border-bottom:.1rem solid #ccc;padding:0 1rem;background-color:#fff;font-family:Roboto,sans-serif}.base-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{min-width:2rem!important;font-size:1.4rem;font-family:Roboto,sans-serif;padding-left:0}.base-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#7f7f7f;opacity:1}.base-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-webkit-autofill{-webkit-box-shadow:inset 0 0 0px 9999px white}.base-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-ms-input-placeholder{opacity:1;font-size:1.4rem;color:#7f7f7f;padding:.1rem 0}.base-input-container.small[_ngcontent-%COMP%]{height:3rem}.base-input-container.medium[_ngcontent-%COMP%]{height:4rem}.base-input-container.focused[_ngcontent-%COMP%]{border-color:#333}.base-input-container.disabled[_ngcontent-%COMP%]{background-color:#f2f2f2}.base-input-container.disabled[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#ccc}.base-input-container.processing[_ngcontent-%COMP%]{opacity:.7}.base-input-container.readonly[_ngcontent-%COMP%]{cursor:pointer;background-color:#eee}.base-input-container.readonly[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{cursor:pointer}.base-input-container.error[_ngcontent-%COMP%]{border-color:#ea5159;color:#ea5159}.base-input-container.error[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#ea5159;font-size:1.4rem;font-family:Roboto,sans-serif}.base-input-container.error[_ngcontent-%COMP%]   .input-prefix[_ngcontent-%COMP%], .base-input-container.error[_ngcontent-%COMP%]   .input-suffix[_ngcontent-%COMP%], .base-input-container.error[_ngcontent-%COMP%]   .input-title[_ngcontent-%COMP%]{color:#ea5159}.input[_ngcontent-%COMP%]{border:none;color:#333;flex-grow:1;background-color:inherit}.border-full[_ngcontent-%COMP%]{border:.1rem solid #ccc;border-radius:.5rem}.border-bottom[_ngcontent-%COMP%]{border-bottom:.1rem solid #ccc}.input-prefix[_ngcontent-%COMP%], .input-suffix[_ngcontent-%COMP%]{font-size:1.4rem;color:#7f7f7f}.input-prefix[_ngcontent-%COMP%], .input-title[_ngcontent-%COMP%]{height:inherit;padding-top:.2rem;color:#7f7f7f;max-width:20rem}.input-prefix[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .input-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-title[_ngcontent-%COMP%]{color:#333}.input-suffix[_ngcontent-%COMP%]{height:inherit;min-width:-moz-fit-content;min-width:fit-content;color:#333}.input-icon[_ngcontent-%COMP%]{font-size:1.8rem;cursor:pointer;color:#333}.input-icon.icon-smash_informations[_ngcontent-%COMP%]{color:#ccc}.tooltip-content[_ngcontent-%COMP%]{background-color:#fafafa;color:#333;font-size:1.3rem;font-family:Roboto,sans-serif;text-align:left}[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%]     [error]{color:#ea5159;font-size:1.3rem;text-align:left;padding:1rem}"]}),$})()},56365:(pe,N,r)=>{"use strict";r.d(N,{t:()=>a});var o=r(61142),e=r(75118),c=r(58527);let a=(()=>{var u;class f{}return(u=f).\u0275fac=function(n){return new(n||u)},u.\u0275mod=c.$C({type:u}),u.\u0275inj=c.G2t({imports:[o.MD,e.iI]}),f})()},82719:(pe,N,r)=>{"use strict";r.d(N,{i:()=>te});var o=r(58527),e=r(20154),c=r(7738),a=r(64785),u=r(97184),f=r(1936),i=r(61142),n=r(71100),E=r(92509),l=r(75118);const v=["elementRef"],C=(W,z)=>({open:W,up:z}),g=W=>({"with-border":W}),H=W=>({"border-color":W}),B=(W,z)=>({"open-up":W,"open-down":z}),V=W=>[W];function P(W,z){if(1&W){const $=o.RV6();o.j41(0,"a",8),o.bIt("click",function(p){o.eBV($);const j=o.XpG().$implicit,ge=o.XpG();return o.Njj(ge.selectLanguage(p,j.id))}),o.EFF(1),o.k0s()}if(2&W){const $=o.XpG().$implicit;o.R7$(),o.JRh($.name)}}function b(W,z){if(1&W){const $=o.RV6();o.j41(0,"a",9),o.bIt("click",function(p){o.eBV($);const j=o.XpG().$implicit,ge=o.XpG();return o.Njj(ge.selectLanguage(p,j.id))}),o.EFF(1),o.k0s()}if(2&W){const $=o.XpG().$implicit,I=o.XpG();o.Y8G("routerLink",o.eq3(2,V,"/"+("en"===$.id?"":$.id)+(I.pathname?I.pathname:""))),o.R7$(),o.JRh($.name)}}function K(W,z){if(1&W&&(o.j41(0,"div"),o.DNE(1,P,2,1,"a",7)(2,b,2,4,"ng-template",null,1,o.C5r),o.k0s()),2&W){const $=o.sdS(3),I=o.XpG();o.R7$(),o.Y8G("ngIf","viewer"===I.headerLocation)("ngIfElse",$)}}let te=(()=>{var W;class z{constructor(I,p){this.store$=I,this.platformId=p,this.dropdownDirection="down",this.chevronColor="#CCC",this.withBorder=!1,this.menuToggle=!1,this.subscriptions=[],this.supportedLanguages=[],this.subscriptions.push(this.store$.pipe((0,c.E)(this.store$.select(e.qX),this.store$.select(e.Ev)),(0,a.F)()).subscribe(([j,ge,d])=>{var T;this.supportedLanguages=ge.filter(m=>m.id!==d),this.selectedLanguage=null===(T=ge.find(m=>m.id===d))||void 0===T?void 0:T.name}))}ngOnInit(){if((0,i.UE)(this.platformId)){const I=location.pathname.split("/");f.h.supportedLanguages.find(j=>j.id===I[1])&&I.splice(1,1),this.pathname=1===I.length?"/":I.join("/")}}selectLanguage(I,p){("en"===p||"viewer"===this.headerLocation)&&this.store$.dis
1patch(u.Vg.SelectLanguage({language:p}))}closeMenu(I){!0===this.menuToggle&&(this.menuToggle=!1)}toggleMenu(){this.menuToggle=!this.menuToggle}get dropdownDirectionCompute(){if((0,i.UE)(this.platformId))return window.innerHeight>660?this.dropdownDirection:"up"}}return(W=z).\u0275fac=function(I){return new(I||W)(o.rXU(n.il),o.rXU(o.Agw))},W.\u0275cmp=o.VBU({type:W,selectors:[["app-smash-select-lang"]],viewQuery:function(I,p){if(1&I&&o.GBs(v,5),2&I){let j;o.mGM(j=o.lsd())&&(p.elementRef=j.first)}},inputs:{dropdownDirection:"dropdownDirection",chevronColor:"chevronColor",withBorder:"withBorder",headerLocation:"headerLocation"},decls:8,vars:16,consts:[["elementRef",""],["default",""],[1,"languages",3,"clickOutside"],[1,"languages-menu",3,"click","ngClass"],[4,"ngFor","ngForOf"],[1,"current-language",3,"click","ngClass"],[1,"chevron",3,"ngStyle","ngClass"],[3,"click",4,"ngIf","ngIfElse"],[3,"click"],[3,"click","routerLink"]],template:function(I,p){if(1&I){const j=o.RV6();o.j41(0,"div",2),o.bIt("clickOutside",function(d){return o.eBV(j),o.Njj(p.closeMenu(d))}),o.j41(1,"div",3),o.bIt("click",function(){return o.eBV(j),o.Njj(p.toggleMenu())}),o.DNE(2,K,4,2,"div",4),o.k0s(),o.j41(3,"div",5,0),o.bIt("click",function(){return o.eBV(j),o.Njj(p.toggleMenu())}),o.j41(5,"div"),o.EFF(6),o.k0s(),o.nrm(7,"div",6),o.k0s()()}2&I&&(o.R7$(),o.Y8G("ngClass",o.l_i(6,C,p.menuToggle,"up"===p.dropdownDirectionCompute)),o.R7$(),o.Y8G("ngForOf",p.supportedLanguages),o.R7$(),o.Y8G("ngClass",o.eq3(9,g,p.withBorder)),o.R7$(3),o.JRh(p.selectedLanguage),o.R7$(),o.Y8G("ngStyle",o.eq3(11,H,p.chevronColor))("ngClass",o.l_i(13,B,p.menuToggle&&"up"===p.dropdownDirectionCompute,p.menuToggle&&"down"===p.dropdownDirectionCompute)))},dependencies:[i.YU,i.Sq,i.bT,i.B3,E.oG,l.Wk],styles:[".full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.languages[_ngcontent-%COMP%]{position:relative}.languages[_ngcontent-%COMP%]   .languages-menu[_ngcontent-%COMP%]{display:none;width:13rem;top:28px;border-radius:3px;right:0;background:#fff;color:#333;font-size:13px;line-height:3rem;border:solid 1px #ccc}.languages[_ngcontent-%COMP%]   .languages-menu.up[_ngcontent-%COMP%]{top:-15rem}.languages[_ngcontent-%COMP%]   .languages-menu.open[_ngcontent-%COMP%]{display:block;position:absolute}.languages[_ngcontent-%COMP%]   .languages-menu[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover{color:#7f7f7f}.languages[_ngcontent-%COMP%]   .languages-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{width:100%;display:block;padding:0 6px;cursor:pointer}.languages[_ngcontent-%COMP%]   .current-language[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:14px;cursor:pointer}.languages[_ngcontent-%COMP%]   .current-language.with-border[_ngcontent-%COMP%]{border:solid 1px;border-radius:3px;padding:4px 7px;border-color:#ccc}.languages[_ngcontent-%COMP%]   .current-language[_ngcontent-%COMP%]   .chevron[_ngcontent-%COMP%]{width:7px;height:7px;border-top-width:2px;border-right-width:2px;border-bottom-width:0px;border-left-width:0px;border-style:solid;transform:rotate(45deg) translateY(2px);transition:all .2s;margin-bottom:4px}.languages[_ngcontent-%COMP%]   .current-language[_ngcontent-%COMP%]   .chevron.open-up[_ngcontent-%COMP%]{transform:rotate(-45deg) translateY(2px)}.languages[_ngcontent-%COMP%]   .current-language[_ngcontent-%COMP%]   .chevron.open-down[_ngcontent-%COMP%]{transform:rotate(135deg) translateY(2px)}"]}),z})()},86839:(pe,N,r)=>{"use strict";r.d(N,{Y:()=>i});var o=r(84362),e=r(12787),c=r(84932),a=r(59549);const u=1e3,f=5e3;function i({retryConfig:n=[]}){return(0,o.F)((0,e.L)({delay:(E,l)=>{if(n.length>0){const v=n.find(C=>E instanceof C.error);if(v){const{delay:C=u,maxRetry:g}=v;if(l>=g)throw E;return(0,c.O)(v.exponentialBackoff?(0,a.J4)(l,C,f):C)}}throw E}}))}},26544:(pe,N,r)=>{"use strict";r.d(N,{N:()=>u});var o=r(84362),e=r(72523),c=r(6663),a=r(10967);function u(f=30,i=5e3){let n=0;return(0,o.F)((0,e.l)(E=>E.pipe((0,c.T)(l=>{if(0!==l.status&&400!==l.status){if(!(l.status>=500))throw l;if(++n>=f)throw l}}),(0,a.c)(i))))}},69303:(pe,N,r)=>{"use strict";r.d(N,{z:()=>c});var o=r(59549),e=r(58527);let c=(()=>{var a;class u{transform(i,n,E,l){if(E)switch(n){case"string":return this.sortArrayByStringWithParameter(i,E,l);case"date":return this.sortArrayByDateWithParameter(i,E,l);case"number":return this.sortArrayByNumberWithParameter(i,E,l);default:return i}else switch(n){case"string":return this.sortArrayByString(i,l);case"date":return this.sortArrayByDate(i,l);case"number":return this.sortArrayByNumber(i,l);default:return i}}sortArrayByString(i,n){return i.slice().sort((E,l)=>"asc"===n?E<l?-1:E>l?1:0:"desc"===n?E>l?-1:E<l?1:0:E<l?-1:E>l?1:0)}sortArrayByNumber(i,n){return i.slice().sort((E,l)=>"asc"!==n&&n?"desc"===n?l-E:void 0:E-l)}sortArrayByDate(i,n){return i.slice().sort((E,l)=>"asc"!==n&&n?"desc"===n?new Date(E).getTime()-new Date(l).getTime():void 0:new Date(l).getTime()-new Date(E).getTime())}sortArrayByStringWithParameter(i,n,E){return i.slice().sort((l,v)=>{const C=(0,o.at)(l,n),g=(0,o.at)(v,n);return"asc"===E?!C&&g?1:C&&!g?-1:C||g?C<g?-1:C>g?1:0:0:"desc"===E?!C&&g?-1:C&&!g?1:C||g?C>g?-1:C<g?1:0:0:C<g?-1:C>g?1:0})}sortArrayByNumberWithParameter(i,n,E){return i.slice().sort((l,v)=>{const C=(0,o.at)(l,n),g=(0,o.at)(v,n);return"asc"!==E&&E?"desc"===E?g-C:void 0:C-g})}sortArrayByDateWithParameter(i,n,E){return i.slice().sort((l,v)=>{const C=(0,o.at)(l,n),g=(0,o.at)(v,n);return"asc"!==E&&E?"desc"===E?new Date(C).getTime()-new Date(g).getTime():void 0:new Date(g).getTime()-new Date(C).getTime()})}}return(a=u).\u0275fac=function(i){return new(i||a)},a.\u0275pipe=e.EJ8({name:"arraySorter",type:a,pure:!0}),u})()},17849:(pe,N,r)=>{"use strict";r.d(N,{c:()=>a});var o=r(59549),e=r(58527),c=r(96542);let a=(()=>{var u;class f{constructor(n){this.translateService=n,this.dictionary=[{max:1e3,unitKey:"UNIT_B"},{max:1e6,unitKey:"UNIT_KB"},{max:1e9,unitKey:"UNIT_MB"},{max:1e12,unitKey:"UNIT_GB"},{max:1e15,unitKey:"UNIT_TB"},{max:1/0,unitKey:"UNIT_TB"}]}transform(n,E){if(!(0,o.BV)(n))return null;const l=this.dictionary.find(g=>n<g.max)||this.dictionary[this.dictionary.length-1],v=n/(l.max/1e3);return`${(0,o.b0)(E)?v:(0,o.FC)(v,E)} ${this.translateService.instant(l.unitKey)}`}}return(u=f).\u0275fac=function(n){return new(n||u)(e.rXU(c.c$,16))},u.\u0275pipe=e.EJ8({name:"bytes",type:u,pure:!1}),f})()},25349:(pe,N,r)=>{"use strict";r.d(N,{U:()=>u});var o=r(10785),e=r.n(o),c=r(58527),a=r(96542);let u=(()=>{var f;class i{constructor(E){this.translate=E}transform(E){const l=this.translate.currentLang?this.translate.currentLang:this.translate.defaultLang;return e().relativeTimeThreshold("ss",3),e().relativeTimeThreshold("s",40),e().relativeTimeThreshold("m",40),e().relativeTimeThreshold("h",20),e().relativeTimeThreshold("d",28),e().relativeTimeThreshold("M",10),E?e()(E).locale(l).fromNow():""}}return(f=i).\u0275fac=function(E){return new(E||f)(c.rXU(a.c$,16))},f.\u0275pipe=c.EJ8({name:"countdown",type:f,pure:!0}),i})()},90578:(pe,N,r)=>{"use strict";r.d(N,{e:()=>u});var o=r(15028),c=r(58527),a=r(96542);let u=(()=>{var f;class i{constructor(E){this.translate=E}transform(E){if(!E)return"";try{const{quantity:l,unit:v}=(0,o.extractDuration)(E);let C;switch(v){case"years":C="DURATION_YEARS";break;case"months":C="DURATION_MONTHS";break;case"weeks":C="DURATION_WEEKS";break;case"days":C="DURATION_DAYS";break;default:return`${l} ${1===l?v.replace(/s$/,""):v}`}return this.translate.instant(C,{count:l})}catch{return E}}}return(f=i).\u0275fac=function(E){return new(E||f)(c.rXU(a.c$,16))},f.\u0275pipe=c.EJ8({name:"discountDuration",type:f,pure:!0}),i})()}
1,81215:(pe,N,r)=>{"use strict";r.d(N,{$:()=>c});var o=r(58527),e=r(74150);let c=(()=>{var a;class u{constructor(i){this.sanitizer=i}transform(i){return this.sanitizer.bypassSecurityTrustHtml(i)}}return(a=u).\u0275fac=function(i){return new(i||a)(o.rXU(e.up,16))},a.\u0275pipe=o.EJ8({name:"safeHtml",type:a,pure:!0}),u})()},1001:(pe,N,r)=>{"use strict";r.d(N,{U:()=>e});var o=r(58527);let e=(()=>{var c;class a{transform(f){const i="\xe0\xe1\xe2\xe4\xe6\xe3\xe5\u0101\u0103\u0105\xe7\u0107\u010d\u0111\u010f\xe8\xe9\xea\xeb\u0113\u0117\u0119\u011b\u011f\u01f5\u1e27\xee\xef\xed\u012b\u012f\xec\u0142\u1e3f\xf1\u0144\u01f9\u0148\xf4\xf6\xf2\xf3\u0153\xf8\u014d\xf5\u0151\u1e55\u0155\u0159\xdf\u015b\u0161\u015f\u0219\u0165\u021b\xfb\xfc\xf9\xfa\u016b\u01d8\u016f\u0171\u0173\u1e83\u1e8d\xff\xfd\u017e\u017a\u017c\xb7/,:;",E=new RegExp(i.split("").join("|"),"g");return f?f.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").replace(E,l=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz-----".charAt(i.indexOf(l))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""):null}}return(c=a).\u0275fac=function(f){return new(f||c)},c.\u0275pipe=o.EJ8({name:"slugify",type:c,pure:!0}),a})()},47975:(pe,N,r)=>{"use strict";r.d(N,{G:()=>B});var o=r(61142),e=r(96542),c=r(74974),a=r(17849),u=r(25349),f=r(69303),i=r(1001),n=r(10785),E=r.n(n),l=r(58527);let v=(()=>{var V;class P{constructor(K){this.translate=K}transform(K){const te=E().duration(K,"seconds").asHours(),W=E().duration(K,"seconds").asDays();return te<48?{value:te,unit:"hours"}:{value:Math.floor(W),unit:"days"}}}return(V=P).\u0275fac=function(K){return new(K||V)(l.rXU(e.c$,16))},V.\u0275pipe=l.EJ8({name:"customDuration",type:V,pure:!0}),P})();var C=r(90578),g=r(71635),H=r(41229);let B=(()=>{var V;class P{}return(V=P).\u0275fac=function(K){return new(K||V)},V.\u0275mod=l.$C({type:V}),V.\u0275inj=l.G2t({providers:[e.c$,a.c,u.U,f.z,i.U,v,C.e],imports:[o.MD,e.h,c.Js,g.c,H.O,e.h,c.Js]}),P})()},1936:(pe,N,r)=>{"use strict";r.d(N,{h:()=>a});var c,o=r(97144),e=r(91282);class a{}(c=a).RETRY_DELAY_SDK_NETWORK_ERROR=1e3,c.RETRY_DELAY_SDK_CONNECTION_ABORTED_ERROR=1e3,c.RETRY_DELAY_SDK_TIMEOUT_ERROR=1e3,c.DOMAIN_RECORD_LOOKUP_TIMEOUT=5e3,c.NetworkErrorsRetryConfiguration=[{error:e.Dr,delay:c.RETRY_DELAY_SDK_NETWORK_ERROR,maxRetry:1/0},{error:e.sQ,delay:c.RETRY_DELAY_SDK_CONNECTION_ABORTED_ERROR,maxRetry:1/0},{error:e.MU,delay:c.RETRY_DELAY_SDK_TIMEOUT_ERROR,maxRetry:1/0}],c.resourceTagKeys={applicationID:"applicationID",version:"version"},c.getMoreFilesLimit={desktop:9,tablet:10},c.transferStatusTranslations={Uploaded:"PREMIUM_TRANSFER_SENT_DETAILS_TRANSFER_STATUS_UPLOADED",Uploading:"PREMIUM_TRANSFER_SENT_DETAILS_TRANSFER_STATUS_UPLOADING",Deleted:"PREMIUM_TRANSFER_SENT_DETAILS_TRANSFER_STATUS_DELETED",Deleting:"PREMIUM_TRANSFER_SENT_DETAILS_TRANSFER_STATUS_DELETING",Expired:"PREMIUM_TRANSFER_SENT_DETAILS_TRANSFER_STATUS_EXPIRED",Suspended:"PREMIUM_TRANSFER_SENT_DETAILS_TRANSFER_STATUS_SUSPENDED"},c.splashScreen={visitsCountToShow:10,maxDelayBetween2Visits:{value:2,unit:"weeks"}},c.globalRegion="global",c.resourceTagValues={applicationID:"LambdastaticSmashApp"},c.smashQueryParams={themeId:"theme_id",themeLanguage:"theme_language",themeCountryCode:"theme_country_code"},c.videoProviders={Youtube:"youtube",Vimeo:"vimeo",Video:"html5"},c.encodedInfosRedirectionKey="infos",c.maxUploadSizeFreemium=2e9,c.oneDayInSecond=86400,c.regexpDomainCreation=/^([a-z0-9-_]{1,62})$/,c.hCaptchaSiteKey=o.c.hCaptchaSiteKey,c.regexpForbiddenChars=/[:*?"<>|]/g,c.regexpControlChars=/[\u0000-\u001F\u007F-\u009F\u2028\u2029]/g,c.accountTypes={developer:"developer",premium:"premium"},c.previewOptions=[{value:"Full",translation:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_ENABLED"},{value:"None",translation:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_DISABLED"}],c.notificationOptions=[{value:"All",translation:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_ENABLED"},{value:"None",translation:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_DISABLED"}],c.regexpPromotionLink=/^(https?:\/\/.+)|(mailto:.+)$/,c.passwordPattern="^.{4,}$",c.passwordStrengthRegexps={strong:/^(?=(.*[0-9]))(?=.*[\!@#$%^&*()\\[\]{}\-_+=~`|:;"'<>,./?])(?=.*[a-z])(?=(.*[A-Z]))(?=(.*)).{8,}/,medium:/^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[\!@#$%^&*()\\[\]{}\-_+=~`|:;"'<>,./?]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})/},c.VATRegexp=/^((AT)?U[0-9]{8}|(BE)?0[0-9]{9}
1|(BG)?[0-9]{9,10}|(CY)?[0-9]{8}L|(CZ)?[0-9]{8,10}|(DE)?[0-9]{9}|(DK)?[0-9]{8}|(EE)?[0-9]{9}|(EL|GR)?[0-9]{9}|(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]|(FI)?[0-9]{8}|(FR)?[0-9A-Z]{2}[0-9]{9}|(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})|(HU)?[0-9]{8}|(IE)?[0-9]S[0-9]{5}L|(IT)?[0-9]{11}|(LT)?([0-9]{9}|[0-9]{12})|(LU)?[0-9]{8}|(LV)?[0-9]{11}|(MT)?[0-9]{8}|(NL)?[0-9]{9}B[0-9]{2}|(PL)?[0-9]{10}|(PT)?[0-9]{9}|(RO)?[0-9]{2,10}|(SE)?[0-9]{12}|(SI)?[0-9]{8}|(SK)?[0-9]{10})$/,c.regexpCustomUrl=/^(?!.*-\s*[0-9a-zA-Z]{2}\s*$)((?!([\#\)\(+\\\/]+)).)+$/,c.signupEmailPattern=/^[a-z0-9_.+-]+@[a-z0-9-]+\.[a-z0-9-.]+$/,c.regexpGroupName=/^[^,;]+$/,c.regexpYoutube=/^(?:(?:https?:)?\/\/)?(?:(?:www|m)\.)?(?:(?:youtube\.com|youtu.be))(?:\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,c.regexpVimeo=/(?:http:|https:|)\/\/(?:player.|www.)?vimeo\.com\/(?:(?:groups\/|showcase\/|album\/)[0-9]+\/videos?\/|channels\/[a-z0-9_.+-]+\/|video\/|embed\/|watch\?\S*v=|v\/)?(\d*)/,c.deliveryTypes={Email:"Email",Link:"Link",Slack:"Slack"},c.domainLoginRedirection={None:"None",Signin:"RedirectToSignin",Provider:"RedirectToProvider"},c.regexpExtractEmail=/([a-zA-Z0-9.'_%+-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/,c.regexpEmail=/^[A-Za-z0-9.'_%+-]+@[A-Za-z0-9.-]+\.[A-Za-z0-9]{2,20}$/,c.regexpEmailWithoutTag=/([a-zA-Z0-9.'_%-]+)\+?[a-zA-Z0-9.'_%-]*(@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/,c.regexpDomainExtension=/\w+((\.[a-z]{2,5})(\.(ninja|rocks|com))?)$/,c.regexpExcludeUserSCIM=/^((?!\$scim).)*$/i,c.pricingUrls={fr:"/offres",en:"/pricing",es:"/es/pricing",it:"/it/pricing",pt:"/pt/pricing",de:"/de/pricing",fallback:"/pricing"},c.subscriptionStatus={Active:"Active",Inactive:"Inactive",Pending:"Pending",PaymentRequired:"Payment Required"},c.transferStatus={Uploading:"Uploading",Processing:"Processing",Uploaded:"Uploaded",Suspended:"Suspended",Expired:"Expired",Deleted:"Deleted",Deleting:"Deleting"},c.previewStatus={None:"None",Full:"Full"},c.accessTracking={None:"None",Email:"Email"},c.uploaderStep={Landing:"LANDING"},c.planGroupIdLength=42,c.errorStatus={uploader:{linkAlreadyExists:"UPLOADER_LINK_ALREADY_EXISTS"}},c.providerPlayerTypes={vimeo:"Vimeo",youtube:"Youtube",html5:"html5"},c.administratorRoleName="ManagedAdministratorRole",c.SCIMRoleName="ManagedSCIMRole",c.marketerRoleName="Marketer",c.reporterRoleName="Reporter",c.urlYoutubeIframeAPI="https://www.youtube.com/iframe_api",c.urlVimeoIframeAPI="https://player.vimeo.com/api/player.js",c.callToActionsList=[{value:"Buy",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_BUY"},{value:"Discover",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_DISCOVER"},{value:"Order",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_ORDER"},{value:"Signup",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_REGISTER"},{value:"Subscribe",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_SUBSCRIBE"},{value:"Contact",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_CONTACT_US"},{value:"Download",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_DOWNLOAD"},{value:"Share",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_SHARE"},{value:"Like",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_I_LIKE"},{value:"Test",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_TRY"},{value:"JoinIn",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_JOIN_IN"},{value:"Play",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_PLAY"},{value:"AddToPlaylist",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_ADD_TO_PLAYLIST"},{value:"FollowUs",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_FOLLOW_US"},{value:"DiscoverSmash",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_DISCOVER_SMASH"},{value:"Read",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_READ"},{value:"Watch",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_WATCH"},{value:"LearnMore",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_KNOW_MORE"},{value:"Book",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_BOOK"},{value:"Act",translation:"PREMIUM_PROMOTION_OPTION_CALL_TO_ACTION_ACT"}],c.refreshTokenStatus={Processing:"Processing",Success:"Success",Failure:"Failure"}
1,c.Unknown="Unknown",c.Currencies={eur:{iso3:"eur",symbol:"\u20ac",displayBeforePrice:!1},usd:{iso3:"usd",symbol:"US$",displayBeforePrice:!0},inr:{iso3:"inr",symbol:"\u20b9",displayBeforePrice:!0},aud:{iso3:"aud",symbol:"A$",displayBeforePrice:!0},brl:{iso3:"brl",symbol:"R$ ",displayBeforePrice:!0},cad:{iso3:"cad",symbol:"C$",displayBeforePrice:!0},mxn:{iso3:"mxn",symbol:"MXN$",displayBeforePrice:!0},try:{iso3:"try",symbol:"\u20ba",displayBeforePrice:!0},gbp:{iso3:"gbp",symbol:"\xa3",displayBeforePrice:!0},cop:{iso3:"cop",symbol:"COP$ ",displayBeforePrice:!0},nok:{iso3:"nok",symbol:"kr ",displayBeforePrice:!0},pen:{iso3:"pen",symbol:"S/ ",displayBeforePrice:!0},zar:{iso3:"zar",symbol:"R ",displayBeforePrice:!0}},c.teamConfig={authenticationMode:{anonymous:"Anonymous",authentified:"Authentified"},rulesNames:{wildcard:"Wildcard",email:"Email"}},c.planFreemiumID="SMASH_FREEMIUM",c.authenticationPatternEmailWithAt=/^@[a-z0-9-]+\.[a-z0-9-]+\.*[a-z0-9-]*$/,c.authenticationPatternEmail=/^[a-z0-9-]+\.[a-z0-9-]+\.*[a-z0-9-]*$/,c.authenticationMode={anonymous:"Anonymous",authentified:"Authentified"},c.fileTypes={Image:"image",Video:"Video",Document:"Document"},c.countryCodes={FR:"FR"},c.countryCodesVAT=["FR","GP","MC","RE","MQ"],c.paymentType={CARD:"card",PAYPAL:"paypal"},c.paymentStatus={SUCCESS:"Success",FAILURE:"Failure"},c.delayScale=[{minSize:0,maxSize:2e9,delayPerGo:0,minDelay:0},{minSize:2000000001,maxSize:5e9,delayPerGo:3600,minDelay:75600},{minSize:5000000001,maxSize:1e10,delayPerGo:3600,minDelay:86400},{minSize:10000000001,maxSize:2e10,delayPerGo:3600,minDelay:104400},{minSize:20000000001,maxSize:5e10,delayPerGo:0,minDelay:172800},{minSize:50000000001,maxSize:1e11,delayPerGo:0,minDelay:259200},{minSize:100000000001,maxSize:1/0,delayPerGo:0,minDelay:604800}],c.supportedLanguages=[{id:"fr",name:"Fran\xe7ais"},{id:"de",name:"Deutsch"},{id:"en",name:"English"},{id:"es",name:"Espa\xf1ol"},{id:"it",name:"Italiano"},{id:"pt",name:"Portugu\xeas"}],c.transferEventStatus={view:"View",download:"Download"},c.transferEventResource={file:"File",transfer:"Transfer"},c.uploaderErrorType={emailForbidden:"EmailNotAllowedError",invalidSubscription:"InvalidSubscriptionError",invalidAvailabilityDurationError:"InvalidAvailabilityDurationError",passwordRequired:"PasswordRequiredError",customUrlAlreadyInUse:"CustomUrlAlreadyInUseError"},c.userStatus={enabled:"Enabled",disabled:"Disabled"},c.ssoProviderStatus={enabled:"Enabled",disabled:"Disabled"},c.targetCountryAds=["GB","US","CA","AU","SG","PH","IN","BR","MX","CO","AR","PE","CL","EC","BO"],c.customizationFallback={logo:{waveColor:"#FFFFFF",sourceUrl:"https://fromsmash.com/assets/img/smash-logo/png/icono-chip-full-white.png",thumnail:"https://fromsmash.com/assets/img/smash-logo/png/icono-chip-full-white.png",type:"Image"},background:{sourceUrl:"assets/img/background-default.webp",type:"Image"}},c.mobileBackgroundFallbackSourceUrl="assets/img/homepage-mobile.webp",c.REGIONS={"eu-west-3":"FR","eu-west-2":"GB","eu-west-1":"IE","eu-central-1":"DE","ca-central-1":"CA","us-east-1":"US","us-east-2":"US","us-west-1":"US","us-west-2":"US"},c.europeanRegions=["eu-west-1","eu-west-2","eu-west-3","eu-central-1"],c.SsoParams={types:{SAML:"Saml"},name:"primarySsoParams"},c.signinMode={standard:"Standard",sso:"SSO"},c.domainType={CNAME:"CName"},c.SAMLRequestKey="SAMLRequest",c.transferMode={dropbox:"Dropbox",transfer:"Transfer"},c.defaultManagedDomainSettings={transferMode:{active:!0,default:"Transfer",options:["Transfer"]},transfer:{availabilityDuration:{active:!0,default:7,min:1,max:14},preview:{options:[c.previewStatus.Full,c.previewStatus.None],active:!0,default:c.previewStatus.Full},delivery:{options:[c.deliveryTypes.Email,c.deliveryTypes.Link],active:!0,default:c.deliveryTypes.Email},password:{active:!0,minLength:4,required:!1},customization:{active:!0},notification:{sender:{active:!0,enabled:!0},link:{active:!0,enabled:!0},receiver:{active:!0,enabled:!0},download:{active:!0,enabled:!0},noDownload:{active:!0,enabled:!0}},accessTracking:{active:!0,default:"None"},promotion:{active:!0}},redirection:{active:!0,value:c.domainLoginRedirection.None,options:[c.domainLoginRedirection.None,c.domainLoginRedirection.Signin,c.domainLoginRedirection.Provider]}},c.defaultPremiumDomainSettings={transferMode:{active:!0,default:"Transfer",options:["Dropbox","Transfer"]},transfer:{availabilityDuration:{active:!0,default:7,max:30,min:1},preview:{active:!0,default:"Full",options:["None","Full"]},delivery:{active:!0,default:"Email",options:["Link","Email"]},password:{active:!0,required:!1,minLength:4},customization:{active:!0},notification:{sender:{active:!0,enabled:!0},link:{active:!0,enabled:!0},receiver:{active:!0,enabled:!0},download:{active:!0,enabled:!0},noDownload:{active:!0,enabled:!0}},accessTracking:{active:!1,default:"None"},promotion:{active:!0}},dropbox:{maxTransferCount:{active:!0,default:void 0,min:1},availabilityDuration:{active:!0,default:604800,max:31536e3,min:86400},maxBytesUploaded:{active:!0,default:void 0,max:void 0,min:1},transfer:{notification:{sender:{active:!0,enabled:!0},receiver:{active:!0,enabled:!0},download:{active:!0,enabled:!0},noDownload:{active:!0,enabled:!0}},preview:{active:!0,default:"Full",options:["None","Full"]},password:{active:!0,required:!1,minLength:4},availabilityDuration:{active:!0,default:604800,max:2592e3,min:86400}}},redirection:{active:!0,value:"None",options:["RedirectToProvider","RedirectToSignin","None"]}},c.osType={iOS:"iOS",android:"Android"},c.squareSpaceUrls={apps:{en:"https://en.fromsmash.com/smash-app",fr:"https://fr.fromsmash.com/apps-mobile",es:"https://es.fromsmash.com/aplicaciones-moviles",de:"https://en.fromsmash.com/smash-app",it:"https://en.fromsmash.com/smash-app",pt:"https://en.fromsmash.com/smash-app",default:"https://en.fromsmash.com/smash-app"},mobile:{en:"https://en.fromsmash.com",fr:"https://fr.fromsmash.com",es:"https://en.fromsmash.com",de:"https://en.fromsmash.com",it:"https://en.fromsmash.com",pt:"https://en.fromsmash.com",default:"https://en.fromsmash.com"}},c.eventGTM={SUBSCRIPTION:"subscription",UPDATE_SUBSCRIPTION:"update_subscription",START_TRANSFER:"start_transfer",FIRST_TIME_SENDER:"first_time_sender",FIRST_TIME_RECEIVER:"first_time_receiver",TRANSFER_INITIATED:"transfer_initiated",TRANSFER_CANCELLED:"transfer_cancelled",TRANSFER_LOCKED:"transfer_locked",SMASH_AGAIN:"smash_again",SIGNIN:"signin",EXTERNAL_PROMOTION_DISPLAYED:"external_promotion_displayed",INTERNAL_PROMOTION_DISPLAYED:"internal_promotion_displayed",CLICK_PROMOTION_CTA:"click_promotion_cta",CLICK_ADD_PROMOTION_FREEMIUM:"click_add_promotion_freemium",CLICK_ADD_BACKGROUND_LOGO_FREEMIUM:"click_add_background_logo_freemium",CLOSE_MODAL_SIZE_PREMIUM:"close_modal_size_premium",CLICK_SUBSCRIBE_MODAL_SIZE_PREMIUM:"click_subscribe_modal_size_premium",CLICK_FREE_UPLOAD_MODAL_SIZE_PREMIUM:"click_free_upload_modal_size_premium",CLICK_REDIRECTION_CAMPAIGN:"click_campaign_link",VIEW_VIDEO_COMPLETION:"view_video_completion",CLICK_THEME_REVEAL_CTA:"click_theme_reveal_cta",DISPLAY_THEME_REVEAL:"display_theme_reveal",CONSENT_UPDATE:"consent_update"},c.languageFallback="en",c.domainRegexp=/(?:https?:\/\/)?(?:www\.)?(?:[[0-9A-Za-z\-]+\.)?([[0-9A-Za-z\-]+\.[[0-9A-Za-z\-\.]+)/,c.httpUrlRegexp=/https:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{1,}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/,c.redirection={main:"fromsmash",unsupported:"/unsupported",serviceUnavailable:"/service-unavailable"},c.serviceErrors={discovery:"DISCOVERY_ERROR",domain:"DOMAIN_ERROR"},c.mfaAuthenticatorApplication={issuer:o.c.mfaAuthenticatorIssuer}},97144:(pe,N,r)=>{"use strict";r.d(N,{c:()=>o});const o={clientName:"LambdastaticSmashApp",production:!0,local:!1,prefixUrl:"",version:r(8330).rE,mock:!1,stripeKey:"pk_live_2RheUfmenIOBfEcCaMlaqnTs",cgu:{ver
1sion:r(8330).mv.r,updated:r(8330).mv.C},googleTagManagerId:"GTM-TN9DT8V",googleTagManagerPreview:"env-1",googleTagManagerAuth:"_19GDOjeSMnbWIyv2zGkvQ",additionalModules:[],hCaptchaSiteKey:"8154d904-33ce-4062-9400-d392b93c8814",appDomainWithProtocol:"https://fromsmash.com",mfaAuthenticatorIssuer:"Smash",domainSdk:"https://domain.fromsmash.co",appDomain:"fromsmash.com",discovery:"https://discovery.fromsmash.co",asset:"https://asset.fromsmash.co",services:[{service:"SmashBilling:prod:ca-central-1",region:"ca-central-1",url:"https://billing.ca-central-1.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:eu-central-1",region:"eu-central-1",url:"https://billing.eu-central-1.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:eu-west-1",region:"eu-west-1",url:"https://billing.eu-west-1.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:eu-west-2",region:"eu-west-2",url:"https://billing.eu-west-2.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:eu-west-3",region:"eu-west-3",url:"https://billing.eu-west-3.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:us-east-1",region:"us-east-1",url:"https://billing.us-east-1.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:us-east-2",region:"us-east-2",url:"https://billing.us-east-2.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:us-west-1",region:"us-west-1",url:"https://billing.us-west-1.fromsmash.co",name:"billing"},{service:"SmashBilling:prod:us-west-2",region:"us-west-2",url:"https://billing.us-west-2.fromsmash.co",name:"billing"},{service:"SmashCaptcha:prod:eu-west-1",region:"eu-west-1",url:"https://captcha.eu-west-1.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:eu-west-2",region:"eu-west-2",url:"https://captcha.eu-west-2.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:eu-west-3",region:"eu-west-3",url:"https://captcha.eu-west-3.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:eu-central-1",region:"eu-central-1",url:"https://captcha.eu-central-1.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:ca-central-1",region:"ca-central-1",url:"https://captcha.ca-central-1.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:us-west-1",region:"us-west-1",url:"https://captcha.us-west-1.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:us-west-2",region:"us-west-2",url:"https://captcha.us-west-2.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:us-east-1",region:"us-east-1",url:"https://captcha.us-east-1.fromsmash.co",name:"captcha"},{service:"SmashCaptcha:prod:us-east-2",region:"us-east-2",url:"https://captcha.us-east-2.fromsmash.co",name:"captcha"},{service:"SmashCustomization:prod:ca-central-1",region:"ca-central-1",url:"https://customization.ca-central-1.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:eu-central-1",region:"eu-central-1",url:"https://customization.eu-central-1.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:eu-west-1",region:"eu-west-1",url:"https://customization.eu-west-1.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:eu-west-2",region:"eu-west-2",url:"https://customization.eu-west-2.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:eu-west-3",region:"eu-west-3",url:"https://customization.eu-west-3.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:us-east-1",region:"us-east-1",url:"https://customization.us-east-1.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:us-east-2",region:"us-east-2",url:"https://customization.us-east-2.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:us-west-1",region:"us-west-1",url:"https://customization.us-west-1.fromsmash.co",name:"customization"},{service:"SmashCustomization:prod:us-west-2",region:"us-west-2",url:"https://customization.us-west-2.fromsmash.co",name:"customization"},{service:"SmashDirectory:prod",region:"global",url:"https://directory.fromsmash.co",name:"directory"},{service:"SmashDiscovery:prod:ca-central-1",region:"ca-central-1",url:"https://discovery.ca-central-1.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:eu-central-1",region:"eu-central-1",url:"https://discovery.eu-central-1.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:eu-west-1",region:"eu-west-1",url:"https://discovery.eu-west-1.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:eu-west-2",region:"eu-west-2",url:"https://discovery.eu-west-2.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:eu-west-3",region:"eu-west-3",url:"https://discovery.eu-west-3.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:us-east-1",region:"us-east-1",url:"https://discovery.us-east-1.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:us-east-2",region:"us-east-2",url:"https://discovery.us-east-2.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:us-west-1",region:"us-west-1",url:"https://discovery.us-west-1.fromsmash.co",name:"discovery"},{service:"SmashDiscovery:prod:us-west-2",region:"us-west-2",url:"https://discovery.us-west-2.fromsmash.co",name:"discovery"},{service:"SmashDomain:prod",region:"global",url:"https://domain.fromsmash.co",name:"domain"},{service:"SmashGnitekram:prod:ca-central-1",region:"global",url:"https://gnitekram.fromsmash.co",name:"gnitekram"},{service:"SmashScitylana:prod:ca-central-1",region:"ca-central-1",url:"https://scitylana.ca-central-1.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:eu-central-1",region:"eu-central-1",url:"https://scitylana.eu-central-1.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:eu-west-1",region:"eu-west-1",url:"https://scitylana.eu-west-1.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:eu-west-2",region:"eu-west-2",url:"https://scitylana.eu-west-2.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:eu-west-3",region:"eu-west-3",url:"https://scitylana.eu-west-3.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:us-east-1",region:"us-east-1",url:"https://scitylana.us-east-1.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:us-east-2",region:"us-east-2",url:"https://scitylana.us-east-2.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:us-west-1",region:"us-west-1",url:"https://scitylana.us-west-1.fromsmash.co",name:"scitylana"},{service:"SmashScitylana:prod:us-west-2",region:"us-west-2",url:"https://scitylana.us-west-2.fromsmash.co",name:"scitylana"},{service:"SmashIam:prod:ca-central-1",region:"ca-central-1",url:"https://iam.ca-central-1.fromsmash.co",name:"iam"},{service:"SmashIam:prod:eu-central-1",region:"eu-central-1",url:"https://iam.eu-central-1.fromsmash.co",name:"iam"},{service:"SmashIam:prod:eu-west-1",region:"eu-west-1",url:"https://iam.eu-west-1.fromsmash.co",name:"iam"},{service:"SmashIam:prod:eu-west-2",region:"eu-west-2",url:"https://iam.eu-west-2.fromsmash.co",name:"iam"},{service:"SmashIam:prod:eu-west-3",region:"eu-west-3",url:"https://iam.eu-west-3.fromsmash.co",name:"iam"},{service:"SmashIam:prod:us-east-1",region:"us-east-1",url:"https://iam.us-east-1.fromsmash.co",name:"iam"},{service:"SmashIam:prod:us-east-2",region:"us-east-2",url:"https://iam.us-east-2.fromsmash.co",name:"iam"},{service:"SmashIam:prod:us-west-1",region:"us-west-1",url:"https://iam.us-west-1.fromsmash.co",name:"iam"},{service:"SmashIam:prod:us-west-2",region:"us-west-2",url:"https://iam.us-west-2.fromsmash.co",name:"iam"},{service:"SmashImage:prod:ca-central-1",region:"ca-central-1",url:"https://image.ca-central-1.fromsmash.co",name:"image"},{service:"SmashImage:prod:eu-central-1",region:"eu-central-1",url:"https://image.eu-central-1.fromsmash.co",name:"image"},{service:"SmashImage:prod:eu-west-1",region:"eu-west-1",url:"https://image.eu-west-1.fromsmash.co",name:"image"},{service:"SmashImage:prod:eu-west-2",region:"eu-west-2",url:"https://image.eu-west-2.fromsmash.co",name:"image"},{service:"SmashImage:prod:eu-west-3",region:"eu-west-3",url:"https://image.eu-west-3.fromsmash.co",name:"image"}
1,{service:"SmashImage:prod:us-east-1",region:"us-east-1",url:"https://image.us-east-1.fromsmash.co",name:"image"},{service:"SmashImage:prod:us-east-2",region:"us-east-2",url:"https://image.us-east-2.fromsmash.co",name:"image"},{service:"SmashImage:prod:us-west-1",region:"us-west-1",url:"https://image.us-west-1.fromsmash.co",name:"image"},{service:"SmashImage:prod:us-west-2",region:"us-west-2",url:"https://image.us-west-2.fromsmash.co",name:"image"},{service:"SmashKyc:prod:ca-central-1",region:"ca-central-1",url:"https://kyc.ca-central-1.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:eu-central-1",region:"eu-central-1",url:"https://kyc.eu-central-1.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:eu-west-1",region:"eu-west-1",url:"https://kyc.eu-west-1.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:eu-west-2",region:"eu-west-2",url:"https://kyc.eu-west-2.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:eu-west-3",region:"eu-west-3",url:"https://kyc.eu-west-3.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:us-east-1",region:"us-east-1",url:"https://kyc.us-east-1.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:us-east-2",region:"us-east-2",url:"https://kyc.us-east-2.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:us-west-1",region:"us-west-1",url:"https://kyc.us-west-1.fromsmash.co",name:"kyc"},{service:"SmashKyc:prod:us-west-2",region:"us-west-2",url:"https://kyc.us-west-2.fromsmash.co",name:"kyc"},{service:"SmashLink:prod",region:"global",url:"https://link.fromsmash.co",name:"link"},{service:"SmashPlugin:prod:ca-central-1",region:"ca-central-1",url:"https://plugin.ca-central-1.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:eu-central-1",region:"eu-central-1",url:"https://plugin.eu-central-1.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:eu-west-1",region:"eu-west-1",url:"https://plugin.eu-west-1.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:eu-west-2",region:"eu-west-2",url:"https://plugin.eu-west-2.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:eu-west-3",region:"eu-west-3",url:"https://plugin.eu-west-3.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:us-east-1",region:"us-east-1",url:"https://plugin.us-east-1.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:us-east-2",region:"us-east-2",url:"https://plugin.us-east-2.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:us-west-1",region:"us-west-1",url:"https://plugin.us-west-1.fromsmash.co",name:"plugin"},{service:"SmashPlugin:prod:us-west-2",region:"us-west-2",url:"https://plugin.us-west-2.fromsmash.co",name:"plugin"},{service:"SmashPromotion:prod:ca-central-1",region:"ca-central-1",url:"https://promotion.ca-central-1.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:eu-central-1",region:"eu-central-1",url:"https://promotion.eu-central-1.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:eu-west-1",region:"eu-west-1",url:"https://promotion.eu-west-1.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:eu-west-2",region:"eu-west-2",url:"https://promotion.eu-west-2.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:eu-west-3",region:"eu-west-3",url:"https://promotion.eu-west-3.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:us-east-1",region:"us-east-1",url:"https://promotion.us-east-1.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:us-east-2",region:"us-east-2",url:"https://promotion.us-east-2.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:us-west-1",region:"us-west-1",url:"https://promotion.us-west-1.fromsmash.co",name:"promotion"},{service:"SmashPromotion:prod:us-west-2",region:"us-west-2",url:"https://promotion.us-west-2.fromsmash.co",name:"promotion"},{service:"SmashTheme:prod",region:"global",url:"https://theme.fromsmash.co",name:"theme"},{service:"SmashSquarespace:prod",region:"global",url:"https://squarespace.fromsmash.co",name:"squarespace"},{service:"SmashTransfer:prod:ca-central-1",region:"ca-central-1",url:"https://transfer.ca-central-1.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:eu-central-1",region:"eu-central-1",url:"https://transfer.eu-central-1.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:eu-west-1",region:"eu-west-1",url:"https://transfer.eu-west-1.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:eu-west-2",region:"eu-west-2",url:"https://transfer.eu-west-2.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:eu-west-3",region:"eu-west-3",url:"https://transfer.eu-west-3.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:us-east-1",region:"us-east-1",url:"https://transfer.us-east-1.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:us-east-2",region:"us-east-2",url:"https://transfer.us-east-2.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:us-west-1",region:"us-west-1",url:"https://transfer.us-west-1.fromsmash.co",name:"transfer"},{service:"SmashTransfer:prod:us-west-2",region:"us-west-2",url:"https://transfer.us-west-2.fromsmash.co",name:"transfer"},{service:"SmashVat:prod:ca-central-1",region:"ca-central-1",url:"https://vat.ca-central-1.fromsmash.co",name:"vat"},{service:"SmashVat:prod:eu-central-1",region:"eu-central-1",url:"https://vat.eu-central-1.fromsmash.co",name:"vat"},{service:"SmashVat:prod:eu-west-1",region:"eu-west-1",url:"https://vat.eu-west-1.fromsmash.co",name:"vat"},{service:"SmashVat:prod:eu-west-2",region:"eu-west-2",url:"https://vat.eu-west-2.fromsmash.co",name:"vat"},{service:"SmashVat:prod:eu-west-3",region:"eu-west-3",url:"https://vat.eu-west-3.fromsmash.co",name:"vat"}
1,{service:"SmashVat:prod:us-east-1",region:"us-east-1",url:"https://vat.us-east-1.fromsmash.co",name:"vat"},{service:"SmashVat:prod:us-east-2",region:"us-east-2",url:"https://vat.us-east-2.fromsmash.co",name:"vat"},{service:"SmashVat:prod:us-west-1",region:"us-west-1",url:"https://vat.us-west-1.fromsmash.co",name:"vat"},{service:"SmashVat:prod:us-west-2",region:"us-west-2",url:"https://vat.us-west-2.fromsmash.co",name:"vat"}]}},14292:(pe,N,r)=>{"use strict";r.d(N,{C:()=>c,S:()=>e});var o=r(58527);const e=new o.nKC("REQUEST"),c=new o.nKC("RESPONSE")},11024:(pe,N,r)=>{"use strict";var o=r(74150),e=r(58527),c=r(61142),a=r(75118),u=r(20154),f=r(85687),i=r(97144),n=r(8330),E=r(14292),l=r(97184),v=r(40262);function C(S,y,k={optional:!0}){return(0,v.P)(S,y,k)}const g=(0,v.hZ)("splashTransition",[(0,v.kY)("* <=> *",[C(":enter, :leave",(0,v.iF)({position:"fixed",width:"100%",height:"100%"})),C(":enter",[(0,v.iF)({opacity:0})],{optional:!0}),C(":leave",[(0,v.iF)({opacity:1}),(0,v.i0)("0.1s",(0,v.iF)({opacity:0}))],{optional:!0}),C(":enter",[(0,v.iF)({opacity:0}),(0,v.i0)(".2s",(0,v.iF)({opacity:1}))],{optional:!0})])]);var H=r(85621),B=r(71100),V=r(68633);let P=(()=>{var S;class y{constructor(h,x,L){this.router=h,this.store$=x,this.platformId=L,(0,c.UE)(this.platformId)&&this.router.events.pipe((0,f.p)(O=>O instanceof a.L6)).subscribe(O=>{this.isChunkLoadError(O.error)&&this.store$.dispatch(l.Vg.ChunkLoadFailure({url:O.url}))})}isChunkLoadError(h){var x;if(!h)return!1;const L=h.name,O=String(null!==(x=h.message)&&void 0!==x?x:h);return"ChunkLoadError"===L||/loading chunk .* failed/i.test(O)}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(a.Ix),e.KVO(B.il),e.KVO(e.Agw))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),y})(),b=(()=>{var S;class y{constructor(h,x,L,O,Z,U,M){this.store$=h,this.tokenService=x,this.router=L,this.document=O,this.req=Z,this.platformId=U,this.chunkLoadErrorHandler=M,this.loading=!0,this.subscriptions=[],this.toFullfill=[],this.device$=this.store$.select(u.Pf),this.route$=this.store$.select(u.aM),this.identityUpdating$=this.store$.select(u.Db),this.identity$=this.store$.select(u.Jd),this.identity$.subscribe(F=>this.identitySync=F),this.router.events.pipe((0,f.p)(F=>{var se;F instanceof a.OY&&this.toFullfill.push(F);let ee=!0;return null!==(se=this.identitySync)&&void 0!==se&&null!==(se=se.token)&&void 0!==se&&se.token&&(ee=this.tokenService.isTokenExpired(this.identitySync.token.token)),!!this.identitySync&&!ee})).subscribe(()=>{this.toFullfill.length&&this.parseRoutingEvent(this.toFullfill)})}ngOnInit(){if(!(0,c.UE)(this.platformId)){const h=(0,c.UE)(this.platformId)?window.location.pathname:this.req.originalUrl,x=(0,H.D_)(h);this.document.documentElement.lang=x}}parseRoutingEvent(h){(0,c.UE)(this.platformId)&&(h.filter(L=>L instanceof a.OY&&!L.routerEvent.url.match(/^\/redirect/)).map(L=>{const O=L.routerEvent.url;this.store$.dispatch(l.Vg.CreateEventScitylana({event:{event:"pageView",url:(0,H.Yn)()+O,referer:document.referrer,date:(new Date).toISOString(),clientName:i.c.clientName,clientVersion:n.rE}}))},this),this.toFullfill=[])}}return(S=y).\u0275fac=function(h){return new(h||S)(e.rXU(B.il),e.rXU(V.B),e.rXU(a.Ix),e.rXU(c.qQ),e.rXU(E.S,8),e.rXU(e.Agw),e.rXU(P))},S.\u0275cmp=e.VBU({type:S,selectors:[["app-root"]],decls:2,vars:1,consts:[[1,"router-container"],[1,"router"]],template:function(h,x){1&h&&(e.j41(0,"div",0),e.nrm(1,"router-outlet",1),e.k0s()),2&h&&e.Y8G("@splashTransition",void 0)},dependencies:[a.n3],styles:[".full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.router-container[_ngcontent-%COMP%]{height:100%;width:100%}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.router-container[_ngcontent-%COMP%]{height:unset}}  ngneat-dialog .ngneat-dialog-backdrop{background-color:#19192233}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){  ngneat-dialog .ngneat-dialog-backdrop{padding:2rem}}  ngneat-dialog .ngneat-dialog-backdrop .ngneat-dialog-content{overflow:visible;animation:none}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){  ngneat-dialog .ngneat-dialog-backdrop .ngneat-dialog-content{border-radius:1.3rem}}  ngneat-dialog .ngneat-dialog-backdrop .ngneat-close-dialog{color:#333}  ngneat-dialog .ngneat-dialog-backdrop .ngneat-close-dialog:hover{color:#000}@media screen and (min-resolution: 1.25dppx) and (max-resolution: 1.5dppx) and (max-device-width: 1280px){  #ModalAddMemberComponent .ngneat-dialog-content{scale:.7}}@media screen and (min-resolution: 2.25dppx){  #ModalAddMemberComponent .ngneat-dialog-content{scale:.7}}"],data:{animation:[g]}}),y})();var Ie,K=r(25580),te=r(10785),W=r.n(te),z=r(77392),$=r(51718),I=r(83485),p=r(58468),j=r(78374),ge=r(46891),d=r(1936),m=r(40419),Y=r(16676),w=r(8460),ve=r(69351),ue=r(55711);class Te{constructor(y,k,h,x,L,O){this.store=y,this.domainService=k,this.cookiesService=h,this.localStorageService=x,this.router=L,this.platformId=O}init(){var y=this;return new Promise(function(){var k=(0,K.A)(function*(h,x){console.log("Boot app version: "+i.c.version),console.log("Build number: unknown"),console.log("Date : "+W()().format("LLL"));try{yield y.checkBrowserCompatibility(),yield y.loadDeviceInfos(y.store),yield y.cleanLocalStorage(),yield Promise.all([y.loadLanguage(y.store),y.handleMediaQueries(y.store),y.handleIdentityInCookies(y.store)]),yield m.$.setRefreshTokenMethod(y.refreshTokenMethod.bind(y)),(0,c.UE)(y.platformId)&&window.location.pathname===d.h.redirection.serviceUnavailable&&(window.location.pathname="/"),h()}catch{(0,c.UE)(y.platformId)&&window.location.pathname===d.h.redirection.unsupported?h():((0,c.UE)(y.platformId)&&"/"!==window.location.pathname?y.localStorageService.setItem("urlAim",window.location.href):y.localStorageService.removeItem("urlAim"),(0,c.UE)(y.platformId)&&(window.location.pathname=d.h.redirection.unsupported),x())}});return function(h,x){return k.apply(this,arguments)}}())}loadLanguage(y){return new Promise(k=>{const h=new z.B;
1y.dispatch(l.Vg.SetupLanguage()),y.select(u.Ev).pipe((0,p.Q)(h)).subscribe(x=>{x&&(console.log("Language: "+x),W().locale(x),h.next(!0),k())})})}handleMediaQueries(y){return new Promise(k=>{if((0,c.UE)(this.platformId)){const h=this.domainService.detectDomainUrl(),x=new URL(h),L=new URLSearchParams(x.search);if(L.get("auth")){const O=L.get("auth"),Z=this.cookiesService.getCookie("SSOLoginOrigin");Z&&(this.cookiesService.removeCookie("SSOLoginOrigin"),window.location.href=Z+"?auth="+O),this.setupSsoSession(O,y)}if(L.get(d.h.encodedInfosRedirectionKey)){const O=L.get(d.h.encodedInfosRedirectionKey);this.reloadPreviousLocalStorage(O,y)}L.get("duration")&&(this.store.dispatch(l.Vg.SetDurationChoice({durationChoice:L.get("duration")})),x.searchParams.delete("duration")),this.setupPrepareState(L),L.get(d.h.smashQueryParams.themeId)&&this.localStorageService.setItem(d.h.smashQueryParams.themeId,L.get(d.h.smashQueryParams.themeId)),L.get(d.h.smashQueryParams.themeLanguage)&&this.localStorageService.setItem(d.h.smashQueryParams.themeLanguage,L.get(d.h.smashQueryParams.themeLanguage)),L.get(d.h.smashQueryParams.themeCountryCode)&&this.localStorageService.setItem(d.h.smashQueryParams.themeCountryCode,L.get(d.h.smashQueryParams.themeCountryCode))}k()})}handleIdentityInCookies(y){return new Promise(k=>{(0,c.UE)(this.platformId)?y.select(u.Jd).pipe((0,j.s)(1)).subscribe(h=>{const x=this.cookiesService.getCookie("identity");this.cookiesService.cookieExists("identity")&&x?(m.$.setToken(x.token.token),this.store.dispatch(l.Xw.UpdateActiveIdentitySuccess({identity:x}))):h&&!x&&(this.cookiesService.setCookie("identity",h),m.$.setToken(x.token.token),this.store.dispatch(l.Xw.UpdateActiveIdentitySuccess({identity:h}))),k()}):k()})}loadDeviceInfos(y){return new Promise(k=>{const h=new z.B;y.dispatch(l.Vg.loadDevice()),y.select(u.Pf).pipe((0,p.Q)(h)).subscribe(x=>{if(x){const{userAgent:L=d.h.Unknown,os:O=d.h.Unknown,device:Z=d.h.Unknown,os_version:U=d.h.Unknown,browser:M=d.h.Unknown,browser_version:F=d.h.Unknown}=x.deviceInfo;console.log("Device: "+Z+" (name) | "+O+" (os) | "+U+" (version)"),console.log("Environment: Production : "+i.c.production),console.log("Browser: "+M+" (name) | "+F+" (version)"),console.log("UserAgent: "+L),h.next(!0),k()}})})}checkBrowserCompatibility(){return new Promise((y,k)=>{(0,c.UE)(this.platformId)&&window.navigator.userAgent.match(/(MSIE|Trident)/)&&k(),y()})}setupSsoSession(y,k){return new Promise((h,x)=>{const L=this.decodeParams(y);k.dispatch(l.Xw.SetupSsoSession({informations:L}));const O=new z.B;k.select(u.In).pipe((0,p.Q)(O)).subscribe(Z=>{Z&&h()})})}cleanLocalStorage(){return new Promise(y=>{const k=["account","environment","team","transfersSentTableConfig","transfersReceivedTableConfig","lastTransferParameters","prefilledTransferParameters"];this.localStorageService.listAllKeys().forEach(h=>{k.find(x=>h===x)||this.localStorageService.removeItem(h)}),y()})}reloadPreviousLocalStorage(y,k){const h=this.decodeParams(y),x=h.activeIdentity,L=h.teamSelected,O=h.selectedLanguage;k.dispatch(l.Xw.selectActiveIdentity({identity:x})),m.$.setToken(x.token.token),k.dispatch(l.Xw.selectActiveTeam({team:L})),k.dispatch(l.Vg.SelectLanguage({language:O}))}setupPrepareState(y){var k;this.localStorageService.removeItem("prefilledTransferParameters");const h=y.get("type"),x=y.get("sender"),L=y.get("name"),O=null===(k=y.get("receivers"))||void 0===k?void 0:k.split(","),Z=y.get("description"),U=y.get("title");(h||x||L||O||Z||U)&&this.localStorageService.setItem("prefilledTransferParameters",JSON.stringify({sender:x,name:L,receivers:O,uploadFormMode:h,description:Z,title:U}))}decodeParams(y){const k=decodeURIComponent(escape(atob(decodeURIComponent(y))));return JSON.parse(k)}refreshTokenMethod(y,k){var h=this;return this.identity$=this.store.select(u.Jd),new Promise(function(){var x=(0,K.A)(function*(L,O){try{if(void 0!==k&&k<4){const{region:Z,refreshToken:U}=yield(0,$.s)(h.identity$.pipe((0,ge.$)(F=>!!F))),M=yield new Y.I({region:Z}).renewToken({refreshToken:U.token});m.$.setToken(M.identity.token.token),h.store.dispatch(l.Xw.refreshTokenSuccess({identity:M.identity})),L(M.identity.token.token)}else L(null)}catch(Z){if(Z instanceof Y.s.RenewTokenError.BadGatewayError||Z instanceof Y.s.RenewTokenError.GatewayTimeoutError||Z instanceof Y.s.RenewTokenError.NetworkError||Z instanceof Y.s.RenewTokenError.UnknownError||Z instanceof Y.s.RenewTokenError.InternalServerError){const U=yield(0,$.s)(h.identity$.pipe((0,ge.$)(M=>!!M)));m.$.setToken(U.token.token),h.store.dispatch(l.Xw.refreshTokenSuccess({identity:U})),L(U.token.token)}else Z instanceof Y.s.RenewTokenError.IdentityDisabledError||Z instanceof Y.s.RenewTokenError.InvalidParameterError||Z instanceof Y.s.RenewTokenError.InvalidRefreshTokenError||Z instanceof Y.s.RenewTokenError.NotAllowedError||Z instanceof Y.s.RenewTokenError.PasswordRevokedError||Z instanceof Y.s.RenewTokenError.NotFoundError?(h.router.navigateByUrl("/signout"),L(null)):(h.router.navigateByUrl("/signout"),O(Z)
1)}});return function(L,O){return x.apply(this,arguments)}}())}}(Ie=Te).isBrowser=new I.t(null),Ie.\u0275fac=function(y){return new(y||Ie)(e.KVO(B.il),e.KVO(w.i),e.KVO(ve.r),e.KVO(ue.s),e.KVO(a.Ix),e.KVO(e.Agw))},Ie.\u0275prov=e.jDH({token:Ie,factory:Ie.\u0275fac,providedIn:"root"});var Q=r(94485),ce=r(2135);let q=(()=>{var S;class y{getClientMessage(h){return navigator.onLine?h.message?h.message:h.toString():"No Internet Connection"}getClientStack(h){return h.stack}getServerMessage(h){return h.message}}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),y})();var le=r(64196);let ie=(()=>{var S;class y{constructor(h,x){this.injector=h,this.platformId=x}handleError(h){const x=this.injector.get(q),L=this.injector.get(le.g);let O,Z;(0,c.UE)(this.platformId)?(O=x.getClientMessage(h),Z=x.getClientStack(h)):O=x.getServerMessage(h),L.error(O,Z)}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(e.zZn),e.KVO(e.Agw))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),y})();var R=r(29053),A=r(96542),_=r(30532),ne=r(8509),Se=r(5891),xe=r(7877),Fe=r(82719);let Me=(()=>{var S;class y{constructor(h,x){this.http=h,this.sanitizer=x}ngOnInit(){this.http.get(this.externalContent,{responseType:"text"}).subscribe(h=>this.content=this.sanitizer.bypassSecurityTrustHtml(h))}ngOnChanges(h){this.http.get(this.externalContent,{responseType:"text"}).subscribe(x=>this.content=this.sanitizer.bypassSecurityTrustHtml(x))}}return(S=y).\u0275fac=function(h){return new(h||S)(e.rXU(Q.Qq),e.rXU(o.up))},S.\u0275cmp=e.VBU({type:S,selectors:[["app-smash-external-html"]],inputs:{externalContent:"externalContent"},features:[e.OA$],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(h,x){1&h&&e.nrm(0,"div",0),2&h&&e.Y8G("innerHTML",x.content,e.npT)}}),y})();var we=r(81215);function je(S,y){if(1&S&&(e.j41(0,"div",1),e.nrm(1,"app-smash-external-html",2),e.j41(2,"div",3)(3,"footer"),e.nrm(4,"p",4),e.nI1(5,"translate"),e.nI1(6,"safeHtml"),e.j41(7,"div",5)(8,"div",6),e.nrm(9,"p",7),e.nI1(10,"translate"),e.nI1(11,"safeHtml"),e.j41(12,"ul",8)(13,"li"),e.nrm(14,"a",9),e.nI1(15,"translate"),e.nI1(16,"translate"),e.nI1(17,"safeHtml"),e.k0s(),e.j41(18,"li"),e.nrm(19,"a",9),e.nI1(20,"translate"),e.nI1(21,"translate"),e.nI1(22,"safeHtml"),e.k0s(),e.j41(23,"li"),e.nrm(24,"a",9),e.nI1(25,"translate"),e.nI1(26,"translate"),e.nI1(27,"safeHtml"),e.k0s(),e.j41(28,"li"),e.nrm(29,"a",9),e.nI1(30,"translate"),e.nI1(31,"translate"),e.nI1(32,"safeHtml"),e.k0s(),e.j41(33,"li"),e.nrm(34,"a",9),e.nI1(35,"translate"),e.nI1(36,"translate"),e.nI1(37,"safeHtml"),e.k0s(),e.j41(38,"li"),e.nrm(39,"a",9),e.nI1(40,"translate"),e.nI1(41,"translate"),e.nI1(42,"safeHtml"),e.k0s(),e.j41(43,"li"),e.nrm(44,"a",10),e.nI1(45,"translate"),e.nI1(46,"translate"),e.nI1(47,"safeHtml"),e.k0s()()(),e.j41(48,"div",6),e.nrm(49,"p",7),e.nI1(50,"translate"),e.nI1(51,"safeHtml"),e.j41(52,"ul",8)(53,"li"),e.nrm(54,"a",9),e.nI1(55,"translate"),e.nI1(56,"translate"),e.nI1(57,"safeHtml"),e.k0s(),e.j41(58,"li"),e.nrm(59,"a",9),e.nI1(60,"translate"),e.nI1(61,"translate"),e.nI1(62,"safeHtml"),e.k0s(),e.j41(63,"li"),e.nrm(64,"a",9),e.nI1(65,"translate"),e.nI1(66,"translate"),e.nI1(67,"safeHtml"),e.k0s(),e.j41(68,"li"),e.nrm(69,"a",9),e.nI1(70,"translate"),e.nI1(71,"translate"),e.nI1(72,"safeHtml"),e.k0s(),e.j41(73,"li"),e.nrm(74,"a",9),e.nI1(75,"translate"),e.nI1(76,"translate"),e.nI1(77,"safeHtml"),e.k0s(),e.j41(78,"li"),e.nrm(79,"a",9),e.nI1(80,"translate"),e.nI1(81,"translate"),e.nI1(82,"safeHtml"),e.k0s(),e.j41(83,"li"),e.nrm(84,"a",9),e.nI1(85,"translate"),e.nI1(86,"translate"),e.nI1(87,"safeHtml"),e.k0s(),e.j41(88,"li"),e.nrm(89,"a",9),e.nI1(90,"translate"),e.nI1(91,"translate"),e.nI1(92,"safeHtml"),e.k0s()()(),e.j41(93,"div",6),e.nrm(94,"p",7),e.nI1(95,"translate"),e.nI1(96,"safeHtml"),e.j41(97,"ul",8)(98,"li"),e.nrm(99,"a",9),e.nI1(100,"translate"),e.nI1(101,"translate"),e.nI1(102,"safeHtml"),e.k0s(),e.j41(103,"li"),e.nrm(104,"a",9),e.nI1(105,"translate"),e.nI1(106,"translate"),e.nI1(107,"safeHtml"),e.k0s(),e.j41(108,"li"),e.nrm(109,"a",9),e.nI1(110,"translate"),e.nI1(111,"translate"),e.nI1(112,"safeHtml"),e.k0s(),e.j41(113,"li"),e.nrm(114,"a",9),e.nI1(115,"translate"),e.nI1(116,"translate"),e.nI1(117,"safeHtml"),e.k0s()()(),e.j41(118,"div",6),e.nrm(119,"p",7),e.nI1(120,"translate"),e.nI1(121,"safeHtml"),e.j41(122,"ul",8)(123,"li"),e.nrm(124,"a",10),e.nI1(125,"translate"),e.nI1(126,"translate"),e.nI1(127,"safeHtml"),e.k0s(),e.j41(128,"li"),e.nrm(129,"a",9),e.nI1(130,"translate"),e.nI1(131,"translate"),e.nI1(132,"safeHtml"),e.k0s(),e.j41(133,"li"),e.nrm(134,"a",9),e.nI1(135,"translate"),e.nI1(136,"translate"),e.nI1(137,"safeHtml"),e.k0s()()(),e.j41(138,"div",6)(139,"div",11)(140,"a",12),e.nI1(141,"translate"),e.nrm(142,"img",13),e.k0s(),e.j41(143,"a",12),e.nI1(144,"translate"),e.nrm(145,"img",14),e.k0s()(),e.nrm(146,"hr"),e.j41(147,"div")(148,"a",15),e.nI1(149,"translate"),e.nrm(150,"i",16),e.k0s(),e.j41(151,"a",15),e.nI1(152,"translate"),e.nrm(153,"i",17),e.k0s(),e.j41(154,"a",15),e.nI1(155,"translate"),e.nrm(156,"i",18),e.k0s(),e.j41(157,"a",15),e.nI1(158,"translate"),e.nrm(159,"i",19),e.k0s(),e.j41(160,"a",15),e.nI1(161,"translate"),e.nrm(162,"i",20),e.k0s()()()(),e.nrm(163,"hr"),e.j41(164,"div",21)(165,"p",22),e.EFF(166),e.k0s(),e.j41(167,"div",23),e.nrm(168,"app-smash-select-lang",24),e.k0s()()()()()),2&S){const k=e.XpG();e.R7$(),e.Y8G("externalContent",k.discoverHtmlUrl),e.R7$(3),e.Y8G("innerHtml",e.bMT(6,60,e.bMT(5,58,"HOMEPAGE_FOOTER_TITLE")),e.npT),e.R7$(5),e.Y8G("innerHtml",e.bMT(11,64,e.bMT(10,62,"HOMEPAGE_FOOTER_COL_1_TITLE")),e.npT),e.R7$(5),e.FS9("href",e.bMT(15,66,"HOMEPAGE_FOOTER_COL_1_ITEM_1_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(17,70,e.bMT(16,68,"HOMEPAGE_FOOTER_COL_1_ITEM_1")),e.npT),e.R7$(5),e.FS9("href",e.bMT(20,72,"HOMEPAGE_FOOTER_COL_1_ITEM_2_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(22,76,e.bMT(21,74,"HOMEPAGE_FOOTER_COL_1_ITEM_2")),e.npT),e.R7$(5),e.FS9("href",e.bMT(25,78,"HOMEPAGE_FOOTER_COL_1_ITEM_3_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(27,82,e.bMT(26,80,"HOMEPAGE_FOOTER_COL_1_ITEM_3")),e.npT),e.R7$(5),e.FS9("href",e.bMT(30,84,"HOMEPAGE_FOOTER_COL_1_ITEM_4_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(32,88,e.bMT(31,86,"HOMEPAGE_FOOTER_COL_1_ITEM_4")),e.npT),e.R7$(5),e.FS9("href",e.bMT(35,90,"HOMEPAGE_FOOTER_COL_1_ITEM_5_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(37,94,e.bMT(36,92,"HOMEPAGE_FOOTER_COL_1_ITEM_5")),e.npT),e.R7$(5),e.FS9("href",e.bMT(40,96,"HOMEPAGE_FOOTER_COL_1_ITEM_6_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(42,100,e.bMT(41,98,"HOMEPAGE_FOOTER_COL_1_ITEM_6")),e.npT),e.R7$(5),e.FS9("href",e.bMT(45,102,"HOMEPAGE_FOOTER_COL_1_ITEM_7_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(47,106,e.bMT(46,104,"HOMEPAGE_FOOTER_COL_1_ITEM_7")),e.npT),e.R7$(5),e.Y8G("innerHtml",e.bMT(51,110,e.bMT(50,108,"HOMEPAGE_FOOTER_COL_2_TITLE")),e.npT),e.R7$(5),e.FS9("href",e.bMT(55,112,"HOMEPAGE_FOOTER_COL_2_ITEM_1_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(57,116,e.bMT(56,114,"HOMEPAGE_FOOTER_COL_2_ITEM_1")),e.npT),e.R7$(5),e.FS9("href",e.bMT(60,118,"HOMEPAGE_FOOTER_COL_2_ITEM_2_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(62,122,e.bMT(61,120,"HOMEPAGE_FOOTER_COL_2_ITEM_2")),e.npT),e.R7$(5),e.FS9("href",e.bMT(65,124,"HOMEPAGE_FOOTER_COL_2_ITEM_3_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(67,128,e.bMT(66,126,"HOMEPAGE_FOOTER_COL_2_ITEM_3")),e.npT),e.R7$(5),e.FS9("href",e.bMT(70,130,"HOMEPAGE_FOOTER_COL_2_ITEM_4_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(72,134,e.bMT(71,132,"HOMEPAGE_FOOTER_COL_2_ITEM_4")),e.npT),e.R7$(5),e.FS9("href",e.bMT(75,136,"HOMEPAGE_FOOTER_COL_2_ITEM_5_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(77,140,e.bMT(76,138,"HOMEPAGE_FOOTER_COL_2_ITEM_5")),e.npT),e.R7$(5),e.FS9("href",e.bMT(80,142,"HOMEPAGE_FOOTER_COL_2_ITEM_6_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(82,146,e.bMT(81,144,"HOMEPAGE_FOOTER_COL_2_ITEM_6")),e.npT),e.R7$(5),e.FS9("href",e.bMT(85,148,"HOMEPAGE_FOOTER_COL_2_ITEM_7_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(87,152,e.bMT(86,150,"HOMEPAGE_FOOTER_COL_2_ITEM_7")),e.npT),e.R7$(5),e.FS9("href",e.bMT(90,154,"HOMEPAGE_FOOTER_COL_2_ITEM_8_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(92,158,e.bMT(91,156,"HOMEPAGE_FOOTER_COL_2_ITEM_8")),e.npT),e.R7$(5),e.Y8G("innerHtml",e.bMT(96,162,e.bMT(95,160,"HOMEPAGE_FOOTER_COL_3_TITLE")),e.npT),e.R7$(5),e.FS9("href",e.bMT(100,164,"HOMEPAGE_FOOTER_COL_3_ITEM_1_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(102,168,e.bMT(101,166,"HOMEPAGE_FOOTER_COL_3_ITEM_1")),e.npT),e.R7$(5),e.FS9("href",e.bMT(105,170,"HOMEPAGE_FOOTER_COL_3_ITEM_2_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(107,174,e.bMT(106,172,"HOMEPAGE_FOOTER_COL_3_ITEM_2")),e.npT),e.R7$(5),e.FS9("href",e.bMT(110,176,"HOMEPAGE_FOOTER_COL_3_ITEM_3_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(112,180,e.bMT(111,178,"HOMEPAGE_FOOTER_COL_3_ITEM_3")),e.npT),e.R7$(5),e.FS9("href",e.bMT(115,182,"HOMEPAGE_FOOTER_COL_3_ITEM_4_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(117,186,e.bMT(116,184,"HOMEPAGE_FOOTER_COL_3_ITEM_4")),e.npT),e.R7$(5),e.Y8G("innerHtml",e.bMT(121,190,e.bMT(120,188,"HOMEPAGE_FOOTER_COL_4_TITLE")),e.npT),e.R7$(5),e.FS9("href",e.bMT(125,192,"HOMEPAGE_FOOTER_COL_4_ITEM_1_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(127,196,e.bMT(126,194,"HOMEPAGE_FOOTER_COL_4_ITEM_1")),e.npT),e.R7$(5),e.FS9("href",e.bMT(130,198,"HOMEPAGE_FOOTER_COL_4_ITEM_2_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(132,202,e.bMT(131,200,"HOMEPAGE_FOOTER_COL_4_ITEM_2")),e.npT),e.R7$(5),e.FS9("href",e.bMT(135,204,"HOMEPAGE_FOOTER_COL_4_ITEM_3_LINK"),e.B4B),e.Y8G("innerHtml",e.bMT(137,208,e.bMT(136,206,"HOMEPAGE_FOOTER_COL_4_ITEM_3")),e.npT),e.R7$(6),e.FS9("href",e.bMT(141,210,"HOMEPAGE_FOOTER_APP_STORE_
1LINK"),e.B4B),e.R7$(3),e.FS9("href",e.bMT(144,212,"HOMEPAGE_FOOTER_GOOGLE_STORE_LINK"),e.B4B),e.R7$(5),e.FS9("href",e.bMT(149,214,"HOMEPAGE_FOOTER_LINKEDIN_LINK"),e.B4B),e.R7$(3),e.FS9("href",e.bMT(152,216,"HOMEPAGE_FOOTER_FACEBOOK_LINK"),e.B4B),e.R7$(3),e.FS9("href",e.bMT(155,218,"HOMEPAGE_FOOTER_TWITTER_LINK"),e.B4B),e.R7$(3),e.FS9("href",e.bMT(158,220,"HOMEPAGE_FOOTER_INSTAGRAM_LINK"),e.B4B),e.R7$(3),e.FS9("href",e.bMT(161,222,"HOMEPAGE_FOOTER_YOUTUBE_LINK"),e.B4B),e.R7$(6),e.SpI("Smash & Co \xa9 2017-",k.yearnow,"")}}const Be=(0,e.zw6)("homepageShow"),$e=i.c.asset,ft=[{path:"",component:(()=>{var S;class y{constructor(h,x,L,O,Z,U,M){this.state=h,this.deviceDetector=x,this.store$=L,this.renderer2=O,this.seoService=Z,this.req=U,this.platformId=M,this.show=!0,this.displayPaths=/^\/$|^\/(fr|en|de|es|it|pt)$/,this.subscriptions=[],this.yearnow=W()().year(),(0,c.UE)(this.platformId)&&(this.show=this.state.get(Be,!1),this.isDesktop=this.deviceDetector.isDesktop(),this.show&&this.seoService.setFaqRichResults(this.renderer2)),this.stepDesktop$=this.store$.select(_.v3),this.step$=this.store$.select(_.v3);const F=(0,c.Vy)(this.platformId)?this.req.path:location.pathname;((0,c.Vy)(this.platformId)?(0,H.ZI)(`${this.req.headers["x-forwarded-host"]}`):(0,H.ZI)(location.hostname))&&this.displayPaths.test(F)?(this.show=!0,this.state.set(Be,!0)):this.show=!1}ngOnInit(){this.subscriptions.push(this.store$.select(u.Ev).subscribe(h=>{const x=(0,c.Vy)(this.platformId)?this.req.protocol+"://"+this.req.hostname+this.req.originalUrl:location.href,L=new URL(x),O=new URLSearchParams(L.search);if(O.get("previewDiscover")){const Z=(0,ne.$i)(O.get("previewDiscover"),$e);this.discoverHtmlUrl=Z}else this.discoverHtmlUrl=`${$e}/published/media/discover/${h||"en"}`}))}ngOnDestroy(){this.subscriptions.forEach(h=>h.unsubscribe())}}return(S=y).\u0275fac=function(h){return new(h||S)(e.rXU(e.pJN),e.rXU(Se.Kg),e.rXU(B.il),e.rXU(e.sFG),e.rXU(xe.F),e.rXU(E.S,8),e.rXU(e.Agw))},S.\u0275cmp=e.VBU({type:S,selectors:[["app-homepage"]],decls:3,vars:5,consts:[["class","homepage-container",4,"ngIf"],[1,"homepage-container"],[3,"externalContent"],[1,"footer-placeholder"],[1,"footer-main-title",3,"innerHtml"],[1,"footer-content"],[1,"bloc","footer-col"],[1,"footer-subtitle",3,"innerHtml"],[1,"footer-list"],[3,"href","innerHtml"],["target","_blank",3,"href","innerHtml"],[1,"store"],["target","_blank",3,"href"],["loading","lazy","src","/assets/img/appstore.png","alt",""],["loading","lazy","src","/assets/img/google-play.png","alt",""],["target","_blank",1,"social",3,"href"],[1,"icon-smash_linkedin2"],[1,"icon-smash_facebook"],[1,"icon-smash_twitter"],[1,"icon-smash_instagram"],[1,"icon-smash_youtube"],[1,"footer-copyright-language"],[1,"copyright"],[1,"select-lang-container"],["dropdownDirection","up","chevronColor","#FFF"]],template:function(h,x){1&h&&(e.DNE(0,je,169,224,"div",0),e.nI1(1,"async"),e.nI1(2,"async")),2&h&&e.Y8G("ngIf",x.show&&(x.isDesktop&&"LANDING"===e.bMT(1,1,x.stepDesktop$)||!x.isDesktop&&"LANDING"===e.bMT(2,3,x.step$)))},dependencies:[c.bT,Fe.i,Me,c.Jj,A.D9,we.$],styles:['.button-link-blue{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue:hover{filter:brightness(80%)}.button-link-red{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red:hover{filter:brightness(80%)}.btn-new{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new:disabled{cursor:default;opacity:.5}.btn-v3{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3{border-radius:3rem}}.btn{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn:disabled{cursor:initial;opacity:.5}.btn-rounded{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded:disabled{cursor:initial;opacity:.5}.primary{background-color:#ea5159;border:1px solid none;color:#fafafa}.green{background-color:#10a375;border:1px solid #10A375;color:#fff}.green:hover:not([disabled]){color:#e4fff7}.red{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red:hover:not([disabled]){color:#f7ccce}.red-light{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark{background-color:#333;border:1px solid #333;color:#fff}.dark:hover:not([disabled]){color:#ccc}.light{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light:hover{border-color:#0009;color:#0009}.white{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire{background-color:#fff;border:1px solid #333;color:#333}.auto{width:auto}.button-mobile{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.mobile-card{align-items:center;justify-content:center;border-radius:1.3rem;background:#fff;width:100%;height:-moz-fit-content;height:fit-content;margin-bottom:2rem;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;padding:2rem;min-height:10rem}.mobile-card .mobile-card-no-content-container{display:flex;align-items:center;justify-content:center}.mobile-card .mobile-card-no-content-container-message{color:#888;font-weight:400;font-size:1.5rem;text-align:center}.mobile-card{display:flex;flex-direction:column}.full-size-container{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.homepage-container{z-index:1000;position:relative;bottom:0;background:#fff;width:100%;color:#333;font-size:2rem;line-height:3rem;overflow-x:hidden}@media (max-width: 959px){.homepage-container{line-height:2.5rem}}.homepage-container .homepage-placeholder{padding:2rem;background:#fff;margin:0 auto;width:75%;max-width:800px;left:0;padding:8rem 0}@media (max-width: 959px){.homepage-container .homepage-placeholder{width:87%}}.homepage-container .homepage-placeholder h1,.homepage-container .homepage-placeholder h2,.homepage-container .homepage-placeholder h5{font-family:Nunito;font-weight:900;line-height:4rem}.homepage-container .homepage-placeholder h3{font-size:2.3rem;display:inline}.homepage-container .homepage-placeholder h1{font-size:5.8rem;line-height:6.5rem;padding:0rem 5rem;text-align:center;margin-bottom:2rem}@media (max-width: 959px){.homepage-container .homepage-placeholder h1{font-size:4rem;line-height:4rem;padding:0}}.homepage-container .homepage-placeholder h2,.homepage-container .homepage-placeholder h5{font-size:4rem;font-family:Nunito}@media (max-width: 959px){.homepage-container .homepage-placeholder h2,.homepage-container .homepage-placeholder h5{font-size:2.5rem;line-height:2.5rem}}.homepage-container .homepage-placeholder img{width:100%;border-radius:1rem;margin-bottom:4rem}.homepage-container .homepage-placeholder header h1{font-size:5.8rem;line-height:6.5rem;padding:0 5rem;text-align:center;margin-bottom:2rem}@media (max-width: 959px){.homepage-container .homepage-placeholder header h1{font-size:4rem;line-height:4rem;padding:0}}.homepage-container .homepage-placeholder header h2{text-align:center}.homepage-container .homepage-placeholder header p{font-size:2rem;font-family:Roboto;font-weight:500;text-align:center;padding:0rem 9rem;line-height:3rem}@media (max-width: 959px){.homepage-container .homepage-placeholder header p{line-height:2.5rem;padding:0}}.homepage-container .homepage-placeholder .justify{text-align:justify}.homepage-container .homepage-placeholder hr{border:none;height:1px;color:#fff;background:#fff;width:100%}.homepage-container .homepage-placeholder ul{list-style:disc;list-style-position:inside}.homepage-container .homepage-placeholder ol{list-style:upper-numeric;list-style-position:inside}.homepage-container .homepage-placeholder ol ::marker{font-weight:700;font-size:2.3rem}.homepage-container .homepage-placeholder ol,.homepage-container .homepage-placeholder h2,.homepage-container .homepage-placeholder h5{margin-bottom:4rem}.homepage-container .homepage-placeholder li{margin:2rem 0}.homepage-container .homepage-placeholder section{margin:6rem 0;position:relative}.homepage-container .homepage-placeholder section .section-container{position:relative}.homepage-container .homepage-placeholder section .section-container>div,.homepage-container .homepage-placeholder section .section-container>q{margin-bottom:4rem}.homepage-container .homepage-placeholder section h4{font-weight:900}.homepage-container .homepage-placeholder section a{transition:all .2s ease;color:#333;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}.homepage-container .homepage-placeholder section a:hover{color:#7f7f7f}.homepage-container .homepage-placeholder section .ordered-list-summary{font-weight:900}.homepage-container .homepage-placeholder section q{position:absolute;width:20rem;text-align:center;font-style:italic;font-weight:lighter;font-size:1.6rem;color:#7f7f7f;line-height:2.3rem;bottom:0;height:10rem;display:flex;align-items:center}.homepage-container .homepage-placeholder section q.left{left:-25rem;top:11rem}.homepage-container .homepage-placeholder section q.right{right:-25rem;top:11rem}@media (max-width: 1280px){.homepage-container .homepage-placeholder section q{position:relative;width:100%}.homepage-container .homepage-placeholder section q.left,.homepage-container .homepage-placeholder section q.right{top:0;left:unset;right:unset;height:unset}}.homepage-container .homepage-placeholder section .wrapper-accordeon{margin:4rem 0}.homepage-container .homepage-placeholder section .wrapper-accordeon details>summary::marker,.homepage-container .homepage-placeholder section .wrapper-accordeon details>summary::-webkit-details-marker{display:none}.homepage-container .homepage-placeholder section .wrapper-accordeon details summary{display:flex;align-items:center;position:relative;padding:2.5rem 0;border-top:1px solid #d9d9d9;font-size:2.5rem;font-family:Nunito;font-weight:900;list-style:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:pointer}.homepage-container .homepage-placeholder section .wrapper-accordeon details summary::marker,.homepage-container .homepage-placeholder section .wrapper-accordeon details summary::-webkit-details-marker{display:none}.homepage-container .homepage-placeholder section .wrapper-accordeon details summary .summary{margin-right:6rem}@media (max-width: 959px){.homepage-container .homepage-placeholder section .wrapper-accordeon details summary .summary{font-size:2.3rem}}.homepage-container .homepage-placeholder section .wrapper-accordeon .content{padding:0;margin-top:0;margin-bottom:3rem;text-align:justify}.homepage-container .homepage-placeholder section .wrapper-accordeon .animate{height:auto;max-height:0;overflow:hidden;transition:all .5s ease;transition-delay:0s}.homepage-container .homepage-placeholder section .wrapper-accordeon details[open]~.animate{max-height:200vh;overflow:hidden;transition:all .5s ease;transition-delay:0s}.homepage-container .homepage-placeholder section .wrapper-accordeon .chevron:before,.homepage-container .homepage-placeholder section .wrapper-accordeon .chevron:after,.homepage-container .homepage-placeholder section .wrapper-accordeon .chev:before,.homepage-container .homepage-placeholder section .wrapper-accordeon .chev:after{position:absolute;content:"";right:30px;height:2px;width:12px;border-radius:2px;background-color:#000;transition:transform .2s ease-in-out}.homepage-container .homepage-placeholder section .wrapper-accordeon .chevron{position:absolute;right:0;transition:transform .2s ease-in-out}.homepage-container .homepage-placeholder section .wrapper-accordeon details[open] .chevron{transform:translateY(-4px);transition:transform .2s ease-in-out}.homepage-container .homepage-placeholder section .wrapper-accordeon .chevron:before,.homepage-container .homepage-placeholder section .wrapper-accordeon .chev:after{transform:rotate(45deg)}.homepage-container .homepage-placeholder section .wrapper-accordeon .chev:before,.homepage-container .homepage-placeholder section .wrapper-accordeon .chevron:after{transform:translate(7px) rotate(-45deg)}.homepage-container .homepage-placeholder section .wrapper-accordeon details[open] .chevron:before{transform:rotate(45deg)}.homepage-container .homepage-placeholder section .wrapper-accordeon details[open] .chev:before{transform:translate(7px) rotate(-45deg)}.homepage-container .homepage-placeholder section .wrapper-accordeon details[open] .chevron:after{transform:translateY(7px) rotate(-45deg)}.homepage-container .homepage-placeholder section .wrapper-accordeon details[open] .chev:after{transform:translateY(7px) translate(7px) rotate(45deg)}.homepage-container .footer-placeholder{background:#333;color:#fff;margin:0 auto;padding:2rem;left:0;padding:4rem 0}@media (max-width: 959px){.homepage-container .footer-placeholder{padding:2rem 0}}.homepage-container .footer-placeholder footer{flex-shrink:0;margin:0 auto;width:70%}@media (max-width: 959px){.homepage-container .footer-placeholder footer{font-size:2rem;width:85%}}.homepage-container .footer-placeholder footer a.social{font-size:1.8rem}.homepage-container .footer-placeholder footer a.social:not(:last-child){margin-right:2rem}.homepage-container .footer-placeholder footer .footer-content{font-size:1.4rem;margin:0 auto;display:flex;justify-content:center;align-items:flex-start;padding:5rem 0}@media (max-width: 959px){.homepage-container .footer-placeholder footer .footer-content{font-size:1.8rem;flex-direction:column}}.homepage-container .footer-placeholder footer .footer-content li{margin-bottom:2rem;line-height:2rem}.homepage-container .footer-placeholder footer .bloc{width:25%}.homepage-container .footer-placeholder footer .bloc:last-child{display:flex;flex-direction:column;align-items:flex-end;width:31rem}@media (max-width: 959px){.homepage-container .footer-placeholder footer .bloc:last-child{width:100%}}.homepage-container .footer-placeholder footer .bloc:last-child div{display:flex;justify-content:space-between;align-items:flex-end}.homepage-container .footer-placeholder footer .bloc:last-child div.store{width:100%}.homepage-container .footer-placeholder footer .bloc:last-child hr{margin:4rem 0;width:20rem}.homepage-container .footer-placeholder footer .bloc:not(:first-child){padding-left:1rem}@media (max-width: 959px){.homepage-container .footer-placeholder footer .bloc:not(:first-child){padding-left:0}}@media (max-width: 959px){.homepage-container .footer-placeholder footer .bloc{width:100%}}.homepage-container .footer-placeholder footer .footer-copyright-language{display:flex;justify-content:space-between}.homepage-container .footer-placeholder footer .footer-copyright-language .select-lang-container{width:9rem}.homepage-container .footer-placeholder footer .footer-copyright-language .copyright{font-size:1.4rem}.footer-main-title{font-size:1.6rem;line-height:3rem;font-weight:400}.footer-subtitle{font-size:1.6rem;font-weight:900;margin-bottom:1rem}@media (max-width: 959px){.footer-subtitle{font-size:2.2rem}}\n'],encapsulation:2}),y})()}];var oe=r(47975),Ke=r(56365);let He=(()=>{var S;class y{}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({providers:[A.c$],imports:[c.MD,A.h,oe.G,Ke.t,B.md.forFeature
1(_.aZ,_.gz),a.iI.forChild(ft)]}),y})();const it=[{path:"",loadChildren:()=>r.e(7032).then(r.bind(r,27032)).then(S=>S.ClientModule)},{path:"",outlet:"home",loadChildren:()=>He}];let gt=(()=>{var S;class y{}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({imports:[a.iI.forRoot(it,{initialNavigation:"enabledBlocking"}),a.iI]}),y})();var ct=r(61667),lt=r(28866),Qe=r(64976),Ze=r(76608),Xe=r(26890),ot=r(17796),ht=r(12787),dt=r(84932),Rt=r(6663);function Ye(S){const y=i.c.appDomainWithProtocol.replace("//","//");return JSON.parse(JSON.stringify(S).replace(/:\"\//gm,`: "${y}/`).replace(/href=\\"\//gm,`href=\\"${y}/`))}const ut={maxRetries:2,delayMs:S=>S<=1?1e3:2e3,perAttemptTimeoutMs:5e3,overallTimeoutMs:2e4};class St{constructor(y,k,h="./assets/i18n/",x=".json",L=ut){this.transferState=y,this.http=k,this.prefix=h,this.suffix=x,this.retryConfig=L}getTranslation(y){const k=(0,e.zw6)("transfer-translate-"+y),h=this.transferState.get(k,null);if(h)return(0,ot.of)(Ye(h));{const{maxRetries:x,delayMs:L,perAttemptTimeoutMs:O,overallTimeoutMs:Z}=this.retryConfig;return new lt.s(this.http,this.prefix,this.suffix).getTranslation(y).pipe((0,Xe.w)(O),(0,ht.L)({count:x,delay:(U,M)=>{if(function Ge(S){return S instanceof Xe.M||"object"==typeof S&&null!==S&&0===S.status}(U))return(0,dt.O)(L(M));throw U}}),(0,Xe.w)(Z),(0,Rt.T)(U=>Ye(U)))}}}class Ve{constructor(y,k="./assets/i18n/",h=".json"){this.transferState=y,this.prefix=k,this.suffix=h}getTranslation(y){const k=(0,Ze.join)(__dirname,"../browser",this.prefix,`${y}${this.suffix}`);if((0,Qe.existsSync)(k)){const h=(0,e.zw6)("transfer-translate-"+y),L=Ye(JSON.parse((0,Qe.readFileSync)(k,"utf8")));return this.transferState.set(h,L),(0,ot.of)(L)}{const h=(0,Ze.join)(__dirname,"../browser",this.prefix,`${d.h.languageFallback}${this.suffix}`),x=(0,e.zw6)("transfer-translate-"+y),O=Ye(JSON.parse((0,Qe.readFileSync)(h,"utf8")));return this.transferState.set(x,O),(0,ot.of)(O)}}}function Ut(S,y,k){const h="./assets/i18n/";return(0,c.UE)(k)?new St(y,S,h):new Ve(y,h)}function at(){return new ct.sc}let Et=(()=>{var S;class y{constructor(h,x,L,O,Z){this.cookiesService=x,this.res=L,this.req=O,this.platformId=Z,this.supportedLanguages=["en","fr","de","pt","es","it"];const U=(0,c.UE)(this.platformId)?window.location.pathname:O.originalUrl;h.addLangs(this.supportedLanguages);const M=(0,H.D_)(U);let F;if("en"===M){F=this.getLangFromCookie()||((0,c.Vy)(this.platformId)&&this.req.headers["accept-language"]?this.parseAcceptLanguage(this.req.headers["accept-language"]):M)}else F=M;(0,c.Vy)(this.platformId)&&this.res.cookie("_slang",JSON.stringify(F),{domain:(0,H.tN)(`${this.req.headers["x-forwarded-host"]}`),path:"/",expires:W()().add(ve.U.lang.expires,"ms").toDate()}),h.use(F)}getLangFromCookie(){var h;return null!=this&&null!==(h=this.req)&&void 0!==h&&h.cookies._slang?JSON.parse(this.req.cookies._slang):this.cookiesService.getCookie("lang")}parseAcceptLanguage(h){return h.split(";").shift().split(",").map(O=>O.split("-").shift()).find(O=>this.supportedLanguages.indexOf(O)>-1)||d.h.languageFallback}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(A.c$),e.KVO(ve.r),e.KVO(E.C,8),e.KVO(E.S,8),e.KVO(e.Agw))},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({imports:[Q.q1,A.h.forRoot({loader:{provide:A.Wr,useFactory:Ut,deps:[Q.Qq,e.pJN,e.Agw]},compiler:{provide:A.kJ,useFactory:at},isolate:!1}),A.h]}),y})();var kt=r(40778),qe=r(41402);const Ft={language:"Default",location:"Global",device:"Desktop",target:"All",status:"Published"};function vt(S){return S.some(y=>"WW"===y.name&&"Include"===y.rule)}function Tt(S,y){return S.some(k=>k.name.toLowerCase()===y.toLowerCase()&&"Include"===k.rule)}function Pt(S,y){return S.some(k=>k.name.toLowerCase()===y.toLowerCase()&&"Exclude"===k.rule)}function Mt(S,y){return Pt(S,y)?0:Tt(S,y)?null!==(k=S.find(x=>x.name===y).voiceShare)&&void 0!==k?k:0:vt(S)&&null!==(h=S.find(x=>"WW"===x.name).voiceShare)&&void 0!==h?h:0;var k,h}function Ot(S,y){const{previousThemeId:k,location:h}=y,x=function wt(S,y){const k=[];let h=0;for(const x of S)h+=Mt(x.locations,y);for(const x of S){const L=Mt(x.locations,y);k.push(h?L/h:0)}return k}(S,h).filter(Z=>Z>0),L=Math.random();let O=0;for(let Z=0;Z<x.length;Z++)if(O+=x[Z],L<=O){const U=S[Z];return U.id!==k||1===S.length?U:Ot(S,y)}}function Ht(S,y,k){var h,x,L,O,Z,U,M,F,se,ee,de,X,ae,fe,he,Le,ye,ke,Oe,_e,tt,De,ze,be,Ne,ho,bt,Nt,So,Eo,to,oo,ao,ro,Ae,no,so,io,co,lo,uo;const Ce="Mobile"===y?null===(h=S.mobile)||void 0===h?void 0:h.teasing:null===(x=S.desktop)||void 0===x?void 0:x.teasing,Pe="Mobile"===y?null===(L=S.mobile)||void 0===L?void 0:L.reveal:null===(O=S.desktop)||void 0===O?void 0:O.reveal,Po=S.trackingMethods,nt=k.toLowerCase(),Co={headerLogo:null!==(Z=null==Ce||null===(U=Ce.headerLogo)||void 0===U?void 0:U.url[nt])&&void 0!==Z?Z:null==Ce||null===(M=Ce.headerLogo)||void 0===M?void 0:M.url.default,headerUrl:null!==(F=null==Ce||null===(se=Ce.headerUrl)||void 0===se?void 0:se[nt])&&void 0!==F?F:null==Ce||null===(ee=Ce.headerUrl)||void 0===ee?void 0:ee.default,centralLogo:null!==(de=null==Ce||null===(X=Ce.centralLogo)||void 0===X?void 0:X.url[nt])&&void 0!==de?de:null==Ce||null===(ae=Ce.centralLogo)||void 0===ae?void 0:ae.url.default,headerText:null!==(fe=null==Ce||null===(he=Ce.headerText)||void 0===he?void 0:he[nt])&&void 0!==fe?fe:null==Ce||null===(Le=Ce.headerText)||void 0===Le?void 0:Le.default,background:{type:null==Ce||null===(ye=Ce.background)||void 0===ye?void 0:ye.type,url:null!==(ke=null==Ce||null===(Oe=Ce.background)||void 0===Oe?void 0:Oe.url[nt])&&void 0!==ke?ke:null==Ce||null===(_e=Ce.background)||void 0===_e?void 0:_e.url.default,trackingMethods:null==Ce||null===(tt=Ce.background)||void 0===tt?void 0:tt.trackingMethods}},Io={teasing:{text:null!==(De=null==Pe||null===(ze=Pe.teasing)||void 0===ze||null===(ze=ze.text)||void 0===ze?void 0:ze[nt])&&void 0!==De?De:null==Pe||null===(be=Pe.teasing)||void 0===be||null===(be=be.text)||void 0===be?void 0:be.default,background:{type:null==Pe||null===(Ne=Pe.teasing)||void 0===Ne||null===(Ne=Ne.background)||void 0===Ne?void 0:Ne.type,url:null!==(ho=null==Pe||null===(bt=Pe.teasing)||void 0===bt||null===(bt=bt.background)||void 0===bt?void 0:bt.url[nt])&&void 0!==ho?ho:null==Pe||null===(Nt=Pe.teasing)||void 0===Nt||null===(Nt=Nt.background)||void 0===Nt?void 0:Nt.url.default}},text:null!==(So=null==Pe||null===(Eo=Pe.text)||void 0===Eo?void 0:Eo[nt])&&void 0!==So?So:null==Pe||null===(to=Pe.text)||void 0===to?void 0:to.default,callToAction:{label:null!==(oo=null==Pe||null===(ao=Pe.callToAction)||void 0===ao?void 0:ao.label[nt])&&void 0!==oo?oo:null==Pe||null===(ro=Pe.callToAction)||void 0===ro?void 0:ro.label.default,url:null!==(Ae=null==Pe||null===(no=Pe.callToAction)||void 0===no?void 0:no.url[nt])&&void 0!==Ae?Ae:null==Pe||null===(so=Pe.callToAction)||void 0===so?void 0:so.url.default},medias:null!==(io=null!==(co=null==Pe||null===(lo=Pe.medias)||void 0===lo?void 0:lo[nt])&&void 0!==co?co:null==Pe||null===(uo=Pe.medias)||void 0===uo?void 0:uo.default)&&void 0!==io?io:[]};return{id:S.id,name:S.name,status:S.status,target:S.target,locations:S.locations,periods:S.periods,teasing:Co,reveal:Io,trackingMethods:Po}}function Gt(S,y=Ft){const{themeId:k,language:h,location:x,device:L,target:O,currentOs:Z}=y;if(k){const M=S.find(F=>F.id===k);if(M)return Ht(M,L,h)}S=(S=(S=(S=S.filter(M=>void 0!==M[L.toLowerCase()])).filter(M=>M.target===O)).filter(M=>"Published"===M.status)).filter(M=>function Ct(S){var y;return!((null==S||null===(y=S.periods)||void 0===y?void 0:y.length)>
10&&!S.periods.some(k=>{var h;const x=W()(k.startDate),L=W()(k.endDate);if(null!==(h=k.periodsOfDay)&&void 0!==h&&h.length){const O="hh:mm:ss";return k.periodsOfDay.some(Z=>{const U=W()(Z.startTime,O),M=W()(Z.endTime,O);return W()().isBetween(x,L)&&W()().isBetween(U,M)})}return W()().isBetween(x,L)}))}(M)),S=S.filter(M=>function yt(S){return S.some(y=>"Exclude"===y.rule)}(M.locations)?!Pt(M.locations,x):Tt(M.locations,x)||vt(M.locations)),S=S.filter(M=>function Xt(S,y,k){if(!y)return!0;if("Desktop"===k){const h=S.desktop;if(null==h||!h.os||0===h.os.length)return!0;const x=y.toLowerCase(),L=h.os;return x.includes("windows")?L.includes("windows"):x.includes("mac")||x.includes("os x")?L.includes("macos"):!x.includes("linux")||L.includes("linux")}return!0}(M,Z,L));const U=Ot(S,y);return U?Ht(U,L,h):null}var mt=r(94236),It=r(57473),Dt=r(7738),At=r(26377),Wt=r(581);let Jt=(()=>{var S;class y{constructor(h,x,L,O,Z){var U=this;this.store$=h,this.googleTagManagerService=x,this.localStorageService=L,this.actions$=O,this.deviceDetectorService=Z,this.loadTheme$=(0,mt.EH)(()=>this.actions$.pipe((0,mt.gp)(l.BW.LoadTheme),(0,Dt.E)(this.store$.select(u.gI),this.store$.select(u.Ev),this.store$.select(u.Pf)),(0,At.p)(function(){var M=(0,K.A)(function*([F,se,ee,de]){var X;const ae=new It.S,{themes:fe}=yield ae.listManagedThemesPublic(),he=U.localStorageService.getItem(d.h.smashQueryParams.themeCountryCode),Le=null===(X=U.localStorageService.getItem(d.h.smashQueryParams.themeLanguage))||void 0===X?void 0:X.toLowerCase(),ye=U.localStorageService.getItem(d.h.smashQueryParams.themeId),ke=he||se,_e=Object.keys(d.h.supportedLanguages).includes(Le)?Le:ee,De=Gt(fe,{device:de.isMobile?"Mobile":"Desktop",language:_e,location:ke,target:F.target,themeId:ye,currentOs:U.deviceDetectorService.os});var ze,be,Ne;return De&&U.googleTagManagerService.pushTag({theme_id:De.id,theme_name:De.name,theme_teasing_background_type:null===(ze=De.teasing)||void 0===ze||null===(ze=ze.background)||void 0===ze?void 0:ze.type,theme_teasing_background_url:null===(be=De.teasing)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.url,theme_teasing_headger_logo_url:null===(Ne=De.teasing)||void 0===Ne?void 0:Ne.headerLogo,theme_target:De.target}),l.BW.LoadThemeSuccess({theme:De})});return function(F){return M.apply(this,arguments)}}())))}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(B.il),e.KVO(Wt.A),e.KVO(ue.s),e.KVO(mt.En),e.KVO(Se.Kg))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),y})();var vo=r(18924),po=r(58100),fo=r(16119);const go=new ue.s(e.Agw),To={config:{tokenGetter:function Ue(){if(typeof window<"u")return go.getItem("access_token")},allowedDomains:["localhost:4200","fromsmash.ninja","fromsmash.com"]}};let Kt=(()=>{var S;class y{}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({imports:[c.MD,fo.QU.forRoot(To),A.h]}),y})();var Qt=r(24589),Zt=r(39840);const Yt=[];typeof window<"u"&&Yt.push(S=>(0,R.CP)({keys:[{account:["plan","country","userContacts"]},{team:["teamSelected"]},{environment:["selectedLanguage","region","onBoarding"]}],rehydrate:!0,restoreDates:!1})(S));let Vt=(()=>{var S;class y{constructor(){}}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({providers:[(0,o.$x)(),Zt.G,{provide:"googleTagManagerId",useValue:i.c.googleTagManagerId},{provide:"googleTagManagerAuth",useValue:i.c.googleTagManagerAuth},{provide:"googleTagManagerPreview",useValue:i.c.googleTagManagerPreview}],imports:[Et,c.MD,gt,Qt.hO.forRoot({routerState:1}),B.md.forRoot(u.PG,{metaReducers:Yt,runtimeChecks:{strictStateImmutability:!0,strictActionImmutability:!0,strictStateSerializability:!0,strictActionSerializability:!0}}),mt.Vm.forRoot([qe.y9,Jt,qe.A$,qe.vv,qe.VO,po.c,kt.P,vo.Y]),oe.G,Kt]}),y})(),_t=(()=>{var S;class y{constructor(){}}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["app-home"]],decls:1,vars:0,consts:[["name","home"]],template:function(h,x){1&h&&e.nrm(0,"router-outlet",0)},dependencies:[a.n3]}),y})();var We=r(15463),pt=r(19847),Je=r(60494);let zt=(()=>{var S;class y{constructor(h){this.store$=h,this.refreshTokenSubject=ne
1w I.t(null)}intercept(h,x){return"true"===h.headers.get("Authorization")?this.useSmashAuthentication(h,x):x.handle(h)}applyCredentials(h,x){return h.clone({setHeaders:{Authorization:"Bearer "+x}})}useSmashAuthentication(h,x){return this.refreshTokenSubject.next(null),this.store$.select(u.gf).pipe((0,j.s)(1),(0,pt.H)(L=>x.handle(this.applyCredentials(h,L)).pipe((0,Je.W)(O=>401===O.status?this.reloadAuth(h,x,O):(0,We.$)(O)))))}reloadAuth(h,x,L){return this.store$.select(u.Rm).pipe((0,j.s)(1),(0,pt.H)(O=>O?this.refreshTokenSubject.pipe((0,f.p)(Z=>null!==Z),(0,j.s)(1),(0,pt.H)(Z=>x.handle(this.applyCredentials(h,Z)))):(this.store$.dispatch(l.Xw.refreshToken()),this.store$.select(u.Rm).pipe((0,f.p)(Z=>!Z),(0,Dt.E)(this.store$.select(u._1),this.store$.select(u.v8),this.store$.select(u.gf)),(0,j.s)(1),(0,pt.H)(([Z,U,M,F])=>M?(0,We.$)(M):U?(this.refreshTokenSubject.next(F),x.handle(this.applyCredentials(h,F))):(0,We.$)(L))))))}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(B.il))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),y})();var rt=r(59549);let eo=(()=>{var S;class y{constructor(h,x){this.loggerService=h,this.platformId=x}intercept(h,x){return(0,c.UE)(this.platformId)&&!(h.body instanceof Blob)&&h.body&&(h=h.clone({body:this.cleanBody(h.body)})),x.handle(h)}cleanBody(h){return(0,rt.$L)(h)}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(le.g),e.KVO(e.Agw))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),y})();var et=r(74671);let Bt=(()=>{var S;class y{constructor(h,x){this.store=h,this.loggerService=x,this.regexpService=/service:\w+/g}intercept(h,x){return this.addEndpoint(h).pipe((0,ge.$)(),(0,et.Z)(L=>x.handle(L)))}addEndpoint(h){return this.regexpService.test(h.url)?this.store.pipe((0,B.Lt)(u.Zo),(0,ge.$)(),(0,et.Z)(({services:x,region:L})=>{if(x.length){const O=h.url.match(this.regexpService)[0].split(":"),Z=x.find(U=>U.name===O[1]&&U.region===L);h=h.clone({url:h.url.replace(this.regexpService,Z.url)})}else this.loggerService.error("Service not found in service");return(0,ot.of)(h)})):(0,ot.of)(h)}}return(S=y).\u0275fac=function(h){return new(h||S)(e.KVO(B.il),e.KVO(le.g))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),y})();var Ee=r(56106),jt=r(12557),D=r(5007);function re(S){return()=>S.init()}r(22381);let G=(()=>{var S;class y{}return(S=y).\u0275fac=function(h){return new(h||S)},S.\u0275mod=e.$C({type:S,bootstrap:[_t,b]}),S.\u0275inj=e.G2t({providers:[(0,D.WW)({sizes:{xs:{width:300,height:"auto",minHeight:"none"},sm:{width:400,height:"auto",minHeight:"none"},lg:{width:450,height:"auto",minHeight:"none"},xl:{height:"auto",width:575,minHeight:"none"}}}),{provide:e.zcH,useClass:ie},{provide:e.hnV,useFactory:re,deps:[Te],multi:!0},{provide:"externalUrlRedirectResolver",useValue:(k,h)=>{(0,c.UE)(e.Agw)&&(window.location.href=k.data.externalUrl)}},{provide:Q.a7,useClass:Bt,multi:!0},{provide:Q.a7,useClass:eo,multi:!0},{provide:Q.a7,useClass:zt,multi:!0}],imports:[Vt,ce.wb,Q.q1,Ee.YN,Ee.X1,jt.MQ,i.c.additionalModules]}),y})();i.c.production&&(0,e.SmG)(),document.addEventListener("DOMContentLoaded",()=>{o.sG().bootstrapModule(G).catch(S=>console.error(S))})},35358:(pe,N,r)=>{var o={"./de":34297,"./de.js":34297,"./en-gb":92119,"./en-gb.js":92119,"./es":34294,"./es.js":34294,"./fr":22270,"./fr.js":22270,"./it":21379,"./it.js":21379,"./pt":68558,"./pt.js":68558};function e(a){var u=c(a);return r(u)}function c(a){if(!r.o(o,a)){var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}return o[a]}e.keys=function(){return Object.keys(o)},e.resolve=c,pe.exports=e,e.id=35358},42634:()=>{},64976:()=>{},76608:()=>{},8330:pe=>{"use strict";pe.exports=JSON.parse('{"rE":"2.77.8","mv":{"C":"2021-06-10T00:00:00Z","r":1},"P":{"r":"1.2.3"}}')}},pe=>{pe.O(0,[4121],()=>pe(pe.s=11024)),pe.O()}]);
2//# sourceMappingURL=main.8a818b71d580eaea.js.map

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