2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
import{S as h}from"./SectionTitle-CrHOP_mf.js";import{g as b,_ as g,r as f,u as x,c as u,d as r,e,l as _,w as v,F as y,f as C,b as t,m as j,i as B,t as n,z as w,s as V}from"./index-BmU8V2V2.js";const A=async()=>{try{const{data:a}=await b.get("/loadoficinasatencionall");return a}catch(a){throw console.log(a),new Error("Error getting oficinas atencion")}},L={class:"mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl"},M={class:"w-full"},N=["onClick"],O={class:"font-semibold"},z={key:0,class:""},F={key:1,class:""},T={key:0,class:"p-4 mt-2 rounded-b shadow-lg"},E={class:""},I={key:0,class:"flex items-center mb-2 break-words word-break"},S={class:"break-words word-break"},q={key:1,class:"flex items-center mb-2 break-words word-break"},D={class:"break-words word-break"},G={class:"flex items-center mb-2 break-words word-break"},K={class:"break-words word-break"},Q={class:"flex items-center mb-2 break-words word-break"},H={class:"break-words word-break"},P={class:"flex items-center mb-2 break-words word-break"},U={class:"break-words word-break"},X={class:"flex items-center mb-2 break-words word-break"},$={class:"break-words word-break"},J={__name:"AttentionOfficesView",setup(a){const i=f(null),m=l=>{i.value=i.value===l?null:l},{data:d}=x({queryKey:["oficinasAtencion"],queryFn:()=>A(),staleTime:1e3*60}),p=u(()=>{var l;return((l=d==null?void 0:d.value)==null?void 0:l.registros)||[]}),k=u(()=>V.contrast);return(l,s)=>(t(),r("div",L,[s[8]||(s[8]=e("div",{class:"w-full flex justify-center items-center mb-6"},[e("iframe",{class:"w-full h-[700px] rounded",src:"https://www.google.com/maps/d/u/0/embed?mid=1kxsADxuCL8sQL8ItVDXPjlG1k2gueNKF&ll=7.546385018476524%2C-72.46072375000001&z=10",width:"640",height:"900",allowfullscreen:"",loading:"lazy"})],-1)),e("div",M,[_(h,null,{default:v(()=>s[0]||(s[0]=[j("Oficinas de atención Gases del Oriente")])),_:1}),s[7]||(s[7]=e("p",{class:"mb-4"},"Hacer click o tocar en el nombre de cada oficina para ver la información",-1)),(t(!0),r(y,null,C(p.value,(o,c)=>(t(),r("div",{key:o.id,class:"mb-2"},[e("div",{onClick:R=>m(c),class:B([{"bg-black":k.value,"bg-white":!k.value},"cursor-pointer flex justify-between items-center p-4 rounded shadow-lg"])},[e("h3",O,n(o.ciudad),1),i.value===c?(t(),r("span",z,"-")):(t(),r("span",F,"+"))],10,N),i.value===c?(t(),r("div",T,[e("ul",E,[o.direccion1?(t(),r("li",I,[s[1]||(s[1]=e("svg",{class:"w-4 h-4 flex-shrink-0 mr-2",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("span",S,n(o.direccion1),1)])):w("",!0),o.direccion2!="NULL"?(t(),r("li",q,[s[2]||(s[2]=e("svg",{class:"w-4 h-4 flex-shrink-0 mr-2",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("span",D,n(o.direccion2),1)])):w("",!0),e("li",G,[s[3]||(s[3]=e("svg",{class:"w-4 h-4 flex-shrink-0 mr-2",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("span",K,n(o.horario),1)]),e("li",Q,[s[4]||(s[4]=e("svg",{class:"w-4 h-4 flex-shrink-0 mr-2",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("span",H,"Tel "+n(o.telefono),1)]),e("li",P,[s[5]||(s[5]=e("svg",{class:"w-4 h-4 flex-shrink-0 mr-2",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("span",U,"Línea de emergencias "+n(o.linea_emergencia),1)]),e("li",X,[s[6]||(s[6]=e("svg",{class:"w-4 h-4 flex-shrink-0 mr-2",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("span",$,n(o.email),1)])])])):w("",!0)]))),128))])]))}},Z=g(J,[["__scopeId","data-v-3ab4c4e7"]]);export{Z as default};
|