1import{d as z,a as D,v as F,x as T,g as q,A as E,e,o as a,j as i,i as t,t as o,b as _,w as u,n as y,D as I,V as r,ab as M,F as $,r as B,c as g,q as P,N as U,ac as R,ad as G,_ as H,ae as J,u as K}from"./entry.C_E2KLfC.js";import{u as O}from"./use-catalog.CH1OglQ3.js";import{u as Q}from"./companies.j5iVNZbJ.js";import{u as W}from"./dictionaries.B87t9-eb.js";import"./autocomplete.DcyV24U5.js";const X={key:0},Y={class:"flex flex-col gap-2 h-full justify-center items-center"},Z={class:"mb-2"},ee={key:1,class:"py-10 flex justify-center"},se={key:2,class:"space-y-3"},te=["src"],ae={class:"absolute top-3 right-3"},oe={class:"bg-white rounded-b-xl w-full p-4 sm:p-8 relative z-10"},ne={class:"flex sm:justify-between justify-center"},ie={class:"-mt-44 relative"},ce={class:"font-bold text-2xl my-3"},re={key:0,class:"flex gap-2 text-sm"},le={class:"bg-white rounded-xl p-4 sm:p-8 flex flex-col gap-4 text-sm"},de={class:"text-xl font-bold"},me={key:0,class:"mb-4 whitespace-pre-wrap"},pe={key:1,class:"flex gap-2"},_e={class:"w-2/6"},ue={class:"w-4/6"},ye=t("hr",{class:"my-2"},null,-1),fe={key:2,class:"flex gap-2"},he={class:"w-2/6"},ve={class:"w-4/6"},ge={key:3,class:"flex gap-2"},be={class:"w-2/6 text-sm"},xe={class:"w-4/6 flex flex-wrap gap-2"},we={key:4,class:"flex gap-2"},ke={class:"w-2/6 text-sm"},Ce={class:"w-4/6 flex flex-wrap gap-2"},$e=z({__name:"CompaniesItemPageContent",props:{id:{type:Number,required:!0}},setup(b){const l=W(),f=O(),s=Q(),m=D(),h=F(null),N=T(()=>{var n;return(n=f.companySizes.find(p=>{var c;return p.value===((c=s.company)==null?void 0:c.size)}))==null?void 0:n.label}),S=n=>{var p,c;return(c=(p=l.company.tag)==null?void 0:p.find(v=>v.value===n))==null?void 0:c.label},j=b,x=async()=>{m.auth&&(await s.fetchCompany(j.id),await l.fetchDictionaries())};return q(async()=>{await x()}),E(()=>m.auth,async()=>{await x()}),(n,p)=>{var k,C;const c=P,v=U,A=R,L=G,V=H,w=J;return e(m).auth?e(s).company?(a(),i("div",se,[t("div",null,[t("div",{ref:"profile",class:I(["rounded-t-xl overflow-hidden bg-primary-300 w-full relative",!e(s).company.cover&&"animated-background"]),style:{height:"200px"}},[(k=e(s).company.cover)!=null&&k.url?(a(),i("img",{key:0,loading:"lazy",src:e(s).company.cover.url,class:"w-full h-full object-cover"},null,8,te)):r("",!0),t("div",ae,[_(A,{ref_key:"favoriteButton",ref:h,"entity-title":e(s).company.name||"","entity-id":e(s).company.id,"entity-type":e(M).Company,"button-class":"text-primary-900 bg-primary-100 hover:text-primary-900 hover:bg-primary-200 active:bg-primary-200 h-8 px-4"},null,8,["entity-title","entity-id","entity-type"])])],2),t("div",oe,[t("div",ne,[t("div",ie,[_(L,{src:(C=e(s).company.logo)==null?void 0:C.url,abbr:e(s).company.name.slice(0,2),size:"5xl","wrapper-class":"shadow-md"},null,8,["src","abbr"])])]),t("div",ce,o(e(s).company.name),1),e(s).company.country?(a(),i("div",re,[t("div",null,o(e(s).company.country.name),1)])):r("",!0)])]),t("div",le,[t("div",de,o(n.$t("companies.about")),1),e(s).company.description?(a(),i("div",me,o(e(s).company.description),1)):r("",!0),e(s).company.site?(a(),i("div",pe,[t("div",_e,o(n.$t("companies.website")),1),t("div",ue,[_(V,{href:e(s).company.site,target:"_blank",class:"!font-normal"},{default:u(()=>[y(o(e(s).company.site),1)]),_:1},8,["href"])])])):r("",!0),ye,e(s).company.size?(a(),i("div",fe,[t("div",he,o(n.$t("companies.employees_size")),1),t("div",ve,o(e(N)),1)])):r("",!0),e(s).company.business.length?(a(),i("div",ge,[t("div",be,o(n.$t("companies.primary_business")),1),t("div",xe,[(a(!0),i($,null,B(e(s).company.business,d=>(a(),g(w,{key:d.id,theme:"info"},{default:u(()=>[y(o("name"in d?d.name:""),1)]),_:2},1024))),128))])])):r("",!0),e(s).company.tags.length?(a(),i("div",we,[t("div",ke,o(n.$t("companies.tags")),1),t("div",Ce,[(a(!0),i($,null,B(e(s).company.tags,d=>(a(),g(w,{key:d,theme:"info"},{default:u(()=>[y(o(S(d)),1)]),_:2},1024))),128))])])):r("",!0)])])):(a(),i("div",ee,[_(v)])):(a(),i("div",X,[t("div",Y,[t("div",Z,o(n.$t("profile.login_to_continue")),1),_(c,{theme:"primary",look:"border",onClick:e(m).openLoginModal},{default:u(()=>[y(o(n.$t("header.login")),1)]),_:1},8,["onClick"])])]))}}}),Ae=z({__name:"[id]",setup(b){const l=K(),f=Array.isArray(l.params.id)?Number(l.params.id[0]):Number(l.params.id);return(s,m)=>{const h=$e;return a(),g(h,{id:e(f)},null,8,["id"])}}});
1export{Ae as default}; 2//# sourceMappingURL=_id_.BBXr_ASv.js.map
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.