1import{b as St}from"./chunk-I6Q2XZ5F.js";import{a as Ct}from"./chunk-5S7B5ABF.js";import{b as vt}from"./chunk-WG74YMGF.js";import"./chunk-IISPHNXK.js";import"./chunk-G56NLZPR.js";import"./chunk-ZBJWDJV6.js";import"./chunk-EYXH3WO5.js";import{b as _t}from"./chunk-K4O2U6JG.js";import{b as bt}from"./chunk-MV2GLPWW.js";import"./chunk-XZ6RYGJB.js";import"./chunk-73X4LJCZ.js";import"./chunk-AZ55VCKP.js";import"./chunk-TBMRUA6Z.js";import"./chunk-M53AAVDC.js";import"./chunk-WKETLRSK.js";import{a as ut}from"./chunk-RR7GCDE7.js";import"./chunk-IEZ7JOWW.js";import{c as ft}from"./chunk-Y4USWBOI.js";import"./chunk-6TXPR7Z5.js";import"./chunk-H3VL5ZLV.js";import"./chunk-VHAVQNQZ.js";import"./chunk-POU3UHYU.js";import"./chunk-VSE74FRV.js";import"./chunk-LHDNUMYG.js";import"./chunk-CXDBBW4F.js";import"./chunk-AJZEJ372.js";import"./chunk-UJD7X752.js";import"./chunk-4JH63XB4.js";import"./chunk-3YL3LRCJ.js";import"./chunk-QE4SGSMS.js";import"./chunk-722K2R47.js";import"./chunk-6CGZU3LR.js";import"./chunk-P6RAARJR.js";import"./chunk-YA4LCL44.js";import"./chunk-LRSNC77N.js";import"./chunk-B2D3ZNIN.js";import{A as X,C as J,d as a,g as $,l as Z,n as H}from"./chunk-ZMB7BYOX.js";import{b as dt}from"./chunk-PG356IOX.js";import"./chunk-DJLXGYOT.js";import"./chunk-QZKGI55F.js";import"./chunk-67IT4HQ6.js";import"./chunk-FMUJOZ5C.js";import"./chunk-NEZAQWLG.js";import"./chunk-A7HQZSIJ.js";import"./chunk-LPDEKHC4.js";import"./chunk-5CZSBVZS.js";import"./chunk-2QHSH4C5.js";import"./chunk-GAM63QEV.js";import"./chunk-VI6U6KIU.js";import{a as gt}from"./chunk-FHOHGYTL.js";import"./chunk-CJOVDC4D.js";import"./chunk-2AE3E265.js";import{a as ht}from"./chunk-FNMQQLVT.js";import{a as ot,e as pt}from"./chunk-CG7IIIZ2.js";import"./chunk-OJI7DA27.js";import{b as F,d as it,e as nt,j as at,k as st,m as lt,n as mt,o as ct,p as U,q as R}from"./chunk-MA3UJZI3.js";import{e as N}from"./chunk-4ZBSEH5M.js";import{f as Q,j as tt,k as et}from"./chunk-BLUPBYQY.js";import{a as rt}from"./chunk-QP2R5HQV.js";import"./chunk-WO4YLV4Q.js";import"./chunk-N5KHQ3PY.js";import"./chunk-RAU6IMNR.js";import{j as Y}from"./chunk-KMKRC7H4.js";import{$b as d,$c as w,Ic as K,Mc as u,Nc as V,Oc as x,ac as p,cb as j,fc as b,gc as l,ha as E,hb as o,hc as m,hd as _,ic as f,id as v,oa as P,pa as y,pc as M,rd as W,sd as k,tb as s,vc as O,xc as g,za as S,zb as A}from"./chunk-WLVJBNFV.js";import"./chunk-HGJ4MBLN.js";var xt=n=>[n],wt=n=>({returnUrl:n});function kt(n,c){if(n&1){let t=M();l(0,"p",1),u(1),_(2,"translate"),l(3,"strong",7),u(4),m(),l(5,"a",8),O("click",function(){P(t);let e=g();return y(e.otpChangeNumber())}),u(6),_(7,"translate"),m()()}if(n&2){let t=g();o(),x(" ",v(2,3,"regsiter_login_forget.otpSentTo")," "),o(3),V(t.otpPhone()),o(2),x(" ",v(7,5,"regsiter_login_forget.otpChangeNumber")," ")}}function Ft(n,c){if(n&1&&(l(0,"a",9),u(1),_(2,"translate"),m()),n&2){let t=g(2);b("routerLink",w(5,xt,"/"+t.lang()+"/session/forgot-password"))("queryParams",w(7,wt,t.returnUrl)),o(),V(v(2,3,"regsiter_login_forget.forgetPassword"))}}function Nt(n,c){if(n&1&&(l(0,"a",10),u(1),_(2,"translate"),m()),n&2){let t=g(2);b("routerLink",w(4,xt,"/"+t.lang()+"/session/forgot-password")),o(),V(v(2,2,"regsiter_login_forget.forgetPassword"))}}function Ut(n,c){if(n&1&&(l(0,"div",3),d(1,Ft,3,9,"a",9)(2,Nt,3,6,"a",10),m()),n&2){let t=g();o(),p(t.returnUrl?1:2)}}function Rt(n,c){if(n&1&&(l(0,"span",11),u(1),_(2,"translate"),l(3,"span",13),u(4),m()()),n&2){let t=g(2);o(),x(" ",v(2,2,"button.resend_in")," "),o(3),V(t.formatTime(t.resendTimer()))}}function Dt(n,c){n&1&&f(0,"app-loading")}function Bt(n,c){if(n&1){let t=M();l(0,"a",14),O("click",function(){P(t);let e=g(2);return y(e.resendOtp())}),u(1),_(2,"translate"),d(3,Dt,1,0,"app-loading"),m()}if(n&2){let t=g(2);K("color","var(--brand-color)")("cursor",t.resendLoading()?"not-allowed":"pointer")("opacity",t.resendLoading()?.6:1),o(),x(" ",v(2,8,"regsiter_login_forget.otpResend")," "),o(2),p(t.resendLoading()?3:-1)}}function zt(n,c){if(n&1&&(l(0,"div",4),d(1,Rt,5,4,"span",11)(2,Bt,4,10,"a",12),m()),n&2){let t=g();o(),p(t.resendTimer()>0?1:2)}}function qt(n,c){n&1&&(u(0),_(1,"translate")),n&2&&x(" ",v(1,1,"button.otpSendCode")," ")}function Gt(n,c){n&1&&(u(0),_(1,"translate")),n&2&&x(" ",v(1,1,"button.buttonSignIn")," ")}function jt(n,c){n&1&&(l(0,"div",6),f(1,"app-loading"),m())}function Kt(n,c){n&1&&(l(0,"span"),u(1),_(2,"translate"),m()),n&2&&(o(),V(v(2,1,"regsiter_login_forget.or_sign_in")))}function Wt(n,c){n&1&&(l(0,"div",6),f(1,"app-loading"),m())}function Yt(n,c){if(n&1&&(d(0,Wt,2,0,"div",6),f(1,"i",21)),n&2){let t=g(3);
1p(t.isFbSubmitted()?0:-1)}}function $t(n,c){n&1&&f(0,"img",20)}function Zt(n,c){if(n&1){let t=M();l(0,"div",19),O("click",function(){P(t);let e=g(2);return y(e.signInWithFB())}),d(1,Yt,2,1),d(2,$t,1,0,"img",20),m()}if(n&2){let t=g(2);b("ngClass",(t.environmentVariables==null?null:t.environmentVariables.SOCIAL_ICONS_SIZE)=="small"?"w-auto":"width-50"),o(),p((t.environmentVariables==null?null:t.environmentVariables.SOCIAL_ICONS_SIZE)=="small"?1:-1),o(),p((t.environmentVariables==null?null:t.environmentVariables.SOCIAL_ICONS_SIZE)=="big"?2:-1)}}function Ht(n,c){n&1&&f(0,"i",23)}function Xt(n,c){n&1&&f(0,"img",24)}function Jt(n,c){if(n&1){let t=M();l(0,"div",22),O("click",function(){P(t);let e=g(2);return y(e.signInWithGoogle())}),d(1,Ht,1,0,"i",23),d(2,Xt,1,0,"img",24),m()}if(n&2){let t=g(2);b("ngClass",(t.environmentVariables==null?null:t.environmentVariables.SOCIAL_ICONS_SIZE)=="small"?"w-auto":"width-50"),o(),p((t.environmentVariables==null?null:t.environmentVariables.SOCIAL_ICONS_SIZE)=="small"?1:-1),o(),p((t.environmentVariables==null?null:t.environmentVariables.SOCIAL_ICONS_SIZE)=="big"?2:-1)}}function Qt(n,c){if(n&1){let t=M();l(0,"div",15),d(1,Zt,3,3,"div",16),d(2,Jt,3,3,"div",17),m(),l(3,"p"),u(4),_(5,"translate"),l(6,"a",18),O("click",function(){P(t);let e=g();return y(e.routingSingUp())}),u(7),_(8,"translate"),m()()}if(n&2){let t=g();o(),p(t.socialIds!=null&&t.socialIds.facebookSignInId&&(t.environmentVariables!=null&&t.environmentVariables.ENABLE_FB_SIGN_IN)?1:-1),o(),p(t.socialIds!=null&&t.socialIds.googleSignInId&&(t.environmentVariables!=null&&t.environmentVariables.ENABLE_GOOGLE_SIGN_IN)?2:-1),o(2),x(" ",v(5,4,"regsiter_login_forget.dontHaveAccount")," "),o(3),x("",v(8,6,"regsiter_login_forget.clickToCreate")," ")}}var Lt=(()=>{class n{authService;router;formBuilder;loginService;route;embryoService;translate;dateAdapter;storage;checkoutService;homePageService;account;confgServ;marketingService;appComponent;toast;windowService;registerService;user;AuthObject={access_token:"",provider:""};typePass="password";userSocial;userAuthToken;dateTime=new Date;LoginForm;isSubmitted=S(!1);returnUrl="";languageService=E(R);lang=this.languageService.currentLanguage;productCartList;productFavoriteList;productCompareList;environmentVariables;cartItems;emailValidator="^[a-zA-Z]{1}[a-zA-Z0-9.-_]*@[a-zA-Z]{1}[a-zA-Z.-]*[a-zA-Z]{1}[.][a-zA-Z]{2,}$";socialIds;searchTxt="";selectedCountry=S(void 0);countries=S([]);showCountryDropdown=!1;otpStep=S(1);otpPhone=S("");resendTimer=S(0);resendLoading=S(!1);otpResendInterval=null;get otpMode(){return!!this.environmentVariables?.enableOtpLogin}constructor(t,i,e,C,h,D,T,B,r,L,I,z,q,It,Ot,Pt,yt,Mt){this.authService=t,this.router=i,this.formBuilder=e,this.loginService=C,this.route=h,this.embryoService=D,this.translate=T,this.dateAdapter=B,this.storage=r,this.checkoutService=L,this.homePageService=I,this.account=z,this.confgServ=q,this.marketingService=It,this.appComponent=Ot,this.toast=Pt,this.windowService=yt,this.registerService=Mt,this.embryoService.productCartSub.subscribe(G=>{G&&(this.cartItems=G)}),this.getInitializeData(),k(()=>{this.languageService.currentLanguage()==="en"?this.dateAdapter.setLocale("en"):this.dateAdapter.setLocale("ar-EG")}),this.dateTime.setDate(this.dateTime.getDate()-1)}ngOnInit(){this.socialIds=this.storage.getSession("socialIds")||{},this.loginService.isAuthenticated()&&this.router.navigate(["/"+this.languageService.currentLanguage()+"/"]),this.storage.removeLocal("social-account"),this.authService.authState.subscribe(t=>this.user=t),this.returnUrl=this.route.snapshot.queryParams.returnUrl,(this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS||this.environmentVariables?.ENABLE_MULTI_COUNTRY)&&this.getCountries(),this.route.queryParams.subscribe(t=>{let i=t.token;i&&setTimeout(()=>{this.loginService.setToken(i),this.loginService.getProfile().subscribe(e=>{e.data.logged=!0,this.loginService.setUserDataEmit(e.data),this.loginService.setUser(e.data),this.router.navigateByUrl(`/${this.languageService.currentLanguage()}`)})},100)})}numberOnly(t){return t.charCode>=48&&t.charCode<=57&&t.charCode!=32}getInitializeData(){this.confgServ.getenvConfig().subscribe(t=>{this.environmentVariables=t,this.resetForm()})}formFields=W(()=>{if(!this.environmentVariables||!this.LoginForm)return[];if(this.environmentVariables?.enableOtpLogin){let t=this.otpStep();return[{type:"phone",labelKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",controlName:"phone",visible:t===1,placeholderKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",classWrapper:"mb-4",showRequiredAsterisk:!0,minLength:this.environmentVariables?.localization?.phone_length,maxLength:this.environmentVariables?.localization?.phone_length,onKeypress:i=>this.numberOnly(i),formFieldWrapperClass:"w-100 phone-form-field",fieldClassFlex:"col-12",dataTestId:"otp-phone-input",errorDataTestId:"otp-phone-error",errors:[{condition:()=>!!(this.LoginForm?.controls?.phone?.errors?.required&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.requiredPhone":"validation_Input.requiredPhone"},{condition:()=>!!(this.formControlValidator(this.LoginForm,"phone","minlength")||this.formControlValidator(this.LoginForm,"phone","maxlength")&&!this.formControlValidator(this.LoginForm,"phone","required"))&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty),errorKey:this.languageService.currentLanguage()=="en"?"Phone number must be "+this.environmentVariables?.localization?.phone_length+" digits ":"\u0631\u0642\u0645 \u0627\u0644\u062A\u0644\u064A\u0641\u0648\u0646 \u064A\u062C\u0628 \u0627\u0646 \u064A\u0643\u0648\u0646 "+this.environmentVariables?.localization?.phone_length+" \u0631\u0642\u0645"},{condition:()=>!!(this.formControlValidator(this.LoginForm,"phone","pattern")&&!this.formControlValidator(this.LoginForm,"phone","minlength")&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.phoneNumberPattern":"validation_Input.phoneNumberPattern"}]},{type:"input",controlName:"verification_code",visible:t===2,labelKey:"",placeholderKey:"input_text.verificationcode",showRequiredAsterisk:!0,inputType:"text",autocomplete:"off",classWrapper:"mb-4",fieldClassFlex:"col-12",dataTestId:"otp-code-input",onKeypress:i=>this.numberOnly(i),errors:[{condition:()=>!!(this.LoginForm?.controls?.verification_code?.errors?.required&&(this.LoginForm?.controls?.verification_code?.touched||this.LoginForm?.controls?.verification_code?.dirty)),errorKey:"validation_Input.requiredverificationcode"}]}]}return[{type:"input",controlName:"email",visible:!this.environmentVariables?.enablePhoneLogin,labelKey:"input_text.inputEmail",placeholderKey:"input_text.inputEmail",showRequiredAsterisk:!0,inputType:"email",name:"email",classWrapper:"mb-4",autocomplete:"on",fieldClassFlex:"col-12",dataTestId:"login-email-input",errors:[{condition:()=>!!(this.LoginForm?.controls?.email?.errors?.required&&(this.LoginForm?.controls?.email?.touched||this.LoginForm?.controls?.email?.dirty)),errorKey:"validation_Input.requiredEmail"},{condition:()=>!!((this.LoginForm?.controls?.email?.errors?.pattern||this.LoginForm?.controls?.email?.errors?.email)&&(this.LoginForm?.controls?.email?.touched||this.LoginForm?.controls?.email?.dirty)&&!this.LoginForm?.controls?.email?.errors?.required),errorKey:"validation_Input.validEmail"}]},{type:"phone",labelKey:"input_text.inputCustomerPhone",controlName:"phone",visible:!!this.environmentVariables?.enablePhoneLogin&&!this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS&&!(this.environmentVariables?.ENABLE_MULTI_COUNTRY&&this.environmentVariables?.GLOBAL_COUNTRY_CODE===this.environmentVariables?.localization?.country_code),placeholderKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",showRequiredAsterisk:!0,minLength:this.environmentVariables?.localization?.phone_length,maxLength:this.environmentVariables?.localization?.phone_length,onKeypress:t=>this.numberOnly(t),formFieldWrapperClass:"w-100 phone-form-field",fieldClassFlex:"col-12",dataTestId:"login-phone-input",errorDataTestId:"login-phone-error",errors:[{condition:()=>!!(this.LoginForm?.controls?.phone?.errors?.required&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.requiredPhone":"validation_Input.requiredPhone"},{condition:()=>!!(this.formControlValidator(this.LoginForm,"phone","minlength")||this.formControlValidator(this.LoginForm,"phone","maxlength")&&!this.formControlValidator(this.LoginForm,"phone","required"))&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty),errorKey:this.languageService.currentLanguage()=="en"?"Phone number must be "+this.environmentVariables?.localization?.phone_length+" digits ":"\u0631\u0642\u0645 \u0627\u0644\u062A\u0644\u064A\u0641\u0648\u0646 \u064A\u062C\u0628 \u0627\u0646 \u064A\u0643\u0648\u0646 "+this.environmentVariables?.localization?.phone_length+" \u0631\u0642\u0645"},{condition:()=>!!(this.formControlValidator(this.LoginForm,"phone","pattern")&&!this.formControlValidator(this.LoginForm,"phone","minlength")&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.phoneNumberPattern":"validation_Input.phoneNumberPattern"}]},{type:"select-with-country",labelKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",controlName:"phone",countryControlName:"phone_country_id",visible:!!this.environmentVariables?.enablePhoneLogin&&(!!this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS||!!this.environmentVariables?.ENABLE_MULTI_COUNTRY&&this.environmentVariables?.GLOBAL_COUNTRY_CODE===this.environmentVariables?.localization?.country_code),placeholderKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",showRequiredAsterisk:!0,countries:this.countries(),selectedCountry:this.selectedCountry(),searchTxt:this.searchTxt,onCountryChange:t=>this.chooseCountry(t),onSearchChange:t=>this.searchTxt=t,onKeypress:t=>this.numberOnly(t),fieldClassFlex:"col-12",errors:[{condition:()=>!!(this.LoginForm?.controls?.phone?.errors?.required&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.requiredPhone":"validation_Input.requiredPhone"},{condition:()=>!!(this.LoginForm?.controls?.phone?.errors?.pattern&&(this.LoginForm?.controls?.phone?.touched||this.LoginForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.phoneNumberPattern":"validation_Input.phoneNumberPattern"}]},{type:"password",controlName:"password",labelKey:"input_text.inputPassword",placeholderKey:"input_text.inputPassword",showRequiredAsterisk:!0,fieldClassFlex:"col-12",dataTestId:"login-password-input",errorDataTestId:"login-password-error",errors:[{condition:()=>!!(this.LoginForm?.controls?.password?.errors?.required&&(this.LoginForm?.controls?.password?.touched||this.LoginForm?.controls?.password?.dirty)),errorKey:"validation_Input.requiredPassword"},{condition:()=>!!(this.LoginForm?.controls?.password?.errors?.minlength&&(this.LoginForm?.controls?.password?.touched||this.LoginForm?.controls?.password?.dirty)&&!this.LoginForm?.controls?.password?.errors?.required),errorKey:"validation_Input.ValidPassword"}]}]});resetForm(){if(this.environmentVariables?.enableOtpLogin){this.otpStep.set(1),this.otpPhone.set(""),this.LoginForm=this.formBuilder.group({phone:["",[a.required,a.minLength(this.environmentVariables?.localization?.phone_length<1e3?this.environmentVariables?.localization?.phone_length:0),a.maxLength(this.environmentVariables?.localization?.phone_length),a.pattern(this.environmentVariables?.localization?.phone_pattern)]],verification_code:[""]});return}this.environmentVariables?.enablePhoneLogin?this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS||this.environmentVariables?.ENABLE_MULTI_COUNTRY?this.LoginForm=this.formBuilder.group({phone:["",[a.required]],password:["",[a.required,a.minLength(8)]],phone_country_id:[""]}):this.LoginForm=this.formBuilder.group({phone:["",[a.required,a.minLength(this.environmentVariables?.localization?.phone_length<1e3?this.environmentVariables?.localization?.phone_length:0),a.maxLength(this.environmentVariables?.localization?.phone_length),a.pattern(this.environmentVariables?.localization?.phone_pattern)]],password:["",[a.required,a.minLength(8)]]}):this.environmentVariables?.enablePhoneLogin||(this.LoginForm=this.formBuilder.group({email:["",[a.required,a.email,a.pattern(this.emailValidator)]],password:["",[a.required,a.minLength(8)]]}))}formControlValidator(t,i,e){if(t.controls[i].touched&&t.controls[i].dirty&&t.controls[i].errors)return t.controls[i].errors[e]}isFbSubmitted=S(!1);fb_login(){let t=this.windowService.getWindow();this.isFbSubmitted.set(!0),t?.FB.login(i=>{if(i.authResponse){var e=i.authResponse.accessToken;this.userAuthToken=e,this.checkUserLoginSocial("facebook");var C=i.authResponse.userID;t?.FB.api("/me",function(h){var D=h.email}),this.isFbSubmitted.set(!1)}else this.isFbSubmitted.set(!1)},{scope:"public_profile,email"})}signInWithFB(){this.fb_login()}signInWithGoogle(){this.windowService.getWindow()?.google.accounts.oauth2.initTokenClient({client_id:this.environmentVariables?.GOOGLE_CLIENT_ID,scope:"openid profile email",callback:e=>{e?.access_token&&(this.userAuthToken=e?.access_token,this.checkUserLoginSocial("google"))}})?.requestAccessToken()}checkUserLoginSocial(t){this.loginService.checkSocial({provider:t,access_token:this.userAuthToken}).subscribe(i=>
1{if(i.code===200){if(this.environmentVariables?.fbPixelId&&!this.environmentVariables?.DISABLE_FB_CONVERSION_WEBSITE_CALL&&this.marketingService.fbTracking("track","Login"),this.marketingService.conversionApi({view_type:"Login"}).subscribe(),this.marketingService.snapTracking("track","LOGIN"),this.userSocial=i.data,i.data.phone==null||i.data.name==""||i.data.last_name==null){this.storage.removeLocal("targetUrl"),this.router.navigate(["/"+this.languageService.currentLanguage()+"/session/signup"],{queryParams:this.returnUrl?{returnUrl:this.returnUrl}:{}}),this.storage.setLocal("social-account",i.data);let e={event:"Register",method:t,extras:this.account.googleAnalaticsUserData}}else{this.marketingService.dataLayerLoginEvent(i.data,this.lang(),{method:"social-media",phonePrefix:this.environmentVariables?.localization?.phone_prefix,returnUrl:this.returnUrl}),i.data.logged=!0,this.loginService.setUserDataEmit(i.data),this.loginService.setToken(i.data.token),this.loginService.setUser(i.data),this.loginService.userEmit.next(i.data),this.returnUrl&&this.returnUrl!=""?(this.router.navigate([this.returnUrl]),this.storage.removeLocal("targetUrl")):this.router.navigate(["/"+this.languageService.currentLanguage()]);let e={event:"login",method:t,extras:this.account.googleAnalaticsUserData};this.environmentVariables?.LOYALTY_PROVIDER=="mujtama"&&this.getLoyalty()}this.environmentVariables.ENABLE_HIDE_CATEGORIES_WITHOUT_PRODUCTS_IN_STATIC_MENU&&this.environmentVariables?.ENABLE_STATIC_MENU&&this.appComponent.getCategoriesWithProductsStock()}else this.marketingService.dataLayerLoginFailedEvent("social-media"),this.toast.error(`${i.message}`)})}routingSingUp(){this.windowService.getWindow()?.location.pathname.includes("/signin")?this.router.navigate(["/"+this.languageService.currentLanguage()+"/session/signup"],{}):this.router.navigate(["/"+this.languageService.currentLanguage()+"/session/signup"],{queryParams:this.returnUrl?{returnUrl:this.returnUrl}:{}}),this.storage.removeLocal("targetUrl")}onSubmit(){if(this.otpMode){this.onOtpSubmit();return}if(this.LoginForm.invalid){this.LoginForm.markAllAsTouched();return}this.isSubmitted.set(!0),this.storage.removeLocal("DeliveryAddress"),this.storage.removeLocal("addresses");let t=this.LoginForm.value;!this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS&&!this.environmentVariables?.ENABLE_MULTI_COUNTRY&&delete t.phone_country_id,this.loginService.loginUsers(t).subscribe({next:async i=>{i.code===200?await this.handleLoginSuccess(i,this.environmentVariables?.enablePhoneLogin?"Mobile":"Email"):(this.marketingService.dataLayerLoginFailedEvent(this.environmentVariables?.enablePhoneLogin?"Mobile":"Email"),this.isSubmitted.set(!1),this.toast.error(`${i.message}`))}})}async handleLoginSuccess(t,i="Email"){let e=this.windowService.getWindow();if(this.environmentVariables?.fbPixelId&&!this.environmentVariables?.DISABLE_FB_CONVERSION_WEBSITE_CALL&&this.marketingService.fbTracking("track","Login"),this.marketingService.conversionApi({view_type:"Login"}).subscribe(),this.marketingService.snapTracking("track","LOGIN"),this.marketingService.dataLayerLoginEvent(t.data,this.lang(),{method:i,phonePrefix:this.environmentVariables?.localization?.phone_prefix,returnUrl:this.returnUrl}),this.environmentVariables?.KEPIXEL_WRITE_KEY){let r=t.data.profile?.primary_address;this.marketingService.kepixelIdentify(t.data.id?.toString(),{email:t.data.email,phone:t.data.phone,name:t.data.name,firstName:r?.customer_first_name||t.data.name?.split(" ")[0],lastName:r?.customer_last_name||t.data.last_name||t.data.name?.split(" ")[1],birthday:t.data.birthdate,language:localStorage.getItem("lang")||"en",address:r?{street:r.address,building:r.building,city:r.city?.name,area:r.area?.name,formattedAddress:r.formatted_address}:void 0})}this.marketingService.dataLayerCustomerInfoEvent({event:"customer_info",page:{fingerprint:"",pageName:"signin",mobileApp:0,referrer:e?.location.href,theme:this.environmentVariables?.THEME_ID},store:{store:this.environmentVariables?.STORE_NAME,facebook_pixel_id:this.environmentVariables?.fbPixelId?this.environmentVariables?.fbPixelId:"",google_analytics_id:this.environmentVariables?.googleAnalyticsId?this.environmentVariables?.googleAnalyticsId:"",snapchat_pixel_id:this.environmentVariables?.snapChatPixelId?this.environmentVariables?.snapChatPixelId:""},customer:{isGuest:!1,name:t.data.name?t.data.name:null,first_name:t.data.name?await this.appComponent.hashStringWithProp(t.data.name.split(" ")[0],"first_name"):null,last_name:t.data.name?await this.appComponent.hashStringWithProp(t.data.name.split(" ")[1],"last_name"):null,email:t.data.email?t.data.email:null,phone:t.data.phone?t.data.phone:null,currency:this.environmentVariables?.CURRENCY,email_hashed:t.data.email?await this.appComponent.hashStringWithProp(t.data.email,"email_hashed"):null,phone_hashed:t.data.phone?await this.appComponent.hashStringWithProp(t.data.phone,"phone_hashed"):null}});let C={event:"login",method:"Email",extras:this.account.googleAnalaticsUserData};this.loginService.setToken(t.data.token),this.loginService.setUser(t.data),t.data.name&&t.data.phone&&t.data.phone_verified==1&&this.environmentVariables?.LOYALTY_PROVIDER=="gameBall"&&ot(),t.data.logged=!0,this.loginService.setUserDataEmit(t.data),this.checkCart();let h={compare:this.storage.getLocal("compareItems",[]),favorites:this.storage.getLocal("wishListItems",[]),cart:this.cartItems&&this.cartItems?.length>0?this.cartItems:[]},D={compare:h.compare&&h.compare.length?h.compare.map(r=>r.id):null,favourites:h.favorites&&h.favorites.length?h.favorites.map(r=>r.id):null,cart:h.cart.length?{reset:!1,items:h.cart.map(r=>({id:r.id,amount:r.amount}))}:null},T=this.returnUrl&&this.returnUrl.includes("checkout");T||(this.isSubmitted.set(!1),this.returnUrl&&this.returnUrl!=""&&!this.returnUrl.includes("final-receipt")?(this.router.navigate([this.returnUrl]),localStorage.removeItem("targetUrl")):this.router.navigate(["/"+this.languageService.currentLanguage()])),this.storage.removeLocal("wishListItems"),this.storage.removeLocal("compareItems"),this.homePageService.isInitLoading.next(!0);var B={};this.homePageService.getInitializationsData(B).subscribe(r=>{if(this.homePageService.isInitLoading.next(!1),r&&r.data){if(this.environmentVariables?.ENABLE_MULTI_INVENTORY){let L=r.data.profile?.addresses;if(this.storage.setLocal("addresses",L||[]),L&&L.length>0){let I=L.find(q=>q.area_id===r.data.profile?.area?.id);I||(I=L[0]),this.storage.setLocal("DeliveryAddress",I);let z={area_id:I.area_id,city_id:I.city_id};this.setArea(z)}}this.embryoService.productCartSub.next(r.data.cart),this.embryoService.productCartCount.next(r.data.cart.length),this.embryoService.favouritesListSub.next(r.data.favourites),this.embryoService.compareListSub.next(r.data.compare),this.embryoService.n
1otificationsListSub.next({notifications:r.data.notifications,unreadNotifications:r.data.unreadNotifications}),this.storage.setLocal("auth_user_crocs",r.data.profile),this.loginService.setToken(r.data?.profile?.token),this.account.addressSubject.next(r.data?.profile?.addresses),T&&(this.isSubmitted.set(!1),this.returnUrl&&this.returnUrl!=""&&!this.returnUrl.includes("final-receipt")?(this.router.navigate([this.returnUrl]),localStorage.removeItem("targetUrl")):this.router.navigate(["/"+this.languageService.currentLanguage()])),this.environmentVariables?.LOYALTY_PROVIDER=="mujtama"&&this.getLoyalty(),this.environmentVariables.ENABLE_HIDE_CATEGORIES_WITHOUT_PRODUCTS_IN_STATIC_MENU&&this.environmentVariables?.ENABLE_STATIC_MENU&&this.appComponent.getCategoriesWithProductsStock()}})}onOtpSubmit(){return this.otpStep()===1?this.sendOtp():this.verifyOtp()}sendOtp(){let t=this.LoginForm?.controls?.phone;if(!t||t.invalid){t?.markAsTouched(),t?.markAsDirty();return}this.isSubmitted.set(!0);let i=t.value;this.loginService.otpLogin({phone:i}).subscribe({next:e=>{if(this.isSubmitted.set(!1),e.code===200){this.otpPhone.set(i),this.otpStep.set(2);let C=this.LoginForm?.controls?.verification_code;C?.setValidators([a.required,a.minLength(4)]),C?.updateValueAndValidity(),C?.reset(""),this.startResendTimer(),e.message&&this.toast.success(`${e.message}`)}else this.toast.error(`${e.message}`)},error:e=>{this.isSubmitted.set(!1),this.toast.error(`${e?.error?.message||e?.message||""}`)}})}verifyOtp(){let t=this.LoginForm?.controls?.verification_code;if(!t||t.invalid){t?.markAsTouched(),t?.markAsDirty();return}this.isSubmitted.set(!0),this.storage.removeLocal("DeliveryAddress"),this.storage.removeLocal("addresses");let i={phone:this.otpPhone(),verification_code:t.value};this.loginService.otpLogin(i).subscribe({next:async e=>{e.code===200?await this.handleLoginSuccess(e,"Mobile"):(this.marketingService.dataLayerLoginFailedEvent("Mobile"),this.isSubmitted.set(!1),this.toast.error(`${e.message}`))},error:e=>{this.marketingService.dataLayerLoginFailedEvent("Mobile"),this.isSubmitted.set(!1),this.toast.error(`${e?.error?.message||e?.message||""}`)}})}resendOtp(){this.resendLoading()||this.resendTimer()>0||(this.resendLoading.set(!0),this.loginService.otpLogin({phone:this.otpPhone()}).subscribe({next:t=>{this.resendLoading.set(!1),t.code===200?(this.startResendTimer(),this.toast.success(`${t.message}`)):this.toast.error(`${t.message}`)},error:t=>{this.resendLoading.set(!1),this.toast.error(`${t?.error?.message||t?.message||""}`)}}))}otpChangeNumber(){this.otpStep.set(1),this.clearResendTimer();let t=this.LoginForm?.controls?.verification_code;t?.clearValidators(),t?.reset(""),t?.updateValueAndValidity()}startResendTimer(){this.clearResendTimer(),this.resendTimer.set(60),this.otpResendInterval=setInterval(()=>{this.resendTimer.update(t=>t-1),this.resendTimer()<=0&&this.clearResendTimer()},1e3)}clearResendTimer(){this.otpResendInterval&&(clearInterval(this.otpResendInterval),this.otpResendInterval=null),this.resendTimer.set(0)}formatTime(t){let i=Math.floor(t/60),e=t%60;return`${i}:${e<10?"0":""}${e}`}ngOnDestroy(){this.clearResendTimer()}getLoyalty(){this.embryoService.getLoyalty().subscribe(t=>{this.embryoService.setLoyaltyDataEmit(t.data)})}checkCart(){this.checkoutService.getCart().subscribe(t=>{t.code===200&&(this.embryoService.productCartSub.next(t.data.items),this.embryoService.productCartCount.next(t.data.items?.length||0))})}changePassToText(){this.typePass="text"}changeTextToPass(){this.typePass="password"}setArea(t){this.account.UpdateInvintoryArea(t).subscribe(i=>{this.loginService.setUserDataEmit(i.data),this.storage.setLocal("auth_user_crocs",i.data)})}getCountries(){this.registerService.getCountries().subscribe(t=>{if(t?.code==200){this.countries.set(t.data);let i=this.countries();if(this.LoginForm&&i&&i.length>0){let e=this.homePageService.getDefaultCountryFromList(i);this.LoginForm.get("phone_country_id")?.setValue(e?.id),this.selectedCountry.set(e),this.LoginForm.controls.phone&&e?.phone_pattern&&(this.LoginForm.controls.phone.setValidators([a.required,a.pattern(e.phone_pattern)]),this.LoginForm.controls.phone.updateValueAndValidity())}}})}chooseCountry(t){if(!this.LoginForm||!this.LoginForm.controls.phone)return;this.searchTxt="";let i=this.countries().find(e=>e.id==t);this.selectedCountry.set(i),i?.phone_pattern&&(this.LoginForm.controls.phone.setValidators([a.required,a.pattern(i.phone_pattern)]),this.LoginForm.controls.phone.updateValueAndValidity())}toggleCountryDropdown(){this.showCountryDropdown=!this.showCountryDropdown}selectCountry(t){this.selectedCountry.set(t),this.LoginForm.get("phone_country_id")?.setValue(t.id),this.showCountryDropdown=!1,this.searchTxt="",this.LoginForm.controls.phone&&t?.phone_pattern&&(this.LoginForm.controls.phone.setValidators([a.required,a.pattern(t.phone_pattern)]),this.LoginForm.controls.phone.updateValueAndValidity())}static \u0275fac=function(i){return new(i||n)(s(St),s(tt),s(X),s(pt),s(Q),s(U),s(F),s(_t),s(rt),s(at),s(ht),s(lt),s(N),s(ct),s(bt),s(st),s(mt),s(Ct))};static \u0275cmp=A({type:n,selectors:[["embryo-SignIn"]],decls:12,vars:12,consts:[["autocomplete","off",1,"login-container",3,"formGroup"],[1,"mb-2","otp-sent-hint"],[3,"form","fields","is
1Flex"],[1,"mb-3","d-flex","fx-layout-align-end"],[1,"mb-3","d-flex","fx-layout-align-end","align-items-center"],["data-testid","login-submit-button","color","accent","mat-raised-button","","type","submit",1,"mb-3","w-100",3,"click","disabled"],[1,"toggle-loading"],["dir","ltr"],[1,"text-decoration-underline","ml-1",2,"color","var(--brand-color)","cursor","pointer",3,"click"],["data-testid","login-forgot-password-link",1,"text-decoration-underline",3,"routerLink","queryParams"],["data-testid","login-forgot-password-link",1,"text-decoration-underline",3,"routerLink"],["data-testid","otp-resend-timer",1,"timer-display"],["data-testid","otp-resend-link",1,"text-decoration-underline",3,"color","cursor","opacity"],["dir","ltr",1,"timer-countdown"],["data-testid","otp-resend-link",1,"text-decoration-underline",3,"click"],[1,"d-flex","flex-row","mb-1"],[1,"google-icon","pointer","position-relative",3,"ngClass"],[1,"google-icon","pointer",3,"ngClass"],[1,"text-decoration-underline",2,"color","var(--brand-color)","cursor","pointer",3,"click"],[1,"google-icon","pointer","position-relative",3,"click","ngClass"],["loading","lazy","src","./assets/images/facebook_signin.svg","alt","Facebook Signin","title","Facebook Signin"],[1,"fab","fa-facebook-square","facebookBtn"],[1,"google-icon","pointer",3,"click","ngClass"],[1,"fab","fa-google-plus-square","googleBtn"],["loading","lazy","src","./assets/images/google_signin.svg","alt","Google Signin","title","Google Signin"]],template:function(i,e){i&1&&(l(0,"form",0),d(1,kt,8,7,"p",1),f(2,"app-form-fields",2),d(3,Ut,3,1,"div",3),d(4,zt,3,1,"div",4),l(5,"button",5),O("click",function(){return e.onSubmit()}),d(6,qt,2,3)(7,Gt,2,3),d(8,jt,2,0,"div",6),m(),f(9,"br"),d(10,Kt,3,3,"span"),d(11,Qt,9,8),m()),i&2&&(b("formGroup",e.LoginForm),o(),p(e.otpMode&&e.otpStep()===2?1:-1),o(),b("form",e.LoginForm)("fields",e.formFields())("isFlex",!0),o(),p(e.otpMode?-1:3),o(),p(e.otpMode&&e.otpStep()===2?4:-1),o(),b("disabled",e.isSubmitted()),o(),p(e.otpMode&&e.otpStep()===1?6:7),o(2),p(e.isSubmitted()?8:-1),o(2),p(e.socialIds!=null&&e.socialIds.facebookSignInId&&(e.environmentVariables!=null&&e.environmentVariables.ENABLE_FB_SIGN_IN)||e.socialIds!=null&&e.socialIds.googleSignInId&&(e.environmentVariables!=null&&e.environmentVariables.ENABLE_GOOGLE_SIGN_IN)?10:-1),o(),p(e.environmentVariables!=null&&e.environmentVariables.ENABLE_SIGN_UP?11:-1))},dependencies:[J,Z,$,H,vt,et,dt,gt,Y,nt,it],styles:[".login-container[_ngcontent-%COMP%] .mat-form-field{width:100%}.login-container[_ngcontent-%COMP%] .mat-form-field .mat-mdc-text-field-wrapper, .login-container[_ngcontent-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}.login-container[_ngcontent-%COMP%] .mat-form-field .mat-mdc-form-field-infix, .login-container[_ngcontent-%COMP%] .mat-form-field .mat-form-field-infix{border-top:none;padding:0}.login-container[_ngcontent-%COMP%] .mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{display:none}.login-container[_ngcontent-%COMP%] .mat-form-field input.mat-mdc-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field input.mat-input-element{padding:14px 16px!important;border:2px solid #e0e0e0!important;border-radius:8px!important;font-size:15px!important;transition:all .3s ease!important;background-color:#fff!important;height:48px!important;box-sizing:border-box!important}.login-container[_ngcontent-%COMP%] .mat-form-field input.mat-mdc-input-element:focus, .login-container[_ngcontent-%COMP%] .mat-form-field input.mat-input-element:focus{border-color:var(--brand-color)!important;background-color:#fff!important;outline:none!important;box-shadow:0 0 0 3px #0000000d!important}.login-container[_ngcontent-%COMP%] .mat-form-field input.mat-mdc-input-element::placeholder, .login-container[_ngcontent-%COMP%] .mat-form-field input.mat-input-element::placeholder{color:#999!important;opacity:1!important}.login-container[_ngcontent-%COMP%] .mat-form-field.mat-focused input.mat-mdc-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field.mat-focused input.mat-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field.mat-mdc-form-field-focused input.mat-mdc-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field.mat-mdc-form-field-focused input.mat-input-element{border-color:var(--brand-color)!important;background-color:#fff!important}.login-container[_ngcontent-%COMP%] .mat-form-field.mat-form-field-invalid input.mat-mdc-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field.mat-form-field-invalid input.mat-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field.mat-mdc-form-field-invalid input.mat-mdc-input-element, .login-container[_ngcontent-%COMP%] .mat-form-field.mat-mdc-form-field-invalid input.mat-input-element{border-color:#dc3545!important}.login-container[_ngcontent-%COMP%] .mat-form-field .mat-form-field-underline, .login-container[_ngcontent-%COMP%] .mat-form-field .mdc-line-ripple{display:none!important}.login-container[_ngcontent-%COMP%] .mat-form-field .mat-mdc-form-field-subscript-wrapper, .login-container[_ngcontent-%COMP%] .mat-form-field .mat-form-field-subscript-wrapper{margin-top:.5em}.login-container[_ngcontent-%COMP%] .mat-form-field .mat-icon, .login-container[_ngcontent-%COMP%] .mat-form-field .mat-mdc-icon-button{color:#6c757d} .phone-form-field{position:relative!important} .phone-form-field .localization-data{position:absolute!important;display:inline-flex!important;align-items:center!important;background-color:transparent!important;border:none!important;font-size:15px!important;color:#495057!important;height:40px!important;box-sizing:border-box!important;left:40px!important;top:50%!important;transform:translate(-50%,-50%);z-index:2!important;padding:0!important;font-weight:500!important} .phone-form-field .localization-data img{width:20px!important;height:14px!important;margin-right:6px!important;border-radius:2px!important;object-fit:cover!important} .phone-form-field input.mat-mdc-input-element, .phone-form-field input.mat-input-element{border-radius:8px!important;padding-left:16px!important;padding-right:16px!important}form[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:12px;box-shadow:0 2px 8px #00000014}@media(max-width:700px){form[_ngcontent-%COMP%]{padding:16px}}.facebookBtn[_ngcontent-%COMP%]{font-size:30px;color:#24249a;cursor:pointer;margin-right:8px}.googleBtn[_ngcontent-%COMP%]{font-size:30px;color:#b71414;cursor:pointer}.material-icons[_ngcontent-%COMP%]{cursor:pointer}.mat-form-field[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:auto!important}.mat-form-field[_ngcontent-%COMP%] mat-icon.mat-icon.material-icons.mat-icon-no-color[matsuffix][_ngcontent-%COMP%]{position:absolute!important;right:20px!important;top:50%!important;transform:translateY(50%)!important;color:#757575!important} #ar .mat-form-field mat-icon.mat-icon.material-icons.mat-icon-no-color[matsuffix]{right:unset!important;
1left:20px!important}.google-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px;border-radius:3px}.google-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.button-lg[_ngcontent-%COMP%]{background-color:var(--brand-color);position:relative;width:100%;height:48px;border-radius:6px;font-size:16px;font-weight:600;transition:all .3s ease}.button-lg[_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-1px);box-shadow:0 4px 12px rgba(var(--brand-color-rgb),.3)}.button-lg[_ngcontent-%COMP%]:active:not([disabled]){transform:translateY(0)}.button-lg[_ngcontent-%COMP%] .toggle-loading[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#ffffff4d;width:100%;height:100%;border-radius:6px}.button-lg[_ngcontent-%COMP%] .toggle-loading[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px;margin:auto;position:absolute;inset:0}.fb-login[_ngcontent-%COMP%]{display:flex!important;justify-content:center;align-items:center}.fb-login[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:53px}.width-50[_ngcontent-%COMP%]{width:50%!important}#ar[_nghost-%COMP%] .mat-error, #ar [_nghost-%COMP%] .mat-error, #ar[_nghost-%COMP%] .mat-mdc-form-field, #ar [_nghost-%COMP%] .mat-mdc-form-field{text-align:right!important;direction:rtl!important}#ar[_nghost-%COMP%] .mat-form-field-wrapper, #ar [_nghost-%COMP%] .mat-form-field-wrapper{padding-bottom:0!important;margin:0!important}#ar[_nghost-%COMP%] .mat-form-field-flex, #ar [_nghost-%COMP%] .mat-form-field-flex{align-items:stretch!important;padding:0!important;background:#fafafa!important;border:1px solid #E0E0E0!important;border-radius:8px!important;transition:all .3s ease!important}#ar[_nghost-%COMP%] .mat-form-field-flex:hover, #ar [_nghost-%COMP%] .mat-form-field-flex:hover{background:#f5f5f5!important}#ar[_nghost-%COMP%] .mat-form-field-infix, #ar [_nghost-%COMP%] .mat-form-field-infix{padding:16px 20px!important;border-top:0!important;width:auto!important}#ar[_nghost-%COMP%] .mat-form-field-label-wrapper, #ar [_nghost-%COMP%] .mat-form-field-label-wrapper{display:none!important}#ar[_nghost-%COMP%] .mat-form-field-label, #ar [_nghost-%COMP%] .mat-form-field-label{display:none!important}#ar[_nghost-%COMP%] .mat-focused .mat-form-field-flex, #ar [_nghost-%COMP%] .mat-focused .mat-form-field-flex{border-color:#bdbdbd!important;background:#fff!important}#ar[_nghost-%COMP%] .mat-form-field-ripple, #ar [_nghost-%COMP%] .mat-form-field-ripple{display:none!important}#ar[_nghost-%COMP%] .mat-form-field-subscript-wrapper, #ar [_nghost-%COMP%] .mat-form-field-subscript-wrapper{position:absolute!important;top:100%!important;left:0!important;right:0!important;margin-top:2px!important;padding:0!important}#ar[_nghost-%COMP%] .mat-input-element, #ar [_nghost-%COMP%] .mat-input-element{height:24px!important;line-height:24px!important;font-size:16px!important;color:#424242!important}#ar[_nghost-%COMP%] .mat-input-element::placeholder, #ar [_nghost-%COMP%] .mat-input-element::placeholder{color:#9e9e9e!important;opacity:1!important}#ar[_nghost-%COMP%] textarea.mat-input-element, #ar [_nghost-%COMP%] textarea.mat-input-element{height:auto!important;min-height:100px!important;resize:vertical!important;line-height:1.5!important;padding:16px 20px!important}#ar[_nghost-%COMP%] .mat-error, #ar [_nghost-%COMP%] .mat-error{font-size:12px!important;margin-top:0!important;padding:2px 4px!important;color:#f44336!important}#ar[_nghost-%COMP%] .mat-form-field-suffix, #ar [_nghost-%COMP%] .mat-form-field-suffix{top:0!important;display:flex!important;align-items:center!important;height:100%!important}#ar[_nghost-%COMP%] .mat-form-field-suffix .mat-icon, #ar [_nghost-%COMP%] .mat-form-field-suffix .mat-icon{color:#757575!important}@media(max-width:700px){#ar[_nghost-%COMP%] .mat-form-field-infix, #ar [_nghost-%COMP%] .mat-form-field-infix{padding:12px 8px!important}}#ar[_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%], #ar [_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:16px 20px!important}#ar[_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select[_ngcontent-%COMP%], #ar [_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select[_ngcontent-%COMP%]{font-size:16px!important;color:#424242!important}#ar[_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select-placeholder[_ngcontent-%COMP%], #ar [_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select-placeholder[_ngcontent-%COMP%]{color:#9e9e9e!important}#ar[_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%], #ar [_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{height:24px!important}#ar[_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%], #ar [_nghost-%COMP%] .mat-form-field.mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{color:#424242!important}.custom-search-input[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;background-color:#fff}.countries-search[_ngcontent-%COMP%]{margin:5px;padding:5px;box-sizing:border-box;border:1px solid #e3e3e3;width:-webkit-fill-available}.field-label[_ngcontent-%COMP%]{display:block;margin-bottom:12px;font-weight:400;color:var(--brand-color);font-size:14px;line-height:1.2}.field-label[_ngcontent-%COMP%] .required-asterisk[_ngcontent-%COMP%]{color:#f44336;margin-left:2px}.otp-sent-hint[_ngcontent-%COMP%]{text-align:start;font-size:14px;line-height:1.5}.otp-sent-hint[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{unicode
1-bidi:isolate}.timer-display[_ngcontent-%COMP%]{font-size:14px}.timer-display[_ngcontent-%COMP%] .timer-countdown[_ngcontent-%COMP%]{unicode-bidi:isolate;font-variant-numeric:tabular-nums}"]})}return n})();var ke=(()=>{class n{translate;embryoService;metaService;confgServ;languageService=E(R);lang=this.languageService.currentLanguage;environmentVariables;constructor(t,i,e,C){this.translate=t,this.embryoService=i,this.metaService=e,this.confgServ=C,this.confgServ.getenvConfig().subscribe(h=>{this.environmentVariables=h}),k(()=>{let h=this.lang();this.environmentVariables&&(h=="en"?this.metaService.setTitle(`Sign In - ${this.environmentVariables?.APP_NAME}`):this.metaService.setTitle(`\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 - ${this.environmentVariables?.APP_NAME_AR}`))})}ngOnInit(){}static \u0275fac=function(i){return new(i||n)(s(F),s(U),s(ft),s(N))};static \u0275cmp=A({type:n,selectors:[["signIn"]],decls:11,vars:1,consts:[[1,"inner-container","bg-white","section-gap-lg"],[1,"container"],[1,"fx-layout-row-wrap","fx-layout-align-center-center"],[1,"fx-flex-xs-100","fx-flex-sm-100","fx-flex-md-80","fx-flex-lg-70","fx-flex-xl-70"],[1,"fx-flex-xs-100","fx-flex-sm-100","fx-flex-md-50","fx-flex-lg-50","fx-flex-xl-50"],[1,"form-img","py-3"],["loading","lazy","alt","login-img","title","login-img",1,"object-fit-contain","w-100",3,"src"],[1,"sign-in-form","form-margin","p-0"]],template:function(i,e){i&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",2)(5,"div",4)(6,"div",5),f(7,"img",6),m()(),l(8,"div",4)(9,"mat-card",7),f(10,"embryo-SignIn"),m()()()()()()()),i&2&&(o(7),b("src",e.environmentVariables.LOGIN_PAGE_IMAGE?e.environmentVariables.LOGIN_PAGE_IMAGE:"/assets/images/login-img.webp",j))},dependencies:[ut,Lt],styles:[".sign-in-form[_ngcontent-%COMP%]{box-shadow:0 2px 8px #00000014!important}"]})}return n})();export{ke as SignInComponent};
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.