1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed58e696-4ff1-5671-8e54-2a7d03fe4d66")}catch(e){}}(); 3import{a as de,b as he,c as ue,d as fe}from"./chunk-EZLFBNGH.js";import{a as ve}from"./chunk-ZK7N5HOC.js";import{Fb as ce,Gb as Te,Mb as pe,Nb as De,S as ee,V as be,Xd as me,Yd as Ue,Zd as le,_d as Fe,be as M,ce as ge,db as ae,eb as je,fb as se,gb as Ee,l as X,m as Y,n as Z}from"./chunk-EHJF6UKK.js";import{A as te,B as ye,E as ie,F as we,U as ne,V as Ae,Y as oe,Z as Oe,d as V,e as Re,fa as P,ga as re}from"./chunk-7XEC5R2G.js";import{k as K,n as I,r as Q}from"./chunk-OV4F6N7I.js";import"./chunk-J5NV6OCA.js";import"./chunk-PF63PJ47.js";import"./chunk-4MUTHA5V.js";import{D as Me,l as J}from"./chunk-W7MJW6UT.js";import{Bb as C,Ca as W,Fb as G,Ib as p,Ja as v,Jb as o,Lc as d,Nc as w,Zb as S,Zd as x,ec as $,gd as _,hc as m,ic as q,tc as a,uc as s,vc as g,xa as f}from"./chunk-7RQO36LL.js";import"./chunk-IGDKMAHN.js";import"./chunk-2EFPAZRG.js";import"./chunk-XHJ7RZ2T.js";import"./chunk-DMQT3QOG.js";import"./chunk-43G5BLPL.js";import"./chunk-GCEDPD4V.js";import"./chunk-YUF7ANVY.js";import{d as z,m as l}from"./chunk-7Q6MBNO6.js";be();Re();Z();Me();x();x();var Ne=z({
3"../config/base.json":()=>import("./chunk-BS4YCQJJ.js"),
3"../config/collections.json":()=>import("./chunk-XDICAVTH.js")
3});var R=(()=>{class e{constructor(){this.setConfiguration=t=>l(this,null,function*(){try{t&&t.length>0&&(this._config=yield Ne(`../config/${t}.json`))}catch(n){console.error(n)}}),this.getConfiguration=()=>this._config,this.getSuccessfulRegistrationCallable=t=>ue.getCallable(t),this.setLoginData=t=>{this._loginData=t},this.getLoginData=()=>this._loginData}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();Q();we();Ee();je();Fe();Ue();ge();Te();Oe();ye();De();re();Ae();Z();function Le(e,Ie){if(e&1&&(a(0,"div",10),g(1,"img",11),s()),e&2){let t=w();p(),m("src",t.campaign==null?null:t.campaign.sideImageUrl,C)}}function ze(e,Ie){if(e&1&&(a(0,"div",12),g(1,"img",11),s()),e&2){let t=w();p(),m("src",t.campaign==null?null:t.campaign.sideLogoUrl,C)}}var O=(()=>{class e extends de{constructor(t,n,i,r,c,E,T,D,U,F,N,H,k,B,L){super(n,i,r,c,E,U,B,T,D,F,N,H,k,L),this.configurationService=t,this.route=n,this.router=i,this.cookieService=r,this.errorParseService=c,this.spinnerService=E,this.planHelperService=T,this.userHelperService=D,this.eventsService=U,this.deskManagerHelperService=F,this.websocketService=N,this.sessionStorageService=H,this.organizationStateService=k,this.loginHelperService=B,this.notifier=L,this.tagToSendWithRegister=ee,this.setCampaign=()=>{this.campaign=this.configurationService.getConfiguration(),this.headerImageUrl=this.campaign.headerImageUrl},this.onSuccessfullRegistration=h=>l(this,null,function*(){let{onRegistration:b,name:Pe}=this.campaign;try{this.spinnerService.spin(this.SPINNER_ID),b.isCallable&&(yield this.configurationService.getSuccessfulRegistrationCallable(Pe).call(h)),this.sendRegistrationEvent(h.user,"appsumo");let u={grantType:"password",password:{email:h.user.email,password:h.password}};yield this.login(u),this.shouldRedirect&&b.redirectUrl&&(yield this.router.navigate(b.redirectUrl))}catch(u){console.error(u);let y=this.errorParseService.parseOAuthError(u);y?(this.notifier.error(y),this.shouldRedirect=!1):this.shouldRedirect=!0,this.errorParseService.clearError()}finally{this.spinnerService.stop(this.SPINNER_ID)}})}ngOnInit(){this.clearUserData(),this.setCampaign(),this.setCampaignCouponCode(),this.setIsMobile(),this.eventsService.log(this.eventsService.events.partnership.page,{partner:"appsumo"})}static{this.\u0275fac=function(n){return new(n||e)(o(R),o(K),o(I),o(ie),o(se),o(ae),o(le),o(me),o(M),o(ce),o(oe),o(te),o(pe),o(P),o(ne))}}static{this.\u0275cmp=v({type:e,selectors:[["appsumo-registration"]],hostBindings:function(n,i){n&1&&d("resize",function(c){return i.setIsMobile(c)},!1,G)},standalone:!0,features:[S,_],decls:11,vars:9,consts:[[1,"appsumo-registration-container"],[1,"content-container"],[1,"header-container"],["alt","Campaign Header",3,"src"],[1,"form-container"],[3,"onSuccessfullRegistration","couponCode","tag","couponPlaceholder"],[1,"right-side-container"],["class","side-image-container",4,"ngIf"],["class","brand-logo-container",4,"ngIf"],[3,"name"],[1,"side-image-container"],["alt","image",3,"src"],[1,"brand-logo-container"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),g(3,"img",3),s(),a(4,"div",4)(5,"appsumo-registration-form",5),d("onSuccessfullRegistration",function(c){return i.onSuccessfullRegistration(c)}),s()()(),a(6,"div",6),$(7,Le,2,1,"div",7)(8,ze,2,1,"div",8),s(),a(9,"ngx-spinner",9),g(10,"lottie-loader"),s()()),n&2&&(q("background",i.campaign==null?null:i.campaign.background),p(3),m("src",i.headerImageUrl,C),p(2),m("couponCode",i.couponCode)("tag",i.tagToSendWithRegister)("couponPlaceholder","AppSumo Code"),p(2),m("ngIf",i.campaign==null?null:i.campaign.sideImageUrl),p(),m("ngIf",i.campaign==null?null:i.campaign.sideLogoUrl),p(),m("name",i.SPINNER_ID))},dependencies:[he,J,Y,X,V],styles:[".appsumo-registration-container[_ngcontent-%COMP%]{position:fixed;inset:0;height:100%;overflow:hidden;display:flex;justify-content:center;align-items:flex-start}.content-container[_ngcontent-%COMP%]{width:30%;max-width:384px;margin:auto 100px}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:53px}.header-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center}.form-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:38px 32px 30px;text-align:center}.right-side-container[_ngcontent-%COMP%]{width:60%;height:100%}.side-image-container[_ngcontent-%COMP%]{width:100%;height:100%;text-align:center}.side-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:67%;height:100%;object-fit:contain;object-position:center bottom}.brand-logo-container[_ngcontent-%COMP%]{width:67px;height:44px;position:absolute;
3left:20px;bottom:20px}.brand-logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}@media only screen and (max-width: 1440px){.content-container[_ngcontent-%COMP%]{margin:30px 0 50px 50px;width:50%}.brand-logo-container[_ngcontent-%COMP%]{width:57px;height:36px;left:10px;bottom:10px}.side-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:87%}}@media only screen and (max-width: 1023px),(max-height: 770px){.appsumo-registration-container[_ngcontent-%COMP%]{padding:40px 20px 0 30px;overflow:hidden scroll;display:block}.content-container[_ngcontent-%COMP%]{width:100%;max-width:320px;margin:0 auto}.header-container[_ngcontent-%COMP%]{width:210px;height:80px;margin:0 auto 40px}.right-side-container[_ngcontent-%COMP%]{width:100%;height:fit-content;display:flex;justify-content:center;align-items:center;margin:20px auto}.side-image-container[_ngcontent-%COMP%]{display:none}.brand-logo-container[_ngcontent-%COMP%]{position:relative;width:66px;height:43px;bottom:0}}"]})}}return e})();x();ge();re();Q();var Se=(()=>{class e extends fe{constructor(t,n,i){super(n,i),this.eventsService=t,this.loginHelperService=n,this.router=i,this.redirectChildToApp=r=>{this.redirectToApp(r),this.eventsService.log(this.eventsService.events.partnership.gotoAccountClick,{partner:"appsumo"})},this.eventsService.log(this.eventsService.events.partnership.congratulations,{partner:"appsumo"})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||e)(o(M),o(P),o(I))}}static{this.\u0275cmp=v({type:e,selectors:[["appsumo-congrats"]],standalone:!0,features:[S,_],decls:2,vars:0,consts:[[1,"appsumo-congrats-component"],[3,"onRedirect","onFeatureSelection"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"congrats",1),d("onRedirect",function(){return i.redirectChildToApp()})("onFeatureSelection",function(c){return i.redirectChildToApp(c)}),s()())},dependencies:[ve]})}}return e})();x();var _e=function(e){return e.BASE="register",e}(_e||{}),xe=function(e){return e.BASE="base",e}(xe||{}),j=(()=>{class e{constructor(t){this.configurationService=t,this._PATH_TO_CONFIG_MAP=new Map([[_e.BASE,xe.BASE]])}resolve(t,n){return l(this,null,function*(){let i=t.routeConfig.path.replace("/:couponCode",""),r=this._PATH_TO_CONFIG_MAP.get(i);return yield this.configurationService.setConfiguration(r),Promise.resolve()})}static{this.\u0275fac=function(n){return new(n||e)(W(R))}}static{this.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();
3var xt=[{path:"register",component:O,data:{title:"Appsumo - Registration"},resolve:{config:j}},{path:"register/:couponCode",component:O,data:{title:"Appsumo - Registration"},resolve:{config:j}},{path:"congrats",component:Se,data:{title:"Appsumo - Congrats"}},{path:"",redirectTo:"register",pathMatch:"full"},{path:"**",redirectTo:"register",pathMatch:"full"}];export{xt as routes}; 4/**i18n:a22416d48d5d315853b2ff30dd429c3cf66bb88014970864ad6c2ff7ea890e29*/ 5 6//# debugId=ed58e696-4ff1-5671-8e54-2a7d03fe4d66
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.