1"use strict";(self.webpackChunkonirix=self.webpackChunkonirix||[]).push([[226],{95226:(Ot,K,a)=>{a.r(K),a.d(K,{OxSignUpModule:()=>lt});var E=a(60177),i=a(89417),x=a(7786),$_=a(45212),N=a(45312),w_=a(79431),k_=a(4129),_=a(54438),V_=a(7673),B_=a(84412),X=a(21413),z_=a(5964);const K_=new _.nKC("recaptcha-language"),j_=new _.nKC("recaptcha-base-url"),W_=new _.nKC("recaptcha-nonce-tag"),$=(new _.nKC("recaptcha-settings"),new _.nKC("recaptcha-v3-site-key")),H_=new _.nKC("recaptcha-loader-options"),j={loadScript:function Y_(t,s,e,{url:o,lang:n,nonce:c}={}){window.ng2recaptchaloaded=()=>{e(grecaptcha)};const l=document.createElement("script");l.innerHTML="";const{url:O,nonce:S}=s(new URL(o||"https://www.google.com/recaptcha/api.js"));O.searchParams.set("render","explicit"===t?t:t.key),O.searchParams.set("onload","ng2recaptchaloaded"),O.searchParams.set("trustedtypes","true"),n&&O.searchParams.set("hl",n),l.src=O.href;const u=S||c;u&&l.setAttribute("nonce",u),l.async=!0,l.defer=!0,document.head.appendChild(l)},newLoadScript:function q_({v3SiteKey:t,onBeforeLoad:s,onLoaded:e}){j.loadScript(t?{key:t}:"explicit",s,e)}};let W=(()=>{class t{static{this.ready=null}constructor(e,o,n,c,l,O){this.platformId=e,this.language=o,this.baseUrl=n,this.nonce=c,this.v3SiteKey=l,this.options=O;const S=this.init();this.ready=S?function J_(t){return t.asObservable().pipe((0,z_.p)(s=>null!==s))}(S):(0,V_.of)()}init(){if(t.ready)return t.ready;if(!(0,E.UE)(this.platformId))return;const e=new B_.t(null);return t.ready=e,j.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:o=>
1{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(o);const n=new URL(this.baseUrl??o);return this.language&&n.searchParams.set("hl",this.language),{url:n,nonce:this.nonce}},onLoaded:o=>{let n=o;this.options?.onLoaded&&(n=this.options.onLoaded(o)),e.next(n)}}),e}static{this.\u0275fac=function(o){return new(o||t)(_.KVO(_.Agw),_.KVO(K_,8),_.KVO(j_,8),_.KVO(W_,8),_.KVO($,8),_.KVO(H_,8))}}static{this.\u0275prov=_.jDH({token:t,factory:t.\u0275fac})}}return t})(),H=(()=>{class t{constructor(e,o,n){this.recaptchaLoader=o,this.zone=e,this.siteKey=n,this.init()}get onExecute(){return this.onExecuteSubject||(this.onExecuteSubject=new X.B,this.onExecuteObservable=this.onExecuteSubject.asObservable()),this.onExecuteObservable}get onExecuteError(){return this.onExecuteErrorSubject||(this.onExecuteErrorSubject=new X.B,this.onExecuteErrorObservable=this.onExecuteErrorSubject.asObservable()),this.onExecuteErrorObservable}execute(e){const o=new X.B;return this.grecaptcha?this.executeActionWithSubject(e,o):(this.actionBacklog||(this.actionBacklog=[]),this.actionBacklog.push([e,o])),o.asObservable()}executeActionWithSubject(e,o){const n=c=>{this.zone.run(()=>{o.error(c),this.onExecuteErrorSubject&&this.onExecuteErrorSubject.next({action:e,error:c})})};this.zone.runOutsideAngular(()=>{try{this.grecaptcha.execute(this.siteKey,{action:e}).then(c=>{this.zone.run(()=>{o.next(c),o.complete(),this.onExecuteSubject&&this.onExecuteSubject.next({action:e,token:c})})},n)}catch(c){n(c)}})}init(){this.recaptchaLoader.ready.subscribe(e=>{this.grecaptcha=e,this.actionBacklog&&this.actionBacklog.length>0&&(this.actionBacklog.forEach(([o,n])=>this.executeActionWithSubject(o,n)),this.actionBacklog=void 0)})}static{this.\u0275fac=function(o){return new(o||t)(_.KVO(_.SKi),_.KVO(W),_.KVO($))}}static{this.\u0275prov=_.jDH({token:t,factory:t.\u0275fac})}}return t})(),Z_=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=_.$C({type:t})}static{this.\u0275inj=_.G2t({providers:[H,W]})}}return t})();var Q_=a(34978),_e=a(59454),I=a(10467),Y=a(24380),A=a(82405),te=a(55016),w=a(48520),k=a(53254),oe=a(64848),q=a(68010),ne=a(50998),ie=a(8951),J=a(52573),Z=a(49117),b=a(13443),f=a(45205),g=a(25549),U=a(68521),re=a(68222),V=a(56977),m=a(93207),se=a(345),ae=a(89099),Q=a(93144),__=a(90571),e_=a(21841),ce=a(8953),le=a(33401);let Oe=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=_.VBU({type:t,selectors:[["ox-register-right-explib"]],inputs:{name:"name",banner:"banner"},decls:8,vars:3,consts:[[1,"ox-right--exp"],[1,"ox-register-explib__exp"],[3,"src","alt"],["i18nn","@@register-explib"],[1,"ox-ellipsis"]],template:function(o,n){1&o&&(_.j41(0,"div",0)(1,"div",1),_.nrm(2,"img",2),_.j41(3,"div")(4,"p",3),_.EFF(5,"Experience you will add"),_.k0s(),_.j41(6,"p",4),_.EFF(7),_.k0s()()()()),2&o&&(_.R7$(2),_.Y8G("src",n.banner,_.B4B)("alt",n.name),_.R7$(5),_.JRh(n.name))},styles:["ox-register-right-explib{width:100%}.ox-right--exp[_ngcontent-%COMP%]{background:var(--color-gray03);align-items:center;justify-content:center;padding:20px;display:flex;height:calc(100% - 40px)}.ox-register-explib__exp[_ngcontent-%COMP%]{max-width:568px;max-height:538px;height:auto;width:100%;display:flex;flex-direction:column;justify-content:flex-end;position:relative;border:solid 1px var(--color-gray02);border-radius:20px;margin-bottom:20px}.ox-register-explib__exp[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:450px;width:100%;border-radius:20px 20px 0 0;object-fit:cover}.ox-register-explib__exp[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:var(--color-core-white);border-radius:0 0 20px 20px;padding:20px;height:48px}.ox-register-explib__exp[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px;font-weight:700;-webkit-line-clamp:1}.ox-register-explib__exp[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-of-type{color:var(--color-gray01);font-size:14px;margin-bottom:1px;font-weight:600}"]})}}return t})();function ge(t,s){1&t&&_.nrm(0,"img",10),2&t&&_.Y8G("src",s.$implicit,_.B4B)}function de(t,s){if(1&t&&(_.j41(0,"div",8),_.DNE(1,ge,1,1,"img",9),_.k0s()),2&t){const e=s.$implicit;_.R7$(),_.Y8G("ngForOf",e)}}let Se=(()=>{class t{constructor(){this.companies=[["/assets/images/telefonica.png","/assets/images/att.png","/assets/images/cepsa.png","/assets/images/kpmg.png","/assets/images/durex.png","/assets/images/orange.png"],["/assets/images/cavs.png","/assets/images/roche.png","/assets/images/vodafone.png","/assets/images/edp.png","/assets/images/finetwork.png","/assets/images/gam.png"]]}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=_.VBU({type:t,selectors:[["ox-register-right-business"]],decls:21,vars:1,consts:()=>{let e,o,n,c;return e=" Scale up your business by creating Augmented reality experiences for web browsers: ",o=" Intuitive Studio tool to design and publish branded experiences. ",n=" Robust te
1chnology to cover a wide range of triggers (image, surface, spaces\u2026). ",c=" Brands, clients and users in more than 100 countries. ",[e,o,n,c,[1,"ox-right--buss"],["src","/assets/images/icons/success.svg"],[1,"ox-separator"],["class","ox-right--buss-imgs",4,"ngFor","ngForOf"],[1,"ox-right--buss-imgs"],[3,"src",4,"ngFor","ngForOf"],[3,"src"]]},template:function(o,n){1&o&&(_.j41(0,"div",4)(1,"h1"),_.pXf(2,0),_.k0s(),_.j41(3,"ul")(4,"li")(5,"div"),_.nrm(6,"img",5),_.k0s(),_.j41(7,"span"),_.pXf(8,1),_.k0s()(),_.j41(9,"li")(10,"div"),_.nrm(11,"img",5),_.k0s(),_.j41(12,"span"),_.pXf(13,2),_.k0s()(),_.j41(14,"li")(15,"div"),_.nrm(16,"img",5),_.k0s(),_.j41(17,"span"),_.pXf(18,3),_.k0s()()(),_.nrm(19,"div",6),_.DNE(20,de,2,1,"div",7),_.k0s()),2&o&&(_.R7$(20),_.Y8G("ngForOf",n.companies))},dependencies:[E.Sq],styles:[".ox-right{background-color:var(--color-gray03)!important;align-items:center;justify-content:center} .ox-right .ox-right--buss{max-width:470px;padding:20px} .ox-right .ox-right--buss h1{margin:0;font-size:20px;font-weight:700;line-height:1.4} .ox-right .ox-right--buss ul{margin:10px 0 0;list-style:none;padding-inline-start:0} .ox-right .ox-right--buss ul li{display:flex;margin-top:20px} .ox-right .ox-right--buss ul li div{margin-right:10px;width:16px;height:16px;margin-top:3px} .ox-right .ox-right--buss ul li span{font-size:16px} .ox-right .ox-right--buss .ox-separator{margin:24px 0} .ox-right .ox-right--buss .ox-right--buss-imgs{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px} .ox-right .ox-right--buss .ox-right--buss-imgs img{max-width:69px;max-height:33px} .ox-right .ox-right--buss .ox-right--buss-imgs:last-of-type{margin-bottom:unset}@media only screen and (max-width: 945px){.ox-right--buss-imgs[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:nth-child(5){margin-right:29px}}"]})}}return t})();const pe=(t,s)=>({"ox-left--2":t,"ox-left--3":s}),ue=t=>({"ox-form-control__password--hide":t}),t_=t=>({"ox-disabled":t});function Ee(t,s){if(1&t&&_.eu8(0,57),2&t){_.XpG();const e=_.sdS(18);_.Y8G("ngTemplateOutlet",e)}}function Ie(t,s){if(1&t&&_.eu8(0,57),2&t){_.XpG();const e=_.sdS(20);_.Y8G("ngTemplateOutlet",e)}}function fe(t,s){if(1&t&&_.eu8(0,57),2&t){_.XpG();const e=_.sdS(22);_.Y8G("ngTemplateOutlet",e)}}function Re(t,s){if(1&t&&_.eu8(0,57),2&t){_.XpG();const e=_.sdS(24);_.Y8G("ngTemplateOutlet",e)}}function xe(t,s){if(1&t&&_.eu8(0,57),2&t){_.XpG();const e=_.sdS(26);_.Y8G("ngTemplateOutlet",e)}}function me(t,s){if(1&t){const e=_.RV6();_.j41(0,"ox-button",58),_.bIt("onClick",function(){_.eBV(e);const n=_.XpG();return _.Njj(n.continueProcess())}),_.k0s()}if(2&t){const e=_.XpG();_.Y8G("loading",e.showLoading)}}function Pe(t,s){if(1&t){const e=_.RV6();_.j41(0,"ox-button",59),_.bIt("onClick",function(){_.eBV(e);const n=_.XpG();return _.Njj(n.continueProcess())}),_.k0s()}if(2&t){const e=_.XpG();_.Y8G("disabled",e.isCreatingUser||e.failRecaptcha)}}function he(t,s){if(1&t&&_.nrm(0,"ox-register-right-explib",60),2&t){const e=_.XpG();_.Y8G("banner",e.experienceBanner?e.experienceBanner:e.background)("name",null==e.experience?null:e.experience.name)}}function Me(t,s){1&t&&_.nrm(0,"ox-register-right-business")}function Ce(t,s){if(1&t&&(_.j41(0,"h1"),_.pXf(1,10),_.k0s(),_.j41(2,"h2"),_.pXf(3,11),_.k0s(),_.nrm(4,"div",61),_.j41(5,"div",62)(6,"span",63),_.pXf(7,12),_.k0s()(),_.j41(8,"form",64,5)(10,"div",65)(11,"label",66),_.pXf(12,13),_.k0s(),_.nrm(13,"input",67)(14,"ox-control-error",68),_.k0s()()),2&t){const e=_.XpG();_.R7$(8),_.Y8G("formGroup",e.formInit.formGroup)}}function Te(t,s){if(1&t){const e=_.RV6();_.j41(0,"span",85),_.bIt("click",function(){_.eBV(e);const n=_.XpG(2);return _.Njj(n.showPassword=!n.showPassword)}),_.k0s()}}function Ne(t,s){if(1&t&&(_.j41(0,"h1"),_.pXf(1,14),_.k0s(),_.j41(2,"form",64,6)(4,"div",65)(5,"label"),_.pXf(6,15),_.k0s(),_.nrm(7,"input",69)(8,"ox-control-error",70),_.k0s(),_.j41(9,"div",65)(10,"label"),_.pXf(11,16),_.k0s(),_.nrm(12,"input",71)(13,"ox-control-error",72),_.k0s(),_.j41(14,"div",65)(15,"label"),_.pXf(16,17),_.k0s(),_.j41(17,"div",73),_.DNE(18,Te,1,0,"span",74),_.nrm(19,"input",75)(20,"ox-control-error",76),_.k0s()(),_.j41(21,"div",77)(22,"ox-checkbox",78)(23,"div",79)(24,"span"),_.PLo(25,18),_.nrm(26,"a",80)(27,"a",81)(28,"a",82),_.YFu(),_.k0s(),_.j41(29,"span",83),_.pXf(30,19),_.k0s()()(),_.j41(31,"ox-checkbox",84)(32,"span"),_.pXf(33,20),_.k0s()()()()),2&t){const e=_.XpG();_.R7$(2),_.Y8G("formGroup",e.formInit.formGroup),_.R7$(15),_.Y8G("ngClass",_.eq3(4,ue,!e.showPassword)),_.R7$(),_.Y8G("ngIf",e.uiFlags.isShowEye),_.R7$(),_.Y8G("type",e.inputTypePassword)}}function Xe(t,s){if(1&t&&(_.j41(0,"h1"),_.pXf(1,21),_.k0s(),_.j41(2,"form",64,6)(4,"div",65)(5,"label"),_.pXf(6,22),_.k0s(),_.nrm(7,"input",86)(8,"ox-control-error",70),_.k0s(),_.j41(9,"div",65)(10,"label"),_.pXf(11,23),_.k0s(),_.nrm(12,"input",87)(13,"ox-control-error",72),_.k0s(),_.j41(14,"div",77)(15,"ox-checkbox",78)(16,"div",79)(17,"span"),_.PLo(18,24),_.nrm(19,"a",88)(20,"a",89)(21,"a",90),_.YFu(),_.k0s(),_.j41(22,"span",83),_.pXf(23,25),_.k0s()()(),_.j41(24,"ox-checkbox",84)(25,"span"),_.pXf(26,26),_.k0s()()()()),2&t){const e=_.XpG();_.R7$(2),_.Y8G("formGroup",e.formInit.formGroup)}}function Ae(t,s){1&t&&(_.j41(0,"p",95),_.pXf(1,36),_.k0s())}function ve(t,s){if(1&t&&(_.j41(0,"h1"),_.pXf(1,27),_.k0s(),_.j41(2,"form",91,7)(4,"div",92)(5,"label"),_.pXf(6,28),_.k0s(),_.j41(7,"ox-radio",93)(8,"span"),_.pXf(9,29),_.k0s()(),_.j41(10,"ox-radio",93)(11,"span"),_.pXf(12,30),_.k0s()(),_.j41(13,"ox-radio",93)(14,"span"),_.pXf(15,31),_.k0s()(),_.j41(16,"ox-radio",93)(17,"span"),_.pXf(18,32),_.k0s()(),_.j41(19,"ox-radio",93)(20,"span"),_.pXf(21,33),_.k0s()(),_.j41(22,"ox-radio",93)(23,"span"),_.pXf(24,34),_.k0s()(),_.j41(25,"ox-radio",93)(26,"span"),_.pXf(27,35),_.k0s()(),_.DNE(28,Ae,2,0,"p",94),_.k0s()()),2&t){const e=_.XpG();_.R7$(2),_.Y8G("formGroup",e.formSecondStep.formGroup)("ngClass",_.eq3(10,t_,e.isCreatingUser)),_.R7$(5),_.Y8G("value",e.sectorType.AR),_.R7$(3),_.Y8G("value",e.sectorType.ADVERTISING),_.R7$(3),_.Y8G("value",e.sectorType.INDUSTRY),_.R7$(3),_.Y8G("value",e.sectorType.IT_CONSULTING),_.R7$(3),_.Y8G("value",e.sectorType.CORPORATION),_.R7$(3),_.Y8G("value",e.sectorType.FREELANCE),_.R7$(3),_.Y8G("value",e.sectorType.EDUCATION),_.R7$(3),_.Y8G("ngIf",e.uiFlags.isSectorError)}}function be(t,s){if(1&t&&(_.j41(0,"div",92)(1,"label"),_.pXf(2,38),_.k0s(),_.nrm(3,"ox-dropdown",100)(4,"ox-control-error",101),_.k0s()),2&t){const e=_.XpG(2);_.R7$(3),_.Y8G("options",e.occupationOptions)}}function Ue(t,s){if(1&t&&_.nrm(0,"ox-dropdown",105),2&t){const e=_.XpG(3);_.Y8G("options",e.useOptions)}}function De(t,s){1&t&&_.nrm(0,"input",106)}function Ge(t,s){if(1&t&&(_.j41(0,"div",92)(1,"label"),_.pXf(2,39),_.k0s(),_.DNE(3,
1Ue,1,1,"ox-dropdown",102)(4,De,1,0,"input",103),_.nrm(5,"ox-control-error",104),_.k0s()),2&t){const e=_.XpG(2);_.R7$(3),_.Y8G("ngIf",e.uiFlags.isSectorFreelance),_.R7$(),_.Y8G("ngIf",e.uiFlags.isSectorEducation)}}function Le(t,s){1&t&&(_.j41(0,"div",92)(1,"label"),_.pXf(2,40),_.k0s(),_.nrm(3,"input",107)(4,"ox-control-error",108),_.k0s())}function ye(t,s){1&t&&(_.j41(0,"div",92)(1,"label"),_.pXf(2,41),_.k0s(),_.nrm(3,"input",109)(4,"ox-control-error",110),_.k0s())}function Fe(t,s){1&t&&(_.j41(0,"span"),_.pXf(1,43),_.k0s())}function $e(t,s){if(1&t&&(_.j41(0,"label",111)(1,"span"),_.pXf(2,42),_.k0s(),_.DNE(3,Fe,2,0,"span",56),_.k0s()),2&t){const e=_.XpG(2);_.R7$(3),_.Y8G("ngIf",e.uiFlags.isSectorFreelance)}}function we(t,s){1&t&&(_.j41(0,"label"),_.pXf(1,44),_.k0s())}function ke(t,s){if(1&t&&(_.j41(0,"h1"),_.pXf(1,37),_.k0s(),_.j41(2,"form",91,8),_.DNE(4,be,5,1,"div",96)(5,Ge,6,2,"div",96)(6,Le,5,0,"div",96)(7,ye,5,0,"div",96),_.j41(8,"div",92),_.DNE(9,$e,4,1,"label",97)(10,we,2,0,"label",56),_.nrm(11,"input",98)(12,"ox-control-error",99),_.k0s()()),2&t){const e=_.XpG();_.R7$(2),_.Y8G("formGroup",e.formEnd.formGroup)("ngClass",_.eq3(8,t_,e.isCreatingUser)),_.R7$(2),_.Y8G("ngIf",!e.uiFlags.isSectorEducation),_.R7$(),_.Y8G("ngIf",e.uiFlags.isSectorEducation||e.uiFlags.isSectorFreelance),_.R7$(),_.Y8G("ngIf",e.uiFlags.isShowOtherSituation),_.R7$(),_.Y8G("ngIf",e.uiFlags.isSectorFreelance||e.uiFlags.isSectorEducation),_.R7$(2),_.Y8G("ngIf",!e.uiFlags.isSectorEducation),_.R7$(),_.Y8G("ngIf",e.uiFlags.isSectorEducation)}}var p=function(t){return t.STEP_0="ox-step-zero",t.STEP_1="ox-step-one",t.STEP_2="ox-step-two",t.STEP_1G="ox-step-one-google",t.STEP_3="ox-step-three",t}(p||{});let Ve=(()=>{class t{constructor(e,o,n,c,l,O,S,u,P,R,M,C,T,d,D,G,L){this.authService=e,this.analyticsService=o,this.route=n,this.storageService=c,this.userService=l,this.messagesManager=O,this.router=S,this.deviceService=u,this.experiencesService=P,this.assetManager=R,this.ngZone=M,this.i18nManager=C,this.meta=T,this.googleAnalyticsService=d,this.statusManager=D,this.recaptchaService=G,this.renderer=L,this.Interests=g.fA,this.Step=p,this.isCheckingMail=!1,this.showLoading=!1,this.isCreatingUser=!1,this.registerSessionId=null,this.background="/assets/images/default-card-image-1.svg",this.formInit={formGroup:null,controls:{name:new i.MJ("",[i.k0.required,i.k0.maxLength(50),t=>0!==(t.value||"").trim().length?null:{whiteSpacesString:!0}]),surname:new i.MJ("",[i.k0.required,i.k0.maxLength(50),t=>0!==(t.value||"").trim().length?null:{whiteSpacesString:!0}]),email:new i.MJ("",[i.k0.required,i.k0.email,i.k0.maxLength(50),t=>0!==(t.value||"").trim().length?null:{whiteSpacesString:!0}]),password:new i.MJ("",[i.k0.required,i.k0.minLength(6),i.k0.maxLength(25),t=>0!==(t.value||"").trim().length?null:{whiteSpacesString:!0}]),terms:new i.MJ("",[i.k0.required,t=>!0!==t.value?{isTrue:!0}:null]),notifications:new i.MJ(null,[i.k0.required]),source:new i.MJ(""),type:new i.MJ(null)}},this.formEnd={formGroup:null,controls:{interest:new i.MJ(null,[i.k0.required]),situation:new i.MJ("",[i.k0.maxLength(50)]),company:new i.MJ(!1),useType:new i.MJ(null),origin:new i.MJ(null),websiteUrl:new i.MJ("")}},this.formSecondStep={formGroup:null,controls:{sector:new i.MJ(null,[i.k0.required])}},this.sectorType=g.R3,this.uiFlags={isSectorError:!1,isSectorEducation:!1,isSectorFreelance:!1,isShowOtherSituation:!1,isShowEye:!1},this.destroy$=new X.B,this.failRecaptcha=!1,this.useOptions=this.i18nManager.getUses(),this.formInit.formGroup=new i.gE({name:this.formInit.controls.name,surname:this.formInit.controls.surname,email:this.formInit.controls.email,terms:this.formInit.controls.terms,notifications:this.formInit.controls.notifications,source:this.formInit.controls.source,type:this.formInit.controls.type}),this.formInit.formGroup.valueChanges.pipe((0,V.Q)(this.destroy$)).subscribe(h=>{null==this.registerSessionId&&(this.registerSessionId=(new Date).getTime().toString(),this.analyticsService.sendPublicEvent(f.c.REGISTER_INIT,this.createMixpanelData())),this.uiFlags.isShowEye=null!=h.password&&""!=h.password}),this.formSecondStep.formGroup=new i.gE({sector:this.formSecondStep.controls.sector}),this.formEnd.formGroup=new i.gE({interest:this.formEnd.controls.interest,situation:this.formEnd.controls.situation,company:this.formEnd.controls.company,useType:this.formEnd.controls.useType,origin:this.formEnd.controls.origin,websiteUrl:this.formEnd.controls.websiteUrl}),this.formEnd.controls.useType.valueChanges.pipe((0,V.Q)(this.destroy$)).subscribe(h=>
1this.useTypeChangeHandler(h)),this.formSecondStep.controls.sector.valueChanges.pipe((0,V.Q)(this.destroy$)).subscribe(h=>this.sectorChangeHandler(h)),this.meta.addTags([{name:"description",content:"Improve the UX of your AR services. Intuitive Web Augmented Reality creation platform. Powerful technology and global compatibility. No App downloads required."},{property:"og:title",content:"Onirix \xa9\ufe0f Create professional Web AR experiences in a simple way"},{property:"og:description",content:"Improve the UX of your AR services. Intuitive Web Augmented Reality creation platform. Powerful technology and global compatibility. No App downloads required."},{property:"og:url",content:`https://${N.c.clientUrl}/register`},{property:"og:site_name",content:"Onirix"},{property:"og:type",content:"website"},{property:"og:image",content:"https://www.onirix.com/wp-content/uploads/2022/08/simple-augmented-reality.jpg"},{property:"og:image:secure_url",content:"https://www.onirix.com/wp-content/uploads/2022/08/simple-augmented-reality.jpg"},{property:"og:image:width",content:"1826"},{property:"og:image:height",content:"1216"},{property:"og:image:type",content:"image/jpeg"}])}ngOnInit(){var e=this;return(0,I.A)(function*(){e.renderer.addClass(document.body,"recaptcha"),e.step=p.STEP_0,e.route.snapshot.queryParamMap.has("expLib")&&(e.explibOid=e.route.snapshot.queryParamMap.get("expLib"),e.explibOid&&e.storageService.setExplibCopyingOid(e.explibOid)),e.loadExperience(),e.clientId=yield(0,m.s)(e.authService.getGoogleClientId()),e.clientId&&(google.accounts.id.initialize({client_id:e.clientId,callback:e.handleCredentialResponse.bind(e),auto_select:!0,cancel_on_tap_outside:!0}),google.accounts.id.renderButton(document.getElementById("ox-google-button"),{theme:"outline",size:"large",width:320,locale:e.i18nManager.localeId,text:"continue_with",logo_alignment:"center",type:"standard"}));const o=new URLSearchParams(window.location.search);o.has("referral")&&(e.referralToken=o.get("referral"))})()}ngOnDestroy(){this.renderer.removeClass(document.body,"recaptcha"),this.destroy$.next(),this.destroy$.complete()}sectorChangeHandler(e){this.formEnd.controls.company.setValue(e!=g.R3.EDUCATION),this.uiFlags.isSectorEducation=this.formSecondStep.controls.sector.value==g.R3.EDUCATION,this.uiFlags.isSectorFreelance=this.formSecondStep.controls.sector.value==g.R3.FREELANCE,this.uiFlags.isSectorError=this.formSecondStep.controls.sector.touched&&this.formSecondStep.controls.sector.invalid,this.occupationOptions=this.i18nManager.getOccupations(this.uiFlags.isSectorFreelance)}handleCredentialResponse(e){var o=this;return(0,I.A)(function*(){o.googleToken=e,o.authService.googleRegister(e.credential,e.client_id).subscribe({next:n=>o.ngZone.run((0,I.A)(function*(){n.email?o.step0GoogleContinueHandler(n):(o.authService.handleLoginResponse(n,!0),yield o.userService.updateUserStatus(!0),o.googleAnalyticsService.sendLoginGAEvent(o.statusManager.userStatus$.value),o.analyticsService.sendEvent(f.c.USER_LOGIN,{email_source:U.o.GOOGLE},!1,!0),o.router.navigate(["/home"]))})),error:n=>o.ngZone.run(()=>{o.analyticsService.sendEvent(f.c.REGISTER_EMAIL_NOT_VALID,o.createMixpanelData()),o.messagesManager.notify({severity:"error",summary:n.error.messages[0]})})})})()}getSourceFromURL(){if(this.route.snapshot.queryParamMap.has("source"))return this.route.snapshot.queryParamMap.get("source");if(this.route.snapshot.queryParamMap.has("ox"))return this.route.snapshot.queryParamMap.get("ox");if(this.route.snapshot.queryParamMap.has("cta"))return this.route.snapshot.queryParamMap.get("cta");if(this.route.snapshot.queryParamMap.has("sid"))return this.route.snapshot.queryParamMap.get("sid");if(this.storageService.getRegisterParams()){const e=this.storageService.getRegisterParams();if(e.source)return e.source;if(e.ox)return e.ox;if(e.cta)return e.cta;if(e.sid)return e.sid}return g.lh[g.lh.DIRECT]}useTypeChangeHandler(e){this.uiFlags.isShowOtherSituation=e==g.Zn.OTHER&&this.formSecondStep.controls.sector.value==g.R3.FREELANCE,this.uiFlags.isShowOtherSituation?this.formEnd.controls.situation.addValidators([i.k0.required,i.k0.maxLength(50)]):this.formEnd.controls.situation.setValidators([])}isValidEmail(){var e=this;return(0,I.A)(function*(){let o=!1;if(e.formInit.controls.email.valid){e.isCheckingMail=!0,e.showLoading=!1;let n=null;try{n=setTimeout(()=>e.showLoading=!0,500),yield(0,m.s)(e.authService.checkEmail(e.formInit.controls.email.value)),e.analyticsService.sendPublicEvent(f.c.REGISTER_EMAIL_VALID,e.createMixpanelData()),o=!0}catch(c){"emailInUse"===c?.error?.data?(e.formInit.controls.email.setErrors({emailInUse:!0}),e.analyticsService.sendPublicEvent(f.c.REGISTER_EMAIL_IN_USE,e.createMixpanelData())):(e.formInit.controls.email.setErrors({emailNotValid:!0}),e.analyticsService.sendPublicEvent(f.c.REGISTER_EMAIL_NOT_VALID,e.createMixpanelData()))}finally{clearTimeout(n),e.showLoading=!1,e.isCheckingMail=!1}}return o}
1)()}step1ContinueHandler(){A.n.validateAllFormFields(this.formInit.formGroup),this.formInit.formGroup.valid&&(this.analyticsService.sendPublicEvent(f.c.REGISTER_STEP_ONE_COMPLETE,this.createMixpanelData()),this.isCreatingUser=!1,this.step=p.STEP_2,this.formEnd.controls.interest.setValue(null))}step2ContinueHandler(){if(A.n.validateAllFormFields(this.formSecondStep.formGroup),this.uiFlags.isSectorError=this.formSecondStep.controls.sector.invalid,this.formSecondStep.formGroup.valid){this.isCreatingUser=!1,this.step=p.STEP_3,this.formSecondStep.controls.sector.value==g.R3.EDUCATION&&this.formEnd.controls.interest.setValue(g.fA.EDUCATION);const e=this.formSecondStep.controls.sector.value!=g.R3.EDUCATION&&this.formSecondStep.controls.sector.value!=g.R3.FREELANCE?[i.k0.required,(0,Y.An)()]:[(0,Y.An)()];this.formEnd.controls.websiteUrl.setValidators(e);const o=this.formSecondStep.controls.sector.value==g.R3.FREELANCE||this.formSecondStep.controls.sector.value==g.R3.EDUCATION?[i.k0.required]:[];this.formEnd.controls.useType.setValidators(o),this.formEnd.controls.origin.setValidators(o)}}step3CreateHandler(){var e=this;return(0,I.A)(function*(){let o;try{o=yield(0,m.s)(e.recaptchaService.execute("registerUser"))}catch(n){console.error(n)}if(A.n.validateAllFormFields(e.formEnd.formGroup),e.formEnd.formGroup.valid){const n=e.createRegisterData(!0,o);e.storageService.setAuthToken(null),e.analyticsService.sendPublicEvent(f.c.REGISTER_STEP_TWO_COMPLETE,e.createMixpanelData()),e.isCreatingUser=!0,yield e.registerUser(n)}})()}registerUser(e){var o=this;return(0,I.A)(function*(){try{const n=yield(0,m.s)(o.authService.register(e));o.storageService.clearRegisterParams(),o.authService.setRegisterData(null),o.storageService.setAuthToken(n.token),o.isCreatingUser=!1,o.analyticsService.sendPublicEvent(f.c.LOG,{user_registered:n.email,cta:e.source,time:(new Date).toISOString(),env:N.c.env},!1),yield o.userService.updateUserStatus(!0),o.googleAnalyticsService.sendRegisterGAEvent(o.statusManager.userStatus$.value),o.googleToken&&!o.statusManager.userStatus$.value.sendSMS&&o.googleAnalyticsService.sendRegisterValidatedGAEvent(o.statusManager.userStatus$.value),o.router.navigate(["/register/validate"])}catch(n){o.isCreatingUser=!1,o.messagesManager.notifyStudioError(n)}})()}get inputTypePassword(){return this.showPassword?"text":"password"}createRegisterData(e=!0,o){const n=new U.X;n.name=this.formInit.controls.name.value,n.surname=this.formInit.controls.surname.value,n.email=this.formInit.controls.email.value,n.promotions=this.formInit.controls.notifications.value,n.source=this.formInit.controls.source.value?this.formInit.controls.source.value:this.getSourceFromURL(),n.type=this.formInit.controls.type.value,this.googleToken?(n.googleCredential=this.googleToken.credential,n.googleClientId=this.googleToken.client_id):n.password=this.formInit.controls.password.value,n.recaptchaToken=o,n.interestType=this.formEnd.controls.interest.value,n.interestCustom=this.formEnd.controls.situation.value,
1n.company=this.formEnd.controls.company.value,n.previousToken=this.storageService.getAuthToken(),n.registerSessionId=this.registerSessionId,n.referrer=document.referrer,n.referralToken=this.referralToken,n.sectorType=this.formSecondStep.controls.sector.value,n.useType=this.formEnd.controls.useType.value,n.wayOfDiscovery=this.formEnd.controls.origin.value,n.websiteUrl=this.formEnd.controls.websiteUrl.value;const c=this.getTrafficCookie();return c&&(n.ga_first_campaign=c.ga_first_campaign,n.ga_first_medium=c.ga_first_medium,n.ga_first_source=c.ga_first_source),n.device=this.deviceService.device,e&&this.storageService.setAuthToken(null),n}createMixpanelData(){const e=this.createRegisterData(!1);return e.email_source=!e.password&&this.googleToken?U.o.GOOGLE:U.o.STUDIO,delete e.password,delete e.googleCredential,delete e.googleClientId,delete e.referrer,delete e.referralToken,e.env=N.c.env,e.userAgent=navigator.userAgent,e.os=this.deviceService.os,e.osVersion=this.deviceService.osVersion,e.browser=this.deviceService.browser,e.device=this.deviceService.device,e}continueProcess(){switch(this.step){case p.STEP_0:this.step0ContinueHandler();break;case p.STEP_1:this.step1ContinueHandler();break;case p.STEP_1G:this.step1GContinueHandler();break;case p.STEP_2:this.step2ContinueHandler();break;case p.STEP_3:this.step3CreateHandler()}}step0ContinueHandler(){var e=this;return(0,I.A)(function*(){e.isCheckingMail?console.warn("Checking email"):(yield e.isValidEmail())?(e.formInit.controls.notifications.setValue(!1),e.formInit.controls.source.setValue(e.getSourceFromURL()),e.route.snapshot.queryParamMap.has("type")?e.formInit.controls.type.setValue(Number(e.route.snapshot.queryParamMap.get("type"))):e.formInit.controls.type.setValue(g.ls._WEB_AR),e.formInit.formGroup.addControl("password",e.formInit.controls.password),e.step=p.STEP_1):e.formInit.controls.email.markAllAsTouched()})()}step0GoogleContinueHandler(e){e&&(this.formInit.controls.email.setValue(e.email),this.formInit.controls.name.setValue(e.givenName),this.formInit.controls.surname.setValue(e.familyName),"VALID"===this.formInit.controls.email.status&&(this.formInit.controls.notifications.setValue(!1),this.formInit.controls.source.setValue(this.getSourceFromURL()),this.route.snapshot.queryParamMap.has("type")?this.formInit.controls.type.setValue(Number(this.route.snapshot.queryParamMap.get("type"))):this.formInit.controls.type.setValue(g.ls._WEB_AR),this.formInit.formGroup.removeControl("password"),this.analyticsService.sendPublicEvent(f.c.REGISTER_EMAIL_VALID,this.createMixpanelData()),this.step=p.STEP_1G))}step1GContinueHandler(){A.n.validateAllFormFields(this.formInit.formGroup),this.formInit.formGroup.valid&&(this.analyticsService.sendPublicEvent(f.c.REGISTER_STEP_ONE_COMPLETE,this.createMixpanelData()),this.isCreatingUser=!1,this.step=p.STEP_2,this.formEnd.controls.interest.setValue(null))}loadExperience(){this.explibOid=this.storageService.getExplibCopyingOid(),this.explibOid&&this.experiencesService.getExperience(this.explibOid).subscribe({next:e=>{e?(this.experience=e,this.experience.launchPad.banner&&(this.experienceBanner=this.assetManager.getAssetThumbSrc(this.experience.launchPad.banner.oid,this.experience.publicToken))):(this.explibOid=void 0,this.storageService.clearExpLibCopyingOid(),this.messagesManager.notify({severity:"warning",summary:this.i18nManager.isSpanish?"La experiencia seleccionada de la librer\xeda no est\xe1 disponible":"The selected experience from the library is not available"}))},error:e=>{this.explibOid=void 0,this.storageService.clearExpLibCopyingOid(),this.messagesManager.notifyStudioError(e)}})}getTrafficCookie(){try{const o=("; "+document.cookie).split("; initialTrafficSource=");if(2==o.length){const c=(o.pop()?.split(";").shift()).match(/\(([^)]+)\)/g);if(c)return{ga_first_source:c[0]?.replace("(","").replace(")",""),ga_first_medium:c[1]?.replace("(","").replace(")",""),ga_first_campaign:c[2]?.replace("(","").replace(")","")}}}catch(e){console.error(e)}return{ga_first_source:"",ga_first_medium:"",ga_first_campaign:""}}static{this.\u0275fac=function(o){return new(o||t)(_.rXU(q.u),_.rXU(oe.c),_.rXU(x.nX),_.rXU(Z.n),_.rXU(b.D),_.rXU(w.q),_.rXU(x.Ix),_.rXU(ne.gc),_.rXU(ie.y),_.rXU(re.E),_.rXU(_.SKi),_.rXU(te.S),_.rXU(se.W8),_.rXU(J.p),_.rXU(k.ON),_.rXU(H),_.rXU(_.sFG))}}static{this.\u0275cmp=_.VBU({type:t,selectors:[["ox-register"]],decls:27,vars:13,consts:()=>{let e,o,n,c,l,O,S,u,P,R,M,C,T,d,D,G,L,h,y,r_,s_,a_,c_,l_,O_,g_,d_,S_,p_,F,u_,E_,I_,f_,R_,x_,m_,P_,h_,M_,C_,T_,N_,X_,A_,v_,B,z,b_,U_,D_,G_,L_,y_,F_;return e="Continue",o="Create my free account",n=" Do you already have an account? " + "\ufffd#13\ufffd" + "Log in" + "\ufffd/#13\ufffd" + "",c="e.g. [email protected]",l="Create your free account",O="No credit card needed.",S="or",u="Sign up with email",P="e.g. Melinda",R="e.g. Stone",M="Create a password",C="https://www.onirix.com/legal-notice-and-general-conditions-of-use-the-website/",T="https://www.onirix.com/privacy-policy/",d="https://www.onirix.com/general-conditions-of-contracting/",D="Config your account",G="Name",L="Last name",h="Password",y="I accept the " + "\ufffd#26\ufffd" + "terms of use, " + "[\ufffd/#26\ufffd|\ufffd/#27\ufffd|\ufffd/#28\ufffd]" + "" + "\ufffd#27\ufffd" + " privacy policy" + "[\ufffd/#26\ufffd|\ufffd/#27\ufffd|\ufffd/#28\ufffd]" + " and " + "\ufffd#28\ufffd" + "general conditions of contracting " + "[\ufffd/#26\ufffd|\ufffd/#27\ufffd|\ufffd/#28\ufffd]" + "",y=_.k04(y),r_="You must accept terms ,privacy policy and conditions",s_="I want to join the Newsletter and receive news and updates.",a_="e.g. Melinda",c_="e.g. Stone",l_="https://www.onirix.com/legal-notice-and-general-conditions-of-use-the-website/",O_="https://www.onirix.com/privacy-policy/",g_="https://www.onirix.com/general-conditions-of-contracting/",d_="Complete your account",
1S_="Name",p_="Last name",F="I accept the " + "\ufffd#19\ufffd" + "terms of use, " + "[\ufffd/#19\ufffd|\ufffd/#20\ufffd|\ufffd/#21\ufffd]" + "" + "\ufffd#20\ufffd" + " privacy policy" + "[\ufffd/#19\ufffd|\ufffd/#20\ufffd|\ufffd/#21\ufffd]" + " and " + "\ufffd#21\ufffd" + "general conditions of contracting " + "[\ufffd/#19\ufffd|\ufffd/#20\ufffd|\ufffd/#21\ufffd]" + "",F=_.k04(F),u_="You must accept terms ,privacy policy and conditions",E_="I want to join the Newsletter and receive news and updates.",I_="What type of company or sector do you work in?",f_="Select an option",R_="AR/VR/XR or Creative Studio",x_="Advertising or marketing agency",m_="Industrial and Manufacturing Sector",P_="IT Services, digitalization and consulting",h_="Brands and other sectors",M_="I am freelance",C_="I am a teacher or student",T_=" Please select your company type ",N_="e.g. onirix.com",X_="And finally...",A_="Select",v_="In wich area do you work?",B="Select",z="e.g. to work with AR in my classes",b_="What do you want to use Onirix for?",U_="Your situation",D_="e.g. Youtube",G_="How did you meet us?",L_="Company's website",y_=" \xA0or Linkedin (optional) ",F_="School's website (optional)",[["formStep0",""],["formStep1",""],["formStep1G",""],["formStep2",""],["formStep3",""],["formGroupStep0",""],["formGroupStep1",""],["formGroupStep2",""],["formGroupStep3",""],n,l,O,S,u,D,G,L,h,y,r_,s_,d_,S_,p_,F,u_,E_,I_,f_,R_,x_,m_,P_,h_,M_,C_,T_,X_,v_,b_,U_,G_,L_,y_,F_,[1,"ox-register"],["oxAutoScroll","",1,"ox-left",3,"ngClass"],["src","assets/images/onirix-logo.svg","alt","Onirix Logo",1,"ox-form-container__logo"],[1,"ox-form-container"],[3,"ngTemplateOutlet",4,"ngIf"],["class","full-width","label",e,3,"loading","onClick",4,"ngIf"],["label",o,"class","full-width",3,"disabled","onClick",4,"ngIf"],[1,"ox-register__link"],["routerLink","/login"],[1,"ox-right"],[3,"banner","name",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet"],["label",e,1,"full-width",3,"onClick","loading"],["label",o,1,"full-width",3,"onClick","disabled"],[3,"banner","name"],["id","ox-google-button"],[1,"ox-separator--center"],[1,"ox-separator__text"],[3,"formGroup"],[1,"ox-register__field","ox-form-control"],["for","float-input-email",1,"ox-register__label"],["id","float-input-email","type","email","size","30","name","email","required","","placeholder",c,"formControlName","email",1,"ox-float-input","ox-input-shadow"],["controlName","email"],["type","text","placeholder",P,"formControlName","name",1,"ox-input-shadow"],["controlName","name"],["type","text","placeholder",R,"formControlName","surname",1,"ox-input-shadow"],["controlName","surname"],[1,"ox-form-control__password",3,"ngClass"],["class","ox-form-control__eye",3,"click",4,"ngIf"],["placeholder",M,"formControlName","password",1,"ox-input-shadow",3,"type"],["controlName","password"],[1,"ox-form-control","ox-checks"],["formControlName","terms"],[1,"ox-check__content"],["href",C,"target","_blank"],["href",T,"target","_blank"],["href",d,"target","_blank"],[1,"ox-check-error"],["formControlName","notifications"],[1,"ox-form-control__eye",3,"click"],["type","text","placeholder",a_,"formControlName","name",1,"ox-input-shadow"],["type","text","placeholder",c_,"formControlName","surname",1,"ox-input-shadow"],["href",l_,"target","_blank"],["href",O_,"target","_blank"],["href",g_,"target","_blank"],[3,"formGroup","ngClass"],[1,"ox-form-control"],["name","sector","formControlName","sector",3,"value"],["class","ox-register-error",4,"ngIf"],[1,"ox-register-error"],["class","ox-form-control",4,"ngIf"],["class","ox-register-step3--website",4,"ngIf"],["type","text","placeholder",N_,"formControlName","websiteUrl",1,"ox-input-shadow"],["controlName","websiteUrl"],["formControlName","interest","placeholder",A_,3,"options"],["controlName","interest"],["formControlName","useType","placeholder",B,3,"options",4,"ngIf"],["type","text","class","ox-input-shadow","placeholder",z,"formControlName","useType",4,"ngIf"],["controlName","useType"],["formControlName","useType","placeholder",B,3,"options"],["type","text","placeholder",z,"formControlName","useType",1,"ox-input-shadow"],["type","text","formControlName","situation",1,"ox-input-shadow"],["controlName","situation"],["type","text","placeholder",D_,"formControlName","origin",1,"ox-input-shadow"],["controlName","origin"],[1,"ox-register-step3--website"]]},template:function(o,n){1&o&&(_.j41(0,"div",45)(1,"section",46),_.nrm(2,"img",47),_.j41(3,"div",48),_.DNE(4,Ee,1,1,"ng-container",49)(5,Ie,1,1,"ng-container",49)(6,fe,1,1,"ng-container",49)(7,Re,1,1,"ng-container",49)(8,xe,1,1,"ng-container",49)(9,me,1,1,"ox-button",50)(10,Pe,1,1,"ox-button",51),_.k0s(),_.j41(11,"p",52),_.PLo(12,9),_.nrm(13,"a",53),_.YFu(),_.k0s()(),_.j41(14,"div",54),_.DNE(15,he,1,2,"ox-register-right-explib",55)(16,Me,1,0,"ox-register-right-business",56),_.k0s()(),_.DNE(17,Ce,15,1,"ng-template",null,0,_.C5r)(19,Ne,34,6,"ng-template",null,1,_.C5r)(21,Xe,27,1,"ng-template",null,2,_.C5r)(23,ve,29,12,"ng-template",null,3,_.C5r)(25,ke,13,10,"ng-template",null,4,_.C5r)),2&o&&(_.R7$(),_.Y8G("ngClass",_.l_i(10,pe,n.Step.STEP_2===n.step,n.Step.STEP_3===n.step)),_.R7$(3),_.Y8G("ngIf",n.Step.STEP_0===n.step),_.R7$(),_.Y8G("ngIf",n.Step.STEP_1===n.step),_.R7$(),_.Y8G("ngIf",n.Step.STEP_1G===n.step),_.R7$(),_.Y8G("ngIf",n.Step.STEP_2===n.step),_.R7$(),_.Y8G("ngIf",n.Step.STEP_3===n.step),_.R7$(),_.Y8G("ngIf",n.step!==n.Step.STEP_3),_.R7$(),_.Y8G("ngIf",n.step===n.Step.STEP_3),_.R7$(5),_.Y8G("ngIf",n.explibOid),_.R7$(),_.Y8G("ngIf",!n.explibOid))},dependencies:[ae.T,E.YU,E.bT,E.T3,Q.e,__.A,e_.f,ce.S,le.S,i.qT,i.me,i.BC,i.cb,i.YS,i.j4,i.JD,x.Wk,Oe,Se],styles:['input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], .ox-input{font-family:var(--font-primary);color:var(--color-core-dark01);border:solid 1px var(--color-gray02);border-radius:6px;font-size:1em;background-color:var(--color-core-white);transition:.2s;outline:none}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder, .ox-input::placeholder{font-style:normal;color:var(--color-gray01)}input.ng-touched.ng-invalid[_ngcontent-%COMP%], textarea.ng-touched.ng-invalid[_ngcontent-%COMP%], .ox-input.ng-touched.ng-invalid{border-color:var(--color-warning)}input.ng-touched.ng-valid.ng-dirty[_ngcontent-%COMP%], textarea.ng-touched.ng-valid.ng-dirty[_ngcontent-%COMP%], .ox-input.ng-touched.ng-valid.ng-dirty{border-color:var(--color-tertiary01)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus, .ox-input:focus{border-color:var(--color-tertiary01)}input[_ngcontent-%COMP%]:disabled, textarea[_ngcontent-%COMP%]:disabled, .ox-input:disabled{opacity:.35} .ox-input-shadow:focus{box-shadow:inset 0 0 0 1px var(--color-tertiary01),0 0 0 4px #0155d24d} .ox-input-shadow.ng-touched.ng-invalid:focus{box-shadow:inset 0 0 0 1px var(--color-warning),0 0 0 4px #ff794a26} .ox-input-shadow::placeholder{font-style:italic!important}.ox-input-text-label-outside[_ngcontent-%COMP%]{font-size:12px!important;color:var(--color-core-dark01)!important;left:0!important;font-weight:700!important;top:-1.2em!important;letter-spacing:normal!important;font-family:Open Sans!important;position:absolute!important;margin-top:-.5em!important;transition:.3s ease all!important;-moz-transition:.3s ease all!important;-webkit-transition:.3s ease all!important;line-height:1!important}.ox-input-text-label-inside[_ngcontent-%COMP%]{left:20px!important;font-weight:700!important;padding:0!important;font-size:12px!important;position:absolute!important;pointer-events:none!important;top:50%!important;margin-top:-.5em!important;transition:.3s ease all!important;-moz-transition:.3s ease all!important;-webkit-transition:.3s ease all!important;color:#898989!important;line-height:1!important}ox-checkbox.ng-touched.ng-invalid[_ngcontent-%COMP%] .ox-checkbox__icon{border-color:var(--color-warning)}.ox-form-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]{width:100%;padding-left:12px;padding-right:12px}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:first-of-type{padding-left:0}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:last-of-type{padding-right:0}.ox-form-control[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.ox-form-control[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:var(--font-secondary);font-size:14px;font-weight:700;color:var(--black);margin-bottom:10px;display:flex;justify-content:space-between}.ox-form-control.ox-required[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"Required field";border-left:2px solid var(--color-warning);padding:0 6px;font-weight:400;margin-left:20px}.ox-locale-es[_ngcontent-%COMP%] .ox-form-control.ox-required[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"Campo obligatorio"}.ox-form-control__password[_ngcontent-%COMP%]{position:relative}.ox-form-control__password[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;width:40px;background-image:url(/assets/images/icons/eye-disable.svg);background-position:center;background-repeat:no-repeat}.ox-form-control__password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-right:40px}.ox-form-control__password--hide[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/eye.svg)}.ox-form-control[_ngcontent-%COMP%] textarea, .ox-form-control[_ngcontent-%COMP%] .ox-input, .ox-form-control[_ngcontent-%COMP%] input{padding:16px 20px;border-radius:6px;background-color:var(--color-core-white);width:100%;box-sizing:border-box;font-size:14px}.ox-form-control[_ngcontent-%COMP%] textarea, .ox-form-control[_ngcontent-%COMP%] .ox-input{height:100px}.ox-form-control[_ngcontent-%COMP%] p.ox-error{font-size:10px;color:var(--color-warning);text-align:right;margin:5px 0 0;padding:0;position:absolute;bottom:-17px;right:6px}.ox-error[_ngcontent-%COMP%]{font-size:10px;color:var(--color-warning);text-align:right;margin:5px 0 0;padding:0;position:absolute;bottom:-17px;right:6px}.ox-drop-zone[_ngcontent-%COMP%]{height:170px;width:100%;border-radius:10px;border:dashed 3px var(--color-gray02);margin-bottom:30px;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.ox-drop-zone[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:20px}.ox-drop-zone.dndDragover[_ngcontent-%COMP%] .ox-drop-content[_ngcontent-%COMP%]{display:none}.ox-drop-zone[_ngcontent-%COMP%] .ox-hover[_ngcontent-%COMP%]{position:absolute;inset:-3px;background:#207ce8e6;opacity:1;font-weight:800;font-size:16px;color:var(--color-core-white);display:none;align-items:center;justify-content:center;border-radius:10px}.ox-drop-zone.dndDragover[_ngcontent-%COMP%] .ox-hover[_ngcontent-%COMP%]{display:flex}.ox-drop-zone[_ngcontent-%COMP%] .ox-g-error-message[_ngcontent-%COMP%]{bottom:0;right:10px;top:unset}.ox-drop-content.ox-remove-image[_ngcontent-%COMP%]{background-color:#4a90e2cc;display:none;width:100%;height:100%;flex-direction:column;justify-content:center;align-content:center;align-items:center;color:var(--color-core-white);font-weight:700;padding:0;border-radius:10px}.ox-drop-content.ox-remove-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-core-white);padding:20px;text-align:center;max-width:320px;box-sizing:border-box}.ox-drop-zone[_ngcontent-%COMP%]:hover .ox-drop-content.ox-remove-image[_ngcontent-%COMP%]{display:flex}.ox-drop-zone[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}.ox-errors[_ngcontent-%COMP%]{color:var(--color-warning);font-size:12px;text-align:right}.ox-errors[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:5px}.ox-register[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.ox-register[_ngcontent-%COMP%] #ox-google-button[_ngcontent-%COMP%]{width:100%;height:40px}.ox-register[_ngcontent-%COMP%] #ox-google-button[_ngcontent-%COMP%] > div{display:flex;justify-content:center}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%]{background-color:var(--color-core-white);padding:60px;width:320px;height:calc(100vh - 120px);
1display:flex;flex-direction:column;justify-content:space-between;align-items:center;overflow:visible}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{align-self:flex-start}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-register__link[_ngcontent-%COMP%]{margin:40px 0 0;font-size:12px;line-height:1.5}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%]{width:100%}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:22px;font-weight:700;margin:0 0 10px}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:400;margin:0 0 20px}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] .ox-separator--center[_ngcontent-%COMP%]{margin-top:20px}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] .ox-separator--center[_ngcontent-%COMP%] .ox-separator__text[_ngcontent-%COMP%]{font-size:18px}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] .ox-register__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;margin-top:20px;margin-bottom:20px;text-align:left}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] .ox-register__field[_ngcontent-%COMP%] .ox-register__label[_ngcontent-%COMP%]{font-size:12px;font-weight:700;margin-bottom:10px}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] .ox-register__field[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{cursor:pointer}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%] .ox-checks[_ngcontent-%COMP%]{margin-top:20px}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:20px!important}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin-bottom:30px}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]{margin-bottom:0}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;line-height:1.5}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] form[_ngcontent-%COMP%] ox-radio .ox-radio__label span{font-size:14px;line-height:1.43}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] .ox-register__company[_ngcontent-%COMP%]{display:flex;flex-direction:column}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] .ox-register__size[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] .ox-register__size[_ngcontent-%COMP%] .ox-company__size[_ngcontent-%COMP%]{width:46px;cursor:pointer;border-radius:10px;background-color:var(--color-gray03);font-size:12px;color:var(--color-core-dark01);text-align:center;padding:8px 5px}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--2[_ngcontent-%COMP%] .ox-register__size[_ngcontent-%COMP%] .ox-company__size.ox-company__size--selected[_ngcontent-%COMP%]{background-color:var(--color-tertiary01);font-size:12px;color:var(--color-core-white)}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--3[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:20px!important}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--3[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:last-child{margin-bottom:30px}.ox-register[_ngcontent-%COMP%] .ox-left.ox-left--3[_ngcontent-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;line-height:1.5}.ox-register[_ngcontent-%COMP%] .ox-right[_ngcontent-%COMP%]{width:calc(100% - 440px);height:100vh;background:var(--color-secondary) url(/assets/images/ox-waves-register.svg) no-repeat;background-size:100% 100%;display:flex}.ox-form-container__logo[_ngcontent-%COMP%]{height:50px;margin-bottom:30px}span[_ngcontent-%COMP%]{font-size:12px}a[_ngcontent-%COMP%]{font-size:12px;color:var(--color-red-pink);text-decoration:none}ox-checkbox[_ngcontent-%COMP%] .ox-checkbox{margin-bottom:15px}ox-checkbox[_ngcontent-%COMP%] .ox-checkbox .ox-checkbox__icon{min-width:24px;min-height:24px}ox-checkbox[_ngcontent-%COMP%] .ox-checkbox .ox-checkbox__icon:not(:only-child){margin-right:10px}ox-checkbox[_ngcontent-%COMP%] .ox-checkbox .ox-checkbox__icon svg{transform:translate(6px,6px) scale(1.3)}ox-radio[_ngcontent-%COMP%] .ox-radio{display:flex;margin-bottom:10px;color:var(--color-core-dark01)}ox-radio[_ngcontent-%COMP%] .ox-radio .ox-radio__icon{min-width:24px;min-height:24px;border-radius:12px}ox-radio[_ngcontent-%COMP%] .ox-radio .ox-radio__icon:not(:only-child){margin-right:10px}ox-radio[_ngcontent-%COMP%] .ox-radio .ox-radio__icon svg{transform:translate(6px,6px) scale(.9)}ox-radio[_ngcontent-%COMP%] + div.ox-form-control[_ngcontent-%COMP%]{margin-top:20px}.ox-check__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.ox-check-error[_ngcontent-%COMP%]{display:none;color:var(--color-warning);font-size:12px}ox-checkbox.ng-touched.ng-invalid[_ngcontent-%COMP%] .ox-checkbox .ox-check-error{display:inline}.ox-register[_ngcontent-%COMP%] p.ox-register-error[_ngcontent-%COMP%]{margin-top:3px;right:0;color:var(--color-warning);font-size:12px;font-weight:400}ox-button[_ngcontent-%COMP%] button.loading{background-image:linear-gradient(-90deg,#f6414b 0%,var(--color-selected) 100%)}@media only screen and (max-width: 799px){.ox-register[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.ox-register[_ngcontent-%COMP%] .ox-right[_ngcontent-%COMP%]{display:none}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%]{min-width:221px;padding:20px 30px 30px;align-items:center;justify-content:center}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-container[_ngcontent-%COMP%]{align-items:center;justify-content:center}.ox-register[_ngcontent-%COMP%] .ox-left[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:16px}}.ox-register-step3--website[_ngcontent-%COMP%]{justify-content:flex-start!important}']})}}return t})();var Be=a(95430),ze=a(92564),o_=a(18144),Ke=a(32931),je=a(92592),n_=a(27057),We=a(77414);const He=t=>({"ox-phone-validation--hide-footer":t}),i_=t=>({"ox-disabled":t}),Ye=t=>({"ox-wait":t});function qe(t,s){1&t&&(_.j41(0,"div",21)(1,"h1"),_.pXf(2,3),_.k0s(),_.j41(3,"p"),_.pXf(4,4),_.k0s()())}function Je(t,s){if(1&t&&(_.j41(0,"div",21)(1,"h1"),_.pXf(2,5),_.k0s(),_.j41(3,"p"),_.PLo(4,6),_.nrm(5,"br")(6,"span")(7,"span"),_.YFu(),_.k0s()()),2&t){const e=_.XpG(2);_.R7$(7),_.uP7("+"+e.callingCode)(e.phoneNumberForm.controls.phoneNumber.value),_.nnv(4)}}function Ze(t,s){if(1&t){const e=_.RV6();_.j41(0,"form",22,2)(2,"div",23)(3,"label",24),_.pXf(4,7),_.k0s(),_.nrm(5,"ox-dropdown",25)(6,"ox-control-error",26),_.k0s(),_.j41(7,"div",23)(8,"label",27),_.pXf(9,8),_.k0s(),_.j41(10,"input",28),_.bIt("ngModelChange",function(){_.eBV(e);const n=_.XpG(2);return _.Njj(n.changeFormNumber())}),_.k0s(),_.nrm(11,"ox-control-error",29),_.k0s(),_.j41(12,"ox-button",30),_.bIt("onClick",function(){_.eBV(e);const n=_.XpG(2);return _.Njj(n.validatePhoneNumber())}),_.k0s()()}if(2&t){const e=_.XpG(2);_.Y8G("formGroup",e.phoneNumberForm.formGroup),_.R7$(5),_.Y8G("options",e.countries),_.R7$(7),_.Y8G("disabled",!(e.ph
1oneNumberForm.formGroup.controls.countryCode.valid&&e.phoneNumberForm.formGroup.controls.phoneNumber.valid||e.resendTimeout))}}function Qe(t,s){if(1&t){const e=_.RV6();_.j41(0,"form",31,2)(2,"div",23)(3,"label",32),_.pXf(4,9),_.k0s(),_.nrm(5,"input",33)(6,"ox-control-error",34),_.k0s(),_.j41(7,"ox-button",35),_.bIt("onClick",function(){_.eBV(e);const n=_.XpG(2);return _.Njj(n.verifyCode())}),_.k0s()()}if(2&t){const e=_.XpG(2);_.Y8G("formGroup",e.phoneNumberForm.formGroup),_.R7$(5),_.Y8G("ngClass",_.eq3(4,i_,e.isVerifyClicked)),_.R7$(2),_.Y8G("disabled",!e.phoneNumberForm.formGroup.valid||e.isVerifyClicked)("loading",e.isVerifyClicked)}}function _t(t,s){if(1&t&&(_.j41(0,"div",40)(1,"span"),_.pXf(2,12),_.k0s()()),2&t){const e=_.XpG(3);_.R7$(2),_.uP7(e.resendAvailable),_.nnv(2)}}function et(t,s){if(1&t){const e=_.RV6();_.j41(0,"footer",36)(1,"p"),_.PLo(2,10),_.j41(3,"a",37),_.bIt("click",function(){_.eBV(e);const n=_.XpG(2);return _.Njj(n.sendAgainHandler())}),_.k0s(),_.YFu(),_.k0s(),_.DNE(4,_t,3,1,"div",38),_.j41(5,"p"),_.PLo(6,11),_.j41(7,"a",39),_.bIt("click",function(){_.eBV(e);const n=_.XpG(2);return _.Njj(n.goBack())}),_.k0s(),_.YFu(),_.k0s()()}if(2&t){const e=_.XpG(2);_.Y8G("ngClass",_.eq3(3,i_,e.isVerifyClicked)),_.R7$(3),_.Y8G("ngClass",_.eq3(5,Ye,null!=e.resendTimeout)),_.R7$(),_.Y8G("ngIf",e.resendTimeout)}}function tt(t,s){if(1&t&&(_.j41(0,"section",14)(1,"header")(2,"div",15),_.nrm(3,"img",16),_.k0s(),_.DNE(4,qe,5,0,"div",17)(5,Je,8,2,"ng-template",null,0,_.C5r),_.k0s(),_.j41(7,"div",18),_.DNE(8,Ze,13,3,"form",19)(9,Qe,8,6,"ng-template",null,1,_.C5r),_.k0s(),_.DNE(11,et,8,7,"footer",20),_.k0s()),2&t){const e=_.sdS(6),o=_.sdS(10),n=_.XpG();_.Y8G("ngClass",_.eq3(6,He,!n.wasSended)),_.R7$(4),_.Y8G("ngIf",!n.wasSended)("ngIfElse",e),_.R7$(4),_.Y8G("ngIf",!n.wasSended)("ngIfElse",o),_.R7$(3),_.Y8G("ngIf",n.wasSended)}}let ot=(()=>{class t extends o_.v{constructor(e,o,n,c,l){super(),this.userService=e,this.messagesManager=o,this.countryService=n,this.statusManager=c,this.router=l,this.validated=new _.bkB,this.resendAvailable=null,this.resendTimeout=null,this.wasSended=!1,this.phoneNumberForm={formGroup:null,controls:{countryCode:new i.MJ("",[i.k0.required]),phoneNumber:new i.MJ("",[i.k0.required,(0,n_.V)({allowPrefix:!1})]),verificationCode:new i.MJ("")}},this.isVerifyClicked=!1,this.startForm(),this.loadCountries(),this.subscribeTo(this.userService.getProfileInfo().subscribe(O=>{this.phoneNumberForm.controls.countryCode.setValue(this.countries.find(S=>S.value===O.countryCode)?.value.toString())}))}changeFormNumber(){this.phoneNumberForm.controls.phoneNumber.touched||this.phoneNumberForm.controls.phoneNumber.markAsTouched()}ngOnDestroy(){this.onDestroy()}startForm(){this.phoneNumberForm.formGroup=new i.gE({countryCode:this.phoneNumberForm.controls.countryCode,phoneNumber:this.phoneNumberForm.controls.phoneNumber,verificationCode:this.phoneNumberForm.controls.verificationCode})}sendAgainHandler(){var e=this;return(0,I.A)(function*(){if(!e.resendTimeout)try{yield(0,m.s)(e.userService.validatePhoneNumber(e.getCallingCode(),e.phoneNumberForm.controls.phoneNumber.value.replace(/[\s+()-.]/g,""))),e.messagesManager.notify({severity:"success",summary:"A new validation SMS has been sent"})}catch(o){console.error(o),e.messagesManager.notifyStudioError(o)}finally{e.resendAvailable=60,e.resendTimeout=setInterval(()=>{e.resendAvailable-=1,e.resendAvailable<=0&&(clearInterval(e.resendTimeout),e.resendTimeout=null)},1e3)}})()}close(){this.show=!1,this.onDestroy()}validatePhoneNumber(){this.phoneNumberForm.controls.countryCode.valid&&this.phoneNumberForm.controls.phoneNumber.valid&&this.userService.validatePhoneNumber(this.getCallingCode(),this.phoneNumberForm.controls.phoneNumber.value.replace(/[ +()-.]/g,"")).subscribe({next:e=>{this.phoneNumberForm.controls.verificationCode.setValue(null),this.phoneNumberForm.controls.verificationCode.setValidators(i.k0.required),this.wasSended=!0},error:e=>{this.messagesManager.notifyStudioError(e)}})}verifyCode(){this.phoneNumberForm.controls.verificationCode.valid&&!this.isVerifyClicked&&(this.isVerifyClicked=!0,this.userService.validateCode(this.phoneNumberForm.controls.verificationCode.value).subscribe({next:e=>{(0,m.s)(this.userService.getCurrentStatus(!1,!0)).then(),this.validated.emit(),this.isVerifyClicked=!1,this.close()},error:e=>{this.messagesManager.notifyStudioError(e),this.isVerifyClicked=!1,this.phoneNumberForm.controls.verificationCode.setErrors({invalid:!0})}}))}goBack(){this.phoneNumberForm.controls.phoneNumber=new i.MJ("",[i.k0.required,(0,n_.V)({allowPrefix:!1})]),this.startForm(),this.wasSended=!1}loadCountries(){var e=this;return(0,I.A)(function*(){try{const o=yield(0,m.s)(e.countryService.getCountries());null!=o&&(e.countries=o.filter(n=>n.callingCode.length>0).map(n=>({label:`${e.getFlagEmoji(n.iso)} ${n.name}`,callingCode:n.callingCode[0],value:n.iso})))}catch(o){e.messagesManager.notifyStudioError(o)}})()}getCallingCode(){return this.callingCode=this.countries.find(e=>e.value===this.phoneNumberForm.controls.countryCode.value).callingCode,this.callingCode}getFlagEmoji(e){return e.toUpperCase().replace(/./g,o=>
1String.fromCodePoint(127397+o.charCodeAt(0)))}static{this.\u0275fac=function(o){return new(o||t)(_.rXU(b.D),_.rXU(w.q),_.rXU(We.o),_.rXU(k.ON),_.rXU(x.Ix))}}static{this.\u0275cmp=_.VBU({type:t,selectors:[["ox-phone-validation"]],inputs:{show:"show"},outputs:{validated:"validated"},features:[_.Vt3],decls:1,vars:1,consts:()=>{let e,o,n,c,l,O,S,u,P,R,M,C,T;return e="Verify your account",o=" Please enter a mobile number to associate it with your account. We'll send a verification code to your mobile phone for identity confirmation. This verification is a one-time process and won't be requested again in the future. ",n="Please, verify your mobile number",c=" We sent a verification code to:" + "\ufffd#5\ufffd\ufffd/#5\ufffd" + "" + "[\ufffd#6\ufffd|\ufffd#7\ufffd]" + "" + "\ufffd0\ufffd" + " " + "[\ufffd/#6\ufffd|\ufffd/#7\ufffd]" + "" + "[\ufffd#6\ufffd|\ufffd#7\ufffd]" + "" + "\ufffd1\ufffd" + "" + "[\ufffd/#6\ufffd|\ufffd/#7\ufffd]" + "",c=_.k04(c),l="Select a country",O="Send code",S="Country",u="Mobile number",P="Verify",R="Verification code",M=" Haven't received the validation SMS? " + "\ufffd#3\ufffd" + "Send Again" + "\ufffd/#3\ufffd" + "",C=" Is this not your phone number? " + "\ufffd#7\ufffd" + "Click here" + "\ufffd/#7\ufffd" + "",T="New send available in " + "\ufffd0\ufffd" + "s",[["stepTwo",""],["verificate",""],["formGroup",""],e,o,n,c,S,u,R,M,C,T,["class","ox-phone-validation ox-phone-validation--sms",3,"ngClass",4,"ngIf"],[1,"ox-phone-validation","ox-phone-validation--sms",3,"ngClass"],[1,"ox-phone-validation__head-img"],["src","assets/images/whale-phone.svg","draggable","false"],["class","ox-phone-validation__header",4,"ngIf","ngIfElse"],[1,"ox-phone-validation__content"],["class","ox-sms-container",3,"formGroup",4,"ngIf","ngIfElse"],["class","ox-phone-validation__footer",3,"ngClass",4,"ngIf"],[1,"ox-phone-validation__header"],[1,"ox-sms-container",3,"formGroup"],[1,"ox-form-control"],["for","cc"],["id","cc","filter","true","placeholder",l,"formControlName","countryCode","search","true",3,"options"],["controlName","countryCode"],["for","number"],["id","number","type","string","formControlName","phoneNumber",3,"ngModelChange"],["controlName","phoneNumber"],["label",O,3,"onClick","disabled"],[1,"ox-sms-container","ox-sms-container--sended",3,"formGroup"],["for","code"],["id","code","type","string","formControlName","verificationCode",3,"ngClass"],["controlName","verificationCode"],["label",P,3,"onClick","disabled","loading"],[1,"ox-phone-validation__footer",3,"ngClass"],[3,"click","ngClass"],["class","ox-resend",4,"ngIf"],[3,"click"],[1,"ox-resend"]]},template:function(o,n){1&o&&_.DNE(0,tt,12,8,"section",13),2&o&&_.Y8G("ngIf",n.show)},dependencies:[E.YU,E.bT,Q.e,__.A,e_.f,i.qT,i.me,i.BC,i.cb,i.j4,i.JD],styles:['input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], .ox-input{font-family:var(--font-primary);color:var(--color-core-dark01);border:solid 1px var(--color-gray02);border-radius:6px;font-size:1em;background-color:var(--color-core-white);transition:.2s;outline:none}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder, .ox-input::placeholder{font-style:normal;color:var(--color-gray01)}input.ng-touched.ng-invalid[_ngcontent-%COMP%], textarea.ng-touched.ng-invalid[_ngcontent-%COMP%], .ox-input.ng-touched.ng-invalid{border-color:var(--color-warning)}input.ng-touched.ng-valid.ng-dirty[_ngcontent-%COMP%], textarea.ng-touched.ng-valid.ng-dirty[_ngcontent-%COMP%], .ox-input.ng-touched.ng-valid.ng-dirty{border-color:var(--color-tertiary01)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus, .ox-input:focus{border-color:var(--color-tertiary01)}input[_ngcontent-%COMP%]:disabled, textarea[_ngcontent-%COMP%]:disabled, .ox-input:disabled{opacity:.35} .ox-input-shadow:focus{box-shadow:inset 0 0 0 1px var(--color-tertiary01),0 0 0 4px #0155d24d} .ox-input-shadow.ng-touched.ng-invalid:focus{box-shadow:inset 0 0 0 1px var(--color-warning),0 0 0 4px #ff794a26} .ox-input-shadow::placeholder{font-style:italic!important}.ox-input-text-label-outside[_ngcontent-%COMP%]{font-size:12px!important;color:var(--color-core-dark01)!important;left:0!important;font-weight:700!important;top:-1.2em!important;letter-spacing:normal!important;font-family:Open Sans!important;position:absolute!important;margin-top:-.5em!important;transition:.3s ease all!important;-moz-transition:.3s ease all!important;-webkit-transition:.3s ease all!important;line-height:1!important}.ox-input-text-label-inside[_ngcontent-%COMP%]{left:20px!important;font-weight:700!important;padding:0!important;font-size:12px!important;position:absolute!important;pointer-events:none!important;top:50%!important;margin-top:-.5em!important;transition:.3s ease all!important;-moz-transition:.3s ease all!important;-webkit-transition:.3s ease all!important;color:#898989!important;line-height:1!important}ox-checkbox.ng-touched.ng-invalid[_ngcontent-%COMP%] .ox-checkbox__icon{border-color:var(--color-warning)}.ox-form-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]{width:100%;padding-left:12px;padding-right:12px}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:first-of-type{padding-left:0}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:last-of-type{padding-right:0}.ox-form-control[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.ox-form-control[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:var(--font-secondary);font-size:14px;font-weight:700;color:var(--black);margin-bottom:10px;display:flex;justify-content:space-between}.ox-form-control.ox-required[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"Required field";border-left:2px solid var(--color-warning);padding:0 6px;font-weight:400;margin-left:20px}.ox-locale-es[_ngcontent-%COMP%] .ox-form-control.ox-required[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"Campo obligatorio"}.ox-form-control__password[_ngcontent-%COMP%]{position:relative}.ox-form-control__password[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;width:40px;background-image:url(/assets/images/icons/eye-disable.svg);background-position:center;background-repeat:no-repeat}.ox-form-control__password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-right:40px}.ox-form-control__password--hide[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/eye.svg)}.ox-form-control[_ngcontent-%COMP%] textarea, .ox-form-control[_ngcontent-%COMP%] .ox-input, .ox-form-control[_ngcontent-%COMP%] input{padding:16px 20px;border-radius:6px;background-color:var(--color-core-white);width:100%;box-sizing:border-box;font-size:14px}.ox-form-control[_ngcontent-%COMP%] textarea, .ox-form-control[_ngcontent-%COMP%] .ox-input{height:100px}.ox-form-control[_ngcontent-%COMP%] p.ox-error{font-size:10px;color:var(--color-warning);text-align:right;margin:5px 0 0;padding:0;position:absolute;bottom:-17px;right:6px}.ox-error[_ngcontent-%COMP%]{font-size:10px;color:var(--color-warning);text-align:right;margin:5px 0 0;padding:0;position:absolute;bottom:-17px;right:6px}.ox-drop-zone[_ngcontent-%COMP%]{height:170px;width:100%;border-radius:10px;border:dashed 3px var(--color-gray02);margin-bottom:30px;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.ox-drop-zone[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:20px}.ox-drop-zone.dndDragover[_ngcontent-%COMP%] .ox-drop-content[_ngcontent-%COMP%]{display:none}.ox-drop-zone[_ngcontent-%COMP%] .ox-hover[_ngcontent-%COMP%]{position:absolute;inset:-3px;background:#207ce8e6;opacity:1;font-weight:800;font-size:16px;color:var(--color-core-white);display:none;align-items:center;justify-content:center;border-radius:10px}.ox-drop-zone.dndDragover[_ngcontent-%COMP%] .ox-hover[_ngcontent-%COMP%]{display:flex}.ox-drop-zone[_ngcontent-%COMP%] .ox-g-error-message[_ngcontent-%COMP%]{bottom:0;right:10px;top:unset}.ox-drop-content.ox-remove-image[_ngcontent-%COMP%]{background-color:#4a90e2cc;display:none;width:100%;height:100%;flex-direction:column;justify-content:center;align-content:center;align-items:center;color:var(--color-core-white);font-weight:700;padding:0;border-radius:10px}.ox-drop-content.ox-remove-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-core-white);padding:20px;text-align:center;max-width:320px;box-sizing:border-box}.ox-drop-zone[_ngcontent-%COMP%]:hover .ox-drop-content.ox-remove-image[_ngcontent-%COMP%]{display:flex}.ox-drop-zone[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}.ox-errors[_ngcontent-%COMP%]{color:var(--color-warning);font-size:12px;text-align:right}.ox-errors[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:5px}.ox-phone-validation[_ngcontent-%COMP%]{width:500px;padding:0;box-shadow:0 2px 5px #0000000a;background-color:var(--color-core-white);border-radius:11px}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{text-align:center;font-size:16px;margin-bottom:30px}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:var(--font-secondary);font-size:24px;font-weight:700;margin:0 0 10px;padding:0}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 10px}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .ox-phone-validation__head-img[_ngcontent-%COMP%]{border-radius:10px 10px 0 0;background-color:var(--color-tertiary01);height:200px;overflow:hidden}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .ox-phone-validation__header[_ngcontent-%COMP%]{padding:40px 40px 0;text-align:left}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .ox-phone-validation__header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.ox-phone-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .ox-phone-validation__header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%]{padding:0 40px;flex-direction:row;align-items:flex-start}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-evenly;flex-wrap:wrap}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]:not(.ox-sms-container--sended){padding-bottom:40px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]:not(.ox-sms-container--sended) .ox-form-control[_ngcontent-%COMP%]:first-of-type{width:calc(35% - 10px
1)}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]:not(.ox-sms-container--sended) .ox-form-control[_ngcontent-%COMP%]:last-of-type{width:65%;margin-left:10px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]:not(.ox-sms-container--sended) ox-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form.ox-sms-container--sended[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]{width:100%}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] ox-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:320px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] ox-button button.loading{padding-left:30px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;margin:0}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] p.ox-sms[_ngcontent-%COMP%]{font-weight:700;color:var(--color-tertiary01)}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__footer[_ngcontent-%COMP%]{flex-direction:column;align-items:center;justify-content:center;margin-top:20px;padding:0 40px 40px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 10px;font-size:12px;font-weight:400;text-align:center;color:var(--color-core-dark01)}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-red-pink)}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a.ox-wait[_ngcontent-%COMP%]{pointer-events:none;cursor:default;color:var(--color-core-dark01)}.ox-phone-validation--second[_ngcontent-%COMP%] .ox-phone-validation__footer[_ngcontent-%COMP%]{display:flex!important}.ox-resend[_ngcontent-%COMP%]{padding:0 40px;height:30px;margin-bottom:10px;border-radius:10px;background-color:var(--color-core-white);display:flex;justify-content:center;align-items:center;font-size:11px;font-style:italic;color:var(--color-core-dark01)}.ox-resend[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/icon-timer.png);background-repeat:no-repeat;background-position:center left;background-size:18px 18px;padding-left:23px}.ox-context-menu[_ngcontent-%COMP%]{min-width:100%}.ox-phone-validation--hide-footer[_ngcontent-%COMP%] .ox-phone-validation__footer[_ngcontent-%COMP%]{display:none!important}@media (max-width: 799px){.ox-phone-validation[_ngcontent-%COMP%]{width:calc(100% - 30px);margin:0;height:calc(100% - 24px)}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%]{padding:0 20px}.ox-phone-validation[_ngcontent-%COMP%] .ox-phone-validation__content[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{font-size:16px}}']})}}return t})();const nt=t=>({"ox-wait":t});function it(t,s){if(1&t&&(_.j41(0,"div",13)(1,"span"),_.pXf(2,4),_.k0s()()),2&t){const e=_.XpG(2);_.R7$(2),_.uP7(e.resendAvailable),_.nnv(2)}}function rt(t,s){if(1&t){const e=_.RV6();_.j41(0,"section",6)(1,"header",7)(2,"h1"),_.pXf(3,0),_.k0s(),_.j41(4,"p"),_.pXf(5,1),_.k0s()(),_.j41(6,"div",8)(7,"p"),_.pXf(8,2),_.k0s(),_.j41(9,"p",9),_.EFF(10),_.k0s()(),_.j41(11,"footer",10)(12,"p"),_.PLo(13,3),_.j41(14,"a",11),_.bIt("click",function(){_.eBV(e);const n=_.XpG();return _.Njj(n.sendAgainHandler())}),_.k0s(),_.YFu(),_.k0s(),_.DNE(15,it,3,1,"div",12),_.k0s()()}if(2&t){const e=_.XpG();_.R7$(10),_.JRh(e.email),_.R7$(4),_.Y8G("ngClass",_.eq3(3,nt,null!=e.resendTimeout)),_.R7$(),_.Y8G("ngIf",e.resendTimeout)}}let st=(()=>{class t{constructor(e,o){this.userService=e,this.messagesManager=o,this.resendAvailable=null,this.resendTimeout=null}sendAgainHandler(){var e=this;return(0,I.A)(function*(){if(!e.resendTimeout)try{yield(0,m.s)(e.userService.resendValidationMail()),e.messagesManager.notify({severity:"success",summary:"A new validation code was sent to your inbox"}),e.resendAvailable=60,e.resendTimeout=setInterval(()=>{e.resendAvailable--,e.resendAvailable<=0&&(clearInterval(e.resendTimeout),e.resendTimeout=null)},1e3)}catch(o){console.error(o),e.messagesManager.notifyStudioError(o)}})()}close(){this.show=!1}static{this.\u0275fac=function(o){return new(o||t)(_.rXU(b.D),_.rXU(w.q))}}static{this.\u0275cmp=_.VBU({type:t,selectors:[["ox-email-validation"]],inputs:{show:"show",email:"email"},decls:1,vars:1,consts:()=>{let e,o,n,c,l;return e="Check your email",o="Follow the verification link that has been sent to your email to verify your account and access to Onirix.",n="Verification link sent to",c="Haven't received the validation email? " + "\ufffd#14\ufffd" + "Send Again" + "\ufffd/#14\ufffd" + "",l="New send available in " + "\ufffd0\ufffd" + "s",[e,o,n,c,l,["class","ox-email-validation",4,"ngIf"],[1,"ox-email-validation"],[1,"ox-email-validation__header"],[1,"ox-email-validation__container"],[1,"ox-mail"],[1,"ox-email-validation__footer"],[3,"click","ngClass"],["class","ox-resend",4,"ngIf"],[1,"ox-resend"]]},template:function(o,n){1&o&&_.DNE(0,rt,16,5,"section",5),2&o&&_.Y8G("ngIf",n.show)},dependencies:[E.YU,E.bT],styles:['input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], .ox-input{font-family:var(--font-primary);color:var(--color-core-dark01);border:solid 1px var(--color-gray02);border-radius:6px;font-size:1em;background-color:var(--color-core-white);transition:.2s;outline:none}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder, .ox-input::placeholder{font-style:normal;color:var(--color-gray01)}input.ng-touched.ng-invalid[_ngcontent-%COMP%], textarea.ng-touched.ng-invalid[_ngcontent-%COMP%], .ox-input.ng-touched.ng-invalid{border-color:var(--color-warning)}input.ng-touched.ng-valid.ng-dirty[_ngcontent-%COMP%], textarea.ng-touched.ng-valid.ng-dirty[_ngcontent-%COMP%], .ox-input.ng-touched.ng-valid.ng-dirty{border-color:var(--color-tertiary01)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus, .ox-input:focus{border-color:var(--color-tertiary01)}input[_ngcontent-%COMP%]:disabled, textarea[_ngcontent-%COMP%]:disabled, .ox-input:disabled{opacity:.35} .ox-input-shadow:focus{box-shadow:inset 0 0 0 1px var(--color-tertiary01),0 0 0 4px #0155d24d} .ox-input-shadow.ng-touched.ng-invalid:focus{box-shadow:inset 0 0 0 1px var(--color-warning),0 0 0 4px #ff794a26} .ox-input-shadow::placeholder{font-style:italic!important}.ox-input-text-label-outside[_ngcontent-%COMP%]{font-size:12px!important;color:var(--color-core-dark01)!important;left:0!important;font-weight:700!important;top:-1.2em!important;letter-spacing:normal!important;font-family:Open Sans!important;position:absolute!important;margin-top:-.5em!important;transition:.3s ease all!important;-moz-transition:.3s ease all!important;-webkit-transition:.3s ease all!important;line-height:1!important}.ox-input-text-label-inside[_ngcontent-%COMP%]{left:20px!important;font-weight:700!important;padding:0!important;font-size:12px!important;position:absolute!important;pointer-events:none!important;top:50%!important;margin-top:-.5em!important;transition:.3s ease all!important;-moz-transition:.3s ease all!important;-webkit-transition:.3s ease all!important;color:#898989!important;line-height:1!important}ox-checkbox.ng-touched.ng-invalid[_ngcontent-%COMP%] .ox-checkbox__icon{border-color:var(--color-warning)}.ox-form-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]{width:100%;padding-left:12px;padding-right:12px}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:first-of-type{padding-left:0}.ox-form-group[_ngcontent-%COMP%] .ox-form-control[_ngcontent-%COMP%]:last-of-type{padding-right:0}.ox-form-control[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.ox-form-control[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:var(--font-secondary);font-size:14px;font-weight:700;color:var(--black);margin-bottom:10px;display:flex;justify-content:space-between}.ox-form-control.ox-required[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"Required field";border-left:2px solid var(--color-warning);padding:0 6px;font-weight:400;margin-left:20px}.ox-locale-es[_ngcontent-%COMP%] .ox-form-control.ox-required[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"Campo obligatorio"}.ox-form-control__password[_ngcontent-%COMP%]{position:relative}.ox-form-control__password[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;width:40px;background-image:url(/assets/images/icons/eye-disable.svg);background-position:center;background-repeat:no-repeat}.ox-form-control__password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-right:40px}.ox-form-control__password--hide[_ngcontent-%COMP%] .ox-form-control__eye[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/eye.svg)}.ox-form-control[_ngcontent-%COMP%] textarea, .ox-form-control[_ngcontent-%COMP%] .ox-input, .ox-form-control[_ngcontent-%COMP%] input{padding:16px 20px;border-radius:6px;background-color:var(--color-core-white);width:100%;box-sizing:border-box;font-size:14px}.ox-form-control[_ngcontent-%COMP%] textarea, .ox-form-control[_ngcontent-%COMP%] .ox-input{height:100px}.ox-form-control[_ngcontent-%COMP%] p.ox-error{font-size:10px;color:var(--color-warning);text-align:right;margin:5px 0 0;padding:0;position:absolute;bottom:-17px;right:6px}.ox-error[_ngcontent-%COMP%]{font-size:10px;color:var(--color-warning);text-align:right;margin:5px 0 0;padding:0;position:absolute;bottom:-17px;right:6px}.ox-drop-zone[_ngcontent-%COMP%]{height:170px;width:100%;border-radius:10px;border:dashed 3px var(--color-gray02);margin-bottom:30px;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.ox-drop-zone[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:20px}.ox-drop-zone.dndDragover[_ngcontent-%COMP%] .ox-drop-content[_ngcontent-%COMP%]{display:none}.ox-drop-zone[_ngcontent-%COMP%] .ox-hover[_ngcontent-%COMP%]{position:absolute;inset:-3px;background:#207ce8e6;opacity:1;font-weight:800;font-size:16px;color:var(--color-core-white);display:none;align-items:center;justify-content:center;border-radius:10px}.ox-drop-zone.dndDragover[_ngcontent-%COMP%] .ox-hover[_ngcontent-%COMP%]{display:flex}.ox-drop-zone[_ngcontent-%COMP%] .ox-g-error-message[_ngcontent-%COMP%]{bottom:0;right:10px;top:unset}.ox-drop-content.ox-remove-image[_ngcontent-%COMP%]{background-color:#4a90e2cc;display:none;width:100%;height:100%;flex-direction:column;justify-content:center;align-content:center;align-items:center;color:var(--color-core-white);font-weight:700;padding:0;border-radius:10px}.ox-drop-content.ox-remove-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-core-white);padding:20px;text-align:center;max-width:320px;box-sizing:border-box}.ox-drop-zone[_ngcontent-%COMP%]:hover .ox-drop-content.ox-remove-image[_ngcontent-%COMP%]{display:flex}.ox-drop-zone[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}.ox-errors[_ngcontent-%COMP%]{color:var(--color-warning);font-size:12px;text-align:right}.ox-errors[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:5px}.ox-email-validation[_ngcontent-%COMP%]{box-shadow:0 2px 5px #0000000a;background-color:var(--color-core-white);border-radius:10px;padding:40px;width:420px;font-size:14px}.ox-email-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{text-align:center;font-size:16px;margin-bottom:30px}.ox-email-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:var(--font-secondary);font-size:24px;font-weight:700;margin:0 0 10px;padding:0}.ox-email-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 10px}.ox-email-validation[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600}.ox-email-validation__container[_ngcontent-%COMP%]{padding:20px;width:calc(100% - 40px);border-radius:5px;background-color:#eff6ff;text-align:center}.ox-email-validation__container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;margin:0}.ox-email-validation__container[_ngcontent-%COMP%] p.ox-mail[_ngcontent-%COMP%]{font-weight:700;color:var(--color-tertiary01)}.ox-email-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;text-align:center;color:var(--color-core-dark01)}.ox-email-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-red-pink)}.ox-email-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a.ox-wait[_ngcontent-%COMP%]{pointer-events:none;cursor:default;color:var(--color-core-dark01)}.ox-resend[_ngcontent-%COMP%]{position:absolute;bottom:-93px;width:500px;padding:0 40px;height:46px;border-radius:10px;background-color:var(--color-core-white);display:flex;justify-content:center;align-items:center;font-size:12px;font-style:italic;color:var(--color-core-dark01)}.ox-resend[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/icon-timer.png);background-repeat:no-repeat;background-position:center left;background-size:18px 18px;padding-left:23px}.ox-user-validation--phone[_ngcontent-%COMP%] .ox-form-control.ox-country-selector[_ngcontent-%COMP%]{min-width:107px;max-width:107px;box-sizing:border-box;padding-right:8px}.ox-calling-code[_ngcontent-%COMP%]{position:absolute;
1left:32px;color:var(--color-core-dark01);bottom:17px;font-size:14px}.ox-form-control.ox-phone-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:60px}.ox-footer__verify[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.ox-user-validation--phone[_ngcontent-%COMP%] ox-button[_ngcontent-%COMP%] {width:280px}.ox-user-validation--phone[_ngcontent-%COMP%] ox-button[_ngcontent-%COMP%] button{width:280px}p.ox-footer[_ngcontent-%COMP%]{margin:0}.ox-user-validation--phone[_ngcontent-%COMP%] ox-button[_ngcontent-%COMP%] + p.ox-footer[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:10px}@media screen and (max-width: 799px){ .ox-backdrop{width:100vw}.ox-email-validation[_ngcontent-%COMP%]{min-width:212px;width:calc(100vw - 80px);padding:20px;background-color:var(--color-core-white)}.ox-email-validation[_ngcontent-%COMP%] .ox-email-validation__container[_ngcontent-%COMP%]{background-color:#eff6ff}.ox-email-validation[_ngcontent-%COMP%] .ox-email-validation__container[_ngcontent-%COMP%] .ox-mail[_ngcontent-%COMP%]{color:var(--color-tertiary01)}.ox-email-validation[_ngcontent-%COMP%] .ox-email-validation__footer[_ngcontent-%COMP%]{margin-top:20px}.ox-email-validation[_ngcontent-%COMP%] .ox-email-validation__footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}.ox-email-validation[_ngcontent-%COMP%] .ox-email-validation__footer[_ngcontent-%COMP%] .ox-resend[_ngcontent-%COMP%]{bottom:-75px;width:100%;padding:0 20px;font-size:14px}}']})}}return t})();const at=[{path:"validate",component:(()=>{class t extends o_.v{constructor(e,o,n,c,l,O,S,u,P){super(),this.loadingManager=e,this.route=o,this.authService=n,this.storageService=c,this.userService=l,this.router=O,this.statusManager=S,this.minimumWidthManager=u,this.googleAnalyticsService=P,this.isMobile=!this.minimumWidthManager.hasMinimumStudioWidth,this.subscribeTo(this.minimumWidthManager.isMobile$.subscribe(R=>this.isMobile=R)),this.subscribeTo(this.statusManager.userStatus$.subscribe(R=>{this.getValidationMethod(R)}))}getValidationMethod(e){this.loadingManager.show(!0),ze.Ps._UNVALIDATED===e?.accountChange?.status?(this.loggedUser=e.user,e.sendSMS?this.showPhone=!0:this.showEmail=!0,this.storageService.resetWizard(),this.storageService.resetBanner(),this.loadingManager.hide()):e&&(e.validationType==Be.YV.GOOGLE?setTimeout(()=>{this.onDestroy(),this.loadingManager.hide(),this.onValidation(!0)},2e3):(this.loadingManager.hide(),this.router.navigate(["/home"])))}ngAfterViewInit(){const e="Unable to verify user. Please contact us in [email protected]",o=this.route.snapshot.queryParamMap.get("ox-code");o&&o.length>0&&(this.loadingManager.show(!0),this.authService.loginToken(o).subscribe({next:n=>{null!=this.storageService.getAuthToken()?this.onValidation():this.router.navigate([`/login?error=${e}`]),this.loadingManager.hide()},error:()=>{this.router.navigate([`/login?error=${e}`]),this.loadingManager.hide()}}))}onValidation(e=!1){var o=this;return(0,I.A)(function*(){e||o.googleAnalyticsService.sendRegisterValidatedGAEvent(o.statusManager.userStatus$.value),yield(0,m.s)(o.userService.getCurrentStatus(!0,!0)),!o.isMobile&&o.storageService.getExplibCopyingOid()?o.router.navigate(["/projects"]):o.router.navigate(["/home"])})()}ngOnDestroy(){this.onDestroy()}static{this.\u0275fac=function(o){return new(o||t)(_.rXU(Ke.K),_.rXU(x.nX),_.rXU(q.u),_.rXU(Z.n),_.rXU(b.D),_.rXU(x.Ix),_.rXU(k.ON),_.rXU(je.q),_.rXU(J.p))}}static{this.\u0275cmp=_.VBU({type:t,selectors:[["ox-validate-user"]],features:[_.Vt3],decls:3,vars:3,consts:[[1,"ox-user-validation"],[3,"show","email"],[3,"validated","show"]],template:function(o,n){1&o&&(_.j41(0,"div",0),_.nrm(1,"ox-email-validation",1),_.j41(2,"ox-phone-validation",2),_.bIt("validated",function(){return n.onValidation()}),_.k0s()()),2&o&&(_.R7$(),_.Y8G("show",n.showEmail)("email",null==n.loggedUser?null:n.loggedUser.email),_.R7$(),_.Y8G("show",n.showPhone))},dependencies:[ot,st],styles:[".ox-user-validation[_ngcontent-%COMP%]{background-image:url(/assets/images/register-end.jpg);background-size:cover;background-repeat:no-repeat;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center}"]})}}return t})(),canActivate:[Q_.q,_e.y]},{path:"",component:Ve},{path:"**",redirectTo:"register"}];let ct=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=_.$C({type:t})}static{this.\u0275inj=_.G2t({imports:[x.iI.forChild(at),E.MD,x.iI]})}}return t})(),lt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=_.$C({type:t})}static{this.\u0275inj=_.G2t({providers:[{provide:$,useValue:N.c.recaptcha}],imports:[$_.U,E.MD,k_.G,w_.U,i.YN,i.X1,x.iI,i.YN,i.X1,ct,Z_]})}}return t})()}}]);
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.