PageSourceSearch

https://nataliazambenedetti.com/assets/ProjectPage-C8E8cEL3.js

js nataliazambenedetti.com collected 2026-10-09 22:02:45 UTC 16,049 bytes, 1 lines download raw bytes

1import{D as e,E as t,T as n,n as r}from"./index-BlamNdRq.js";var i=e(t()),a=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),o=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),c=e=>{let t=s(e);return t.charAt(0).toUpperCase()+t.slice(1)},l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},u=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},d=(0,i.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o=``,children:s,iconNode:c,...d},f)=>(0,i.createElement)(`svg`,{ref:f,...l,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:a(`lucide`,o),...!s&&!u(d)&&{"aria-hidden":`true`},...d},[...c.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(s)?s:[s]])),f=(e,t)=>{let n=(0,i.forwardRef)(({className:n,...r},s)=>(0,i.createElement)(d,{ref:s,iconNode:t,className:a(`lucide-${o(c(e))}`,`lucide-${e}`,n),...r}));return n.displayName=c(e),n},p=f(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),m=f(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),h=f(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),g=f(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),_=f(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),v=f(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),y={version:1,asset_id:`b714e511-3fe5-446d-813c-4dfd43d17ccd`,project_id:`e5ec59b8-be5c-4dbe-9604-fa723746e86b`,url:`/__l5e/assets-v1/b714e511-3fe5-446d-813c-4dfd43d17ccd/logo-header-v2.png`,r2_key:`a/v1/e5ec59b8-be5c-4dbe-9604-fa723746e86b/b714e511-3fe5-446d-813c-4dfd43d17ccd/logo-header-v2.png`,original_filename:`logo-header-v2.png`,size:60221,content_type:`image/png`,created_at:`2026-07-20T15:33:04Z`},b=n(),x=`https://api.whatsapp.com/send/?phone=5547992121453&text=Oi!+Vim+pelo+site+NZ+Arquitetura+e+gostaria+de+fazer+um+or%C3%A7amento!`;function S({slug:e,onBack:t,backLabel:n=`Voltar`}){let a=r(e);if(!a)return(0,b.jsxs)(`div`,{className:`mx-auto max-w-[900px] px-[15px] py-24 text-center`,children:[(0,b.jsx)(`h1`,{className:`text-3xl`,style:{color:`#2b2b26`}
1,children:`Projeto não encontrado`}),(0,b.jsx)(`p`,{className:`mt-4`,style:{color:`#68685f`},children:`O projeto que você procura não está disponível.`}),(0,b.jsxs)(`button`,{onClick:t,className:`nz-btn-primary mt-8`,children:[(0,b.jsx)(p,{size:16,className:`mr-2`}),` Voltar`]})]});let o=a.imagensGaleria.length>0?a.imagensGaleria:Array(8).fill(null),s=[...a.imagemPrincipal?[a.imagemPrincipal]:[],...a.imagensGaleria],[c,l]=(0,i.useState)(null),[u,d]=(0,i.useState)(!1),f=e=>l(e);return(0,b.jsxs)(`div`,{style:{background:`#ffffff`},children:[(0,b.jsx)(`div`,{className:`mx-auto max-w-[1500px] px-[15px] pt-8 md:px-10 md:pt-10`,children:(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,b.jsxs)(`button`,{type:`button`,onClick:t,"aria-label":`Voltar para os projetos`,className:`inline-flex items-center gap-2 rounded-md px-2 py-1 transition-colors`,style:{color:`#2b2b26`,fontFamily:`Roboto`,fontSize:14,fontWeight:500},onMouseEnter:e=>e.currentTarget.style.color=`#808175`,onMouseLeave:e=>e.currentTarget.style.color=`#2b2b26`,children:[(0,b.jsx)(p,{size:18,strokeWidth:1.75}),(0,b.jsx)(`span`,{children:n})]}),(0,b.jsx)(`img`,{src:y.url,alt:`NZ Arquitetura & Interiores`,className:`h-9 w-auto md:h-11`,width:220,height:60})]})}),(0,b.jsx)(`section`,{className:`mx-auto max-w-[1500px] px-[15px] pb-14 pt-6 md:px-10 md:pb-20 md:pt-10`,children:(0,b.jsxs)(`div`,{className:`grid gap-8 md:grid-cols-2 md:items-start md:gap-16`,children:[(0,b.jsxs)(`div`,{className:`order-2 md:order-1 md:pt-4`,children:[(0,b.jsx)(`div`,{className:`text-xs uppercase tracking-[0.28em]`,style:{color:`#808175`,fontFamily:`Roboto`,fontWeight:600},children:a.categoria}),(0,b.jsx)(`h1`,{className:`mt-3 text-4xl md:text-[54px]`,style:{color:`#2b2b26`,lineHeight:1.1,fontFamily:`Arsenal`,fontWeight:400},children:a.nome}),(a.localizacao||a.data)&&(0,b.jsxs)(`dl`,{className:`mt-8 grid grid-cols-2 gap-6 border-y py-6`,style:{borderColor:`#e6e5de`},children:[a.localizacao&&(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`dt`,{className:`text-[11px] uppercase tracking-[0.24em]`,style:{color:`#808175`,fontFamily:`Roboto`,fontWeight:600},children:`Localização`}),(0,b.jsx)(`dd`,{className:`mt-1 text-sm md:text-base`,style:{color:`#2b2b26`},children:a.localizacao})]}),a.data&&(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`dt`,{className:`text-[11px] uppercase tracking-[0.24em]`,style:{color:`#808175`,fontFamily:`Roboto`,fontWeight:600},children:`Data`}),(0,b.jsx)(`dd`,{className:`mt-1 text-sm md:text-base`,style:{color:`#2b2b26`},children:a.data})]})]}),a.descricao.length>0&&(0,b.jsx)(`div`,{className:`mt-8 space-y-4`,children:a.descricao.map((e,t)=>(0,b.jsx)(`p`,{style:{color:`#2b2b26`,lineHeight:1.75,fontSize:16,maxWidth:640},children:e},t))}),a.videos&&a.videos.length>0&&(0,b.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-3`,children:[(0,b.jsx)(`a`,{href:`#galeria-do-projeto`,className:`nz-btn-secondary`,children:`Galeria`}),(0,b.jsx)(`a`,{href:`#videos-do-projeto`,className:`nz-btn-primary`,children:`Vídeos`})]})]}),(0,b.jsx)(`div`,{className:`order-1 md:order-2`,children:a.videoDestaque?a.videoDestaque.modo===`youtube`&&a.videoDestaque.youtubeId?(0,b.jsxs)(`button`,{type:`button`,onClick:()=>d(!0),"aria-label":`Reproduzir vídeo do projeto ${a.nome}`,className:`group relative block w-full overflow-hidden`,children:[a.imagemPrincipal?(0,b.jsx)(`img`,{src:a.imagemPrincipal,alt:`Capa do vídeo do projeto ${a.nome}`,className:`aspect-[3/4] w-full object-cover`,width:900,height:1200}):(0,b.jsx)(`div`,{className:`aspect-[3/4] w-full`,style:{background:`linear-gradient(135deg, #d4d5cc 0%, #acaa9c 100%)`}}),(0,b.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,b.jsx)(`span`,{className:`flex h-16 w-16 items-center justify-center rounded-full transition-transform duration-300 group-hover:scale-110`,style:{background:`rgba(255,255,255,0.85)`},children:(0,b.jsx)(_,{size:28,strokeWidth:1.5,className:`translate-x-0.5`,style:{color:`#808175`,f
1ill:`#808175`}})})})]}):a.videoDestaque.modo===`auto`?(0,b.jsx)(`video`,{src:a.videoDestaque.src,poster:a.imagemPrincipal,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!1,disablePictureInPicture:!0,className:`aspect-[3/4] w-full object-cover`,style:{pointerEvents:`none`},"aria-label":`Vídeo do projeto ${a.nome}`}):(0,b.jsx)(`video`,{src:a.videoDestaque.src,poster:a.imagemPrincipal,controls:!0,playsInline:!0,preload:`metadata`,className:`h-auto w-full`,"aria-label":`Vídeo do projeto ${a.nome}`}):a.imagemPrincipal?(0,b.jsx)(`button`,{type:`button`,onClick:()=>f(0),className:`block w-full overflow-hidden`,"aria-label":`Ampliar imagem principal do projeto ${a.nome}`,children:(0,b.jsx)(`img`,{src:a.imagemPrincipal,alt:`Imagem principal do projeto ${a.nome}`,className:`aspect-[3/4] w-full object-cover transition-transform duration-500 hover:scale-[1.02]`,width:900,height:1200})}):(0,b.jsx)(C,{label:`Imagem principal do projeto`,className:`aspect-[3/4] w-full`})})]})}),(0,b.jsx)(`section`,{className:`w-full`,style:{background:`#ffffff`},children:(0,b.jsxs)(`div`,{id:`galeria-do-projeto`,className:`mx-auto max-w-[1500px] scroll-mt-24 px-[15px] pb-16 md:px-10 md:pb-24`,children:[(0,b.jsx)(`h2`,{className:`text-2xl md:text-[34px]`,style:{color:`#2b2b26`},children:`Galeria do projeto`}),(0,b.jsx)(`div`,{className:`mt-8 grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-8`,children:o.map((e,t)=>{if(!e)return(0,b.jsx)(C,{label:`Imagem do projeto`,className:`aspect-[4/3] w-full`},`ph-${t}`);let n=a.imagemPrincipal?t+1:t;return(0,b.jsx)(`button`,{type:`button`,onClick:()=>f(n),className:`group block overflow-hidden`,"aria-label":`Ampliar imagem ${t+1} da galeria`,children:(0,b.jsx)(`img`,{src:e,alt:`Imagem da galeria do projeto ${a.nome}`,loading:`lazy`,className:`aspect-[4/3] w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]`})},e+t)})})]})}),a.videos&&a.videos.length>0&&(0,b.jsx)(T,{videos:a.videos,projectName:a.nome}),(0,b.jsx)(`section`,{className:`w-full`,style:{background:`#ffffff`},children:(0,b.jsx)(`div`,{className:`mx-auto max-w-[1500px] px-[15px] pb-16 md:px-10 md:pb-24`,children:(0,b.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-3`,children:[(0,b.jsxs)(`button`,{type:`button`,onClick:t,className:`nz-btn-secondary`,children:[(0,b.jsx)(p,{size:16,className:`mr-2`}),` Voltar para os projetos`]}),(0,b.jsx)(`a`,{href:x,target:`_blank`,rel:`noopener noreferrer`,className:`nz-btn-primary`,children:`Solicitar orçamento`})]})})}),c!==null&&s.length>0&&(0,b.jsx)(E,{images:s,index:c,projectName:a.nome,onClose:()=>l(null),onIndexChange:l}),u&&a.videoDestaque?.youtubeId&&(0,b.jsxs)(`div`,{className:`fixed inset-0 z-[130] flex items-center justify-center px-4`,style:{background:`rgba(43,43,38,0.92)`},role:`dialog`,"aria-modal":`true`,"aria-label":`Vídeo do projeto ${a.nome}`,children:[(0,b.jsx)(`button`,{type:`button`,onClick:()=>d(!1),"aria-label":`Fechar vídeo`,className:`absolute right-4 top-4 inline-flex h-11 w-11 items-center justify-center rounded-full`,style:{background:`rgba(255,255,255,0.12)`,color:`#ffffff`},children:(0,b.jsx)(v,{size:22})}),(0,b.jsx)(`div`,{className:`aspect-[9/16] max-h-[85vh] w-auto`,style:{aspectRatio:`9 / 16`},children:(0,b.jsx)(`iframe`,{src:`https://www.youtube.com/embed/${a.videoDestaque.youtubeId}?autoplay=1&rel=0&playsinline=1`,title:`Vídeo do projeto ${a.nome}`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0,className:`h-full w-full`,style:{border:0,aspectRatio:`9 / 16`,maxHeight:`85vh`}})})]})]})}function C({label:e,className:t=``}){return(0,b.jsxs)(`div`,{className:`flex flex-col items-center justify-center overflow-hidden ${t}`,style:{background:`linear-gradient(135deg, #d4d5cc 0%, #acaa9c 100%)`},"aria-hidden":`true`,children:[(0,b.jsx)(g,{size:44,strokeWidth:1.25,color:`#808175`}),(0,b.jsx)(`span`,{className:`mt-3 text-xs`,style:{color:`#6f7063`,fontFamily:`Roboto`,letterSpacing:`0.06em`},children:e})]})}function w(e){let t=e.replace(/\.[a-z0-9]+$/i,``).replace(/[-_]+/g,` `).trim();return t.charAt(0).toUpperCase()+t.slice(1)}function T({videos:e,projectName:t}){let[n,r]=(0,i.useState)(null);return(0,b.jsxs)(`section`,{className:`w-full`,style:{background:`#ffffff`},children:[(0,b.jsxs)(`div`,{id:`videos-do-projeto`,className:`mx-auto max-w-[1500px] scroll-mt-24 px-[15px] pb-10 md:px-10 md:pb-14`,children:[(0,b.jsx)(`h2`,{className:`text-2xl md:text-[34px]`,style:{color:`#2b2b26`},children:`O projeto em movimento`}),(0,b.jsx)(`div`,{className:`mt-8 grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 md:gap-8`,children:e.map((e,n)=>{let i=e.caption||w(e.title);return(0,b.jsxs)(`div`,{children:[e.src||e.youtubeId?(0,b.jsxs)(`button`,{type:`button`,onClick:()=>r(e),"aria-label":`Reproduzir vídeo: ${i}`,className:`group relative block w-full overflow-hidden`,children:[e.thumbnail?(0,b.jsx)(`img`,{src:e.thumbnail,alt:`Capa do vídeo ${i} do projeto ${t}`,className:`aspect-[9/16] w-full object-cover`,loading:`lazy`}):(0,b.jsx)(`div`,{className:`aspect-[9/16] w-full`,style:{background:`linear-gradient(135deg, #d4d5cc 0%, #acaa9c 100%)`}}),(0,b.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,b.jsx)(`span`,{className:`flex h-14 w-14 items-center justify-center rounded-full transition-transform duration-300 group-hover:scale-110`,style:{background:`rgba(255,255,255,0.8)`},children:(0,b.jsx)(_,{size:24,strokeWidth:1.5,className:`translate-x-0.5`,style:{color:`#808175`,f
1ill:`#808175`}})})})]}):null,(0,b.jsx)(`p`,{className:`mt-3 text-sm md:text-base`,style:{color:`#2b2b26`,fontFamily:`Roboto`},children:i})]},n)})})]}),n&&(n.src||n.youtubeId)&&(0,b.jsxs)(`div`,{className:`fixed inset-0 z-[130] flex items-center justify-center px-4`,style:{background:`rgba(43,43,38,0.92)`},role:`dialog`,"aria-modal":`true`,"aria-label":`Vídeo ${n.caption||n.title}`,children:[(0,b.jsx)(`button`,{type:`button`,onClick:()=>r(null),"aria-label":`Fechar vídeo`,className:`absolute right-4 top-4 inline-flex h-11 w-11 items-center justify-center rounded-full`,style:{background:`rgba(255,255,255,0.12)`,color:`#ffffff`},children:(0,b.jsx)(v,{size:22})}),n.youtubeId?(0,b.jsx)(`div`,{className:`aspect-[9/16] max-h-[85vh] w-auto`,style:{aspectRatio:`9 / 16`},children:(0,b.jsx)(`iframe`,{src:`https://www.youtube.com/embed/${n.youtubeId}?autoplay=1&rel=0&playsinline=1`,title:`Vídeo ${n.caption||n.title}`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0,className:`h-full w-full`,style:{border:0,aspectRatio:`9 / 16`,maxHeight:`85vh`}})}):(0,b.jsx)(`video`,{src:n.src,poster:n.thumbnail,controls:!0,autoPlay:!0,playsInline:!0,className:`max-h-[85vh] w-auto max-w-full`})]})]})}function E({images:e,index:t,projectName:n,onClose:r,onIndexChange:a}){let[o,s]=(0,i.useState)(`right`),c=(0,i.useRef)(null),l=n=>{s(n>0?`right`:`left`),a((t+n+e.length)%e.length)};return(0,i.useEffect)(()=>{let e=e=>{e.key===`Escape`?r():e.key===`ArrowRight`?l(1):e.key===`ArrowLeft`&&l(-1)};window.addEventListener(`keydown`,e);let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{window.removeEventListener(`keydown`,e),document.body.style.overflow=t}},[t,e.length]),(0,b.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center`,style:{background:`rgba(43, 43, 38, 0.92)`,animation:`nz-fade-in 200ms ease-out`},role:`dialog`,"aria-modal":`true`,"aria-label":`Galeria de imagens do projeto ${n}`,onTouchStart:e=>{c.current=e.touches[0].clientX},onTouchEnd:e=>{if(c.current==null)return;let t=e.changedTouches[0].clientX-c.current;Math.abs(t)>40&&l(t<0?1:-1),c.current=null},children:[(0,b.jsx)(`button`,{type:`button`,onClick:r,"aria-label":`Fechar galeria`,className:`absolute right-4 top-4 z-10 inline-flex h-11 w-11 items-center justify-center rounded-full transition-colors`,style:{background:`rgba(255,255,255,0.08)`,color:`#ffffff`},onMouseEnter:e=>e.currentTarget.style.background=`rgba(255,255,255,0.18)`,onMouseLeave:e=>e.currentTarget.style.background=`rgba(255,255,255,0.08)`,children:(0,b.jsx)(v,{size:22})}),(0,b.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),l(-1)},"aria-label":`Imagem anterior`,className:`absolute left-3 z-10 hidden h-12 w-12 items-center justify-center rounded-full md:inline-flex`,style:{background:`rgba(255,255,255,0.08)`,color:`#ffffff`},children:(0,b.jsx)(m,{size:26})}),(0,b.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),l(1)},"aria-label":`Próxima imagem`,className:`absolute right-3 z-10 hidden h-12 w-12 items-center justify-center rounded-full md:inline-flex`,style:{background:`rgba(255,255,255,0.08)`,color:`#ffffff`},children:(0,b.jsx)(h,{size:26})}),(0,b.jsx)(`div`,{className:`relative flex h-full w-full items-center justify-center px-4 md:px-16`,children:(0,b.jsx)(`img`,{src:e[t],alt:`Imagem ${t+1} de ${e.length} do projeto ${n}`,className:`max-h-[85vh] max-w-full object-contain`,style:{animation:`${o===`right`?`nz-lb-slide-right`:`nz-lb-slide-left`} 300ms ease-out both`}},t)}),(0,b.jsxs)(`div`,{className:`absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full px-3 py-1 text-xs`,style:{background:`rgba(255,255,255,0.1)`,color:`#ffffff`,fontFamily:`Roboto`},children:[t+1,` / `,e.length]})]})}export{g as a,_ as i,y as n,p as o,v as r,f as s,S as t};

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.