PageSourceSearch

https://servimax.co/4563.acae8f53f89a3c50.js

js servimax.co collected 2026-10-02 01:21:19 UTC 28,330 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkservimax_home_page=self.webpackChunkservimax_home_page||[]).push([[4563],{4563:(Z,p,c)=>{c.r(p),c.d(p,{default:()=>z});var h=c(467),u=c(976),m=c(177),d=c(4341),e=c(4438),g=c(6367),_=c(8521),f=c(7530),b=c(9784),C=c(2913);function E(i,l){if(1&i&&(e.j41(0,"div",62),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.LABELS_MSG.msgnit," ")}}function D(i,l){if(1&i&&(e.j41(0,"div",63),e.nrm(1,"img",64),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("src","data:image/"+t.photoLocal.tipo+";base64,"+t.photoLocal.base64,e.B4B)}}function v(i,l){1&i&&(e.j41(0,"div",65),e.nrm(1,"i",66),e.k0s())}function M(i,l){if(1&i&&(e.j41(0,"div",63),e.nrm(1,"img",67),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("src","data:image/"+t.photoAddress.tipo+";base64,"+t.photoAddress.base64,e.B4B)}}function F(i,l){1&i&&(e.j41(0,"div",65),e.nrm(1,"i",68),e.k0s())}function R(i,l){if(1&i&&(e.j41(0,"option",69),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function j(i,l){if(1&i&&(e.j41(0,"option",69),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function x(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",70)(1,"label",71),e.EFF(2,"Municipio"),e.k0s(),e.j41(3,"select",72),e.mxI("ngModelChange",function(o){e.eBV(t);const s=e.XpG();return e.DH7(s.selectedMunicipio,o)||(s.selectedMunicipio=o),e.Njj(o)}),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onMunicipioChange())}),e.j41(4,"option",35),e.EFF(5,"Selecciona un Municipio"),e.k0s(),e.DNE(6,j,2,2,"option",36),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.selectedMunicipio),e.R7$(3),e.Y8G("ngForOf",t.filteredMunicipios)}}function I(i,l){1&i&&(e.qex(0),e.EFF(1,"Seleccionar Localidad"),e.bVm())}function k(i,l){1&i&&(e.qex(0),e.EFF(1,"Seleccionar Comuna"),e.bVm())}function T(i,l){1&i&&e.EFF(0,"Seleccionar Barrio")}function S(i,l){if(1&i&&e.DNE(0,k,2,0,"ng-container",74)(1,T,1,0,"ng-template",null,5,e.C5r),2&i){const t=e.sdS(2),n=e.XpG(2);e.Y8G("ngIf",n.isCMA())("ngIfElse",t)}}function P(i,l){if(1&i&&(e.j41(0,"option",69),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function B(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",70)(1,"label",73),e.DNE(2,I,2,0,"ng-container",74)(3,S,3,2,"ng-template",null,4,e.C5r),e.k0s(),e.j41(5,"select",75),e.mxI("ngModelChange",function(o){e.eBV(t);const s=e.XpG();return e.DH7(s.selectedSubsector,o)||(s.selectedSubsector=o),e.Njj(o)}),e.bIt("ngModelChange",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onSubsectorChange())}),e.j41(6,"option",35),e.EFF(7,"Selecciona una opci\xf3n"),e.k0s(),e.DNE(8,P,2,2,"option",36),e.k0s()()}if(2&i){const t=e.sdS(4),n=e.XpG();e.R7$(2),e.Y8G("ngIf",n.isLOC())("ngIfElse",t),e.R7$(3),e.R50("ngModel",n.selectedSubsector),e.R7$(3),e.Y8G("ngForOf",n.allSubsectors)}}function w(i,l){if(1&i&&(e.j41(0,"option",69),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function y(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",70)(1,"label",76),e.EFF(2,"Seleccionar UPZ"),e.k0s(),e.j41(3,"select",77),e.mxI("ngModelChange",function(o){e.eBV(t);const s=e.XpG();return e.DH7(s.selectedUPZ,o)||(s.selectedUPZ=o),e.Njj(o)}),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onUPZChange())}),e.j41(4,"option",35),e.EFF(5,"Selecciona una UPZ"),e.k0s(),e.DNE(6,w,2,2,"option",36),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.selectedUPZ),e.R7$(3),e.Y8G("ngForOf",t.allUPZs)}}function N(i,l){if(1&i&&(e.j41(0,"option",69),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function L(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",70)(1,"label",78),e.EFF(2,"Seleccionar Barrio"),e.k0s(),e.j41(3,"select",79),e.mxI("ngModelChange",function(o){e.eBV(t);const s=e.XpG();return e.DH7(s.selectedBRR,o)||(s.selectedBRR=o),e.Njj(o)}),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onBRRChange())}),e.j41(4,"option",35),e.EFF(5,"Selecciona un Barrio"),e.k0s(),e.DNE(6,N,2,2,"option",36),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.selectedBRR),e.R7$(3),e.Y8G("ngForOf",t.allBrr)}}function O(i,l){if(1&i&&(e.j41(0,"option",69),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.Y8G("value",t.idSegmento),e.R7$(),e.JRh(t.nombre)}}
1function A(i,l){if(1&i&&(e.j41(0,"div",62),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.LABELS_MSG.msgciuu," ")}}function G(i,l){if(1&i&&(e.j41(0,"div",63),e.nrm(1,"img",80),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("src","data:image/"+t.atttachCamara.tipo+";base64,"+t.atttachCamara.base64,e.B4B)}}function U(i,l){1&i&&(e.j41(0,"div",65),e.nrm(1,"i",81),e.k0s())}function V(i,l){if(1&i&&(e.j41(0,"div",63),e.nrm(1,"img",82),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("src","data:image/"+t.attachRut.tipo+";base64,"+t.attachRut.base64,e.B4B)}}function Y(i,l){1&i&&(e.j41(0,"div",65),e.nrm(1,"i",83),e.k0s())}function $(i,l){1&i&&(e.j41(0,"div",84),e.EFF(1," \xa1Por favor, completa todos los campos correctamente! "),e.k0s())}function X(i,l){1&i&&(e.j41(0,"div",85)(1,"h4")(2,"strong"),e.EFF(3,"\xa1\xc9xito!"),e.k0s(),e.EFF(4," Cliente creado exitosamente"),e.k0s()())}let z=(()=>{class i{constructor(t,n,o,s,r){this.router=t,this.TransversalService=n,this.StorageService=o,this.UserService=s,this.SpinnerService=r,this.selectedType=null,this.selectedDEP=0,this.selectedSubsector=0,this.selectedMunicipio=0,this.selectedUPZ=0,this.selectedBRR=0,this.clientData=null,this.showInfoBox="",this.LABELS_MSG=u.c,this.showFieldError="",this.showAlert=!1,this.nit="",this.name="",this.lat="",this.lon="",this.address=" ",this.sector=[],this.stateComerce="PEND",this.typeComerce="NATURAL",this.idSegment=[],this.changesComerce="S_CREACION_C",this.userCreacion="",this.visitDay="LUNES",this.ciiu="",this.idZone=0,this.successMessageVisible=!1,this.userLocation={lat:0,lng:0},this.map=null,this.geocoder=null,this.sectors=[],this.filteredMunicipios=[],this.filteredSubsectors=[],this.allSubsectors=[],this.allUPZs=[],this.allBrr=[],this.atttachCamara={nombre:"",tipo:"",ruta:"foto-tienda",base64:""},this.photoLocal={nombre:"",tipo:"",ruta:"foto-tienda",base64:""},this.attachRut={nombre:"",tipo:"",ruta:"foto-tienda",base64:""},this.photoAddress={nombre:"",tipo:"",ruta:"foto-tienda",base64:""}}ngOnInit(){this.loadTypesCommerce(),this.loadSectors(),this.initMap();const t=this.StorageService.getStorageElement({space:"Session",typeElement:"newClient"});t&&(this.clientData=this.mapToClientDto(t))}initMap(){var t=this;return(0,h.A)(function*(){try{yield t.getUserLocation()}catch{console.error("No se pudo obtener la ubicaci\xf3n, utilizando Bogot\xe1 como predeterminado"),t.userLocation={lat:4.60971,lng:-74.08175}}const{Map:n}=yield google.maps.importLibrary("maps"),{AdvancedMarkerElement:o}=yield google.maps.importLibrary("marker");t.geocoder=new google.maps.Geocoder,t.map=new n(document.getElementById("map"),{zoom:12,center:t.userLocation,mapId:"DEMO_MAP_ID"});const s=new o({map:t.map,position:t.userLocation,title:"Ubicaci\xf3n inicial"});t.map.addListener("click",r=>{const a=r.latLng;a&&(t.lat=a.lat().toString(),t.lon=a.lng().toString(),s.position=a)})})()}getUserLocation(){return new Promise((t,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{this.userLocation={lat:o.coords.latitude,lng:o.coords.longitude},t()},o=>{console.error("Error obteniendo la ubicaci\xf3n",o),n(o)}):(console.error("Geolocalizaci\xf3n no soportada por este navegador"),n("Geolocalizaci\xf3n no soportada"))})}getCoordinatesFromAddress(t){this.geocoder&&this.geocoder.geocode({address:t+", Bogot\xe1, Boyac\xe1, Colombia"},(o,s)=>{if("OK"===s&&o&&o[0]){const r=o[0].geometry.location;this.lat=r.lat().toString(),this.lon=r.lng().toString(),this.map?.setCenter(r),new google.maps.Marker({position:r,map:this.map})}})}onAddressChange(){this.getCoordinatesFromAddress(this.address)}mapToClientDto(t){return{names:t.names||"",lastNames:t.lastNames||"",documentType:t.documentType||"CC",documentNumber:t.documentNumber||"",birthDay:t.birthDay||"",birthPlace:t.birthPlace||"",nacionality:t.nacionality||"",photoDocumentFront:t.photoDocumentFront?{base64:t.photoDocumentFront.base64||"",nombre:t.photoDocumentFront.nombre||"",tipo:t.photoDocumentFront.tipo||"",ruta:t.photoDocumentFront.ruta||"clientes"}:{base64:"",nombre:"",tipo:"",ruta:"clientes"},contactInfoList:t.contactInfoList||[],commerceList:t.commerceList||[],userInscription:t.userInscription||"",stateCLients:t.stateCLients||"APR_CLIENT",updateJustGeo:t.updateJustGeo||!1}}loadTypesCommerce(){this.TransversalService.getTypesCommerce().subscribe(t=>{this.idSegment=t.response?.filter(n=>"TIPO_COMERCIO"===n.tipoSegmento)||[]},t=>{console.error("Error fetching types of commerce:",t)})}loadSectors(){this.UserService.getSectorFilter({tipo:["DEP"]}).subscribe(n=>{this.sectors=n.response||[]},n=>{console.error("Error fetching sectors:",n)})}onDEPChange(){null!==this.selectedDEP?(this.sector=[this.selectedDEP],this.UserService.getSectorFilter({tipo:["MCP"],padre:this.selectedDEP}).subscribe(n=>{this.filteredMunicipios=n.response||[],this.filteredSubsectors=[]},n=>{console.error("Error fetching municipios:",n)})):(this.filteredMunicipios=[],this.sector=[])}onMunicipioChange(){this.selectedMunicipio?(this.sector=[this.selectedDEP,this.selectedMunicipio],this.UserService.getSectorFilter({tipo:["LOC","CMA","BRR"],padre:this.selectedMunicipio}).subscribe(n=>{this.allSubsectors=n.response||[],this.allUPZs=[]},n=>{console.error("Error fetching subsectors:",n)})):(this.allSubsectors=[],this.sector=[this.selectedDEP],this.allUPZs=[])}onSubsectorChange(){this.selectedSubsector?(this.sector=[this.selectedDEP,this.selectedMunicipio,this.selectedSubsector],this.UserService.getSectorFilter({tipo:["UPZ","BRR"],padre:this.selectedSubsector}).subscribe(n=>{this.allUPZs=n.response||[]},n=>{console.error("Error fetching UPZs:",n)})):(this.allUPZs=[],this.sector=[this.selectedDEP,this.selectedMunicipio])}onUPZChange(){this.selectedUPZ?(this.sector=[this.selectedDEP,this.selectedMunicipio,this.selectedSubsector,this.selectedUPZ],this.UserService.getSectorFilter({tipo:["BRR"],padre:this.selectedUPZ}).subscribe(n=>{this.allBrr=n.response||[]},n=>{console.error("Error fetching Barrios (BRR):",n)})):(this.allBrr=[],this.sector=[this.selectedDEP,this.selectedMunicipio,this.selectedSubsector])}onBRRChange(){this.sector=[this.selectedDEP,this.selectedMunicipio,this.selectedSubsector,this.selectedUPZ,this.selectedBRR]}accept(){if(this.nit)if(this.name)if(this.lat&&this.lon)if(this.address)if(null===this.selectedType)this.show
1FieldError="Tipo de comercio";else if(this.atttachCamara)if(this.photoLocal)if(this.photoAddress)if(this.attachRut)if(this.typeComerce)if(this.sector)if(this.ciiu)if(this.visitDay){this.showFieldError="";const t={nit:this.nit,name:this.name,lat:this.lat,lon:this.lon,address:this.address,idSegment:null!==this.selectedType?this.selectedType:0,atttachCamara:this.atttachCamara,photoLocal:this.photoLocal,photoAddress:this.photoAddress,attachRut:this.attachRut,changesComerce:"S_CREACION_C",typeComerce:this.typeComerce,sector:this.sector,ciiu:this.ciiu,visitDay:this.visitDay,position:0},n={names:this.clientData?.names||this.name,lastNames:this.clientData?.lastNames||"",documentType:this.clientData?.documentType||"CC",documentNumber:this.clientData?.documentNumber||this.nit,birthDay:this.clientData?.birthDay||"",birthPlace:this.clientData?.birthPlace||"",nacionality:this.clientData?.nacionality||"",photoDocumentFront:this.clientData?.photoDocumentFront||{base64:"",nombre:"",tipo:"",ruta:"clientes"},contactInfoList:this.clientData?.contactInfoList||[],commerceList:[t],userInscription:"1",stateCLients:"APR_CLIENT",updateJustGeo:!1};this.SpinnerService.show(),this.TransversalService.createClient(n).subscribe(o=>{o.response?(this.showSuccessMessage(),setTimeout(()=>{this.router.navigate(["/password"])},2e3)):(console.error("Error al crear el cliente"),alert("Hubo un error al crear el cliente. Intenta nuevamente."))},o=>{console.error("Error en la solicitud",o),alert("Error en la solicitud. Por favor intenta nuevamente.")},()=>{this.SpinnerService.hide()})}else this.showFieldError="D\xeda de visita";else this.showFieldError="CIIU";else this.showFieldError="Sector";else this.showFieldError="Tipo de comercio";else this.showFieldError="Adjuntar RUT";else this.showFieldError="Foto de la direcci\xf3n";else this.showFieldError="Foto del local";else this.showFieldError="Adjuntar c\xe1mara";else this.showFieldError="Direcci\xf3n";else this.showFieldError="Ubicaci\xf3n (Latitud y Longitud)";else this.showFieldError="Nombre del comercio";else this.showFieldError="NIT";this.showFieldError&&(this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},2e3))}showSuccessMessage(){this.successMessageVisible=!0,setTimeout(()=>{this.successMessageVisible=!1},2e3)}onImageChange(t){const n=t.target.files[0];if(n){const o=new FileReader;o.onload=()=>{let s=o.result;s=s.split(",")[1],this.atttachCamara={nombre:n.name,tipo:n.type,ruta:"foto-tienda",base64:s}},o.readAsDataURL(n)}}onLocalImageChange(t){const n=t.target.files[0];if(n){const o=new FileReader;o.onload=()=>{let s=o.result;s=s.split(",")[1],this.photoLocal={nombre:n.name,tipo:n.type,ruta:"foto-tienda",base64:s}},o.readAsDataURL(n)}}onphotoNitImageChange(t){const n=t.target.files[0];if(n){const o=new FileReader;o.onload=()=>{let s=o.result;s=s.split(",")[1],this.attachRut={nombre:n.name,tipo:n.type,ruta:"foto-tienda",base64:s}},o.readAsDataURL(n)}}onphotoAdressImageChange(t){const n=t.target.files[0];if(n){const o=new FileReader;o.onload=()=>{let s=o.result;s=s.split(",")[1],this.photoAddress={nombre:n.name,tipo:n.type,ruta:"foto-tienda",base64:s}},o.readAsDataURL(n)}}showInfo(t){this.showInfoBox=t}hideInfo(){this.showInfoBox=""}isLOC(){return this.allSubsectors.some(t=>"LOC"===t.type)}isCMA(){return this.allSubsectors.some(t=>"CMA"===t.type)}isBRR(){return this.allSubsectors.some(t=>"BRR"===t.type)}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(g.Ix),e.rXU(_.Z),e.rXU(f.n),e.rXU(b.D),e.rXU(C.D))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-dtos-establecimiento"]],standalone:!0,features:[e.aNF],decls:114,vars:26,consts:[["fileInputLocal",""],["fileInputAddress",""],["fileInputCamara",""],["fileInputRut",""],["CMAorBRR",""],["BRR",""],["href",e.wXG`https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css`,"rel","stylesheet"],[1,"container","pt-5","d-flex","justify-content-center","align-items-center"],[1,"col-12","col-md-10","col-lg-8","border","p-4",2,"border-radius","2rem","box-shadow","rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset"],[1,"text-center","mb-4","border",2,"background-color","#e5e7e9","border-radius","10px"],[1,"fs-3","fw-bold",2,"color","green"],[3,"ngSubmit"],[1,"mb-4","d-flex","flex-column","flex-md-row","justify-content-between"],[1,"flex-item","w-80","w-md-48"],["for","nit",1,"form-label","fw-bold"],[1,"info-icon","w-100",3,"mouseenter","mouseleave"],[1,"bi","bi-question-circle-fill"],["id","nit","name","nit","required","",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],["class","info-box fw-bold",4,"ngIf"],["for","name",1,"form-label","fw-bold"],["
1id","name","name","name","required","",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],[1,"d-flex","flex-column","flex-md-row","justify-content-between"],[1,"col-12","col-md-5","mb-4"],[1,"form-label","fw-bold"],[1,"file-input-wrapper","image-container",3,"click"],["type","file","accept","image/*",1,"d-none",3,"change"],["class","image-preview",4,"ngIf"],["class","image-placeholder",4,"ngIf"],[1,"mb-4","w-80","w-md-48"],["for","address",1,"form-label","fw-bold"],["id","address","name","address","required","",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],["id","map",2,"height","500px","width","100%","border-radius","15px","box-shadow","rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px"],[1,"mb-4","mt-4"],["for","sector",1,"form-label","fw-bold"],["id","sector","name","sector","required","",1,"minimal","form-select","form-select-lg",3,"ngModelChange","change","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","mb-4",4,"ngIf"],[1,"d-flex","justify-content-between"],[1,"mb-4","w-80"],["for","typeComerce",1,"form-label","fw-bold"],["id","typeComerce","name","typeComerce","required","",1,"minimal","form-select","form-select-lg",3,"ngModelChange","ngModel"],["value","NATURAL"],["value","JURIDICA"],["for","visitDay",1,"form-label","fw-bold"],["id","visitDay","name","visitDay","required","",1,"minimal","form-select","form-select-lg",3,"ngModelChange","ngModel"],["value","LUNES"],["value","MARTES"],["value","MIERCOLES"],["value","JUEVES"],["value","VIERNES"],["value","SABADO"],[1,"mb-2","w-80"],["for","idSegment",1,"form-label","fw-bold"],["id","idSegment","name","idSegment","required","",1,"minimal","form-select","form-select-lg",3,"ngModelChange","ngModel"],[1,"flex-item","w-80","w-md-48","mb-4"],["for","ciiu",1,"form-label","fw-bold"],["id","ciiu","name","ciiu","required","",1,"form-control","form-control-lg",3,"ngModelChange","ngModel"],["class","alert show fw-bold fs-45",4,"ngIf"],[1,"text-center","mt-4"],["type","submit","id","btnCrearCliente",1,"btn","mt-4","btn-lg","w-40","fw-bold",2,"background-color","green","color","white","border-radius","25% 10%"],["class","alert alert-success text-center","style","position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 1050;\n             background-color: #28a745; color: white;\n             padding: 20px; border-radius: 8px;\n             box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n             font-size: 1.2rem;\n             animation: fadeIn 1s ease-in-out;",4,"ngIf"],[1,"info-box","fw-bold"],[1,"image-preview"],["alt","Foto Local",3,"src"],[1,"image-placeholder"],[1,"bi","bi-house-door",2,"font-size","40px"],["alt","Foto Nomenclatura",3,"src"],[1,"bi","bi-map",2,"font-size","40px"],[3,"value"],[1,"mb-4"],["for","municipio",1,"form-label","fw-bold"],["id","municipio","name","municipio","required","",1,"minimal","form-select","form-select-lg",3,"ngModelChange","change","ngModel"],["for","subsector",1,"form-label","fw-bold"],[4,"ngIf","ngIfElse"],["id","subsector","name","subsector","required","",1,"minimal","form-select","form-select-lg",3,"ngModelChange","ngModel"],["for","upz",1,"form-label","fw-bold"],["id","upz","name","upz",1,"minimal","form-select","form-select-lg",3,"ngModelChange","change","ngModel"],["for","brr",1,"form-label","fw-bold"],["id","brr","name","brr",1,"minimal","form-select","form-select-lg",3,"ngModelChange","change","ngModel"],["alt","Foto C\xe1mara de Comercio",3,"src"],[1,"bi","bi-camera",2,"font-size","40px"],["alt","Foto RUT",3,"src"],[1,"bi","bi-file-earmark-person",2,"font-size","40px"],[1,"alert","show","fw-bold","fs-45"],[1,"alert","alert-success","text-center",2,"position","fixed","top","20%","left","50%","transform","translateX(-50%)","z-index","1050","background-color","#28a745","color","white","padding","20px","border-radius","8px","box-shadow","0 4px 6px rgba(0, 0, 0, 0.1)","font-size","1.2rem","animation","fadeIn 1s ease-in-out"]],template:function(n,o){if(1&n){const s=e.RV6();e.nrm(0,"link",6),e.j41(1,"div",7)(2,"div",8)(3,"div",9)(4,"h1",10),e.EFF(5,"Formulario de Registro"),e.k0s()(),e.j41(6,"form",11),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(o.accept())}),e.j41(7,"div",12)(8,"div",13)(9,"label",14),e.EFF(10,"NIT "),e.j41(11,"span",15),e.bIt("mouseenter",function(){return e.eBV(s),e.Njj(o.showInfo("nit"))})("mouseleave",function(){return e.eBV(s),e.Njj(o.hideInfo())}),e.nrm(12,"i",16),e.k0s()(),e.j41(13,"input",17),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.nit,a)||(o.nit=a),e.Njj(a)}),e.k0s(),e.DNE(14,E,2,1,"div",18),e.k0s(),e.j41(15,"div",13)(16,"label",19),e.EFF(17,"Nombre del c
1omercio "),e.k0s(),e.j41(18,"input",20),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.name,a)||(o.name=a),e.Njj(a)}),e.k0s()()(),e.j41(19,"div",21)(20,"div",22)(21,"label",23),e.EFF(22,"Foto de la Tienda"),e.k0s(),e.j41(23,"div",24),e.bIt("click",function(){e.eBV(s);const a=e.sdS(25);return e.Njj(a.click())}),e.j41(24,"input",25,0),e.bIt("change",function(a){return e.eBV(s),e.Njj(o.onLocalImageChange(a))}),e.k0s(),e.DNE(26,D,2,1,"div",26)(27,v,2,0,"div",27),e.k0s()(),e.j41(28,"div",22)(29,"label",23),e.EFF(30,"Foto de la Nomenclatura de la Tienda"),e.k0s(),e.j41(31,"div",24),e.bIt("click",function(){e.eBV(s);const a=e.sdS(33);return e.Njj(a.click())}),e.j41(32,"input",25,1),e.bIt("change",function(a){return e.eBV(s),e.Njj(o.onphotoAdressImageChange(a))}),e.k0s(),e.DNE(34,M,2,1,"div",26)(35,F,2,0,"div",27),e.k0s()()(),e.j41(36,"div",28)(37,"label",29),e.EFF(38,"Direcci\xf3n"),e.k0s(),e.j41(39,"input",30),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.address,a)||(o.address=a),e.Njj(a)}),e.bIt("ngModelChange",function(){return e.eBV(s),e.Njj(o.onAddressChange())}),e.k0s()(),e.nrm(40,"div",31),e.j41(41,"div",32)(42,"label",33),e.EFF(43,"Departamento"),e.k0s(),e.j41(44,"select",34),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.selectedDEP,a)||(o.selectedDEP=a),e.Njj(a)}),e.bIt("change",function(){return e.eBV(s),e.Njj(o.onDEPChange())}),e.j41(45,"option",35),e.EFF(46,"Selecciona un Departamento"),e.k0s(),e.DNE(47,R,2,2,"option",36),e.k0s()(),e.DNE(48,x,7,2,"div",37)(49,B,9,4,"div",37)(50,y,7,2,"div",37)(51,L,7,2,"div",37),e.j41(52,"div",38)(53,"div",39)(54,"label",40),e.EFF(55,"Tipo de Comercio"),e.k0s(),e.j41(56,"select",41),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.typeComerce,a)||(o.typeComerce=a),e.Njj(a)}),e.j41(57,"option",42),e.EFF(58,"Natural"),e.k0s(),e.j41(59,"option",43),e.EFF(60,"Jur\xeddica"),e.k0s()()(),e.j41(61,"div",39)(62,"label",44),e.EFF(63,"D\xeda de Visita"),e.k0s(),e.j41(64,"select",45),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.visitDay,a)||(o.visitDay=a),e.Njj(a)}),e.j41(65,"option",46),e.EFF(66,"Lunes"),e.k0s(),e.j41(67,"option",47),e.EFF(68,"Martes"),e.k0s(),e.j41(69,"option",48),e.EFF(70,"Mi\xe9rcoles"),e.k0s(),e.j41(71,"option",49),e.EFF(72,"Jueves"),e.k0s(),e.j41(73,"option",50),e.EFF(74,"Viernes"),e.k0s(),e.j41(75,"option",51),e.EFF(76,"S\xe1bado"),e.k0s()()()(),e.j41(77,"div",38)(78,"div",52)(79,"label",53),e.EFF(80,"Comercio"),e.k0s(),e.j41(81,"select",54),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.selectedType,a)||(o.selectedType=a),e.Njj(a)}),e.j41(82,"option",35),e.EFF(83,"Selecciona el tipo de tienda"),e.k0s(),e.DNE(84,O,2,2,"option",36),e.k0s()(),e.j41(85,"div",55)(86,"label",56),e.EFF(87,"CIIU"),e.k0s(),e.j41(88,"span",15),e.bIt("mouseenter",function(){return e.eBV(s),e.Njj(o.showInfo("ciiu"))})("mouseleave",function(){return e.eBV(s),e.Njj(o.hideInfo())}),e.nrm(89,"i",16),e.k0s(),e.j41(90,"input",57),e.mxI("ngModelChange",function(a){return e.eBV(s),e.DH7(o.ciiu,a)||(o.ciiu=a),e.Njj(a)}),e.k0s(),e.DNE(91,A,2,1,"div",18),e.k0s()(),e.j41(92,"div",21)(93,"div",22)(94,"label",23),e.EFF(95,"Foto de la C\xe1mara de Comercio"),e.k0s(),e.j41(96,"div",24),e.bIt("click",function(){e.eBV(s);const a=e.sdS(98);return e.Njj(a.click())}),e.j41(97,"input",25,2),e.bIt("change",function(a){return e.eBV(s),e.Njj(o.onImageChange(a))}),e.k0s(),e.DNE(99,G,2,1,"div",26)(100,U,2,0,"div",27),e.k0s()(),e.j41(101,"div",22)(102,"label",23),e.EFF(103,"Foto del RUT de la Tienda"),e.k0s(),e.j41(104,"div",24),e.bIt("click",function(){e.eBV(s);const a=e.sdS(106);return e.Njj(a.click())}),e.j41(105,"input",25,3),e.bIt("change",function(a){return e.eBV(s),e.Njj(o.onphotoNitImageChange(a))}),e.k0s(),e.DNE(107,V,2,1,"div",26)(108,Y,2,0,"div",27),e.k0s()()(),e.DNE(109,$,2,0,"div",58),e.j41(110,"div",59)(111,"button",60),e.EFF(112," Crear Cliente "),e.k0s()(),e.DNE(113,X,5,0,"div",61),e.k0s()()()}2&n&&(e.R7$(13),e.R50("ngModel",o.nit),e.R7$(),e.Y8G("ngIf","nit"===o.showInfoBox),e.R7$(4),e.R50("ngModel",o.name),e.R7$(8),e.Y8G("ngIf",o.photoLocal.base64),e.R7$(),e.Y8G("ngIf",!o.photoLocal.base64),e.R7$(7),e.Y8G("ngIf",o.photoAddress.base64),e.R7$(),e.Y8G("ngIf",!o.photoAddress.base64),e.R7$(4),e.R50("ngModel",o.address),e.R7$(5),e.R50("ngModel",o.selectedDEP),e.R7$(3),e.Y8G("ngForOf",o.sectors),e.R7$(),e.Y8G("ngIf",o.filteredMunicipios.length>0),e.R7$(),e.Y8G("ngIf",o.allSubsectors.length>0),e.R7$(),e.Y8G("ngIf",o.allUPZs.length>0),e.R7$(),e.Y8G("ngIf",o.allBrr.length>0),e.R7$(5),e.R50("ngModel",o.typeComerce),e.R7$(8),e.R50("ngModel",o.visitDay),e.R7$(17),e.R50("ngModel",o.selectedType),e.R7$(3),e.Y8G("ngForOf",o.idSegment),e.R7$(6),e.R50("ngModel",o.ciiu),e.R7$(),e.Y8G("ngIf","ciiu"===o.showInfoBox),e.R7$(8),e.Y8G("ngIf",o.atttachCamara.base64),e.R7$(),e.Y8G("ngIf",!o.atttachCamara.base64),e.R7$(7),e.Y8G("ngIf",o.attachRut.base64),e.R7$(),e.Y8G("ngIf",!o.attachRut.base64),e.R7$(),e.Y8G("ngIf",o.showAlert),e.R7$(4),e.Y8G("ngIf",o.successMessageVisible))},dependencies:[m.MD,m.Sq,m.bT,d.YN,d.qT,d.xH,d.y7,d.me,d.wz,d.BC,d.cb,d.YS,d.vS,d.cV],styles:["input[type=file][_ngcontent-%COMP%]{display:none}.btn-outline-primary[_ngcontent-%COMP%]{padding:8px 20px;font-size:14px;border-radius:4px;display:flex;align-items:center;transition:background-color .3s ease,color .3s ease}.btn-outline-primary[_ngcontent-%COMP%]:hover{background-color:#007bff;color:#fff}input[_ngcontent-%COMP%]{border-radius:1rem}.alert[_ngcontent-%COMP%]{position:fixed;top:80px;left:50%;transform:translate(-50%);z-index:9999;padding:10px;background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:5px;
1display:none}.alert.show[_ngcontent-%COMP%]{display:block}.flex-item[_ngcontent-%COMP%]{position:relative}.info-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:20px;color:#007bff;margin-left:10px;vertical-align:middle}.info-box[_ngcontent-%COMP%]{position:absolute;top:40%;left:20%;width:250px;height:auto;background-color:#000;border:1px solid #ccc;padding:20px;box-sizing:border-box;font-size:13px;overflow-wrap:break-word;white-space:normal;display:none;border-radius:50% 20%/10% 40%;color:#fff;z-index:999}.flex-item[_ngcontent-%COMP%]:hover   .info-box[_ngcontent-%COMP%]{display:block}#btnCrearCliente[_ngcontent-%COMP%]:hover{background-color:#006400;color:red}select.minimal[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%),linear-gradient(to right,#ccc,#ccc);background-position:calc(100% - 20px) calc(1em + 2px),calc(100% - 15px) calc(1em + 2px),calc(100% - 2.5em) .5em;background-size:5px 5px,5px 5px,1px 1.5em;background-repeat:no-repeat}select.minimal[_ngcontent-%COMP%]:focus{background-image:linear-gradient(45deg,green 50%,transparent 50%),linear-gradient(135deg,transparent 50%,green 50%),linear-gradient(to right,#ccc,#ccc);background-position:calc(100% - 15px) 1em,calc(100% - 20px) 1em,calc(100% - 2.5em) .5em;background-size:5px 5px,5px 5px,1px 1.5em;background-repeat:no-repeat;border-color:green;outline:0}.image-container[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;align-items:center;width:100%;max-width:420px;height:auto;aspect-ratio:21/10;background-color:#f9f9f9;border:1px dashed #ccc;border-radius:8px;box-shadow:0 0 5px #0000001a;transition:background-color .3s ease,border-color .3s ease}.image-container[_ngcontent-%COMP%]:hover{background-color:#e9ecef;border-color:#007bff}.image-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:200px;width:100%;height:100%;object-fit:cover;border-radius:8px}.image-placeholder[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#aaa;font-size:40px;background-color:#f9f9f9;border-radius:8px;border:1px dashed #ccc;box-shadow:0 0 5px #0000001a}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translate(-50%) scale(.8)}to{opacity:1;transform:translate(-50%) scale(1)}}@media (max-width: 767px){.image-container[_ngcontent-%COMP%]{max-width:100%;height:200px}.image-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain}}@media (min-width: 768px){.image-container[_ngcontent-%COMP%]{max-width:420px;height:220px}.image-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover}}"]})}}return i})()}}]);

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.