PageSourceSearch

https://www.dm-jobs.sk/_nuxt/DFBbysal.js

js dm-jobs.sk collected 2026-10-07 20:48:00 UTC 3,043 bytes, 1 lines download raw bytes

1import{av as h,aw as y}from"./CczaoG5l.js";const a=1,l=10,t="",i="",o=30,s="",n=h("search",{state:()=>({query:i,region:s,searchRadius:o,filter:{category:[],city:[],department:[],jobType:[],workHours:[],workPlaceType:[],jobSectors:[],jobSector:[],jobLevels:[]},pagination:{page:a,perPage:l},sort:{orderBy:t},showModal:!1}),getters:{getQuery(){return this.query},getFilter(){return this.filter},getFilterCount(){return this.filter?Object.keys(this.filter).map(r=>{const e=this.filter?.[r];return Array.isArray(e)?e.length:e?1:0}).reduce((r,e)=>r+e,0):0},getPaginationPage(){return this.pagination.page}},actions:{applyQuery(r){this.resetAll();const e=y.parse(r,{ignoreQueryPrefix:!0});e.page!==void 0&&(this.pagination={page:Number(e.page),perPage:this.pagination.perPage}),e.perPage!==void 0&&(this.pagination.perPage=Number(e.perPage)),e.orderBy!==void 0&&(this.sort.orderBy=e.orderBy),e.q!==void 0&&(this.query=e.q),e.region!==void 0&&(this.region=e.region),e.searchRadius!==void 0&&(this.searchRadius=Number(e.searchRadius)),e.category!==void 0&&(this.filter.category=Array.isArray(e.category)?e.category:[e.category]),e.city!==void 0&&(this.filter.city=Array.isArray(e.city)?e.city:[e.city]),e.department!==void 0&&(this.filter.department=Array.isArray(e.department)?e.department:[e.department]),e.jobType!==void 0&&(this.filter.jobType=Array.isArray(e.jobType)?e.jobType:[e.jobType]),e.workHours!==void 0&&(this.filter.workHours=Array.isArray(e.workHours)?e.workHours:[e.workHours]),e.workPlaceType!==void 0&&(this.filter.workPlaceType=Array.isArray(e.workPlaceType)?e.workPlaceType:[e.workPlaceType]),e.jobSectors!==void 0&&(this.filter.jobSectors=Array.isArray(e.jobSectors)?e.jobSectors:[e.jobSectors]),e.jobSector!==void 0&&(this.filter.jobSector=Array.isArray(e.jobSector)?e.jobSector:[e.jobSector]),e.jobLevels!==void 0&&(this.filter.jobLevels=Array.isArray(e.jobLevels)?e.jobLevels:[e.jobLevels])},toQueryObject(){return{page:this.pagination.page===a?void 0:this.pagination.page,orderBy:this.sort.orderBy===t?void 0:this.sort.orderBy,q:this.query===i?void 0:this.query,region:this.region===s?void 0:this.region,searchRadius:this.searchRadius===o?void 0:this.searchRadius,...this.filter}},setFilter(r){this.filter=r},resetFilter(){this.filter?.jobType&&(this.filter.jobType=[]),this.filter?.category&&(this.filter.category=[]),this.filter?.department&&(this.filter.department=[]),this.filter?.workPlaceType&&(this.filter.workPlaceType=[]),this.filter?.workHours&&(this.filter.workHours=[]),this.filter?.city&&(this.filter.city=[]),this.filter?.jobLevels&&(this.filter.jobLevels=[]),this.filter?.jobSector&&(this.filter.jobSector=[]),this.filter?.jobSectors&&(this.filter.jobSectors=[])},addFilter(r){this.filter={...this.filter,...r}},setPaginationPage(r){this.pagination.page=r},setSortParam(r){this.sort.orderBy=r},setQuery(r){this.query=r},resetPaginationPage(){this.pagination.page=1},resetAll(){this.query=i,this.region=s,this.searchRadius=o,this.resetFilter(),this.resetPaginationPage(),this.sort.orderBy=t}}});export{n as u};

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.