1import{S as N,u as S,x as I,y as A}from"./chunk-AKJBBQZ5.js";import{a as E}from"./chunk-ORFBU6TE.js";import"./chunk-T7JB4KWH.js";import{a as C,c as P,d as v,g as _,j as b,k as y,w}from"./chunk-XVXRHYJT.js";import"./chunk-QW7RWYYF.js";import{Ea as g,Ka as o,La as s,Ma as f,Mb as M,Sa as h,Z as p,Za as c,ba as u,ca as O,kc as x,xa as d,ya as a}from"./chunk-M67X4TBK.js";import"./chunk-AIVC3O6L.js";import"./chunk-YWAMULJU.js";import"./chunk-ONKAP2XS.js";import"./chunk-KL2776WL.js";import"./chunk-AMCUGSEE.js";import"./chunk-WD7UZH4L.js";import"./chunk-K7ARZJM5.js";import"./chunk-XU43R4EC.js";var T=(()=>{let e=class e{get validEmail(){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(this.email).toLowerCase())}constructor(t,i,r,l,m){this.country=t,this.platform=i,this.metrics=r,this.localStorage=l,this.request=m,this.email="",this.direccionYP="",this.countryResp=""}ngOnInit(){if(this.direccionYP=this.getIp()||this.country.getIp(),this.platform.isBrowser()){let t=this.localStorage.getItem("direccionYP");!this.direccionYP&&t&&(this.direccionYP=t),t||this.localStorage.setItem("direccionYP",this.direccionYP)}this.country.getCountry(this.direccionYP).subscribe(t=>{this.countryResp=t,this.abrioAppNotAvailable(this.countryResp,this.direccionYP)})}getIp(){let t;return this.platform.isServer()&&(t=this.request.headers["x-forwarded-for"]?this.request.headers["x-forwarded-for"].split(",")[0]:this.request.connection.remoteAddress,t==="::1"&&(t=void 0)),Array.isArray(t)&&(t=t[0]),t}abrioAppNotAvailable(t,i){this.metrics.sendEvent("AbrioAppNotAvailable",i?{country:t,direccionIP:i}:{country:t})}send(){this.metrics.sendEvent("NotAvailableOnCountryEmail",{email:this.email,direccionIP:this.direccionYP,country:this.countryResp}),alert("Thanks, your email has beend sended"),this.email=""}};e.\u0275fac=function(i){return new(i||e)(a(A),a(S),a(N),a(I),a(E,8))},e.\u0275cmp=u({type:e,selectors:[["app-not-available-in-country"]],decls:15,vars:2,consts:[[1,"not-available-view"],["src","../../assets/img/logo.svg",1,"logo"],[1,"sorry-text"],["type","email","name","email",3,"ngModel","ngModelChange"],[3,"disabled","click"],["src","../../assets/img/error-pages/kanto-iso.svg",1,"footer-img"]],template:function(i,r){i&1&&(o(0,"section",0)(1,"article"),f(2,"img",1),o(3,"p",2),c(4,"Sorry, Kanto is not available in your country."),s(),o(5,"form")(6,"fieldset")(7,"label"),c(8," Please leave us your email so we can contact you when we launch our services in your country. "),s(),o(9,"input",3),h("ngModelChange",function(m){return r.email=m}),s()(),o(10,"fieldset")(11,"button",4),h("click",function(){return r.send()}),c(12,"Send"),s()()()(),o(13,"footer"),f(14,"img",5),s()()),i&2&&(d(9),g("ngModel",r.email),d(2),g("disabled",!r.validEmail))},dependencies:[y,C,P,v,b,_],styles:["[_nghost-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%]{width:100%;height:100%;background-color:#5d44ea}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%]{margin:auto;text-align:center;color:#fff;padding-top:8em;max-width:400px}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:50%}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] .sorry-text[_ngcontent-%COMP%]{font-size:1.2em;width:69%;margin:13% auto auto;line-height:1.5em;font-weight:400}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%]{max-width:80%;margin:1em auto auto}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.8em;font-weight:400}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;margin:1em auto auto;border-radius:1em;font-size:1.3em;color:#000;padding:.3em;outline:none;border:none;text-align:center}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#00aebc;border-radius:3em;width:100%;font-weight:700;color:#fff}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] article[_ngcontent-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.8}[_nghost-%COMP%] .not-available-view[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{background:transparent;text-align:center;padding:0;width:6em;height:6em;border-color:transparent;border-width:6em;border-style:solid;border-bottom-color:#fff;border-right-color:#fff;position:absolute;right:0;bottom:0}"]});let n=e;return n})();var k=[{path:"",component:T,data:{title:"SEO.HOME.TITLE",description:"SEO.HOME.DESCRIPTION",keywords:"SEO.HOME.KEYWORDS",url:"SEO.HOME.URL",ogTitle:"SEO.HOME.OG-TITLE",ogDesc:"SEO.HOME.OG-DESC",ogImg:"SEO.HOME.OG-IMG"}}],tt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=O({type:e}),e.\u0275inj=p({imports:[M,w,x.forChild(k)]});let n=e;return n})();export{tt as NotAvailableInCountryModule};
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.