1import{$ as k,N as T,O as _,c as p}from"./chunk-4MFP2GAW.js";import"./chunk-WEBFK7DW.js";import{Ba as N,Ca as D}from"./chunk-D2VALQFE.js";import{n as F}from"./chunk-NWVHRA4Y.js";import"./chunk-7CTFWQFV.js";import{Ab as y,Bb as v,Bc as l,Cb as C,D as h,ca as o,db as g,ib as S,ic as O,l as u,le as w,o as f,pb as s,sc as b}from"./chunk-TET5VYI6.js";import{a as c,b as m,g as d}from"./chunk-SLISG6NT.js";function I(r,a){if(r&1&&C(0,"app-company-card",2),r&2){let t,e=a.$implicit,i=a.isHighlighted,n=a.layout;s("data",e)("isHighlighted",i)("layout",(t=n)!==null&&t!==void 0?t:"portrait")}}var U=(()=>{class r{constructor(){this.domainService=o(F),this.companyService=o(N),this.filterOptionsService=o(k),this.searchState=o(p),this.fields=l(()=>[this.filterOptionsService.searchTermField(),this.filterOptionsService.buildLocationField({label:"Location company"}),this.filterOptionsService.areaOfInterestsField(),this.filterOptionsService.employeeRangeField(),this.filterOptionsService.targetGroupsField()]),this.searchConfig=l(()=>({searchOptions:this.buildSearchOptions(),context:{queryParamOptions:["SearchTerm","Location","AreaOfInterests","NumberOfEmployeesLower","NumberOfEmployeesUpper","TargetGroups"]},filterDisplayNames:{SearchTerm:"Search"},mapConfig:{enabled:!0,getCoordinates:t=>{let e=t.visitAddress;return e?.latitude!=null&&e?.longitude!=null?{lat:e.latitude,lng:e.longitude}:null}}})),this.dataSource={fetch:t=>d(this,null,function*(){let e=_(t,this.domainService.getCurrentRegion(),[{from:"TargetGroups",to:"CompanyTargetGroups",condition:n=>n?.length>0}]),i=yield f(this.companyService.getCompanies(e).pipe(h(()=>u({data:[],totalItems:0}))));return{data:i?.data||[],totalItems:i?.totalItems||0,pageNumber:t.pageNumber,pageSize:t.pageSize}})},this.trackByCompanyId=(t,e)=>e.id||""}buildSearchOptions(){let t=this.searchState.getDefaultSearchOptions();return m(c({},t),{orderByOptions:[{value:"date",label:"Date"},{value:"name",label:"Name"}]})}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275cmp=g({type:r,selectors:[["app-view-public-our-network"]],features:[O([p])],decls:3,vars:4,consts:[["itemTemplate",""],[3,"config","dataSource","fields","trackByFn"],[3,"data","isHighlighted","layout"]],template:function(e,i){e&1&&(y(0,"app-search-container",1),S(1,I,1,3,"ng-template",null,0,b),v()),e&2&&s("config",i.searchConfig())("dataSource",i.dataSource)("fields",i.fields())("trackByFn",i.trackByCompanyId)},dependencies:[w,T,D],encapsulation:2,changeDetection:0})}}return r})();export{U as ViewPublicOurNetworkComponent}; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dd2a54c8-ab67-52ad-9868-9dcea10c7678")}catch(e){}}(); 3//# debugId=dd2a54c8-ab67-52ad-9868-9dcea10c7678
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.