PageSourceSearch

https://junindelosandes.gob.ar/_nuxt/BI8zcJGX.js

js junindelosandes.gob.ar collected 2026-10-09 05:16:52 UTC 6,653 bytes, 1 lines download raw bytes

1import{$ as e,$t as t,En as n,Fr as r,On as i,Q as a,Tn as o,Un as s,X as c,Y as l,Z as u,Zn as d,at as f,ct as p,jr as m,n as h,ot as g,qt as _,sr as v,xn as y,z as b}from"./NPQnAyPb.js";import{mn as x}from"./ChIsoajX.js";import{d as S,t as C}from"./CJTHBw_4.js";import{t as w}from"./g4rNhBKT.js";import{t as T}from"./AMmFG1r8.js";import{t as E}from"./_15GYrGo.js";import{n as D}from"#entry";import{t as O}from"./BDDGixPo.js";import{t as k}from"./CHMyrBiN.js";var A={class:`jdla-card jdla-card--link mx-auto w-full max-w-120 p-2`},j={key:0,class:`m-auto w-1/8min-w-16 text-center sm:m-0 self-start`},M={class:`mx-auto`},N={class:`block text-xl font-semibold transition duration-300`},P={class:`transition-color relative block w-auto transition duration-300 before:absolute before:-bottom-1 before:left-0 before:block before:h-0.5 before:w-full before:scale-x-0 before:bg-(--border-hover) before:transition-all before:duration-150 before:content-[''] group-hover:before:scale-x-100`},F=Object.assign(p({__name:`IconCard`,props:{title:{},description:{},href:{},blank:{type:Boolean},iconName:{},iconSize:{},trackKey:{}},setup(t){let{trackServiceAccess:i}=w();return(o,s)=>{let l=E,d=C;return _(),e(`div`,A,[g(d,{to:t.href,target:t.blank?`_blank`:`_self`,class:`group flex h-full cursor-pointer flex-col items-center justify-start gap-4 p-4 sm:flex-row sm:pl-3`,onClick:s[0]||=e=>v(i)(t.trackKey??`service_access`)},{default:n(()=>[t.iconName?(_(),e(`div`,j,[c(`div`,M,[g(l,{name:t.iconName,mode:`svg`,class:m([`fill-gray-500 transition duration-300 group-hover:fill-gray-700`,{"h-16 w-16":t.iconSize==`xl`,"h-12 w-12":t.iconSize==null,"h-10 w-10":t.iconSize==`lg`,"h-8 w-8":t.iconSize==`md`,"h-6 w-6":t.iconSize==`sm`}])},null,8,[`name`,`class`])])])):a(``,!0),c(`div`,{class:m([`text-center sm:text-left`,t.iconName?`w-7/8`:`w-full`])},[c(`span`,N,[f(r(t.title)+` `,1),t.blank?(_(),u(l,{key:0,name:`i-heroicons-arrow-top-right-on-square`,class:`size-4 text-gray-400`})):a(``,!0)]),c(`span`,P,r(t.description),1)],2)]),_:1},8,[`to`,`target`])])}}}),{__name:`IconCard`}),I=e=>{let t=e||d(``),n=d(``),r=d(!1),i=d([]),a,o=async()=>{if(!n.value.trim()){i.value=[];return}r.value=!0;try{let e=await S(`/api/search/tramites`,{query:{q:n.value}});i.value=Array.isArray(e?.data)?e.data:[]}catch(e){console.error(`Tramite search error:`,e),i.value=[]}finally{r.value=!1}},s=e=>{clearTimeout(a),e.trim()?a=setTimeout(()=>{n.value=e,o()},300):(n.value=``,i.value=[])};return y(t,e=>{s(e)}),{searchQuery:t,debouncedSearchQuery:n,results:i,hasResults:l(()=>i.value.length>0),hasSearch:l(()=>t.value.trim().length>0),isLoading:l(()=>r.value)}},L={class:`m-auto max-w-7xl px-8 pt-8 pb-12`},R={class:`mb-4 flex justify-center`},z={class:`relative w-full`},B={key:0,class:`absolute top-1/2 right-2 z-10`},V={class:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3`},H={key:1,class:`py-16`},U={class:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3`},W={key:2,class:`py-16`},G=p({__name:`index`,async setup(n){let r,f;h({title:`Guía de Trámites y Servicios`});let{data:p}=([r,f]=o(()=>k()),r=await r,f(),r),m=d(Array.isArray(p.value?.data)?p.value.data:[]),{searchQuery:y,results:S,hasSearch:C,isLoading:w}=I(),A=l(()=>w.value&&C.value),j=()=>{y.value=``},M=l(()=>{let e=new Map;for(let t of m.value){if(!t.visibility)continue;let n=t.area?.value??`sin-area`,r=t.area?.label??`Sin área`;e.has(n)||e.set(n,{label:r,tramites:[]}),e.get(n).tramites.push(t)}let t=(p.value?.areas??[]).map(e=>e.value),n=e=>{if(e===`sin-area`)return 1/0;let n=t.indexOf(e);return n===-1?t.length:n};return Array.from(e.entries()).sort(([e],[t])=>n(e)-n(t)).map(([,e])=>e)}),N=l(()=>[{label:`Inicio`,icon:`i-heroicons-home`,to:`/`},{label:`Trámites y servicios`,icon:`i-heroicons-clipboard-document-list`}]);return h({title:`Guía de Trámites y Servicios`,meta:[{property:`og:title`,content:`Guía de Trámites y Servicios`},{name:`description`,content:`Guía de trámites y servicios de la Municipalidad de Junín de los Andes`},{property:`og:description`,content:`Guía de trámites y servicios de la Municipalidad de Junín de los Andes`}]}),(n,r)=>{let o=O,l=E,d=T,f=D,p=F;return _(),e(`div`,null,[g(o,{title:`Guía de Trámites y Servicios`,breadcrumbs:v(N),description:`Información sobre trámites y servicios municipales`},null,8,[`breadcrumbs`]),c(`main`,L,[r[4]||=c(`div`,{class:`mx-auto my-12 max-w-3xl text-center text-lg text-gray-700`},` Estamos creando nuevas guías para facilitar el acceso a los trámites y servicios municipales. Aquí encontrarás información detallada sobre cada trámite, requisitos, pasos a seguir y enlaces útiles para realizar tus gestiones de manera rápida y sencilla. El listado de trámites seguirá creciendo, si no encontrás el que buscás ¡esperamos poder sumarlo pronto! `,-1),c(`div`,R,[c(`div`,z,[r[1]||=c(`label`,{for:`search`,class:`mb-2 block text-sm font-medium text-gray-700`},` Buscar trámites `,-1),i(c(`input`,{id:`search`,"onUpdate:modelValue":r[0]||=e=>s(y)?y.value=e:null,type:`text`,placeholder:`Buscar por título, contenido o descripción...`,class:`w-full rounded-md border-2 border-lightblue-400 px-4 py-2 pr-10 text-gray-900 focus:border-lightblue-500 focus:ring-1 focus:ring-lightblue-500 focus:outline-none`},null,512),[[x,v(y)]]),v(A)&&v(y)?(_(),e(`div`,B,[g(l,{name:`i-lucide:loader-2`,size:`24`,class:`animate-spin text-lightblue-500`}
1)])):v(y)&&!v(A)?(_(),u(d,{key:1,icon:`i-lucide:x`,size:`sm`,color:`neutral`,variant:`ghost`,class:`absolute top-1/2 right-2 z-10`,onClick:j})):a(``,!0)])]),v(C)?(_(),e(b,{key:0},[v(S).length?(_(),e(b,{key:0},[g(f,{title:`Resultados de búsqueda`,class:`mt-8 mb-6`}),c(`ul`,V,[(_(!0),e(b,null,t(v(S),t=>(_(),e(`li`,{key:t.id},[g(p,{title:t.title,description:t.description,"icon-name":`i-lucide-${t.icon_name}`,"icon-size":`md`,href:{name:`tramites-id`,params:{id:t.id}}},null,8,[`title`,`description`,`icon-name`,`href`])]))),128))])],64)):v(w)?a(``,!0):(_(),e(`div`,H,[...r[2]||=[c(`p`,{class:`text-center text-lg text-gray-500`},` No se encontraron trámites para tu búsqueda. `,-1)]]))],64)):v(M).length?(_(!0),e(b,{key:1},t(v(M),n=>(_(),e(`section`,{key:n.label,class:`mb-12`},[g(f,{title:n.label,class:`mt-8 mb-6`},null,8,[`title`]),c(`ul`,U,[(_(!0),e(b,null,t(n.tramites,t=>(_(),e(`li`,{key:t.id},[g(p,{title:t.title,description:t.description,"icon-name":`i-lucide-${t.icon_name}`,"icon-size":`md`,href:{name:`tramites-id`,params:{id:t.id}}},null,8,[`title`,`description`,`icon-name`,`href`])]))),128))])]))),128)):(_(),e(`div`,W,[...r[3]||=[c(`p`,{class:`text-center text-lg text-gray-500`},` No se encontraron trámites. `,-1)]]))])])}}});export{G 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.