1"use strict";(self.webpackChunkskeleton=self.webpackChunkskeleton||[]).push([[433],{8433:(I,P,d)=>{d.r(P),d.d(P,{CaSecureTransactionModule:()=>Te});var _=d(6814),A=d(8110),Z=d(5297),e=d(5879),g=d(5861),h=d(7342),v=d(9066),T=d(553),b=d(9862),S=d(3822);let p=(()=>{var t;class a{get secureTransaction(){return this.services.secureTransaction}constructor(o,r){const i=new C(o,"/transatuauto/api/securetransaction",r);this.services={secureTransaction:new m(i)}}}return(t=a).\u0275fac=function(o){return new(o||t)(e.LFG(b.eN),e.LFG(S.G))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),a})();class m{constructor(a){this.http=a}init(a){var n=this;return(0,g.Z)(function*(){const o=yield n.http.get(`/init/${a}`);return console.log("response",o),o.toApiResponseWithResult()})()}getRequest(a){var n=this;return(0,g.Z)(function*(){return(yield n.http.get(`/request/${a}`)).toApiResponseWithResult()})()}setRequest(a,n,o){var r=this;return(0,g.Z)(function*(){return a=a.toLowerCase().trim(),n=n.toLowerCase().trim(),a="vendedor"==a?"seller":"buyer",n=["confirmacion","confirmation"].includes(n)?"confirm":"reject",(yield r.http.post(`/request/feedback?userType=${a}&action=${n}`,o)).toApiResponseWithResult()})()}request(a){var n=this;return(0,g.Z)(function*(){return(yield n.http.post("/request",a)).toApiResponseWithResult()})()}simple(a){var n=this;return(0,g.Z)(function*(){return(yield n.http.post("/request/simple",a)).toApiResponseWithResult()})()}}class C{constructor(a,n,o){this.http=a,this.host=n,this.appService=o,this.debug=!T.N.production}get(a){var n=this;return(0,g.Z)(function*(){try{const o=yield v.oM.fromObservable(n.http.get(n.host+a,{observe:"response",headers:n.headers,withCredentials:!0})).value();return new c(o)}catch(o){return yield n._validateError(o),new c(null,o)}})()}getOriginal(a){var n=this;return(0,g.Z)(function*(){try{return(yield v.oM.fromObservable(n.http.get(n.host+a,{observe:"response",headers:n.headers,withCredentials:!0})).value()).body}catch(o){return yield n._validateError(o),new Promise((i,E)=>{})}})()}post(a,n){var o=this;return(0,g.Z)(function*(){try{const r=yield v.oM.fromObservable(o.http.post(o.host+a,n,{observe:"response",headers:o.headers})).value();return new c(r)}catch(r){return yield o._validateError(r),new c(null,r)}})()}put(a,n){var o=this;return(0,g.Z)(function*(){try{const r=yield v.oM.fromObservable(o.http.put(o.host+a,n,{observe:"response",headers:o.headers,withCredentials:!0})).value();return new c(r)}catch(r){return yield o._validateError(r),new c(null,r)}})()}delete(a){var n=this;return(0,g.Z)(function*(){try{const o=yield v.oM.fromObservable(n.http.delete(n.host+a,{observe:"response",headers:n.headers,withCredentials:!0})).value();return new c(o)}catch(o){return yield n._validateError(o),new c(null,o)}})()}_validateError(a){var n=this;return(0,g.Z)(function*(){var r;n.debug&&console.log(a),encodeURIComponent((r=new URL(location.href)).pathname+r.search)})()}}const w=[0,201,200],O=[422];class y{constructor(a,n,o,r,i){this.status=a,this.error=n,this.errorInternal=o,this.data=r,this.info=i}isSuccess(){return h.Z.isEmptyOrNullOrUndefined(this.error)&&h.Z.isEmptyOrNullOrUndefined(this.errorInternal)&&w.indexOf(this.status)>=0}isRefused(){return O.indexOf(this.status)>=0||O.indexOf(this.errorInternal.code)>=0||O.indexOf(+this.errorInternal.detail)>=0}}class c{constructor(a,n){return a?(this.status=a.status,this.result=a.body.data,this.error=a.body.error?a.body.error.message:this.error,void(a.body.result&&w.indexOf(a.body.result.code)<0&&(this.error=a.body.result))):n?(this.status=n.status,void(this.error=n.error)):void(this.status=0)}toApiResponseWithResult(a){return this.error?new y(this.error&&+this.error.detail>0?+this.error.detail:this.status,this.error.message,this.error,null,this.error.info):new y(this.error&&+this.error.detail>0?+this.error.detail:this.status,null,this.error,a?a(this.result):this.result,null)}}var x=d(6593),s=d(3233),l=d(414),f=d(3754),u=d(6223);let U=(()=>{var t;class a{constructor(){this.message={title:"Ocurrio un error",subTitle:"Favor de intentar m\xe1s tarde",image:"https://resource.csnstatic.com/retail/latam/chileautos/tta/red-close.png",content:null}}ngOnInit(){}ngOnChanges(){this.status>0?this.setMessage():this.hasError||(this.message.title="Te has registrado",this.message.subTitle="satisfactoriamente en Transacci\xf3n
1Segura",this.message.content="Te contactaremos para <b>continuar con la transacci\xf3n</b>",this.message.image="https://resource.csnstatic.com/retail/latam/chileautos/tta/Ticket.png")}setMessage(){let o="vendedor"==this.userType.toLowerCase()?"comprador":"vendedor";2==this.status?(this.message.title=`Hemos notificado al ${o} el env\xedo de tus datos`,this.message.subTitle="\xa1Pronto estar\xe1n en contacto contigo!"):10==this.status&&(this.message.title=`Hemos notificado al ${o} acerca de tu decisi\xf3n.`,this.message.subTitle=""),this.message.image="https://resource.csnstatic.com/retail/latam/chileautos/tta/Ticket.png"}}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["product-ca-secure-transaction-message"]],inputs:{hasError:"hasError",status:"status",userType:"userType"},features:[e.TTD],decls:14,vars:4,consts:[[1,"popup"],["alt","ticket",1,"error-img",3,"src"],[3,"innerHtml"],[1,"powered"],["src","https://s3.us-west-2.amazonaws.com/chileautos.cl/extras/dilybytta.svg","alt","logoTT2","width","120px"]],template:function(o,r){1&o&&(e.TgZ(0,"div",0)(1,"h5"),e._uU(2),e.qZA(),e.TgZ(3,"h5")(4,"b"),e._uU(5),e.qZA()(),e.TgZ(6,"i"),e._UZ(7,"img",1),e.qZA(),e._UZ(8,"p",2),e.TgZ(9,"div",3)(10,"p"),e._uU(11,"Powered by"),e.qZA(),e.TgZ(12,"i"),e._UZ(13,"img",4),e.qZA()()()),2&o&&(e.xp6(2),e.Oqu(r.message.title),e.xp6(3),e.Oqu(r.message.subTitle),e.xp6(2),e.Q6J("src",r.message.image,e.LSH),e.xp6(1),e.Q6J("innerHtml",r.message.content,e.oJD))},styles:[".popup[_ngcontent-%COMP%]{background-color:#f1f1f1;padding:20px;border-radius:20px;width:350px;height:auto;color:#12a19a;display:flex;justify-content:center;flex-direction:column;text-align:center;box-shadow:5px 5px 3px #66666680;margin:0 auto;cursor:pointer}.popup[_ngcontent-%COMP%] .error-img[_ngcontent-%COMP%]{margin:15px 0;width:80px}.popup[_ngcontent-%COMP%] .powered[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:center}.popup[_ngcontent-%COMP%] .powered[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#666;font-size:12px}.boton-x[_ngcontent-%COMP%]{background-color:#12a19a;color:#fff;width:40px;height:40px;margin:0;display:flex;align-items:center;justify-content:center;border-radius:50px;font-size:13px;border:none}.boton-x[_ngcontent-%COMP%]:hover{background-color:#0c5854!important}"]}),a})();function k(t,a){1&t&&e._UZ(0,"product-spinner")}function F(t,a){1&t&&(e.TgZ(0,"p",21),e._uU(1,"Nombre no v\xe1lido"),e.qZA())}function q(t,a){1&t&&(e.TgZ(0,"p",21),e._uU(1,"Email inv\xe1lido"),e.qZA())}function J(t,a){1&t&&(e.TgZ(0,"p",21),e._uU(1,"Ingrese un tel\xe9fono v\xe1lido"),e.qZA())}function Y(t,a){1&t&&(e.TgZ(0,"p",21),e._uU(1,"Debes aceptar los T\xe9rminos y Condiciones"),e.qZA())}function R(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"h5",6)(1,"b"),e._uU(2,"Notifica al vendedor"),e.qZA(),e._uU(3," y continua en Dily by TransaTuAuto "),e.qZA(),e.TgZ(4,"div",7)(5,"input",8,9),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.response.buyer.firstName=r)}),e.qZA(),e.YNc(7,F,2,0,"p",10),e.qZA(),e.TgZ(8,"div",7)(9,"input",11,12),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.response.buyer.email=r)}),e.qZA(),e.YNc(11,q,2,0,"p",10),e.qZA(),e.TgZ(12,"div",7)(13,"div",13)(14,"span",14),e._uU(15,"+56"),e.qZA(),e.TgZ(16,"input",15,16),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.response.buyer.phone=r)}),e.qZA()(),e.YNc(18,J,2,0,"p",10),e.qZA(),e.TgZ(19,"div",7)(20,"div",17)(21,"input",18),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.hasTYC=r)}),e.qZA(),e.TgZ(22,"a",19),e._uU(23," Acepto t\xe9rminos y condiciones. "),e.qZA()(),e.YNc(24,Y,2,0,"p",10),e.qZA(),e.TgZ(25,"div",6)(26,"button",20),e.NdJ("click",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.submit())}),e._uU(27),e.qZA()()}if(2&t){const n=e.MAs(6),o=e.MAs(10),r=e.MAs(17),i=e.oxw(2);e.xp6(5),e.Q6J("ngModel",i.response.buyer.firstName),e.xp6(2),e.Q6J("ngIf",n.dirty&&i.isValidMessage("name",i.response.buyer.firstName)),e.xp6(2),e.Q6J("ngModel",i.response.buyer.email),e.xp6(2),e.Q6J("ngIf",o.dirty&&i.isValidMessage("email",i.response.buyer.email)),e.xp6(
15),e.Q6J("ngModel",i.response.buyer.phone),e.xp6(2),e.Q6J("ngIf",r.dirty&&i.isValidMessage("phone",i.response.buyer.phone)),e.xp6(3),e.Q6J("ngModel",i.hasTYC),e.xp6(3),e.Q6J("ngIf",null!=i.hasTYC&&!i.hasTYC),e.xp6(2),e.Q6J("disabled",!i.isValid()||i.isLoading),e.xp6(1),e.hij(" ",i.isLoading?"Cargando...":"Registrarse"," ")}}function L(t,a){if(1&t&&(e.TgZ(0,"div",3),e.YNc(1,k,1,0,"product-spinner",4),e.YNc(2,R,28,10,"ng-template",5),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!n.isLoading)}}function D(t,a){if(1&t&&e._UZ(0,"product-ca-secure-transaction-message",22),2&t){const n=e.oxw();e.Q6J("hasError",n.hasError)}}let V=(()=>{var t;class a{constructor(o,r,i){this.validate=o,this.stApiServices=r,this.trackingService=i,this.hasTYC=null}ngOnInit(){this.trackingService.loadTracking("transatuauto-send","transatuauto-send","transatuauto","transatuauto")}isValid(){return this.validate.isFullName(this.response.buyer.firstName)&&this.validate.isEmail(this.response.buyer.email)&&this.validate.isPhoneNumber("cl",this.response.buyer.phone)&&this.hasTYC}submit(){this.hasRequest=!0,this.isLoading=!0,this.stApiServices.secureTransaction.request(this.response).then(o=>{if(!o.isSuccess())throw new Error("Network error");this.response=o.data,this.hasError=!1,this.trackingService.sendClick({area:"securetransaction",page:"transatuauto-send",pagetype:"transatuauto-send"},"securetransaction","main-submit-form-sucess"),setTimeout(()=>{const E=o.data.partnerUrl.replace(/mail=[^&]*/,`mail=${o.data.buyer.email}`);window.location.href=E},1e3)}).catch(o=>{this.trackingService.sendClick({area:"securetransaction",page:"transatuauto-send",pagetype:"transatuauto-send"},"securetransaction","main-submit-form-error"),this.hasError=!0}).finally(()=>{this.isLoading=!1})}isValidMessage(o,r){if(r&&r.trim().length>0)switch(o){case"name":return!this.validate.isFullName(r);case"email":return!this.validate.isEmail(r);case"phone":return!this.validate.isPhoneNumber("cl",r)}return!0}}return(t=a).\u0275fac=function(o){return new(o||t)(e.Y36(l.H),e.Y36(p),e.Y36(f.G))},t.\u0275cmp=e.Xpm({type:t,selectors:[["product-ca-secure-transaction-form"]],inputs:{response:"response"},decls:4,vars:2,consts:[[1,"col-lg-12","form-container"],["class","st-form",4,"ngIf","ngIfElse"],["message",""],[1,"st-form"],[4,"ngIf"],[3,"ngIf"],[1,"mb-3"],[1,"form-group","mb0"],["type","text","placeholder","Nombre y Apellido",1,"form-control",3,"ngModel","ngModelChange"],["nameModel","ngModel"],["class","error",4,"ngIf"],["type","email","placeholder","Correo",1,"form-control",3,"ngModel","ngModelChange"],["emailModel","ngModel"],[1,"input-group"],[1,"input-group-text","st-phone"],["type","text","placeholder","Fono","maxlength","9",1,"form-control",3,"ngModel","ngModelChange"],["phoneModel","ngModel"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["href","/estaticas/terminoscondicionestratook","target","_blank","for","flexCheckDefault",1,"form-check-label","st-tyc"],["type","button",1,"btn","btn-primary","boton-y",3,"disabled","click"],[1,"error"],[3,"hasError"]],template:function(o,r){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,L,3,2,"div",1),e.YNc(2,D,1,1,"ng-template",null,2,e.W1O),e.qZA()),2&o){const i=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!r.hasRequest||r.isLoading)("ngIfElse",i)}},dependencies:[_.O5,s.O,u.Fj,u.Wl,u.JJ,u.nD,u.On,U],styles:[".st-logo[_ngcontent-%COMP%]{max-width:350px;
1min-width:200px;padding:5px}.st-header-container[_ngcontent-%COMP%]{margin-top:50px;color:#fff;display:flex;justify-content:center;flex-direction:column;margin-bottom:30px;padding:0 20px;align-items:center}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:50px 0 20px;padding:0 10px}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;color:#fff;display:contents}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-1[_ngcontent-%COMP%]{width:90px;height:auto}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-2[_ngcontent-%COMP%]{width:120px;margin-left:10px}.container-st[_ngcontent-%COMP%]{max-width:1200px}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%]{background-color:#fff;margin-left:30px;border-radius:0 0 20px 20px;display:flex;justify-content:center}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;margin:0 auto 0 20px;width:150px}.container-st[_ngcontent-%COMP%] .header-st[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0 20px;margin:30px 0 0}.show-tta[_ngcontent-%COMP%]{pointer-events:auto;opacity:1;z-index:1}.boton-y[_ngcontent-%COMP%]{width:100%;border-radius:5px;border:none;background-color:#12a19a;color:#fff;padding:8px 5px;font-size:14px;text-decoration:none}.boton-y[_ngcontent-%COMP%]:hover{background-color:#0c5854!important}.hide-tta[_ngcontent-%COMP%]{display:none}.st-form[_ngcontent-%COMP%]{background-color:#f1f1f1;width:100%;height:auto;max-width:350px;padding:30px;border-radius:20px;margin:0 auto}.st-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:none}.st-form[_ngcontent-%COMP%] .st-tyc[_ngcontent-%COMP%]{font-size:12px;margin-left:15px;text-decoration:none;color:#12a19a;font-weight:700}.st-form[_ngcontent-%COMP%] .st-phone[_ngcontent-%COMP%]{font-size:14px;display:flex;align-items:center;color:#12a19a;background-color:#12a19a0f;border:none}.st-form[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center;color:#12a19a}.form-container[_ngcontent-%COMP%]{justify-content:center;padding:10px}.form-container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:23.5px!important;font-weight:500}.error[_ngcontent-%COMP%]{color:#a70404;font-size:12px}"]}),a})();function G(t,a){1&t&&e._UZ(0,"product-spinner")}function H(t,a){1&t&&(e.TgZ(0,"p",26),e._uU(1,"Nombre no v\xe1lido"),e.qZA())}function z(t,a){1&t&&(e.TgZ(0,"p",26),e._uU(1,"Email inv\xe1lido"),e.qZA())}function Q(t,a){1&t&&(e.TgZ(0,"p",26),e._uU(1,"Ingrese un tel\xe9fono v\xe1lido"),e.qZA())}function K(t,a){1&t&&(e.TgZ(0,"p",26),e._uU(1,"Debes aceptar los T\xe9rminos y Condiciones"),e.qZA())}function B(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"h5",6)(1,"b"),e._uU(2,"Reg\xedstrate"),e.qZA(),e._uU(3," y te contactaremos"),e.qZA(),e.TgZ(4,"div",7)(5,"input",8,9),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.request.fullName=r)}),e.qZA()(),e.YNc(7,H,2,0,"p",10),e.TgZ(8,"div",7)(9,"input",11,12),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.request.email=r)}),e.qZA()(),e.YNc(11,z,2,0,"p",10),e.TgZ(12,"div",13)(13,"span",14),e._uU(14,"+56"),e.qZA(),e.TgZ(15,"input",15,16),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.request.phone=r)}),e.qZA()(),e.YNc(17,Q,2,0,"p",10),e.TgZ(18,"div",13)(19,"span",14),e._uU(20,"\xbfQu\xe9 desea hacer?"),e.qZA(),e.TgZ(21,"div",17)(22,"select",18),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.request.clientType=r)}),e.TgZ(23,"option",19),e._uU(24,"Comprar"),e.qZA(),e.TgZ(25,"option",20),e._uU(26,"Vender"),e.qZA()()()(),e.TgZ(27,"div",21)(28,"input",22),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.hasTYC=r)}),e.qZA(),e.TgZ(29,"a",23),e._uU(30," Acepto t\xe9rminos y condiciones. "),e.qZA()(),e.YNc(31,K,2,0,"p",10),e.TgZ(32,"div",24)(33,"button",25),e.NdJ("click",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.submit())}),e._uU(34),e.qZA()()}if(2&t){const n=e.MAs(6),o=e.MAs(10),r=e.MAs(16),i=e.oxw(2);e.xp6(5),e.Q6J("ngModel",i.request.fullName),e.xp6(2),e.Q6J("ngIf",n.dirty&&i.isValidMessage("name",i.request.fullName)),e.xp6(2),e.Q6J("ngModel",i.request.email),e.xp6(2),e.Q6J("ngIf",o.dirty&&i.isValidMessage("email",i.request.email)),e.xp6(4),e.Q6J("ngModel",i.request.phone),e.xp6(2),e.Q6J("ngIf",r.dirty&&i.isValidMessage("phone",i.request.phone)),e.xp6(
15),e.Q6J("ngModel",i.request.clientType),e.xp6(6),e.Q6J("ngModel",i.hasTYC),e.xp6(3),e.Q6J("ngIf",null!=i.hasTYC&&!i.hasTYC),e.xp6(2),e.Q6J("disabled",!i.isValid()||i.isLoading),e.xp6(1),e.hij(" ",i.isLoading?"Cargando...":"Registrarse"," ")}}function W(t,a){if(1&t&&(e.TgZ(0,"div",3),e.YNc(1,G,1,0,"product-spinner",4),e.YNc(2,B,35,11,"ng-template",5),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!n.isLoading)}}function X(t,a){if(1&t&&e._UZ(0,"product-ca-secure-transaction-message",27),2&t){const n=e.oxw();e.Q6J("hasError",n.hasError)}}let j=(()=>{var t;class a{constructor(o,r,i){this.validate=o,this.stApiServices=r,this.trackingService=i,this.hasTYC=null,this.request={clientType:1,email:"",fullName:"",phone:"",rut:"11111111-1"}}ngOnInit(){this.trackingService.loadTracking("transatuauto-send","transatuauto-send","transatuauto","transatuauto"),this.request.clientType="vendedor"==this.userType.toLocaleLowerCase().trim()?2:1}isValid(){return this.validate.isFullName(this.request.fullName)&&this.validate.isEmail(this.request.email)&&this.validate.isPhoneNumber("cl",this.request.phone)&&this.hasTYC}submit(){this.hasRequest=!0,this.isLoading=!0,this.stApiServices.secureTransaction.simple(this.request).then(o=>{if(!o.isSuccess())throw new Error("Network error");this.trackingService.sendClick({area:"securetransaction",page:"transatuauto-send",pagetype:"transatuauto-send"},"securetransaction","landing-submit-form"),this.hasError=!1}).catch(o=>{this.hasError=!0}).finally(()=>{this.isLoading=!1})}isValidMessage(o,r){if(r&&r.trim().length>0)switch(o){case"name":return!this.validate.isFullName(r);case"email":return!this.validate.isEmail(r);case"phone":return!this.validate.isPhoneNumber("cl",r)}return!0}}return(t=a).\u0275fac=function(o){return new(o||t)(e.Y36(l.H),e.Y36(p),e.Y36(f.G))},t.\u0275cmp=e.Xpm({type:t,selectors:[["product-ca-secure-transaction-generic-form"]],inputs:{userType:"userType"},decls:4,vars:2,consts:[[1,"col-lg-12","form-container"],["class","st-form",4,"ngIf","ngIfElse"],["message",""],[1,"st-form"],[4,"ngIf"],[3,"ngIf"],[1,"mb0"],[1,"form-group","mb0"],["type","text","placeholder","Nombre y Apellido",1,"form-control",3,"ngModel","ngModelChange"],["nameModel","ngModel"],["class","error",4,"ngIf"],["type","email","placeholder","Correo",1,"form-control",3,"ngModel","ngModelChange"],["emailModel","ngModel"],[1,"input-group","form-group","mb0"],[1,"input-group-text","st-phone"],["type","text","placeholder","Fono","maxlength","9",1,"form-control",3,"ngModel","ngModelChange"],["phoneModel","ngModel"],[1,"select-wrapper"],[1,"form-control","select-overload",3,"ngModel","ngModelChange"],["value","1"],["value","2"],[1,"form-check","form-group","mb0"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["href","/estaticas/terminoscondicionestratook","target","_blank","for","flexCheckDefault",1,"form-check-label","st-tyc"],[1,"mb-3"],["type","button",1,"btn","btn-primary","boton-y",3,"disabled","click"],[1,"error"],[3,"hasError"]],template:function(o,r){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,W,3,2,"div",1),e.YNc(2,X,1,1,"ng-template",null,2,e.W1O),e.qZA()),2&o){const i=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!r.hasRequest||r.isLoading)("ngIfElse",i)}},dependencies:[_.O5,s.O,u.YN,u.Kr,u.Fj,u.Wl,u.EJ,u.JJ,u.nD,u.On,U],styles:['@charset "UTF-8";.st-logo[_ngcontent-%COMP%]{max-width:350px;
1min-width:200px;padding:5px}.st-header-container[_ngcontent-%COMP%]{margin-top:50px;color:#fff;display:flex;justify-content:center;flex-direction:column;margin-bottom:30px;padding:0 20px;align-items:center}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:50px 0 20px;padding:0 10px}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;color:#fff;display:contents}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-1[_ngcontent-%COMP%]{width:90px;height:auto}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-2[_ngcontent-%COMP%]{width:120px;margin-left:10px}.select-wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block}.select-wrapper[_ngcontent-%COMP%]:after{content:"\\25bc";position:absolute;top:50%;right:10px;pointer-events:none;transform:translateY(-50%)}.select-overload[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;background:none;padding-right:30px;background-color:#fff}.container-st[_ngcontent-%COMP%]{max-width:1200px}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%]{background-color:#fff;margin-left:30px;border-radius:0 0 20px 20px;display:flex;justify-content:center}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;margin:0 auto 0 20px;width:150px}.container-st[_ngcontent-%COMP%] .header-st[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0 20px;margin:30px 0 0}.show-tta[_ngcontent-%COMP%]{pointer-events:auto;opacity:1;z-index:1}.boton-y[_ngcontent-%COMP%]{width:100%;border-radius:5px;border:none;background-color:#12a19a;color:#fff;padding:8px 5px;font-size:14px;text-decoration:none}.boton-y[_ngcontent-%COMP%]:hover{background-color:#0c5854!important}.hide-tta[_ngcontent-%COMP%]{display:none}.st-form[_ngcontent-%COMP%]{background-color:#f1f1f1;width:100%;height:auto;max-width:450px;padding:30px;border-radius:20px;margin:0 auto}.st-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:none}.st-form[_ngcontent-%COMP%] .st-tyc[_ngcontent-%COMP%]{font-size:12px;margin-left:15px;text-decoration:none;color:#12a19a;font-weight:700}.st-form[_ngcontent-%COMP%] .st-phone[_ngcontent-%COMP%]{font-size:14px;display:flex;align-items:center;color:#12a19a;background-color:#12a19a0f;border:none}.st-form[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center;color:#12a19a}.form-container[_ngcontent-%COMP%]{justify-content:center;padding:10px}.form-container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:23.5px!important;font-weight:500}.error[_ngcontent-%COMP%]{color:#a70404;font-size:12px}']}),a})();function $(t,a){if(1&t&&(e.TgZ(0,"i"),e._UZ(1,"img",6),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("src",n.message.image,e.LSH)}}function ee(t,a){if(1&t&&e._UZ(0,"i"),2&t){const n=e.oxw();e.Tol("icon "+n.message.icon)}}let te=(()=>{var t;class a{constructor(){}ngOnInit(){this.getError()}getError(){switch(this.code){case 400:this.message={image:"",title:this.message.title?this.message.title:"Informaci\xf3n",subTitle:this.message.subTitle?this.message.subTitle:"Error no especificado 400",icon:"fas fa-car-crash"};break;case 404:default:this.message={title:this.message.title?this.message.title:"Informaci\xf3n",subTitle:this.message.subTitle?this.message.subTitle:"Servicio no disponible",icon:"fas fa-car-crash"};break;case 500:this.message={title:this.message.title?this.message.title:"Informaci\xf3n",subTitle:this.message.subTitle?this.message.subTitle:"Error no especificado 500",icon:"fas fa-car-crash"}}}}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["product-ca-secure-transaction-http-error"]],inputs:{message:"message",code:"code"},decls:14,vars:5,consts:[[1,"popup"],[4,"ngIf"],[3,"class",4,"ngIf"],[3,"innerHtml"],[1,"powered"],["src","https://resource.csnstatic.com/retail/latam/chileautos/tta/logo_fondo_oscuro_1.png","alt","TTA","width","120px"],["alt","ticket",1,"error-img",3,"src"]],template:function(o,r){1&o&&(e.TgZ(0,"div",0)(1,"h5"),e._uU(2),e.qZA(),e.TgZ(3,"h5")(4,"b"),e._uU(5),e.qZA()(),e.YNc(6,$,2,1,"i",1),e.YNc(7,ee,1,2,"i",2),e._UZ(8,"p",3),e.TgZ(9,"div",4)(10,"p"),e._uU(11,"Powered by"),e.qZA(),e.TgZ(12,"i"),e._UZ(13,"img",5),e.qZA()()()),2&o&&(e.xp6(2),e.Oqu(r.message.title),e.xp6(3),e.Oqu(r.message.subTitle),e.xp6(1),e.Q6J("ngIf",r.message.image),e.xp6(1),e.Q6J("ngIf",r.message.icon),e.xp6(1),e.Q6J("innerHtml",r.message.content,e.oJD))},dependencies:[_.O5],styles:[".popup[_ngcontent-%COMP%]{background-color:#f1f1f1;padding:20px;border-radius:20px;width:350px;height:auto;color:#12a19a;display:flex;justify-content:center;flex-direction:column;text-align:center;box-shadow:5px 5px 3px #66666680;margin:0 auto;cursor:pointer}.popup[_ngcontent-%COMP%] .error-img[_ngcontent-%COMP%]{margin:15px 0;width:80px}.popup[_ngcontent-%COMP%] .powered[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:center}.popup[_ngcontent-%COMP%] .powered[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#666;font-size:12px}.boton-x[_ngcontent-%COMP%]{background-color:#12a19a;color:#fff;width:40px;height:40px;margin:0;display:flex;align-items:center;justify-content:center;border-radius:50px;font-size:13px;border:none}.boton-x[_ngcontent-%COMP%]:hover{background-color:#0c5854!important}.icon[_ngcontent-%COMP%]{font-size:3rem;margin-top:15px}"]}),a})();function ne(t,a){1&t&&e._UZ(0,"product-spinner")}function oe(t,a){1&t&&(e.TgZ(0,"p",12),e._uU(1,"Debes aceptar los T\xe9rminos y Condiciones"),e.qZA())}function re(t,a){if(1&t){const n=e.EpF();e.TgZ(0,"h5",6)(1,"b"),e._uU(2,"\xbfContinuar"),e.qZA(),e._uU(3," proceso de venta?"),e.qZA(),e.TgZ(4,"div",7)(5,"input",8),e.NdJ("ngModelChange",function(r){e.CHM(n);const i=e.oxw(2);return e.KtG(i.hasTYC=r)}),e.qZA(),e.TgZ(6,"a",9),e._uU(7," Acepto t\xe9rminos y condiciones. "),e.qZA()(),e.YNc(8,oe,2,0,"p",10),e.TgZ(9,"div",6)(10,"button",11),e.NdJ("click",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.submit())}),e._uU(11),e.qZA()()}if(2&t){const n=e.oxw(2);e.xp6(5),e.Q6J("ngModel",n.hasTYC),e.xp6(3),e.Q6J("ngIf",null!=n.hasTYC&&!n.hasTYC),e.xp6(2),e.Q6J("disabled",!n.isValid()||n.isLoading),e.xp6(1),e.hij(" ",n.isLoading?"Cargando...":"Confirmar"," ")}}function ae(t,a){if(1&t&&(e.TgZ(0,"div",3),e.YNc(1,ne,1,0,"product-spinner",4),e.YNc(2,re,12,4,"ng-template",5),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!n.isLoading)}}function ie(t,a){if(1&t&&e._UZ(0,"product-ca-secure-transaction-message",13),2&t){const n=e.oxw();e.Q6J("hasError",n.hasError)("status",null==n.response?null:n.response.status)("userType",n.userType)}}let se=(()=>{var t;class a{constructor(o,r,i){this.validate=o,this.stApiServices=r,this.trackingService=i,this.hasTYC=null,this.message={title:"",subTitle:"",image:"https://resource.csnstatic.com/retail/latam/chileautos/tta/red-close.png"}}ngOnInit(){this.trackingService.loadTracking("transatuauto-send","transatuauto-send","transatuauto","transatuauto")}ngOnChanges(){this.response?.status>2?(this.hasRequest=!0,this.hasError=!1):"rechazo"==this.action.toLowerCase().trim()&&(this.response.status=10,this.submit())}isValid(){return this.hasTYC}submit(){this.hasRequest=!0,this.isLoading=!0,this.stApiServices.secureTransaction.setRequest
1(this.userType,this.action,this.response).then(o=>{if(!o.isSuccess())throw new Error("Network error");o.isSuccess()?(this.trackingService.sendClick({area:"securetransaction",page:"transatuauto-send",pagetype:"transatuauto-send"},"securetransaction","main-submit-approve-form-success"),o.data.partnerUrl&&(window.location.href=o.data.partnerUrl)):(this.trackingService.sendClick({area:"securetransaction",page:"transatuauto-send",pagetype:"transatuauto-send"},"securetransaction","main-submit-approve-form-error"),this.hasError=!o.isSuccess())}).catch(o=>{this.trackingService.sendClick({area:"securetransaction",page:"transatuauto-send",pagetype:"transatuauto-send"},"securetransaction","main-submit-approve-form-error"),this.hasError=!0}).finally(()=>{this.isLoading=!1})}}return(t=a).\u0275fac=function(o){return new(o||t)(e.Y36(l.H),e.Y36(p),e.Y36(f.G))},t.\u0275cmp=e.Xpm({type:t,selectors:[["product-ca-secure-transaction-seller-form"]],inputs:{action:"action",userType:"userType",response:"response"},features:[e.TTD],decls:4,vars:2,consts:[[1,"col-lg-12","form-container"],["class","st-form",4,"ngIf","ngIfElse"],["message",""],[1,"st-form"],[4,"ngIf"],[3,"ngIf"],[1,"mb-3"],[1,"form-check","mb-3"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["href","/estaticas/terminoscondicionestratook","target","_blank","for","flexCheckDefault",1,"form-check-label","st-tyc"],["class","error",4,"ngIf"],["type","button",1,"btn","btn-primary","boton-y",3,"disabled","click"],[1,"error"],[3,"hasError","status","userType"]],template:function(o,r){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,ae,3,2,"div",1),e.YNc(2,ie,1,3,"ng-template",null,2,e.W1O),e.qZA()),2&o){const i=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!r.hasRequest||r.isLoading)("ngIfElse",i)}},dependencies:[_.O5,s.O,u.Wl,u.JJ,u.On,U],styles:[".st-logo[_ngcontent-%COMP%]{max-width:350px;
1min-width:200px;padding:5px}.st-header-container[_ngcontent-%COMP%]{margin-top:50px;color:#fff;display:flex;justify-content:center;flex-direction:column;margin-bottom:30px;padding:0 20px;align-items:center}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:50px 0 20px;padding:0 10px}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;color:#fff;display:contents}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-1[_ngcontent-%COMP%]{width:90px;height:auto}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-2[_ngcontent-%COMP%]{width:120px;margin-left:10px}.container-st[_ngcontent-%COMP%]{max-width:1200px}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%]{background-color:#fff;margin-left:30px;border-radius:0 0 20px 20px;display:flex;justify-content:center}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;margin:0 auto 0 20px;width:150px}.container-st[_ngcontent-%COMP%] .header-st[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0 20px;margin:30px 0 0}.show-tta[_ngcontent-%COMP%]{pointer-events:auto;opacity:1;z-index:1}.boton-y[_ngcontent-%COMP%]{width:100%;border-radius:5px;border:none;background-color:#12a19a;color:#fff;padding:8px 5px;font-size:14px;text-decoration:none}.boton-y[_ngcontent-%COMP%]:hover{background-color:#0c5854!important}.hide-tta[_ngcontent-%COMP%]{display:none}.st-form[_ngcontent-%COMP%]{background-color:#f1f1f1;width:100%;height:auto;max-width:350px;padding:30px;border-radius:20px;margin:0 auto}.st-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:none}.st-form[_ngcontent-%COMP%] .st-tyc[_ngcontent-%COMP%]{font-size:12px;margin-left:15px;text-decoration:none;color:#12a19a}.st-form[_ngcontent-%COMP%] .st-phone[_ngcontent-%COMP%]{font-size:14px;display:flex;align-items:center;color:#12a19a;background-color:#12a19a0f;border:none}.st-form[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center;color:#12a19a}.form-container[_ngcontent-%COMP%]{justify-content:center;padding:10px;min-width:350px}.form-container[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-weight:700}.error[_ngcontent-%COMP%]{color:#a70404;font-size:12px}"]}),a})();function ce(t,a){1&t&&(e.TgZ(0,"div")(1,"h4"),e._uU(2," Compra tu pr\xf3ximo auto de manera segura sin moverte de tu casa. Custodiamos tu dinero mientras se realiza la transferencia. "),e.qZA()())}function le(t,a){1&t&&(e.TgZ(0,"div")(1,"h4"),e._uU(2," Vende tu pr\xf3ximo auto de manera segura sin moverte de tu casa "),e.qZA(),e.TgZ(3,"ul",52)(4,"li")(5,"div")(6,"span"),e._uU(7," Custodiamos tu dinero "),e.qZA()()(),e.TgZ(8,"li")(9,"div")(10,"span"),e._uU(11," Gestionamos tu transferencia 100% digital "),e.qZA()()()()())}function de(t,a){1&t&&e._UZ(0,"product-spinner",53)}function pe(t,a){if(1&t&&e._UZ(0,"product-ca-secure-transaction-http-error",54),2&t){const n=e.oxw();e.Q6J("message",n.message)("code",n.statusCode)}}function ue(t,a){if(1&t&&(e.TgZ(0,"div",55),e._UZ(1,"product-ca-secure-transaction-generic-form",56),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("userType",n.userType)}}function ge(t,a){if(1&t&&e._UZ(0,"product-ca-secure-transaction-seller-form",59),2&t){const n=e.oxw(3);e.Q6J("response",n.requestResponse)("userType",n.userType)("action",n.action)}}function me(t,a){if(1&t&&(e.TgZ(0,"div",55),e.YNc(1,ge,1,3,"product-ca-secure-transaction-seller-form",58),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.requestResponse)}}function he(t,a){if(1&t&&e._UZ(0,"product-ca-secure-transaction-form",61),2&t){const n=e.oxw(3);e.Q6J("response",n.response)}}function fe(t,a){if(1&t&&e.YNc(0,he,1,1,"product-ca-secure-transaction-form",60),2&t){const n=e.oxw(2);e.Q6J("ngIf",n.response)}}function _e(t,a){if(1&t&&(e.YNc(0,me,2,1,"div",14),e.YNc(1,fe,1,1,"ng-template",null,57,e.W1O)),2&t){const n=e.MAs(2),o=e.oxw();e.Q6J("ngIf",o.updateFlow)("ngIfElse",n)}}let N=(()=>{var t;class a{constructor(o,r,i){this.stApiServices=o,this.route=r,this.titleService=i,this.isLoading=!0,this.isGenericFlow=!1,this.details=[],this.identifier=this.route.
1snapshot.paramMap.get("identifier"),this.userType=this.route.snapshot.paramMap.get("type"),this.route.queryParams.subscribe(E=>{this.action=E.action}),this.titleService.setTitle("Transacci\xf3n Segura")}ngOnInit(){this.init(this.identifier)}init(o){this.stApiServices.secureTransaction.init(o).then(r=>{200===r.status?this.response=r.data:(this.statusCode=r.status,this.message={subTitle:r.info},this.hasError=!0)}).finally(()=>{this.isLoading=!1})}getRequest(o){this.stApiServices.secureTransaction.getRequest(o).then(r=>{200===r.status?this.requestResponse=r.data:(this.statusCode=r.status,this.message={subTitle:r.info},this.hasError=!0)}).finally(()=>{this.isLoading=!1})}}return(t=a).\u0275fac=function(o){return new(o||t)(e.Y36(p),e.Y36(Z.gz),e.Y36(x.Dx))},t.\u0275cmp=e.Xpm({type:t,selectors:[["product-ca-secure-transaction"]],decls:137,vars:6,consts:[[1,"row","secure_transaction"],[1,"container-st"],[1,"row","header-st"],[1,"col-lg-12"],[1,"hero-st"],[1,"p-1"],["src","https://s3.us-west-2.amazonaws.com/chileautos.cl/extras/dilybytta.svg","alt","logo-dily-color",1,"img-fluid","mt-2","mb-2"],[1,"col-lg-7","col-md-6","col-sm-12","st-header-container"],["src","https://s3.us-west-2.amazonaws.com/chileautos.cl/extras/transaccion-segura-less-borders.png","alt","logo-transaccion-segura",1,"st-logo"],[1,"row","p-3"],["src","https://s3.us-west-2.amazonaws.com/chileautos.cl/extras/logo-dily-chileautos-color-blanco.png","alt","logo-dily-chileautos-blanco",1,"logo-1"],[4,"ngIf"],["class","col-lg-4 col-md-6 col-sm-12 st-form",4,"ngIf"],["class","col-lg-4 col-md-6 col-sm-12",3,"message","code",4,"ngIf"],["class","col-lg-4 col-md-6 col-sm-12",4,"ngIf","ngIfElse"],["other",""],["src","https://resource.csnstatic.com/retail/latam/chileautos/tta/wave.png","alt","forma",1,"wave"],[1,"cards-container"],[1,"color-base","text-center"],[1,"container-fluid","row"],[1,"col-sm","mb-3","card-container"],[1,"card","text-center","bordered"],[1,"card-header","header-tratook","color-white"],["src","https://s3.us-west-2.amazonaws.com/chileautos.cl/extras/transaccion-segura-less-borders.png","alt","logo-transaccion-segura","height","60px",1,"st-logo"],[1,"card-body"],[1,"row"],[1,"col-md-4"],[1,"color-base-light","step-size"],[1,"col-md-8","align-items-center","content-center","content-center"],[1,"card-text","card-text-size","text-center","custom-card-text-size"],[1,"card-footer","sized-footer","content-center"],[1,"card-text"],[1,"card-header","header-tta","color-white"],["src","https://s3.us-west-2.amazonaws.com/chileautos.cl/extras/dily_blanco.svg","alt","logo-dily-blanco","height","60px",1,"logo-1"],[1,"color-tta","step-size"],[1,"col-md-8","align-items-center","content-center"],[1,"color-tta"],[1,"row","align-items-center","justify-content-center"],[1,"col"],[1,"steps-tratook"],[1,"steps-tta"],[1,"line"],[1,"row","st-footer"],[1,"row","container-st"],[1,"container"],[1,"col-md-4","mb-3","card-container"],[1,"img-container"],["src"," https://cdn-icons-png.flaticon.com/512/590/590501.png ","width","90","height","90"],[1,"card-header","header-tratook-beneficios","color-white"],[1,"card-footer","sized-footer-tratook"],["src"," https://cdn-icons-png.flaticon.com/512/71/71227.png ","width","90","height","90"],["src"," https://cdn-icons-png.flaticon.com/512/2770/2770647.png ","width","90","height","90"],[1,"ul-details"],[1,"col-lg-4","col-md-6","col-sm-12","st-form"],[1,"col-lg-4","col-md-6","col-sm-12",3,"message","code"],[1,"col-lg-4","col-md-6","col-sm-12"],[3,"userType"],["normalFlow",""],[3,"response","userType","action",4,"ngIf"],[3,"response","userType","action"],["class","col-lg-4 col-md-6 col-sm-12",3,"response",4,"ngIf"],[1,"col-lg-4","col-md-6","col-sm-12",3,"response"]],template:function(o,r){if(1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),e._UZ(6,"img",6),e.qZA()()(),e.TgZ(7,"div",7),e._UZ(8,"img",8),e.TgZ(9,"div",9),e._UZ(10,"img",10),e.qZA(),e.YNc(11,ce,3,0,"div",11),e.YNc(12,le,12,0,"div",11),e.qZA(),e.YNc(13,de,1,0,"product-spinner",12),e.YNc(14,pe,1,2,"product-ca-secure-transaction-http-error",13),e.YNc(15,ue,2,1,"div",14),e.YNc(16,_e,3,2,"ng-template",null,15,e.W1O),e.qZA()(),e._UZ(18,"img",16),e.qZA(),e.TgZ(19,"div",17)(20,"h5",18),e._uU(21,"Pasos para comprar con Transacci\xf3n
1Segura"),e.qZA(),e._UZ(22,"br"),e.TgZ(23,"div",19)(24,"div",20)(25,"div",21)(26,"div",22),e._UZ(27,"img",23),e.qZA(),e.TgZ(28,"div",24)(29,"div",25)(30,"div",26)(31,"h1",27),e._uU(32,"1"),e.qZA()(),e.TgZ(33,"div",28)(34,"p",29),e._uU(35,"Completar formulario"),e.qZA()()()(),e.TgZ(36,"div",30)(37,"p",31),e._uU(38,"Notificamos al vendedor que est\xe1s interesado en su veh\xedculo y ser\xe1s redirigido al sitio de Dily by TransaTuAuto."),e.qZA()()()(),e.TgZ(39,"div",20)(40,"div",21)(41,"div",32),e._UZ(42,"img",33),e.qZA(),e.TgZ(43,"div",24)(44,"div",25)(45,"div",26)(46,"h1",34),e._uU(47,"2"),e.qZA()(),e.TgZ(48,"div",28)(49,"p",29),e._uU(50,"Pago veh\xedculo"),e.qZA()()()(),e.TgZ(51,"div",30)(52,"p",31),e._uU(53,"Registrate en Dily by TransaTuAuto y paga el veh\xedculo con cualquier medio de pago."),e.qZA()()()(),e.TgZ(54,"div",20)(55,"div",21)(56,"div",32),e._UZ(57,"img",33),e.qZA(),e.TgZ(58,"div",24)(59,"div",25)(60,"div",26)(61,"h1",34),e._uU(62,"3"),e.qZA()(),e.TgZ(63,"div",35)(64,"span",29),e._uU(65,"Firma transferencia digital "),e.TgZ(66,"h5",36),e._uU(67,"Opcional"),e.qZA()()()()(),e.TgZ(68,"div",30)(69,"p",31),e._uU(70,"Realiza la transferencia del veh\xedculo. Puedes hacerlo de manera digital en Dily by TransaTuAuto o presencial en Notaria o Registro Civil."),e.qZA()()()(),e.TgZ(71,"div",20)(72,"div",21)(73,"div",32),e._UZ(74,"img",33),e.qZA(),e.TgZ(75,"div",24)(76,"div",25)(77,"div",26)(78,"h1",34),e._uU(79,"4"),e.qZA()(),e.TgZ(80,"div",35)(81,"p",29),e._uU(82,"Entrega veh\xedculo"),e.qZA()()()(),e.TgZ(83,"div",30)(84,"p",31),e._uU(85,"Al momento de la entrega del veh\xedculo notificamos al vendedor y se libera el pago inmediatamente al escanear el c\xf3digo QR entregado."),e.qZA()()()()(),e.TgZ(86,"div",37)(87,"div",38),e._UZ(88,"div",39),e.qZA(),e.TgZ(89,"div",38)(90,"div",40),e._UZ(91,"span",41),e.qZA()(),e.TgZ(92,"div",38)(93,"div",40),e._UZ(94,"span",41),e.qZA()(),e.TgZ(95,"div",38),e._UZ(96,"div",40),e.qZA()()(),e._UZ(97,"br"),e.TgZ(98,"div",42)(99,"div",43)(100,"div",44)(101,"h5",18),e._uU(102,"Beneficios Transacci\xf3n Segura"),e.qZA(),e.TgZ(103,"div",25)(104,"div",45)(105,"div",46),e._UZ(106,"img",47),e.qZA(),e._UZ(107,"br"),e.TgZ(108,"div",21)(109,"div",48)(110,"h4"),e._uU(111,"Pago seguro"),e.qZA()(),e.TgZ(112,"div",49)(113,"p",31),e._uU(114,"No se entrega el dinero hasta que el auto sea tuyo."),e.qZA()()()(),e.TgZ(115,"div",45)(116,"div",46),e._UZ(117,"img",50),e.qZA(),e._UZ(118,"br"),e.TgZ(119,"div",21)(120,"div",48)(121,"h4"),e._uU(122,"Facilidades de pago"),e.qZA()(),e.TgZ(123,"div",49)(124,"p",31),e._uU(125,"Tarjetas, transferencias bancarias o cr\xe9dito automotriz."),e.qZA()()()(),e.TgZ(126,"div",45)(127,"div",46),e._UZ(128,"img",51)(129,"br"),e.qZA(),e.TgZ(130,"div",21)(131,"div",48)(132,"h4"),e._uU(133,"Ahorro de tiempo"),e.qZA()(),e.TgZ(134,"div",49)(135,"p",31),e._uU(136,"Puedes realizar la transferencia del veh\xedculo de manera digital."),e.qZA()()()()()()()()),2&o){const i=e.MAs(17);e.xp6(11),e.Q6J("ngIf","comprador"==r.userType||!r.userType),e.xp6(1),e.Q6J("ngIf","vendedor"==r.userType),e.xp6(1),e.Q6J("ngIf",r.isLoading),e.xp6(1),e.Q6J("ngIf",!r.isLoading&&r.hasError),e.xp6(1),e.Q6J("ngIf",r.isGenericFlow)("ngIfElse",i)}},dependencies:[_.O5,s.O,V,j,te,se],styles:[".secure_transaction[_ngcontent-%COMP%]{height:auto;background-image:linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.7)),url(http://resource.csnstatic.com/retail/latam/chileautos/tta/shutterstock_1.png);background-repeat:no-repeat;background-size:cover;background-position:center;position:relative;justify-content:center}.st-logo[_ngcontent-%COMP%]{max-width:350px;
1min-width:200px;padding:5px}.st-header-container[_ngcontent-%COMP%]{margin-top:50px;color:#fff;display:flex;justify-content:center;flex-direction:column;margin-bottom:30px;padding:0 20px;align-items:center}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:50px 0 20px;padding:0 10px}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;color:#fff;display:contents}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-1[_ngcontent-%COMP%]{width:90px;height:auto}.st-header-container[_ngcontent-%COMP%] .powered-container[_ngcontent-%COMP%] .logo-2[_ngcontent-%COMP%]{width:120px;margin-left:10px}.card-container[_ngcontent-%COMP%]{padding-right:30px!important;padding-left:30px!important}.card-container-opcional[_ngcontent-%COMP%]{padding-right:10px!important;padding-left:10px!important}.bordered[_ngcontent-%COMP%]{border-radius:15px!important}.img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:auto;display:block}.center[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:50%}.step-size[_ngcontent-%COMP%]{font-size:100px}.card-text-size[_ngcontent-%COMP%]{font-size:26px}.tta-size[_ngcontent-%COMP%]{width:285px;height:73px}.header-tta[_ngcontent-%COMP%]{background-color:#ff0e69;border-top-right-radius:15px!important;border-top-left-radius:15px!important}.header-tratook[_ngcontent-%COMP%]{background-color:#10d5cc;border-top-right-radius:15px!important;border-top-left-radius:15px!important}.header-tratook-beneficios[_ngcontent-%COMP%]{background-color:#12a19a;border-top-right-radius:15px!important;border-top-left-radius:15px!important}.icon[_ngcontent-%COMP%]{width:200px;height:100%}.color-white[_ngcontent-%COMP%]{color:#f1f1f1}.container-st[_ngcontent-%COMP%]{max-width:1200px}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%]{background-color:#fff;margin-left:30px;border-radius:0 0 20px 20px;max-width:150px}.container-st[_ngcontent-%COMP%] .hero-st[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 auto;display:block;width:180px}.container-st[_ngcontent-%COMP%] .header-st[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0 20px;margin:30px 0 0}.popup[_ngcontent-%COMP%]{background-color:#f1f1f1;padding:20px;border-radius:20px;width:350px;height:auto;color:#12a19a;position:absolute;display:flex;justify-content:center;flex-direction:column;text-align:center;box-shadow:5px 5px 3px #66666680;opacity:0;cursor:pointer;z-index:-1}.show-tta[_ngcontent-%COMP%]{pointer-events:auto;opacity:1;z-index:1}.boton-x[_ngcontent-%COMP%]{background-color:#12a19a;color:#fff;width:40px;height:40px;margin:0;display:flex;align-items:center;justify-content:center;border-radius:50px;font-size:13px;border:none}.boton-y[_ngcontent-%COMP%]{width:100%;border-radius:5px;border:none;background-color:#12a19a;color:#fff;padding:8px 5px;margin-top:30px;font-size:14px;text-decoration:none}.boton-y[_ngcontent-%COMP%]:hover, .boton-x[_ngcontent-%COMP%]:hover{background-color:#0c5854!important}.hide-tta[_ngcontent-%COMP%]{display:none}.st-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#fff}body[_ngcontent-%COMP%]{overflow-x:hidden}.st-form[_ngcontent-%COMP%]{background-color:#f1f1f1;border-radius:20px;align-items:center;display:flex;justify-content:center;height:200px;margin:0 auto}.ul-details[_ngcontent-%COMP%]{margin:50px 0}.ul-details[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:18px 0;color:#12a19a}.ul-details[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center}.ul-details[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{box-shadow:0 3px 10px #0003}.color-base[_ngcontent-%COMP%]{color:#12a19a}.color-base-light[_ngcontent-%COMP%]{color:#10d5cc}.color-tta[_ngcontent-%COMP%]{color:#ff0e69}.sized-footer[_ngcontent-%COMP%]{height:145px;border-bottom-left-radius:15px!important;border-bottom-right-radius:15px!important}.card-body[_ngcontent-%COMP%]{height:190px}.cards-container[_ngcontent-%COMP%]{float:none;margin:auto;max-width:75%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.sized-footer-tratook[_ngcontent-%COMP%]{height:80px;border-bottom-left-radius:15px!important;border-bottom-right-radius:15px!important}.content-center[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.footer-div[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0 50px}.footer-container[_ngcontent-%COMP%]{align-items:center;padding:0 50px}
1.wave[_ngcontent-%COMP%]{width:100%;padding:0;margin:0;transform:translateY(5px)}.progresses[_ngcontent-%COMP%]{display:flex;align-items:center}.line[_ngcontent-%COMP%]{border-bottom:1px solid grey;position:absolute;top:10px;width:200%;z-index:-1}.steps-tratook[_ngcontent-%COMP%]{display:flex;background-color:#10d5cc;color:#10d5cc;font-size:14px;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;margin:auto}.steps-tta[_ngcontent-%COMP%]{display:flex;background-color:#ff0e69;color:#ff0e69;font-size:14px;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;margin:auto}@media only screen and (max-width: 1700px){.cards-container[_ngcontent-%COMP%]{float:none;margin:auto;max-width:100%}}@media only screen and (max-width: 767px){.row.align-items-center.justify-content-center[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width: 768px){.custom-card-text-size[_ngcontent-%COMP%]{font-size:14px;font-weight:700;word-wrap:break-word}}@media only screen and (min-width: 576px) and (max-width: 605px){.card-text-size[_ngcontent-%COMP%]{font-size:14px}h5.color-tta[_ngcontent-%COMP%]{font-size:12px;display:inline}}"]}),a})();const Ce=[{path:":identifier/:type",component:N},{path:":identifier",component:N},{path:"landing/:type",pathMatch:"full",component:N}];let xe=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Z.Bz.forChild(Ce)]}),a})(),Te=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[_.ez,A.m,xe]}),a})()},414:(I,P,d)=>{d.d(P,{H:()=>y});var _=d(7342);const e=new Map(Object.entries({AA:"1",EA:"4",HA:"7",EB:"10",HB:"13",EC:"16",HC:"19",FD:"22",AE:"25",EE:"28",HE:"31",CF:"34",GF:"37",BG:"40",FG:"43",BH:"46",FH:"49",AJ:"52",EJ:"55",HJ:"58",EK:"61",HK:"64",CL:"67",GL:"70",BN:"73",FN:"76",AP:"79",EP:"82",HP:"85",BA:"2",FA:"5",AB:"8",FB:"11",AC:"14",FC:"17",BD:"20",GD:"23",BE:"26",FE:"29",AF:"32",EF:"35",HF:"38",CG:"41",HG:"44",CH:"47",GH:"50",BJ:"53",FJ:"56",BK:"59",FK:"62",AL:"65",EL:"68",HL:"71",CN:"74",GN:"77",BP:"80",FP:"83",AR:"86",CA:"3",GA:"6",CB:"9",GB:"12",BC:"15",GC:"18",ED:"21",HD:"24",CE:"27",GE:"30",BF:"33",FF:"36",AG:"39",EG:"42",AH:"45",EH:"48",HH:"51",CJ:"54",GJ:"57",CK:"60",GK:"63",BL:"66",FL:"69",AN:"72",EN:"75",HN:"78",CP:"81",GP:"84",BR:"87",CR:"88",GR:"91",BS:"94",FS:"97",AT:"100",ET:"103",HT:"106",CU:"109",GU:"112",BV:"115",FV:"118",AX:"121",EX:"124",HX:"127",EY:"130",HY:"133",CZ:"136",GZ:"139",DD:"142",DG:"145",DJ:"148",DN:"151",DS:"154",DV:"157",DZ:"160",KC:"163",KF:"166",KJ:"169",KN:"172",KS:"175",ER:"89",HR:"92",CS:"95",GS:"98",BT:"101",FT:"104",AU:"107",EU:"110",HU:"113",CV:"116",GV:"119",BX:"122",FX:"125",BY:"128",FY:"131",AZ:"134",EZ:"137",DA:"140",DE:"143",DH:"146",DK:"149",DP:"152",DT:"155",DX:"158",KA:"161",KD:"164",KG:"167",KK:"170",KP:"173",KT:"176",FR:"90",AS:"93",ES:"96",HS:"99",CT:"102",GT:"105",BU:"108",FU:"111",AV:"114",EV:"117",HV:"120",CX:"123",GX:"126",CY:"129",GY:"132",BZ:"135",FZ:"138",DB:"141",DF:"144",DI:"147",DL:"150",DR:"153",DU:"156",DY:"159",KB:"162",KE:"165",KH:"168",KL:"171",KR:"174",KU:"177",KV:"178",KZ:"181",LC:"184",LF:"187",LJ:"190",LN:"193",LS:"196",LV:"199",LZ:"202",NC:"205",NF:"208",NJ:"211",NN:"214",NS:"217",NV:"220",PA:"223",PD:"226",PG:"229",PK:"232",PP:"235",PU:"238",PY:"241",RA:"244",RD:"247",RG:"250",RK:"253",RP:"256",RT:"259",RX:"262",HZ:"265",KX:"179",LA:"182",LD:"185",LG:"188",LK:"191",LP:"194",LT:"197",LX:"200",NA:"203",ND:"206",NG:"209",NK:"212",NP:"215",NT:"218",NY:"221",PB:"224",PE:"227",PH:"230",PL:"233",PS:"236",PV:"239",PZ:"242",RB:"245",RE:"248",RH:"251",RL:"254",RR:"257",RU:"260",RY:"263",SA:"266",KY:"180",LB:"183",LE:"186",LH:"189",LL:"192",LR:"195",LU:"198",LY:"201",NB:"204",NE:"207",NH:"210",NL:"213",NR:"216",NU:"219",NZ:"222",PC:"225",PF:"228",PJ:"231",PN:"234",PT:"237",PX:"240",NX:"243",RC:"246",RF:"249",RJ:"252",RN:"255",RS:"258",RV:"261",RZ:"264",SB:"267",SC:"268",SF:"271",SJ:"274",SN:"277",SS:"280",SV:"283",SZ:"286",TC:"289",TF:"292",TJ:"295",TN:"298",TS:"301",TV:"304",TZ:"307",UC:"310",UF:"313",UJ:"316",UN:"319",US:"322",UV:"325",UZ:"328",VC:"331",VF:"334",VJ:"337",VN:"340",VS:"343",VV:"346",VZ:"349",XC:"352",XF:"355",SD:"269",SG:"272",SK:"275",SP:"278",ST:"281",SX:"284",TA:"287",TD:"290",TG:"293",TK:"296",TP:"299",TT:"302",TX:"305",UA:"308",UD:"311",UG:"314",UK:"317",UP:"320",UT:"323",UX:"326",VA:"329",VD:"332",VG:"335",VK:"338",VP:"341",VT:"344",VX:"347",XA:"350",XD:"353",XG:"356",SE:"270",SH:"273",SL:"276",SR:"279",SU:"282",SY:"285",TB:"288",TE:"291",TH:"294",TL:"297",TR:"300",TU:"303",TY:"306",UB:"309",UE:"312",UH:"315",UL:"318",UR:"321",UU:"324",UY:"327",VB:"330",VE:"333",VH:"336",VL:"339",VR:"342",VU:"345",VY:"348",XB:"351",XE:"354",XH:"357",XJ:"358",XM:"361",XQ:"364",XT:"367",XX:"370",YA:"373",JB:"376",JE:"379",YE:"382",YH:"385",YL:"388",YR:"391",YU:"394",YY:"397",ZB:"400",ZE:"403",ZH:"406",ZK:"409",JG:"412",ZP:"415",ZT:"418",ZX:"421",WA:"430",WD:"433",WG:"436",WK:"439",WP:"442",WT:"445",JK:"448",XK:"359",XN:"362",XR:"365",XU:"368",XY:"371",YB:"374",JC:"377",YC:"380",YF:"383",YJ:"386",YN:"389",YS:"392",YV:"395",YZ:"398",ZC:"401",ZF:"404",ZI:"407",ZL:"410",JH:"413",ZR:"416",ZU:"419",ZY:"422",WB:"431",WE:"434",WH:"437",WL:"440",WR:"443",WU:"446",WV:"449",XL:"360",XP:"363",XS:"366",XV:"369",XZ:"372",JA:"375",JD:"378",YD:"381",YG:"384",YK:"387",YP:"390",YT:"393",YX:"396",ZA:"399",ZD:"402",ZG:"405",ZJ:"408",JF:"411",ZN:"414",ZS:"417",ZV:"420",ZZ:"423",WC:"432",WF:"435",WJ:"438",WN:"441",WS:"444",JJ:"447",WW:"450",WX:"451",ZW:"454",UW:"457",RW:"460",LW:"463",MY:"466",MU:"469",JL:"424",JP:"427",JT:"472",JW:"475",JZ:"478",MC:"48
11",MF:"484",MJ:"487",MN:"490",IA:"493",ID:"496",IG:"499",IK:"502",IO:"505",IS:"508",IV:"511",IY:"514",QB:"517",QE:"520",QH:"523",QL:"526",QP:"529",QT:"532",WY:"452",YW:"455",TW:"458",PW:"461",KW:"464",MX:"467",MT:"470",JN:"425",JR:"428",JU:"473",JX:"476",MA:"479",MD:"482",MG:"485",MK:"488",MP:"491",IB:"494",IE:"497",IH:"500",IL:"503",IP:"506",IT:"509",IW:"512",IZ:"515",QC:"518",QF:"521",QJ:"524",QN:"527",QR:"530",QU:"533",WZ:"453",XW:"456",SW:"459",NW:"462",MZ:"465",MV:"468",MS:"471",JO:"426",JS:"429",JV:"474",JY:"477",MB:"480",ME:"483",MH:"486",ML:"489",MR:"492",IC:"495",IF:"498",IJ:"501",IN:"504",IR:"507",IU:"510",IX:"513",QA:"516",QD:"519",QG:"522",QK:"525",QO:"528",QS:"531",QV:"534",QW:"535",QZ:"538",OC:"541",OF:"544",OJ:"547",ON:"550",OR:"553",OU:"556",OX:"559",AD:"562",AM:"565",BB:"568",BO:"571",CD:"574",CO:"577",DM:"580",QX:"536",OA:"539",OD:"542",OG:"545",OK:"548",OO:"551",OS:"554",OV:"557",OY:"560",AI:"563",AW:"566",BI:"569",BW:"572",CI:"575",CW:"578",DO:"581",QY:"537",OB:"540",OE:"543",OH:"546",OL:"549",OP:"552",OT:"555",OW:"558",OZ:"561",AK:"564",AY:"567",BM:"570",CC:"573",CM:"576",DC:"579",DW:"582"})),g=new Map(Object.entries({B:"1",C:"2",D:"3",F:"4",G:"5",H:"6",J:"7",K:"8",L:"9",P:"0",R:"2",S:"3",T:"4",V:"5",W:"6",X:"7",Y:"8",Z:"9"}));var h=function(c){return c[c.NewCar=0]="NewCar",c[c.OldCar=1]="OldCar",c[c.NewMoto=2]="NewMoto",c[c.OldMoto=3]="OldMoto",c[c.PullingCart=4]="PullingCart",c}(h||{});var O=d(5879);let y=(()=>{var c;class M{constructor(){}isLegalNameValidator(s){const l=s.value;return!l||""===l.trim()||/^[a-zA-Z0-9\xe1\xe9\xed\xf3\xfa\xc1\xc9\xcd\xd3\xda\xf1\xd1\s.-]+$/.test(l.trim())?null:{legalNameInvalid:!0}}chileanPlateValidator(s){const l=/^[A-V][A-Z][A-Z][B-DF-HJ-NP-TV-Z][0-9]{2}$|^[A-Z]{2}[0-9]{4}$/.test(s.value.toUpperCase());return(c=>{try{return(c=>{switch((c=>{if(6!=c.length)throw new Error("wrong patent length.");if((c=>/^[b-d,f-h,j-l,p,r-t,v-z]{2}[\-\. ]?[b-d,f-h,j-l,p,r-t,v-z]{2}[\.\- ]?[0-9]{2}$/i.test(c))(c))return h.NewCar;if((c=>/^[a-z]{2}[\.\- ]?[0-9]{2}[\.\- ]?[0-9]{2}$/i.test(c))(c))return h.OldCar;if((c=>/^[b-d,f-h,j-l,p,r-t,v-z]{3}[0-9]{2}$|^[b-d,f-h,j-l,p,r-t,v-z]{3}0[0-9]{2}$/i.test(c))(c))return h.NewMoto;if((c=>/^[a-z]{2}0[0-9]{3}$|^[a-z]{2}[0-9]{3}$/i.test(c))(c))return h.OldMoto;throw new Error("Not valid plate.")})(c)){case h.NewCar:case h.NewMoto:const x=Array.from(c.slice(0,4));let s="";for(let f=0;f<x.length;f++){const u=x[f];if(!g.has(u.toUpperCase()))throw new Error(`not found key ${u} for new plate ${c}`);s+=g.get(u)}return s+=c.slice(4,2);case h.OldCar:case h.OldMoto:const l=c.slice(0,2).toUpperCase();if(!e.has(l))throw new Error(`not found key ${l} for old plate ${c}`);return e.get(l)+c.slice(2,4);default:throw new Error("not recognize plate type.")}})(c),!0}catch{return!1}})(s.value)&&l?null:{chileanPlate:!0}}isFullNameValidator(s){return s&&s.value&&/^([A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]+)([\.,]?\s[A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]+)+$/i.test(s.value.trim())?null:{firstnameRequired:!0}}isAccountNameValidator(s){return s&&s.value&&/^[A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc\xf10-9\s]+$/i.test(s.value.trim())?null:{accountNameInvalid:!0}}isEmailValidator(s){return s&&s.value&&/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g.test(s.value.trim())?null:{emailRequired:!0}}isRutValidator(s){return s&&s.value&&_.Z.validateRut(s.value)?null:{rutRequired:!0}}isCLPhoneNumberValidator(s){return s&&s.value&&/^([2-9][0-9]{8})$/.test(s.value.trim())?null:{rutRequired:!0}}isEmptyOrNullOrUndefined(s){return(s.value??"").trim().length>0?null:{required:!0}}isEmail(s){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g.test(s)}isCompleteNameValidator(s){const l=s.value;return l&&/^[a-zA-Z\xe1\xe9\xed\xf3\xfa\xc1\xc9\xcd\xd3\xda\xf1\xd1\s]+$/.test(l.trim())&&l.trim().split(" ").length>1?null:{fullNameRequired:!0}}isAddressValidator(s){const l=s.value;return l&&/^[a-zA-Z\xe1\xe9\xed\xf3\xfa\xc1\xc9\xcd\xd3\xda\xf1\xd10-9\s,#]+$/.test(l.trim())&&l.trim().split(" ").length>1?null:{addressRequired:!0}}isFullName(s){return!!s&&/^([A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]+)([\.,]?\s[A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]+)+$/i.test(s.trim())}isLastName(s){return!!s&&/^([A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]+)(\s[A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]+)*$/i.test(s.trim())}isName(s){return!!s&&/^([A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]{3,30})$/i.test(s.trim())}isCompleteName(s){return!!s&&/^([A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]{3,30})(\s[A-Z\xc1\xc9\xcd\xd3\xda\xd1\xdc]{3,30})?$/i.test(s.trim())}isNumber(s){return/^[0-9]*$/.test(s)}isRut(s){return _.Z.validateRut(s)}isPhoneNumber(s,l){return"CL"!==s.toUpperCase().trim()||/^([2-9][0-9]{8})$/.test(l)}isMexicanRegNumber(s){return/^([0-9aA-zZ]{6,7})$/.test(s.value.toUpperCase())?null:{mexicanPlate:!0}}formMinNumber(s){return l=>l.value>s?null:{forbiddenName:{value:l.value}}}}return(c=M).\u0275fac=function(s){return new(s||c)},c.\u0275prov=O.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),M})()},3754:(I,P,d)=>{d.d(P,{G:()=>v});var _=d(5619),A=d(7715),Z=d(8180),e=d(8378),g=d(5879),h=d(9862);let v=(()=>{var T;class b{constructor(p){this.httpClient=p,this.isLoaded=!1,this.trackingData$=new _.X(null),this.host="/{product}/api/Tracking"}getGaByProduct(p){let m=this.host.replace("{product}",p);return this.http=new e.wL(this.httpClient,`${m}`),(0,A.D)(this.http.getOriginal())}loadTracking(p,m,C="MultiInstantOffer",w="instant-offer"){return this.isLoaded?(this.CsnInsightsEventTrackerSetMetadata(p,m,C),this.CsnInsightsEventTrackerSendPageView()):(this.getGaByProduct(w).pipe((0,Z.q)(1)).subscribe(O=>{if(O){this.trackingData$.next(O),this.settings=O,this.CsnInsightsEventTrackerSetMetadata(p,m,C);const y=document.getElementsByTagName("head")[0];this.parseHTMLElements(this.settings?.tracking?.trackingScript??this.settings.trackingScript).forEach(M=>
1{if("script"===M.tagName.toLocaleLowerCase()){const x=document.createElement("script");x.type="text/javascript",M.getAttribute("src")?x.src=M.getAttribute("src"):x.appendChild(document.createTextNode(M.textContent)),y.appendChild(x)}}),this.CsnInsightsEventTrackerSendPageView()}}),this.isLoaded=!0),this.isLoaded}CsnInsightsEventTrackerSetMetadata(p,m,C="MultiInstantOffer"){this.metadata={area:C,page:p,pagetype:m},window.CsnInsights=window.CsnInsights||{},window.CsnInsights.fireOnLoad=!1,window.CsnInsights["EnableScrollTracker "]=!1,window.CsnInsights.metaData=this.metadata}CsnInsightsEventTrackerSendPageView(){if(window.CsnInsightsEventTracker&&window.CsnInsightsEventTracker.sendPageView){const p=window.location&&window.location.pathname?window.location.pathname:"",m=window.location&&window.location.search?window.location.search:"";window.CsnInsightsEventTracker.sendPageView(this.metadata,p+m)}}sendClick(p=null,m="InstantOffer",C="siguente"){console.log("CsnInsightsEventTracker"),window.CsnInsightsEventTracker&&window.CsnInsightsEventTracker.sendClick&&(console.log("CsnInsightsEventTracker::sendClick"),window.CsnInsights.metaData=p===window.CsnInsights.metaData?p:{...window.CsnInsights.metaData},window.CsnInsights.metaData.section=C,window.CsnInsightsEventTracker.sendClick(window.CsnInsights.metaData,m,C))}parseHTMLElements(p){const m=document.createElement("template");return m.innerHTML=p,m.content.querySelectorAll("*")}}return(T=b).\u0275fac=function(p){return new(p||T)(g.LFG(h.eN))},T.\u0275prov=g.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),b})()}}]);
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.