PageSourceSearch

https://primaria-ticus.ro/_nuxt/DcVFOC0M.js

js primaria-ticus.ro collected 2026-09-25 09:24:35 UTC 1,690 bytes, 1 lines download raw bytes

1import{a,e as o,m as u}from"./CqawAVUb.js";import{bf as n,b2 as m,I as c}from"./yzds40HC.js";import"./BgqE2USM.js";import"./C8Dppsyt.js";import"./CbO2Rjsj.js";import"./DhlRdtTC.js";import"./Dz0mkqCC.js";import"./DkpuU7u1.js";import"./DtS_aP2E.js";const p={name:"SelectFilter",props:{scope:{required:!0,type:String},scopeKey:{required:!0,type:String},label:{required:!0,type:String},items:{required:!0,type:Array},itemText:{type:String,default:"text"},itemValue:{type:String,default:"value"}},computed:{selectModel:{get(){const e=this.$store.state.query.queryParams[this.scope]?.[`filter[${this.scopeKey}]`];return e==null||e===""?this.firstItem:this.formattedItems.find(i=>String(i.value)===String(e))||this.firstItem},set(e){const t=e?.value!==void 0?e.value:e;this.setFilter({key:`filter[${this.scopeKey}]`,scope:this.scope,val:t}),this.getData(this.scope)}},formattedItems(){return!this.items||!Array.isArray(this.items)?[]:this.items.map(e=>e&&typeof e=="object"&&"title"in e&&"value"in e?e:e&&typeof e=="object"?{title:e[this.itemText]||"",value:e[this.itemValue]!==void 0?e[this.itemValue]:""}:{title:String(e),value:e})},firstItem(){return{title:"Toți/Toate",value:""}}},methods:{...u("resources",["getData"]),...o("query",["setFilter"])}};function d(e,t,i,f,h,r){const s=n("v-select");return m(),c(s,{modelValue:r.selectModel,"onUpdate:modelValue":t[0]||(t[0]=l=>r.selectModel=l),items:[r.firstItem,...r.formattedItems],label:i.label,"hide-details":"",density:"compact",variant:"outlined",class:"my-1",style:{"max-width":"400px"},"item-value":"value","item-title":"title","return-object":""},null,8,["modelValue","items","label"])}const q=a(p,[["render",d]]);export{q 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.