PageSourceSearch

https://www.ms-automoveis.pt/assets/TestemunhosHome-Dmhesz9L.js

js ms-automoveis.pt collected 2026-10-06 07:23:57 UTC 2,517 bytes, 1 lines download raw bytes

1import{d as x,r as i,j as e,e as p,f as g,P as T,N as j,g as l,h as b,a as h,m as S,i as m,b as f,C as v,L as N,cl as d,aB as P}from"./index-D88v5eF8.js";import{d as w}from"./apiNoticias-DYjzgVbR.js";import{C as y}from"./CardTestemunhos-C7Aii5pf.js";import"./sanitizeHtml-Dp-v8JLd.js";function A({infoJson:s,allTestemunhos:t}){const r=x("(max-width: 574px)"),u={0:{slidesPerView:1},375:{slidesPerView:1.2},574:{slidesPerView:1},767:{slidesPerView:2},1199:{slidesPerView:3}},a=i.useRef(null),n=i.useRef(null);return e.jsx(e.Fragment,{children:e.jsxs(p,{className:"tipos-slider",breakpoints:u,pagination:r?{dynamicBullets:!0}:!1,navigation:r?!1:{prevEl:a.current,nextEl:n.current,disabledClass:l.buttonDisable,lockClass:l.buttonLock},onBeforeInit:o=>{o.params.navigation.prevEl=a.current,o.params.navigation.nextEl=n.current},effect:"slide",centeredSlides:!!r,centerInsufficientSlides:!0,loop:!1,speed:500,modules:[g,T,j],children:[t.map((o,c)=>e.jsx(b,{children:e.jsx(h,{className:`${S.boxPadding}`,children:e.jsx(y,{item:o,infoJson:s})})},c)),r?e.jsx(e.Fragment,{}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`${l.buttonPrev} `,ref:a,children:e.jsx(m,{style:{transform:"rotate(180deg)"},height:"60px",stroke:s.Cores.ArrowSlider})}),e.jsx("div",{className:`${l.buttonNext} `,ref:n,children:e.jsx(m,{height:"60px",stroke:s.Cores.ArrowSlider})})]})]})})}function $({infoJson:s,allinfoText:t}){const[r,u]=i.useState({Titulo:"",SubTitulo:"",Zona:"",Url:"",MetaTitle:"",MetaDescription:""}),[a,n]=i.useState([]);return i.useEffect(()=>{t.Testemunhos&&u(t.Testemunhos)},[t]),i.useEffect(()=>{(async()=>{const c=await w(s.Layout.Testemunhos.top,s.Layout.Testemunhos.destaque,s);n(c)})()},[s]),e.jsx(e.Fragment,{children:a.length!==0&&e.jsxs(f,{Titulo:r.Titulo!==""?r.Titulo:"A opinião dos clientes",SubTitulo:r.SubTitulo!==""?r.SubTitulo:"testemunhos",top:10,bottom:1e-4,children:[e.jsx(v,{fluid:"xxxl",className:"noPadding-xs position-relative",children:e.jsx(A,{infoJson:s,allTestemunhos:a})}),s.Layout.Testemunhos.btn&&e.jsx(N,{"aria-label":`Ver / Inserir ${t.Testemunhos&&t.Testemunhos.Titulo!==""?t.Testemunhos.Titulo:s.Testemunhos.titulo}`,className:d.padding,to:t.Testemunhos&&t.Testemunhos.Url!==""?t.Testemunhos.Url:s.Testemunhos.url,children:e.jsx(h,{xs:12,className:"d-flex justify-content-center",children:e.jsxs("button",{className:`btnPesquisa ${d.btnDireccoes}`,children:[e.jsx(P,{height:"18px",width:"18px",stroke:"#fff",style:{marginRight:"5px"}}),"Ver / Inserir"]})})})]})})}export{$ 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.