PageSourceSearch

https://www.unbiased.co.uk/_nuxt/eWzGQaau.js

js unbiased.co.uk collected 2026-10-02 06:32:34 UTC 3,410 bytes, 1 lines download raw bytes

1import{Ct as G,G as B,Ht as x,It as E,Kt as A,Q as b,S as v,_t as P,it as k,nt as q,ot as y}from"./E0HN8DqU.js";import{_ as M,et as U,q as $}from"./Cdm3NoNL2.js";import{r as w,t as C}from"./D3qf0MDt2.js";import{t as F}from"./bW0xkg8V2.js";import{t as W}from"./Dtv8wulQ.js";var T=w({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),z=w({value:null,disabled:Boolean,selectedClass:String},"group-item");function D(s,d){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const t=C("useGroupItem");if(!t)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const n=P();y(Symbol.for(`${d.description}:id`),n);const i=B(d,null);if(!i){if(!o)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${d.description}`)}const f=x(()=>s.value),p=v(()=>!!(i.disabled.value||s.disabled));function m(){i?.register({id:n,value:f,disabled:p},t)}function h(){i?.unregister(n)}m(),b(()=>h());const c=v(()=>i.isSelected(n)),I=v(()=>i.items.value[0].id===n),e=v(()=>i.items.value[i.items.value.length-1].id===n),l=v(()=>c.value&&[i.selectedClass.value,s.selectedClass]);return G(c,r=>{t.emit("group:selected",{value:r})},{flush:"sync"}),{id:n,isSelected:c,isFirst:I,isLast:e,toggle:()=>i.select(n,!c.value),select:r=>i.select(n,r),selectedClass:l,value:f,disabled:p,group:i,register:m,unregister:h}}function J(s,d){let o=!1;const t=E([]),n=W(s,"modelValue",[],e=>e===void 0?[]:S(t,e===null?[null]:$(e)),e=>{const l=H(t,e);return s.multiple?l:l[0]}),i=C("useGroup");function f(e,l){const r=e,u=Symbol.for(`${d.description}:id`),a=M(u,i?.vnode).indexOf(l);A(r.value)===void 0&&(r.value=a,r.useIndexAsValue=!0),a>-1?t.splice(a,0,r):t.push(r)}function p(e){if(o)return;m();const l=t.findIndex(r=>
1r.id===e);t.splice(l,1)}function m(){const e=t.find(l=>!l.disabled);e&&s.mandatory==="force"&&!n.value.length&&(n.value=[e.id])}q(()=>{m()}),b(()=>{o=!0}),k(()=>{for(let e=0;e<t.length;e++)t[e].useIndexAsValue&&(t[e].value=e)});function h(e,l){const r=t.find(u=>u.id===e);if(!(l&&r?.disabled))if(s.multiple){const u=n.value.slice(),a=u.findIndex(V=>V===e),g=~a;if(l=l??!g,g&&s.mandatory&&u.length<=1||!g&&s.max!=null&&u.length+1>s.max)return;a<0&&l?u.push(e):a>=0&&!l&&u.splice(a,1),n.value=u}else{const u=n.value.includes(e);if(s.mandatory&&u||!u&&!l)return;n.value=l??!u?[e]:[]}}function c(e){if(s.multiple&&U('This method is not supported when using "multiple" prop'),n.value.length){const l=n.value[0],r=t.findIndex(g=>g.id===l);let u=(r+e)%t.length,a=t[u];for(;a.disabled&&u!==r;)u=(u+e)%t.length,a=t[u];if(a.disabled)return;n.value=[t[u].id]}else{const l=t.find(r=>!r.disabled);l&&(n.value=[l.id])}}const I={register:f,unregister:p,selected:n,select:h,disabled:x(()=>s.disabled),prev:()=>c(t.length-1),next:()=>c(1),isSelected:e=>n.value.includes(e),selectedClass:x(()=>s.selectedClass),items:x(()=>t),getItemIndex:e=>_(t,e)};return y(d,I),I}function _(s,d){const o=S(s,[d]);return o.length?s.findIndex(t=>t.id===o[0]):-1}function S(s,d){const o=[];return d.forEach(t=>{const n=s.find(f=>F(t,f.value)),i=s[t];n?.value!==void 0?o.push(n.id):i?.useIndexAsValue&&o.push(i.id)}),o}function H(s,d){const o=[];return d.forEach(t=>{const n=s.findIndex(i=>i.id===t);if(~n){const i=s[n];o.push(i.value!==void 0?i.value:n)}}),o}export{D as i,T as n,J as r,z as t};

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.