HEX
Server: nginx/1.28.3
System: Linux lightweb-s1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User: drdrivek-71 (1047)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/dnlightw-124/dn.lightweb.kr/public/build/assets/listbox-CFjojfpG.js
import{r as y,i as h,$ as V,d as N,a as j,_ as re,w as Y,h as z,F as oe,k as ue,u as S,n as R,L as ie}from"./runtime-dom.esm-bundler-COsyWSZ4.js";import{o as x,u as P,A,a as B,s as se,l as de,i as C,t as ve,E as ce,T as pe,b as g,N as W}from"./keyboard-PKtydfbd.js";function fe(e,a,n){let u=y(n==null?void 0:n.value),r=h(()=>e.value!==void 0);return[h(()=>r.value?e.value:u.value),function(l){return r.value||(u.value=l),a==null?void 0:a(l)}]}var be=Object.defineProperty,me=(e,a,n)=>a in e?be(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n,_=(e,a,n)=>(me(e,typeof a!="symbol"?a+"":a,n),n);class he{constructor(){_(this,"current",this.detect()),_(this,"currentId",0)}set(a){this.current!==a&&(this.currentId=0,this.current=a)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let H=new he;function ge(e){if(H.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let a=x(e);if(a)return a.ownerDocument}return document}let q=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var xe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(xe||{}),ye=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ye||{}),Oe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Oe||{}),U=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(U||{});function J(e,a=0){var n;return e===((n=ge(e))==null?void 0:n.body)?!1:P(a,{0(){return e.matches(q)},1(){let u=e;for(;u!==null;){if(u.matches(q))return!0;u=u.parentElement}return!1}})}var we=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(we||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Se(e,a=n=>n){return e.slice().sort((n,u)=>{let r=a(n),l=a(u);if(r===null||l===null)return 0;let t=r.compareDocumentPosition(l);return t&Node.DOCUMENT_POSITION_FOLLOWING?-1:t&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Le(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function De(){return/Android/gi.test(window.navigator.userAgent)}function Pe(){return Le()||De()}function k(e,a,n){H.isServer||V(u=>{document.addEventListener(e,a,n),u(()=>document.removeEventListener(e,a,n))})}function Ee(e,a,n){H.isServer||V(u=>{window.addEventListener(e,a,n),u(()=>window.removeEventListener(e,a,n))})}function $e(e,a,n=h(()=>!0)){function u(l,t){if(!n.value||l.defaultPrevented)return;let d=t(l);if(d===null||!d.getRootNode().contains(d))return;let m=function f(p){return typeof p=="function"?f(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let f of m){if(f===null)continue;let p=f instanceof HTMLElement?f:x(f);if(p!=null&&p.contains(d)||l.composed&&l.composedPath().includes(p))return}return!J(d,U.Loose)&&d.tabIndex!==-1&&l.preventDefault(),a(l,d)}let r=y(null);k("pointerdown",l=>{var t,d;n.value&&(r.value=((d=(t=l.composedPath)==null?void 0:t.call(l))==null?void 0:d[0])||l.target)},!0),k("mousedown",l=>{var t,d;n.value&&(r.value=((d=(t=l.composedPath)==null?void 0:t.call(l))==null?void 0:d[0])||l.target)},!0),k("click",l=>{Pe()||r.value&&(u(l,()=>r.value),r.value=null)},!0),k("touchend",l=>u(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Ee("blur",l=>u(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function G(e){return[e.screenX,e.screenY]}function Fe(){let e=y([-1,-1]);return{wasMoved(a){let n=G(a);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(a){e.value=G(a)}}}var Z=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Z||{});let Ie=N({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:a,attrs:n}){return()=>{var u;let{features:r,...l}=e,t={"aria-hidden":(r&2)===2?!0:(u=l["aria-hidden"])!=null?u:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return A({ourProps:t,theirProps:l,slot:{},attrs:n,slots:a,name:"Hidden"})}}});function Te(e){throw new Error("Unexpected object: "+e)}var O=(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))(O||{});function Re(e,a){let n=a.resolveItems();if(n.length<=0)return null;let u=a.resolveActiveIndex(),r=u??-1;switch(e.focus){case 0:{for(let l=0;l<n.length;++l)if(!a.resolveDisabled(n[l],l,n))return l;return u}case 1:{r===-1&&(r=n.length);for(let l=r-1;l>=0;--l)if(!a.resolveDisabled(n[l],l,n))return l;return u}case 2:{for(let l=r+1;l<n.length;++l)if(!a.resolveDisabled(n[l],l,n))return l;return u}case 3:{for(let l=n.length-1;l>=0;--l)if(!a.resolveDisabled(n[l],l,n))return l;return u}case 4:{for(let l=0;l<n.length;++l)if(a.resolveId(n[l],l,n)===e.id)return l;return u}case 5:return null;default:Te(e)}}function ee(e={},a=null,n=[]){for(let[u,r]of Object.entries(e))le(n,te(a,u),r);return n}function te(e,a){return e?e+"["+a+"]":a}function le(e,a,n){if(Array.isArray(n))for(let[u,r]of n.entries())le(e,te(a,u.toString()),r);else n instanceof Date?e.push([a,n.toISOString()]):typeof n=="boolean"?e.push([a,n?"1":"0"]):typeof n=="string"?e.push([a,n]):typeof n=="number"?e.push([a,`${n}`]):n==null?e.push([a,""]):ee(n,a,e)}let Q=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function X(e){var a,n;let u=(a=e.innerText)!=null?a:"",r=e.cloneNode(!0);if(!(r instanceof HTMLElement))return u;let l=!1;for(let d of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))d.remove(),l=!0;let t=l?(n=r.innerText)!=null?n:"":u;return Q.test(t)&&(t=t.replace(Q,"")),t}function Ne(e){let a=e.getAttribute("aria-label");if(typeof a=="string")return a.trim();let n=e.getAttribute("aria-labelledby");if(n){let u=n.split(" ").map(r=>{let l=document.getElementById(r);if(l){let t=l.getAttribute("aria-label");return typeof t=="string"?t.trim():X(l).trim()}return null}).filter(Boolean);if(u.length>0)return u.join(", ")}return X(e).trim()}function Ae(e){let a=y(""),n=y("");return()=>{let u=x(e);if(!u)return"";let r=u.innerText;if(a.value===r)return n.value;let l=Ne(u).trim().toLowerCase();return a.value=r,n.value=l,l}}function ke(e,a){return e===a}var Ce=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ce||{}),Me=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Me||{}),je=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(je||{});function Ve(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let ne=Symbol("ListboxContext");function M(e){let a=ue(ne,null);if(a===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,M),n}return a}let Ue=N({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>ke},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:a,attrs:n,emit:u}){let r=y(1),l=y(null),t=y(null),d=y(null),m=y([]),f=y(""),p=y(null),i=y(1);function v(o=s=>s){let s=p.value!==null?m.value[p.value]:null,c=Se(o(m.value.slice()),w=>x(w.dataRef.domRef)),b=s?c.indexOf(s):null;return b===-1&&(b=null),{options:c,activeOptionIndex:b}}let D=h(()=>e.multiple?1:0),[E,L]=fe(h(()=>e.modelValue),o=>u("update:modelValue",o),h(()=>e.defaultValue)),F=h(()=>E.value===void 0?P(D.value,{1:[],0:void 0}):E.value),$={listboxState:r,value:F,mode:D,compare(o,s){if(typeof e.by=="string"){let c=e.by;return(o==null?void 0:o[c])===(s==null?void 0:s[c])}return e.by(o,s)},orientation:h(()=>e.horizontal?"horizontal":"vertical"),labelRef:l,buttonRef:t,optionsRef:d,disabled:h(()=>e.disabled),options:m,searchQuery:f,activeOptionIndex:p,activationTrigger:i,closeListbox(){e.disabled||r.value!==1&&(r.value=1,p.value=null)},openListbox(){e.disabled||r.value!==0&&(r.value=0)},goToOption(o,s,c){if(e.disabled||r.value===1)return;let b=v(),w=Re(o===O.Specific?{focus:O.Specific,id:s}:{focus:o},{resolveItems:()=>b.options,resolveActiveIndex:()=>b.activeOptionIndex,resolveId:T=>T.id,resolveDisabled:T=>T.dataRef.disabled});f.value="",p.value=w,i.value=c??1,m.value=b.options},search(o){if(e.disabled||r.value===1)return;let s=f.value!==""?0:1;f.value+=o.toLowerCase();let c=(p.value!==null?m.value.slice(p.value+s).concat(m.value.slice(0,p.value+s)):m.value).find(w=>w.dataRef.textValue.startsWith(f.value)&&!w.dataRef.disabled),b=c?m.value.indexOf(c):-1;b===-1||b===p.value||(p.value=b,i.value=1)},clearSearch(){e.disabled||r.value!==1&&f.value!==""&&(f.value="")},registerOption(o,s){let c=v(b=>[...b,{id:o,dataRef:s}]);m.value=c.options,p.value=c.activeOptionIndex},unregisterOption(o){let s=v(c=>{let b=c.findIndex(w=>w.id===o);return b!==-1&&c.splice(b,1),c});m.value=s.options,p.value=s.activeOptionIndex,i.value=1},theirOnChange(o){e.disabled||L(o)},select(o){e.disabled||L(P(D.value,{0:()=>o,1:()=>{let s=S($.value.value).slice(),c=S(o),b=s.findIndex(w=>$.compare(c,S(w)));return b===-1?s.push(c):s.splice(b,1),s}}))}};$e([t,d],(o,s)=>{var c;$.closeListbox(),J(s,U.Loose)||(o.preventDefault(),(c=x(t))==null||c.focus())},h(()=>r.value===0)),ie(ne,$),ve(h(()=>P(r.value,{0:C.Open,1:C.Closed})));let I=h(()=>{var o;return(o=x(t))==null?void 0:o.closest("form")});return j(()=>{Y([I],()=>{if(!I.value||e.defaultValue===void 0)return;function o(){$.theirOnChange(e.defaultValue)}return I.value.addEventListener("reset",o),()=>{var s;(s=I.value)==null||s.removeEventListener("reset",o)}},{immediate:!0})}),()=>{let{name:o,modelValue:s,disabled:c,form:b,...w}=e,T={open:r.value===0,disabled:c,value:F.value};return z(oe,[...o!=null&&F.value!=null?ee({[o]:F.value}).map(([K,ae])=>z(Ie,ce({features:Z.Hidden,key:K,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,disabled:c,name:K,value:ae}))):[],A({ourProps:{},theirProps:{...n,...pe(w,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:T,slots:a,attrs:n,name:"Listbox"})])}}}),Ke=N({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:a,slots:n,expose:u}){var r;let l=(r=e.id)!=null?r:`headlessui-listbox-button-${B()}`,t=M("ListboxButton");u({el:t.buttonRef,$el:t.buttonRef});function d(i){switch(i.key){case g.Space:case g.Enter:case g.ArrowDown:i.preventDefault(),t.openListbox(),R(()=>{var v;(v=x(t.optionsRef))==null||v.focus({preventScroll:!0}),t.value.value||t.goToOption(O.First)});break;case g.ArrowUp:i.preventDefault(),t.openListbox(),R(()=>{var v;(v=x(t.optionsRef))==null||v.focus({preventScroll:!0}),t.value.value||t.goToOption(O.Last)});break}}function m(i){switch(i.key){case g.Space:i.preventDefault();break}}function f(i){t.disabled.value||(t.listboxState.value===0?(t.closeListbox(),R(()=>{var v;return(v=x(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(i.preventDefault(),t.openListbox(),Ve(()=>{var v;return(v=x(t.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=se(h(()=>({as:e.as,type:a.type})),t.buttonRef);return()=>{var i,v;let D={open:t.listboxState.value===0,disabled:t.disabled.value,value:t.value.value},{...E}=e,L={ref:t.buttonRef,id:l,type:p.value,"aria-haspopup":"listbox","aria-controls":(i=x(t.optionsRef))==null?void 0:i.id,"aria-expanded":t.listboxState.value===0,"aria-labelledby":t.labelRef.value?[(v=x(t.labelRef))==null?void 0:v.id,l].join(" "):void 0,disabled:t.disabled.value===!0?!0:void 0,onKeydown:d,onKeyup:m,onClick:f};return A({ourProps:L,theirProps:E,slot:D,attrs:a,slots:n,name:"ListboxButton"})}}}),ze=N({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:a,slots:n,expose:u}){var r;let l=(r=e.id)!=null?r:`headlessui-listbox-options-${B()}`,t=M("ListboxOptions"),d=y(null);u({el:t.optionsRef,$el:t.optionsRef});function m(i){switch(d.value&&clearTimeout(d.value),i.key){case g.Space:if(t.searchQuery.value!=="")return i.preventDefault(),i.stopPropagation(),t.search(i.key);case g.Enter:if(i.preventDefault(),i.stopPropagation(),t.activeOptionIndex.value!==null){let v=t.options.value[t.activeOptionIndex.value];t.select(v.dataRef.value)}t.mode.value===0&&(t.closeListbox(),R(()=>{var v;return(v=x(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case P(t.orientation.value,{vertical:g.ArrowDown,horizontal:g.ArrowRight}):return i.preventDefault(),i.stopPropagation(),t.goToOption(O.Next);case P(t.orientation.value,{vertical:g.ArrowUp,horizontal:g.ArrowLeft}):return i.preventDefault(),i.stopPropagation(),t.goToOption(O.Previous);case g.Home:case g.PageUp:return i.preventDefault(),i.stopPropagation(),t.goToOption(O.First);case g.End:case g.PageDown:return i.preventDefault(),i.stopPropagation(),t.goToOption(O.Last);case g.Escape:i.preventDefault(),i.stopPropagation(),t.closeListbox(),R(()=>{var v;return(v=x(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case g.Tab:i.preventDefault(),i.stopPropagation();break;default:i.key.length===1&&(t.search(i.key),d.value=setTimeout(()=>t.clearSearch(),350));break}}let f=de(),p=h(()=>f!==null?(f.value&C.Open)===C.Open:t.listboxState.value===0);return()=>{var i,v;let D={open:t.listboxState.value===0},{...E}=e,L={"aria-activedescendant":t.activeOptionIndex.value===null||(i=t.options.value[t.activeOptionIndex.value])==null?void 0:i.id,"aria-multiselectable":t.mode.value===1?!0:void 0,"aria-labelledby":(v=x(t.buttonRef))==null?void 0:v.id,"aria-orientation":t.orientation.value,id:l,onKeydown:m,role:"listbox",tabIndex:0,ref:t.optionsRef};return A({ourProps:L,theirProps:E,slot:D,attrs:a,slots:n,features:W.RenderStrategy|W.Static,visible:p.value,name:"ListboxOptions"})}}}),We=N({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:a,attrs:n,expose:u}){var r;let l=(r=e.id)!=null?r:`headlessui-listbox-option-${B()}`,t=M("ListboxOption"),d=y(null);u({el:d,$el:d});let m=h(()=>t.activeOptionIndex.value!==null?t.options.value[t.activeOptionIndex.value].id===l:!1),f=h(()=>P(t.mode.value,{0:()=>t.compare(S(t.value.value),S(e.value)),1:()=>S(t.value.value).some(o=>t.compare(S(o),S(e.value)))})),p=h(()=>P(t.mode.value,{1:()=>{var o;let s=S(t.value.value);return((o=t.options.value.find(c=>s.some(b=>t.compare(S(b),S(c.dataRef.value)))))==null?void 0:o.id)===l},0:()=>f.value})),i=Ae(d),v=h(()=>({disabled:e.disabled,value:e.value,get textValue(){return i()},domRef:d}));j(()=>t.registerOption(l,v)),re(()=>t.unregisterOption(l)),j(()=>{Y([t.listboxState,f],()=>{t.listboxState.value===0&&f.value&&P(t.mode.value,{1:()=>{p.value&&t.goToOption(O.Specific,l)},0:()=>{t.goToOption(O.Specific,l)}})},{immediate:!0})}),V(()=>{t.listboxState.value===0&&m.value&&t.activationTrigger.value!==0&&R(()=>{var o,s;return(s=(o=x(d))==null?void 0:o.scrollIntoView)==null?void 0:s.call(o,{block:"nearest"})})});function D(o){if(e.disabled)return o.preventDefault();t.select(e.value),t.mode.value===0&&(t.closeListbox(),R(()=>{var s;return(s=x(t.buttonRef))==null?void 0:s.focus({preventScroll:!0})}))}function E(){if(e.disabled)return t.goToOption(O.Nothing);t.goToOption(O.Specific,l)}let L=Fe();function F(o){L.update(o)}function $(o){L.wasMoved(o)&&(e.disabled||m.value||t.goToOption(O.Specific,l,0))}function I(o){L.wasMoved(o)&&(e.disabled||m.value&&t.goToOption(O.Nothing))}return()=>{let{disabled:o}=e,s={active:m.value,selected:f.value,disabled:o},{value:c,disabled:b,...w}=e,T={id:l,ref:d,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onClick:D,onFocus:E,onPointerenter:F,onMouseenter:F,onPointermove:$,onMousemove:$,onPointerleave:I,onMouseleave:I};return A({ourProps:T,theirProps:w,slot:s,attrs:n,slots:a,name:"ListboxOption"})}}});export{ze as A,We as F,Ue as I,Ke as j};