PageSourceSearch

https://cloud-v2.skillqube.com/assets/ContactDistributorCard-Dx2tKXGS.js

js skillqube.com collected 2026-10-06 16:55:02 UTC 1,800 bytes, 1 lines download raw bytes

1import{d as D,u as y,z as k,C as V,g as w,o as n,c as u,w as t,f as a,t as s,e as C,k as r,E as x,G as c,H as d,B as f,j as l,s as v}from"./index-8pIADkX4.js";import{D as E}from"./DashboardCard-DDIJjykM.js";import"./VSwitch-a6tYyQNt.js";const P=D({__name:"ContactDistributorCard",setup(I){const{t:m}=y(),{currentUser:p,isSqOrganisation:b}=k(),{fetchDistributorContactData:_}=V(),e=v({}),i=v(!1);async function h(){if(!b()&&(await g(),Object.keys(e.value).length>0)){i.value=!0;return}i.value=!1}async function g(){p.value.organisation&&(e.value=await _(p.value.organisation.id))}return w(async()=>{await h()}),(B,o)=>i.value?(n(),u(E,{key:0},{title:t(()=>[a(s(C(m)("general.dashboard.cards.contactDistributor.title")),1)]),text:t(()=>[a(s(C(m)("general.dashboard.cards.contactDistributor.text"))+" ",1),r(x,null,{default:t(()=>[e.value.customerContactPhone?(n(),u(c,{key:0,href:"tel:"+e.value.customerContactPhone,class:"color--red"},{prepend:t(()=>[r(f,null,{default:t(()=>[...o[0]||(o[0]=[a("mdi-phone",-1)])]),_:1})]),default:t(()=>[r(d,null,{default:t(()=>[a(s(e.value.customerContactPhone),1)]),_:1})]),_:1},8,["href"])):l("",!0),e.value.customerContactEmail?(n(),u(c,{key:1,href:"mailto:"+e.value.customerContactEmail,class:"color--red"},{prepend:t(()=>[r(f,null,{default:t(()=>[...o[1]||(o[1]=[a("mdi-email",-1)])]),_:1})]),default:t(()=>[r(d,null,{default:t(()=>[a(s(e.value.customerContactEmail),1)]),_:1})]),_:1},8,["href"])):l("",!0),e.value.customerContactWebsite?(n(),u(c,{key:2,href:e.value.customerContactWebsite,class:"color--red"},{prepend:t(()=>[r(f,null,{default:t(()=>[...o[2]||(o[2]=[a("mdi-web",-1)])]),_:1})]),default:t(()=>[r(d,null,{default:t(()=>[a(s(e.value.customerContactWebsite),1)]),_:1})]),_:1},8,["href"])):l("",!0)]),_:1})]),_:1})):l("",!0)}});export{P 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.