PageSourceSearch

https://allcomtelecom.com/component---src-pages-diretores-tsx-acadda250a5e7e89d565.js

js allcomtelecom.com collected 2026-10-05 11:03:49 UTC 3,272 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkallcom_gatsby=self.webpackChunkallcom_gatsby||[]).push([[612],{2235:function(e,t,a){a.r(t),a.d(t,{default:function(){return s}});a(6910);var r=a(6540),i=a(7441),o=a(1737),c=a(4794),l=a(8301);var n=function(e){let t=e.nome_diretor,a=e.sobrenome_diretor,i=e.cargo_diretor,o=e.principais_atividades,c=e.imagem_diretor,l=e.data_publicacao,n=e.index,s=void 0===n?0:n,m=e.frase_diretor;const d=(u=c)?"string"==typeof u?u:u.url?u.url:u.path?u.path.startsWith("http")?u.path:"https://api.allcomtelecom.com"+u.path:null:null;var u;const _=l.toString().split("T")[0].split("-"),p=_[0],b=_[1],E=_[2],f=new Date(Number(p),Number(b)-1,Number(E)).toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"}),h=function(e,t){if(void 0===t&&(t=800),!e||e.length<=t)return e;const a=e.slice(0,t),r=a.lastIndexOf(" ");return a.slice(0,r>0?r:t)+"…"}(o,700),g=s%2!=0;return r.createElement("div",{className:"diretores-card"+(g?" diretores-card--invertido":"")},r.createElement("div",{className:"diretores-card__image"},d&&r.createElement("img",{src:d,className:"diretor_img",alt:t+" "+a}),m&&r.createElement("div",{className:"comment_diretor"},r.createElement("span",{className:"quotation_marks_left","aria-hidden":"true"},'"'),r.createElement("p",null,m))),r.createElement("div",{className:"diretores-card__content"},r.createElement("span",{className:"diretores-card__date"},f),r.createElement("h2",null,t," ",a),r.createElement("h3",null,i),r.createElement("p",null,h)))};function s(){const e=(0,l.s)().t,t=(0,r.useState)([]),a=t[0],s=t[1],m=(0,r.useState)([]),d=m[0],u=m[1],_=(0,r.useState)(!0),p=_[0],b=_[1],E=(0,r.useState)(null),f=E[0],h=E[1];return(0,r.useEffect)(()=>{!async function(){try{const e=await fetch("https://api.allcomtelecom.com/api:ucVHCt7_/diretores_allcom");if(!e.ok)throw new Error("Erro ao buscar diretores");const t=await e.json();s(t)}catch(e){h(e.message)}finally{b(!1)}}()},[]),(0,r.useEffect)(()=>{const e=a.filter(e=>e.status&&null===e.deleted_at&&null!==e.ordem_exibicao).sort((e,t)=>e.ordem_exibicao-t.ordem_exibicao);u(e)},[a]),r.createElement(i.A,null,r.createElement("div",{className:"breadcumb-wrapper"},r.createElement("video",{muted:!0,autoPlay:!0,loop:!0,playsInline:!0,preload:"none",poster:(0,c.withPrefix)("/banner.webp"),style:{objectFit:"cover",width:"100%",height:"100%",position:"absolute",top:0,left:0}}),r.createElement("div",{className:"container"},r.createElement("div",{className:"breadcumb-content"},r.createElement("h1",{className:"breadcumb-title"},e("diretores_page.breadcrumb_title")),r.createElement("ul",{className:"breadcumb-menu"},r.createElement("li",null,r.createElement(o.jF,{to:"/"},e("diretores_page.breadcrumb_home"))),r.createElement("li",null,e("diretores_page.breadcrumb_current")))))),r.createElement("div",{className:"container"},!p&&!f&&d.map((e,t)=>r.createElement(n,{key:e.id,id:e.id,nome_diretor:e.nome_diretor,sobrenome_diretor:e.sobrenome_diretor,cargo_diretor:e.cargo_diretor,principais_atividades:e.principais_atividades,imagem_diretor:e.imagem_diretor,ordem_exibicao:e.ordem_exibicao,status:e.status,data_publicacao:e.data_publicacao,frase_diretor:e.frase_diretor,index:t}))))}}}]);
2//# sourceMappingURL=component---src-pages-diretores-tsx-acadda250a5e7e89d565.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.