PageSourceSearch

https://www.todolivro.com.br/_frsh/js/2a623112aee155e025b66cbee8e850da33b2f3f3/Menu-VIVA53NZ.js

js todolivro.com.br collected 2026-09-26 08:30:26 UTC 4,688 bytes, 1 lines download raw bytes

1import{c as p}from"./chunk-CRE3IJ2E.js";import{a as n}from"./chunk-6ADYHPW7.js";import{a as m}from"./chunk-UYDWTN42.js";import{a as f}from"./chunk-L3CPNZT2.js";import{a as h}from"./chunk-JLVMWG5F.js";import"./chunk-4EDLVDYP.js";import"./chunk-LMPR367F.js";import"./chunk-3QSTZN32.js";import"./chunk-KDKHKXAZ.js";import{a as e}from"./chunk-X6IOVEKU.js";import"./chunk-W254NF3R.js";import"./chunk-6QKRXUVD.js";import"./chunk-ZJXTLWBM.js";function d(){let{displayMenu:r}=f();return e(h,{class:"btn btn-square size-12 btn-ghost min-h-10","aria-label":"open menu",onClick:()=>{r.value=!1},children:e(n,{id:"Close",size:24})})}var u={primary:"bg-primary-400 hover:!bg-primary-500",secondary:"bg-secondary-100 hover:!bg-secondary-400 hover:!text-white",tertiary:"bg-tertiary-200 hover:!bg-tertiary-400 hover:!text-white"};var b=({icon:r,image:s,alt:o,width:t,height:a,loading:i="lazy",optimize:l,class:c})=>s?l&&t?e(p,{src:s,alt:o,width:t,height:a,loading:i,class:`object-contain ${c}`,style:{width:`${t}px`,height:`${a}px`},...typeof l=="object"?l:{fit:"
1contain"}}):e("img",{src:s,alt:o,width:t,height:a,loading:i,class:`object-contain ${c}`,style:{width:`${t}px`,height:`${a}px`}}):r?.icon?e(n,{id:r.icon,width:t,height:a,class:c}):null,x=b;function g({item:r,children:s,level:o,showSeeAll:t=!0}){let a=!!r.children?.length,i=r.name??r.title,l=e("div",{class:m("p-0 flex items-center pr-4 h-12 min-h-12 text-sm text-neutral-700",a&&"collapse-title"),style:{paddingLeft:`${o}rem`},children:[s??e("span",{children:i}),a&&e(n,{id:"ChevronUp",size:24,strokeWidth:1,class:"rotate-180 transition-transform custom-collapse-arrow ml-auto"})]});return e("div",{class:m("custom-collapse w-full group",a&&"collapse"),children:[a&&e("input",{type:"checkbox",class:"min-h-[0]"}),a?l:e("a",{href:r.url,children:l}),a&&e("div",{class:"collapse-content p-0",children:e("ul",{class:"flex flex-col gap-[1px]",children:[t&&e("li",{class:"bg-neutral-200",style:{paddingLeft:`${o+1}rem`},children:e("a",{href:r.url,class:"flex items-center h-12 font-bold text-sm text-neutral-700",children:["Ver tudo em ",i]})}),r.children?.map(c=>e("li",{class:"bg-neutral-200",children:e(g,{item:c,level:o+1})}))]})})]})}function I({navigation:r,logo:s,alerts:o}){return e("div",{class:"flex flex-col h-full bg-neutral-100 w-full max-h-screen overflow-auto",children:[e("div",{class:"flex items-center justify-between pl-6",children:[s&&e(p,{class:"object-contain",src:s.src,alt:s.alt,width:120,height:24}),e(d,{})]}),e("a",{href:"/conta",class:"flex h-12 min-h-12 items-center px-4 gap-2 text-neutral-100 bg-secondary-400 text-sm",children:[e(n,{id:"User",width:20,height:25,class:"text-success-300"}),e("span",{children:[e("strong",{children:"Entre"}),e("span",{children:[" ","ou"," "]}),e("strong",{children:"Cadastre-se"})]})]}),e("ul",{class:"flex-grow flex flex-col divide-y divide-base-200",children:[!!r?.categories?.length&&e("li",{children:e(g,{showSeeAll:!1,level:1,item:{children:r.categories.flatMap(t=>t.items),name:"",url:""},children:e("div",{class:"text-secondary-400 flex items-center gap-2",children:[e(n,{id:"Hamburger",size:14}),e("span",{class:"text-sm font-bold",children:"Categorias"})]})})}),r?.navItems.map(t=>e("li",{class:"border-b border-b-neutral-200 last:border-b-transparent",children:e(g,{level:1,item:{name:t.name,url:t.url,children:t.columns.flatMap(a=>a.items??[])}})}))]}),e("a",{href:"/favoritos",class:"flex h-12 min-h-12 items-center px-4 gap-2 text-neutral-100 bg-secondary-400 text-sm mb-[1px]",children:[e(n,{id:"Heart",size:21,class:"text-success-300"}),e("strong",{children:"Meus Favoritos"})]}),e("a",{href:"/account",class:"flex h-12 min-h-12 items-center px-4 gap-2 text-neutral-100 bg-secondary-400 text-sm mb-[1px]",children:e("strong",{children:"Minha Conta"})}),e("a",{href:"/account/orders",class:"flex h-12 min-h-12 items-center px-4 gap-2 text-neutral-100 bg-secondary-400 text-sm mb-[1px]",children:e("strong",{children:"Meus Pedidos"})}),e("ul",{class:"flex-grow flex flex-col divide-y divide-transparent",children:[r?.links.map(t=>e("li",{class:"border-b border-b-neutral-200 last:border-b-transparent",children:e("a",{href:t.url,class:m("flex h-12 min-h-12 items-center px-4 gap-2 text-neutral-600 text-sm font-bold",u[t.style]),children:t.name})})),o?.filter(t=>t.href!=="/favoritos").map(t=>e("li",{class:"border-b border-b-neutral-200 last:border-b-transparent",children:e("a",{href:t.href,class:"flex h-12 min-h-12 items-center px-4 gap-2 text-neutral-100 bg-secondary-200 text-sm font-bold",children:[t.icon&&e(x,{width:16,height:16,...t.icon,loading:"lazy",class:t.icon.image?"brightness-[10]":void 0,alt:t.text}),t.text]})}))]})]})}var S=I;export{S as default};

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.