PageSourceSearch

https://simoes.pi.gov.br/_nuxt/E_mIdQ2c.js

js simoes.pi.gov.br collected 2026-09-25 11:18:29 UTC 4,539 bytes, 1 lines download raw bytes

1import{a as z,_ as U,y as A,A as T,B as q,aU as F,ac as V,o as W,G as N,f as s,r as B,M as E,m as S,J as h,as as M,F as _,ai as K,z as p,ao as b,T as $,av as O,a2 as k,cz as j,d as G,cu as J,k as r,e as v,w as f,V as H,s as C,q as I,L as Q,c as m,l as X,p as x,a0 as Y}from"./BrwLc8Tb.js";import{V as P,m as Z,a as D,b as ee}from"./BdQu_4XQ.js";import"./Dgwn_WvV.js";import"./Bsua_Urj.js";function te(){const e=z(),{data:o}=U("/api/banners",{default:()=>[],watch:!1});return{ativos:A(()=>e.value?(o.value??[]).map(i=>({...i,tenantId:e.value.id})):[])}}const ae=$({color:String,cycle:Boolean,delimiterIcon:{type:O,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...Z({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),le=T()({name:"VCarousel",props:ae(),emits:{"update:modelValue":e=>!0},setup(e,{slots:o}){const c=q(e,"modelValue"),{t:i}=F(),l=p();let n=-1;V(c,u),V(()=>e.interval,u),V(()=>e.cycle,t=>{t?u():window.clearTimeout(n)}),W(w);function w(){!e.cycle||!l.value||(n=window.setTimeout(l.value.group.next,Number(e.interval)>0?Number(e.interval):6e3))}function u(){window.clearTimeout(n),window.requestAnimationFrame(w)}function g(t,a){(e.direction==="horizontal"&&t.key==="ArrowLeft"||e.direction==="vertical"&&t.key==="ArrowUp")&&(t.preventDefault(),a.prev(),b(()=>l.value?.$el.querySelector(".v-btn--active")?.focus())),(e.direction==="horizontal"&&t.key==="ArrowRight"||e.direction==="vertical"&&t.key==="ArrowDown")&&(t.preventDefault(),a.next(),b(()=>l.value?.$el.querySelector(".v-btn--active")?.focus()))}return N(()=>{const t=P.filterProps(e);return s(P,h({ref:l},t,{modelValue:c.value,"onUpdate:modelValue":a=>c.value=a,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:K(e.height)},e.style]}),{default:o.default,additional:({group:a})=>B(_,null,[!e.hideDelimiters&&B("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[a.items.value.length>0&&s(E,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[a.items.value.map((d,L)=>{const y={id:`carousel-item-${d.id}`,"aria-label":i("$vuetify.carousel.ariaLabel.delimiter",L+1,a.items.value.length),class:["v-carousel__controls__item",a.isSelected(d.id)&&"v-btn--active"],onClick:()=>a.select(d.id,!0),onKeydown:R=>g(R,a)};return o.item?o.item({props:y,item:d}):s(S,h(d,y),null)})]})]),e.progress&&s(M,{absolute:!0,class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(a.getItemIndex(c.value)+1)/a.items.value.length*100},null)]),prev:o.prev,next:o.next})}),{}}}),re=$({...j(),...ee()},"VCarouselItem"),oe=T()({name:"VCarouselItem",inheritAttrs:!1,props:re(),setup(e,{slots:o,attrs:c}){N(()=>{const i=k.filterProps(e),l=D.filterProps(e);return s(D,h({class:["v-carousel-item",e.class]},l),{default:()=>[s(k,h(c,i),o)]})})}}),ie={key:0,class:"d-flex ga-2"},ne=1920/435,se=G({__name:"BlocoBanners",props:{bloco:{}},setup(e){const o=e,{ativos:c}=te(),{isClassico:i}=J(),l=A(()=>c.value.slice(0,o.bloco.config.quantidade)),n=p(0);return(w,u)=>{const g=Y;return r(l).length?(m(),v("section",{key:0,class:Q(r(i)?void 0:"my-6")},[s(H,{"aspect-ratio":ne},{default:f(()=>[s(le,{modelValue:r(n),"onUpdate:modelValue":u[0]||(u[0]=t=>X(n)?n.value=t:null),"show-arrows":r(i)?!1:r(l).length>1,"hide-delimiters":r(i),"hide-delimiter-background":"",cycle:"",height:"100%"},{default:f(()=>[(m(!0),v(_,null,C(r(l),t=>(m(),x(oe,{key:t.id},{default:f(()=>[s(g,{to:t.link,class:"d-block h-100"},{default:f(()=>[s(k,{src:t.imagemUrl,alt:t.titulo,cover:"",height:"100%"},null,8,["src","alt"])]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1},8,["modelValue","show-arrows","hide-delimiters"])]),_:1}),r(i)&&r(l).length>1?(m(),v("div",ie,[(m(!0),v(_,null,C(r(l),(t,a)=>(m(),x(S,{key:`sel-${t.id}`,color:a===r(n)?"accent":"surface-variant",height:"4",rounded:"pill",variant:"flat",class:"flex-grow-1 pa-0 min-w-0","aria-label":`Ir para o slide ${a+1}`,"aria-current":a===r(n)?"true":void 0,onClick:d=>n.value=a},null,8,["color","aria-label","aria-current","onClick"]))),128))])):I("",!0)],2)):I("",!0)}}}),ve=Object.assign(se,{__name:"BlocoBanners"});export{ve 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.