import{_ as k,I as H,ad as y,ae as L,r as g,o as t,b as a,p as d,l as c,q as o}from"./main-DtyiNRRn.js";const E={name:"ContactDetailsFi",components:{IconFi:H},props:{email:{type:Object,default:()=>({})},fax:{type:Object,default:()=>({})},phonenumber1:{type:Object,default:()=>({})},phonenumber2:{type:Object,default:()=>({})}},methods:{insertBreaks(n=""){let l=n.trim().replace(/ *\/ *| +/g,e=>`</span>&#8203;${e}&#8203;<span class="contact-details-fi__line-item">`);return l.includes("@")&&(l=l.replace(/ /g,""),l=n.replace(/@/,()=>'</span>&#8203;<span class="contact-details-fi__line-item">@')),`<span class="contact-details-fi__line-item">${l}</span>`},getTel(n){return y(n)},getMailto(n){return L(n)}}},B={class:"contact-details-fi"},p={key:0},C=["href","title"],j=["innerHTML"],z=["innerHTML"],O={key:1},F=["href","title"],I=["innerHTML"],N=["innerHTML"],V={key:2,class:"contact-details-fi__fax"},x=["innerHTML"],D=["innerHTML"],q={key:3},w=["href","title"],A=["innerHTML"],G=["innerHTML"];function J(n,l,e,K,P,i){var _,r,u,f,h,m,b,M,T,v;const s=g("icon-fi");return t(),a("div",B,[n.isEditMode&&e.phonenumber1||(_=e.phonenumber1)!=null&&_.value?(t(),a("div",p,[d("a",{href:i.getTel((r=e.phonenumber1)==null?void 0:r.value),class:"contact-details-fi__phone",title:(u=e.phonenumber1)==null?void 0:u.value},[c(s,{class:"contact-details-fi__icon",icon:"phone-call",size:"1"}),n.isEditMode?(t(),a("span",{key:0,class:"contact-details-fi__line",innerHTML:e.phonenumber1.editable},null,8,j)):(t(),a("span",{key:1,ref:"phonenumber1",class:"contact-details-fi__line",innerHTML:i.insertBreaks(e.phonenumber1.value)},null,8,z))],8,C)])):o("",!0),n.isEditMode&&e.phonenumber2||(f=e.phonenumber2)!=null&&f.value?(t(),a("div",O,[d("a",{href:i.getTel((h=e.phonenumber2)==null?void 0:h.value),class:"contact-details-fi__phone",title:(m=e.phonenumber2)==null?void 0:m.value},[c(s,{class:"contact-details-fi__icon",icon:"phone-call",size:"1"}),n.isEditMode?(t(),a("span",{key:0,class:"contact-details-fi__line",innerHTML:e.phonenumber2.editable},null,8,I)):(t(),a("span",{key:1,ref:"phonenumber2",class:"contact-details-fi__line",innerHTML:i.insertBreaks(e.phonenumber2.value)},null,8,N))],8,F)])):o("",!0),n.isEditMode&&e.fax||(b=e.fax)!=null&&b.value?(t(),a("div",V,[c(s,{class:"contact-details-fi__icon",icon:"printer",size:"1"}),n.isEditMode?(t(),a("span",{key:0,class:"contact-details-fi__line",innerHTML:e.fax.editable},null,8,x)):(t(),a("span",{key:1,ref:"fax",class:"contact-details-fi__line",innerHTML:i.insertBreaks(e.fax.value)},null,8,D))])):o("",!0),n.isEditMode&&e.email||(M=e.email)!=null&&M.value?(t(),a("div",q,[d("a",{href:i.getMailto((T=e.email)==null?void 0:T.value),class:"contact-details-fi__email",title:(v=e.email)==null?void 0:v.value},[c(s,{class:"contact-details-fi__icon",icon:"mail",size:"1"}),n.isEditMode?(t(),a("span",{key:0,class:"contact-details-fi__line",innerHTML:e.email.editable},null,8,A)):(t(),a("span",{key:1,ref:"email",class:"contact-details-fi__line",innerHTML:i.insertBreaks(e.email.value)},null,8,G))],8,w)])):o("",!0)])}const R=k(E,[["render",J],["__scopeId","data-v-bce3bb05"]]);export{R as C};