1import{aN as a,aK as s,aM as t,aO as n}from"./X2xg9DNx.js";const u=["facebook","twitter","linkedin","instagram","youtube","vimeo","pinterest"];class l extends a{get categories(){return this.related("categories",s)}get category(){return this.singleRelated("categories",s)}get cover(){return this.files.find(e=>e.pivot?.name==="cover")}get images(){return this.files.filter(e=>e.pivot?.name==="images")}get brochure(){return this.files.find(e=>e.pivot?.name==="brochure")}get downloads(){return this.files.filter(e=>e.pivot?.name==="downloads")}get videoUrl(){return t(this.extra.video_url)??void 0}get geomatchingUrl(){return t(this.extra.geomatching_url)??void 0}get isFullProfile(){return this.extra.full_profile===!0}get customButton(){const e=t(this.extra.custom_button_url),r=t(this.extra.custom_button_text);return e?{url:e,text:r??e}:void 0}get social(){return u.reduce((e,r)=>{const i=t(this.extra[`social_${r}_url`]);return i&&(e[r]=i),e},{})}}class g extends n{get isPremium(){return this._data.current_subscription?.is_paid??!1}get profile(){const e=this._data.profile;return e?new l(e):void 0}get cover(){return this.profile?.cover??{url:"/img/company-cover.jpg",name:this.name}}get businessType(){return t(this._data.business_type?.name)??void 0}}export{g as S};
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.