PageSourceSearch

https://antheros.legal/_nuxt/pr4UhzAo.js

js antheros.legal collected 2026-10-07 19:15:32 UTC 14,990 bytes, 1 lines download raw bytes

1import{l as S,c as g,d as B,m as K,Q as de,C as ae,H as ve,a0 as G,F as oe,G as pe,a3 as L,n as A,a2 as fe,b as W,e as N,i as $,h as I,o as C,f as U,g as X,z as Y,v as M,j as H,y as q,T as ce,r as be}from"./DHHqtPgW.js";import{o as h,i as z,A as E,l as me,a as _,N as J,u as T,t as ge,E as xe,T as he,b as x}from"./Cyc8YFV3.js";import{a as ye,b as Oe,h as Se,f as Le,u as we,O as De}from"./DX22grA9.js";import{s as Re}from"./C4ultKcu.js";function ke(e,o,l){let s=S(l==null?void 0:l.value),u=g(()=>e.value!==void 0);return[g(()=>u.value?e.value:s.value),function(a){return u.value||(s.value=a),o==null?void 0:o(a)}]}function Z(e){return[e.screenX,e.screenY]}function Te(){let e=S([-1,-1]);return{wasMoved(o){let l=Z(o);return e.value[0]===l[0]&&e.value[1]===l[1]?!1:(e.value=l,!0)},update(o){e.value=Z(o)}}}function Pe(e){throw new Error("Unexpected object: "+e)}var y=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(y||{});function Ve(e,o){let l=o.resolveItems();if(l.length<=0)return null;let s=o.resolveActiveIndex(),u=s??-1;switch(e.focus){case 0:{for(let a=0;a<l.length;++a)if(!o.resolveDisabled(l[a],a,l))return a;return s}case 1:{u===-1&&(u=l.length);for(let a=u-1;a>=0;--a)if(!o.resolveDisabled(l[a],a,l))return a;return s}case 2:{for(let a=u+1;a<l.length;++a)if(!o.resolveDisabled(l[a],a,l))return a;return s}case 3:{for(let a=l.length-1;a>=0;--a)if(!o.resolveDisabled(l[a],a,l))return a;return s}case 4:{for(let a=0;a<l.length;++a)if(o.resolveId(l[a],a,l)===e.id)return a;return s}case 5:return null;default:Pe(e)}}function ne(e={},o=null,l=[]){for(let[s,u]of Object.entries(e))re(l,ue(o,s),u);return l}function ue(e,o){return e?e+"["+o+"]":o}function re(e,o,l){if(Array.isArray(l))for(let[s,u]of l.entries())re(e,ue(o,s.toString()),u);else l instanceof Date?e.push([o,l.toISOString()]):typeof l=="boolean"?e.push([o,l?"1":"0"]):typeof l=="string"?e.push([o,l]):typeof l=="number"?e.push([o,`${l}`]):l==null?e.push([o,""]):ne(l,o,e)}let ee=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function te(e){var o,l;let s=(o=e.innerText)!=null?o:"",u=e.cloneNode(!0);if(!(u instanceof HTMLElement))return s;let a=!1;for(let v of u.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))v.remove(),a=!0;let t=a?(l=u.innerText)!=null?l:"":s;return ee.test(t)&&(t=t.replace(ee,"")),t}function Fe(e){let o=e.getAttribute("aria-label");if(typeof o=="string")return o.trim();let l=e.getAttribute("aria-labelledby");if(l){let s=l.split(" ").map(u=>{let a=document.getElementById(u);if(a){let t=a.getAttribute("aria-label");return typeof t=="string"?t.trim():te(a).trim()}return null}).filter(Boolean);if(s.length>0)return s.join(", ")}return te(e).trim()}function $e(e){let o=S(""),l=S("");return()=>{let s=h(e);if(!s)return"";let u=s.innerText;if(o.value===u)return l.value;let a=Fe(s).trim().toLowerCase();return o.value=u,l.value=a,a}}function Ie(e,o){return e===o}var Ae=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ae||{}),Be=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Be||{}),Ce=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ce||{});function Ee(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let ie=Symbol("ListboxContext");function j(e){let o=pe(ie,null);if(o===null){let l=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,j),l}return o}let je=B({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Ie},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:o,attrs:l,emit:s}){let u=S(1),a=S(null),t=S(null),v=S(null),f=S([]),b=S(""),m=S(null),r=S(1);function d(n=i=>i){let i=m.value!==null?f.value[m.value]:null,p=De(n(f.value.slice()),O=>h(O.dataRef.domRef)),c=i?p.indexOf(i):null;return c===-1&&(c=null),{options:p,activeOptionIndex:c}}let D=g(()=>e.multiple?1:0),[R,w]=ke(g(()=>e.modelValue),n=>s("update:modelValue",n),g(()=>e.defaultValue)),P=g(()=>R.value===void 0?T(D.value,{1:[],0:void 0}):R.value),k={listboxState:u,value:P,mode:D,compare(n,i){if(typeof e.by=="string"){let p=e.by;return(n==null?void 0:n[p])===(i==null?void 0:i[p])}return e.by(n,i)},orientation:g(()=>e.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:t,optionsRef:v,disabled:g(()=>e.disabled),options:f,searchQuery:b,activeOptionIndex:m,activationTrigger:r,closeListbox(){e.disabled||u.value!==1&&(u.value=1,m.value=null)},openListbox(){e.disabled||u.value!==0&&(u.value=0)},goToOption(n,i,p){if(e.disabled||u.value===1)return;let c=d(),O=Ve(n===y.Specific?{focus:y.Specific,id:i}:{focus:n},{resolveItems:()=>c.options,resolveActiveIndex:()=>c.activeOptionIndex,resolveId:F=>F.id,resolveDisabled:F=>F.dataRef.disabled});b.value="",m.value=O,r.value=p??1,f.value=c.options},search(n){if(e.disabled||u.value===1)return;let i=b.value!==""?0:1;b.value+=n.toLowerCase();let p=(m.value!==null?f.value.slice(m.value+i).concat(f.value.slice(0,m.value+i)):f.value).find(O=>O.dataRef.textValue.startsWith(b.value)&&!O.dataRef.disabled),c=p?f.value.indexOf(p):-1;c===-1||c===m.value||(m.value=c,r.value=1)},clearSearch(){e.disabled||u.value!==1&&b.value!==""&&(b.value="")},registerOption(n,i){let p=d(c=>[...c,{id:n,dataRef:i}]);f.value=p.options,m.value=p.activeOptionIndex},unregisterOption(n){let i=d(p=>{let c=p.findIndex(O=>O.id===n);return c!==-1&&p.splice(c,1),p});f.value=i.options,m.value=i.activeOptionIndex,r.value=1},theirOnChange(n){e.disabled||w(n)},select(n){e.disabled||w(T(D.value,{0:()=>n,1:()=>{let i=L(k.value.value).slice(),p=L(n),c=i.findIndex(O=>k.compare(p,L(O)));return c===-1?i.push(p):i.splice(c,1),i}}))}};ye([t,v],(n,i)=>{var p;
1k.closeListbox(),Oe(i,Se.Loose)||(n.preventDefault(),(p=h(t))==null||p.focus())},g(()=>u.value===0)),fe(ie,k),ge(g(()=>T(u.value,{0:_.Open,1:_.Closed})));let V=g(()=>{var n;return(n=h(t))==null?void 0:n.closest("form")});return K(()=>{ae([V],()=>{if(!V.value||e.defaultValue===void 0)return;function n(){k.theirOnChange(e.defaultValue)}return V.value.addEventListener("reset",n),()=>{var i;(i=V.value)==null||i.removeEventListener("reset",n)}},{immediate:!0})}),()=>{let{name:n,modelValue:i,disabled:p,form:c,...O}=e,F={open:u.value===0,disabled:p,value:P.value};return G(oe,[...n!=null&&P.value!=null?ne({[n]:P.value}).map(([Q,se])=>G(Le,xe({features:we.Hidden,key:Q,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:c,disabled:p,name:Q,value:se}))):[],E({ourProps:{},theirProps:{...l,...he(O,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:F,slots:o,attrs:l,name:"Listbox"})])}}}),Ne=B({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:o,slots:l}){var s;let u=(s=e.id)!=null?s:`headlessui-listbox-label-${z()}`,a=j("ListboxLabel");function t(){var v;(v=h(a.buttonRef))==null||v.focus({preventScroll:!0})}return()=>{let v={open:a.listboxState.value===0,disabled:a.disabled.value},{...f}=e,b={id:u,ref:a.labelRef,onClick:t};return E({ourProps:b,theirProps:f,slot:v,attrs:o,slots:l,name:"ListboxLabel"})}}}),Me=B({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:o,slots:l,expose:s}){var u;let a=(u=e.id)!=null?u:`headlessui-listbox-button-${z()}`,t=j("ListboxButton");s({el:t.buttonRef,$el:t.buttonRef});function v(r){switch(r.key){case x.Space:case x.Enter:case x.ArrowDown:r.preventDefault(),t.openListbox(),A(()=>{var d;(d=h(t.optionsRef))==null||d.focus({preventScroll:!0}),t.value.value||t.goToOption(y.First)});break;case x.ArrowUp:r.preventDefault(),t.openListbox(),A(()=>{var d;(d=h(t.optionsRef))==null||d.focus({preventScroll:!0}),t.value.value||t.goToOption(y.Last)});break}}function f(r){switch(r.key){case x.Space:r.preventDefault();break}}function b(r){t.disabled.value||(t.listboxState.value===0?(t.closeListbox(),A(()=>{var d;return(d=h(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})}
1)):(r.preventDefault(),t.openListbox(),Ee(()=>{var d;return(d=h(t.optionsRef))==null?void 0:d.focus({preventScroll:!0})})))}let m=Re(g(()=>({as:e.as,type:o.type})),t.buttonRef);return()=>{var r,d;let D={open:t.listboxState.value===0,disabled:t.disabled.value,value:t.value.value},{...R}=e,w={ref:t.buttonRef,id:a,type:m.value,"aria-haspopup":"listbox","aria-controls":(r=h(t.optionsRef))==null?void 0:r.id,"aria-expanded":t.listboxState.value===0,"aria-labelledby":t.labelRef.value?[(d=h(t.labelRef))==null?void 0:d.id,a].join(" "):void 0,disabled:t.disabled.value===!0?!0:void 0,onKeydown:v,onKeyup:f,onClick:b};return E({ourProps:w,theirProps:R,slot:D,attrs:o,slots:l,name:"ListboxButton"})}}}),_e=B({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:o,slots:l,expose:s}){var u;let a=(u=e.id)!=null?u:`headlessui-listbox-options-${z()}`,t=j("ListboxOptions"),v=S(null);s({el:t.optionsRef,$el:t.optionsRef});function f(r){switch(v.value&&clearTimeout(v.value),r.key){case x.Space:if(t.searchQuery.value!=="")return r.preventDefault(),r.stopPropagation(),t.search(r.key);case x.Enter:if(r.preventDefault(),r.stopPropagation(),t.activeOptionIndex.value!==null){let d=t.options.value[t.activeOptionIndex.value];t.select(d.dataRef.value)}t.mode.value===0&&(t.closeListbox(),A(()=>{var d;return(d=h(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})}
1));break;case T(t.orientation.value,{vertical:x.ArrowDown,horizontal:x.ArrowRight}):return r.preventDefault(),r.stopPropagation(),t.goToOption(y.Next);case T(t.orientation.value,{vertical:x.ArrowUp,horizontal:x.ArrowLeft}):return r.preventDefault(),r.stopPropagation(),t.goToOption(y.Previous);case x.Home:case x.PageUp:return r.preventDefault(),r.stopPropagation(),t.goToOption(y.First);case x.End:case x.PageDown:return r.preventDefault(),r.stopPropagation(),t.goToOption(y.Last);case x.Escape:r.preventDefault(),r.stopPropagation(),t.closeListbox(),A(()=>{var d;return(d=h(t.buttonRef))==null?void 0:d.focus({preventScroll:!0})});break;case x.Tab:r.preventDefault(),r.stopPropagation();break;default:r.key.length===1&&(t.search(r.key),v.value=setTimeout(()=>t.clearSearch(),350));break}}let b=me(),m=g(()=>b!==null?(b.value&_.Open)===_.Open:t.listboxState.value===0);return()=>{var r,d;let D={open:t.listboxState.value===0},{...R}=e,w={"aria-activedescendant":t.activeOptionIndex.value===null||(r=t.options.value[t.activeOptionIndex.value])==null?void 0:r.id,"aria-multiselectable":t.mode.value===1?!0:void 0,"aria-labelledby":(d=h(t.buttonRef))==null?void 0:d.id,"aria-orientation":t.orientation.value,id:a,onKeydown:f,role:"listbox",tabIndex:0,ref:t.optionsRef};return E({ourProps:w,theirProps:R,slot:D,attrs:o,slots:l,features:J.RenderStrategy|J.Static,visible:m.value,name:"ListboxOptions"})}}}),le=B({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:o,attrs:l,expose:s}){var u;let a=(u=e.id)!=null?u:`headlessui-listbox-option-${z()}`,t=j("ListboxOption"),v=S(null);s({el:v,$el:v});let f=g(()=>t.activeOptionIndex.value!==null?t.options.value[t.activeOptionIndex.value].id===a:!1),b=g(()=>T(t.mode.value,{0:()=>t.compare(L(t.value.value),L(e.value)),1:()=>L(t.value.value).some(n=>t.compare(L(n),L(e.value)))})),m=g(()=>T(t.mode.value,{1:()=>{var n;let i=L(t.value.value);return((n=t.options.value.find(p=>i.some(c=>t.compare(L(c),L(p.dataRef.value)))))==null?void 0:n.id)===a},0:()=>b.value})),r=$e(v),d=g(()=>({disabled:e.disabled,value:e.value,get textValue(){return r()},domRef:v}));K(()=>t.registerOption(a,d)),de(()=>t.unregisterOption(a)),K(()=>{ae([t.listboxState,b],()=>{t.listboxState.value===0&&b.value&&T(t.mode.value,{1:()=>{m.value&&t.goToOption(y.Specific,a)},0:()=>{t.goToOption(y.Specific,a)}})},{immediate:!0})}),ve(()=>{t.listboxState.value===0&&f.value&&t.activationTrigger.value!==0&&A(()=>{var n,i;return(i=(n=h(v))==null?void 0:n.scrollIntoView)==null?void 0:i.call(n,{block:"nearest"})})});function D(n){if(e.disabled)return n.preventDefault();t.select(e.value),t.mode.value===0&&(t.closeListbox(),A(()=>{var i;return(i=h(t.buttonRef))==null?void 0:i.focus({preventScroll:!0})}
1))}function R(){if(e.disabled)return t.goToOption(y.Nothing);t.goToOption(y.Specific,a)}let w=Te();function P(n){w.update(n)}function k(n){w.wasMoved(n)&&(e.disabled||f.value||t.goToOption(y.Specific,a,0))}function V(n){w.wasMoved(n)&&(e.disabled||f.value&&t.goToOption(y.Nothing))}return()=>{let{disabled:n}=e,i={active:f.value,selected:b.value,disabled:n},{value:p,disabled:c,...O}=e,F={id:a,ref:v,role:"option",tabIndex:n===!0?void 0:-1,"aria-disabled":n===!0?!0:void 0,"aria-selected":b.value,disabled:void 0,onClick:D,onFocus:R,onPointerenter:P,onMouseenter:P,onPointermove:k,onMousemove:k,onPointerleave:V,onMouseleave:V};return E({ourProps:F,theirProps:O,slot:i,attrs:l,slots:o,name:"ListboxOption"})}}});const ze={class:"w-full relative"},Qe=B({__name:"BaseSelect",props:{options:{},modelValue:{},nullableOptionLabel:{},label:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const l=e,s=o,u=g(()=>{if(l.multiple){const t=l.options.filter(v=>{var f;return(f=l.modelValue)==null?void 0:f.includes(v.slug??"")});return t.length>0?t.map(v=>v.name).join(", "):"Select options"}const a=l.options.find(t=>t.slug===l.modelValue);return(a&&a.name)??l.nullableOptionLabel??"Select an option"});return(a,t)=>(C(),W("div",ze,[N(I(je),{modelValue:a.modelValue,"onUpdate:modelValue":t[0]||(t[0]=v=>s("update:modelValue",v)),multiple:l.multiple},{default:$(({open:v})=>[l.label?(C(),U(I(Ne),{key:0},{default:$(()=>[Y(M(l.label),1)]),_:1})):X("",!0),N(I(Me),{class:"flex items-center justify-between py-2xs w-full border-b -md:text-base"},{default:$(()=>[Y(M(I(u))+" ",1),H("span",{class:q({"rotate-180":v})},"^",2)]),_:2},1024),N(ce,{name:"fade"},{default:$(()=>[N(I(_e),{class:"flex flex-col p-2xs gap-2xs paragraph-sm shadow-lg absolute w-full bg-white cursor-pointer z-10"},{default:$(()=>[l.nullableOptionLabel?(C(),U(I(le),{key:0,value:""},{default:$(({active:f,selected:b})=>[H("span",{class:q(["inline-block w-full",{"bg-grey/30":f}])},M(l.nullableOptionLabel),3)]),_:1})):X("",!0),(C(!0),W(oe,null,be(a.options,(f,b)=>(C(),U(I(le),{key:b,value:f.slug},{default:$(({active:m,selected:r})=>[H("span",{class:q(["inline-block w-full",{"bg-grey/30":m}])},M(f.name),3)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue","multiple"])]))}});export{Qe 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.