PageSourceSearch

https://www.uianet.org/_nuxt/C1-kckFt.js

js uianet.org collected 2026-09-24 20:01:06 UTC 2,863 bytes, 2 lines download raw bytes

1import{c as S}from"./CBQMRp4-.js";import{aL as k,aP as E,aO as D,b7 as R}from"#entry";import{r as f,y as b,as as T,w as z,j as A,d as N,e as V,z as c,q as m,ac as d,X as B}from"./7e6OSnGa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"5a5f4f282d5b76b153474ed3a90c2a4effbf411e"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new o.Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="d4bac9bb-1bfe-46e2-a0ed-bde12754fa6f",o._sentryDebugIdIdentifier="sentry-dbid-d4bac9bb-1bfe-46e2-a0ed-bde12754fa6f")})()}catch{}const F={class:"relative"},j={__name:"Commission",setup(o){const{t:i,n:w,locale:g}=k(),a=E(),p=D(),y=R(),r=f([]),n=f([]),h=f(""),v=b(()=>i("components.filter.commissions.selected",n.value.length,{named:{count:w(n.value.length,"decimal",{minimumFractionDigits:0})}})),_=b(()=>{const e=h.value.toLowerCase();return e?r.value.filter(s=>s.displayName.toLowerCase().includes(e)):r.value});T(async()=>{await I(),await C()}),z(()=>a.query.commissions,async e=>{e||(n.value=[])});async function C(){if(!a.query.commissions)return;const e=a.query.commissions,s=Array.isArray(e)?e:[e],t=r.value.filter(l=>s.includes(l.documentId));t.length&&(n.value=[...t])}async function I(){await y.fetch({locale:g.value,filters:[{field:"archived",operator:"$ne",value:!0}],fields:["title","documentId","slug"],sort:"title:asc",pageSize:1e3}),r.value=y.items.map(e=>({...e,displayName:e.title.toLowerCase()}))}function q(e){h.value=e.value}function x(){const e=n.value.filter(s=>s&&s.documentId).map(s=>s.documentId);if(e.length)p.push({query:{...a.query,commissions:e,page:void 0},hash:a.hash});else{const{commissions:s,page:t,...l}=a.query;p.push({query:l,hash:a.hash})}}return(e,s)=>{const t=A("font-awesome"),l=S;return V(),N("div",F,[c(t,{class:"fa-fw absolute top-1/2 -mt-2 leading-none start-2.5 z-1 text-slate-500",icon:["fas","users"]}),c(l,{modelValue:d(n),"onUpdate:modelValue":s[0]||(s[0]=u=>B(n)?n.value=u:null),fluid:"",options:d(_),"option-label":"title",display:"chip",filter:"","pt:root":"ps-8","pt:overlay":"max-w-xs","pt:option-label":"text-sm","selected-items-label":d(v),"show-toggle-all":!1,placeholder:d(i)("components.filter.commissions.placeholder"),"max-selected-labels":3,onChange:x,onFilter:q},{dropdownicon:m(()=>[c(t,{class:"fa-fw",icon:["fas","chevron-down"]})]),filtericon:m(()=>[c(t,{class:"fa-fw",icon:["fas","magnifying-glass"]})]),chipicon:m(({removeCallback:u,keydownCallback:L})=>[c(t,{class:"fa-fw",icon:["fas","xmark"],onClick:u,onKeydown:L},null,8,["onClick","onKeydown"])]),_:1},8,["modelValue","options","selected-items-label","placeholder"])])}}};export{j as _};
2//# sourceMappingURL=C1-kckFt.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.