',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('',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(``,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};