(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"11ms":function(e,t,n){"use strict";n.d(t,"a",function(){return B});var r=n("B+HQ"),a=n("DTgN"),l=n("+nbM"),o=n("fXoL"),i=n("mB2O"),c=n("ofXK"),d=n("bhfF"),p=n("tyNb"),u=n("wf0l"),s=n("c7tH"),m=n("z4eQ");function g(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"del"),o["\u0275\u0275elementStart"](1,"span",12),o["\u0275\u0275text"](2),o["\u0275\u0275pipe"](3,"brMoney"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"]().$implicit,t=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](3,1,(null==e?null:e.price)*(null==t.productService.Currency?null:t.productService.Currency.price))," ")}}const v=function(e){return["/",e,"p"]};function f(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div",7),o["\u0275\u0275elementStart"](1,"a",8),o["\u0275\u0275element"](2,"img",9),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](3,"div",10),o["\u0275\u0275elementStart"](4,"a",8),o["\u0275\u0275elementStart"](5,"h6"),o["\u0275\u0275text"](6),o["\u0275\u0275pipe"](7,"titlecase"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](8,"h4"),o["\u0275\u0275text"](9),o["\u0275\u0275pipe"](10,"brMoney"),o["\u0275\u0275pipe"](11,"discount"),o["\u0275\u0275template"](12,g,4,3,"del",11),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](13,"span"),o["\u0275\u0275text"](14),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](15,v,null==e?null:e.slug)),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("defaultImage","assets/images/product/placeholder.jpg")("lazyLoad",e.images[0].src),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](17,v,null==e?null:e.slug)),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate"](o["\u0275\u0275pipeBind1"](7,8,e.title)),o["\u0275\u0275advance"](3),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](10,10,o["\u0275\u0275pipeBind2"](11,12,(null==e?null:e.price)*(null==n.productService.Currency?null:n.productService.Currency.price),e))," "),o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("ngIf",null==e?null:e.discount),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"]("Em at\xe9 ",null==e?null:e.parcelaMaxima,"x ")}}function x(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div"),o["\u0275\u0275template"](1,f,15,19,"div",6),o["\u0275\u0275pipe"](2,"slice"),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"](3);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",o["\u0275\u0275pipeBind3"](2,1,e.products,0,3))}}function C(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"del"),o["\u0275\u0275elementStart"](1,"span",12),o["\u0275\u0275text"](2),o["\u0275\u0275pipe"](3,"brMoney"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"]().$implicit,t=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](3,1,(null==e?null:e.price)*(null==t.productService.Currency?null:t.productService.Currency.price))," ")}}const h=function(e){return{p:e}};function y(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div",7),o["\u0275\u0275elementStart"](1,"a",8),o["\u0275\u0275element"](2,"img",9),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](3,"div",10),o["\u0275\u0275elementStart"](4,"a",13),o["\u0275\u0275elementStart"](5,"h6"),o["\u0275\u0275text"](6),o["\u0275\u0275pipe"](7,"titlecase"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](8,"h4"),o["\u0275\u0275text"](9),o["\u0275\u0275pipe"](10,"brMoney"),o["\u0275\u0275pipe"](11,"discount"),o["\u0275\u0275template"](12,C,4,3,"del",11),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](13,"span"),o["\u0275\u0275text"](14),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](16,v,null==e?null:e.slug)),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("defaultImage","assets/images/product/placeholder.jpg")("lazyLoad",e.images[0].src),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](18,v,null==e?null:e.slug))("queryParams",o["\u0275\u0275pureFunction1"](20,h,e.id)),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate"](o["\u0275\u0275pipeBind1"](7,9,e.title)),o["\u0275\u0275advance"](3),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](10,11,o["\u0275\u0275pipeBind2"](11,13,(null==e?null:e.price)*(null==n.productService.Currency?null:n.productService.Currency.price),e))," "),o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("ngIf",null==e?null:e.discount),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"]("Em at\xe9 ",null==e?null:e.parcelaMaxima,"x ")}}function S(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div"),o["\u0275\u0275template"](1,y,15,22,"div",6),o["\u0275\u0275pipe"](2,"slice"),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"](3);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",o["\u0275\u0275pipeBind3"](2,1,e.products,3,6))}}function _(e,t){1&e&&(o["\u0275\u0275elementContainerStart"](0),o["\u0275\u0275template"](1,x,3,5,"ng-template",5),o["\u0275\u0275template"](2,S,3,5,"ng-template",5),o["\u0275\u0275elementContainerEnd"]())}function P(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"owl-carousel-o",3),o["\u0275\u0275template"](1,_,3,0,"ng-container",4),o["\u0275\u0275pipe"](2,"slice"),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"]();o["\u0275\u0275property"]("options",e.NewProductSliderConfig),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",o["\u0275\u0275pipeBind3"](2,2,e.products,0,3))}}function b(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"del"),o["\u0275\u0275elementStart"](1,"span",12),o["\u0275\u0275text"](2),o["\u0275\u0275pipe"](3,"brMoney"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"]().$implicit,t=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](3,1,(null==e?null:e.price)*(null==t.productService.Currency?null:t.productService.Currency.price))," ")}}function E(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div",7),o["\u0275\u0275elementStart"](1,"a",8),o["\u0275\u0275element"](2,"img",9),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](3,"div",10),o["\u0275\u0275elementStart"](4,"a",8),o["\u0275\u0275elementStart"](5,"h6"),o["\u0275\u0275text"](6),o["\u0275\u0275pipe"](7,"titlecase"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](8,"h4"),o["\u0275\u0275text"](9),o["\u0275\u0275pipe"](10,"brMoney"),o["\u0275\u0275pipe"](11,"discount"),o["\u0275\u0275template"](12,b,4,3,"del",11),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](13,"span"),o["\u0275\u0275text"](14),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](15,v,null==e?null:e.slug)),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("defaultImage","assets/images/product/placeholder.jpg")("lazyLoad",e.images[0].src),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](17,v,null==e?null:e.slug)),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate"](o["\u0275\u0275pipeBind1"](7,8,e.title)),o["\u0275\u0275advance"](3),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](10,10,o["\u0275\u0275pipeBind2"](11,12,(null==e?null:e.price)*(null==n.productService.Currency?null:n.productService.Currency.price),e))," "),o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("ngIf",null==e?null:e.discount),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"]("Em at\xe9 ",null==e?null:e.parcelaMaxima,"x ")}}function M(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div"),o["\u0275\u0275template"](1,E,15,19,"div",6),o["\u0275\u0275pipe"](2,"slice"),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"](3);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",o["\u0275\u0275pipeBind3"](2,1,e.products,0,3))}}function I(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"del"),o["\u0275\u0275elementStart"](1,"span",12),o["\u0275\u0275text"](2),o["\u0275\u0275pipe"](3,"brMoney"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"]().$implicit,t=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](3,1,(null==e?null:e.price)*(null==t.productService.Currency?null:t.productService.Currency.price))," ")}}function O(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div",7),o["\u0275\u0275elementStart"](1,"a",8),o["\u0275\u0275element"](2,"img",9),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](3,"div",10),o["\u0275\u0275elementStart"](4,"a",8),o["\u0275\u0275elementStart"](5,"h6"),o["\u0275\u0275text"](6),o["\u0275\u0275pipe"](7,"titlecase"),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](8,"h4"),o["\u0275\u0275text"](9),o["\u0275\u0275pipe"](10,"brMoney"),o["\u0275\u0275pipe"](11,"discount"),o["\u0275\u0275template"](12,I,4,3,"del",11),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](13,"span"),o["\u0275\u0275text"](14),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=o["\u0275\u0275nextContext"](4);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](15,v,null==e?null:e.slug)),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("defaultImage","assets/images/product/placeholder.jpg")("lazyLoad",e.images[0].src),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("routerLink",o["\u0275\u0275pureFunction1"](17,v,null==e?null:e.slug)),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate"](o["\u0275\u0275pipeBind1"](7,8,e.title)),o["\u0275\u0275advance"](3),o["\u0275\u0275textInterpolate1"](" ",o["\u0275\u0275pipeBind1"](10,10,o["\u0275\u0275pipeBind2"](11,12,(null==e?null:e.price)*(null==n.productService.Currency?null:n.productService.Currency.price),e))," "),o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("ngIf",null==e?null:e.discount),o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate1"]("Em at\xe9 ",null==e?null:e.parcelaMaxima,"x ")}}function w(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div"),o["\u0275\u0275template"](1,O,15,19,"div",6),o["\u0275\u0275pipe"](2,"slice"),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"](3);o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",o["\u0275\u0275pipeBind3"](2,1,e.products,3,6))}}function F(e,t){1&e&&(o["\u0275\u0275elementContainerStart"](0),o["\u0275\u0275template"](1,M,3,5,"ng-template",5),o["\u0275\u0275template"](2,w,3,5,"ng-template",5),o["\u0275\u0275elementContainerEnd"]())}function z(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"owl-carousel-o",3),o["\u0275\u0275template"](1,F,3,0,"ng-container",4),o["\u0275\u0275pipe"](2,"slice"),o["\u0275\u0275elementEnd"]()),2&e){const e=o["\u0275\u0275nextContext"]();o["\u0275\u0275property"]("options",e.NewProductSliderConfig),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",o["\u0275\u0275pipeBind3"](2,2,e.products,0,3))}}let B=(()=>{class e{constructor(e){this.productService=e,this.title="New Product",this.type="fashion",this.pageFerrovia=!1,this.products=[],this.NewProductSliderConfig=r.g,this.getNewProducts()}ngOnInit(){this.verificaPage()}verificaPage(){const e=l.d.getLocationTenant();"ferroviadev"!==e&&"lovenuts"!==e||(this.pageFerrovia=!0)}getNewProducts(){this.productService.getNewProducts().subscribe(e=>{if(e.length>0){let t=[];t=e;for(let n=0;n<t.length;n++){const t={precoPromocao:e[n].promocao,coligada:e[n].coligada,valor:e[n].valor,precoPromocional:e[n].precoPromocional};if(e[n].descricao&&e[n].fotosServico.length>0){if(e[n].fotosServico.length>0){this.newImages=[];const t=e[n].fotosServico;for(let e=0;e<t.length;e++)this.newImages.push({id:t[e].id,src:t[e].foto})}this.products.push(e[n].promocao?{id:e[n].id,brand:"marca",category:e[n].grupo.descricao,discount:parseFloat(((e[n].precoPromocional-e[n].valor)/e[n].valor*100*-1).toFixed(6)),description:e[n].descricao,title:e[n].titulo,stock:e[n].qtdEstoque,sale:e[n].promocao,price:e[n].valor,peso:e[n].peso,altura:e[n].altura,slug:e[n].slug,coligada:{id:e[n].coligada.id,nome:e[n].coligada.nome,numeroParcelas:e[n].coligada.numeroParcelas,valorMinimoParcela:e[n].coligada.valorMinimoParcela},largura:e[n].largura,comprimento:e[n].comprimento,images:this.newImages,parcelaMaxima:a.a.calcularParcelasProdutoComColigada(t)}:{id:e[n].id,brand:"marca",category:e[n].grupo.descricao,description:e[n].descricao,title:e[n].titulo,stock:e[n].qtdEstoque,price:e[n].valor,peso:e[n].peso,altura:e[n].altura,largura:e[n].largura,comprimento:e[n].comprimento,slug:e[n].slug,coligada:{id:e[n].coligada.id,nome:e[n].coligada.nome,numeroParcelas:e[n].coligada.numeroParcelas,valorMinimoParcela:e[n].coligada.valorMinimoParcela},images:this.newImages,parcelaMaxima:a.a.calcularParcelasProdutoComColigada(t)})}}}},e=>{401===e.status&&console.log(e)})}}return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275directiveInject"](i.a))},e.\u0275cmp=o["\u0275\u0275defineComponent"]({type:e,selectors:[["app-product-box-vertical-slider"]],inputs:{title:"title",type:"type"},decls:5,vars:3,consts:[[1,"theme-card"],[1,"title-border"],["class","offer-slider",3,"options",4,"ngIf"],[1,"offer-slider",3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],["class","media product",4,"ngFor","ngForOf"],[1,"media","product"],[3,"routerLink"],["alt","",1,"img-fluid","w-auto",3,"defaultImage","lazyLoad"],[1,"media-body","align-self-center"],[4,"ngIf"],[1,"money"],[3,"routerLink","queryParams"]],template:function(e,t){1&e&&(o["\u0275\u0275elementStart"](0,"div",0),o["\u0275\u0275elementStart"](1,"h5",1),o["\u0275\u0275text"](2),o["\u0275\u0275elementEnd"](),o["\u0275\u0275template"](3,P,3,6,"owl-carousel-o",2),o["\u0275\u0275template"](4,z,3,6,"owl-carousel-o",2),o["\u0275\u0275elementEnd"]()),2&e&&(o["\u0275\u0275advance"](2),o["\u0275\u0275textInterpolate"](t.title),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf",!t.pageFerrovia),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf",t.pageFerrovia))},directives:[c.n,d.a,c.m,d.c,p.j,u.a],pipes:[c.v,c.w,s.a,m.a],styles:[".media[_ngcontent-%COMP%]{margin-bottom:24px}.media-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-right:16px}.product[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;background:#fff;padding:8px 8px 24px;border-radius:4px}"]}),e})()},"16ZJ":function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n("fXoL"),a=n("ofXK"),l=n("tyNb"),o=n("wf0l"),i=n("c7tH"),c=n("z4eQ");function d(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span",10),r["\u0275\u0275elementStart"](1,"del"),r["\u0275\u0275text"](2),r["\u0275\u0275pipe"](3,"brMoney"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](3,1,null==e.product?null:e.product.price))}}const p=function(e,t){return{product__box:!0,lg:e,md:t}},u=function(e){return["/store/product/lovenuts/",e]},s=function(e){return{p:e}};let m=(()=>{class e{constructor(){this.size="md"}ngOnInit(){var e,t,n;(null===(e=this.product)||void 0===e?void 0:e.discount)&&(this.productDiscountMasked=Math.round(this.product.discount)),this.productImage=null===(n=null===(t=this.product)||void 0===t?void 0:t.images[0])||void 0===n?void 0:n.src}productHover(e){var t,n,r,a;this.productImage=e?null===(n=null===(t=this.product)||void 0===t?void 0:t.images[1])||void 0===n?void 0:n.src:null===(a=null===(r=this.product)||void 0===r?void 0:r.images[0])||void 0===a?void 0:a.src}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-product-box-six"]],inputs:{product:"product",size:"size"},decls:16,vars:32,consts:[[3,"ngClass"],[1,"product__box-img"],[3,"routerLink","queryParams"],[1,"img-fluid","lazy-loading",3,"defaultImage","lazyLoad","mouseenter","mouseleave"],[1,"product__box-title"],[1,"price-content"],["class","discount",4,"ngIf"],[1,"price"],[1,"product__box-action"],[1,"product__box-action-link",3,"routerLink","queryParams"],[1,"discount"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"a",2),r["\u0275\u0275elementStart"](3,"img",3),r["\u0275\u0275listener"]("mouseenter",function(){return t.productHover(!0)})("mouseleave",function(){return t.productHover(!1)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"h3",4),r["\u0275\u0275elementStart"](5,"a",2),r["\u0275\u0275text"](6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",5),r["\u0275\u0275template"](8,d,4,3,"span",6),r["\u0275\u0275elementStart"](9,"p",7),r["\u0275\u0275text"](10),r["\u0275\u0275pipe"](11,"brMoney"),r["\u0275\u0275pipe"](12,"discount"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",8),r["\u0275\u0275elementStart"](14,"a",9),r["\u0275\u0275text"](15," Eu quero "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction2"](17,p,"lg"===t.size,"md"===t.size)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("routerLink",r["\u0275\u0275pureFunction1"](20,u,t.product.title.split(" ").join("-")))("queryParams",r["\u0275\u0275pureFunction1"](22,s,t.product.id)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("defaultImage",t.productImage?t.productImage:"https://cs210033fff90d2f7ac.blob.core.windows.net/utils/Modelo/Imagemsemfundoquadrado.jpg")("lazyLoad",t.productImage?t.productImage:"https://cs210033fff90d2f7ac.blob.core.windows.net/utils/Modelo/Imagemsemfundoquadrado.jpg"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("routerLink",r["\u0275\u0275pureFunction1"](24,u,t.product.title.split(" ").join("-")))("queryParams",r["\u0275\u0275pureFunction1"](26,s,t.product.id)),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.product.title),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==t.product?null:t.product.discount),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](11,12,r["\u0275\u0275pipeBind2"](12,14,null==t.product?null:t.product.price,t.product))),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("routerLink",r["\u0275\u0275pureFunction1"](28,u,t.product.title.split(" ").join("-")))("queryParams",r["\u0275\u0275pureFunction1"](30,s,t.product.id)))},directives:[a.l,l.j,o.a,a.n],pipes:[i.a,c.a],styles:[".product__box[_ngcontent-%COMP%]{height:100%;width:100%;display:grid;grid-template-columns:1fr;grid-template-rows:60% 16% 8% 8%;grid-gap:1%;justify-items:center;align-items:center;margin:1rem 0;z-index:10}.product__box.lg[_ngcontent-%COMP%]{width:30rem;height:30rem;grid-template-rows:68% 10% 6% 8%}.product__box.md[_ngcontent-%COMP%]{width:20rem;height:26rem}.product__box-img[_ngcontent-%COMP%], .product__box-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.product__box-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}.product__box-title[_ngcontent-%COMP%]{font-size:2rem;margin:0;padding:0;text-align:center;width:90%}.product__box-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.09em}.product__box-action[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.5647058823529412);border-radius:16px;padding:.5rem 3.5rem;font-size:1.25rem}.product__box[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{color:#00fa9f;font-size:2rem;font-weight:700;letter-spacing:1px;margin:.5rem;padding:0}.product__box[_ngcontent-%COMP%] .price-content[_ngcontent-%COMP%]{position:relative}.product__box[_ngcontent-%COMP%] .discount[_ngcontent-%COMP%]{position:absolute;top:-12px;right:0;width:100%}.product__box[_ngcontent-%COMP%] .discount[_ngcontent-%COMP%] del[_ngcontent-%COMP%], .product__box[_ngcontent-%COMP%] .discount[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1rem;float:left;width:100%;text-align:center}.product__box[_ngcontent-%COMP%] .discount[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:red}.product__box[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:rgba(0,0,0,.5647058823529412);text-decoration:none;text-transform:uppercase}@keyframes scale-in-hor-center{0%{transform:scaleX(0);opacity:1}to{transform:scaleX(1);opacity:1}}"]}),e})()},rp0M:function(e,t,n){"use strict";n.d(t,"a",function(){return r});let r=(()=>{class e{constructor(){}static onlyChar(){return e=>""===e.value||new RegExp("^[a-zA-Z ]*$").test(e.value)?null:{onlyChar:!0}}static mustMatch(e,t){return n=>{const r=n.controls[t];if(!r.errors||r.errors.mustMatch)return r.setErrors(n.controls[e].value!==r.value?{mustMatch:!0}:null),null}}static validate(e){if(null===e)return!1;const t=e.replace(/[.-\s]/g,"");if(11!==t.length)return!1;if("00000000000"===t||"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t)return!1;let n=0,r="",a=10,l=0,o=0,i=0,c=0,d="";d=t.substring(0,9);for(let p=0;p<9;p++){if(r=d.charAt(p),-1==="0123456789".search(r))return!1;n=Number(r),l+=n*a,a--}o=l%11,i=11-o,i>9&&(i=0),a=11,l=0,d+=i;for(let p=0;p<10;p++)r=d.charAt(p),n=Number(r),l+=n*a,a--;return o=l%11,c=11-o,c>9&&(c=0),d+=c,t===d}}return e.validateDate=()=>e=>{const t=e.value;return null===t||"undefined"===t?{expirationDate:!0}:/^\d{2}$/.test(t)?null:{expirationDate:!0}},e.validateCVC=()=>e=>{const t=e.value;return null===t||"undefined"===t?{validateCvc:!0}:/^\d{3,4}$/.test(t)?null:{validateCvc:!0}},e.validatePassword=()=>e=>{const t=e.value;if(null===t||"undefined"===t)return{validateNum:!0};const n={};return/[0-9]/.test(t)||(n.numbers=!0),/[a-z]/.test(t)||(n.lowercase=!0),/[A-Z]/.test(t)||(n.uppercase=!0),/[!@#$%^&*]/.test(t)||(n.special=!0),t.length<8&&(n.minLength=!0),Object.keys(n).length>0?n:null},e.validateNum=()=>e=>{const t=e.value;return null===t||"undefined"===t?{validateNum:!0}:/^\d+$/.test(t)?null:{validateNum:!0}},e.validateCEP=()=>e=>{const t=e.value;return null===t||"undefined"===t?{validateCep:!0}:/^([\d]{5}-[\d]{3})$|^([\d]{8})$/g.test(t)?null:{validateCep:!0}},e.validatePhone=()=>e=>{const t=e.value;return null===t||"undefined"===t?{validatePhone:!0}:/(?:^\([0]?[1-9]{2}\)|^\([0]?[1-9]{2}\)[\s]|^[0]?[1-9]{2}[\.-\s]?)[9]?[1-9]\d{3}[\.-\s]?\d{4}$/.test(t)?null:{validatePhone:!0}},e.validateEmail=()=>e=>{const t=e.value;return null===t||"undefined"===t?{validateEmail:!0}:/[a-z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/g.test(t)?null:{validateEmail:!0}},e.validateCPF=()=>e=>{let t=e.value;if(null===t||"undefined"===t)return{validateCpf:!0};if(t=t.replace(/[.-\s]/g,""),11!==t.length)return{validateCpf:!0};if("00000000000"===t||"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t)return{validateCpf:!0};let n=0,r="",a=10,l=0,o=0,i=0,c=0,d="";d=t.substring(0,9);for(let p=0;p<9;p++){if(r=d.charAt(p),-1==="0123456789".search(r))return{validateCpf:!0};n=Number(r),l+=n*a,a--}o=l%11,i=11-o,i>9&&(i=0),a=11,l=0,d+=i;for(let p=0;p<10;p++)r=d.charAt(p),n=Number(r),l+=n*a,a--;return o=l%11,c=11-o,c>9&&(c=0),d+=c,t!==d?{validateCpf:!0}:null},e.validateCNPJ=()=>e=>{let t=e.value;if(t=t.replace(/[^\d]+/g,""),""===t)return{validateCnpj:!0};if(14!==t.length)return{validateCnpj:!0};if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return{validateCnpj:!0};let n=t.length-2,r=t.substring(0,n);const a=t.substring(n);let l=0,o=n-7;for(let c=n;c>=1;c--)l+=+r.charAt(n-c)*o--,o<2&&(o=9);let i=l%11<2?0:11-l%11;if(i!==+a.charAt(0))return{validateCnpj:!0};n+=1,r=t.substring(0,n),l=0,o=n-7;for(let c=n;c>=1;c--)l+=+r.charAt(n-c)*o--,o<2&&(o=9);return i=l%11<2?0:11-l%11,i!==+a.charAt(1)?{validateCnpj:!0}:null},e})()}}]);