Files
soft_usite/dist/assets/HomeView-vVzaJylk.js
T
2025-02-06 14:22:29 -05:00

5 lines
24 KiB
JavaScript

import{g as A,c as k,s as z,r as _,u as R,o as B,a as F,b as c,d,e,n as N,F as L,f as M,h as w,t as y,i as $,j,k as O,l as b,w as q,m as V,_ as D,p as U,q as K,v as H,x as Q,y as Z,z as W,A as X}from"./index-BmU8V2V2.js";import{S as T}from"./SectionTitle-CrHOP_mf.js";import{_ as Y}from"./img13-CnRfNSGG.js";import{g as J}from"./get-puntos-recaudo.action-CN43BqeK.js";import{_ as ee}from"./img12--vpC50aS.js";import{S as te}from"./SecondaryButton-CAqGmnmb.js";const se=async(m=1)=>{try{const{data:t}=await A.get(`/loadinicio?page=${m}`);return{inicios:t.records.map(s=>({id:s.ID,description:s.description,ruta:s.ruta,enlace:s.enlace}))}}catch(t){throw console.log(t),new Error("Error getting inicio")}},oe={class:"slider-container select-none mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl"},ae={class:"relative z-10 w-full overflow-hidden rounded-t-[35px] rounded-b-[35px] shadow-lg mt-6"},ne=["href"],re=["src","alt"],ie={class:"absolute bottom-0 left-0 right-0 bg-gray-950 bg-opacity-70 text-white p-4"},le={class:"max-h-32 overflow-y-auto pb-7 lg:pb-10"},ce={key:1},de=["src","alt"],ue={class:"absolute bottom-0 left-0 right-0 bg-gray-950 bg-opacity-70 text-white p-4"},pe={class:"max-h-32 overflow-y-auto pb-7 lg:pb-10"},me={class:"absolute top-4 left-1/2 transform -translate-x-1/2 flex space-x-2"},ve=["onClick"],ge=["src","alt"],fe={class:"mt-2 cursor-pointer"},we={__name:"SliderComponent",setup(m){const t=k(()=>z.contrast),s="https://www.gasesdeloriente.com.co",n=_(null),v=_(1),{data:g}=R({queryKey:["inicios",{page:v}],queryFn:()=>se(v.value),staleTime:1e3*60}),{data:u}=R({queryKey:["parametrizacionweb"],queryFn:()=>O(),staleTime:1e3*60}),f=_(0),p=k(()=>{var I;return((I=g==null?void 0:g.value)==null?void 0:I.inicios)||[]}),h=()=>{clearInterval(n.value),i()},l=()=>{f.value=(f.value+1)%p.value.length,h()},r=()=>{f.value=(f.value-1+p.value.length)%p.value.length,h()},i=()=>{n.value=setInterval(()=>{l()},3e3)},a=_([{icon:"img2.webp",alt:"Icono 1",text:"Pagar factura",link:"/db"},{icon:"img3.webp",alt:"Icono 2",text:"Actualice datos",link:"/update-info"},{icon:"img4.webp",alt:"Icono 3",text:"Reportar fraude",link:"/fraud-report"},{icon:"img5.webp",alt:"Icono 4",text:"Identificar personal",link:"/identification"},{icon:"img6.webp",alt:"Icono 5",text:"Oficina virtual",link:"/login"}]),o=_(!1),S=()=>{clearInterval(n.value),n.value=null,o.value=!0},G=()=>{n.value||(i(),o.value=!1)};B(()=>{i()}),F(()=>{clearInterval(n.value)});const E=I=>{I==="/db"?window.open(u==null?void 0:u.value.enlace_pagar_ahora,"_blank"):window.open(I,"_blank")};return(I,C)=>(c(),d("div",oe,[e("div",ae,[e("div",{class:"flex transition-transform duration-500",style:N({transform:`translateX(-${f.value*100}%)`})},[(c(!0),d(L,null,M(p.value,(x,P)=>(c(),d("div",{key:P,class:"w-full flex-shrink-0 relative"},[x.enlace?(c(),d("a",{key:0,href:x.enlace,target:"_blank"},[e("img",{src:`${w(s)}/${x.ruta}`,alt:x.description,class:"w-full object-cover pb-10"},null,8,re),e("div",ie,[e("div",le,y(x.description),1)])],8,ne)):(c(),d("div",ce,[e("img",{src:`${w(s)}/${x.ruta}`,alt:x.description,class:"w-full object-cover pb-10"},null,8,de),e("div",ue,[e("div",pe,y(x.description),1)])]))]))),128))],4),e("button",{onClick:r,class:"absolute top-1/2 left-4 transform -translate-y-1/2 bg-opacity-75 p-2 rounded-full shadow-lg focus:outline-none"},C[0]||(C[0]=[e("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e("button",{onClick:l,class:"absolute top-1/2 right-4 transform -translate-y-1/2 bg-opacity-75 p-2 rounded-full shadow-lg focus:outline-none"},C[1]||(C[1]=[e("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])),e("div",me,[e("button",{onClick:S,class:$([{"bg-gray-300":o.value,"bg-gray-100":!o.value,"shadow-lg":o.value},"bg-gray-100 py-2 px-2 shadow-md rounded-full"])},C[2]||(C[2]=[j('<svg viewBox="-1 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10px" height="10px" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><title>pause [#1006]</title><desc>Created with Sketch.</desc><defs></defs><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Dribbble-Light-Preview" transform="translate(-227.000000, -3765.000000)" fill="#000000"><g id="icons" transform="translate(56.000000, 160.000000)"><path d="M172,3605 C171.448,3605 171,3605.448 171,3606 L171,3612 C171,3612.552 171.448,3613 172,3613 C172.552,3613 173,3612.552 173,3612 L173,3606 C173,3605.448 172.552,3605 172,3605 M177,3606 L177,3612 C177,3612.552 176.552,3613 176,3613 C175.448,3613 175,3612.552 175,3612 L175,3606 C175,3605.448 175.448,3605 176,3605 C176.552,3605 177,3605.448 177,3606" id="pause-[#1006]"></path></g></g></g></g></svg>',1)]),2),e("button",{onClick:G,class:$([{"bg-gray-300":!o.value,"bg-gray-100":o.value,"shadow-lg":!o.value},"bg-gray-100 py-2 px-2 shadow-md rounded-full"])},C[3]||(C[3]=[e("svg",{viewBox:"-3 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:sketch":"http://www.bohemiancoding.com/sketch/ns",width:"10px",height:"10px",fill:"#000000"},[e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"},[e("title",null,"play"),e("desc",null,"Created with Sketch Beta."),e("defs"),e("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","sketch:type":"MSPage"},[e("g",{id:"Icon-Set-Filled","sketch:type":"MSLayerGroup",transform:"translate(-419.000000, -571.000000)",fill:"#000000"},[e("path",{d:"M440.415,583.554 L421.418,571.311 C420.291,570.704 419,570.767 419,572.946 L419,597.054 C419,599.046 420.385,599.36 421.418,598.689 L440.415,586.446 C441.197,585.647 441.197,584.353 440.415,583.554",id:"play","sketch:type":"MSShapeGroup"})])])])],-1)]),2)])]),e("div",{class:$([{"bg-black":t.value,"bg-white":!t.value},"relative z-20 py-4 rounded-[35px] shadow-xl grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4 text-center -mt-5 md:-mt-10"])},[(c(!0),d(L,null,M(a.value,(x,P)=>(c(),d("div",{key:P,class:"flex flex-col items-center",onClick:mt=>E(x.link)},[e("img",{src:`/assets/${x.icon}`,alt:x.alt,class:"cursor-pointer w-16 h-16 md:w-20 md:h-20 object-contain"},null,8,ge),e("p",fe,y(x.text),1)],8,ve))),128))],2)]))}},he=async()=>{try{const{data:m}=await A.get("/loadadquirirgas");return m}catch(m){throw console.log(m),new Error("Error getting adquirir gas")}},xe={class:"service-info-container mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl"},be={class:"mb-6"},_e={class:"flex items-start mb-6"},ye=["src"],ke={class:"font-bold text-xl"},Ce={class:""},$e={class:"flex items-start"},Se=["src"],je={class:"font-bold text-xl"},Le={__name:"ServiceInfoComponent",setup(m){const t=k(()=>z.contrast),s="https://www.gasesdeloriente.com.co",{data:n}=R({queryKey:["adquirirGas"],queryFn:()=>he(),staleTime:1e3*60});return(v,g)=>{var u,f,p,h,l,r;return c(),d("div",xe,[b(T,null,{default:q(()=>g[0]||(g[0]=[V("¿ Cómo adquirir el servicio de gas natural ?")])),_:1}),e("div",{class:$([{"bg-black":t.value,"bg-white":!t.value},"p-8 rounded-xl shadow-[0_15px_30px_rgba(0,0,0,0.2)]"])},[e("p",be,y((u=w(n))==null?void 0:u.descripcion),1),e("div",_e,[e("img",{src:`${w(s)}/${(f=w(n))==null?void 0:f.imagen_1}`,alt:"Phone",class:"w-12 h-12 mr-4 object-contain"},null,8,ye),e("div",null,[e("p",ke,y((p=w(n))==null?void 0:p.subtitulo_1),1),e("p",Ce,y((h=w(n))==null?void 0:h.texto_llamada),1)])]),e("div",$e,[e("img",{src:`${w(s)}/${(l=w(n))==null?void 0:l.imagen_2}`,alt:"Ofice",class:"w-12 h-12 mr-4 object-contain"},null,8,Se),e("div",null,[e("p",je,y((r=w(n))==null?void 0:r.subtitulo_2),1)])])],2)])}}},Ie="/assets/img11-BKue3760.webp",Re="/assets/img8-DxOGKA8k.webp",Me="/assets/img10-Q3K8IYEv.webp",qe="/assets/img9-_tZFiIU7.webp",Ve={},ze={class:"flex flex-wrap justify-around items-center p-4 max-w-5xl mx-auto"};function Te(m,t){return c(),d("div",ze,[e("div",{onClick:t[0]||(t[0]=s=>m.$router.push("/ethic-line")),class:"flex flex-col items-center m-2 cursor-pointer transform transition-transform duration-300 hover:scale-105"},t[3]||(t[3]=[j('<div class="relative flex items-center"><div class="relative z-20"><img src="'+Re+'" alt="Línea ética" class="w-full h-48 rounded-full"></div><div class="relative -ml-14"><div class="absolute top-10 bg-[#088ec8] rounded-full w-52 h-16"></div><div class="relative top-8 bg-[#a6cf63] rounded-full w-52 h-16 flex items-center justify-center"><span class="text-[#1757a7] text-center text-xl font-bold">Línea ética</span></div></div></div>',1)])),e("div",{onClick:t[1]||(t[1]=s=>m.$router.push("/rev-periodic")),class:"flex flex-col items-center m-2 cursor-pointer transform transition-transform duration-300 hover:scale-105"},t[4]||(t[4]=[j('<div class="relative flex items-center"><div class="relative z-20"><img src="'+Me+'" alt="Revisión periódica" class="w-full h-48 rounded-full"></div><div class="relative -ml-14"><div class="absolute top-10 bg-[#088ec8] rounded-full w-52 h-16"></div><div class="relative top-8 bg-[#a6cf63] rounded-full w-52 h-16 flex items-center justify-center"><span class="text-[#1757a7] text-center text-xl font-bold">Revisión <br> periódica</span></div></div></div>',1)])),e("div",{onClick:t[2]||(t[2]=s=>m.$router.push("/fnb")),class:"flex flex-col items-center m-2 cursor-pointer transform transition-transform duration-300 hover:scale-105"},t[5]||(t[5]=[j('<div class="relative flex items-center"><div class="relative z-20"><img src="'+qe+'" alt="Cupo aprobado" class="w-full h-48 rounded-full"></div><div class="relative -ml-14"><div class="absolute top-10 bg-[#088ec8] rounded-full w-52 h-16"></div><div class="relative top-8 bg-[#a6cf63] rounded-full w-52 h-16 flex items-center justify-center"><span class="text-[#1757a7] text-center text-xl font-bold">Cupo <br>aprobado</span></div></div></div>',1)]))])}const Ge=D(Ve,[["render",Te]]),Pe={__name:"OfficeInfo",setup(m){return(t,s)=>(c(),d(L,null,[e("div",{onClick:s[0]||(s[0]=n=>t.$router.push("/attention-offices")),class:"flex flex-col md:flex-row justify-center items-center p-4 rounded-lg max-w-4xl mx-auto cursor-pointer transform transition-transform duration-300 hover:scale-105"},s[1]||(s[1]=[j('<img src="'+Ie+'" alt="Customer Service" class="rounded-t-lg md:rounded-l-lg md:rounded-r-none w-full md:w-1/2 object-cover"><div class="flex items-center bg-[#85aa5d] text-white px-8 py-20 rounded-b-lg md:rounded-r-lg md:rounded-l-none w-full md:w-1/2"><div class="flex items-center justify-between w-full"><span class="text-2xl font-bold">Conozca nuestras <br> oficinas de atención</span><svg fill="#FFFFFF" viewBox="0 0 512 512" class="ml-4 h-8 w-8 md:h-20 md:w-auto" xmlns="http://www.w3.org/2000/svg"><path d="M214.78,478l-20.67-21.57L403.27,256,194.11,55.57,214.78,34,446.46,256ZM317.89,256,86.22,34,65.54,55.57,274.7,256,65.54,456.43,86.22,478Z"></path></svg></div></div>',2)])),b(Ge)],64))}},Ae={class:"payment-locations-container mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl"},Be={class:"relative w-full flex items-center justify-center mb-6"},Fe={class:"overflow-hidden w-full"},Ee=["src","alt"],Ne={__name:"PaymentLocations",setup(m){const t=_(0),s=_(!1),n=_(null),v="https://www.gasesdeloriente.com.co",{data:g}=R({queryKey:["puntosRecaudo"],queryFn:()=>J(),staleTime:1e3*60}),u=k(()=>{var i;return((i=g==null?void 0:g.value)==null?void 0:i.records)||[]}),f=()=>{s.value=!0,setTimeout(()=>{if(t.value++,t.value>=u.value.length-3){const i=u.value.shift();u.value.push(i),t.value--}s.value=!1},500)},p=()=>{s.value=!0,setTimeout(()=>{if(t.value>0)t.value--;else{const i=u.value.pop();u.value.unshift(i),t.value=0}s.value=!1},500)},h=()=>{n.value=setInterval(()=>{f()},5e3)},l=()=>{clearInterval(n.value),n.value=null},r=()=>{n.value||h()};return B(()=>{h()}),F(()=>{clearInterval(n.value)}),(i,a)=>(c(),d("div",Ae,[b(T,null,{default:q(()=>a[0]||(a[0]=[V("¿Dónde puedo pagar la factura del gas natural?")])),_:1}),e("div",Be,[e("div",Fe,[e("div",{style:N({transform:`translateX(-${t.value*(100/4)}%)`}),class:$([{"transition-transform duration-500":s.value},"flex w-full"])},[(c(!0),d(L,null,M(u.value,o=>(c(),d("div",{key:o.id,class:"flex-shrink-0 w-1/4 flex justify-center"},[e("img",{src:`${w(v)}/${o.ruta}`,alt:o.nombre,class:"w-24 h-24 rounded-full object-contain mx-2"},null,8,Ee)]))),128))],6)]),e("button",{onClick:p,class:"absolute left-0 text-gray-400"},a[1]||(a[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e("button",{onClick:f,class:"absolute right-0 text-gray-400"},a[2]||(a[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))]),e("div",{class:"flex justify-center mb-4"},[e("button",{onClick:l,class:"bg-gray-100 mr-2 py-2 px-2 shadow-md rounded-full"},a[3]||(a[3]=[e("svg",{viewBox:"-1 0 8 8",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},[e("g",{id:"SVGRepo_iconCarrier"},[e("path",{d:"M172,3605 C171.448,3605 171,3605.448 171,3606 L171,3612 C171,3612.552 171.448,3613 172,3613 C172.552,3613 173,3612.552 173,3612 L173,3606 C173,3605.448 172.552,3605 172,3605"})])],-1)])),e("button",{onClick:r,class:"bg-gray-100 py-2 px-2 shadow-md rounded-full"},a[4]||(a[4]=[e("svg",{viewBox:"-3 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},[e("g",{id:"SVGRepo_iconCarrier"},[e("path",{d:"M440.415,583.554 L421.418,571.311 C420.291,570.704 419,570.767 419,572.946 L419,597.054 C419,599.046 420.385,599.36 421.418,598.689 L440.415,586.446 C441.197,585.647 441.197,584.353 440.415,583.554"})])],-1)]))]),a[5]||(a[5]=e("div",{class:"p-4 rounded-lg flex items-center"},[e("div",{class:"text-white rounded-full w-10 h-10 flex items-center justify-center mr-4"},[e("img",{src:Y,alt:"Phone",class:"w-12 h-12 object-contain"})]),e("span",{class:"text-[#723737]"}," Gases del Oriente SA ESP no se hace responsable por los pagos realizados en los puntos de pago no autorizados. ")],-1))]))}},Oe=D(Ne,[["__scopeId","data-v-5d7f05e4"]]),De={class:"payment-info-container mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl"},Ke=["innerHTML"],Ue={class:"bg-[#274e93] text-white p-4 rounded-xl flex items-center"},He=["innerHTML"],Qe={__name:"PaymentImportance",setup(m){const t=k(()=>z.contrast),{data:s}=R({queryKey:["parametrizacionweb"],queryFn:()=>O(),retry:!1});return(n,v)=>{var g,u;return c(),d("div",De,[b(T,null,{default:q(()=>v[0]||(v[0]=[V("La importancia del pago oportuno de su factura")])),_:1}),e("div",{class:$([{"bg-black":t.value,"bg-white":!t.value},"p-8 rounded-xl shadow-[0_15px_30px_rgba(0,0,0,0.2)]"])},[e("p",{class:"mb-6",innerHTML:(g=w(s))==null?void 0:g.descripcion},null,8,Ke),e("div",Ue,[v[1]||(v[1]=e("img",{src:ee,alt:"info",class:"w-12 h-12 mr-4 object-contain"},null,-1)),e("span",{innerHTML:(u=w(s))==null?void 0:u.descripcion_cuadro_azul},null,8,He)])],2)])}}},Ze=async(m=3)=>{try{const{data:t}=await A.get(`/loadcomunicados?limit=${m}`);return t}catch(t){throw console.log(t),new Error("Error getting ultimos comunicados")}},We={class:"container mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl mb-10"},Xe={class:"flex items-center my-auto"},Ye={class:"ml-10 mb-6"},Je={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},et=["onClick"],tt={class:"relative rounded-t-lg overflow-hidden"},st=["src"],ot={class:"p-4"},at={class:"flex justify-between items-center mb-1"},nt={class:"text-sm font-bold"},rt=["onClick"],it={class:"text-sm mb-2"},lt={__name:"LatestNewsComponents",setup(m){const t="https://www.gasesdeloriente.com.co",s=U(),n=K(),{data:v}=R({queryKey:["ultimosComunicados"],queryFn:()=>Ze(),staleTime:1e3*60}),g=k(()=>{var l;return((l=v==null?void 0:v.value)==null?void 0:l.records)||[]}),u=l=>{if(!l)return"";const r={day:"2-digit",month:"short",year:"numeric"};return new Intl.DateTimeFormat("es-ES",r).format(new Date(l))},f=k(()=>z.contrast),p=l=>{navigator.clipboard.writeText(l),s.success("Enlace copiado al portapapeles")},h=(l,r)=>{console.log(l,r),n.push({name:"latestNews",query:{categoria:l,comunicado:r}})};return(l,r)=>(c(),d("div",We,[e("div",Xe,[b(T,null,{default:q(()=>r[1]||(r[1]=[V("Últimos comunicados")])),_:1}),e("div",Ye,[b(te,{onClick:r[0]||(r[0]=i=>l.$router.push({name:"latestNews"}))},{default:q(()=>r[2]||(r[2]=[V(" Ver más ")])),_:1})])]),e("div",Je,[(c(!0),d(L,null,M(g.value,i=>(c(),d("div",{key:i.ID,onClick:a=>h(i.categoria_comunicado_id,i.ID),class:$([{"bg-black":f.value,"bg-white":!f.value},"rounded-lg overflow-hidden p-4 shadow-[0_5px_25px_rgba(0,0,0,0.1)] cursor-pointer"])},[e("div",tt,[e("img",{src:`${w(t)}/${i.imagen}`,alt:"News image",class:"w-full h-40 object-cover"},null,8,st),r[3]||(r[3]=e("div",{class:"absolute top-4 bg-[#b0cd44] text-white text-sm font-semibold px-2 py-1 rounded-r-xl opacity-90"}," Comunicados ",-1))]),e("div",ot,[e("div",at,[e("div",nt,y(u(i.CreatedAt)),1),e("button",{onClick:H(a=>p(`${w(t)}/${i.archivo}`),["stop"]),class:"text-gray-600 hover:scale-110"},r[4]||(r[4]=[j('<svg fill="#000000" class="w-4 h-4" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 458.624 458.624" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><g><path d="M339.588,314.529c-14.215,0-27.456,4.133-38.621,11.239l-112.682-78.67c1.809-6.315,2.798-12.976,2.798-19.871 c0-6.896-0.989-13.557-2.798-19.871l109.64-76.547c11.764,8.356,26.133,13.286,41.662,13.286c39.79,0,72.047-32.257,72.047-72.047 C411.634,32.258,379.378,0,339.588,0c-39.79,0-72.047,32.257-72.047,72.047c0,5.255,0.578,10.373,1.646,15.308l-112.424,78.491 c-10.974-6.759-23.892-10.666-37.727-10.666c-39.79,0-72.047,32.257-72.047,72.047s32.256,72.047,72.047,72.047 c13.834,0,26.753-3.907,37.727-10.666l113.292,79.097c-1.629,6.017-2.514,12.34-2.514,18.872c0,39.79,32.257,72.047,72.047,72.047 c39.79,0,72.047-32.257,72.047-72.047C411.635,346.787,379.378,314.529,339.588,314.529z"></path></g></g></g></svg>',1)]),8,rt)]),e("div",it,y(i.title),1)])],10,et))),128))])]))}},ct={class:"flex justify-center mt-6 px-4 md:px-0"},dt={class:"relative w-full max-w-5xl"},ut={key:0,class:"bg-white border shadow-lg w-full max-w-5xl rounded-lg"},pt=["onClick"],bt={__name:"HomeView",setup(m){const t=_(null),s=_(""),n=_(!1),v=_([]),g=K(),u=async()=>{try{const a=await X();v.value=a.records.map(o=>o.url.toLowerCase())}catch(a){console.error("Error fetching blocked routes:",a)}},f=a=>{t.value&&!t.value.contains(a.target)&&(n.value=!1)};B(async()=>{await u(),document.addEventListener("click",f)}),F(()=>{document.removeEventListener("click",f)});const p={"linea etica":{name:"Linea de etica",path:"ethic-line"},"codigo de etica":{name:"Codigo de etica",path:"code-ethics"},"video institucional":{name:"Video institucional",path:"institutional-video"},"integridad y anticorrupcion":{name:"Integridad y anticorrupción",path:"integrity-anticorruption"},"mision y vision":{name:"Misión y visión",path:"mision-vision"},"reseña historica":{name:"Reseña histórica",path:"historical-review"},"valores corporativos":{name:"Valores corporativos",path:"value-corporate"},"politicas de la compañia":{name:"Políticas de la compañía",path:"company-politic"},"politicas y objetivos de hseq":{name:"Politicas y objetivos de HSEQ",path:"politicas-hseq"},publicaciones:{name:"Publicaciones",path:"publications"},"nuestros servicios":{name:"Nuestros servicios",path:"services"},"oficinas de atencion ":{name:"Oficinas de Atención",path:"attention-offices"},"puntos de recaudo":{name:"Puntos de recaudo",path:"payment-points"},tarifas:{name:"Tarifas",path:"rates"},"conozca la factura":{name:"Conozca la factura",path:"know-bill"},"el gas natural":{name:"El gas natural",path:"natural-gas"},"prevencion y seguridad":{name:"Prevención y seguridad",path:"prevention-safety"},"resolucion creg 080 de 2019":{name:"Resolución CREG 080 de 2019",path:"resolution-080"},"resolucion creg 105 007 de 2024":{name:"Resolución CREG 105-007 de 2024",path:"resolution-105"},"proteccion de datos":{name:"Protección de datos",path:"protection-data"},"deberes y derechos del usuario":{name:"Deberes y derechos del usuario",path:"user-rights"},"notificacion usuarios":{name:"Notificación usuarios",path:"user-notification"},boletines:{name:"Boletines",path:"newsletters"},"ultimos comunicados":{name:"Ultimos comunicados",path:"latest-news"},"organismos de inspeccion acreditados":{name:"Organismos de inspección acreditados",path:"organismos-acreditados"},"preguntas frecuentes":{name:"Preguntas frecuentes",path:"ask-frequently"},"contrato y condiciones":{name:"Contrato y condiciones",path:"contract-conditions"},"fcr constructoras internas":{name:"FCR (Constructoras internas)",path:"fcr"},"oficina Virtual":{name:"Oficina virtual",path:"login"},"canales de atencion":{name:"Canales de atención",path:"attention-channels"},"revision periodica":{name:"Revisión periódica",path:"rev-periodic"},"actualizar datos":{name:"Actualizar datos",path:"update-info"},"tramites y servicios":{name:"Trámites y servicios",path:"process"},"identificar a personal":{name:"Identificar a personal",path:"identification"},"notificaciones por aviso":{name:"Notificaciones por aviso",path:"notice-notification"},"reportar fraude":{name:"Reportar fraude",path:"fraud-report"},"cupo aprobado":{name:"Cupo aprobado",path:"fnb"},"conoce tu credito":{name:"Conoce tu crédito",path:"check-credit"},"donde comprar":{name:"¿Dónde comprar?",path:"location-buy"},"preguntas frecuentes fnb":{name:"Preguntas frecuentes fnb",path:"questions"},"sea proveedor o contratista":{name:"Sea Proveedor o Contratista",path:"supplier"},"invitaciones a ofertar":{name:"Invitaciones a Ofertar",path:"work-us"},"transparencia y acceso a la informacion":{name:"Transparencia y acceso a la informacion",path:"transparency-access"}},h=a=>a.normalize("NFD").replace(/[\u0300-\u036f]/g,""),l=k(()=>{const a=h(s.value.toLowerCase());return a?Object.keys(p).filter(o=>!v.value.includes(p[o].path)&&h(o.toLowerCase()).includes(a)).map(o=>({name:p[o].name,path:`/${p[o].path}`})):Object.keys(p).filter(o=>!v.value.includes(p[o].path)).slice(0,3).map(o=>({name:p[o].name,path:`/${p[o].path}`}))}),r=a=>{g.push(a.path)},i=k(()=>z.contrast);return(a,o)=>(c(),d(L,null,[e("div",ct,[e("div",dt,[e("div",{ref_key:"inputWrapper",ref:t,class:"flex items-center border rounded-lg shadow-lg focus-within:outline-dotted focus-within:outline-2 focus-within:outline-gray-500"},[Q(e("input",{"onUpdate:modelValue":o[0]||(o[0]=S=>s.value=S),onClick:o[1]||(o[1]=S=>n.value=!0),type:"text",placeholder:"¿Qué estás buscando?",class:"w-full py-3 pl-4 pr-10 border-none rounded-l-lg focus:outline-none focus:ring-0"},null,512),[[Z,s.value]]),o[2]||(o[2]=j(`<div class="p-3 rounded-r-lg"><svg fill="#000000" class="h-6 w-6 text-gray-500" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 488.4 488.4" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><g><path d="M0,203.25c0,112.1,91.2,203.2,203.2,203.2c51.6,0,98.8-19.4,134.7-51.2l129.5,129.5c2.4,2.4,5.5,3.6,8.7,3.6\r
s6.3-1.2,8.7-3.6c4.8-4.8,4.8-12.5,0-17.3l-129.6-129.5c31.8-35.9,51.2-83,51.2-134.7c0-112.1-91.2-203.2-203.2-203.2\r
S0,91.15,0,203.25z M381.9,203.25c0,98.5-80.2,178.7-178.7,178.7s-178.7-80.2-178.7-178.7s80.2-178.7,178.7-178.7\r
S381.9,104.65,381.9,203.25z"></path></g></g></g></svg></div>`,1))],512),n.value?(c(),d("div",ut,[e("ul",null,[(c(!0),d(L,null,M(l.value,(S,G)=>(c(),d("li",{key:G,onClick:E=>r(S),class:$(["px-4 py-2 cursor-pointer",{"bg-black hover:bg-gray-600 text-white":i.value,"bg-white hover:bg-gray-200 text-black":!i.value}])},y(S.name),11,pt))),128))])])):W("",!0)])]),b(we),b(Le),b(Pe),b(Oe),b(Qe),b(lt)],64))}};export{bt as default};