1"use strict";(self.webpackChunken_base_studio=self.webpackChunken_base_studio||[]).push([[489],{9075:function(i,l,t){t.d(l,{Z:function(){return s}});var n=t(5116),o=t(7782),e=t(3550),r=t(4e3),a=t(5893);function s(i){var l,t,s,d,u,c,v,g,h,p,x,m,f,b,j=i.category,y=i.variant,w=void 0===y?1:y,Z=(0,e.Z)().translate,I=null!=j&&j.title?Z(null==j?void 0:j.title):"",_=null!=j&&j.description?Z(null==j?void 0:j.description):"";return 1===w?(0,a.jsxs)(n.xu,{as:o.Link,to:"/catalogo/"+(null==j||null===(g=j.slug)||void 0===g?void 0:g.current),display:"grid",rounded:"lg",overflow:"hidden",willChange:"transform",h:"full",w:"full",_hover:{boxShadow:"2xl",cursor:"pointer"},transition:".3s ease-in-out",children:[(null==j||null===(h=j.image)||void 0===h||null===(p=h.asset)||void 0===p?void 0:p.gatsbyImageData)&&(0,a.jsx)(r.Z,{image:null==j||null===(x=j.image)||void 0===x||null===(m=x.asset)||void 0===m?void 0:m.gatsbyImageData,crop:null==j||null===(f=j.image)||void 0===f?void 0:f.crop,hotspot:null==j||null===(b=j.image)||void 0===b?void 0:b.hotspot,style:{gridArea:"1/1"},alt:I}),(0,a.jsx)(n.xu,{gridArea:"1/1",position:"relative",placeItems:"end center",p:4,pb:6,display:"grid",bgGradient:"linear(to-t, rgba(0, 0, 0, 0.3), transparent)",_hover:{bgGradient:"linear(to-r, rgba(0, 0, 0, 0.3), transparent)"},children:(0,a.jsx)(n.X6,{fontSize:"2xl",fontWeight:600,color:"white",children:I})})]}):(0,a.jsxs)(n.xu,{as:o.Link,to:"/catalogo/"+(null==j||null===(l=j.slug)||void 0===l?void 0:l.current),h:"full",w:"full",children:[(null==j||null===(t=j.image)||void 0===t||null===(s=t.asset)||void 0===s?void 0:s.gatsbyImageData)&&(0,a.jsx)(n.xu,{rounded:"lg",overflow:"hidden",children:(0,a.jsx)(r.Z,{image:Object.assign({},null==j||null===(d=j.image)||void 0===d||null===(u=d.asset)||void 0===u?void 0:u.gatsbyImageData,{height:5568,width:3712}),crop:null==j||null===(c=j.image)||void 0===c?void 0:c.crop,hotspot:null==j||null===(v=j.image)||void 0===v?void 0:v.hotspot,alt:I})}),(0,a.jsx)(n.X6,{fontSize:"xl",mt:4,children:I}),(0,a.jsx)(n.xv,{mt:4,color:"gray.600",noOfLines:3,children:_})]})}},3517:function(i,l,t){t.d(l,{Z:function(){return a}});var n=t(5116),o=t(3550),e=t(4e3),r=t(5893);function a(i){var l,t,a,s,d,u,c=i.category,v=(0,o.Z)(),g=v.translate,h=v.format,p=null!=c&&c.title?g(null==c?void 0:c.title):h("allProducts"),x=null!=c&&c.description?g(null==c?void 0:c.description):"",m=!(null==c||null===(l=c.cover)||void 0===l||null===(t=l.asset)||void 0===t||!t.gatsbyImageData);return(0,r.jsxs)(n.xu,{display:"grid",h:"33vh",mb:6,children:[m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.Z,{image:null==c||null===(a=c.cover)||void 0===a||null===(s=a.asset)||void 0===s?void 0:s.gatsbyImageData,hotspot:null==c||null===(d=c.cover)||void 0===d?void 0:d.hotspot,crop:null==c||null===(u=c.cover)||void 0===u?void 0:u.crop,alt:p,style:{gridArea:"1/1"}}),(0,r.jsx)(n.xu,{position:"relative",h:"100%",w:"100%",bg:"rgba(0,0,0,0.5)",gridArea:"1/1"})]}),(0,r.jsx)(n.W2,{maxW:"container.lg",gridArea:"1/1",position:"relative",children:(0,r.jsxs)(n.M5,{h:"full",flexDirection:"column",borderBottom:m?"":"1px solid",borderColor:"primary.100",textAlign:"center",children:[(0,r.jsx)(n.X6,{fontWeight:"bold",size:"3xl",fontSize:{base:"2xl",sm:"3xl",md:"4xl",lg:"5xl"},textTransform:"uppercase",color:m?"primary.50":"primary.900",children:p}),!!x&&(0,r.jsx)(n.xv,{mt:4,color:m?"primary.50":"gray.600",fontSize:"lg",children:x})]})})]})}},4e3:function(i,l,t){t.d(l,{Z:function(){return a}});var n=t(3366),o=t(3723),e=t(5893),r=["hotspot","crop"];function a(i){var l=i.hotspot,t=i.crop,a=(0,n.Z)(i,r),s={};if(t){var d=t.left,u=t.right,c=t.top,v=t.bottom,g=a.image,h=g.width,p=g.height,x=1-(d||0)-(u||0),m=1-(c||0)-(v||0);if(1!==x||1!==m){var f=h*x/(p*m);s.style={aspectRatio:f},s.imgStyle={width:100*x+"%",height:100*m+"%"},s.objectFit="none"}}return l&&(s.objectPosition=[null==l?void 0:l.x,null==l?void 0:l.y].map((function(i){return i?(100*i).toFixed(2)+"%":"100%"})).join(" ")),(0,e.jsx)(o.G,Object.assign({},s,a))}},419:function(i,l,t){t.r(l),t.d(l,{default:function(){return s}});var n=t(5116),o=t(7294),e=t(9075),r=t(3517),a=t(5893);function s(i){var l=i.data,t=l.category,s=l.categories,d=(0,o.useMemo)((function(){return s.nodes.filter((function(i){var l;return!t||(null===(l=i.parents)||void 0===l?void 0:l.some((function(i){return(null==i?void 0:i._id)===(null==t?void 0:t._id)})))}))}),[s,t]);return(0,a.jsxs)(a.Fragment,{children:[t?(0,a.jsx)(r.Z,{category:t}):(0,a.jsx)(n.xu,{h:12}),(0,a.jsx)(n.W2,{maxW:"container.lg",children:(0,a.jsx)(n.MI,{minChildWidth:{base:"200px",md:"300px"},spacing:10,pt:6,pb:12,children:d.map((function(i){return(0,a.jsx)(e.Z,{category:i,variant:2},i.id)}))})})]})}}}]); 2//# sourceMappingURL=component---src-templates-categories-template-tsx-af7d9c9fb4e60e1213cc.js.map
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.