1"use strict";(self.webpackChunkstaticsmashapp=self.webpackChunkstaticsmashapp||[]).push([[5525],{76668:(ye,ae,e)=>{e.d(ae,{F4:()=>xe,AQ:()=>d.A,fI:()=>pe,gO:()=>re});var k,d=e(19981),h=e(58527),v=e(64196),S=e(20154),G=new Uint8Array(16);function N(){if(!k&&!(k=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(G)}const I=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=[],i=0;i<256;++i)u.push((i+256).toString(16).substr(1));const R=function z(m){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,te=(u[m[P+0]]+u[m[P+1]]+u[m[P+2]]+u[m[P+3]]+"-"+u[m[P+4]]+u[m[P+5]]+"-"+u[m[P+6]]+u[m[P+7]]+"-"+u[m[P+8]]+u[m[P+9]]+"-"+u[m[P+10]]+u[m[P+11]]+u[m[P+12]]+u[m[P+13]]+u[m[P+14]]+u[m[P+15]]).toLowerCase();if(!function s(m){return"string"==typeof m&&I.test(m)}(te))throw TypeError("Stringified UUID is invalid");return te},E=function w(m,P,te){var L=(m=m||{}).random||(m.rng||N)();if(L[6]=15&L[6]|64,L[8]=63&L[8]|128,P){te=te||0;for(var M=0;M<16;++M)P[te+M]=L[M];return P}return R(L)};function t(m){return{errorId:E(),...m}}var C=e(45256),T=e(94236),J=e(14821),x=e(1061),l=e(80489),D=e(54001),U=e(17796),Z=e(19847),V=e(60494),b=e(6663),Ee=e(78374),ne=e(1936),Y=e(30532),p=e(43315),$=e(44914),W=e(10785),ce=e.n(W),g=e(33095),se=e(71100),j=e(61207),X=e(581),q=e(55711),_=e(87277),fe=e(59793);let re=(()=>{var m;class P{constructor(L,M,ie,oe,de,o,ee,H){this.actions$=L,this.store$=M,this.rawFileStoreService=ie,this.gtmService=oe,this.localStorageService=de,this.resolveCustomizationService=o,this.resolveExternalPromotionService=ee,this.injector=H,this.listeners=[],this.upload$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.Upload),(0,J.Y)(()=>[this.store$.select(S.C4),this.store$.select(S.Ev),this.store$.select(S.kh),this.store$.select(S.gf),this.store$.select(Y.RJ),this.store$.select(Y.x6),this.store$.select(Y.w$),this.store$.select(Y.i),this.store$.select(Y.h4)]),(0,Z.H)(([a,F,B,A,c,r,n,y,f,K])=>{const ue=this.rawFileStoreService.getFiles().map(Q=>({name:(0,g.z0)(Q.relativePath),file:Q.file}));return(0,l.p)([this.resolveExternalPromotion(n),this.resolveCustomization(n)]).pipe((0,Z.H)(([Q,Se])=>{n={...n,promotion:Q,customization:Se};const Fe=(0,C.KF)({domain:F,language:B,commonParameters:n,linkParameters:y,emailParameters:f,uploadFormMode:r,dropbox:K,files:ue}),Pe={region:A,token:c};return this.saveDeliveryParameters(Fe.delivery),(0,D.v)(()=>(this.smashUploader=new x.SmashUploader(Pe),this.setupUploaderListeners(),this.smashUploader.upload(Fe))).pipe((0,Z.H)(Ie=>(0,U.of)("Canceling"!==Ie.status?p.Fb.UploadSuccess({transfer:Ie.transfer}):{type:"NO_ACTION"})),(0,V.W)(Ie=>{const Oe=this.handleUploadError(Ie);return(0,U.of)(p.Fb.SetUploadStatus({status:x.UploaderStatus.Error}),p.Fb.UploadFailure({error:Oe}))}))}))}))),this.updateAndResumeUpload$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.UpdateAndResumeUpload),(0,J.Y)(()=>[this.store$.select(S.C4),this.store$.select(S.Ev),this.store$.select(Y.RJ),this.store$.select(Y.x6),this.store$.select(Y.w$),this.store$.select(Y.i),this.store$.select(Y.h4)]),(0,Z.H)(([a,F,B,A,c,r,n,y])=>{if(!this.smashUploader)return(0,U.of)(p.Fb.Upload());const f=this.rawFileStoreService.getFiles().map(K=>({name:(0,g.z0)(K.relativePath),file:K.file}));return(0,l.p)([this.resolveExternalPromotion(c),this.resolveCustomization(c)]).pipe((0,Z.H)(([K,ue])=>{c={...c,promotion:K,customization:ue};const Q=(0,C.KF)({domain:F,language:B,commonParameters:c,linkParameters:r,emailParameters:n,uploadFormMode:A,dropbox:y,files:f});return this.saveDeliveryParameters(Q.delivery),(0,D.v)(()=>this.smashUploader.update(Q)).pipe((0,Z.H)(()=>(0,D.v)(()=>this.smashUploader.resume()).pipe((0,Z.H)(({transfer:Se})=>((null==Se?void 0:Se.queue)>0&&(this.store$.dispatch(p.Fb.UploadQueued({queue:Se.queue,queuedUntil:Se.queuedUntil}
1)),this.store$.dispatch(p.Fb.SetUploadStatus({status:x.UploaderStatus.Queued})),this.store$.dispatch(p.Zd.DisplayModalSizePremium())),(0,U.of)(p.Fb.UpdateAndResumeUploadSuccess()))))),(0,V.W)(Se=>{const Fe=this.handleUploadError(Se);return(0,U.of)(p.Fb.UpdateAndResumeUploadFailure({error:Fe}))}))}))}))),this.cancelUpload$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.CancelUpload),(0,b.T)(()=>(this.store$.dispatch(p.xZ.updateStep({step:"PREPARE"})),this.listeners.map(a=>a.off()),this.smashUploader&&(this.smashUploader.cancel(),this.smashUploader.off(),this.smashUploader=null),p.Fb.CancelUploadSuccess())))),this.pauseUpload$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.PauseUpload),(0,Z.H)(()=>this.smashUploader?(0,D.v)(()=>this.smashUploader.pause()).pipe((0,b.T)(()=>({type:"NO_ACTION"})),(0,V.W)(a=>(this.logger.error(a),(0,U.of)({type:"NO_ACTION"})))):(0,U.of)({type:"NO_ACTION"})))),this.resumeUpload$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.ResumeUpload),(0,Z.H)(()=>this.smashUploader?(0,D.v)(()=>this.smashUploader.resume()).pipe((0,b.T)(()=>({type:"NO_ACTION"})),(0,V.W)(a=>(this.logger.error(a),(0,U.of)({type:"NO_ACTION"})))):(0,U.of)({type:"NO_ACTION"})))),this.resetUpload$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.ResetUpload),(0,b.T)(()=>(this.store$.dispatch(p.xZ.updateStep({step:"LANDING"})),this.listeners.map(a=>a.off()),this.smashUploader&&(this.smashUploader.cancel(),this.smashUploader.off(),this.smashUploader=null),this.rawFileStoreService.reset(),p.Fb.ResetUploadSuccess())))),this.checkFirstTimeSender$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.Fb.CheckFirstTimeSender),(0,J.Y)(()=>[this.store$.select(S.Jd)]),(0,Z.H)(([a,F])=>{if(null==F||!F.username){const B=new $.Gnitekram,A={id:unescape(encodeURIComponent(a.username)),key:a.transferId};return(0,D.v)(()=>B.getUsage(A)).pipe((0,b.T)(({usage:c})=>{const r=(null==c?void 0:c.firstSendDate)&&ce()(c.firstSendDate).isAfter(ce()().subtract(14,"days"));return null!=c&&c.firstSendDate&&r&&this.gtmService.pushTag({event:ne.h.eventGTM.FIRST_TIME_SENDER}),p.Fb.CheckFirstTimeSenderSuccess({usage:c})}),(0,V.W)(c=>(0,U.of)(p.Fb.CheckFirstTimeSenderFailure({error:{name:null==c?void 0:c.name,message:null==c?void 0:c.message,code:null==c?void 0:c.code}}))))}return(0,U.of)({type:"NO_ACTION"})}))),this.logger=this.injector.get(v.g),this.ngZone=this.injector.get(h.SKi)}resolveExternalPromotion(L){return this.resolveExternalPromotionService.resolve().pipe((0,Ee.s)(1),(0,b.T)(({selectedPromotion:M,promotions:ie})=>{var oe;return L.promotion||{id:(null==M?void 0:M.id)||(null===(oe=ie.find(de=>de.id))||void 0===oe?void 0:oe.id)}}))}resolveCustomization(L){return this.resolveCustomizationService.resolve().pipe((0,Ee.s)(1),(0,b.T)(({customization:M})=>{var ie,oe;return L.customization||{background:null==M||null===(ie=M.background)||void 0===ie?void 0:ie.sourceUrl,logo:null==M||null===(oe=M.logo)||void 0===oe?void 0:oe.sourceUrl}}))}setupUploaderListeners(){const L=this.smashUploader.on("status",o=>{this.ngZone.run(()=>{this.store$.dispatch(p.Fb.SetUploadStatus({status:o.data.status}))})}),M=this.smashUploader.on(x.UploaderEvents.Started,o=>{this.gtmService.pushTag({event:ne.h.eventGTM.TRANSFER_INITIATED,transfer_id:o.data.transfer.id})}),ie=this.smashUploader.on(x.UploaderEvents.Queued,o=>{this.store$.dispatch(p.Fb.UploadQueued({queue:o.data.transfer.queue,queuedUntil:o.data.transfer.queuedUntil})),this.store$.dispatch(p.Zd.DisplayModalSizePremium())}),oe=this.smashUploader.on(x.UploaderEvents.Finished,o=>{this.gtmService.pushTag({event:ne.h.eventGTM.TRANSFER_LOCKED,transfer_id:o.data.transfer.id}),this.store$.dispatch(p.Fb.CheckFirstTimeSender({username:o.data.transfer.delivery.sender.email,transferId:o.data.transfer.id}))}),de=this.smashUploader.on(x.UploaderEvents.Progress,o=>{this.store$.dispatch(p.Fb.SetProgress({progress:o.data.percent})),this.store$.dispatch(p.Fb.SetUploadedBytes({uploadedBytes:o.data.uploadedBytes})),this.store$.dispatch(p.Fb.SetRemainingSize({remainingSize:o.data.totalBytes-o.data.uploadedBytes})),o.data.speed>0&&this.store$.dispatch(p.Fb.SetUploadSpeed({speed:o.data.speed}))});this.listeners=[L,M,ie,oe,de]}handleUploadError(L){const ie=t((0,C.kT)(L));return this.logger.error(ie),ie}saveDeliveryParameters(L){this.localStorageService.setItem("lastTransferParameters",btoa(unescape(encodeURIComponent(JSON.stringify(L)))))}}return(m=P).\u0275fac=function(L){return new(L||m)(h.KVO(T.En),h.KVO(se.il),h.KVO(j.h),h.KVO(X.A),h.KVO(q.s),h.KVO(_.V),h.KVO(fe.M),h.KVO(h.zZn))},m.\u0275prov=h.jDH({token:m,factory:m.\u0275fac}),P})();var he=e(7738),me=e(78154);let pe=(()=>{var m;class P{constructor(L,M,ie){this.actions$=L,this.promotionService=M,this.store$=ie,this.loadPromotionsInternal$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.EC.loadPromotionsInternal),(0,he.E)(this.store$.select(S.C4),this.store$.select(S.Ev),this.store$.select(S.vH)),(0,Z.H)(([oe,de,o,ee])=>{if(de.team)return this.promotionService.listPromotionsInternal(de.team).pipe((0,b.T)(F=>p.EC.loadPromotionsSuccess({promotions:F.promotions,language:o})),(0,V.W)(F=>(0,U.of)(p.EC.loadPromotionsFailure({error:F.message}))));if(ee){var H,a;const{reveal:F}=ee,B={button:null==F||null===(H=F.callToAction)||void 0===H?void 0:H.label,link:null==F||null===(a=F.callToAction)||void 0===a?void 0:a.url,title:F.teasing.text,text:F.text,medias:F.medias.map(A=>({type:A.type,url:A.url,sourceId:A.url,sourceUrl:A.url,position:A.position})).sort((A,c)=>A.position-c.position),language:o,status:"Enabled",teaserDisabled:!0};return(0,U.of)(p.EC.loadPromotionsSuccess({promotions:[B],language:"*"}))}return this.promotionService.listManagedPromotionsInternal().pipe((0,b.T)(F=>p.EC.loadPromotionsSuccess({promotions:F.promotions,language:o})),(0,V.W)(F=>(0,U.of)(p.EC.loadPromotionsFailure({error:F.message}))))}))),this.loadPromotionsSuccess$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.EC.loadPromotionsSuccess),(0,he.E)(this.store$.select(Y.Fg),this.store$.select(S.C4)),(0,Z.H)(([oe,de,o
1])=>de?o.team?this.promotionService.getTeamPromotion(o.team,de.id).pipe((0,b.T)(ee=>p.EC.loadPromotionSuccess({promotion:ee.promotion})),(0,V.W)(ee=>(0,U.of)(p.EC.loadPromotionFailure({error:ee.message})))):[{type:"noop managed promotion"}]:[{type:"No promotion"}])))}}return(m=P).\u0275fac=function(L){return new(L||m)(h.KVO(T.En),h.KVO(me.B),h.KVO(se.il))},m.\u0275prov=h.jDH({token:m,factory:m.\u0275fac}),P})();var ve=e(59549),ge=e(67559),Ce=e(40419),Ue=e(40450),De=e(26377),Re=(e(65123),e(75118)),Te=e(68633);let xe=(()=>{var m;class P{constructor(L,M,ie,oe,de){this.actions$=L,this.store$=M,this.router=ie,this.tokenService=oe,this.logger=de,this.createTeamDropbox$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.ee.CreateTeamDropbox),(0,he.E)(this.store$.pipe((0,se.Lt)(S.Jd)),this.store$.pipe((0,se.Lt)(S.C4))),(0,Z.H)(([o,ee,H])=>{var a,F,B;const A=new ge.m,c={teamId:o.teamId,configuration:{transfer:(null===(a=H.options)||void 0===a||null===(a=a.dropbox)||void 0===a?void 0:a.transfer)||ne.h.defaultPremiumDomainSettings.dropbox.transfer},maxTransferCount:(null===(F=H.options)||void 0===F||null===(F=F.dropbox)||void 0===F||null===(F=F.maxTransferCount)||void 0===F?void 0:F.default)||ne.h.defaultPremiumDomainSettings.dropbox.maxTransferCount.default};var r;null!==(B=H.options)&&void 0!==B&&null!==(B=B.dropbox)&&void 0!==B&&null!==(B=B.availabilityDuration)&&void 0!==B&&B.default&&(c.availabilityDuration=null===(r=H.options)||void 0===r||null===(r=r.dropbox)||void 0===r||null===(r=r.availabilityDuration)||void 0===r?void 0:r.default);const n=this.tokenService.isRoot(ee.token.token);n||(c.userId=ee.id);const y=n?A.createTeamDropbox(c):A.createTeamUserDropbox(c);return(0,Ue.H)(y).pipe((0,b.T)(f=>p.ee.CreateTeamDropboxSuccess({dropbox:f.dropbox})),(0,V.W)(f=>{const K=t(f);return this.logger.error(K),(0,U.of)(p.ee.CreateTeamDropboxFailure({error:K}))}))}))),this.getDropboxPreview$=(0,T.EH)(()=>this.actions$.pipe((0,T.gp)(p.ee.GetDropboxPreview),(0,De.p)(o=>{const ee=(0,ve.mP)(o.dropboxId);Ce.$.setRegion(ee);const H=new ge.m({region:ee});return(0,Ue.H)(H.getDropboxPreview({dropboxId:o.dropboxId})).pipe((0,b.T)(({dropbox:a})=>"Enabled"===a.status?p.ee.GetDropboxPreviewSuccess({dropbox:a}):"Disabled"===a.status||"Deleted"===a.status?(this.router.navigateByUrl("/request-expired",{skipLocationChange:!0}),p.ee.GetDropboxPreviewSuccess({dropbox:a})):void 0),(0,V.W)(a=>(this.router.navigateByUrl("/request-expired",{skipLocationChange:!0}),(0,U.of)(p.ee.GetDropboxPreviewFailure({error:a.message})))))})))}}return(m=P).\u0275fac=function(L){return new(L||m)(h.KVO(T.En),h.KVO(se.il),h.KVO(Re.Ix),h.KVO(Te.B),h.KVO(v.g))},m.\u0275prov=h.jDH({token:m,factory:m.\u0275fac}),P})()},19981:(ye,ae,e)=>{e.d(ae,{A:()=>de});var d=e(94485),h=e(20154),v=e(94236),S=e(71100),k=e(12787),G=e(84932),N=e(80489),I=e(17796),s=e(40450),O=e(54001),u=e(6663),i=e(19847),z=e(7738),R=e(26377),w=e(74671),E=e(60494),t=e(43315),C=e(25580),T=e(61430),J=e(40419),x=e(6171),l=e(91282);class D extends l.JP{}class U extends D{constructor(){super(...arguments),this.name="InvalidParameterError"}}class Z extends D{constructor(){super(...arguments),this.name="UnauthorizedError"}}class V extends D{constructor(){super(...arguments),this.name="NotificationAlreadySentError"}}class b extends D{constructor(){super(...arguments),this.name="ForbiddenError"}}class Ee extends D{constructor(){super(...arguments),this.name="ChallengeAlreadyExistError"}}class ne extends D{constructor(){super(...arguments),this.name="InternalServerError"}}class Y extends D{constructor(){super(...arguments),this.name="BadGatewayError"}}class p extends D{constructor(){super(...arguments),this.name="GatewayTimeoutError"}}const $={GenericError:D,InvalidParameterError:U,UnauthorizedError:Z,NotificationAlreadySentError:V,ForbiddenError:b,ChallengeAlreadyExistError:Ee,InternalServerError:ne,BadGatewayError:Y,GatewayTimeoutError:p};class W extends l.JP{}class ce extends W{constructor(){super(...arguments),this.name="InvalidParameterError"}}class g extends W{constructor(){super(...arguments),this.name="UnauthorizedError"}}class se extends W{constructor(){super(...arguments),this.name="ForbiddenError"}}class j extends W{constructor(){super(...arguments),this.name="NotFoundError"}}class X extends W{constructor(){super(...arguments),this.name="InternalServerError"}}class q extends W{constructor(){super(...arguments),this.name="BadGatewayError"}}class _ extends W{constructor(){super(...arguments),this.name="GatewayTimeoutError"}}const fe={GenericError:W,InvalidParameterError:ce,UnauthorizedError:g,ForbiddenError:se,NotFoundError:j,InternalServerError:X,BadGatewayError:q,GatewayTimeoutError:_};class re extends l.JP{}class he extends re{constructor(){super(...arguments),this.name="InvalidParameterError"}}class me extends re{constructor(){super(...arguments),this.name="UnauthorizedError"}}class pe extends re{constructor(){super(...arguments),this.name="InvalidTokenError"}}class ve extends re{constructor(){super(...arguments),this.name="ForbiddenError"}}class ge extends re{constructor(){super(...arguments),this.name="InternalServerError"}}class Ce extends re{constructor(){super(...arguments),this.name="BadGatewayError"}}class Ue extends re{constructor(){super(...arguments),this.name="GatewayTimeoutError"}}const le={CreateEmailChallenge:{InvalidParameterError:U,UnauthorizedError:Z,NotificationAlreadySe
1ntError:V,ForbiddenError:b,ChallengeAlreadyExistError:Ee,InternalServerError:ne,BadGatewayError:Y,GatewayTimeoutError:p,GenericError:D,UnknownError:l.Bk,NetworkError:l.Dr,ConnectionAbortedError:l.sQ,TimeoutError:l.MU},GetEmailChallenge:{InvalidParameterError:ce,UnauthorizedError:g,ForbiddenError:se,NotFoundError:j,InternalServerError:X,BadGatewayError:q,GatewayTimeoutError:_,GenericError:W,UnknownError:l.Bk,NetworkError:l.Dr,ConnectionAbortedError:l.sQ,TimeoutError:l.MU},UpdateEmailChallenge:{InvalidParameterError:he,UnauthorizedError:me,InvalidTokenError:pe,ForbiddenError:ve,InternalServerError:ge,BadGatewayError:Ce,GatewayTimeoutError:Ue,GenericError:re,UnknownError:l.Bk,NetworkError:l.Dr,ConnectionAbortedError:l.sQ,TimeoutError:l.MU},CreateEmailChallengeError:{InvalidParameterError:U,UnauthorizedError:Z,NotificationAlreadySentError:V,ForbiddenError:b,ChallengeAlreadyExistError:Ee,InternalServerError:ne,BadGatewayError:Y,GatewayTimeoutError:p,GenericError:D,UnknownError:l.Bk,NetworkError:l.Dr,ConnectionAbortedError:l.sQ,TimeoutError:l.MU},GetEmailChallengeError:{InvalidParameterError:ce,UnauthorizedError:g,ForbiddenError:se,NotFoundError:j,InternalServerError:X,BadGatewayError:q,GatewayTimeoutError:_,GenericError:W,UnknownError:l.Bk,NetworkError:l.Dr,ConnectionAbortedError:l.sQ,TimeoutError:l.MU},UpdateEmailChallengeError:{InvalidParameterError:he,UnauthorizedError:me,InvalidTokenError:pe,ForbiddenError:ve,InternalServerError:ge,BadGatewayError:Ce,GatewayTimeoutError:Ue,GenericError:re,UnknownError:l.Bk,NetworkError:l.Dr,ConnectionAbortedError:l.sQ,TimeoutError:l.MU},InvalidSdkConfigurationError:l.Q1,InvalidRegionOrHostError:l.t1,InvalidRegionError:l.Qs,InvalidHostError:l.Si};J.$.setHosts("kyc",{"ca-central-1":"https://kyc.ca-central-1.fromsmash.co","eu-central-1":"https://kyc.eu-central-1.fromsmash.co","eu-west-1":"https://kyc.eu-west-1.fromsmash.co","eu-west-2":"https://kyc.eu-west-2.fromsmash.co","eu-west-3":"https://kyc.eu-west-3.fromsmash.co","us-east-1":"https://kyc.us-east-1.fromsmash.co","us-east-2":"https://kyc.us-east-2.fromsmash.co","us-west-1":"https://kyc.us-west-1.fromsmash.co","us-west-2":"https://kyc.us-west-2.fromsmash.co"},!1);let Te=(()=>{class o extends T.K{constructor(H={}){super({service:"kyc",...H,type:"regional",userAgent:"@smash-sdk/[email protected]"}),this.errors=le}createEmailChallenge(H){var a=this;return new Promise(function(){var F=(0,C.A)(function*(B,A){try{const r=new x.K({host:a.host,method:"POST",path:"/emailChallenge/:email",headers:{Authorization:"Bearer "+a.token},pathParameters:{email:H.email},queryParameters:{language:H.language,version:"11-2023"},refreshTokenMethod:a.refreshTokenMethod}),n=yield a.handle(r);B(a.parseResponse(n,a.errors.CreateEmailChallengeError))}catch(c){c instanceof Error?A(c instanceof l.JP?c:new l.JP(c)):A(new l.JP(c))}});return function(B,A){return F.apply(this,arguments)}}())}getEmailChallenge(H){var a=this;return new Promise(function(){var F=(0,C.A)(function*(B,A){try{const r=new x.K({host:a.host,method:"GET",path:"/emailChallenge/:email",headers:{Authorization:"Bearer "+a.token},pathParameters:{email:H.email},queryParameters:{version:"11-2023"},refreshTokenMethod:a.refreshTokenMethod}),n=yield a.handle(r);B(a.parseResponse(n,a.errors.GetEmailChallengeError))}catch(c){c instanceof Error?A(c instanceof l.JP?c:new l.JP(c)):A(new l.JP(c))}});return function(B,A){return F.apply(this,arguments)}}())}updateEmailChallenge(H){var a=this;return new Promise(function(){var F=(0,C.A)(function*(B,A){try{const r=new x.K({host:a.host,method:"PUT",path:"/emailChallenge/:email",headers:{Authorization:"Bearer "+a.token},pathParameters:{email:H.email},queryParameters:{version:"11-2023"},bodyParameters:{token:H.token},refreshTokenMethod:a.refreshTokenMethod}),n=yield a.handle(r);B(a.parseResponse(n,a.errors.UpdateEmailChallengeError))}catch(c){c instanceof Error?A(c instanceof l.JP?c:new l.JP(c)):A(new l.JP(c))}});return function(B,A){return F.apply(this,arguments)}}())}}return o.errors=le,o})();var xe=e(89845),m=e(86839),P=e(1936),te=e(58527),L=e(78154),M=e(84805),ie=e(25889);function oe(){return(0,k.L)({delay:(o,ee)=>{if(!(o instanceof d.yz&&(o.status>=500||0===o.status))||ee>2)throw o;return(0,G.O)(300*ee)}})}let de=(()=>{var o;class ee{constructor(a,F,B,A,c){this.actions$=a,this.promotionService=F,this.customizationService=B,this.store$=A,this.imageService=c,this.addBackgroun
1dImageToAttach=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.addBackgroundImageToAttach),(0,u.T)(r=>r.image),(0,i.H)(([r])=>{const n=new xe._;return(0,N.p)([(0,I.of)(r),(0,s.H)(n.createImage())])}),(0,i.H)(([r,n])=>(0,N.p)([(0,I.of)(n),this.imageService.uploadImage(n.image.uploadUrl,r)])),(0,i.H)(([r,n])=>(0,I.of)(t.Zd.addBackgroundImageToAttachSuccess({background:{id:r.image.id,sourceUrl:r.image.downloadUrl,thumbnail:r.image.downloadUrl,type:"Image"}}))))),this.addBackgroundVideoToAttach=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.addBackgroundVideoToAttach),(0,u.T)(r=>r.video),(0,i.H)(r=>{const{type:n,sourceId:y}=r;if("Youtube"===n){const f="i1.ytimg.com/vi/"+y+"/2.jpg",K={...r,thumbnail:f};return(0,I.of)(t.Zd.addBackgroundVideoToAttachSuccess({background:K}))}if("Vimeo"===n)return(0,N.p)([this.promotionService.getThumbnailVimeo(r.sourceId)]).pipe((0,u.T)(([f])=>{const K=f[0].thumbnail_medium.replace("https://",""),ue={...r,thumbnail:K};return t.Zd.addBackgroundVideoToAttachSuccess({background:ue})}))}))),this.addLogoToAttach=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.addLogoToAttach),(0,u.T)(r=>r.image),(0,i.H)(([r])=>{const n=new xe._;return(0,N.p)([(0,I.of)(r),(0,s.H)(n.createImage())])}),(0,i.H)(([r,n])=>(0,N.p)([(0,I.of)(n),this.imageService.uploadImage(n.image.uploadUrl,r)])),(0,i.H)(([r,n])=>(0,I.of)(t.Zd.addLogoToAttachSuccess({logo:{id:r.image.id,sourceUrl:r.image.downloadUrl,thumbnail:r.image.downloadUrl,type:"Image"}}))))),this.loadCustomization$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadCustomization),(0,z.E)(this.store$.pipe((0,S.Lt)(h.C4))),(0,R.p)(([r,n])=>this.customizationService.listManagedCustomizations().pipe(oe(),(0,w.Z)(({customizations:y})=>{var f;
1return this.customizationService.getManagedCustomization(null===(f=y[0])||void 0===f?void 0:f.id).pipe((0,w.Z)(({customization:K})=>null!=n&&n.team?this.customizationService.listTeamCustomizations(n.team).pipe((0,w.Z)(({customizations:ue})=>null!=ue&&ue.length?this.customizationService.getTeamCustomization(n.team,ue[0].id).pipe((0,w.Z)(({customization:Q})=>{if(null!=Q&&Q.logo&&null!=Q&&Q.background)return[t.Zd.loadCustomizationSuccess({customization:Q})];{const Se=Q.logo?Q.logo:K.logo,Fe=Q.background?Q.background:K.background;return[t.Zd.loadCustomizationSuccess({customization:{...Q,logo:Se,background:Fe}})]}})):[t.Zd.loadCustomizationSuccess({customization:K})]),(0,E.W)(ue=>[t.Zd.loadCustomizationSuccess({customization:K})])):[t.Zd.loadCustomizationSuccess({customization:K})]),(0,E.W)(K=>[t.Zd.loadCustomizationFailure({error:K.message})]))}),(0,E.W)(y=>[t.Zd.loadCustomizationFailure({error:y.message})]))))),this.loadCustomizationSuccess$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadCustomizationSuccess),(0,u.T)(({customization:r})=>t.Zd.SetTransferCustomization({logo:null==r?void 0:r.logo,background:null==r?void 0:r.background})))),this.loadBackgrounds$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadBackgrounds),(0,z.E)(this.store$.pipe((0,S.Lt)(h.C4))),(0,R.p)(([r,n])=>this.customizationService.listManagedBackgrounds().pipe(oe(),(0,w.Z)(({backgrounds:y})=>null!=n&&n.team?this.customizationService.listTeamBackgrounds(n.team).pipe((0,w.Z)(({backgrounds:f})=>(0,I.of)(t.Zd.loadBackgroundsSuccess(null!=f&&f.length?{backgrounds:f}:{backgrounds:y}))),(0,E.W)(f=>[t.Zd.loadBackgroundsSuccess({backgrounds:y})])):(0,I.of)(t.Zd.loadBackgroundsSuccess({backgrounds:y}))),(0,E.W)(y=>(0,I.of)(t.Zd.loadBackgroundsSuccess({backgrounds:[]}))))))),this.loadLogos$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadLogos),(0,z.E)(this.store$.pipe((0,S.Lt)(h.C4))),(0,R.p)(([r,n])=>this.customizationService.listManagedLogos().pipe(oe(),(0,w.Z)(({logos:y})=>null!=n&&n.team?this.customizationService.listTeamLogos(n.team).pipe((0,w.Z)(({logos:f})=>(0,I.of)(t.Zd.loadLogosSuccess(null!=f&&f.length?{logos:f}:{logos:y}))),(0,E.W)(f=>[t.Zd.loadLogosSuccess({logos:y})])):(0,I.of)(t.Zd.loadLogosSuccess({logos:y}))),(0,E.W)(y=>(0,I.of)(t.Zd.loadLogosSuccess({logos:[]}))))))),this.loadExternalPromotions$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadExternalPromotions),(0,z.E)(this.store$.select(h.C4),this.store$.select(h.Ev)),(0,i.H)(([r,n,y])=>{let f;return f=n.team?this.promotionService.listPromotions(n.team):this.promotionService.listManagedPromotions(),f.pipe((0,w.Z)(({promotions:K})=>{const ue=K.filter(Q=>Q.language===y);return ue.length&&n.team?[t.Zd.selectRandomExternalPromotion({promotions:ue})]:[t.Zd.loadExternalPromotionsSuccess({promotions:[]})]}),(0,E.W)(K=>(0,I.of)(t.Zd.loadExternalPromotionsFailure({error:K.message}))))}))),this.selectRandomExternalPromotion$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.selectRandomExternalPromotion),(0,z.E)(this.store$.select(h.C4)),(0,i.H)(([r,n])=>{const y=r.promotions[Math.floor(Math.random()*r.promotions.length)];return this.promotionService.getTeamPromotion(n.team,y.id).pipe((0,w.Z)(({promotion:f})=>[t.Zd.selectRandomExternalPromotionSuccess({promotion:f}),t.Zd.loadExternalPromotionsSuccess({promotions:r.promotions}),t.Zd.SetTransferPromotion({promotion:f})]),(0,E.W)(f=>(0,I.of)(t.Zd.loadExternalPromotionsFailure({error:f.message}))))}))),this.loadPromotion$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadPromotion),(0,z.E)(this.store$.select(h.C4)),(0,i.H)(([r,n])=>null!=n&&n.team?this.promotionService.getTeamPromotion(n.team,r.promotion.id).pipe((0,u.T)(y=>t.Zd.loadPromotionSuccess({promotion:y.promotion})),(0,E.W)(y=>(0,I.of)(t.Zd.loadPromotionFailure({error:y.message})))):[{type:"noop"}]))),this.loadPromotionSuccess$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.loadPromotionSuccess),(0,u.T)(({promotion:r})=>t.Zd.SetTransferPromotion({promotion:r})))),this.verifyEmail$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.VerifyEmail),(0,z.E)(this.store$.select(h.Ev)),(0,i.H)(([{username:r},n])=>{const y=new Te;return(0,O.v)(()=>y.getEmailChallenge({email:r})).pipe((0,m.Y)({retryConfig:[...P.h.NetworkErrorsRetryConfiguration,{error:fe.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:fe.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:fe.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,i.H)(({emailChallenge:f})=>"Dirty"===f.status?[t.Zd.SendEmailVerificationCode({username:r}),t.Zd.VerifyEmailSuccess({status:"Dirty"})]:(0,I.of)(t.Zd.VerifyEmailSuccess({status:f.status}))),(0,E.W)(f=>f instanceof le.GetEmailChallengeError.NotFoundError?[t.Zd.SendEmailVerificationCode({username:r}),t.Zd.VerifyEmailSuccess({status:"Dirty"})]:(0,I.of)(t.Zd.VerifyEmailFailure({error:f.message}))))}
1))),this.validateEmailVerificationCode$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.ValidateEmailVerificationCode),(0,i.H)(({username:r,code:n})=>{const y=new Te;return(0,O.v)(()=>y.updateEmailChallenge({email:r,token:n})).pipe((0,m.Y)({retryConfig:[...P.h.NetworkErrorsRetryConfiguration,{error:le.UpdateEmailChallengeError.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:le.UpdateEmailChallengeError.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:le.UpdateEmailChallengeError.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,u.T)(({emailChallenge:f})=>t.Zd.ValidateEmailVerificationCodeSuccess({status:f.status})),(0,E.W)(f=>(0,I.of)(t.Zd.ValidateEmailVerificationCodeFailure({error:f.message}))))}),(0,E.W)(r=>(0,I.of)(t.Zd.ValidateEmailVerificationCodeFailure({error:r.message}))))),this.sendEmailVerificationCode$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(t.Zd.SendEmailVerificationCode),(0,z.E)(this.store$.select(h.Ev)),(0,i.H)(([{username:r},n])=>{const y=new Te;return(0,O.v)(()=>y.createEmailChallenge({email:r,language:n})).pipe((0,m.Y)({retryConfig:[...P.h.NetworkErrorsRetryConfiguration,{error:$.InternalServerError,maxRetry:10,exponentialBackoff:!0},{error:$.GatewayTimeoutError,maxRetry:10,exponentialBackoff:!0},{error:$.BadGatewayError,maxRetry:10,exponentialBackoff:!0}]}),(0,u.T)(({emailChallenge:f})=>t.Zd.SendEmailVerificationCodeSuccess({status:f.status})),(0,E.W)(f=>(0,I.of)(t.Zd.SendEmailVerificationCodeFailure({error:f.message}))))}),(0,E.W)(r=>(0,I.of)(t.Zd.VerifyEmailFailure({error:r.message})))))}}return(o=ee).\u0275fac=function(a){return new(a||o)(te.KVO(v.En),te.KVO(L.B),te.KVO(M.V),te.KVO(S.il),te.KVO(ie.f))},o.\u0275prov=te.jDH({token:o,factory:o.\u0275fac}),ee})()},75730:(ye,ae,e)=>{e.d(ae,{u:()=>t});var d=e(58527),h=e(17796),v=e(74671),S=e(61142),k=e(97184),G=e(20154),N=e(71100),I=e(58530),s=e(6663),O=e(58468),u=e(64785),i=e(7738),z=e(8460);let R=(()=>{var C;class T{constructor(x,l,D){this.store$=x,this.domainService=l,this.platformId=D}canActivate(){return(0,S.Vy)(this.platformId)?(0,h.of)(!0):this.loadDomain().pipe((0,s.T)(x=>x))}loadDomain(){const x=new I.m,l=this.domainService.detectDomain();return this.store$.select(G.VJ).pipe((0,O.Q)(x)).subscribe(D=>{D&&x.next(!0)}),this.store$.pipe((0,N.Lt)(G.C4),(0,u.F)(),(0,O.Q)(x)).subscribe(D=>{D&&D.domain===l?x.next(!0):(this.store$.dispatch(k.oR.loadDomain({id:l})),this.store$.pipe((0,O.Q)(x),(0,i.E)(this.store$.select(G.$b),this.store$.select(G.C4))).subscribe(([U,Z,V])=>{Z&&V&&x.next(!0)}))}),x.asObservable()}}return(C=T).\u0275fac=function(x){return new(x||C)(d.KVO(N.il),d.KVO(z.i),d.KVO(d.Agw))},C.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),T})();var w=e(37321),E=e(98823);let t=(()=>{var C;class T{constructor(x,l,D,U){this.loadDomainGuardIfExists=x,this.loadServicesGuard=l,this.isAccountValidGuard=D,this.platformId=U}canActivate(){return(0,S.Vy)(this.platformId)?(0,h.of)(!0):this.loadDomainGuardIfExists.canActivate().pipe((0,v.Z)(x=>{if(x)return this.loadServicesGuard.canActivate().pipe((0,v.Z)(l=>{if(l)return this.isAccountValidGuard.canActivate().pipe((0,v.Z)(D=>{if(D)return(0,h.of)(D)}))}))}))}}return(C=T).\u0275fac=function(x){return new(x||C)(d.KVO(R),d.KVO(w.u),d.KVO(E.b),d.KVO(d.Agw))},C.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),T})()},1991:(ye,ae,e)=>{e.d(ae,{E:()=>p});var d=e(58527),h=e(17796),v=e(74671),S=e(60494),k=e(61142),G=e(1936),N=e(85621),I=e(37321),s=e(98823),O=e(7877),u=e(65996),i=e(20154),z=e(8509),R=e(58530),w=e(6663),E=e(7738),t=e(78374),C=e(1457),T=e(97144),J=e(71100);let x=(()=>{var $;class W{constructor(g){this.store$=g}canActivate(){return this.chechLoginRedirection().pipe((0,w.T)(g=>g))}chechLoginRedirection(){const g=new R.m;return this.store$.pipe((0,E.E)(this.store$.select(i.C4),this.store$.select(i.Zo),this.store$.select(i.Dm)),(0,t.s)(1)).subscribe(([se,j,{services:X},q])=>{var _;if(null!=j&&null!==(_=j.options)&&void 0!==_&&null!==(_=_.redirection)&&void 0!==_&&_.value)switch(j.options.redirection.value){case G.h.domainLoginRedirection.None:g.next(!0);break;case G.h.domainLoginRedirection.Signin:window.location.href="/signin",g.next(!1);break;case G.h.domainLoginRedirection.Provider:if((null==q?void 0:q.length)>0){const re=q[0].idpUrl,he=q[0].audienceUris,me=X.find(ge=>"iam"===ge.name&&ge.region===j.region).url+"/saml/signon",pe=(0,N.UN)()?T.c.appDomainWithProtocol:he.find(ge=>ge===(0,N.Yn)()),ve=(0,C.D)({consumerServiceUrl:me,audienceUri:pe});
1window.location.href=(0,z._T)(re,G.h.SAMLRequestKey,ve),g.next(!1);break}window.location.href="/signin",g.next(!1);break;default:g.next(!0)}else g.next(!0)}),g.asObservable()}}return($=W).\u0275fac=function(g){return new(g||$)(d.KVO(J.il))},$.\u0275prov=d.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),W})();var l=e(45842),D=e(91748),U=e(64785),Z=e(58468),V=e(97184);let b=(()=>{var $;class W{constructor(g){this.store$=g}canActivate(){return this.lastActiveTeam().pipe((0,v.Z)(g=>(0,h.of)(g)))}lastActiveTeam(){const g=new R.m;return this.store$.pipe((0,E.E)(this.store$.select(i.OO),this.store$.select(i.uv),this.store$.select(i.zm)),(0,U.F)(),(0,Z.Q)(g)).subscribe(([se,j,X,q])=>{!X&&j?g.next(!0):X||q?!j&&q&&g.next(!1):this.store$.dispatch(V.Xw.LoadUserTeams())}),g.asObservable()}}return($=W).\u0275fac=function(g){return new(g||$)(d.KVO(J.il))},$.\u0275prov=d.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),W})();var Ee=e(68633);let ne=(()=>{var $;class W{constructor(g,se){this.store$=g,this.tokenService=se}resolve(){const g=new R.m;return this.store$.pipe((0,E.E)(this.store$.select(i.Jd),this.store$.select(i.F1),this.store$.select(i.YH),this.store$.select(i.U3),this.store$.select(i.uV),this.store$.select(i.Qt),this.store$.select(i.X0),this.store$.select(i.Ev)),(0,Z.Q)(g)).subscribe(([se,j,X,q,_,fe,re,he,me])=>{var pe;const ve=this.tokenService.isRoot(null==j||null===(pe=j.token)||void 0===pe?void 0:pe.token);he?g.next({subscription:fe,isRoot:ve,isAdmin:_,language:me}):re||!ve&&!_?ve||X||q?!ve&&q&&!_&&g.next({subscription:null,isRoot:ve,isAdmin:_,language:me}):this.store$.dispatch(V.Xw.LoadUserRoles()):this.store$.dispatch(V.Xw.loadSubscriptionWithPlan())}),g.asObservable()}}return($=W).\u0275fac=function(g){return new(g||$)(d.KVO(J.il),d.KVO(Ee.B))},$.\u0275prov=d.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),W})();var Y=e(38459);let p=(()=>{var $;class W{constructor(g,se,j,X,q,_,fe,re,he,me,pe){this.loadServicesGuard=g,this.isAccountValidGuard=se,this.seoService=j,this.domainRedirectionGuard=X,this.domainSigninRedirectionGuard=q,this.redirectionService=_,this.isAccountPremiumGuard=fe,this.lastActiveTeamGuard=re,this.resolveSubscriptionService=he,this.resolveDomain=me,this.platformId=pe}canActivate(){return(0,k.UE)(this.platformId)?this.loadServicesGuard.canActivate().pipe((0,v.Z)(g=>{if(g)return this.isAccountValidGuard.canActivate().pipe((0,v.Z)(se=>{if(se)return this.isAccountPremiumGuard.canActivate().pipe((0,v.Z)(j=>j?this.resolveSubscriptionService.resolve().pipe((0,v.Z)(({subscription:X,isRoot:q,isAdmin:_,language:fe})=>{switch(null==X?void 0:X.status){case G.h.subscriptionStatus.PaymentRequired:this.redirectionService.redirectToSubscriptionUpdate();break;case G.h.subscriptionStatus.Inactive:this.redirectionService.redirectToPricingPage(fe)}return this.lastActiveTeamGuard.canActivate().pipe((0,v.Z)(re=>re?this.resolveDomain.resolve().pipe((0,v.Z)(()=>this.domainRedirectionGuard.canActivate()),(0,S.W)(()=>((0,k.UE)(this.platformId)&&(0,N.$z)(),(0,h.of)(!1)))):q||_?(this.redirectionService.redirectToSignupDomain(),(0,h.of)(!1)):(this.redirectionService.redirectToInvalidConfiguration(),(0,h.of)(!1))))})):this.resolveDomain.resolve().pipe((0,v.Z)(()=>this.domainRedirectionGuard.canActivate().pipe((0,v.Z)(X=>X?this.domainSigninRedirectionGuard.canActivate():(0,h.of)(X)))),(0,S.W)(()=>((0,k.UE)(this.platformId)&&(0,N.$z)(),(0,h.of)(!1))))))}))})):(this.seoService.setMetasLanding(),(0,h.of)(!0))}}return($=W).\u0275fac=function(g){return new(g||$)(d.KVO(I.u),d.KVO(s.b),d.KVO(O.F),d.KVO(u.m),d.KVO(x),d.KVO(l.
1U),d.KVO(D.o),d.KVO(b),d.KVO(ne),d.KVO(Y.o),d.KVO(d.Agw))},$.\u0275prov=d.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),W})()},61207:(ye,ae,e)=>{e.d(ae,{h:()=>k});var d=e(25580),h=e(43315),v=e(58527),S=e(71100);let k=(()=>{var G;class N{constructor(s){this.store$=s,this.files={},this.errors=[],this.forbiddenExtensionsFreemium=["htm","html","mkv"]}removeFile(s){const O=this.getFileMetadata(this.files[s]);delete this.files[s],this.store$.dispatch(h.Fb.RemoveRawFile({file:O}))}getFolderFiles(s){const O=[];return Object.entries(this.files).forEach(([u,i])=>{u.startsWith(s+"/")&&O.push(i)}),O}removeFolder(s){const O=this.getFolderFiles(s),u=[];for(const i of O){const z=this.getFileMetadata(this.files[i.relativePath]);delete this.files[i.relativePath],u.push(z)}this.store$.dispatch(h.Fb.RemoveRawFiles({files:u}))}getFileFullName(s){return s.relativePath}getFileRootFolder(s){return s.relativePath?s.relativePath.split("/")[0]:null}setFile(s){return this.files[s.relativePath]=s}getFileMetadata(s){return{name:s.fileEntry.name,size:s.size,rootFolder:s.rootFolder,isDirectory:s.fileEntry.isDirectory,isFile:s.fileEntry.isFile,relativePath:s.relativePath,extension:s.extension}}getFile(s){return this.files[s]}getFiles(){return Object.values(this.files)}setFiles(s,O){var u=this;return(0,d.A)(function*(){u.resetErrors();const i=[];for(const R of s){try{yield R.buildMetaFromFile()}catch(w){console.error(`[RawFileStoreService] Failed to read "${R.relativePath}":`,w),u.errors.push({subject:R.relativePath,reason:"RELATIVEPATH_TOO_LONG"});continue}u.files[R.relativePath]?u.errors.push({subject:R.relativePath,reason:"DUPLICATE_FILES"}):u.isFileExtensionForbidden(R.extension,!(null==O||!O.username))?u.errors.push({subject:R.relativePath,reason:"FORBIDDEN_FILE_EXTENSION"}):(0===R.size&&u.errors.push({subject:R.relativePath,reason:"RELATIVEPATH_TOO_LONG"}),u.setFile(R),i.push(R))}u.hasDuplicateErrors()&&u.store$.dispatch(h.Fb.AddRawFilesFailure({error:{type:"DUPLICATE_FILES"}})),u.hasForbiddenExtensionErrors()&&u.store$.dispatch(h.Fb.AddRawFilesFailure({error:{type:"FORBIDDEN_FILE_EXTENSION"}})),u.hasRelativePathTooLongErrors()&&u.store$.dispatch(h.Fb.AddRawFilesFailure({error:{type:"RELATIVEPATH_TOO_LONG"}}));const z=i.map(R=>u.getFileMetadata(R));return u.store$.dispatch(h.Fb.AddRawFilesSuccess({files:z})),z})()}reset(){this.resetErrors(),this.files={}}reportRelativePathTooLongError(){this.store$.dispatch(h.Fb.AddRawFilesFailure({error:{type:"RELATIVEPATH_TOO_LONG"}}))}hasDuplicateErrors(){return this.errors.some(s=>"DUPLICATE_FILES"===s.reason)}hasForbiddenExtensionErrors(){return this.errors.some(s=>"FORBIDDEN_FILE_EXTENSION"===s.reason)}hasRelativePathTooLongErrors(){return this.errors.some(s=>"RELATIVEPATH_TOO_LONG"===s.reason)}resetErrors(){this.store$.dispatch(h.Fb.ResetRawFilesError()),this.errors.length=0}isFileExtensionForbidden(s,O=!1){return!O&&this.forbiddenExtensionsFreemium.includes(s.toLowerCase())}}return(G=N).\u0275fac=function(s){return new(s||G)(v.KVO(S.il))},G.\u0275prov=v.jDH({token:G,factory:G.\u0275fac,providedIn:"root"}),N})()},87277:(ye,ae,e)=>{e.d(ae,{V:()=>I});var d=e(58530),h=e(7738),v=e(58468),S=e(30532),k=e(43315),G=e(58527),N=e(71100);let I=(()=>{var s;class O{constructor(i){this.store$=i}resolve(){const i=new d.m;return this.store$.pipe((0,h.E)(this.store$.select(S._O),this.store$.select(S.sr),this.store$.select(S.vf),this.store$.select(S.wK),this.store$.select(S.TX),this.store$.select(S.vo),this.store$.select(S.QR),this.store$.select(S.So),this.store$.select(S.Er),this.store$.select(S.B6)),(0,v.Q)(i)).subscribe(([z,R,w,E,t,C,T,J,x,l,D])=>{t?i.next({customization:R,backgrounds:C,logos:x}):w||E?E&&!R?i.next({customization:R,backgrounds:C,logos:x}):!R||T||J?!R||l||D?R&&J&&D&&i.next({customization:R,backgrounds:C,logos:x}):this.store$.dispatch(k.Zd.loadLogos()):this.store$.dispatch(k.Zd.loadBackgrounds()):this.store$.dispatch(k.Zd.loadCustomization())}),i.asObservable()}}return(s=O).\u0275fac=function(i){return new(i||s)(G.KVO(N.il))},s.\u0275prov=G.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),O})()},59793:(ye,ae,e)=>{e.d(ae,{M:()=>I});var d=e(58530),h=e(7738),v=e(58468),S=e(30532),k=e(43315),G=e(58527),N=e(71100);let I=(()=>{var s;class O{constructor(i){this.store$=i}resolve(){const i=new d.m;return this.store$.pipe((0,h.E)(this.store$.select(S.iA),this.store$.select(S.CB),this.store$.select(S.wo),this.store$.select(S.Zz),this.store$.select(S.wD)),(0,v.Q)(i)).subscribe(([z,R,w,E,t,C])=>{t||C?i.next({selectedPromotion:R,promotions:w}
1):!E&&!t&&this.store$.dispatch(k.Zd.loadExternalPromotions())}),i.asObservable()}}return(s=O).\u0275fac=function(i){return new(i||s)(G.KVO(N.il))},s.\u0275prov=G.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),O})()},45256:(ye,ae,e)=>{e.d(ae,{KF:()=>w,Nz:()=>O,Su:()=>i,g8:()=>N,kT:()=>G,m5:()=>I,r8:()=>z,xB:()=>R,yq:()=>s});var d=e(1061),v=e(34600),S=e(36972),k=e(1936);function G(E){return{name:E.name,error:E.error,details:E.details,message:E.message,requestId:E.requestId,code:E.code}}const N=new Set(["PasswordRequiredError","EmailNotAllowedError","InvalidSubscriptionError"]),I=new Set([k.h.uploaderErrorType.customUrlAlreadyInUse]);function s(E){return!!E&&E!==d.UploaderStatus.Pending&&E!==d.UploaderStatus.Canceled}function O(E){return["EmptyFileListError","FileReaderAbortError","FileReaderNotReadableError","FileReaderSecurityError","FileReaderUnknownError","FileReaderNotFoundError","InvalidParameterError","UnauthorizedError","UnvalidTokenError","FileSystemAbortError","FileSystemNotFoundError","FileSystemPermissionDeniedError","FileSystemUnknownError","InvalidAvailabilityDurationError","InvalidDeliveryError","MissingReceiversError","MissingSenderError","UnsupportedFileSourceError","UnsupportedFileTypeError","UsageExceededError","OwnerUsageExceededError","NetworkError","TransferIsInErrorError","TransferNotFoundError","UnknownError"].includes(E.name)}function i(E){return[d.UploaderStatus.Paused,d.UploaderStatus.Queued,d.UploaderStatus.Resumable].includes(E)}function z(E){return[d.UploaderStatus.Paused,d.UploaderStatus.Queued,d.UploaderStatus.Resumable,d.UploaderStatus.Canceled,d.UploaderStatus.Error].includes(E)}function R(E){return E===d.UploaderStatus.Starting||E===d.UploaderStatus.Started||E===d.UploaderStatus.Queued||E===d.UploaderStatus.Resumable||E===d.UploaderStatus.Finishing}function w({domain:E,language:t,commonParameters:C,linkParameters:T,emailParameters:J,uploadFormMode:x,dropbox:l,files:D}){const U={files:D,teamId:E.team,language:(0,S.x)(t),password:C.password,preview:C.preview,notification:C.notification,availabilityDuration:C.availabilityDuration,promotion:C.promotion,customization:C.customization,title:C.title};var Z,V,b,Ee,ne,Y,p;return"Email"===x&&(U.description=J.description,U.delivery={type:"Email",...J.delivery},U.notification={...U.notification,link:{enabled:!1},receiver:{enabled:!0}}),"Link"===x&&(U.customUrl=null===(Z=T.customUrl)||void 0===Z?void 0:Z.trim(),U.accessTracking=T.accessTracking,U.delivery={type:"Link",...T.delivery},U.notification={...U.notification,sender:{enabled:!1},receiver:{enabled:!1}}),null!=l&&l.id&&(U.dropboxId=l.id,U.delivery={type:"Dropbox",sender:{name:null===(V=J.delivery)||void 0===V||null===(V=V.sender)||void 0===V?void 0:V.name,email:null===(b=J.delivery)||void 0===b||null===(b=b.sender)||void 0===b?void 0:b.email}},U.notification={download:null===(Ee=C.notification)||void 0===Ee?void 0:Ee.download,noDownload:null===(ne=C.notification)||void 0===ne?void 0:ne.noDownload,sender:null===(Y=C.notification)||void 0===Y?void 0:Y.sender,receiver:null===(p=C.notification)||void 0===p?void 0:p.receiver},delete U.accessTracking,delete U.customUrl),"Link"!==x&&delete U.customUrl,(0,v.A)(U)}}}]); 2//# sourceMappingURL=5525.ec5918b274660ab7.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.