1import{_ as we}from"./kijryuvH.js";import{_ as Me,u as je}from"./BwIhC1le.js";import{l as he,a0 as Ie,u as Ve,h as Be,G as ze}from"./CcArLBRM.js";import{_ as Se}from"./DzU5f42l.js";import{f as Pe,t as ie,v as se,c as de,u as Te,g as Oe,a as We,_ as De,b as He}from"#entry";import{u as qe,_ as Ge,a as Ae,n as be,b as Ne,d as Fe,c as Ue,f as Je}from"./7WPVJOzx.js";import{x as re,b as f,w as ne,_ as a,A as l,a3 as N,$ as r,aa as Ke,F as n,a6 as A,a7 as w,ad as J,ab as X,aj as oe,a4 as v,ac as Y,l as d,an as ae,y as ce,J as Le,a0 as le,a8 as ve,n as ye,ai as Qe,N as Xe}from"./DY4TnGab.js";import{_ as Ye}from"./CQbnnahU.js";import{u as Ze}from"./KrsgyCZm.js";import{c as _e}from"./C_4EoOE9.js";import{_ as et}from"./DfVsxPfR.js";import{v as me}from"./DdbBBL9f.js";import{u as tt}from"./BPvzpHyy.js";import{u as nt}from"./DClbIdx9.js";import{_ as ot}from"./PkiCL48n.js";import{_ as it}from"./Bn2J4k51.js";import{_ as st}from"./CT29HFl1.js";import{_ as at}from"./BTDT5SNh.js";import{u as rt}from"./PqQV_ez9.js";import{u as lt}from"./oRMa-G-3.js";import{b as dt,c as ut,m as xe}from"./BP7derqn.js";import{u as ct}from"./TmS-nNQW.js";import{u as vt}from"./De1_ZTPx.js";import"./CHVx8CtU.js";import"./Lyfmpy5p.js";import"./D-Mi8Dc1.js";import"./C3Wou7Au.js";import"./DqvWqfas.js";import"./BkoXiezx.js";import"./DzBTpKOJ.js";import"./BQb353cD.js";import"./CwURmcMd.js";import"./h3Xyc-VO.js";import"./CvFfTb3P.js";import"./CweM5rB8.js";const mt={key:0},gt={class:"font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px] flex flex-col gap-1"},pt={key:0},ft={key:1},xt={key:2},yt={class:"mt-5 lg:mt-6"},wt={key:0,class:"font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px]"},ht={key:1,class:"mt-5 lg:mt-6"},bt={class:"font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px]"},_t={key:2,class:"mt-5 lg:mt-6"},kt={class:"font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px] flex flex-col gap-1"},$t={key:0,class:"truncate"},Rt={class:"mt-5 lg:mt-6"},Ct={class:"font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px] flex flex-row gap-1"},It={class:"lg:mt-1 flex flex-nowrap"},St=["onMouseenter","onClick"],Pt=re({__name:"VendorContacts",props:{vendor:{},myRating:{default:0},vendorRating:{}},emits:["rating:update","myRating:update","reviewSent"],setup(e,{emit:$}){const{data:_}=qe(()=>e.vendor.phone),h=$,S=f(0),j=f(e.myRating),m=f(!1),p=f(0);ne(()=>e.myRating,s=>{typeof s=="number"&&(j.value=s)});const D=s=>{p.value=s,m.value=!0},L=s=>{m.value=s,s||(p.value=0)},O=d(()=>{const s=e.vendor.cities?.find(C=>C.pivot?.type==="based_in")??e.vendor.cities?.find(C=>C.slug!=="worldwide-default-city"),i=e.vendor.countries?.find(C=>C.slug!=="worldwide");if(!s&&!i)return"";const x=[];return s&&x.push(s.name),i&&s?.name!==i?.name&&x.push(i.name),x.join(", ")}),P=d(()=>{const s=e.vendor.cities?.filter(x=>x.pivot?.type==="travel");return s?.length?s.map(x=>x.slug==="worldwide-default-city"?"Worldwide":x.name).filter((x,C,F)=>x&&F.indexOf(x)===C).join(", "):""}),H=d(()=>["bridal","fine-jewelry-brands"].includes(e.vendor.profession?.slug??"")?"Available:":"Available for travel:"),V=s=>{const i=e.vendor.currency??{symbol:"â¬",symbol_position:"left"},x=s.toLocaleString();return i.symbol_position==="right"?`${x} ${i.symbol}`:`${i.symbol}${x}`},b=d(()=>{const s=e.vendor.rate;return!s||typeof s!="number"?null:V(s)}),W=d(()=>{const s=e.vendor.price_to;return!s||typeof s!="number"?null:`${V(s)}+`}),c=f(!1),g=d(()=>[e.vendor.award_1,e.vendor.award_2,e.vendor.award_3].filter(s=>s)),B=d(()=>Object.entries({WEB:e.vendor.website,IG:e.vendor.inst}).filter(([s,i])=>i)),{send:M}=Pe(),R=he(),T=()=>{ie("vendor_phone_click",se(R)),M("click_phone",{subscriberId:e.vendor.id,categorySlug:e.vendor.profession?.slug,subscriberSlug:e.vendor.slug})},E=(s,i)=>{ie(s==="WEB"?"vendor_website_click":"vendor_instagram_click",{...se(R),link_url:i});const C={WEB:"click_website",IG:"click_instagram"}[s];C&&M(C,{subscriberId:e.vendor.id,categorySlug:e.vendor.profession?.slug,subscriberSlug:e.vendor.slug})},q=()=>{ie("vendor_inquiry_open",{...se(R),cta_text:"Price upon request"}),c.value=!0},K=s=>{ie("vendor_review_open",se(R)),D(s)},Q=(s,i)=>s==="WEB"?be(i):s==="IG"?`https://www.instagram.com/${i.replace(/^@/,"").replace(/^https?:\/\/(www\.)?instagram\.com\//,"").replace(/\/$/,"")}`:be(i),G=s=>s==="IG"?`@${e.vendor.inst?.replace(/^@/,"").replace(/^https?:\/\/(www\.)?instagram\.com\//,"").replace(/\/$/,"")??""}`:s==="WEB"?e.vendor.website?.replace(/^https?:\/\//,"").replace(/\/$/,"")??"":s,Z=s=>s==="IG"?"Instagram: ":s==="WEB"?"Website: ":"";return(s,i)=>{const x=de,C=Ie,F=Se,ee=Ge,te=Ae;return a(),l(N,null,[r("div",Ke({class:"lg:w-[563px] mx-auto"},s.$attrs),[n(O)||n(P)||e.vendor.languages_list?.length?(a(),l("div",mt,[i[5]||(i[5]=r("div",{class:"font-body text-[12px] leading-[16
1px] lg:text-[15px] lg:leading-[20px] text-gray"}," Location ",-1)),i[6]||(i[6]=r("div",{class:"my-3 lg:my-4 h-px bg-lightgray"},null,-1)),r("div",gt,[n(O)?(a(),l("div",pt," Based in: "+A(n(O)),1)):w("",!0),n(P)?(a(),l("div",ft,A(n(H))+" "+A(n(P)),1)):w("",!0),e.vendor.languages_list?.length?(a(),l("div",xt," Languages spoken: "+A(e.vendor.languages_list.join(", ")),1)):w("",!0)])])):w("",!0),r("div",yt,[i[7]||(i[7]=r("div",{class:"font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] text-gray"}," Pricing ",-1)),i[8]||(i[8]=r("div",{class:"my-3 lg:my-4 h-px bg-lightgray"},null,-1)),n(b)?(a(),l("div",wt,[n(W)?(a(),l(N,{key:0},[J(A(n(b))+"-"+A(n(W)),1)],64)):(a(),l(N,{key:1},[J("Starting from: "+A(n(b)),1)],64))])):(a(),X(x,{key:1,text:"Price upon request",class:"min-w-[200px]",onClick:i[0]||(i[0]=y=>q())}))]),n(g)?.length?(a(),l("div",ht,[i[9]||(i[9]=r("div",{class:"font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] text-gray"}," Awards & Recognition ",-1)),i[10]||(i[10]=r("div",{class:"my-3 lg:my-4 h-px bg-lightgray"},null,-1)),r("div",bt,[(a(!0),l(N,null,oe(n(g),y=>(a(),l("div",null,A(y),1))),256))])])):w("",!0),e.vendor.website||e.vendor.inst||e.vendor.phone?(a(),l("div",_t,[i[12]||(i[12]=r("div",{class:"font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] text-gray"}," Contacts ",-1)),i[13]||(i[13]=r("div",{class:"my-3 lg:my-4 h-px bg-lightgray"},null,-1)),r("div",kt,[(a(!0),l(N,null,oe(n(B),([y,U])=>(a(),l("div",{key:y,class:"truncate"},[J(A(Z(y))+" ",1),v(C,{to:Q(y,U??""),target:"_blank",rel:"noopener noreferrer",class:"use-underline",onClick:t=>E(y,Q(y,U??""))},{default:Y(()=>[J(A(G(y)),1)]),_:2},1032,["to","onClick"])]))),128)),e.vendor.phone?(a(),l("div",$t,[i[11]||(i[11]=J(" Phone: ",-1)),v(C,{to:`tel:${n(_).href||e.vendor.phone.replace(/[^0-9+]/g,"")}`,target:"_blank",rel:"noopener noreferrer",class:"use-underline",onClick:i[1]||(i[1]=y=>T())},{default:Y(()=>[J(A(n(_).display),1)]),_:1},8,["to"])])):w("",!0)])])):w("",!0),r("div",Rt,[i[15]||(i[15]=r("div",{class:"font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] text-gray"}," Review ",-1)),i[16]||(i[16]=r("div",{class:"my-3 lg:my-4 h-px bg-lightgray"},null,-1)),r("div",Ct,[i[14]||(i[14]=r("div",null,"Set Rating:",-1)),r("div",It,[(a(),l(N,null,oe(5,y=>r("div",{key:y,class:"w-5 h-5 flex items-center justify-center cursor-pointer",onMouseenter:U=>S.value=y,onMouseleave:i[2]||(i[2]=U=>S.value=0),onClick:U=>K(y)},[v(F,{class:"w-5 h-5",active:n(S)>=y||n(S)===0&&n(j)>=y},null,8,["active"])],40,St)),64))])])])],16),v(ee,{showPopup:n(m),subscriberId:e.vendor.id,initialRating:n(p),type:"vendor","onUpdate:showPopup":L,onReviewSent:i[3]||(i[3]=y=>h("reviewSent"))},null,8,["showPopup","subscriberId","initialRating"]),v(te,{"subscriber-id":e.vendor.id,"show-popup":n(c),"onUpdate:showPopup":i[4]||(i[4]=y=>c.value=y)},null,8,["subscriber-id","show-popup"])],64)}}}),Ee=Object.assign(Pt,{__name:"VendorContacts"}),Tt=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),At={class:"lg:h-16 max-w-[1920px] mx-auto flex max-lg:flex-col item-center lg:items-start justify-between bg-white pointer-events-auto"},Lt={class:"font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px]"},Et={class:"mt-[6px] lg:mt-2 font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] text-gray"},Mt={key:1},jt={key:2},Vt={key:1},Bt={key:3},zt={class:"w-fit mt-[6px] lg:mt-4 mx-auto font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] flex items-center gap-2 flex-wrap justify-center"},Ot={class:"flex items-center gap-[2px]"},Wt={key:0,class:"flex items-center gap-[2px]"},Dt={class:"max-lg:mt-6 lg:h-16 lg:pr-[27px] flex flex-1 flex-nowrap max-lg:justify-center items-center lg:justify-end gap-2 max-lg:order-2 max-lg:container lg:min-w-0"},Ht={class:"sticky lg:hidden top-0 z-30 bg-white"},qt=498,Gt=re({__name:"VendorHeader",props:{vendor:{},myRating:{},vendorRating:{},activeTab:{},animateIndicator:{type:Boolean,default:!0},hasReviews:{type:Boolean,default:!0}},emits:["activeTab","rating:update","myRating:update","reviewSent"],setup(e,{emit:$}){const{isMobile:_}=Ze(),h=ae("tabsContainerDesktop"),S=ae("tabsContainerMobile"),j=d(()=>_.value?S.value:h.value),m=f(0),p=f(0);_e(h,t=>{m.value=Math.round(t[0]?.contentRect?.width??0)}),_e(S,t=>{p.value=Math.round(t[0]?.contentRect?.width??0)});const D=d(()=>_.value?p.value:m.value),L=d(()=>e.hasReviews?3:2),O=d(()=>qt/L.value),P=d(()=>{const t=L.value,o=D.value,u=o>0?o/t:0;return u>0?Math.min(O.value,u):O.value}),H=he(),V=$,b=d(()=>e.hasReviews?["portfolio","about","review"]:["portfolio","about"]),W=f("portfolio"),c=d(()=>e.activeTab??W.value),g=f(0),B=t=>{const u=b.value.indexOf(t);return u<0?0:_.value?u*((j.value?.clientWidth??0)/L.value):u*P.value},M=(t,o=!1)=>{const u=B(t);o?je().animateIndicatorPosition(g,u,350,"easeIn"):g.value=u};ce(()=>{const t=H.hash.replace("#","")||"portfolio",o=b.value.includes(t)?t:"portfolio";W.value=o,M(o,!1)});const R=f(!1);ne([()=>c.value,()=>e.animateIndicator],([t,o])=>{t&&(M(t,R.value&&o),R.value=!0)},{immediate:!0}),ne([m,p],()=>{ye(()=>M(c.value,!1))});const T=t=>{b.value.includes(t)&&(W.value=t,g.value=B(t),V("activeTab",t))},E=d(()=>`${e.vendor.name||""} ${e.vendor.surname||""}`.trim()),q=d(()=>e.vendor.countries?.some(t=>t.slug==="worldwide")),K=d(()=>{const t=e.vendor.rate;if(!t||typeof t!="number")return null;const o=e.vendor.currency??{symbol:"$",symbol_position:"left"},u=z=>
1o.symbol_position==="right"?`${z.toLocaleString()} ${o.symbol}`:`${o.symbol} ${z.toLocaleString()}`,I=e.vendor.price_to;return I&&typeof I=="number"?`${u(t)}-${u(I)}+`:`${u(t)}+`}),Q=d(()=>{const t=e.vendor.cities?.find(I=>I.slug!=="worldwide-default-city"),o=e.vendor.countries?.find(I=>I.slug!=="worldwide");if(!t&&!o)return"";const u=[];return t&&u.push(t.name),o&&t?.name!==o?.name&&u.push(o.name),u.join(", ")}),{PAGES:G,getLocation:Z}=Te(),s=d(()=>{const t=e.vendor.profession?.slug;if(t)return G.vendors(t)}),i=d(()=>{const t=e.vendor.profession?.slug,o=e.vendor.cities?.find(z=>z.slug!=="worldwide-default-city"),u=e.vendor.countries?.find(z=>z.slug!=="worldwide");if(!u?.slug)return;const I=Z(u.slug,o?.slug);return G.vendors(t,void 0,I)}),x=f((e.vendorRating??e.vendor.rating).toFixed(1)),C=f(e.myRating),F=f(!1),ee=f(!1),te=ae("stickyContainer"),y=f(!1),U=()=>{te.value&&(y.value=te.value.getBoundingClientRect().top<=0)};return ce(()=>{window.addEventListener("scroll",U,{passive:!0}),U()}),Le(()=>window.removeEventListener("scroll",U)),ne(()=>e.vendorRating,t=>{typeof t=="number"&&(x.value=t.toFixed(1))}),ne(()=>e.myRating,t=>{typeof t=="number"&&(C.value=t)}),(t,o)=>{const u=Me,I=Ie,z=Se,ue=de,ge=Ae,pe=Ee,fe=Ye;return a(),l(N,null,[r("div",{ref_key:"stickyContainer",ref:te,class:"lg:sticky top-0 z-30 pointer-events-none"},[r("div",At,[r("div",{ref_key:"tabsContainerDesktop",ref:h,class:"relative max-lg:mt-7 h-10 lg:h-16 font-body text-[15px] leading-[20px] hidden lg:flex flex-1 flex-nowrap items-center max-lg:order-3 max-lg:border-b border-lightgray lg:justify-start lg:min-w-0 lg:mr-[27px]"},[r("div",{class:"h-full flex items-center justify-center cursor-pointer",style:le({width:`${n(P)}px`}),onClick:o[0]||(o[0]=k=>T("portfolio"))}," Portfolio ",4),r("div",{class:"h-full flex items-center justify-center cursor-pointer",style:le({width:`${n(P)}px`}),onClick:o[1]||(o[1]=k=>T("about"))}," About ",4),e.hasReviews?(a(),l("div",{key:0,class:"h-full flex items-center justify-center cursor-pointer",style:le({width:`${n(P)}px`}),onClick:o[2]||(o[2]=k=>T("review"))}," Reviews ",4)):w("",!0),v(u,{left:n(g),width:n(P),class:"max-lg:-mb-[1.5px]"},null,8,["left","width"])],512),r("div",{class:ve(["mt-3 lg:mt-[14px] text-center max-lg:order-1 lg:flex-shrink-0 transition-opacity duration-300 ease-in-out",{"lg:opacity-0":n(y)}])},[r("h1",Lt,A(n(E)),1),r("div",Et,[n(s)?(a(),X(I,{key:0,to:n(s)},{default:Y(()=>[J(A(e.vendor.profession?.title),1)]),_:1},8,["to"])):(a(),l("span",Mt,A(e.vendor.profession?.title),1)),n(Q)?(a(),l("span",jt,[o[13]||(o[13]=J(" | ",-1)),n(i)?(a(),X(I,{key:0,to:n(i)},{default:Y(()=>[J(A(n(Q)),1)]),_:1},8,["to"])):(a(),l("span",Vt,A(n(Q)),1))])):w("",!0),n(q)?(a(),l("span",Bt," | Worldwide ")):w("",!0)]),r("div",zt,[r("span",Ot,[J(A(n(x))+" ",1),v(z,{class:"max-lg:w-3 max-lg:h-3"})]),n(K)?(a(),l("span",Wt,A(n(K)),1)):w("",!0)])],2),r("div",Dt,[v(ue,{text:"Inquire",onClick:o[3]||(o[3]=k=>{("trackEvent"in t?t.trackEvent:n(ie))("vendor_inquiry_open",{...("vendorContext"in t?t.vendorContext:n(se))(n(H)),cta_text:"Inquire"}),ee.value=!0}),class:"max-lg:w-full"}),v(ue,{text:"Contact",type:"secondary",onClick:o[4]||(o[4]=k=>{("trackEvent"in t?t.trackEvent:n(ie))("vendor_contact_open",("vendorContext"in t?t.vendorContext:n(se))(n(H))),F.value=!0}),class:"max-lg:w-full"})])]),o[14]||(o[14]=r("div",{class:"h-[54px] pointer-events-none max-lg:hidden"},null,-1)),v(ge,{"subscriber-id":e.vendor.id,"show-popup":n(ee),"onUpdate:showPopup":o[5]||(o[5]=k=>ee.value=k)},null,8,["subscriber-id","show-popup"]),v(fe,{title:"Contact",showPopup:n(F),width:"w-full lg:w-[817px]","onUpdate:showPopup":o[9]||(o[9]=k=>F.value=k)},{default:Y(()=>[v(pe,{vendor:e.vendor,myRating:e.myRating,vendorRating:e.vendorRating,class:"mt-12 lg:mt-[75px] max-lg:container","onRating:update":o[6]||(o[6]=k=>V("rating:update",k)),"onMyRating:update":o[7]||(o[7]=k=>V("myRating:update",k)),onReviewSent:o[8]||(o[8]=k=>V("reviewSent"))},null,8,["vendor","myRating","vendorRating"])]),_:1},8,["showPopup"])],512),r("div",Ht,[r("div",{ref_key:"tabsContainerMobile",ref:S,class:"relative max-lg:mt-7 h-10 lg:h-16 font-body text-[15px] leading-[20px] flex flex-nowrap items-center max-lg:order-3 max-lg:border-b border-lightgray"},[r("div",{class:"h-full flex items-center justify-center cursor-pointer",style:le({width:e.hasReviews?"33%":"50%"}),onClick:o[10]||(o[10]=k=>T("portfolio"))}," Portfolio ",4),r("div",{class:"h-full flex items-center justify-center cursor-pointer",style:le({width:e.hasReviews?"33%":"50%"}),onClick:o[11]||(o[11]=k=>T("about"))}," About ",4),e.hasReviews?(a(),l("div",{key:0,class:"h-full flex items-center justify-center cursor-pointer",style:{width:"33%"},onClick:o[12]||(o[12]=k=>T("review"))}
1," Review ")):w("",!0),v(u,{left:n(g),width:e.hasReviews?"33%":"50%",class:"max-lg:-mb-[1.5px]"},null,8,["left","width"])],512)])],64)}}}),Nt=Object.assign(Gt,{__name:"VendorHeader"}),Ft={class:"container"},Ut=["data-media-id","onClick"],Jt={key:1,class:"relative w-full h-auto overflow-hidden group"},Kt={key:0,class:"mt-20 flex items-center justify-center"},ke=12,Qt=re({__name:"VendorGallery",props:{vendor:{}},setup(e){const $=nt(),_=f(null),h=d(()=>e.vendor?.albums?.find(g=>g.name==="Gallery")??e.vendor?.albums?.find(g=>(g.media?.length??0)>0)??e.vendor?.albums?.[0]??null),S=d(()=>h.value?.media??[]),j=d(()=>e.vendor?.videos??[]),m=d(()=>[...j.value,...S.value]),p=f(1),D=d(()=>m.value.slice(0,p.value*ke)),L=d(()=>m.value.length>p.value*ke),{isVideographer:O}=tt(),P=d(()=>O(e.vendor)?"grid-cols-1 lg:grid-cols-2":"grid-cols-2 lg:grid-cols-4"),H=g=>"video"in g,V=(g,B)=>{if(g.id){if(B){const R=B.currentTarget.querySelector("img");if(R){const T=R.getBoundingClientRect();_.value={rect:{top:T.top,left:T.left,width:T.width,height:T.height},src:R.currentSrc||R.src,naturalWidth:R.naturalWidth,naturalHeight:R.naturalHeight}}else _.value=null}else _.value=null;$.open({items:m.value,id:g.id,sourceInfo:_.value,galleryContainer:c.value})}},b=d(()=>$.isOpen.value?$.current.value?.id??null:null),W=g=>b.value==null||g.id==null?!1:String(g.id)===String(b.value),c=f(null);return(g,B)=>{const M=we,R=et,T=de;return a(),l("div",Ft,[r("div",{ref_key:"galleryContainer",ref:c,class:"px-0"},[r("div",{class:ve(["grid items-start gap-5 lg:gap-20",n(P)])},[(a(!0),l(N,null,oe(n(D),(E,q)=>(a(),l("div",{key:E.id,"data-media-id":E.id,class:ve(["overflow-hidden cursor-pointer group",{"opacity-0":W(E)}]),onClick:K=>V(E,K)},[H(E)?w("",!0):(a(),X(M,{key:0,media:E,"aspect-ratio":"271/380",size:"small",sizes:"(max-width: 1024px) 50vw, 25vw",loading:q<4?"eager":"lazy",fetchpriority:q<2?"high":void 0,alt:("vendorImageAlt"in g?g.vendorImageAlt:n(me))(e.vendor,`portfolio photo ${q+1}`),class:"block w-full h-auto origin-center"},null,8,["media","loading","fetchpriority","alt"])),H(E)?(a(),l("div",Jt,[v(R,{class:"absolute z-10 top-3 left-3"}),v(M,{media:E.preview,"aspect-ratio":"272/181",size:"small",sizes:"(max-width: 1024px) 50vw, 25vw",loading:q<8?"eager":"lazy",fetchpriority:q<4?"high":void 0,alt:("vendorImageAlt"in g?g.vendorImageAlt:n(me))(e.vendor,"showreel preview"),class:"block w-full h-auto origin-center"},null,8,["media","loading","fetchpriority","alt"])])):w("",!0)],10,Ut))),128))],2),n(L)?(a(),l("div",Kt,[v(T,{text:"Show more",onClick:B[0]||(B[0]=E=>p.value++)})])):w("",!0)],512)])}}}),Xt=Object.assign(Qt,{__name:"VendorGallery"}),Yt=Fe("components/VendorContacts.vue",()=>Oe(()=>Promise.resolve().then(()=>Tt),void 0,import.meta.url).then(e=>e.default||e)),Zt={class:"container"},en={class:"mt-[60px] lg:mt-20 w-[562px] max-w-full mx-auto font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px]"},tn=["innerHTML"],nn={key:1},on=["innerHTML"],sn={class:"container"},an={class:"mt-[60px] lg:mt-20"},rn={key:0,class:"mt-[120px] lg:mt-40"},ln={key:0,class:"max-lg:hidden mt-20 flex items-center justify-center"},$e=4,dn=re({__name:"VendorInfo",props:{vendor:{}},setup(e){const{linkify:$}=rt(),_=f(1),h=d(()=>{const m=e.vendor.articles?.length??0,p=_.value*$e;return Math.min(m,p)}),S=d(()=>e.vendor.articles?.slice(0,h.value)??[]),j=d(()=>{const m=[];e.vendor.avatar&&m.push(e.vendor.avatar);const p=e.vendor.team_album?.media??[];return m.push(...p),m});return(m,p)=>{const D=Ne,L=we,O=ot,P=Yt,H=it,V=st,b=at,W=de;return a(),l("div",null,[r("div",Zt,[v(D,{quote:e.vendor.accent_text},null,8,["quote"]),r("div",en,[e.vendor.description?(a(),l("div",{key:0,class:"vendor-description",innerHTML:n($)(e.vendor.description)},null,8,tn)):w("",!0),e.vendor.description&&e.vendor.description_2?(a(),l("br",nn)):w("",!0),e.vendor.description_2?(a(),l("div",{key:2,class:"vendor-description",innerHTML:n($)(e.vendor.description_2)},null,8,on)):w("",!0),n(j).length>0?(a(),X(O,{key:3,items:n(j),autoplay:!1,"single-full-width":"","aspect-ratio":"138/185","use-arrows":"",class:"mt-8 lg:mt-10"},{default:Y(({item:c})=>[v(L,{media:c,"aspect-ratio":"138/185",sizes:"100vw",fullWidth:"",alt:("vendorImageAlt"in m?m.vendorImageAlt:n(me))(e.vendor,"award"),class:"w-full border border-[#DEDEDE]"},null,8,["media","alt"])]),_:1},8,["items"])):w("",!0)])]),r("div",sn,[r("div",an,[p[1]||(p[1]=r("h2",{class:"w-fit mx-auto font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px]"}
1," Vendor Details ",-1)),v(P,{vendor:e.vendor,"hydrate-on-idle":"",class:"mt-8 lg:mt-10"},null,8,["vendor"])])]),(e.vendor.articles?.length??0)>0?(a(),l("div",rn,[p[2]||(p[2]=r("h2",{class:"container h-12 lg:h-16 font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px]"}," Articles ",-1)),v(H),r("div",{class:ve(["max-lg:hidden container mt-20 grid gap-y-20 justify-items-center",{"grid-cols-1":n(h)===1,"grid-cols-2":n(h)===2,"grid-cols-3":n(h)===3,"grid-cols-[repeat(4,1fr)]":n(h)>=4}])},[(a(!0),l(N,null,oe(n(S),c=>(a(),X(V,{key:c.id,article:c,"strict-lazy":"",class:"mx-auto"},null,8,["article"]))),128))],2),v(b,{class:"lg:hidden container mt-[60px] snap-x snap-proximity",itemsWidth:209,gapX:64},{default:Y(()=>[(a(!0),l(N,null,oe(e.vendor.articles,c=>(a(),X(V,{key:c.id,article:c,width:"min-w-[209px]","strict-lazy":"",class:"snap-center"},null,8,["article"]))),128))]),_:1}),(e.vendor?.articles?.length??0)>n(_)*$e?(a(),l("div",ln,[v(W,{text:"Show more",onClick:p[0]||(p[0]=c=>_.value++)})])):w("",!0)])):w("",!0)])}}}),un=Object.assign(We(dn,[["__scopeId","data-v-030ca1bb"]]),{__name:"VendorInfo"}),cn={class:"max-lg:container"},vn={key:0,class:"mt-20 flex items-center justify-center"},Re=3,mn=re({__name:"VendorReviews",props:{vendor:{}},setup(e){const $=f(1),_=d(()=>e.vendor?.comments?.length??0),h=d(()=>(e.vendor?.comments??[]).slice(0,$.value*Re)),S=d(()=>_.value>$.value*Re);return(j,m)=>{const p=Ue,D=de;return a(),l("div",cn,[m[1]||(m[1]=r("h2",{class:"w-fit mx-auto font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px]"}," Reviews ",-1)),(a(!0),l(N,null,oe(n(h),L=>(a(),X(p,{comment:L,key:L.id,class:"mt-8 lg:mt-10"},null,8,["comment"]))),128)),n(S)?(a(),l("div",vn,[v(D,{text:"Show more",onClick:m[0]||(m[0]=L=>$.value++)})])):w("",!0)])}}}),gn=Object.assign(mn,{__name:"VendorReviews"}),pn={class:"h-[210px] lg:h-[300px] bg-background-gray flex justify-center border-b border-lightgray"},Ce=120,fn=1500,Yn=re({__name:"[slug]",async setup(e){let $,_;const h=he(),{vendorCategory:S,slug:j}=h.params,m=h.query.preview,{API:p}=Te();ct().setSeoData(null);const D=!Ve().isHydrating,L=vt(),O=`vendor:${S}:${j}`,P=D?L.get(O):null,H=P?.full!=null,V=m?`${p.vendorsSlug(S,j)}?preview=${m}`:p.vendorsSlug(S,j),{data:b,error:W}=([$,_]=Qe(()=>He(V,{lazy:D,immediate:!0,cacheTtl:600})),$=await $,_(),$);if(H&&!b.value&&(b.value=P.full),W.value){const t=W.value.statusCode===410;throw Be({statusCode:t?410:404,statusMessage:t?"Vendor no longer available":"Vendor not found"})}const c=d(()=>b.value?.vendor??P?.partial??null),g=f(Number(b.value?.myRating??0)),B=f(b.value?.vendor?.computed_rating??P?.partial?.computed_rating??5),M=d(()=>(c.value?.comments?.length??0)>0),R=f(!1),T=f(!1),E=()=>{const t=c.value;if(!R.value||T.value||!t||b.value?.isPreview)return;T.value=!0;const{send:o}=Pe();o("enter_page",{subscriberId:t.id,categorySlug:t.profession?.slug,subscriberSlug:t.slug})},q=ze(),K=d(()=>M.value?["portfolio","about","review"]:["portfolio","about"]),Q=t=>{const o=t.replace("#","");return K.value.includes(o)?o:"portfolio"},G=f("portfolio");ne(c,E,{flush:"post"}),ce(()=>{G.value=Q(h.hash),R.value=!0,E()}),ne(()=>h.hash,t=>{const o=Q(t);o!==G.value&&(G.value=o)});const Z=ae("galleryRef"),s=ae("infoRef"),i=ae("reviewRef"),x=f(0),C=f(!0),F=()=>{if(Date.now()<x.value||!Z.value||!s.value)return;const t=s.value.getBoundingClientRect().top,u=(M.value?i.value?.getBoundingClientRect().top??1/0:1/0)<=Ce?"review":t<=Ce?"about":"portfolio";u!==G.value&&(C.value=!0,G.value=u,q.replace({hash:`#${u}`,query:h.query}))};ce(()=>{window.addEventListener("scroll",F,{passive:!0}),ye(()=>F())}),Le(()=>{window.removeEventListener("scroll",F),L.clear(O)});const ee=t=>{K.value.includes(t)&&(C.value=!1,G.value=t,x.value=Date.now()+fn,q.replace({hash:`#${t}`,query:h.query}),ye(()=>{const o=t==="portfolio"?Z.value:t==="about"?s.value:t==="review"?i.value:null;if(!o)return;const u=window.innerWidth>=1024,I=t==="portfolio"?u?-200:-243:u?-118:-80,z=o.getBoundingClientRect().top+window.scrollY+I;window.scrollTo({top:z,behavior:"smooth"})}))},{setSeo:te}=lt(),{setVendorJsonLd:y}=dt(),{setBreadcrumbJsonLd:U}=ut();return Xe(()=>{const t=c.value;if(!t)return;const o=b.value?.seo||{},u=o.title||(t.name||t.surname?`${t.name} ${t.surname}`.trim():t.name),I=o.description||(t.description||t.accent_text||"").toString().slice(0,180),z=o.image||xe(t?.avatar)||xe(t.preview_album?.media?.[0])||xe(t.gallery_photo1);
1te({title:u,description:I,image:z,robotsNoIndex:!!b.value?.isPreview}),y(t,I,B.value),U([{name:t.profession?.title||"",path:`/${t.profession?.slug||""}`},{name:[t.name,t.surname].filter(Boolean).join(" ").trim()}])}),(t,o)=>{const u=we,I=Nt,z=Xt,ue=un,ge=gn,pe=Je,fe=De;return a(),X(fe,{name:"main","header-class":"bg-background-gray","header-not-fixed":""},{default:Y(()=>[n(c)?(a(),l(N,{key:0},[r("div",pn,[v(u,{media:n(c)?.avatar,"aspect-ratio":"138/185",size:"small",sizes:"(max-width: 1024px) 83px, 138px",loading:"eager",fetchpriority:"high",preload:"",alt:("vendorImageAlt"in t?t.vendorImageAlt:n(me))(n(c)),class:"mt-8 w-[83px] h-[118px] lg:w-[138px] lg:h-[185px] border border-lightgray"},null,8,["media","alt"])]),v(I,{vendor:n(c),hasReviews:n(M),activeTab:n(G),animateIndicator:n(C),myRating:n(g),vendorRating:n(B),onActiveTab:ee,"onRating:update":o[0]||(o[0]=k=>B.value=k),"onMyRating:update":o[1]||(o[1]=k=>g.value=k)},null,8,["vendor","hasReviews","activeTab","animateIndicator","myRating","vendorRating"]),r("div",{ref_key:"galleryRef",ref:Z,class:"scroll-mt-[243px] lg:scroll-mt-[200px]"},[v(z,{vendor:n(c),class:"mt-8 lg:mt-20"},null,8,["vendor"])],512),r("div",{ref_key:"infoRef",ref:s,class:"scroll-mt-[80px] lg:scroll-mt-[118px]"},[v(ue,{vendor:n(c),class:"mt-[60px] lg:mt-20"},null,8,["vendor"])],512),n(M)?(a(),l("div",{key:0,ref_key:"reviewRef",ref:i,class:"scroll-mt-[80px] lg:scroll-mt-[118px] mt-[60px] lg:mt-20"},[v(ge,{vendor:n(c)},null,8,["vendor"])],512)):w("",!0),v(pe,{vendor:n(c),class:"mt-[60px] lg:mt-40"},null,8,["vendor"])],64)):w("",!0)]),_:1})}}});
1export{Yn 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.