PageSourceSearch

https://brasilmineral.com.br/_next/static/chunks/54767-9fa08837465aa35c.js

js brasilmineral.com.br collected 2026-09-24 19:16:49 UTC 10,210 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54767],{19392:(e,a,s)=>{s.d(a,{SupplierCard:()=>x});var t=s(95155),r=s(98500),l=s.n(r),i=s(5772),n=s(81477),d=s(45160),o=s(50049),c=s(24384),m=s(56244);let p="#4f0000";function x({supplier:e,categoryCountOverride:a}){var s;let r=(s=e.productCount,"brand"===e.presentationMode?s>0?"brand":"product":"product"===e.presentationMode?"product":s>=8||e.categorias.length>=3?"brand":"product"),f=e.categorias.slice(0,4).map(e=>m.sJ[e]?.label??e),u=e.categorias.length-f.length;return(0,t.jsx)(l(),{href:`/guia/${e.id}`,prefetch:!1,children:(0,t.jsxs)(n.Zp,{className:"group flex h-full flex-col overflow-hidden border-gray-200 transition-shadow hover:border-gray-300 hover:shadow-lg",children:[(0,t.jsxs)("div",{className:"relative aspect-[4/3] w-full overflow-hidden bg-gray-100",children:["product"===r&&e.featuredProduct?.imagens?.[0]?(0,t.jsx)(i.default,{src:e.featuredProduct.imagens[0],alt:e.featuredProduct.nome,fill:!0,unoptimized:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw",className:"object-cover transition-transform duration-300 group-hover:scale-105"}):e.logoUrl?(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-white p-6",children:(0,t.jsx)(i.default,{src:e.logoUrl,alt:e.name,width:200,height:100,unoptimized:!0,className:"max-h-full max-w-full object-contain"})}):(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gray-100",children:(0,t.jsx)(o.A,{className:"h-10 w-10 text-gray-300"})}),"featured"===e.plan&&(0,t.jsx)("span",{className:"absolute left-2 top-2 rounded px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-white",style:{backgroundColor:p},children:"Destaque"})]}),(0,t.jsxs)(n.Wu,{className:"flex flex-1 flex-col p-4",children:["product"===r&&e.featuredProduct?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-[11px] font-medium text-gray-500",children:e.name}),(0,t.jsx)("h3",{className:"mt-0.5 line-clamp-2 text-sm font-semibold",style:{color:p},children:e.featuredProduct.nome})]}):(0,t.jsx)("h3",{className:"line-clamp-2 text-sm font-semibold",style:{color:p},children:e.name}),e.tagline&&"brand"===r&&(0,t.jsx)("p",{className:"mt-1 line-clamp-1 text-xs text-gray-500",children:e.tagline}),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap items-center gap-1",children:"brand"===r?(0,t.jsxs)(t.Fragment,{children:[f.map(e=>(0,t.jsx)(d.E,{variant:"secondary",className:"text-[10px] font-normal",children:e},e)),u>0&&(0,t.jsxs)(d.E,{variant:"secondary",className:"text-[10px] font-normal",children:["+",u]})]}):e.categorias[0]&&(0,t.jsx)(d.E,{variant:"secondary",className:"text-[10px] font-normal",children:m.sJ[e.categorias[0]]?.label})}),(0,t.jsxs)("div",{className:"mt-auto flex items-center justify-between pt-3 text-[11px] text-gray-500",children:[(0,t.jsx)("span",{children:[e.location.city,e.location.state].filter(Boolean).join(" \xb7 ")}),e.verifiedBadge&&(0,t.jsxs)("span",{className:"flex items-center gap-1 text-emerald-700",children:[(0,t.jsx)(c.A,{className:"h-3.5 w-3.5"})," Verificado"]}
1)]}),"brand"===r&&e.productCount>0&&(0,t.jsxs)("p",{className:"mt-2 text-[11px] text-gray-500",children:[a??e.productCount," produto",(a??e.productCount)===1?"":"s"," no cat\xe1logo"]})]})]})})}},26569:(e,a,s)=>{s.d(a,{SupplierTierGrid:()=>u});var t=s(95155),r=s(12115),l=s(19392),i=s(98500),n=s.n(i),d=s(5772),o=s(56244),c=s(95661),m=s(40980);function p({plan:e,className:a}){if("free"===e)return null;let s=c.RI[e],r=s.icon;return(0,t.jsxs)("span",{className:(0,m.cn)("inline-flex items-center gap-1",s.badgeClassName,a),children:[r&&(0,t.jsx)(r,{className:"h-3 w-3"}),s.label]})}function x({supplier:e}){let a=e.categorias.slice(0,3).map(e=>o.sJ[e]?.label??e);return(0,t.jsx)(n(),{href:`/guia/${e.id}`,prefetch:!1,className:"group block",children:(0,t.jsxs)("div",{className:"relative aspect-[16/9] w-full overflow-hidden rounded-xl shadow-lg transition-shadow duration-300 hover:shadow-[0_0_36px_-8px_rgba(230,150,80,0.45)] sm:aspect-[2/1]",children:[e.coverImageUrl?(0,t.jsx)(d.default,{src:e.coverImageUrl,alt:e.name,fill:!0,unoptimized:!0,sizes:"(max-width: 1024px) 100vw, 50vw",className:"object-cover transition-transform duration-300 group-hover:scale-105"}):(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"radial-gradient(140% 120% at 12% 0%, #6d1020 0%, #4f0000 45%, #2b0000 100%)"}}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/35 to-transparent"}),(0,t.jsx)(p,{plan:"enterprise",className:"absolute left-4 top-4 z-10"}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 z-10 flex items-end gap-3 p-4 sm:p-5",children:[e.logoUrl&&(0,t.jsx)("div",{className:"hidden h-14 w-14 shrink-0 items-center justify-center rounded-lg bg-white p-2 shadow-md sm:flex",children:(0,t.jsx)(d.default,{src:e.logoUrl,alt:"",width:48,height:48,unoptimized:!0,className:"max-h-full max-w-full object-contain"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"text-lg font-bold text-white drop-shadow-sm sm:text-xl",children:e.name}),e.tagline&&(0,t.jsx)("p",{className:"mt-0.5 line-clamp-1 text-sm text-white/85",children:e.tagline}),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:a.map(e=>(0,t.jsx)("span",{className:"rounded-full bg-white/15 px-2 py-0.5 text-[10px] font-medium text-white backdrop-blur-sm",children:e},e))})]})]})]})})}function f({children:e}){return(0,t.jsx)("h2",{className:"mb-4 text-sm font-bold uppercase tracking-wide",style:{color:"#4f0000"},children:e})}function u({enterprise:e,featured:a,free:s,categoryCounts:i,emptyMessage:n}){let[d,o]=(0,r.useState)(24);if(0===e.length&&0===a.length&&0===s.length)return(0,t.jsx)("p",{className:"py-20 text-center text-gray-500",children:n??"Nenhum fornecedor encontrado."});let c=e.length>0||a.length>0,m=e.length>0&&a.length>0,p="grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4";return(0,t.jsxs)("div",{className:"space-y-12",children:[c&&(0,t.jsxs)("section",{children:[(0,t.jsx)(f,{children:"Destaques"}),(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-12",children:[e.length>0&&(0,t.jsx)("div",{className:m?"lg:col-span-8":"lg:col-span-12",children:(0,t.jsx)("div",{className:e.length>1?"grid gap-5 sm:grid-cols-2":"",children:e.map(e=>(0,t.jsx)(x,{supplier:e},e.id))})}),a.length>0&&(0,t.jsx)("div",{className:m?"lg:col-span-4":"lg:col-span-12",children:m?(0,t.jsx)("div",{className:"flex flex-col gap-5",children:a.slice(0,2).map(e=>(0,t.jsx)(l.SupplierCard,{supplier:e,categoryCountOverride:i?.get(e.id)},e.id))}):(0,t.jsx)("div",{className:p,children:a.map(e=>(0,t.jsx)(l.SupplierCard,{supplier:e,categoryCountOverride:i?.get(e.id)},e.id))})})]})]}),s.length>0&&(0,t.jsxs)("section",{children:[(0,t.jsx)(f,{children:"Todos os fornecedores"}),(0,t.jsx)("div",{className:p,children:s.slice(0,d).map(e=>(0,t.jsx)(l.SupplierCard,{supplier:e,categoryCountOverride:i?.get(e.id)},e.id))}),s.length>d&&(0,t.jsx)("div",{className:"mt-8 text-center",children:(0,t.jsx)("button",{onClick:()=>o(e=>e+24),className:"rounded-full border border-[#4f0000]/25 px-5 py-2 text-sm font-semibold text-[#4f0000] transition-colors hover:bg-[rgba(79,0,0,0.05)]",children:"Carregar mais fornecedores"})})]})]})}},47687:(e,a,s)=>{s.d(a,{Tabs:()=>n,TabsContent:()=>c,TabsList:()=>d,TabsTrigger:()=>o});var t=s(95155),r=s(12115),l=s(57518),i=s(40980);let n=l.bL,d=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)(l.B8,{ref:s,className:(0,i.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...a}));d.displayName=l.B8.displayName;let o=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)(l.l9,{ref:s,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...a}));o.displayName=l.l9.displayName;let c=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)(l.UC,{ref:s,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...a}));c.displayName=l.UC.displayName},81477:(e,a,s)=>{s.d(a,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>n});var t=s(95155),r=s(12115),l=s(40980);let i=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...a}));
1i.displayName="Card";let n=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",e),...a}));n.displayName="CardHeader";let d=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",e),...a}));d.displayName="CardTitle";let o=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",e),...a}));o.displayName="CardDescription";let c=r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",e),...a}));c.displayName="CardContent",r.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",e),...a})).displayName="CardFooter"},95661:(e,a,s)=>{s.d(a,{EB:()=>l,RI:()=>n,Tt:()=>i});var t=s(86901),r=s(31069);let l={enterprise:0,featured:1,free:2};function i(e){return{enterprise:e.filter(e=>"enterprise"===e.plan),featured:e.filter(e=>"featured"===e.plan),free:e.filter(e=>"free"===e.plan)}}let n={free:{label:"Gr\xe1tis"},featured:{label:"Destaque",badgeClassName:"rounded-full border border-white/20 bg-[#4f0000] px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wide text-white shadow-sm",icon:t.A},enterprise:{label:"Enterprise",badgeClassName:"rounded-full border border-amber-300/40 bg-gradient-to-r from-[#6d1020] via-[#4f0000] to-[#2b0000] px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wide text-amber-100 shadow-sm",icon:r.A}}}}]);

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.