1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ba9974a1-0bbb-48b5-b766-8a12da973e30",e._sentryDebugIdIdentifier="sentry-dbid-ba9974a1-0bbb-48b5-b766-8a12da973e30")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7025],{17025:(e,a,s)=>{s.r(a),s.d(a,{ManutenceHistoryField:()=>c});var t=s(5640),i=s(1241),r=s.n(i),l=s(50148);let o=e=>{let{name:a,value:s}=e;return"-"===s?(0,t.jsx)(t.Fragment,{}):(0,t.jsxs)("div",{className:"inline-flex items-center justify-start gap-2 self-stretch border-b-2 border-[#eceeef] px-2 py-6",children:[(0,t.jsx)("div",{className:"grow basis-0 text-center leading-tight",children:(0,t.jsx)("span",{className:"font-inter text-base font-semibold text-[#383838]",children:a})}),(0,t.jsx)("div",{className:"grow basis-0 text-center leading-tight text-[#8e8e8e]",children:(0,t.jsx)("span",{className:"font-inter text-base font-semibold",children:s})})]})},d=e=>{let{value:a}=e;return(0,t.jsx)("td",{className:"border-x-[1px] border-solid border-[#e1e2e1] py-[16px] text-center font-roboto text-[16px]/[19px] text-[#454A53]",children:a})},n=e=>{let{value:a}=e;return(0,t.jsx)("th",{className:"py-[16px] text-center font-roboto text-[16px]/[24px] font-bold text-[#FFFFFF]",children:a})},c=e=>{let{history:a,notFoundText:s}=e,i=!Array.isArray(a.historico)||0===a.historico.length;return(0,t.jsx)("div",{className:"bg-[#ffffff]",children:i?(0,t.jsx)("div",{className:"flex justify-center py-[21px]",children:(0,t.jsx)("span",{className:"font-inter text-[16px]/[20px] font-medium",children:s})}):(0,t.jsx)("div",{className:"px-[16px] py-[32px]",children:a.historico.map((e,a)=>(0,t.jsx)(x,{dataHora:e.dataHora,km:e.km,prcoTotal:e.prcoTotal,historico:e.itens},a))})})},x=e=>{let{dataHora:a,km:s,prcoTotal:i,historico:c}=e,[x,m]=(0,l.useState)(!1),h={hasDescricao:c.some(e=>"-"!==e.descricao),hasProximaRevisao:c.some(e=>"-"!==e.proximaRevisao),hasMarca:c.some(e=>"-"!==e.marca),hasFamilia:c.some(e=>"-"!==e.familia),hasQuantidade:c.some(e=>0!==e.quantidade),hasTipoItem:c.some(e=>"-"!==e.tipoItem),hasValorTotal:c.some(e=>"-"!==e.valorTotal)};return(0,t.jsxs)("div",{className:"mb-[24px] rounded-[24px] border-[1px] border-solid border-[#E1E2E1]",children:[(0,t.jsx)("div",{className:"px-[32px]",children:(0,t.jsx)("div",{className:"boder-[#E1E2E1] flex cursor-pointer justify-between border-solid px-5 py-5 ".concat(x?"border-b-[1px]":""),onClick:()=>m(!x),children:(0,t.jsxs)("div",{className:"flex w-full justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start justify-center gap-[24px] md:w-full md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"font-roboto text-base font-bold leading-tight tracking-wide text-[#454a53]",children:["Data: ",a]}),(0,t.jsxs)("div",{className:"font-roboto text-base font-bold leading-tight tracking-wide text-[#454a53]",children:["Km: ",s>0?s:"N\xe3o Informada"]}),(0,t.jsxs)("div",{className:"font-roboto text-base font-bold leading-tight tracking-wide text-[#454a53]",children:["Valor Total: ",i]})]}),(0,t.jsx)("div",{className:"flex items-center md:ml-20",children:(0,t.jsx)("div",{className:"flex items-center transition duration-300 ".concat(x?"rotate-180":"rotate-0"),children:(0,t.jsx)(r(),{src:"/img/main-datail/chevron-down.svg",width:32,height:32,alt:"Expandir Fechar"})})})]})})}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"md:hidden",children:c.map((e,a)=>(0,t.jsxs)("div",{className:"mt-[24px] flex flex-col items-start justify-start",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center gap-2.5 px-4",children:(0,t.jsxs)("div",{className:"font-roboto text-xl font-black leading-normal text-[#5cb143]",children:[a+1,"\xba Item"]})}),(0,t.jsx)(o,{name:"Descri\xe7\xe3o",value:e.descricao}),(0,t.jsx)(o,{name:"Qtd",value:e.quantidade}),(0,t.jsx)(o,{name:"Pr\xf3xima Revis\xe3o",value:e.proximaRevisao}),(0,t.jsx)(o,{name:"Marca",value:e.marca}),(0,t.jsx)(o,{name:"Categoria",value:e.tipoItem}),(0,t.jsx)(o,{name:"Manuten\xe7\xe3o",value:e.familia}),(0,t.jsx)(o,{name:"Valor",value:e.valorTotal})]}))}),(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)("div",{className:"p-[32px]",children:(0,t.jsxs)("table",{className:"boder-[#e1e2e1] w-full border-separate border-spacing-0 overflow-hidden rounded-b-[32px] rounded-t-[10px] border-x-[1px] border-b-[2px] border-solid",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-gradient-to-r from-[#62e948] to-[#2ab34d]",children:[h.hasDescricao&&(0,t.jsx)(n,{value:"Descri\xe7\xe3o"}),h.hasFamilia&&(0,t.jsx)(n,{value:"Familia"}),h.hasQuantidade&&(0,t.jsx)(n,{value:"Qtd"}),h.hasProximaRevisao&&(0,t.jsx)(n,{value:"Pr\xf3xima Revis\xe3o"}),h.hasMarca&&(0,t.jsx)(n,{value:"Marca"}),h.hasTipoItem&&(0,t.jsx)(n,{value:"Categoria"}),h.hasValorTotal&&(0,t.jsx)(n,{value:"Valor"})]})}),(0,t.jsx)("tbody",{children:c.map((e,a)=>(0,t.jsxs)("tr",{className:"".concat(a%2==0?"bg-[#f5f5f6]":"bg-[#ffffff]"),children:[h.hasDescricao&&(0,t.jsx)(d,{value:e.descricao}),h.hasFamilia&&(0,t.jsx)(d,{value:e.familia}),h.hasQuantidade&&(0,t.jsx)(d,{value:e.quantidade}),h.hasProximaRevisao&&(0,t.jsx)(d,{value:e.proximaRevisao}),h.hasMarca&&(0,t.jsx)(d,{value:e.marca}),h.hasTipoItem&&(0,t.jsx)(d,{value:e.tipoItem}),h.hasValorTotal&&(0,t.jsx)(d,{value:e.valorTotal})]}))})]})})})]})]})}}}]);
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.